]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f4a58f0d | 3 | # Generated by GNU Autoconf 2.69 for GNU C Library (see version.h). |
f4b07664 | 4 | # |
a306c790 | 5 | # Report bugs to <https://sourceware.org/bugzilla/>. |
3a12e572 | 6 | # |
b08c89d9 | 7 | # |
f4a58f0d | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
b08c89d9 UD |
9 | # |
10 | # | |
3a12e572 UD |
11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
b08c89d9 UD |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
cd6ede75 | 16 | |
26f56c1c UD |
17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
b08c89d9 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
3a12e572 UD |
20 | emulate sh |
21 | NULLCMD=: | |
322e23db | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c UD |
25 | setopt NO_GLOB_SUBST |
26 | else | |
b08c89d9 UD |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
26f56c1c | 32 | esac |
26f56c1c UD |
33 | fi |
34 | ||
35 | ||
322e23db UD |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b08c89d9 UD |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
322e23db UD |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
a152f366 | 56 | else |
322e23db UD |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
b08c89d9 | 60 | case $arg in #( |
322e23db UD |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a152f366 | 69 | fi |
322e23db UD |
70 | export as_echo_body |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
3a12e572 | 81 | fi |
cd6ede75 | 82 | |
f4b07664 | 83 | |
26f56c1c UD |
84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
26f56c1c UD |
89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
f318beb8 | 92 | as_myself= |
b08c89d9 | 93 | case $0 in #(( |
26f56c1c UD |
94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
26f56c1c UD |
102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
322e23db | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 113 | exit 1 |
26f56c1c UD |
114 | fi |
115 | ||
b08c89d9 UD |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26f56c1c | 123 | done |
f4b07664 RM |
124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
322e23db UD |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
f4b07664 | 133 | |
b08c89d9 UD |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
f4a58f0d L |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
b08c89d9 UD |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
f4a58f0d L |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
b08c89d9 UD |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
3d0dbdc4 | 200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
b08c89d9 UD |
201 | if (eval "$as_required") 2>/dev/null; then : |
202 | as_have_required=yes | |
203 | else | |
204 | as_have_required=no | |
205 | fi | |
206 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
207 | ||
208 | else | |
209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
210 | as_found=false | |
211 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
212 | do | |
213 | IFS=$as_save_IFS | |
214 | test -z "$as_dir" && as_dir=. | |
215 | as_found=: | |
216 | case $as_dir in #( | |
217 | /*) | |
218 | for as_base in sh bash ksh sh5; do | |
219 | # Try only shells that exist, to save several forks. | |
220 | as_shell=$as_dir/$as_base | |
221 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
222 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
223 | CONFIG_SHELL=$as_shell as_have_required=yes | |
224 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | break 2 | |
226 | fi | |
227 | fi | |
228 | done;; | |
229 | esac | |
230 | as_found=false | |
231 | done | |
232 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
233 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
234 | CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | fi; } | |
236 | IFS=$as_save_IFS | |
237 | ||
238 | ||
239 | if test "x$CONFIG_SHELL" != x; then : | |
f4a58f0d L |
240 | export CONFIG_SHELL |
241 | # We cannot yet assume a decent shell, so we have to provide a | |
242 | # neutralization value for shells without unset; and this also | |
243 | # works around shells that cannot unset nonexistent variables. | |
244 | # Preserve -v and -x to the replacement shell. | |
245 | BASH_ENV=/dev/null | |
246 | ENV=/dev/null | |
247 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
248 | case $- in # (((( | |
249 | *v*x* | *x*v* ) as_opts=-vx ;; | |
250 | *v* ) as_opts=-v ;; | |
251 | *x* ) as_opts=-x ;; | |
252 | * ) as_opts= ;; | |
253 | esac | |
254 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
255 | # Admittedly, this is quite paranoid, since all the known shells bail | |
256 | # out after a failed `exec'. | |
257 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
258 | exit 255 | |
b08c89d9 UD |
259 | fi |
260 | ||
261 | if test x$as_have_required = xno; then : | |
262 | $as_echo "$0: This script requires a shell more modern than all" | |
263 | $as_echo "$0: the shells that I found on your system." | |
264 | if test x${ZSH_VERSION+set} = xset ; then | |
265 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
266 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
267 | else | |
f318beb8 | 268 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
a306c790 | 269 | $0: https://sourceware.org/bugzilla/ about your system, |
f318beb8 | 270 | $0: including any error possibly output before this |
b08c89d9 UD |
271 | $0: message. Then install a modern shell, or manually run |
272 | $0: the script under such a shell if you do have one." | |
273 | fi | |
274 | exit 1 | |
275 | fi | |
276 | fi | |
277 | fi | |
278 | SHELL=${CONFIG_SHELL-/bin/sh} | |
279 | export SHELL | |
280 | # Unset more variables known to interfere with behavior of common tools. | |
281 | CLICOLOR_FORCE= GREP_OPTIONS= | |
282 | unset CLICOLOR_FORCE GREP_OPTIONS | |
283 | ||
284 | ## --------------------- ## | |
285 | ## M4sh Shell Functions. ## | |
286 | ## --------------------- ## | |
287 | # as_fn_unset VAR | |
288 | # --------------- | |
289 | # Portably unset VAR. | |
290 | as_fn_unset () | |
291 | { | |
292 | { eval $1=; unset $1;} | |
293 | } | |
294 | as_unset=as_fn_unset | |
295 | ||
296 | # as_fn_set_status STATUS | |
297 | # ----------------------- | |
298 | # Set $? to STATUS, without forking. | |
299 | as_fn_set_status () | |
300 | { | |
301 | return $1 | |
302 | } # as_fn_set_status | |
303 | ||
304 | # as_fn_exit STATUS | |
305 | # ----------------- | |
306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
307 | as_fn_exit () | |
308 | { | |
309 | set +e | |
310 | as_fn_set_status $1 | |
311 | exit $1 | |
312 | } # as_fn_exit | |
313 | ||
314 | # as_fn_mkdir_p | |
315 | # ------------- | |
316 | # Create "$as_dir" as a directory, including parents if necessary. | |
317 | as_fn_mkdir_p () | |
318 | { | |
319 | ||
320 | case $as_dir in #( | |
321 | -*) as_dir=./$as_dir;; | |
322 | esac | |
323 | test -d "$as_dir" || eval $as_mkdir_p || { | |
324 | as_dirs= | |
325 | while :; do | |
326 | case $as_dir in #( | |
327 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
328 | *) as_qdir=$as_dir;; | |
329 | esac | |
330 | as_dirs="'$as_qdir' $as_dirs" | |
331 | as_dir=`$as_dirname -- "$as_dir" || | |
332 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
333 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
334 | X"$as_dir" : 'X\(//\)$' \| \ | |
335 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
336 | $as_echo X"$as_dir" | | |
337 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
338 | s//\1/ | |
339 | q | |
340 | } | |
341 | /^X\(\/\/\)[^/].*/{ | |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)$/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\).*/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | s/.*/./; q'` | |
354 | test -d "$as_dir" && break | |
355 | done | |
356 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 357 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
358 | |
359 | ||
360 | } # as_fn_mkdir_p | |
f4a58f0d L |
361 | |
362 | # as_fn_executable_p FILE | |
363 | # ----------------------- | |
364 | # Test if FILE is an executable regular file. | |
365 | as_fn_executable_p () | |
366 | { | |
367 | test -f "$1" && test -x "$1" | |
368 | } # as_fn_executable_p | |
b08c89d9 UD |
369 | # as_fn_append VAR VALUE |
370 | # ---------------------- | |
371 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
372 | # advantage of any shell optimizations that allow amortized linear growth over | |
373 | # repeated appends, instead of the typical quadratic growth present in naive | |
374 | # implementations. | |
375 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
376 | eval 'as_fn_append () | |
377 | { | |
378 | eval $1+=\$2 | |
379 | }' | |
380 | else | |
381 | as_fn_append () | |
382 | { | |
383 | eval $1=\$$1\$2 | |
384 | } | |
385 | fi # as_fn_append | |
386 | ||
387 | # as_fn_arith ARG... | |
388 | # ------------------ | |
389 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
390 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
391 | # must be portable across $(()) and expr. | |
392 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
393 | eval 'as_fn_arith () | |
394 | { | |
395 | as_val=$(( $* )) | |
396 | }' | |
397 | else | |
398 | as_fn_arith () | |
399 | { | |
400 | as_val=`expr "$@" || test $? -eq 1` | |
401 | } | |
402 | fi # as_fn_arith | |
403 | ||
404 | ||
4a531bb0 L |
405 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
406 | # ---------------------------------------- | |
b08c89d9 UD |
407 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
408 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 409 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
410 | as_fn_error () |
411 | { | |
4a531bb0 L |
412 | as_status=$1; test $as_status -eq 0 && as_status=1 |
413 | if test "$4"; then | |
414 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
415 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b08c89d9 | 416 | fi |
4a531bb0 | 417 | $as_echo "$as_me: error: $2" >&2 |
b08c89d9 UD |
418 | as_fn_exit $as_status |
419 | } # as_fn_error | |
420 | ||
26f56c1c UD |
421 | if expr a : '\(a\)' >/dev/null 2>&1 && |
422 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
423 | as_expr=expr |
424 | else | |
425 | as_expr=false | |
426 | fi | |
427 | ||
26f56c1c | 428 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
429 | as_basename=basename |
430 | else | |
431 | as_basename=false | |
432 | fi | |
3a12e572 | 433 | |
b08c89d9 UD |
434 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
435 | as_dirname=dirname | |
436 | else | |
437 | as_dirname=false | |
438 | fi | |
3a12e572 | 439 | |
26f56c1c | 440 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
441 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
442 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 443 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 444 | $as_echo X/"$0" | |
26f56c1c UD |
445 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
446 | s//\1/ | |
447 | q | |
448 | } | |
449 | /^X\/\(\/\/\)$/{ | |
450 | s//\1/ | |
451 | q | |
452 | } | |
453 | /^X\/\(\/\).*/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | s/.*/./; q'` | |
3a12e572 | 458 | |
b08c89d9 UD |
459 | # Avoid depending upon Character Ranges. |
460 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
461 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
462 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
463 | as_cr_digits='0123456789' | |
464 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f4b07664 | 465 | |
3a12e572 | 466 | |
b08c89d9 UD |
467 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
468 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
469 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
470 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
471 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
472 | sed -n ' | |
473 | p | |
474 | /[$]LINENO/= | |
475 | ' <$as_myself | | |
476 | sed ' | |
477 | s/[$]LINENO.*/&-/ | |
478 | t lineno | |
479 | b | |
480 | :lineno | |
481 | N | |
482 | :loop | |
483 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
484 | t loop | |
485 | s/-\n.*// | |
486 | ' >$as_me.lineno && | |
487 | chmod +x "$as_me.lineno" || | |
488 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
cd6ede75 | 489 | |
f4a58f0d L |
490 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
491 | # already done that, so ensure we don't try to do so again and fall | |
492 | # in an infinite loop. This has already happened in practice. | |
493 | _as_can_reexec=no; export _as_can_reexec | |
b08c89d9 UD |
494 | # Don't try to exec as it changes $[0], causing all sort of problems |
495 | # (the dirname of $[0] is not the place where we might find the | |
496 | # original and so on. Autoconf is especially sensitive to this). | |
497 | . "./$as_me.lineno" | |
498 | # Exit status is that of the last command. | |
499 | exit | |
26f56c1c | 500 | } |
cd6ede75 | 501 | |
b08c89d9 UD |
502 | ECHO_C= ECHO_N= ECHO_T= |
503 | case `echo -n x` in #((((( | |
504 | -n*) | |
505 | case `echo 'xy\c'` in | |
506 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
507 | xy) ECHO_C='\c';; | |
508 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
509 | ECHO_T=' ';; | |
510 | esac;; | |
511 | *) | |
512 | ECHO_N='-n';; | |
513 | esac | |
650425ce | 514 | |
b08c89d9 UD |
515 | rm -f conf$$ conf$$.exe conf$$.file |
516 | if test -d conf$$.dir; then | |
517 | rm -f conf$$.dir/conf$$.file | |
518 | else | |
519 | rm -f conf$$.dir | |
520 | mkdir conf$$.dir 2>/dev/null | |
26f56c1c | 521 | fi |
b08c89d9 UD |
522 | if (echo >conf$$.file) 2>/dev/null; then |
523 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
524 | as_ln_s='ln -s' | |
525 | # ... but there are two gotchas: | |
526 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
527 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f4a58f0d | 528 | # In both cases, we have to default to `cp -pR'. |
b08c89d9 | 529 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 530 | as_ln_s='cp -pR' |
b08c89d9 UD |
531 | elif ln conf$$.file conf$$ 2>/dev/null; then |
532 | as_ln_s=ln | |
533 | else | |
f4a58f0d | 534 | as_ln_s='cp -pR' |
b08c89d9 | 535 | fi |
26f56c1c | 536 | else |
f4a58f0d | 537 | as_ln_s='cp -pR' |
26f56c1c | 538 | fi |
b08c89d9 UD |
539 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
540 | rmdir conf$$.dir 2>/dev/null | |
26f56c1c | 541 | |
b08c89d9 UD |
542 | if mkdir -p . 2>/dev/null; then |
543 | as_mkdir_p='mkdir -p "$as_dir"' | |
544 | else | |
545 | test -d ./-p && rmdir ./-p | |
546 | as_mkdir_p=false | |
26f56c1c UD |
547 | fi |
548 | ||
f4a58f0d L |
549 | as_test_x='test -x' |
550 | as_executable_p=as_fn_executable_p | |
26f56c1c | 551 | |
b08c89d9 UD |
552 | # Sed expression to map a string onto a valid CPP name. |
553 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c | 554 | |
b08c89d9 UD |
555 | # Sed expression to map a string onto a valid variable name. |
556 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c UD |
557 | |
558 | ||
b08c89d9 UD |
559 | test -n "$DJDIR" || exec 7<&0 </dev/null |
560 | exec 6>&1 | |
cd6ede75 | 561 | |
3a12e572 | 562 | # Name of the host. |
4a531bb0 | 563 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
3a12e572 UD |
564 | # so uname gets run too. |
565 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
566 | ||
3a12e572 UD |
567 | # |
568 | # Initializations. | |
569 | # | |
cd6ede75 | 570 | ac_default_prefix=/usr/local |
26f56c1c | 571 | ac_clean_files= |
f4b07664 | 572 | ac_config_libobj_dir=. |
26f56c1c | 573 | LIBOBJS= |
3a12e572 UD |
574 | cross_compiling=no |
575 | subdirs= | |
576 | MFLAGS= | |
577 | MAKEFLAGS= | |
3a12e572 | 578 | |
3a12e572 | 579 | # Identity of this package. |
f4b07664 | 580 | PACKAGE_NAME='GNU C Library' |
f318beb8 | 581 | PACKAGE_TARNAME='glibc' |
f4b07664 RM |
582 | PACKAGE_VERSION='(see version.h)' |
583 | PACKAGE_STRING='GNU C Library (see version.h)' | |
a306c790 | 584 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/' |
02d35f06 | 585 | PACKAGE_URL='https://www.gnu.org/software/glibc/' |
3a12e572 UD |
586 | |
587 | ac_unique_file="include/features.h" | |
322e23db | 588 | enable_option_checking=no |
322e23db | 589 | ac_subst_vars='LTLIBOBJS |
a152f366 | 590 | LIBOBJS |
ad201afe | 591 | pthread_in_libc |
322e23db UD |
592 | RELEASE |
593 | VERSION | |
594 | mach_interface_list | |
595 | DEFINES | |
322e23db | 596 | static_nss |
322e23db | 597 | profile |
abcb584d | 598 | libc_cv_multidir |
322e23db UD |
599 | shared |
600 | static | |
322e23db UD |
601 | ldd_rewrite_script |
602 | use_ldconfig | |
322e23db | 603 | libc_cv_rootsbindir |
4248b1b1 | 604 | libc_cv_localstatedir |
322e23db | 605 | libc_cv_sysconfdir |
90fe682d | 606 | libc_cv_complocaledir |
aaa8cb4b | 607 | libc_cv_rtlddir |
322e23db | 608 | libc_cv_slibdir |
3cc3ef96 | 609 | use_nscd |
322e23db | 610 | libc_cv_gcc_unwind_find_fde |
7ffa9423 | 611 | libc_extra_cppflags |
30b99d79 | 612 | libc_extra_cflags |
99e1dc0a | 613 | libc_cv_cxx_thread_local |
61653dfb | 614 | CPPUNDEFS |
322e23db UD |
615 | have_selinux |
616 | have_libcap | |
617 | have_libaudit | |
618 | LIBGD | |
85c2e611 | 619 | libc_cv_cc_loop_to_function |
322e23db | 620 | libc_cv_cc_submachine |
bef0b507 | 621 | libc_cv_cc_nofma |
61655555 | 622 | libc_cv_mtls_dialect_gnu2 |
89569c8b | 623 | libc_cv_has_glob_dat |
322e23db UD |
624 | libc_cv_fpie |
625 | libc_cv_z_execstack | |
322e23db | 626 | ASFLAGS_config |
322e23db | 627 | libc_cv_cc_with_libunwind |
19f1a11e | 628 | libc_cv_insert |
83569fb8 | 629 | libc_cv_protected_data |
322e23db UD |
630 | INSTALL_INFO |
631 | PERL | |
322e23db | 632 | BASH_SHELL |
a65ea28d | 633 | CXX_BITS_STD_ABS_H |
fc3e1337 FW |
634 | CXX_CMATH_HEADER |
635 | CXX_CSTDLIB_HEADER | |
322e23db UD |
636 | CXX_SYSINCLUDES |
637 | SYSINCLUDES | |
43ecc41d AZ |
638 | sysnames |
639 | submachine | |
640 | multi_arch | |
641 | libc_cv_textrel_ifunc | |
642 | no_stack_protector | |
643 | stack_protector | |
644 | libc_cv_ssp | |
645 | libc_cv_with_fp | |
8ce8299f SP |
646 | PYTHON |
647 | PYTHON_PROG | |
322e23db | 648 | AUTOCONF |
1faaf703 | 649 | BISON |
0786794f | 650 | AWK |
322e23db UD |
651 | SED |
652 | MAKEINFO | |
653 | MSGFMT | |
654 | MAKE | |
322e23db | 655 | LD |
02abdab0 AZ |
656 | NM |
657 | OBJDUMP | |
658 | READELF | |
6014c65d | 659 | GPROF |
1b74661a | 660 | OBJCOPY |
322e23db UD |
661 | AR |
662 | LN_S | |
663 | INSTALL_DATA | |
664 | INSTALL_SCRIPT | |
665 | INSTALL_PROGRAM | |
322e23db | 666 | base_machine |
e4608715 | 667 | build_pt_chown |
c53d909c | 668 | build_nscd |
84aa7516 | 669 | libc_cv_static_nss_crypt |
322e23db | 670 | libc_cv_nss_crypt |
e69d994a | 671 | build_crypt |
33784089 | 672 | memory_tagging |
a4ecc9eb | 673 | enable_werror |
322e23db UD |
674 | all_warnings |
675 | force_install | |
676 | bindnow | |
740b3dbe | 677 | hardcoded_path_in_tests |
1cba4036 | 678 | enable_timezone_tools |
9ba202c7 | 679 | rtld_early_cflags |
6413fcde | 680 | extra_nonshared_cflags |
c91c505f | 681 | sysheaders |
322e23db UD |
682 | ac_ct_CXX |
683 | CXXFLAGS | |
684 | CXX | |
685 | CPP | |
686 | cross_compiling | |
687 | BUILD_CC | |
688 | OBJEXT | |
689 | ac_ct_CC | |
690 | CPPFLAGS | |
691 | LDFLAGS | |
692 | CFLAGS | |
693 | CC | |
c16a054d AS |
694 | host_os |
695 | host_vendor | |
696 | host_cpu | |
697 | host | |
698 | build_os | |
699 | build_vendor | |
700 | build_cpu | |
701 | build | |
7967983f | 702 | subdirs |
8b748aed JM |
703 | REPORT_BUGS_TEXI |
704 | REPORT_BUGS_TO | |
705 | PKGVERSION_TEXI | |
706 | PKGVERSION | |
322e23db UD |
707 | target_alias |
708 | host_alias | |
709 | build_alias | |
710 | LIBS | |
711 | ECHO_T | |
712 | ECHO_N | |
713 | ECHO_C | |
714 | DEFS | |
715 | mandir | |
716 | localedir | |
717 | libdir | |
718 | psdir | |
719 | pdfdir | |
720 | dvidir | |
721 | htmldir | |
722 | infodir | |
723 | docdir | |
724 | oldincludedir | |
725 | includedir | |
726 | localstatedir | |
727 | sharedstatedir | |
728 | sysconfdir | |
729 | datadir | |
730 | datarootdir | |
731 | libexecdir | |
732 | sbindir | |
733 | bindir | |
734 | program_transform_name | |
735 | prefix | |
736 | exec_prefix | |
b08c89d9 | 737 | PACKAGE_URL |
322e23db UD |
738 | PACKAGE_BUGREPORT |
739 | PACKAGE_STRING | |
740 | PACKAGE_VERSION | |
741 | PACKAGE_TARNAME | |
742 | PACKAGE_NAME | |
743 | PATH_SEPARATOR | |
744 | SHELL' | |
a152f366 | 745 | ac_subst_files='' |
322e23db UD |
746 | ac_user_opts=' |
747 | enable_option_checking | |
8b748aed JM |
748 | with_pkgversion |
749 | with_bugurl | |
322e23db UD |
750 | with_gd |
751 | with_gd_include | |
752 | with_gd_lib | |
322e23db | 753 | with_binutils |
322e23db | 754 | with_selinux |
322e23db | 755 | with_headers |
6413fcde | 756 | with_nonshared_cflags |
9ba202c7 | 757 | with_rtld_early_cflags |
bada2e31 | 758 | with_timeoutfactor |
322e23db | 759 | enable_sanity_checks |
322e23db UD |
760 | enable_shared |
761 | enable_profile | |
23645707 | 762 | enable_default_pie |
1cba4036 | 763 | enable_timezone_tools |
740b3dbe | 764 | enable_hardcoded_path_in_tests |
322e23db UD |
765 | enable_hidden_plt |
766 | enable_bind_now | |
03baef1c | 767 | enable_stack_protector |
322e23db UD |
768 | enable_static_nss |
769 | enable_force_install | |
8894bad3 | 770 | enable_maintainer_mode |
322e23db UD |
771 | enable_kernel |
772 | enable_all_warnings | |
a4ecc9eb | 773 | enable_werror |
322e23db | 774 | enable_multi_arch |
33784089 | 775 | enable_memory_tagging |
e69d994a | 776 | enable_crypt |
322e23db | 777 | enable_nss_crypt |
3a097cc7 | 778 | enable_systemtap |
c53d909c | 779 | enable_build_nscd |
3cc3ef96 | 780 | enable_nscd |
e4608715 | 781 | enable_pt_chown |
5695d46f | 782 | enable_mathvec |
f753fa7d | 783 | enable_cet |
ebae2f5a | 784 | enable_scv |
322e23db UD |
785 | with_cpu |
786 | ' | |
a152f366 UD |
787 | ac_precious_vars='build_alias |
788 | host_alias | |
789 | target_alias | |
790 | CC | |
791 | CFLAGS | |
792 | LDFLAGS | |
793 | LIBS | |
794 | CPPFLAGS | |
795 | CPP | |
796 | CXX | |
797 | CXXFLAGS | |
798 | CCC' | |
644d3857 | 799 | ac_subdirs_all='' |
a152f366 UD |
800 | |
801 | # Initialize some variables set by options. | |
802 | ac_init_help= | |
803 | ac_init_version=false | |
322e23db UD |
804 | ac_unrecognized_opts= |
805 | ac_unrecognized_sep= | |
a152f366 UD |
806 | # The variables have the same names as the options, with |
807 | # dashes changed to underlines. | |
808 | cache_file=/dev/null | |
809 | exec_prefix=NONE | |
810 | no_create= | |
811 | no_recursion= | |
812 | prefix=NONE | |
813 | program_prefix=NONE | |
814 | program_suffix=NONE | |
815 | program_transform_name=s,x,x, | |
816 | silent= | |
817 | site= | |
818 | srcdir= | |
819 | verbose= | |
820 | x_includes=NONE | |
821 | x_libraries=NONE | |
822 | ||
823 | # Installation directory options. | |
824 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
825 | # and all the variables that are supposed to be based on exec_prefix | |
826 | # by default will actually change. | |
827 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
828 | # (The list follows the same order as the GNU Coding Standards.) | |
829 | bindir='${exec_prefix}/bin' | |
830 | sbindir='${exec_prefix}/sbin' | |
831 | libexecdir='${exec_prefix}/libexec' | |
832 | datarootdir='${prefix}/share' | |
833 | datadir='${datarootdir}' | |
834 | sysconfdir='${prefix}/etc' | |
835 | sharedstatedir='${prefix}/com' | |
836 | localstatedir='${prefix}/var' | |
837 | includedir='${prefix}/include' | |
838 | oldincludedir='/usr/include' | |
839 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
840 | infodir='${datarootdir}/info' | |
841 | htmldir='${docdir}' | |
26f56c1c UD |
842 | dvidir='${docdir}' |
843 | pdfdir='${docdir}' | |
844 | psdir='${docdir}' | |
845 | libdir='${exec_prefix}/lib' | |
846 | localedir='${datarootdir}/locale' | |
847 | mandir='${datarootdir}/man' | |
cd6ede75 | 848 | |
cd6ede75 | 849 | ac_prev= |
26f56c1c | 850 | ac_dashdash= |
cd6ede75 UD |
851 | for ac_option |
852 | do | |
cd6ede75 UD |
853 | # If the previous option needs an argument, assign it. |
854 | if test -n "$ac_prev"; then | |
26f56c1c | 855 | eval $ac_prev=\$ac_option |
cd6ede75 UD |
856 | ac_prev= |
857 | continue | |
858 | fi | |
859 | ||
26f56c1c | 860 | case $ac_option in |
f318beb8 UD |
861 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
862 | *=) ac_optarg= ;; | |
863 | *) ac_optarg=yes ;; | |
26f56c1c | 864 | esac |
cd6ede75 UD |
865 | |
866 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
867 | ||
26f56c1c UD |
868 | case $ac_dashdash$ac_option in |
869 | --) | |
870 | ac_dashdash=yes ;; | |
cd6ede75 UD |
871 | |
872 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
873 | ac_prev=bindir ;; | |
874 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 875 | bindir=$ac_optarg ;; |
cd6ede75 UD |
876 | |
877 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 878 | ac_prev=build_alias ;; |
cd6ede75 | 879 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 880 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
881 | |
882 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
883 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
884 | ac_prev=cache_file ;; | |
885 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
886 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3a12e572 UD |
887 | cache_file=$ac_optarg ;; |
888 | ||
889 | --config-cache | -C) | |
890 | cache_file=config.cache ;; | |
cd6ede75 | 891 | |
26f56c1c | 892 | -datadir | --datadir | --datadi | --datad) |
cd6ede75 | 893 | ac_prev=datadir ;; |
26f56c1c | 894 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
3a12e572 | 895 | datadir=$ac_optarg ;; |
cd6ede75 | 896 | |
26f56c1c UD |
897 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
898 | | --dataroo | --dataro | --datar) | |
899 | ac_prev=datarootdir ;; | |
900 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
901 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
902 | datarootdir=$ac_optarg ;; | |
903 | ||
cd6ede75 | 904 | -disable-* | --disable-*) |
322e23db | 905 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 906 | # Reject names that are not valid shell variable names. |
322e23db | 907 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 908 | as_fn_error $? "invalid feature name: $ac_useropt" |
322e23db UD |
909 | ac_useropt_orig=$ac_useropt |
910 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
911 | case $ac_user_opts in | |
912 | *" | |
913 | "enable_$ac_useropt" | |
914 | "*) ;; | |
915 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
916 | ac_unrecognized_sep=', ';; | |
917 | esac | |
918 | eval enable_$ac_useropt=no ;; | |
26f56c1c UD |
919 | |
920 | -docdir | --docdir | --docdi | --doc | --do) | |
921 | ac_prev=docdir ;; | |
922 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
923 | docdir=$ac_optarg ;; | |
924 | ||
925 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
926 | ac_prev=dvidir ;; | |
927 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
928 | dvidir=$ac_optarg ;; | |
cd6ede75 UD |
929 | |
930 | -enable-* | --enable-*) | |
322e23db | 931 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 932 | # Reject names that are not valid shell variable names. |
322e23db | 933 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 934 | as_fn_error $? "invalid feature name: $ac_useropt" |
322e23db UD |
935 | ac_useropt_orig=$ac_useropt |
936 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
937 | case $ac_user_opts in | |
938 | *" | |
939 | "enable_$ac_useropt" | |
940 | "*) ;; | |
941 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
942 | ac_unrecognized_sep=', ';; | |
943 | esac | |
944 | eval enable_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
945 | |
946 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
947 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
948 | | --exec | --exe | --ex) | |
949 | ac_prev=exec_prefix ;; | |
950 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
951 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
952 | | --exec=* | --exe=* | --ex=*) | |
3a12e572 | 953 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
954 | |
955 | -gas | --gas | --ga | --g) | |
956 | # Obsolete; use --with-gas. | |
957 | with_gas=yes ;; | |
958 | ||
3a12e572 UD |
959 | -help | --help | --hel | --he | -h) |
960 | ac_init_help=long ;; | |
961 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
962 | ac_init_help=recursive ;; | |
963 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
964 | ac_init_help=short ;; | |
cd6ede75 UD |
965 | |
966 | -host | --host | --hos | --ho) | |
3a12e572 | 967 | ac_prev=host_alias ;; |
cd6ede75 | 968 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 969 | host_alias=$ac_optarg ;; |
cd6ede75 | 970 | |
26f56c1c UD |
971 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
972 | ac_prev=htmldir ;; | |
973 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
974 | | --ht=*) | |
975 | htmldir=$ac_optarg ;; | |
976 | ||
cd6ede75 UD |
977 | -includedir | --includedir | --includedi | --included | --include \ |
978 | | --includ | --inclu | --incl | --inc) | |
979 | ac_prev=includedir ;; | |
980 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
981 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
3a12e572 | 982 | includedir=$ac_optarg ;; |
cd6ede75 UD |
983 | |
984 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
985 | ac_prev=infodir ;; | |
986 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 987 | infodir=$ac_optarg ;; |
cd6ede75 UD |
988 | |
989 | -libdir | --libdir | --libdi | --libd) | |
990 | ac_prev=libdir ;; | |
991 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 992 | libdir=$ac_optarg ;; |
cd6ede75 UD |
993 | |
994 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
995 | | --libexe | --libex | --libe) | |
996 | ac_prev=libexecdir ;; | |
997 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
998 | | --libexe=* | --libex=* | --libe=*) | |
3a12e572 | 999 | libexecdir=$ac_optarg ;; |
cd6ede75 | 1000 | |
26f56c1c UD |
1001 | -localedir | --localedir | --localedi | --localed | --locale) |
1002 | ac_prev=localedir ;; | |
1003 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1004 | localedir=$ac_optarg ;; | |
1005 | ||
cd6ede75 | 1006 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
26f56c1c | 1007 | | --localstate | --localstat | --localsta | --localst | --locals) |
cd6ede75 UD |
1008 | ac_prev=localstatedir ;; |
1009 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
26f56c1c | 1010 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
3a12e572 | 1011 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
1012 | |
1013 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1014 | ac_prev=mandir ;; | |
1015 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 1016 | mandir=$ac_optarg ;; |
cd6ede75 UD |
1017 | |
1018 | -nfp | --nfp | --nf) | |
1019 | # Obsolete; use --without-fp. | |
1020 | with_fp=no ;; | |
1021 | ||
1022 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
3a12e572 | 1023 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
1024 | no_create=yes ;; |
1025 | ||
1026 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1027 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1028 | no_recursion=yes ;; | |
1029 | ||
1030 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1031 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1032 | | --oldin | --oldi | --old | --ol | --o) | |
1033 | ac_prev=oldincludedir ;; | |
1034 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1035 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1036 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
3a12e572 | 1037 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
1038 | |
1039 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1040 | ac_prev=prefix ;; | |
1041 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 1042 | prefix=$ac_optarg ;; |
cd6ede75 UD |
1043 | |
1044 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1045 | | --program-pre | --program-pr | --program-p) | |
1046 | ac_prev=program_prefix ;; | |
1047 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1048 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
3a12e572 | 1049 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
1050 | |
1051 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1052 | | --program-suf | --program-su | --program-s) | |
1053 | ac_prev=program_suffix ;; | |
1054 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1055 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
3a12e572 | 1056 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
1057 | |
1058 | -program-transform-name | --program-transform-name \ | |
1059 | | --program-transform-nam | --program-transform-na \ | |
1060 | | --program-transform-n | --program-transform- \ | |
1061 | | --program-transform | --program-transfor \ | |
1062 | | --program-transfo | --program-transf \ | |
1063 | | --program-trans | --program-tran \ | |
1064 | | --progr-tra | --program-tr | --program-t) | |
1065 | ac_prev=program_transform_name ;; | |
1066 | -program-transform-name=* | --program-transform-name=* \ | |
1067 | | --program-transform-nam=* | --program-transform-na=* \ | |
1068 | | --program-transform-n=* | --program-transform-=* \ | |
1069 | | --program-transform=* | --program-transfor=* \ | |
1070 | | --program-transfo=* | --program-transf=* \ | |
1071 | | --program-trans=* | --program-tran=* \ | |
1072 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
3a12e572 | 1073 | program_transform_name=$ac_optarg ;; |
cd6ede75 | 1074 | |
26f56c1c UD |
1075 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1076 | ac_prev=pdfdir ;; | |
1077 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1078 | pdfdir=$ac_optarg ;; | |
1079 | ||
1080 | -psdir | --psdir | --psdi | --psd | --ps) | |
1081 | ac_prev=psdir ;; | |
1082 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1083 | psdir=$ac_optarg ;; | |
1084 | ||
cd6ede75 UD |
1085 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1086 | | -silent | --silent | --silen | --sile | --sil) | |
1087 | silent=yes ;; | |
1088 | ||
1089 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1090 | ac_prev=sbindir ;; | |
1091 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1092 | | --sbi=* | --sb=*) | |
3a12e572 | 1093 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
1094 | |
1095 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1096 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1097 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1098 | | --sha | --sh) | |
1099 | ac_prev=sharedstatedir ;; | |
1100 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1101 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1102 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1103 | | --sha=* | --sh=*) | |
3a12e572 | 1104 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
1105 | |
1106 | -site | --site | --sit) | |
1107 | ac_prev=site ;; | |
1108 | -site=* | --site=* | --sit=*) | |
3a12e572 | 1109 | site=$ac_optarg ;; |
cd6ede75 UD |
1110 | |
1111 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1112 | ac_prev=srcdir ;; | |
1113 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 1114 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
1115 | |
1116 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1117 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1118 | ac_prev=sysconfdir ;; | |
1119 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1120 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
3a12e572 | 1121 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
1122 | |
1123 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 1124 | ac_prev=target_alias ;; |
cd6ede75 | 1125 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 1126 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
1127 | |
1128 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1129 | verbose=yes ;; | |
1130 | ||
3a12e572 UD |
1131 | -version | --version | --versio | --versi | --vers | -V) |
1132 | ac_init_version=: ;; | |
cd6ede75 UD |
1133 | |
1134 | -with-* | --with-*) | |
322e23db | 1135 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 1136 | # Reject names that are not valid shell variable names. |
322e23db | 1137 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 1138 | as_fn_error $? "invalid package name: $ac_useropt" |
322e23db UD |
1139 | ac_useropt_orig=$ac_useropt |
1140 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1141 | case $ac_user_opts in | |
1142 | *" | |
1143 | "with_$ac_useropt" | |
1144 | "*) ;; | |
1145 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1146 | ac_unrecognized_sep=', ';; | |
1147 | esac | |
1148 | eval with_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
1149 | |
1150 | -without-* | --without-*) | |
322e23db | 1151 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 1152 | # Reject names that are not valid shell variable names. |
322e23db | 1153 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
4a531bb0 | 1154 | as_fn_error $? "invalid package name: $ac_useropt" |
322e23db UD |
1155 | ac_useropt_orig=$ac_useropt |
1156 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1157 | case $ac_user_opts in | |
1158 | *" | |
1159 | "with_$ac_useropt" | |
1160 | "*) ;; | |
1161 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1162 | ac_unrecognized_sep=', ';; | |
1163 | esac | |
1164 | eval with_$ac_useropt=no ;; | |
cd6ede75 UD |
1165 | |
1166 | --x) | |
1167 | # Obsolete; use --with-x. | |
1168 | with_x=yes ;; | |
1169 | ||
1170 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1171 | | --x-incl | --x-inc | --x-in | --x-i) | |
1172 | ac_prev=x_includes ;; | |
1173 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1174 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
3a12e572 | 1175 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
1176 | |
1177 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1178 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1179 | ac_prev=x_libraries ;; | |
1180 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1181 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
3a12e572 | 1182 | x_libraries=$ac_optarg ;; |
cd6ede75 | 1183 | |
4a531bb0 L |
1184 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1185 | Try \`$0 --help' for more information" | |
cd6ede75 UD |
1186 | ;; |
1187 | ||
3a12e572 UD |
1188 | *=*) |
1189 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1190 | # Reject names that are not valid shell variable names. | |
b08c89d9 UD |
1191 | case $ac_envvar in #( |
1192 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
4a531bb0 | 1193 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
b08c89d9 | 1194 | esac |
26f56c1c | 1195 | eval $ac_envvar=\$ac_optarg |
3a12e572 UD |
1196 | export $ac_envvar ;; |
1197 | ||
cd6ede75 | 1198 | *) |
3a12e572 | 1199 | # FIXME: should be removed in autoconf 3.0. |
322e23db | 1200 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3a12e572 | 1201 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
322e23db | 1202 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f318beb8 | 1203 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
cd6ede75 UD |
1204 | ;; |
1205 | ||
1206 | esac | |
1207 | done | |
1208 | ||
1209 | if test -n "$ac_prev"; then | |
3a12e572 | 1210 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
4a531bb0 | 1211 | as_fn_error $? "missing argument to $ac_option" |
cd6ede75 | 1212 | fi |
cd6ede75 | 1213 | |
322e23db UD |
1214 | if test -n "$ac_unrecognized_opts"; then |
1215 | case $enable_option_checking in | |
1216 | no) ;; | |
4a531bb0 | 1217 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
322e23db UD |
1218 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1219 | esac | |
1220 | fi | |
1221 | ||
1222 | # Check all directory arguments for consistency. | |
26f56c1c UD |
1223 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1224 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1225 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e8faf483 | 1226 | libdir localedir mandir |
cd6ede75 | 1227 | do |
26f56c1c | 1228 | eval ac_val=\$$ac_var |
322e23db UD |
1229 | # Remove trailing slashes. |
1230 | case $ac_val in | |
1231 | */ ) | |
1232 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1233 | eval $ac_var=\$ac_val;; | |
1234 | esac | |
1235 | # Be sure to have absolute directory names. | |
3a12e572 | 1236 | case $ac_val in |
26f56c1c UD |
1237 | [\\/$]* | ?:[\\/]* ) continue;; |
1238 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
cd6ede75 | 1239 | esac |
4a531bb0 | 1240 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
cd6ede75 UD |
1241 | done |
1242 | ||
3a12e572 UD |
1243 | # There might be people who depend on the old broken behavior: `$host' |
1244 | # used to hold the argument of --host etc. | |
1245 | # FIXME: To remove some day. | |
1246 | build=$build_alias | |
1247 | host=$host_alias | |
1248 | target=$target_alias | |
1249 | ||
1250 | # FIXME: To remove some day. | |
1251 | if test "x$host_alias" != x; then | |
1252 | if test "x$build_alias" = x; then | |
1253 | cross_compiling=maybe | |
3a12e572 UD |
1254 | elif test "x$build_alias" != "x$host_alias"; then |
1255 | cross_compiling=yes | |
1256 | fi | |
1257 | fi | |
cd6ede75 | 1258 | |
3a12e572 UD |
1259 | ac_tool_prefix= |
1260 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1261 | ||
1262 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 1263 | |
cd6ede75 | 1264 | |
26f56c1c UD |
1265 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1266 | ac_ls_di=`ls -di .` && | |
1267 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
4a531bb0 | 1268 | as_fn_error $? "working directory cannot be determined" |
26f56c1c | 1269 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
4a531bb0 | 1270 | as_fn_error $? "pwd does not report name of working directory" |
26f56c1c UD |
1271 | |
1272 | ||
cd6ede75 UD |
1273 | # Find the source files, if location was not specified. |
1274 | if test -z "$srcdir"; then | |
1275 | ac_srcdir_defaulted=yes | |
26f56c1c | 1276 | # Try the directory containing this script, then the parent directory. |
322e23db UD |
1277 | ac_confdir=`$as_dirname -- "$as_myself" || |
1278 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1279 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1280 | X"$as_myself" : 'X\(//\)$' \| \ | |
1281 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1282 | $as_echo X"$as_myself" | | |
26f56c1c UD |
1283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1284 | s//\1/ | |
1285 | q | |
1286 | } | |
1287 | /^X\(\/\/\)[^/].*/{ | |
1288 | s//\1/ | |
1289 | q | |
1290 | } | |
1291 | /^X\(\/\/\)$/{ | |
1292 | s//\1/ | |
1293 | q | |
1294 | } | |
1295 | /^X\(\/\).*/{ | |
1296 | s//\1/ | |
1297 | q | |
1298 | } | |
1299 | s/.*/./; q'` | |
cd6ede75 | 1300 | srcdir=$ac_confdir |
26f56c1c | 1301 | if test ! -r "$srcdir/$ac_unique_file"; then |
cd6ede75 UD |
1302 | srcdir=.. |
1303 | fi | |
1304 | else | |
1305 | ac_srcdir_defaulted=no | |
1306 | fi | |
26f56c1c UD |
1307 | if test ! -r "$srcdir/$ac_unique_file"; then |
1308 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
4a531bb0 | 1309 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd6ede75 | 1310 | fi |
26f56c1c UD |
1311 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1312 | ac_abs_confdir=`( | |
4a531bb0 | 1313 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
26f56c1c UD |
1314 | pwd)` |
1315 | # When building in place, set srcdir=. | |
1316 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1317 | srcdir=. | |
1318 | fi | |
1319 | # Remove unnecessary trailing slashes from srcdir. | |
1320 | # Double slashes in file names in object file debugging info | |
1321 | # mess up M-x gdb in Emacs. | |
1322 | case $srcdir in | |
1323 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1324 | esac | |
1325 | for ac_var in $ac_precious_vars; do | |
1326 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1327 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1328 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1329 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1330 | done | |
3a12e572 UD |
1331 | |
1332 | # | |
1333 | # Report the --help message. | |
1334 | # | |
1335 | if test "$ac_init_help" = "long"; then | |
1336 | # Omit some internal or obsolete options to make the list less imposing. | |
1337 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1338 | cat <<_ACEOF | |
f4b07664 | 1339 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
1340 | |
1341 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1342 | ||
1343 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1344 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1345 | ||
1346 | Defaults for the options are specified in brackets. | |
1347 | ||
1348 | Configuration: | |
1349 | -h, --help display this help and exit | |
1350 | --help=short display options specific to this package | |
1351 | --help=recursive display the short help of all the included packages | |
1352 | -V, --version display version information and exit | |
4a531bb0 | 1353 | -q, --quiet, --silent do not print \`checking ...' messages |
3a12e572 UD |
1354 | --cache-file=FILE cache test results in FILE [disabled] |
1355 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1356 | -n, --no-create do not create output files | |
1357 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1358 | ||
3a12e572 UD |
1359 | Installation directories: |
1360 | --prefix=PREFIX install architecture-independent files in PREFIX | |
322e23db | 1361 | [$ac_default_prefix] |
3a12e572 | 1362 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
322e23db | 1363 | [PREFIX] |
3a12e572 UD |
1364 | |
1365 | By default, \`make install' will install all the files in | |
1366 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1367 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1368 | for instance \`--prefix=\$HOME'. | |
1369 | ||
1370 | For better control, use the options below. | |
1371 | ||
1372 | Fine tuning of the installation directories: | |
322e23db UD |
1373 | --bindir=DIR user executables [EPREFIX/bin] |
1374 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1375 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1376 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1377 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1378 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1379 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1380 | --includedir=DIR C header files [PREFIX/include] | |
1381 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1382 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1383 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1384 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1385 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1386 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
f318beb8 | 1387 | --docdir=DIR documentation root [DATAROOTDIR/doc/glibc] |
322e23db UD |
1388 | --htmldir=DIR html documentation [DOCDIR] |
1389 | --dvidir=DIR dvi documentation [DOCDIR] | |
1390 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1391 | --psdir=DIR ps documentation [DOCDIR] | |
3a12e572 UD |
1392 | _ACEOF |
1393 | ||
1394 | cat <<\_ACEOF | |
1395 | ||
1396 | System types: | |
1397 | --build=BUILD configure for building on BUILD [guessed] | |
1398 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1399 | _ACEOF | |
1400 | fi | |
cd6ede75 | 1401 | |
3a12e572 | 1402 | if test -n "$ac_init_help"; then |
f4b07664 RM |
1403 | case $ac_init_help in |
1404 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1405 | esac | |
3a12e572 UD |
1406 | cat <<\_ACEOF |
1407 | ||
1408 | Optional Features: | |
322e23db | 1409 | --disable-option-checking ignore unrecognized --enable/--with options |
3a12e572 UD |
1410 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1411 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
1412 | --disable-sanity-checks really do not use threads (should not be used except |
1413 | in special situations) [default=yes] | |
a0da5fe1 | 1414 | --enable-shared build shared library [default=yes if GNU ld] |
11bf311e | 1415 | --enable-profile build profiled library [default=no] |
23645707 SP |
1416 | --disable-default-pie Do not build glibc programs and the testsuite as PIE |
1417 | [default=no] | |
1cba4036 | 1418 | --disable-timezone-tools |
44f826e3 | 1419 | do not install timezone tools [default=install] |
740b3dbe L |
1420 | --enable-hardcoded-path-in-tests |
1421 | hardcode newly built glibc path in tests | |
1422 | [default=no] | |
3a12e572 | 1423 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 1424 | --enable-bind-now disable lazy relocations in DSOs |
03baef1c NA |
1425 | --enable-stack-protector=[yes|no|all|strong] |
1426 | Use -fstack-protector[-all|-strong] to detect glibc | |
1427 | buffer overflows | |
6b7f6183 | 1428 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 1429 | --disable-force-install don't force installation of files from this package, |
6b7f6183 | 1430 | even if they are older than the installed files |
8894bad3 AM |
1431 | --enable-maintainer-mode |
1432 | enable make rules and dependencies not useful (and | |
1433 | sometimes confusing) to the casual installer | |
6b7f6183 RM |
1434 | --enable-kernel=VERSION compile for compatibility with kernel not older than |
1435 | VERSION | |
3a12e572 | 1436 | --enable-all-warnings enable all useful warnings gcc can issue |
a4ecc9eb | 1437 | --disable-werror do not build with -Werror |
425ce2ed UD |
1438 | --enable-multi-arch enable single DSO with optimizations for multiple |
1439 | architectures | |
33784089 RE |
1440 | --enable-memory-tagging enable memory tagging if supported by the |
1441 | architecture [default=no] | |
e69d994a ZW |
1442 | --disable-crypt do not build nor install the passphrase hashing |
1443 | library, libcrypt | |
ff886b82 | 1444 | --enable-nss-crypt enable libcrypt to use nss |
3a097cc7 | 1445 | --enable-systemtap enable systemtap static probe points [default=no] |
c53d909c | 1446 | --disable-build-nscd disable building and installing the nscd daemon |
3cc3ef96 | 1447 | --disable-nscd library functions will not contact the nscd daemon |
e4608715 | 1448 | --enable-pt_chown Enable building and installing pt_chown |
5695d46f AS |
1449 | --enable-mathvec Enable building and installing mathvec [default |
1450 | depends on architecture] | |
f753fa7d L |
1451 | --enable-cet enable Intel Control-flow Enforcement Technology |
1452 | (CET), x86 only | |
ebae2f5a MC |
1453 | --disable-scv syscalls will not use scv instruction, even if the |
1454 | kernel supports it, powerpc only | |
3a12e572 UD |
1455 | |
1456 | Optional Packages: | |
1457 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1458 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8b748aed JM |
1459 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc" |
1460 | --with-bugurl=URL Direct users to URL to report a bug | |
3a12e572 UD |
1461 | --with-gd=DIR find libgd include dir and library with prefix DIR |
1462 | --with-gd-include=DIR find libgd include files in DIR | |
1463 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 | 1464 | --with-binutils=PATH specify location of binutils (as and ld) |
74a30a58 | 1465 | --with-selinux if building with SELinux support |
6b7f6183 | 1466 | --with-headers=PATH location of system headers to use (for example |
26f56c1c | 1467 | /usr/src/linux/include) [default=compiler default] |
6413fcde FW |
1468 | --with-nonshared-cflags=CFLAGS |
1469 | build nonshared libraries with additional CFLAGS | |
9ba202c7 FW |
1470 | --with-rtld-early-cflags=CFLAGS |
1471 | build early initialization with additional CFLAGS | |
bada2e31 L |
1472 | --with-timeoutfactor=NUM |
1473 | specify an integer to scale the timeout | |
2ceaa76a | 1474 | --with-cpu=CPU select code for CPU variant |
3a12e572 UD |
1475 | |
1476 | Some influential environment variables: | |
1477 | CC C compiler command | |
1478 | CFLAGS C compiler flags | |
1479 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1480 | nonstandard directory <lib dir> | |
26f56c1c | 1481 | LIBS libraries to pass to the linker, e.g. -l<library> |
b08c89d9 | 1482 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
26f56c1c | 1483 | you have headers in a nonstandard directory <include dir> |
3a12e572 | 1484 | CPP C preprocessor |
925c3c5c UD |
1485 | CXX C++ compiler command |
1486 | CXXFLAGS C++ compiler flags | |
3a12e572 UD |
1487 | |
1488 | Use these variables to override the choices made by `configure' or to help | |
1489 | it to find libraries and programs with nonstandard names/locations. | |
1490 | ||
a306c790 | 1491 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 1492 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
b08c89d9 | 1493 | General help using GNU software: <http://www.gnu.org/gethelp/>. |
3a12e572 | 1494 | _ACEOF |
26f56c1c | 1495 | ac_status=$? |
3a12e572 UD |
1496 | fi |
1497 | ||
1498 | if test "$ac_init_help" = "recursive"; then | |
1499 | # If there are subdirs, report their specific --help. | |
3a12e572 | 1500 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
322e23db UD |
1501 | test -d "$ac_dir" || |
1502 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1503 | continue | |
3a12e572 UD |
1504 | ac_builddir=. |
1505 | ||
26f56c1c UD |
1506 | case "$ac_dir" in |
1507 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1508 | *) | |
322e23db | 1509 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 1510 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 1511 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
1512 | case $ac_top_builddir_sub in |
1513 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1514 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1515 | esac ;; | |
1516 | esac | |
1517 | ac_abs_top_builddir=$ac_pwd | |
1518 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1519 | # for backward compatibility: | |
1520 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
1521 | |
1522 | case $srcdir in | |
26f56c1c | 1523 | .) # We are building in place. |
3a12e572 | 1524 | ac_srcdir=. |
26f56c1c UD |
1525 | ac_top_srcdir=$ac_top_builddir_sub |
1526 | ac_abs_top_srcdir=$ac_pwd ;; | |
1527 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 1528 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
1529 | ac_top_srcdir=$srcdir |
1530 | ac_abs_top_srcdir=$srcdir ;; | |
1531 | *) # Relative name. | |
1532 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1533 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1534 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 1535 | esac |
26f56c1c UD |
1536 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1537 | ||
1538 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1539 | # Check for guested configure. | |
1540 | if test -f "$ac_srcdir/configure.gnu"; then | |
1541 | echo && | |
1542 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1543 | elif test -f "$ac_srcdir/configure"; then | |
1544 | echo && | |
1545 | $SHELL "$ac_srcdir/configure" --help=recursive | |
3a12e572 | 1546 | else |
322e23db | 1547 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
26f56c1c UD |
1548 | fi || ac_status=$? |
1549 | cd "$ac_pwd" || { ac_status=$?; break; } | |
3a12e572 UD |
1550 | done |
1551 | fi | |
1552 | ||
26f56c1c | 1553 | test -n "$ac_init_help" && exit $ac_status |
3a12e572 UD |
1554 | if $ac_init_version; then |
1555 | cat <<\_ACEOF | |
f4b07664 | 1556 | GNU C Library configure (see version.h) |
f4a58f0d | 1557 | generated by GNU Autoconf 2.69 |
3a12e572 | 1558 | |
f4a58f0d | 1559 | Copyright (C) 2012 Free Software Foundation, Inc. |
3a12e572 UD |
1560 | This configure script is free software; the Free Software Foundation |
1561 | gives unlimited permission to copy, distribute and modify it. | |
1562 | _ACEOF | |
26f56c1c | 1563 | exit |
3a12e572 | 1564 | fi |
3a12e572 | 1565 | |
b08c89d9 UD |
1566 | ## ------------------------ ## |
1567 | ## Autoconf initialization. ## | |
1568 | ## ------------------------ ## | |
3a12e572 | 1569 | |
b08c89d9 UD |
1570 | # ac_fn_c_try_compile LINENO |
1571 | # -------------------------- | |
1572 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1573 | ac_fn_c_try_compile () | |
3a12e572 | 1574 | { |
b08c89d9 UD |
1575 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1576 | rm -f conftest.$ac_objext | |
1577 | if { { ac_try="$ac_compile" | |
1578 | case "(($ac_try" in | |
1579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1580 | *) ac_try_echo=$ac_try;; | |
1581 | esac | |
1582 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1583 | $as_echo "$ac_try_echo"; } >&5 | |
1584 | (eval "$ac_compile") 2>conftest.err | |
1585 | ac_status=$? | |
1586 | if test -s conftest.err; then | |
1587 | grep -v '^ *+' conftest.err >conftest.er1 | |
1588 | cat conftest.er1 >&5 | |
1589 | mv -f conftest.er1 conftest.err | |
1590 | fi | |
1591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1592 | test $ac_status = 0; } && { | |
1593 | test -z "$ac_c_werror_flag" || | |
1594 | test ! -s conftest.err | |
1595 | } && test -s conftest.$ac_objext; then : | |
1596 | ac_retval=0 | |
1597 | else | |
1598 | $as_echo "$as_me: failed program was:" >&5 | |
1599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3a12e572 | 1600 | |
b08c89d9 UD |
1601 | ac_retval=1 |
1602 | fi | |
f318beb8 | 1603 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 | 1604 | as_fn_set_status $ac_retval |
3a12e572 | 1605 | |
b08c89d9 | 1606 | } # ac_fn_c_try_compile |
3a12e572 | 1607 | |
b08c89d9 UD |
1608 | # ac_fn_cxx_try_compile LINENO |
1609 | # ---------------------------- | |
1610 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1611 | ac_fn_cxx_try_compile () | |
1612 | { | |
1613 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1614 | rm -f conftest.$ac_objext | |
1615 | if { { ac_try="$ac_compile" | |
1616 | case "(($ac_try" in | |
1617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1618 | *) ac_try_echo=$ac_try;; | |
1619 | esac | |
1620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1621 | $as_echo "$ac_try_echo"; } >&5 | |
1622 | (eval "$ac_compile") 2>conftest.err | |
1623 | ac_status=$? | |
1624 | if test -s conftest.err; then | |
1625 | grep -v '^ *+' conftest.err >conftest.er1 | |
1626 | cat conftest.er1 >&5 | |
1627 | mv -f conftest.er1 conftest.err | |
1628 | fi | |
1629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1630 | test $ac_status = 0; } && { | |
1631 | test -z "$ac_cxx_werror_flag" || | |
1632 | test ! -s conftest.err | |
1633 | } && test -s conftest.$ac_objext; then : | |
1634 | ac_retval=0 | |
1635 | else | |
1636 | $as_echo "$as_me: failed program was:" >&5 | |
1637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1638 | ||
1639 | ac_retval=1 | |
1640 | fi | |
f318beb8 | 1641 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1642 | as_fn_set_status $ac_retval |
1643 | ||
1644 | } # ac_fn_cxx_try_compile | |
1645 | ||
e4693aa7 RM |
1646 | # ac_fn_cxx_try_link LINENO |
1647 | # ------------------------- | |
1648 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1649 | ac_fn_cxx_try_link () | |
1650 | { | |
1651 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1653 | if { { ac_try="$ac_link" | |
1654 | case "(($ac_try" in | |
1655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1656 | *) ac_try_echo=$ac_try;; | |
1657 | esac | |
1658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1659 | $as_echo "$ac_try_echo"; } >&5 | |
1660 | (eval "$ac_link") 2>conftest.err | |
1661 | ac_status=$? | |
1662 | if test -s conftest.err; then | |
1663 | grep -v '^ *+' conftest.err >conftest.er1 | |
1664 | cat conftest.er1 >&5 | |
1665 | mv -f conftest.er1 conftest.err | |
1666 | fi | |
1667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1668 | test $ac_status = 0; } && { | |
1669 | test -z "$ac_cxx_werror_flag" || | |
1670 | test ! -s conftest.err | |
1671 | } && test -s conftest$ac_exeext && { | |
1672 | test "$cross_compiling" = yes || | |
1673 | test -x conftest$ac_exeext | |
1674 | }; then : | |
1675 | ac_retval=0 | |
1676 | else | |
1677 | $as_echo "$as_me: failed program was:" >&5 | |
1678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1679 | ||
1680 | ac_retval=1 | |
1681 | fi | |
1682 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1683 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1684 | # interfere with the next link command; also delete a directory that is | |
1685 | # left behind by Apple's compiler. We do this before executing the actions. | |
1686 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1687 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1688 | as_fn_set_status $ac_retval | |
1689 | ||
1690 | } # ac_fn_cxx_try_link | |
1691 | ||
b08c89d9 UD |
1692 | # ac_fn_c_try_link LINENO |
1693 | # ----------------------- | |
1694 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1695 | ac_fn_c_try_link () | |
1696 | { | |
1697 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1699 | if { { ac_try="$ac_link" | |
1700 | case "(($ac_try" in | |
1701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1702 | *) ac_try_echo=$ac_try;; | |
1703 | esac | |
1704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1705 | $as_echo "$ac_try_echo"; } >&5 | |
1706 | (eval "$ac_link") 2>conftest.err | |
1707 | ac_status=$? | |
1708 | if test -s conftest.err; then | |
1709 | grep -v '^ *+' conftest.err >conftest.er1 | |
1710 | cat conftest.er1 >&5 | |
1711 | mv -f conftest.er1 conftest.err | |
1712 | fi | |
1713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1714 | test $ac_status = 0; } && { | |
1715 | test -z "$ac_c_werror_flag" || | |
1716 | test ! -s conftest.err | |
1717 | } && test -s conftest$ac_exeext && { | |
1718 | test "$cross_compiling" = yes || | |
f4a58f0d | 1719 | test -x conftest$ac_exeext |
b08c89d9 UD |
1720 | }; then : |
1721 | ac_retval=0 | |
1722 | else | |
1723 | $as_echo "$as_me: failed program was:" >&5 | |
1724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1725 | ||
1726 | ac_retval=1 | |
1727 | fi | |
1728 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1729 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1730 | # interfere with the next link command; also delete a directory that is | |
1731 | # left behind by Apple's compiler. We do this before executing the actions. | |
1732 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f318beb8 | 1733 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1734 | as_fn_set_status $ac_retval |
1735 | ||
1736 | } # ac_fn_c_try_link | |
b190bccc NT |
1737 | |
1738 | # ac_fn_c_try_cpp LINENO | |
1739 | # ---------------------- | |
1740 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1741 | ac_fn_c_try_cpp () | |
1742 | { | |
1743 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1744 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1745 | case "(($ac_try" in | |
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1747 | *) ac_try_echo=$ac_try;; | |
1748 | esac | |
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1750 | $as_echo "$ac_try_echo"; } >&5 | |
1751 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1752 | ac_status=$? | |
1753 | if test -s conftest.err; then | |
1754 | grep -v '^ *+' conftest.err >conftest.er1 | |
1755 | cat conftest.er1 >&5 | |
1756 | mv -f conftest.er1 conftest.err | |
1757 | fi | |
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; } > conftest.i && { | |
1760 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1761 | test ! -s conftest.err | |
1762 | }; then : | |
1763 | ac_retval=0 | |
1764 | else | |
1765 | $as_echo "$as_me: failed program was:" >&5 | |
1766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1767 | ||
1768 | ac_retval=1 | |
1769 | fi | |
1770 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1771 | as_fn_set_status $ac_retval | |
1772 | ||
1773 | } # ac_fn_c_try_cpp | |
b08c89d9 UD |
1774 | cat >config.log <<_ACEOF |
1775 | This file contains any messages produced by compilers while | |
1776 | running configure, to aid debugging if configure makes a mistake. | |
1777 | ||
1778 | It was created by GNU C Library $as_me (see version.h), which was | |
f4a58f0d | 1779 | generated by GNU Autoconf 2.69. Invocation command line was |
b08c89d9 UD |
1780 | |
1781 | $ $0 $@ | |
1782 | ||
1783 | _ACEOF | |
1784 | exec 5>>config.log | |
1785 | { | |
1786 | cat <<_ASUNAME | |
1787 | ## --------- ## | |
1788 | ## Platform. ## | |
1789 | ## --------- ## | |
1790 | ||
1791 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1792 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1793 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1794 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1795 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1796 | ||
1797 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1798 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1799 | ||
1800 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1801 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1802 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1803 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1804 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1805 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1806 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1807 | ||
1808 | _ASUNAME | |
3a12e572 UD |
1809 | |
1810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1811 | for as_dir in $PATH | |
1812 | do | |
1813 | IFS=$as_save_IFS | |
1814 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
1815 | $as_echo "PATH: $as_dir" |
1816 | done | |
26f56c1c | 1817 | IFS=$as_save_IFS |
3a12e572 UD |
1818 | |
1819 | } >&5 | |
1820 | ||
1821 | cat >&5 <<_ACEOF | |
1822 | ||
1823 | ||
1824 | ## ----------- ## | |
1825 | ## Core tests. ## | |
1826 | ## ----------- ## | |
1827 | ||
1828 | _ACEOF | |
1829 | ||
1830 | ||
1831 | # Keep a trace of the command line. | |
1832 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2abf9ff1 | 1833 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1834 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1835 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1836 | ac_configure_args= |
2abf9ff1 RM |
1837 | ac_configure_args0= |
1838 | ac_configure_args1= | |
2abf9ff1 RM |
1839 | ac_must_keep_next=false |
1840 | for ac_pass in 1 2 | |
3a12e572 | 1841 | do |
2abf9ff1 RM |
1842 | for ac_arg |
1843 | do | |
1844 | case $ac_arg in | |
1845 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1846 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1847 | | -silent | --silent | --silen | --sile | --sil) | |
1848 | continue ;; | |
26f56c1c | 1849 | *\'*) |
322e23db | 1850 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2abf9ff1 RM |
1851 | esac |
1852 | case $ac_pass in | |
b08c89d9 | 1853 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2abf9ff1 | 1854 | 2) |
b08c89d9 | 1855 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2abf9ff1 | 1856 | if test $ac_must_keep_next = true; then |
9382fcee | 1857 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1858 | else |
9382fcee RM |
1859 | case $ac_arg in |
1860 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1861 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1862 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1863 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1864 | case "$ac_configure_args0 " in | |
1865 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1866 | esac | |
1867 | ;; | |
1868 | -* ) ac_must_keep_next=true ;; | |
1869 | esac | |
2abf9ff1 | 1870 | fi |
b08c89d9 | 1871 | as_fn_append ac_configure_args " '$ac_arg'" |
2abf9ff1 RM |
1872 | ;; |
1873 | esac | |
1874 | done | |
3a12e572 | 1875 | done |
b08c89d9 UD |
1876 | { ac_configure_args0=; unset ac_configure_args0;} |
1877 | { ac_configure_args1=; unset ac_configure_args1;} | |
3a12e572 UD |
1878 | |
1879 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1880 | # config.log. We remove comments because anyway the quotes in there | |
1881 | # would cause problems or look ugly. | |
26f56c1c UD |
1882 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1883 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3a12e572 UD |
1884 | trap 'exit_status=$? |
1885 | # Save into config.log some information that might help in debugging. | |
1886 | { | |
1887 | echo | |
f4b07664 | 1888 | |
4a531bb0 | 1889 | $as_echo "## ---------------- ## |
3a12e572 | 1890 | ## Cache variables. ## |
4a531bb0 | 1891 | ## ---------------- ##" |
3a12e572 UD |
1892 | echo |
1893 | # The following way of writing the cache mishandles newlines in values, | |
26f56c1c UD |
1894 | ( |
1895 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1896 | eval ac_val=\$$ac_var | |
1897 | case $ac_val in #( | |
1898 | *${as_nl}*) | |
1899 | case $ac_var in #( | |
b08c89d9 | 1900 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
322e23db | 1901 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
26f56c1c UD |
1902 | esac |
1903 | case $ac_var in #( | |
1904 | _ | IFS | as_nl) ;; #( | |
322e23db | 1905 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 1906 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
1907 | esac ;; |
1908 | esac | |
1909 | done | |
3a12e572 | 1910 | (set) 2>&1 | |
26f56c1c UD |
1911 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1912 | *${as_nl}ac_space=\ *) | |
3a12e572 | 1913 | sed -n \ |
26f56c1c UD |
1914 | "s/'\''/'\''\\\\'\'''\''/g; |
1915 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1916 | ;; #( | |
3a12e572 | 1917 | *) |
26f56c1c | 1918 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 1919 | ;; |
26f56c1c UD |
1920 | esac | |
1921 | sort | |
1922 | ) | |
3a12e572 | 1923 | echo |
f4b07664 | 1924 | |
4a531bb0 | 1925 | $as_echo "## ----------------- ## |
f4b07664 | 1926 | ## Output variables. ## |
4a531bb0 | 1927 | ## ----------------- ##" |
f4b07664 RM |
1928 | echo |
1929 | for ac_var in $ac_subst_vars | |
1930 | do | |
26f56c1c UD |
1931 | eval ac_val=\$$ac_var |
1932 | case $ac_val in | |
322e23db | 1933 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 1934 | esac |
322e23db | 1935 | $as_echo "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
1936 | done | sort |
1937 | echo | |
1938 | ||
1939 | if test -n "$ac_subst_files"; then | |
4a531bb0 | 1940 | $as_echo "## ------------------- ## |
26f56c1c | 1941 | ## File substitutions. ## |
4a531bb0 | 1942 | ## ------------------- ##" |
f4b07664 RM |
1943 | echo |
1944 | for ac_var in $ac_subst_files | |
1945 | do | |
26f56c1c UD |
1946 | eval ac_val=\$$ac_var |
1947 | case $ac_val in | |
322e23db | 1948 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 1949 | esac |
322e23db | 1950 | $as_echo "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
1951 | done | sort |
1952 | echo | |
1953 | fi | |
1954 | ||
3a12e572 | 1955 | if test -s confdefs.h; then |
4a531bb0 | 1956 | $as_echo "## ----------- ## |
3a12e572 | 1957 | ## confdefs.h. ## |
4a531bb0 | 1958 | ## ----------- ##" |
3a12e572 | 1959 | echo |
26f56c1c | 1960 | cat confdefs.h |
3a12e572 UD |
1961 | echo |
1962 | fi | |
1963 | test "$ac_signal" != 0 && | |
322e23db UD |
1964 | $as_echo "$as_me: caught signal $ac_signal" |
1965 | $as_echo "$as_me: exit $exit_status" | |
3a12e572 | 1966 | } >&5 |
26f56c1c UD |
1967 | rm -f core *.core core.conftest.* && |
1968 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3a12e572 | 1969 | exit $exit_status |
26f56c1c | 1970 | ' 0 |
3a12e572 | 1971 | for ac_signal in 1 2 13 15; do |
b08c89d9 | 1972 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
3a12e572 UD |
1973 | done |
1974 | ac_signal=0 | |
1975 | ||
1976 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
26f56c1c | 1977 | rm -f -r conftest* confdefs.h |
3a12e572 | 1978 | |
b08c89d9 UD |
1979 | $as_echo "/* confdefs.h */" > confdefs.h |
1980 | ||
3a12e572 UD |
1981 | # Predefined preprocessor variables. |
1982 | ||
1983 | cat >>confdefs.h <<_ACEOF | |
1984 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1985 | _ACEOF | |
1986 | ||
3a12e572 UD |
1987 | cat >>confdefs.h <<_ACEOF |
1988 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1989 | _ACEOF | |
1990 | ||
3a12e572 UD |
1991 | cat >>confdefs.h <<_ACEOF |
1992 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1993 | _ACEOF | |
1994 | ||
3a12e572 UD |
1995 | cat >>confdefs.h <<_ACEOF |
1996 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1997 | _ACEOF | |
1998 | ||
3a12e572 UD |
1999 | cat >>confdefs.h <<_ACEOF |
2000 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2001 | _ACEOF | |
2002 | ||
b08c89d9 UD |
2003 | cat >>confdefs.h <<_ACEOF |
2004 | #define PACKAGE_URL "$PACKAGE_URL" | |
2005 | _ACEOF | |
2006 | ||
3a12e572 UD |
2007 | |
2008 | # Let the site file select an alternate cache file if it wants to. | |
322e23db UD |
2009 | # Prefer an explicitly selected file to automatically selected ones. |
2010 | ac_site_file1=NONE | |
2011 | ac_site_file2=NONE | |
26f56c1c | 2012 | if test -n "$CONFIG_SITE"; then |
4a531bb0 L |
2013 | # We do not want a PATH search for config.site. |
2014 | case $CONFIG_SITE in #(( | |
2015 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2016 | */*) ac_site_file1=$CONFIG_SITE;; | |
2017 | *) ac_site_file1=./$CONFIG_SITE;; | |
2018 | esac | |
26f56c1c | 2019 | elif test "x$prefix" != xNONE; then |
322e23db UD |
2020 | ac_site_file1=$prefix/share/config.site |
2021 | ac_site_file2=$prefix/etc/config.site | |
26f56c1c | 2022 | else |
322e23db UD |
2023 | ac_site_file1=$ac_default_prefix/share/config.site |
2024 | ac_site_file2=$ac_default_prefix/etc/config.site | |
cd6ede75 | 2025 | fi |
322e23db | 2026 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
26f56c1c | 2027 | do |
322e23db | 2028 | test "x$ac_site_file" = xNONE && continue |
b08c89d9 UD |
2029 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2030 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
322e23db | 2031 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
3a12e572 | 2032 | sed 's/^/| /' "$ac_site_file" >&5 |
4a531bb0 L |
2033 | . "$ac_site_file" \ |
2034 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2035 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2036 | as_fn_error $? "failed to load site script $ac_site_file | |
2037 | See \`config.log' for more details" "$LINENO" 5; } | |
cd6ede75 UD |
2038 | fi |
2039 | done | |
2040 | ||
2041 | if test -r "$cache_file"; then | |
b08c89d9 UD |
2042 | # Some versions of bash will fail to source /dev/null (special files |
2043 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2044 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
322e23db | 2046 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
3a12e572 | 2047 | case $cache_file in |
26f56c1c UD |
2048 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2049 | *) . "./$cache_file";; | |
3a12e572 UD |
2050 | esac |
2051 | fi | |
cd6ede75 | 2052 | else |
b08c89d9 | 2053 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
322e23db | 2054 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
3a12e572 UD |
2055 | >$cache_file |
2056 | fi | |
2057 | ||
2058 | # Check that the precious variables saved in the cache have kept the same | |
2059 | # value. | |
2060 | ac_cache_corrupted=false | |
26f56c1c | 2061 | for ac_var in $ac_precious_vars; do |
3a12e572 UD |
2062 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2063 | eval ac_new_set=\$ac_env_${ac_var}_set | |
26f56c1c UD |
2064 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2065 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3a12e572 UD |
2066 | case $ac_old_set,$ac_new_set in |
2067 | set,) | |
b08c89d9 | 2068 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
322e23db | 2069 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
3a12e572 UD |
2070 | ac_cache_corrupted=: ;; |
2071 | ,set) | |
b08c89d9 | 2072 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
322e23db | 2073 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
3a12e572 UD |
2074 | ac_cache_corrupted=: ;; |
2075 | ,);; | |
2076 | *) | |
2077 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
322e23db UD |
2078 | # differences in whitespace do not lead to failure. |
2079 | ac_old_val_w=`echo x $ac_old_val` | |
2080 | ac_new_val_w=`echo x $ac_new_val` | |
2081 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
b08c89d9 | 2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
322e23db UD |
2083 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2084 | ac_cache_corrupted=: | |
2085 | else | |
b08c89d9 | 2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
322e23db UD |
2087 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2088 | eval $ac_var=\$ac_old_val | |
2089 | fi | |
b08c89d9 | 2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
322e23db | 2091 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
b08c89d9 | 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
322e23db | 2093 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
3a12e572 UD |
2094 | fi;; |
2095 | esac | |
2096 | # Pass precious variables to config.status. | |
2097 | if test "$ac_new_set" = set; then | |
2098 | case $ac_new_val in | |
322e23db | 2099 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3a12e572 UD |
2100 | *) ac_arg=$ac_var=$ac_new_val ;; |
2101 | esac | |
2102 | case " $ac_configure_args " in | |
2103 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b08c89d9 | 2104 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3a12e572 UD |
2105 | esac |
2106 | fi | |
2107 | done | |
2108 | if $ac_cache_corrupted; then | |
b08c89d9 | 2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
322e23db | 2110 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b08c89d9 | 2111 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
322e23db | 2112 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
4a531bb0 | 2113 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
cd6ede75 | 2114 | fi |
b08c89d9 UD |
2115 | ## -------------------- ## |
2116 | ## Main body of script. ## | |
2117 | ## -------------------- ## | |
cd6ede75 | 2118 | |
b08c89d9 UD |
2119 | ac_ext=c |
2120 | ac_cpp='$CPP $CPPFLAGS' | |
2121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3a12e572 UD |
2124 | |
2125 | ||
cd6ede75 | 2126 | |
b08c89d9 | 2127 | ac_config_headers="$ac_config_headers config.h" |
63bda0c1 | 2128 | |
b08c89d9 UD |
2129 | ac_aux_dir= |
2130 | for ac_dir in scripts "$srcdir"/scripts; do | |
4a531bb0 L |
2131 | if test -f "$ac_dir/install-sh"; then |
2132 | ac_aux_dir=$ac_dir | |
2133 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2134 | break | |
2135 | elif test -f "$ac_dir/install.sh"; then | |
2136 | ac_aux_dir=$ac_dir | |
2137 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2138 | break | |
2139 | elif test -f "$ac_dir/shtool"; then | |
2140 | ac_aux_dir=$ac_dir | |
2141 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2142 | break | |
2143 | fi | |
b08c89d9 UD |
2144 | done |
2145 | if test -z "$ac_aux_dir"; then | |
4a531bb0 | 2146 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5 |
b08c89d9 | 2147 | fi |
26f56c1c UD |
2148 | |
2149 | # These three variables are undocumented and unsupported, | |
2150 | # and are intended to be withdrawn in a future Autoconf release. | |
2151 | # They can cause serious problems if a builder's source tree is in a directory | |
2152 | # whose full name contains unusual characters. | |
2153 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2154 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2155 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2156 | ||
444518fe | 2157 | |
cd6ede75 | 2158 | |
8b748aed JM |
2159 | |
2160 | ||
2161 | # Check whether --with-pkgversion was given. | |
2162 | if test "${with_pkgversion+set}" = set; then : | |
2163 | withval=$with_pkgversion; case "$withval" in | |
2164 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2165 | no) PKGVERSION= ;; | |
2166 | *) PKGVERSION="($withval) " ;; | |
2167 | esac | |
2168 | else | |
2169 | PKGVERSION="(GNU libc) " | |
2170 | ||
2171 | fi | |
2172 | ||
2173 | PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` | |
2174 | ||
2175 | ||
2176 | ||
2177 | ||
2178 | ||
2179 | # Check whether --with-bugurl was given. | |
2180 | if test "${with_bugurl+set}" = set; then : | |
2181 | withval=$with_bugurl; case "$withval" in | |
2182 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2183 | no) BUGURL= | |
2184 | ;; | |
2185 | *) BUGURL="$withval" | |
2186 | ;; | |
2187 | esac | |
2188 | else | |
5a82c748 | 2189 | BUGURL="https://www.gnu.org/software/libc/bugs.html" |
8b748aed JM |
2190 | |
2191 | fi | |
2192 | ||
2193 | case ${BUGURL} in | |
2194 | "") | |
2195 | REPORT_BUGS_TO= | |
2196 | REPORT_BUGS_TEXI= | |
2197 | ;; | |
2198 | *) | |
2199 | REPORT_BUGS_TO="<$BUGURL>" | |
2200 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2201 | ;; | |
2202 | esac; | |
2203 | ||
2204 | ||
2205 | ||
2206 | ||
2207 | cat >>confdefs.h <<_ACEOF | |
2208 | #define PKGVERSION "$PKGVERSION" | |
2209 | _ACEOF | |
2210 | ||
2211 | ||
2212 | cat >>confdefs.h <<_ACEOF | |
2213 | #define REPORT_BUGS_TO "$REPORT_BUGS_TO" | |
2214 | _ACEOF | |
2215 | ||
2216 | ||
918b5606 L |
2217 | # Glibc should not depend on any header files |
2218 | ||
2219 | ||
bb931195 TS |
2220 | # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP |
2221 | # here to work around the Autoconf issue discussed in | |
a306c790 | 2222 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>. |
bb931195 TS |
2223 | # AC_PROG_CPP |
2224 | ||
b5a5da23 TS |
2225 | # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf |
2226 | # issue discussed in | |
a306c790 | 2227 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>. |
b5a5da23 TS |
2228 | |
2229 | ||
7967983f RM |
2230 | |
2231 | ||
2232 | subdirs="$subdirs " | |
2233 | ||
2234 | ||
c16a054d AS |
2235 | # Make sure we can run config.sub. |
2236 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4a531bb0 | 2237 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
c16a054d | 2238 | |
b08c89d9 | 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
c16a054d | 2240 | $as_echo_n "checking build system type... " >&6; } |
f318beb8 | 2241 | if ${ac_cv_build+:} false; then : |
c16a054d AS |
2242 | $as_echo_n "(cached) " >&6 |
2243 | else | |
2244 | ac_build_alias=$build_alias | |
2245 | test "x$ac_build_alias" = x && | |
2246 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2247 | test "x$ac_build_alias" = x && | |
4a531bb0 | 2248 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
c16a054d | 2249 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
4a531bb0 | 2250 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
c16a054d AS |
2251 | |
2252 | fi | |
b08c89d9 | 2253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
c16a054d AS |
2254 | $as_echo "$ac_cv_build" >&6; } |
2255 | case $ac_cv_build in | |
2256 | *-*-*) ;; | |
4a531bb0 | 2257 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
c16a054d AS |
2258 | esac |
2259 | build=$ac_cv_build | |
2260 | ac_save_IFS=$IFS; IFS='-' | |
2261 | set x $ac_cv_build | |
2262 | shift | |
2263 | build_cpu=$1 | |
2264 | build_vendor=$2 | |
2265 | shift; shift | |
2266 | # Remember, the first character of IFS is used to create $*, | |
2267 | # except with old shells: | |
2268 | build_os=$* | |
2269 | IFS=$ac_save_IFS | |
2270 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2271 | ||
2272 | ||
b08c89d9 | 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
c16a054d | 2274 | $as_echo_n "checking host system type... " >&6; } |
f318beb8 | 2275 | if ${ac_cv_host+:} false; then : |
c16a054d AS |
2276 | $as_echo_n "(cached) " >&6 |
2277 | else | |
2278 | if test "x$host_alias" = x; then | |
2279 | ac_cv_host=$ac_cv_build | |
2280 | else | |
2281 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4a531bb0 | 2282 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
c16a054d AS |
2283 | fi |
2284 | ||
2285 | fi | |
b08c89d9 | 2286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
c16a054d AS |
2287 | $as_echo "$ac_cv_host" >&6; } |
2288 | case $ac_cv_host in | |
2289 | *-*-*) ;; | |
4a531bb0 | 2290 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
c16a054d AS |
2291 | esac |
2292 | host=$ac_cv_host | |
2293 | ac_save_IFS=$IFS; IFS='-' | |
2294 | set x $ac_cv_host | |
2295 | shift | |
2296 | host_cpu=$1 | |
2297 | host_vendor=$2 | |
2298 | shift; shift | |
2299 | # Remember, the first character of IFS is used to create $*, | |
2300 | # except with old shells: | |
2301 | host_os=$* | |
2302 | IFS=$ac_save_IFS | |
2303 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2304 | ||
2305 | ||
2306 | ||
a152f366 UD |
2307 | ac_ext=c |
2308 | ac_cpp='$CPP $CPPFLAGS' | |
2309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2312 | if test -n "$ac_tool_prefix"; then | |
2313 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2314 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b08c89d9 | 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2316 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2317 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2318 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2319 | else |
2320 | if test -n "$CC"; then | |
2321 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2322 | else | |
2323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2324 | for as_dir in $PATH | |
2325 | do | |
2326 | IFS=$as_save_IFS | |
2327 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2328 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2329 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2330 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b08c89d9 | 2331 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2332 | break 2 |
2333 | fi | |
2334 | done | |
b08c89d9 | 2335 | done |
a152f366 | 2336 | IFS=$as_save_IFS |
c8f3e6db | 2337 | |
26f56c1c | 2338 | fi |
26f56c1c | 2339 | fi |
a152f366 UD |
2340 | CC=$ac_cv_prog_CC |
2341 | if test -n "$CC"; then | |
b08c89d9 | 2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2343 | $as_echo "$CC" >&6; } |
a152f366 | 2344 | else |
b08c89d9 | 2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2346 | $as_echo "no" >&6; } |
26f56c1c UD |
2347 | fi |
2348 | ||
e41db95b | 2349 | |
e41db95b | 2350 | fi |
a152f366 UD |
2351 | if test -z "$ac_cv_prog_CC"; then |
2352 | ac_ct_CC=$CC | |
2353 | # Extract the first word of "gcc", so it can be a program name with args. | |
2354 | set dummy gcc; ac_word=$2 | |
b08c89d9 | 2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2356 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2357 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
322e23db | 2358 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 2359 | else |
a152f366 UD |
2360 | if test -n "$ac_ct_CC"; then |
2361 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a5a0310d | 2362 | else |
a152f366 UD |
2363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2364 | for as_dir in $PATH | |
2365 | do | |
2366 | IFS=$as_save_IFS | |
2367 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2368 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2369 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2370 | ac_cv_prog_ac_ct_CC="gcc" |
b08c89d9 | 2371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2372 | break 2 |
2373 | fi | |
2374 | done | |
b08c89d9 | 2375 | done |
a152f366 | 2376 | IFS=$as_save_IFS |
cd6ede75 | 2377 | |
a152f366 UD |
2378 | fi |
2379 | fi | |
2380 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2381 | if test -n "$ac_ct_CC"; then | |
b08c89d9 | 2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
322e23db | 2383 | $as_echo "$ac_ct_CC" >&6; } |
cd6ede75 | 2384 | else |
b08c89d9 | 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2386 | $as_echo "no" >&6; } |
26f56c1c UD |
2387 | fi |
2388 | ||
a152f366 UD |
2389 | if test "x$ac_ct_CC" = x; then |
2390 | CC="" | |
2391 | else | |
2392 | case $cross_compiling:$ac_tool_warned in | |
2393 | yes:) | |
b08c89d9 | 2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
322e23db | 2395 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
a152f366 UD |
2396 | ac_tool_warned=yes ;; |
2397 | esac | |
2398 | CC=$ac_ct_CC | |
2399 | fi | |
74a30a58 | 2400 | else |
a152f366 | 2401 | CC="$ac_cv_prog_CC" |
26f56c1c UD |
2402 | fi |
2403 | ||
a152f366 UD |
2404 | if test -z "$CC"; then |
2405 | if test -n "$ac_tool_prefix"; then | |
2406 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2407 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
b08c89d9 | 2408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2409 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2410 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2411 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2412 | else |
2413 | if test -n "$CC"; then | |
2414 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2415 | else | |
2416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2417 | for as_dir in $PATH | |
2418 | do | |
2419 | IFS=$as_save_IFS | |
2420 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2421 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2422 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2423 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b08c89d9 | 2424 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2425 | break 2 |
2426 | fi | |
2427 | done | |
b08c89d9 | 2428 | done |
a152f366 | 2429 | IFS=$as_save_IFS |
74a30a58 | 2430 | |
a152f366 UD |
2431 | fi |
2432 | fi | |
2433 | CC=$ac_cv_prog_CC | |
2434 | if test -n "$CC"; then | |
b08c89d9 | 2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2436 | $as_echo "$CC" >&6; } |
5af3245a | 2437 | else |
b08c89d9 | 2438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2439 | $as_echo "no" >&6; } |
26f56c1c UD |
2440 | fi |
2441 | ||
5af3245a | 2442 | |
a152f366 | 2443 | fi |
26f56c1c | 2444 | fi |
a152f366 UD |
2445 | if test -z "$CC"; then |
2446 | # Extract the first word of "cc", so it can be a program name with args. | |
2447 | set dummy cc; ac_word=$2 | |
b08c89d9 | 2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2449 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2450 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2451 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2452 | else |
2453 | if test -n "$CC"; then | |
2454 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2455 | else | |
2456 | ac_prog_rejected=no | |
2457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2458 | for as_dir in $PATH | |
2459 | do | |
2460 | IFS=$as_save_IFS | |
2461 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2462 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2463 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 UD |
2464 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2465 | ac_prog_rejected=yes | |
2466 | continue | |
2467 | fi | |
2468 | ac_cv_prog_CC="cc" | |
b08c89d9 | 2469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2470 | break 2 |
2471 | fi | |
2472 | done | |
b08c89d9 | 2473 | done |
a152f366 | 2474 | IFS=$as_save_IFS |
26f56c1c | 2475 | |
a152f366 UD |
2476 | if test $ac_prog_rejected = yes; then |
2477 | # We found a bogon in the path, so make sure we never use it. | |
2478 | set dummy $ac_cv_prog_CC | |
2479 | shift | |
2480 | if test $# != 0; then | |
2481 | # We chose a different compiler from the bogus one. | |
2482 | # However, it has the same basename, so the bogon will be chosen | |
2483 | # first if we set CC to just the basename; use the full file name. | |
2484 | shift | |
2485 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
6b3f2b3d | 2486 | fi |
4442d7e8 | 2487 | fi |
26f56c1c | 2488 | fi |
26f56c1c | 2489 | fi |
a152f366 UD |
2490 | CC=$ac_cv_prog_CC |
2491 | if test -n "$CC"; then | |
b08c89d9 | 2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2493 | $as_echo "$CC" >&6; } |
7dbde9db | 2494 | else |
b08c89d9 | 2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2496 | $as_echo "no" >&6; } |
26f56c1c UD |
2497 | fi |
2498 | ||
7dbde9db | 2499 | |
26f56c1c | 2500 | fi |
a152f366 UD |
2501 | if test -z "$CC"; then |
2502 | if test -n "$ac_tool_prefix"; then | |
2503 | for ac_prog in cl.exe | |
2504 | do | |
2505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b08c89d9 | 2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2508 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2509 | if ${ac_cv_prog_CC+:} false; then : |
322e23db | 2510 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 2511 | else |
a152f366 UD |
2512 | if test -n "$CC"; then |
2513 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 2514 | else |
a152f366 UD |
2515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2516 | for as_dir in $PATH | |
2517 | do | |
2518 | IFS=$as_save_IFS | |
2519 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2520 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2522 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b08c89d9 | 2523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2524 | break 2 |
2525 | fi | |
2526 | done | |
b08c89d9 | 2527 | done |
a152f366 | 2528 | IFS=$as_save_IFS |
26f56c1c | 2529 | |
26f56c1c | 2530 | fi |
a152f366 UD |
2531 | fi |
2532 | CC=$ac_cv_prog_CC | |
2533 | if test -n "$CC"; then | |
b08c89d9 | 2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
322e23db | 2535 | $as_echo "$CC" >&6; } |
650425ce | 2536 | else |
b08c89d9 | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2538 | $as_echo "no" >&6; } |
26f56c1c UD |
2539 | fi |
2540 | ||
cd6ede75 | 2541 | |
a152f366 UD |
2542 | test -n "$CC" && break |
2543 | done | |
26f56c1c | 2544 | fi |
a152f366 UD |
2545 | if test -z "$CC"; then |
2546 | ac_ct_CC=$CC | |
2547 | for ac_prog in cl.exe | |
2548 | do | |
2549 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2550 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2552 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2553 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
322e23db | 2554 | $as_echo_n "(cached) " >&6 |
62ab42d6 | 2555 | else |
a152f366 UD |
2556 | if test -n "$ac_ct_CC"; then |
2557 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2558 | else | |
2559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2560 | for as_dir in $PATH | |
2561 | do | |
2562 | IFS=$as_save_IFS | |
2563 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2564 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2565 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2566 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b08c89d9 | 2567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2568 | break 2 |
2569 | fi | |
2570 | done | |
b08c89d9 | 2571 | done |
a152f366 | 2572 | IFS=$as_save_IFS |
62ab42d6 UD |
2573 | |
2574 | fi | |
a152f366 UD |
2575 | fi |
2576 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2577 | if test -n "$ac_ct_CC"; then | |
b08c89d9 | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
322e23db | 2579 | $as_echo "$ac_ct_CC" >&6; } |
35f1e827 | 2580 | else |
b08c89d9 | 2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2582 | $as_echo "no" >&6; } |
26f56c1c UD |
2583 | fi |
2584 | ||
35f1e827 | 2585 | |
a152f366 UD |
2586 | test -n "$ac_ct_CC" && break |
2587 | done | |
35f1e827 | 2588 | |
a152f366 UD |
2589 | if test "x$ac_ct_CC" = x; then |
2590 | CC="" | |
2591 | else | |
2592 | case $cross_compiling:$ac_tool_warned in | |
2593 | yes:) | |
b08c89d9 | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
322e23db | 2595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
a152f366 UD |
2596 | ac_tool_warned=yes ;; |
2597 | esac | |
2598 | CC=$ac_ct_CC | |
2599 | fi | |
26f56c1c | 2600 | fi |
cd6ede75 | 2601 | |
26f56c1c | 2602 | fi |
8d4b5a8a UD |
2603 | |
2604 | ||
b08c89d9 | 2605 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
322e23db | 2606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4a531bb0 L |
2607 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2608 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 2609 | |
a152f366 | 2610 | # Provide some information about the compiler. |
b08c89d9 | 2611 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
322e23db UD |
2612 | set X $ac_compile |
2613 | ac_compiler=$2 | |
b08c89d9 UD |
2614 | for ac_option in --version -v -V -qversion; do |
2615 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
2616 | case "(($ac_try" in |
2617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2618 | *) ac_try_echo=$ac_try;; | |
2619 | esac | |
b08c89d9 UD |
2620 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2621 | $as_echo "$ac_try_echo"; } >&5 | |
2622 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
a152f366 | 2623 | ac_status=$? |
b08c89d9 UD |
2624 | if test -s conftest.err; then |
2625 | sed '10a\ | |
2626 | ... rest of stderr output deleted ... | |
2627 | 10q' conftest.err >conftest.er1 | |
2628 | cat conftest.er1 >&5 | |
2629 | fi | |
2630 | rm -f conftest.er1 conftest.err | |
2631 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2632 | test $ac_status = 0; } | |
2633 | done | |
26f56c1c | 2634 | |
a152f366 | 2635 | EXEEXT= |
b08c89d9 | 2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
322e23db | 2637 | $as_echo_n "checking for suffix of object files... " >&6; } |
f318beb8 | 2638 | if ${ac_cv_objext+:} false; then : |
322e23db | 2639 | $as_echo_n "(cached) " >&6 |
749a9a4f | 2640 | else |
b08c89d9 | 2641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2642 | /* end confdefs.h. */ |
749a9a4f | 2643 | |
a152f366 UD |
2644 | int |
2645 | main () | |
2646 | { | |
749a9a4f | 2647 | |
a152f366 UD |
2648 | ; |
2649 | return 0; | |
2650 | } | |
2651 | _ACEOF | |
2652 | rm -f conftest.o conftest.obj | |
b08c89d9 | 2653 | if { { ac_try="$ac_compile" |
a152f366 UD |
2654 | case "(($ac_try" in |
2655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2656 | *) ac_try_echo=$ac_try;; | |
2657 | esac | |
b08c89d9 UD |
2658 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2659 | $as_echo "$ac_try_echo"; } >&5 | |
a152f366 UD |
2660 | (eval "$ac_compile") 2>&5 |
2661 | ac_status=$? | |
b08c89d9 UD |
2662 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2663 | test $ac_status = 0; }; then : | |
a152f366 UD |
2664 | for ac_file in conftest.o conftest.obj conftest.*; do |
2665 | test -f "$ac_file" || continue; | |
2666 | case $ac_file in | |
322e23db | 2667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a152f366 UD |
2668 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2669 | break;; | |
2670 | esac | |
2671 | done | |
4df8c11d | 2672 | else |
322e23db | 2673 | $as_echo "$as_me: failed program was:" >&5 |
a152f366 | 2674 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 2675 | |
b08c89d9 | 2676 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
322e23db | 2677 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4a531bb0 L |
2678 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2679 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 2680 | fi |
a152f366 | 2681 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
cd6ede75 | 2682 | fi |
b08c89d9 | 2683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
322e23db | 2684 | $as_echo "$ac_cv_objext" >&6; } |
a152f366 UD |
2685 | OBJEXT=$ac_cv_objext |
2686 | ac_objext=$OBJEXT | |
b08c89d9 | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
322e23db | 2688 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
f318beb8 | 2689 | if ${ac_cv_c_compiler_gnu+:} false; then : |
322e23db | 2690 | $as_echo_n "(cached) " >&6 |
73237de3 | 2691 | else |
b08c89d9 | 2692 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2693 | /* end confdefs.h. */ |
73237de3 | 2694 | |
a152f366 UD |
2695 | int |
2696 | main () | |
2697 | { | |
2698 | #ifndef __GNUC__ | |
2699 | choke me | |
2700 | #endif | |
73237de3 | 2701 | |
a152f366 UD |
2702 | ; |
2703 | return 0; | |
2704 | } | |
2705 | _ACEOF | |
b08c89d9 | 2706 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 UD |
2707 | ac_compiler_gnu=yes |
2708 | else | |
b08c89d9 | 2709 | ac_compiler_gnu=no |
26f56c1c | 2710 | fi |
a152f366 UD |
2711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2712 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
958f238f | 2713 | |
26f56c1c | 2714 | fi |
b08c89d9 | 2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
322e23db UD |
2716 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2717 | if test $ac_compiler_gnu = yes; then | |
2718 | GCC=yes | |
2719 | else | |
2720 | GCC= | |
2721 | fi | |
a152f366 UD |
2722 | ac_test_CFLAGS=${CFLAGS+set} |
2723 | ac_save_CFLAGS=$CFLAGS | |
b08c89d9 | 2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
322e23db | 2725 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
f318beb8 | 2726 | if ${ac_cv_prog_cc_g+:} false; then : |
322e23db | 2727 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2728 | else |
2729 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2730 | ac_c_werror_flag=yes | |
2731 | ac_cv_prog_cc_g=no | |
2732 | CFLAGS="-g" | |
b08c89d9 | 2733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2734 | /* end confdefs.h. */ |
26f56c1c | 2735 | |
a152f366 UD |
2736 | int |
2737 | main () | |
2738 | { | |
958f238f | 2739 | |
a152f366 UD |
2740 | ; |
2741 | return 0; | |
2742 | } | |
2743 | _ACEOF | |
b08c89d9 | 2744 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 | 2745 | ac_cv_prog_cc_g=yes |
425ce2ed | 2746 | else |
b08c89d9 UD |
2747 | CFLAGS="" |
2748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 2749 | /* end confdefs.h. */ |
425ce2ed | 2750 | |
a152f366 UD |
2751 | int |
2752 | main () | |
2753 | { | |
425ce2ed | 2754 | |
a152f366 UD |
2755 | ; |
2756 | return 0; | |
2757 | } | |
2758 | _ACEOF | |
b08c89d9 | 2759 | if ac_fn_c_try_compile "$LINENO"; then : |
425ce2ed | 2760 | |
b08c89d9 UD |
2761 | else |
2762 | ac_c_werror_flag=$ac_save_c_werror_flag | |
a152f366 | 2763 | CFLAGS="-g" |
b08c89d9 | 2764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 2765 | /* end confdefs.h. */ |
425ce2ed | 2766 | |
a152f366 UD |
2767 | int |
2768 | main () | |
2769 | { | |
425ce2ed | 2770 | |
a152f366 UD |
2771 | ; |
2772 | return 0; | |
2773 | } | |
2774 | _ACEOF | |
b08c89d9 | 2775 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 | 2776 | ac_cv_prog_cc_g=yes |
ff886b82 | 2777 | fi |
a152f366 | 2778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ff886b82 | 2779 | fi |
a152f366 UD |
2780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2781 | fi | |
a152f366 UD |
2782 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2783 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ff886b82 | 2784 | fi |
b08c89d9 | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
322e23db | 2786 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
a152f366 UD |
2787 | if test "$ac_test_CFLAGS" = set; then |
2788 | CFLAGS=$ac_save_CFLAGS | |
2789 | elif test $ac_cv_prog_cc_g = yes; then | |
2790 | if test "$GCC" = yes; then | |
2791 | CFLAGS="-g -O2" | |
2792 | else | |
2793 | CFLAGS="-g" | |
2794 | fi | |
ff886b82 | 2795 | else |
a152f366 UD |
2796 | if test "$GCC" = yes; then |
2797 | CFLAGS="-O2" | |
2798 | else | |
2799 | CFLAGS= | |
ff886b82 | 2800 | fi |
ff886b82 | 2801 | fi |
a152f366 UD |
2802 | |
2803 | ac_ext=c | |
2804 | ac_cpp='$CPP $CPPFLAGS' | |
2805 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2806 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2807 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2808 | ||
2809 | if test $host != $build; then | |
2810 | for ac_prog in gcc cc | |
2811 | do | |
2812 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2813 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2815 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2816 | if ${ac_cv_prog_BUILD_CC+:} false; then : |
322e23db | 2817 | $as_echo_n "(cached) " >&6 |
ff886b82 | 2818 | else |
a152f366 UD |
2819 | if test -n "$BUILD_CC"; then |
2820 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
ff886b82 UD |
2821 | else |
2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2823 | for as_dir in $PATH | |
2824 | do | |
2825 | IFS=$as_save_IFS | |
2826 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2827 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2829 | ac_cv_prog_BUILD_CC="$ac_prog" |
b08c89d9 | 2830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ff886b82 UD |
2831 | break 2 |
2832 | fi | |
2833 | done | |
b08c89d9 | 2834 | done |
ff886b82 UD |
2835 | IFS=$as_save_IFS |
2836 | ||
2837 | fi | |
2838 | fi | |
a152f366 UD |
2839 | BUILD_CC=$ac_cv_prog_BUILD_CC |
2840 | if test -n "$BUILD_CC"; then | |
b08c89d9 | 2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
322e23db | 2842 | $as_echo "$BUILD_CC" >&6; } |
ff886b82 | 2843 | else |
b08c89d9 | 2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2845 | $as_echo "no" >&6; } |
ff886b82 UD |
2846 | fi |
2847 | ||
2848 | ||
a152f366 | 2849 | test -n "$BUILD_CC" && break |
ff886b82 | 2850 | done |
ff886b82 UD |
2851 | |
2852 | fi | |
ff886b82 | 2853 | |
a152f366 UD |
2854 | # On Suns, sometimes $CPP names a directory. |
2855 | if test -n "$CPP" && test -d "$CPP"; then | |
2856 | CPP= | |
ff886b82 | 2857 | fi |
a152f366 | 2858 | if test -z "$CPP"; then |
bb931195 | 2859 | CPP="$CC -E" |
ff886b82 | 2860 | fi |
a152f366 | 2861 | |
e4693aa7 | 2862 | |
a152f366 UD |
2863 | # We need the C++ compiler only for testing. |
2864 | ac_ext=cpp | |
2865 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2866 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2867 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2868 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2869 | if test -z "$CXX"; then | |
2870 | if test -n "$CCC"; then | |
2871 | CXX=$CCC | |
2872 | else | |
2873 | if test -n "$ac_tool_prefix"; then | |
2874 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2875 | do | |
2876 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2877 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b08c89d9 | 2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2879 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2880 | if ${ac_cv_prog_CXX+:} false; then : |
322e23db | 2881 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2882 | else |
2883 | if test -n "$CXX"; then | |
2884 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
2885 | else | |
2886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2887 | for as_dir in $PATH | |
2888 | do | |
2889 | IFS=$as_save_IFS | |
2890 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2891 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2893 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
b08c89d9 | 2894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2895 | break 2 |
2896 | fi | |
2897 | done | |
b08c89d9 | 2898 | done |
a152f366 UD |
2899 | IFS=$as_save_IFS |
2900 | ||
2901 | fi | |
2902 | fi | |
2903 | CXX=$ac_cv_prog_CXX | |
2904 | if test -n "$CXX"; then | |
b08c89d9 | 2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
322e23db | 2906 | $as_echo "$CXX" >&6; } |
a152f366 | 2907 | else |
b08c89d9 | 2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2909 | $as_echo "no" >&6; } |
a152f366 UD |
2910 | fi |
2911 | ||
2912 | ||
2913 | test -n "$CXX" && break | |
2914 | done | |
2915 | fi | |
2916 | if test -z "$CXX"; then | |
2917 | ac_ct_CXX=$CXX | |
2918 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2919 | do | |
2920 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2921 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 2923 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 2924 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
322e23db | 2925 | $as_echo_n "(cached) " >&6 |
a152f366 UD |
2926 | else |
2927 | if test -n "$ac_ct_CXX"; then | |
2928 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2929 | else | |
2930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2931 | for as_dir in $PATH | |
2932 | do | |
2933 | IFS=$as_save_IFS | |
2934 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 2935 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 2936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a152f366 | 2937 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
b08c89d9 | 2938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
2939 | break 2 |
2940 | fi | |
2941 | done | |
b08c89d9 | 2942 | done |
a152f366 UD |
2943 | IFS=$as_save_IFS |
2944 | ||
2945 | fi | |
2946 | fi | |
2947 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2948 | if test -n "$ac_ct_CXX"; then | |
b08c89d9 | 2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
322e23db | 2950 | $as_echo "$ac_ct_CXX" >&6; } |
a152f366 | 2951 | else |
b08c89d9 | 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 2953 | $as_echo "no" >&6; } |
a152f366 UD |
2954 | fi |
2955 | ||
2956 | ||
2957 | test -n "$ac_ct_CXX" && break | |
2958 | done | |
2959 | ||
2960 | if test "x$ac_ct_CXX" = x; then | |
2961 | CXX="g++" | |
2962 | else | |
2963 | case $cross_compiling:$ac_tool_warned in | |
2964 | yes:) | |
b08c89d9 | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
322e23db | 2966 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
a152f366 UD |
2967 | ac_tool_warned=yes ;; |
2968 | esac | |
2969 | CXX=$ac_ct_CXX | |
2970 | fi | |
2971 | fi | |
2972 | ||
2973 | fi | |
2974 | fi | |
2975 | # Provide some information about the compiler. | |
b08c89d9 | 2976 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
322e23db UD |
2977 | set X $ac_compile |
2978 | ac_compiler=$2 | |
b08c89d9 UD |
2979 | for ac_option in --version -v -V -qversion; do |
2980 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
2981 | case "(($ac_try" in |
2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2983 | *) ac_try_echo=$ac_try;; | |
2984 | esac | |
b08c89d9 UD |
2985 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2986 | $as_echo "$ac_try_echo"; } >&5 | |
2987 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
a152f366 | 2988 | ac_status=$? |
b08c89d9 UD |
2989 | if test -s conftest.err; then |
2990 | sed '10a\ | |
2991 | ... rest of stderr output deleted ... | |
2992 | 10q' conftest.err >conftest.er1 | |
2993 | cat conftest.er1 >&5 | |
2994 | fi | |
2995 | rm -f conftest.er1 conftest.err | |
2996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2997 | test $ac_status = 0; } | |
2998 | done | |
a152f366 | 2999 | |
b08c89d9 | 3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
322e23db | 3001 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
f318beb8 | 3002 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
322e23db | 3003 | $as_echo_n "(cached) " >&6 |
a152f366 | 3004 | else |
b08c89d9 | 3005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 UD |
3006 | /* end confdefs.h. */ |
3007 | ||
3008 | int | |
3009 | main () | |
3010 | { | |
a152f366 UD |
3011 | #ifndef __GNUC__ |
3012 | choke me | |
3013 | #endif | |
ff886b82 UD |
3014 | |
3015 | ; | |
3016 | return 0; | |
3017 | } | |
3018 | _ACEOF | |
b08c89d9 | 3019 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a152f366 | 3020 | ac_compiler_gnu=yes |
ff886b82 | 3021 | else |
b08c89d9 | 3022 | ac_compiler_gnu=no |
ff886b82 | 3023 | fi |
ff886b82 | 3024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a152f366 | 3025 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
ff886b82 | 3026 | |
ff886b82 | 3027 | fi |
b08c89d9 | 3028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
322e23db UD |
3029 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
3030 | if test $ac_compiler_gnu = yes; then | |
3031 | GXX=yes | |
3032 | else | |
3033 | GXX= | |
3034 | fi | |
a152f366 UD |
3035 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3036 | ac_save_CXXFLAGS=$CXXFLAGS | |
b08c89d9 | 3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
322e23db | 3038 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
f318beb8 | 3039 | if ${ac_cv_prog_cxx_g+:} false; then : |
322e23db | 3040 | $as_echo_n "(cached) " >&6 |
ff886b82 | 3041 | else |
a152f366 UD |
3042 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3043 | ac_cxx_werror_flag=yes | |
3044 | ac_cv_prog_cxx_g=no | |
3045 | CXXFLAGS="-g" | |
b08c89d9 | 3046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 3047 | /* end confdefs.h. */ |
ff886b82 | 3048 | |
ff886b82 UD |
3049 | int |
3050 | main () | |
3051 | { | |
a152f366 | 3052 | |
ff886b82 UD |
3053 | ; |
3054 | return 0; | |
3055 | } | |
3056 | _ACEOF | |
b08c89d9 | 3057 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a152f366 | 3058 | ac_cv_prog_cxx_g=yes |
ff886b82 | 3059 | else |
b08c89d9 UD |
3060 | CXXFLAGS="" |
3061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 3062 | /* end confdefs.h. */ |
ff886b82 | 3063 | |
a152f366 UD |
3064 | int |
3065 | main () | |
3066 | { | |
ff886b82 | 3067 | |
a152f366 UD |
3068 | ; |
3069 | return 0; | |
3070 | } | |
ff886b82 | 3071 | _ACEOF |
b08c89d9 | 3072 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ff886b82 | 3073 | |
b08c89d9 UD |
3074 | else |
3075 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
a152f366 | 3076 | CXXFLAGS="-g" |
b08c89d9 | 3077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 3078 | /* end confdefs.h. */ |
a152f366 | 3079 | |
ff886b82 UD |
3080 | int |
3081 | main () | |
3082 | { | |
a152f366 | 3083 | |
ff886b82 UD |
3084 | ; |
3085 | return 0; | |
3086 | } | |
3087 | _ACEOF | |
b08c89d9 | 3088 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a152f366 | 3089 | ac_cv_prog_cxx_g=yes |
ff886b82 | 3090 | fi |
a152f366 UD |
3091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3092 | fi | |
a152f366 UD |
3093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3094 | fi | |
a152f366 UD |
3095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3096 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3097 | fi | |
b08c89d9 | 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
322e23db | 3099 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
a152f366 UD |
3100 | if test "$ac_test_CXXFLAGS" = set; then |
3101 | CXXFLAGS=$ac_save_CXXFLAGS | |
3102 | elif test $ac_cv_prog_cxx_g = yes; then | |
3103 | if test "$GXX" = yes; then | |
3104 | CXXFLAGS="-g -O2" | |
3105 | else | |
3106 | CXXFLAGS="-g" | |
3107 | fi | |
3a12e572 | 3108 | else |
a152f366 UD |
3109 | if test "$GXX" = yes; then |
3110 | CXXFLAGS="-O2" | |
3111 | else | |
3112 | CXXFLAGS= | |
3113 | fi | |
3a12e572 | 3114 | fi |
a152f366 UD |
3115 | ac_ext=c |
3116 | ac_cpp='$CPP $CPPFLAGS' | |
3117 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3118 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3119 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26f56c1c | 3120 | |
e4693aa7 | 3121 | # It's useless to us if it can't link programs (e.g. missing -lstdc++). |
0cae3f4b | 3122 | |
e4693aa7 RM |
3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5 |
3124 | $as_echo_n "checking whether $CXX can link programs... " >&6; } | |
3125 | if ${libc_cv_cxx_link_ok+:} false; then : | |
3126 | $as_echo_n "(cached) " >&6 | |
0cae3f4b | 3127 | else |
e4693aa7 RM |
3128 | ac_ext=cpp |
3129 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3130 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3131 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3132 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
0cae3f4b | 3133 | |
d337ceb7 | 3134 | # Default, dynamic case. |
e4693aa7 RM |
3135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3136 | /* end confdefs.h. */ | |
0cae3f4b | 3137 | |
e4693aa7 RM |
3138 | int |
3139 | main () | |
3140 | { | |
0cae3f4b | 3141 | |
e4693aa7 RM |
3142 | ; |
3143 | return 0; | |
3144 | } | |
3145 | _ACEOF | |
3146 | if ac_fn_cxx_try_link "$LINENO"; then : | |
3147 | libc_cv_cxx_link_ok=yes | |
0cae3f4b | 3148 | else |
e4693aa7 | 3149 | libc_cv_cxx_link_ok=no |
0cae3f4b | 3150 | fi |
e4693aa7 RM |
3151 | rm -f core conftest.err conftest.$ac_objext \ |
3152 | conftest$ac_exeext conftest.$ac_ext | |
d337ceb7 FW |
3153 | # Static case. |
3154 | old_LDFLAGS="$LDFLAGS" | |
3155 | LDFLAGS="$LDFLAGS -static" | |
3156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3157 | /* end confdefs.h. */ | |
3158 | ||
3159 | #include <iostream> | |
3160 | ||
3161 | int | |
3162 | main() | |
3163 | { | |
3164 | std::cout << "Hello, world!"; | |
3165 | return 0; | |
3166 | } | |
3167 | ||
3168 | _ACEOF | |
3169 | if ac_fn_cxx_try_link "$LINENO"; then : | |
3170 | ||
3171 | else | |
3172 | libc_cv_cxx_link_ok=no | |
3173 | fi | |
3174 | rm -f core conftest.err conftest.$ac_objext \ | |
3175 | conftest$ac_exeext conftest.$ac_ext | |
3176 | LDFLAGS="$old_LDFLAGS" | |
e4693aa7 RM |
3177 | ac_ext=c |
3178 | ac_cpp='$CPP $CPPFLAGS' | |
3179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0cae3f4b | 3182 | |
0cae3f4b | 3183 | fi |
e4693aa7 RM |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5 |
3185 | $as_echo "$libc_cv_cxx_link_ok" >&6; } | |
3186 | if test $libc_cv_cxx_link_ok != yes; then : | |
3187 | CXX= | |
3188 | fi | |
26f56c1c | 3189 | |
db340c90 | 3190 | if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then |
4a531bb0 | 3191 | as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5 |
26f56c1c | 3192 | fi |
3a12e572 | 3193 | |
a152f366 UD |
3194 | # This will get text that should go into config.make. |
3195 | config_vars= | |
3196 | ||
3197 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. | |
3198 | ||
3199 | # Check whether --with-gd was given. | |
b08c89d9 | 3200 | if test "${with_gd+set}" = set; then : |
a152f366 UD |
3201 | withval=$with_gd; case "$with_gd" in |
3202 | yes|''|no) ;; | |
3203 | *) libgd_include="-I$withval/include" | |
3204 | libgd_ldflags="-L$withval/lib" ;; | |
26f56c1c | 3205 | esac |
cd6ede75 | 3206 | |
a152f366 | 3207 | fi |
cd6ede75 UD |
3208 | |
3209 | ||
a152f366 | 3210 | # Check whether --with-gd-include was given. |
b08c89d9 | 3211 | if test "${with_gd_include+set}" = set; then : |
a152f366 UD |
3212 | withval=$with_gd_include; case "$with_gd_include" in |
3213 | ''|no) ;; | |
3214 | *) libgd_include="-I$withval" ;; | |
cd6ede75 UD |
3215 | esac |
3216 | ||
a152f366 | 3217 | fi |
cd6ede75 | 3218 | |
0816838f | 3219 | |
a152f366 | 3220 | # Check whether --with-gd-lib was given. |
b08c89d9 | 3221 | if test "${with_gd_lib+set}" = set; then : |
a152f366 UD |
3222 | withval=$with_gd_lib; case "$with_gd_lib" in |
3223 | ''|no) ;; | |
3224 | *) libgd_ldflags="-L$withval" ;; | |
cd6ede75 UD |
3225 | esac |
3226 | ||
a808d541 UD |
3227 | fi |
3228 | ||
f4b07664 | 3229 | |
a152f366 UD |
3230 | if test -n "$libgd_include"; then |
3231 | config_vars="$config_vars | |
3232 | CFLAGS-memusagestat.c = $libgd_include" | |
3233 | fi | |
3234 | if test -n "$libgd_ldflags"; then | |
3235 | config_vars="$config_vars | |
3236 | libgd-LDFLAGS = $libgd_ldflags" | |
3237 | fi | |
2ceaa76a | 3238 | |
2ceaa76a | 3239 | |
a152f366 | 3240 | # Check whether --with-binutils was given. |
b08c89d9 | 3241 | if test "${with_binutils+set}" = set; then : |
a152f366 UD |
3242 | withval=$with_binutils; path_binutils=$withval |
3243 | else | |
3244 | path_binutils='' | |
3245 | fi | |
ff886b82 UD |
3246 | |
3247 | ||
a152f366 | 3248 | # Check whether --with-selinux was given. |
b08c89d9 | 3249 | if test "${with_selinux+set}" = set; then : |
a152f366 UD |
3250 | withval=$with_selinux; with_selinux=$withval |
3251 | else | |
3252 | with_selinux=auto | |
3253 | fi | |
e0a3ed4f | 3254 | |
8f73811b | 3255 | |
e0a3ed4f | 3256 | |
a152f366 | 3257 | # Check whether --with-headers was given. |
b08c89d9 | 3258 | if test "${with_headers+set}" = set; then : |
a152f366 UD |
3259 | withval=$with_headers; sysheaders=$withval |
3260 | else | |
3261 | sysheaders='' | |
7efb9bd1 UD |
3262 | fi |
3263 | ||
dfd2257a | 3264 | |
f781ef40 RM |
3265 | |
3266 | ||
6413fcde FW |
3267 | # Check whether --with-nonshared-cflags was given. |
3268 | if test "${with_nonshared_cflags+set}" = set; then : | |
3269 | withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval | |
3270 | else | |
3271 | extra_nonshared_cflags= | |
3272 | fi | |
3273 | ||
3274 | ||
3275 | ||
9ba202c7 FW |
3276 | # Check whether --with-rtld-early-cflags was given. |
3277 | if test "${with_rtld_early_cflags+set}" = set; then : | |
3278 | withval=$with_rtld_early_cflags; rtld_early_cflags=$withval | |
3279 | else | |
3280 | rtld_early_cflags= | |
3281 | fi | |
3282 | ||
3283 | ||
3284 | ||
bada2e31 L |
3285 | |
3286 | # Check whether --with-timeoutfactor was given. | |
3287 | if test "${with_timeoutfactor+set}" = set; then : | |
3288 | withval=$with_timeoutfactor; timeoutfactor=$withval | |
3289 | else | |
3290 | timeoutfactor=1 | |
3291 | fi | |
3292 | ||
3293 | cat >>confdefs.h <<_ACEOF | |
3294 | #define TIMEOUTFACTOR $timeoutfactor | |
3295 | _ACEOF | |
3296 | ||
3297 | ||
a152f366 | 3298 | # Check whether --enable-sanity-checks was given. |
b08c89d9 | 3299 | if test "${enable_sanity_checks+set}" = set; then : |
a152f366 UD |
3300 | enableval=$enable_sanity_checks; enable_sanity=$enableval |
3301 | else | |
3302 | enable_sanity=yes | |
dfd2257a UD |
3303 | fi |
3304 | ||
cd6ede75 | 3305 | |
a152f366 | 3306 | # Check whether --enable-shared was given. |
b08c89d9 | 3307 | if test "${enable_shared+set}" = set; then : |
a152f366 UD |
3308 | enableval=$enable_shared; shared=$enableval |
3309 | else | |
a0da5fe1 | 3310 | shared=yes |
a152f366 | 3311 | fi |
cd6ede75 | 3312 | |
a152f366 | 3313 | # Check whether --enable-profile was given. |
b08c89d9 | 3314 | if test "${enable_profile+set}" = set; then : |
a152f366 UD |
3315 | enableval=$enable_profile; profile=$enableval |
3316 | else | |
3317 | profile=no | |
3318 | fi | |
cd6ede75 | 3319 | |
23645707 SP |
3320 | # Check whether --enable-default-pie was given. |
3321 | if test "${enable_default_pie+set}" = set; then : | |
3322 | enableval=$enable_default_pie; default_pie=$enableval | |
9d7a3741 | 3323 | else |
23645707 | 3324 | default_pie=yes |
9d7a3741 L |
3325 | fi |
3326 | ||
1cba4036 MF |
3327 | # Check whether --enable-timezone-tools was given. |
3328 | if test "${enable_timezone_tools+set}" = set; then : | |
3329 | enableval=$enable_timezone_tools; enable_timezone_tools=$enableval | |
3330 | else | |
3331 | enable_timezone_tools=yes | |
3332 | fi | |
3333 | ||
3334 | ||
a152f366 | 3335 | |
740b3dbe L |
3336 | # Check whether --enable-hardcoded-path-in-tests was given. |
3337 | if test "${enable_hardcoded_path_in_tests+set}" = set; then : | |
3338 | enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval | |
3339 | else | |
3340 | hardcoded_path_in_tests=no | |
3341 | fi | |
3342 | ||
3343 | ||
3344 | ||
a152f366 | 3345 | # Check whether --enable-hidden-plt was given. |
b08c89d9 | 3346 | if test "${enable_hidden_plt+set}" = set; then : |
a152f366 UD |
3347 | enableval=$enable_hidden_plt; hidden=$enableval |
3348 | else | |
3349 | hidden=yes | |
2de7874e | 3350 | fi |
cd6ede75 | 3351 | |
a152f366 | 3352 | if test "x$hidden" = xno; then |
b08c89d9 | 3353 | $as_echo "#define NO_HIDDEN 1" >>confdefs.h |
cd6ede75 | 3354 | |
a152f366 | 3355 | fi |
e0a3ed4f | 3356 | |
a152f366 | 3357 | # Check whether --enable-bind-now was given. |
b08c89d9 | 3358 | if test "${enable_bind_now+set}" = set; then : |
a152f366 UD |
3359 | enableval=$enable_bind_now; bindnow=$enableval |
3360 | else | |
3361 | bindnow=no | |
3362 | fi | |
e0a3ed4f | 3363 | |
e0a3ed4f | 3364 | |
6901def6 L |
3365 | if test "x$bindnow" = xyes; then |
3366 | $as_echo "#define BIND_NOW 1" >>confdefs.h | |
3367 | ||
3368 | fi | |
e0a3ed4f | 3369 | |
03baef1c NA |
3370 | # Check whether --enable-stack-protector was given. |
3371 | if test "${enable_stack_protector+set}" = set; then : | |
3372 | enableval=$enable_stack_protector; enable_stack_protector=$enableval | |
3373 | else | |
3374 | enable_stack_protector=no | |
3375 | fi | |
3376 | ||
3377 | case "$enable_stack_protector" in | |
3378 | all|yes|no|strong) ;; | |
3379 | *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;; | |
3380 | esac | |
3381 | ||
a152f366 | 3382 | # Check whether --enable-static-nss was given. |
b08c89d9 | 3383 | if test "${enable_static_nss+set}" = set; then : |
a152f366 UD |
3384 | enableval=$enable_static_nss; static_nss=$enableval |
3385 | else | |
3386 | static_nss=no | |
3387 | fi | |
e0a3ed4f | 3388 | |
a152f366 UD |
3389 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
3390 | static_nss=yes | |
b08c89d9 | 3391 | $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h |
cd6ede75 | 3392 | |
a152f366 | 3393 | fi |
cd6ede75 | 3394 | |
a152f366 | 3395 | # Check whether --enable-force-install was given. |
b08c89d9 | 3396 | if test "${enable_force_install+set}" = set; then : |
a152f366 | 3397 | enableval=$enable_force_install; force_install=$enableval |
3a12e572 | 3398 | else |
a152f366 UD |
3399 | force_install=yes |
3400 | fi | |
ff886b82 | 3401 | |
3a12e572 | 3402 | |
cd6ede75 | 3403 | |
8894bad3 AM |
3404 | # Check whether --enable-maintainer-mode was given. |
3405 | if test "${enable_maintainer_mode+set}" = set; then : | |
3406 | enableval=$enable_maintainer_mode; maintainer=$enableval | |
3407 | else | |
3408 | maintainer=no | |
3409 | fi | |
3410 | ||
3411 | ||
a152f366 | 3412 | # Check whether --enable-kernel was given. |
b08c89d9 | 3413 | if test "${enable_kernel+set}" = set; then : |
a152f366 | 3414 | enableval=$enable_kernel; minimum_kernel=$enableval |
cd6ede75 | 3415 | fi |
a152f366 UD |
3416 | |
3417 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then | |
3418 | # Better nothing than this. | |
3419 | minimum_kernel="" | |
3420 | else | |
3421 | if test "$minimum_kernel" = current; then | |
3422 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
cd6ede75 UD |
3423 | fi |
3424 | fi | |
cd6ede75 | 3425 | |
a152f366 | 3426 | # Check whether --enable-all-warnings was given. |
b08c89d9 | 3427 | if test "${enable_all_warnings+set}" = set; then : |
a152f366 UD |
3428 | enableval=$enable_all_warnings; all_warnings=$enableval |
3429 | fi | |
cd6ede75 | 3430 | |
5c2a0669 | 3431 | |
cd6ede75 | 3432 | |
a4ecc9eb JM |
3433 | # Check whether --enable-werror was given. |
3434 | if test "${enable_werror+set}" = set; then : | |
3435 | enableval=$enable_werror; enable_werror=$enableval | |
3436 | else | |
3437 | enable_werror=yes | |
3438 | fi | |
3439 | ||
3440 | ||
3441 | ||
a152f366 | 3442 | # Check whether --enable-multi-arch was given. |
b08c89d9 | 3443 | if test "${enable_multi_arch+set}" = set; then : |
a152f366 | 3444 | enableval=$enable_multi_arch; multi_arch=$enableval |
cd6ede75 | 3445 | else |
6f89d2f3 | 3446 | multi_arch=default |
cd6ede75 UD |
3447 | fi |
3448 | ||
4bca4c17 | 3449 | |
33784089 RE |
3450 | # Check whether --enable-memory-tagging was given. |
3451 | if test "${enable_memory_tagging+set}" = set; then : | |
3452 | enableval=$enable_memory_tagging; memory_tagging=$enableval | |
3453 | else | |
3454 | memory_tagging=no | |
3455 | fi | |
3456 | ||
3457 | if test "$memory_tagging" = yes; then | |
3458 | # Only enable this on architectures that support it. | |
3459 | case $host_cpu in | |
3460 | aarch64) | |
3461 | $as_echo "#define USE_MTAG 1" >>confdefs.h | |
3462 | ||
3463 | ;; | |
3464 | esac | |
3465 | fi | |
3466 | ||
3467 | ||
e69d994a ZW |
3468 | # Check whether --enable-crypt was given. |
3469 | if test "${enable_crypt+set}" = set; then : | |
3470 | enableval=$enable_crypt; build_crypt=$enableval | |
3471 | else | |
3472 | build_crypt=yes | |
3473 | fi | |
3474 | ||
3475 | ||
3476 | ||
a152f366 | 3477 | # Check whether --enable-nss-crypt was given. |
b08c89d9 | 3478 | if test "${enable_nss_crypt+set}" = set; then : |
a152f366 | 3479 | enableval=$enable_nss_crypt; nss_crypt=$enableval |
4bca4c17 | 3480 | else |
a152f366 | 3481 | nss_crypt=no |
4bca4c17 UD |
3482 | fi |
3483 | ||
e69d994a ZW |
3484 | if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then |
3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5 | |
3486 | $as_echo "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;} | |
3487 | nss_crypt=no | |
3488 | fi | |
a152f366 UD |
3489 | if test x$nss_crypt = xyes; then |
3490 | nss_includes=-I$(nss-config --includedir 2>/dev/null) | |
3491 | if test $? -ne 0; then | |
4a531bb0 | 3492 | as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5 |
26f56c1c | 3493 | fi |
57b4af19 GT |
3494 | nspr_includes=-I$(nspr-config --includedir 2>/dev/null) |
3495 | if test $? -ne 0; then | |
3496 | as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5 | |
3497 | fi | |
a152f366 | 3498 | old_CFLAGS="$CFLAGS" |
57b4af19 | 3499 | CFLAGS="$CFLAGS $nss_includes $nspr_includes" |
a152f366 | 3500 | |
b08c89d9 UD |
3501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3502 | /* end confdefs.h. */ | |
a152f366 UD |
3503 | typedef int PRBool; |
3504 | #include <hasht.h> | |
3505 | #include <nsslowhash.h> | |
3506 | void f (void) { NSSLOW_Init (); } | |
b68e08db RM |
3507 | int |
3508 | main () | |
3509 | { | |
3510 | ||
3511 | ; | |
3512 | return 0; | |
3513 | } | |
a152f366 | 3514 | _ACEOF |
b08c89d9 | 3515 | if ac_fn_c_try_compile "$LINENO"; then : |
a152f366 | 3516 | libc_cv_nss_crypt=yes |
63bda0c1 | 3517 | else |
4a531bb0 | 3518 | as_fn_error $? " |
b08c89d9 | 3519 | cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5 |
04be94a8 | 3520 | fi |
a152f366 UD |
3521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3522 | old_LIBS="$LIBS" | |
84aa7516 | 3523 | old_LDFLAGS="$LDFLAGS" |
a152f366 | 3524 | LIBS="$LIBS -lfreebl3" |
b08c89d9 | 3525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 UD |
3526 | /* end confdefs.h. */ |
3527 | typedef int PRBool; | |
3528 | #include <hasht.h> | |
3529 | #include <nsslowhash.h> | |
3530 | int | |
3531 | main () | |
3532 | { | |
3533 | NSSLOW_Init(); | |
3534 | ; | |
3535 | return 0; | |
3536 | } | |
3537 | _ACEOF | |
b08c89d9 | 3538 | if ac_fn_c_try_link "$LINENO"; then : |
a152f366 | 3539 | libc_cv_nss_crypt=yes |
cd6ede75 | 3540 | else |
4a531bb0 | 3541 | as_fn_error $? " |
b08c89d9 | 3542 | cannot link program using lowlevel NSS hash functions" "$LINENO" 5 |
cd6ede75 | 3543 | fi |
b08c89d9 UD |
3544 | rm -f core conftest.err conftest.$ac_objext \ |
3545 | conftest$ac_exeext conftest.$ac_ext | |
84aa7516 CD |
3546 | # Check to see if there is a static NSS cryptographic library. |
3547 | # If there isn't then we can't link anything with libcrypt.a, | |
3548 | # and that might mean disabling some static tests. | |
3549 | LDFLAGS="$LDFLAGS -static" | |
3550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3551 | /* end confdefs.h. */ | |
3552 | typedef int PRBool; | |
3553 | #include <hasht.h> | |
3554 | #include <nsslowhash.h> | |
3555 | int | |
3556 | main () | |
3557 | { | |
3558 | NSSLOW_Init(); | |
3559 | ; | |
3560 | return 0; | |
3561 | } | |
3562 | _ACEOF | |
3563 | if ac_fn_c_try_link "$LINENO"; then : | |
3564 | libc_cv_static_nss_crypt=yes | |
3565 | else | |
3566 | libc_cv_static_nss_crypt=no | |
3567 | fi | |
3568 | rm -f core conftest.err conftest.$ac_objext \ | |
3569 | conftest$ac_exeext conftest.$ac_ext | |
3570 | LDFLAGS="$old_LDFLAGS" | |
a152f366 UD |
3571 | CFLAGS="$old_CFLAGS" |
3572 | LIBS="$old_LIBS" | |
4bca4c17 | 3573 | else |
a152f366 | 3574 | libc_cv_nss_crypt=no |
84aa7516 | 3575 | libc_cv_static_nss_crypt=no |
4bca4c17 UD |
3576 | fi |
3577 | ||
cd6ede75 | 3578 | |
3a097cc7 | 3579 | |
84aa7516 | 3580 | |
3a097cc7 RM |
3581 | # Check whether --enable-systemtap was given. |
3582 | if test "${enable_systemtap+set}" = set; then : | |
3583 | enableval=$enable_systemtap; systemtap=$enableval | |
3584 | else | |
3585 | systemtap=no | |
3586 | fi | |
3587 | ||
3588 | if test "x$systemtap" != xno; then | |
3589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5 | |
3590 | $as_echo_n "checking for systemtap static probe support... " >&6; } | |
3591 | if ${libc_cv_sdt+:} false; then : | |
3592 | $as_echo_n "(cached) " >&6 | |
3593 | else | |
3594 | old_CFLAGS="$CFLAGS" | |
783dd2d3 | 3595 | CFLAGS="-std=gnu11 $CFLAGS" |
3a097cc7 RM |
3596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3597 | /* end confdefs.h. */ | |
3598 | #include <sys/sdt.h> | |
3599 | void foo (int i, void *p) | |
3600 | { | |
3601 | asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) "" | |
3602 | :: STAP_PROBE_ASM_OPERANDS (2, i, p)); | |
3603 | } | |
3604 | _ACEOF | |
3605 | if ac_fn_c_try_compile "$LINENO"; then : | |
3606 | libc_cv_sdt=yes | |
3607 | else | |
3608 | libc_cv_sdt=no | |
3609 | fi | |
3610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3611 | CFLAGS="$old_CFLAGS" | |
3612 | fi | |
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 | |
3614 | $as_echo "$libc_cv_sdt" >&6; } | |
3615 | if test $libc_cv_sdt = yes; then | |
3616 | $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h | |
3617 | ||
3618 | elif test "x$systemtap" != xauto; then | |
3619 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3620 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3621 | as_fn_error $? "systemtap support needs sys/sdt.h with asm support | |
3622 | See \`config.log' for more details" "$LINENO" 5; } | |
3623 | fi | |
3624 | fi | |
3625 | ||
c53d909c RM |
3626 | # Check whether --enable-build-nscd was given. |
3627 | if test "${enable_build_nscd+set}" = set; then : | |
3628 | enableval=$enable_build_nscd; build_nscd=$enableval | |
3629 | else | |
3630 | build_nscd=default | |
3631 | fi | |
3632 | ||
3633 | ||
3634 | ||
3cc3ef96 RM |
3635 | # Note the use of $use_nscd is near the bottom of the file. |
3636 | # Check whether --enable-nscd was given. | |
3637 | if test "${enable_nscd+set}" = set; then : | |
3638 | enableval=$enable_nscd; use_nscd=$enableval | |
3639 | else | |
3640 | use_nscd=yes | |
3641 | fi | |
3642 | ||
3643 | ||
e4608715 CD |
3644 | # Check whether --enable-pt_chown was given. |
3645 | if test "${enable_pt_chown+set}" = set; then : | |
3646 | enableval=$enable_pt_chown; build_pt_chown=$enableval | |
3647 | else | |
3648 | build_pt_chown=no | |
3649 | fi | |
3650 | ||
3651 | ||
8c12f01d | 3652 | if test "$build_pt_chown" = yes; then |
e4608715 CD |
3653 | $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h |
3654 | ||
3655 | fi | |
3656 | ||
ebf27d12 ST |
3657 | # The abi-tags file uses a fairly simplistic model for name recognition that |
3658 | # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a | |
3659 | # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell. | |
3660 | # This doesn't get used much beyond that, so it's fairly safe. | |
3661 | case "$host_os" in | |
3662 | linux*) | |
3663 | ;; | |
3664 | gnu*) | |
3665 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
3666 | ;; | |
3667 | esac | |
3668 | ||
5695d46f AS |
3669 | # Check whether --enable-mathvec was given. |
3670 | if test "${enable_mathvec+set}" = set; then : | |
3671 | enableval=$enable_mathvec; build_mathvec=$enableval | |
3672 | else | |
3673 | build_mathvec=notset | |
3674 | fi | |
3675 | ||
3676 | ||
b190bccc | 3677 | |
9fb81390 FW |
3678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3679 | /* end confdefs.h. */ | |
3680 | ||
3681 | int | |
3682 | main () | |
3683 | { | |
3684 | ||
3685 | #ifndef __CET__ | |
ae7a94e5 | 3686 | # error no CET compiler support |
9fb81390 FW |
3687 | #endif |
3688 | ; | |
3689 | return 0; | |
3690 | } | |
3691 | _ACEOF | |
b190bccc | 3692 | if ac_fn_c_try_cpp "$LINENO"; then : |
9fb81390 FW |
3693 | libc_cv_compiler_default_cet=yes |
3694 | else | |
3695 | libc_cv_compiler_default_cet=no | |
3696 | fi | |
b190bccc | 3697 | rm -f conftest.err conftest.i conftest.$ac_ext |
9fb81390 | 3698 | |
f753fa7d L |
3699 | # Check whether --enable-cet was given. |
3700 | if test "${enable_cet+set}" = set; then : | |
3701 | enableval=$enable_cet; enable_cet=$enableval | |
3702 | else | |
9fb81390 | 3703 | enable_cet=$libc_cv_compiler_default_cet |
f753fa7d L |
3704 | fi |
3705 | ||
3706 | ||
ebae2f5a MC |
3707 | # Check whether --enable-scv was given. |
3708 | if test "${enable_scv+set}" = set; then : | |
3709 | enableval=$enable_scv; use_scv=$enableval | |
3710 | else | |
3711 | use_scv=yes | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | if test "$use_scv" != "no"; then : | |
3716 | $as_echo "#define USE_PPC_SCV 1" >>confdefs.h | |
3717 | ||
3718 | fi | |
3719 | ||
a152f366 UD |
3720 | # We keep the original values in `$config_*' and never modify them, so we |
3721 | # can write them unchanged into config.make. Everything else uses | |
3722 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
3723 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
3a12e572 | 3724 | |
a152f366 UD |
3725 | # Don't allow vendor == "unknown" |
3726 | test "$config_vendor" = unknown && config_vendor= | |
3727 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
3a12e572 | 3728 | |
a152f366 | 3729 | # Some configurations imply other options. |
0269750c | 3730 | elf=yes |
3a12e572 | 3731 | |
644d3857 | 3732 | # The configure fragment of a port can modify these to supplement |
a152f366 UD |
3733 | # or override the table in the case statement below. No fragment should |
3734 | # ever change the config_* variables, however. | |
3735 | machine=$config_machine | |
3736 | vendor=$config_vendor | |
3737 | os=$config_os | |
3738 | base_os='' | |
3a12e572 | 3739 | |
a152f366 | 3740 | submachine= |
26f56c1c | 3741 | |
a152f366 | 3742 | # Check whether --with-cpu was given. |
b08c89d9 | 3743 | if test "${with_cpu+set}" = set; then : |
a152f366 | 3744 | withval=$with_cpu; case "$withval" in |
4a531bb0 | 3745 | yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;; |
a152f366 UD |
3746 | no) ;; |
3747 | *) submachine="$withval" ;; | |
3748 | esac | |
3a12e572 UD |
3749 | |
3750 | fi | |
3a12e572 | 3751 | |
3a12e572 | 3752 | |
05439291 RM |
3753 | # An preconfigure script can set this when it wants to disable the sanity |
3754 | # check below. | |
3755 | libc_config_ok=no | |
3756 | ||
8df5d347 JM |
3757 | # A preconfigure script for a system that may or may not use fpu |
3758 | # sysdeps directories sets this to a preprocessor conditional for | |
3759 | # whether to use such directories. | |
3760 | with_fp_cond=1 | |
3761 | ||
10a803e0 RM |
3762 | if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null` |
3763 | then | |
3764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5 | |
3765 | $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; } | |
3766 | for frag in $frags; do | |
3767 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
3768 | echo $ECHO_N "$name $ECHO_C" >&6 | |
3769 | . "$frag" | |
3770 | done | |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | |
3772 | $as_echo "" >&6; } | |
3773 | fi | |
3774 | ||
3a12e572 | 3775 | |
a152f366 UD |
3776 | ### |
3777 | ### By using the undocumented --enable-hacker-mode option for configure | |
3778 | ### one can skip this test to make the configuration not fail for unsupported | |
3779 | ### platforms. | |
3780 | ### | |
3781 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then | |
3782 | case "$machine-$host_os" in | |
2ce4f015 | 3783 | *-linux* | *-gnu*) |
a152f366 UD |
3784 | ;; |
3785 | *) | |
4e58b648 MF |
3786 | as_fn_error $? " |
3787 | *** The GNU C library is currently unavailable for this platform. | |
3788 | *** If you are interested in seeing glibc on this platform visit | |
3789 | *** the \"How to submit a new port\" in the wiki: | |
656ee792 | 3790 | *** https://sourceware.org/glibc/wiki/#Development |
4e58b648 | 3791 | *** and join the community!" "$LINENO" 5 |
a152f366 UD |
3792 | ;; |
3793 | esac | |
3a12e572 | 3794 | fi |
2abf9ff1 | 3795 | |
3e239be6 JM |
3796 | # Set base_machine if not set by a preconfigure fragment. |
3797 | test -n "$base_machine" || base_machine=$machine | |
26f56c1c | 3798 | |
3a12e572 | 3799 | |
43ecc41d AZ |
3800 | ### Locate tools. |
3801 | ||
3802 | # Find a good install program. We prefer a C program (faster), | |
3803 | # so one script is as good as another. But avoid the broken or | |
3804 | # incompatible versions: | |
3805 | # SysV /etc/install, /usr/sbin/install | |
3806 | # SunOS /usr/etc/install | |
3807 | # IRIX /sbin/install | |
3808 | # AIX /bin/install | |
3809 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3810 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3811 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3812 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3813 | # OS/2's system install, which has a completely different semantic | |
3814 | # ./install, which can be erroneously created by make from ./install.sh. | |
3815 | # Reject install programs that cannot install multiple files. | |
3816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3817 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3818 | if test -z "$INSTALL"; then | |
3819 | if ${ac_cv_path_install+:} false; then : | |
8df5d347 JM |
3820 | $as_echo_n "(cached) " >&6 |
3821 | else | |
43ecc41d AZ |
3822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3823 | for as_dir in $PATH | |
3824 | do | |
3825 | IFS=$as_save_IFS | |
3826 | test -z "$as_dir" && as_dir=. | |
3827 | # Account for people who put trailing slashes in PATH elements. | |
3828 | case $as_dir/ in #(( | |
3829 | ./ | .// | /[cC]/* | \ | |
3830 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3831 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3832 | /usr/ucb/* ) ;; | |
3833 | *) | |
3834 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3835 | # Don't use installbsd from OSF since it installs stuff as root | |
3836 | # by default. | |
3837 | for ac_prog in ginstall scoinst install; do | |
3838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3839 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3840 | if test $ac_prog = install && | |
3841 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3842 | # AIX install. It has an incompatible calling convention. | |
3843 | : | |
3844 | elif test $ac_prog = install && | |
3845 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3846 | # program-specific install script used by HP pwplus--don't use. | |
3847 | : | |
3848 | else | |
3849 | rm -rf conftest.one conftest.two conftest.dir | |
3850 | echo one > conftest.one | |
3851 | echo two > conftest.two | |
3852 | mkdir conftest.dir | |
3853 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3854 | test -s conftest.one && test -s conftest.two && | |
3855 | test -s conftest.dir/conftest.one && | |
3856 | test -s conftest.dir/conftest.two | |
3857 | then | |
3858 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3859 | break 3 | |
3860 | fi | |
3861 | fi | |
3862 | fi | |
3863 | done | |
3864 | done | |
3865 | ;; | |
3866 | esac | |
3867 | ||
3868 | done | |
3869 | IFS=$as_save_IFS | |
3870 | ||
3871 | rm -rf conftest.one conftest.two conftest.dir | |
3872 | ||
8df5d347 | 3873 | fi |
43ecc41d AZ |
3874 | if test "${ac_cv_path_install+set}" = set; then |
3875 | INSTALL=$ac_cv_path_install | |
3876 | else | |
3877 | # As a last resort, use the slow shell script. Don't cache a | |
3878 | # value for INSTALL within a source directory, because that will | |
3879 | # break other packages using the cache if that directory is | |
3880 | # removed, or if the value is a relative name. | |
3881 | INSTALL=$ac_install_sh | |
3882 | fi | |
8df5d347 | 3883 | fi |
43ecc41d AZ |
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
3885 | $as_echo "$INSTALL" >&6; } | |
8df5d347 | 3886 | |
43ecc41d AZ |
3887 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3888 | # It thinks the first close brace ends the variable substitution. | |
3889 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8df5d347 | 3890 | |
43ecc41d AZ |
3891 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3892 | ||
3893 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3894 | ||
3895 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then | |
3896 | # The makefiles need to use a different form to find it in $srcdir. | |
3897 | INSTALL='\$(..)./scripts/install-sh -c' | |
3898 | fi | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
3900 | $as_echo_n "checking whether ln -s works... " >&6; } | |
3901 | LN_S=$as_ln_s | |
3902 | if test "$LN_S" = "ln -s"; then | |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3904 | $as_echo "yes" >&6; } | |
03baef1c | 3905 | else |
43ecc41d AZ |
3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
3907 | $as_echo "no, using $LN_S" >&6; } | |
03baef1c NA |
3908 | fi |
3909 | ||
43ecc41d AZ |
3910 | |
3911 | # Was a --with-binutils option given? | |
3912 | if test -n "$path_binutils"; then | |
3913 | # Make absolute; ensure a single trailing slash. | |
3914 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
3915 | CC="$CC -B$path_binutils" | |
03baef1c | 3916 | fi |
43ecc41d AZ |
3917 | case "$CC" in |
3918 | *fuse-ld=lld*) LDNAME=ld.lld;; | |
3919 | *) LDNAME=ld;; | |
3920 | esac | |
2d2d7e1a AZ |
3921 | if test -z "$LD"; then |
3922 | LD=`$CC -print-prog-name=$LDNAME` | |
3923 | fi | |
3924 | if test -z "$AR"; then | |
3925 | AR=`$CC -print-prog-name=ar` | |
3926 | fi | |
03baef1c | 3927 | |
2d2d7e1a AZ |
3928 | if test -z "$OBJCOPY"; then |
3929 | OBJCOPY=`$CC -print-prog-name=objcopy` | |
3930 | fi | |
43ecc41d | 3931 | |
2d2d7e1a AZ |
3932 | if test -z "$GPROF"; then |
3933 | GPROF=`$CC -print-prog-name=gprof` | |
3934 | fi | |
43ecc41d | 3935 | |
02abdab0 AZ |
3936 | if test -z "$READELF"; then |
3937 | READELF=`$CC -print-prog-name=readelf` | |
3938 | fi | |
3939 | ||
3940 | if test -z "$OBJDUMP"; then | |
3941 | OBJDUMP=`$CC -print-prog-name=objdump` | |
3942 | fi | |
3943 | ||
3944 | if test -z "$NM"; then | |
3945 | NM=`$CC -print-prog-name=nm` | |
3946 | fi | |
3947 | ||
43ecc41d | 3948 | |
03baef1c | 3949 | |
43ecc41d | 3950 | # Accept binutils 2.25 or newer. |
43ecc41d AZ |
3951 | libc_cv_with_lld=no |
3952 | case $($LD --version) in | |
3953 | "GNU gold"*) | |
3954 | # Accept gold 1.14 or higher | |
3955 | for ac_prog in $LD | |
3956 | do | |
3957 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3958 | set dummy $ac_prog; ac_word=$2 | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3960 | $as_echo_n "checking for $ac_word... " >&6; } | |
3961 | if ${ac_cv_prog_LD+:} false; then : | |
cd6ae7ea FS |
3962 | $as_echo_n "(cached) " >&6 |
3963 | else | |
43ecc41d AZ |
3964 | if test -n "$LD"; then |
3965 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
3966 | else | |
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3968 | for as_dir in $PATH | |
3969 | do | |
3970 | IFS=$as_save_IFS | |
3971 | test -z "$as_dir" && as_dir=. | |
3972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3973 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3974 | ac_cv_prog_LD="$ac_prog" | |
3975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3976 | break 2 | |
3977 | fi | |
3978 | done | |
3979 | done | |
3980 | IFS=$as_save_IFS | |
3981 | ||
cd6ae7ea | 3982 | fi |
cd6ae7ea | 3983 | fi |
43ecc41d AZ |
3984 | LD=$ac_cv_prog_LD |
3985 | if test -n "$LD"; then | |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3987 | $as_echo "$LD" >&6; } | |
3988 | else | |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3990 | $as_echo "no" >&6; } | |
cd6ae7ea | 3991 | fi |
cd6ae7ea | 3992 | |
8f6f5362 | 3993 | |
43ecc41d AZ |
3994 | test -n "$LD" && break |
3995 | done | |
8f6f5362 | 3996 | |
43ecc41d AZ |
3997 | if test -z "$LD"; then |
3998 | ac_verc_fail=yes | |
3999 | else | |
4000 | # Found it, now check the version. | |
4001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 | |
4002 | $as_echo_n "checking version of $LD... " >&6; } | |
4003 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
4004 | case $ac_prog_version in | |
4005 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4006 | 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*) | |
4007 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4008 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4009 | ||
4010 | esac | |
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4012 | $as_echo "$ac_prog_version" >&6; } | |
8f6f5362 | 4013 | fi |
43ecc41d AZ |
4014 | if test $ac_verc_fail = yes; then |
4015 | LD=: critic_missing="$critic_missing GNU gold" | |
8f6f5362 | 4016 | fi |
8f6f5362 | 4017 | |
43ecc41d AZ |
4018 | ;; |
4019 | "LLD"*) | |
4020 | # Accept LLD 13.0.0 or higher | |
4021 | for ac_prog in $LD | |
4022 | do | |
4023 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4024 | set dummy $ac_prog; ac_word=$2 | |
4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4026 | $as_echo_n "checking for $ac_word... " >&6; } | |
4027 | if ${ac_cv_prog_LD+:} false; then : | |
4028 | $as_echo_n "(cached) " >&6 | |
4029 | else | |
4030 | if test -n "$LD"; then | |
4031 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
4032 | else | |
4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4034 | for as_dir in $PATH | |
4035 | do | |
4036 | IFS=$as_save_IFS | |
4037 | test -z "$as_dir" && as_dir=. | |
4038 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4040 | ac_cv_prog_LD="$ac_prog" | |
4041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4042 | break 2 | |
8f6f5362 | 4043 | fi |
43ecc41d AZ |
4044 | done |
4045 | done | |
4046 | IFS=$as_save_IFS | |
4047 | ||
022dfdce | 4048 | fi |
43ecc41d AZ |
4049 | fi |
4050 | LD=$ac_cv_prog_LD | |
4051 | if test -n "$LD"; then | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4053 | $as_echo "$LD" >&6; } | |
4054 | else | |
4055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4056 | $as_echo "no" >&6; } | |
84b9230c MF |
4057 | fi |
4058 | ||
3a12e572 | 4059 | |
43ecc41d | 4060 | test -n "$LD" && break |
3a12e572 | 4061 | done |
43ecc41d AZ |
4062 | |
4063 | if test -z "$LD"; then | |
4064 | ac_verc_fail=yes | |
4065 | else | |
4066 | # Found it, now check the version. | |
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 | |
4068 | $as_echo_n "checking version of $LD... " >&6; } | |
4069 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
4070 | case $ac_prog_version in | |
4071 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4072 | 1[3-9].*|[2-9][0-9].*) | |
4073 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4074 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4075 | ||
4076 | esac | |
4077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4078 | $as_echo "$ac_prog_version" >&6; } | |
a152f366 | 4079 | fi |
43ecc41d AZ |
4080 | if test $ac_verc_fail = yes; then |
4081 | LD=: critic_missing="$critic_missing LLD" | |
cd6ede75 | 4082 | fi |
3a12e572 | 4083 | |
43ecc41d AZ |
4084 | libc_cv_with_lld=yes |
4085 | ;; | |
4086 | *) | |
4087 | for ac_prog in $LD | |
4088 | do | |
4089 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4090 | set dummy $ac_prog; ac_word=$2 | |
4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4092 | $as_echo_n "checking for $ac_word... " >&6; } | |
4093 | if ${ac_cv_prog_LD+:} false; then : | |
4094 | $as_echo_n "(cached) " >&6 | |
4095 | else | |
4096 | if test -n "$LD"; then | |
4097 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
4098 | else | |
4099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4100 | for as_dir in $PATH | |
4101 | do | |
4102 | IFS=$as_save_IFS | |
4103 | test -z "$as_dir" && as_dir=. | |
4104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4105 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4106 | ac_cv_prog_LD="$ac_prog" | |
4107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4108 | break 2 | |
925c3c5c UD |
4109 | fi |
4110 | done | |
a152f366 | 4111 | done |
43ecc41d | 4112 | IFS=$as_save_IFS |
6f89d2f3 | 4113 | |
925c3c5c UD |
4114 | fi |
4115 | fi | |
43ecc41d AZ |
4116 | LD=$ac_cv_prog_LD |
4117 | if test -n "$LD"; then | |
4118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4119 | $as_echo "$LD" >&6; } | |
4120 | else | |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4122 | $as_echo "no" >&6; } | |
925c3c5c UD |
4123 | fi |
4124 | ||
26f56c1c | 4125 | |
43ecc41d AZ |
4126 | test -n "$LD" && break |
4127 | done | |
a152f366 | 4128 | |
43ecc41d AZ |
4129 | if test -z "$LD"; then |
4130 | ac_verc_fail=yes | |
4131 | else | |
4132 | # Found it, now check the version. | |
4133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 | |
4134 | $as_echo_n "checking version of $LD... " >&6; } | |
4135 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` | |
4136 | case $ac_prog_version in | |
4137 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4138 | 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) | |
4139 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4140 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
26f56c1c | 4141 | |
a152f366 | 4142 | esac |
43ecc41d AZ |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
4144 | $as_echo "$ac_prog_version" >&6; } | |
4145 | fi | |
4146 | if test $ac_verc_fail = yes; then | |
4147 | LD=: critic_missing="$critic_missing GNU ld" | |
4148 | fi | |
925c3c5c | 4149 | |
43ecc41d AZ |
4150 | ;; |
4151 | esac | |
4152 | config_vars="$config_vars | |
4153 | with-lld = $libc_cv_with_lld" | |
a152f366 | 4154 | |
43ecc41d AZ |
4155 | # These programs are version sensitive. |
4156 | for ac_prog in gnumake gmake make | |
4157 | do | |
4158 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4159 | set dummy $ac_prog; ac_word=$2 | |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4161 | $as_echo_n "checking for $ac_word... " >&6; } | |
4162 | if ${ac_cv_prog_MAKE+:} false; then : | |
4163 | $as_echo_n "(cached) " >&6 | |
4164 | else | |
4165 | if test -n "$MAKE"; then | |
4166 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
4167 | else | |
4168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4169 | for as_dir in $PATH | |
4170 | do | |
4171 | IFS=$as_save_IFS | |
4172 | test -z "$as_dir" && as_dir=. | |
4173 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4175 | ac_cv_prog_MAKE="$ac_prog" | |
4176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4177 | break 2 | |
4178 | fi | |
4179 | done | |
ba75122d | 4180 | done |
43ecc41d | 4181 | IFS=$as_save_IFS |
925c3c5c | 4182 | |
43ecc41d AZ |
4183 | fi |
4184 | fi | |
4185 | MAKE=$ac_cv_prog_MAKE | |
4186 | if test -n "$MAKE"; then | |
4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 | |
4188 | $as_echo "$MAKE" >&6; } | |
4189 | else | |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4191 | $as_echo "no" >&6; } | |
4192 | fi | |
925c3c5c | 4193 | |
ba75122d | 4194 | |
43ecc41d | 4195 | test -n "$MAKE" && break |
a152f366 | 4196 | done |
2abf9ff1 | 4197 | |
43ecc41d AZ |
4198 | if test -z "$MAKE"; then |
4199 | ac_verc_fail=yes | |
4200 | else | |
4201 | # Found it, now check the version. | |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5 | |
4203 | $as_echo_n "checking version of $MAKE... " >&6; } | |
4204 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` | |
4205 | case $ac_prog_version in | |
4206 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4207 | [4-9].* | [1-9][0-9]*) | |
4208 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4209 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
925c3c5c | 4210 | |
43ecc41d AZ |
4211 | esac |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4213 | $as_echo "$ac_prog_version" >&6; } | |
4214 | fi | |
4215 | if test $ac_verc_fail = yes; then | |
4216 | critic_missing="$critic_missing make" | |
4217 | fi | |
26f56c1c | 4218 | |
26f56c1c | 4219 | |
43ecc41d AZ |
4220 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
4221 | do | |
4222 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4223 | set dummy $ac_prog; ac_word=$2 | |
4224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4225 | $as_echo_n "checking for $ac_word... " >&6; } | |
4226 | if ${ac_cv_prog_MSGFMT+:} false; then : | |
322e23db | 4227 | $as_echo_n "(cached) " >&6 |
a152f366 | 4228 | else |
43ecc41d AZ |
4229 | if test -n "$MSGFMT"; then |
4230 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
4231 | else | |
4232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a152f366 UD |
4233 | for as_dir in $PATH |
4234 | do | |
4235 | IFS=$as_save_IFS | |
4236 | test -z "$as_dir" && as_dir=. | |
43ecc41d AZ |
4237 | for ac_exec_ext in '' $ac_executable_extensions; do |
4238 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4239 | ac_cv_prog_MSGFMT="$ac_prog" | |
4240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4241 | break 2 | |
4242 | fi | |
4243 | done | |
b08c89d9 | 4244 | done |
a152f366 | 4245 | IFS=$as_save_IFS |
2abf9ff1 | 4246 | |
925c3c5c | 4247 | fi |
26f56c1c | 4248 | fi |
43ecc41d AZ |
4249 | MSGFMT=$ac_cv_prog_MSGFMT |
4250 | if test -n "$MSGFMT"; then | |
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
4252 | $as_echo "$MSGFMT" >&6; } | |
26f56c1c | 4253 | else |
43ecc41d AZ |
4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4255 | $as_echo "no" >&6; } | |
26f56c1c | 4256 | fi |
a152f366 | 4257 | |
925c3c5c | 4258 | |
43ecc41d AZ |
4259 | test -n "$MSGFMT" && break |
4260 | done | |
1b74661a | 4261 | |
43ecc41d AZ |
4262 | if test -z "$MSGFMT"; then |
4263 | ac_verc_fail=yes | |
4264 | else | |
4265 | # Found it, now check the version. | |
4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5 | |
4267 | $as_echo_n "checking version of $MSGFMT... " >&6; } | |
4268 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
4269 | case $ac_prog_version in | |
4270 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4271 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
4272 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4273 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
6014c65d | 4274 | |
43ecc41d AZ |
4275 | esac |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4277 | $as_echo "$ac_prog_version" >&6; } | |
4278 | fi | |
4279 | if test $ac_verc_fail = yes; then | |
4280 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
4281 | fi | |
4baa087a | 4282 | |
43ecc41d AZ |
4283 | for ac_prog in makeinfo |
4284 | do | |
4285 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4286 | set dummy $ac_prog; ac_word=$2 | |
4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4288 | $as_echo_n "checking for $ac_word... " >&6; } | |
4289 | if ${ac_cv_prog_MAKEINFO+:} false; then : | |
322e23db | 4290 | $as_echo_n "(cached) " >&6 |
4baa087a | 4291 | else |
43ecc41d AZ |
4292 | if test -n "$MAKEINFO"; then |
4293 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4baa087a | 4294 | else |
43ecc41d AZ |
4295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4296 | for as_dir in $PATH | |
4297 | do | |
4298 | IFS=$as_save_IFS | |
4299 | test -z "$as_dir" && as_dir=. | |
4300 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4301 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4302 | ac_cv_prog_MAKEINFO="$ac_prog" | |
4303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4304 | break 2 | |
4305 | fi | |
4306 | done | |
4307 | done | |
4308 | IFS=$as_save_IFS | |
4309 | ||
4baa087a | 4310 | fi |
4baa087a | 4311 | fi |
43ecc41d AZ |
4312 | MAKEINFO=$ac_cv_prog_MAKEINFO |
4313 | if test -n "$MAKEINFO"; then | |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 | |
4315 | $as_echo "$MAKEINFO" >&6; } | |
4baa087a | 4316 | else |
43ecc41d AZ |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4318 | $as_echo "no" >&6; } | |
4319 | fi | |
4320 | ||
4321 | ||
4322 | test -n "$MAKEINFO" && break | |
4323 | done | |
4324 | ||
4325 | if test -z "$MAKEINFO"; then | |
4326 | ac_verc_fail=yes | |
4baa087a | 4327 | else |
43ecc41d AZ |
4328 | # Found it, now check the version. |
4329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5 | |
4330 | $as_echo_n "checking version of $MAKEINFO... " >&6; } | |
4331 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` | |
4332 | case $ac_prog_version in | |
4333 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
4334 | 4.[7-9]*|4.[1-9][0-9]*|[5-9].*) | |
4335 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
4336 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4337 | ||
4338 | esac | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4340 | $as_echo "$ac_prog_version" >&6; } | |
4baa087a | 4341 | fi |
43ecc41d AZ |
4342 | if test $ac_verc_fail = yes; then |
4343 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
4baa087a | 4344 | fi |
4baa087a | 4345 | |
43ecc41d | 4346 | for ac_prog in sed |
4baa087a RM |
4347 | do |
4348 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4349 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4351 | $as_echo_n "checking for $ac_word... " >&6; } |
43ecc41d | 4352 | if ${ac_cv_prog_SED+:} false; then : |
322e23db | 4353 | $as_echo_n "(cached) " >&6 |
4baa087a | 4354 | else |
43ecc41d AZ |
4355 | if test -n "$SED"; then |
4356 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
4baa087a RM |
4357 | else |
4358 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4359 | for as_dir in $PATH | |
4360 | do | |
4361 | IFS=$as_save_IFS | |
4362 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4363 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 4364 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
43ecc41d | 4365 | ac_cv_prog_SED="$ac_prog" |
b08c89d9 | 4366 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
4367 | break 2 |
4368 | fi | |
4369 | done | |
b08c89d9 | 4370 | done |
26f56c1c | 4371 | IFS=$as_save_IFS |
4baa087a RM |
4372 | |
4373 | fi | |
4374 | fi | |
43ecc41d AZ |
4375 | SED=$ac_cv_prog_SED |
4376 | if test -n "$SED"; then | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4378 | $as_echo "$SED" >&6; } | |
4baa087a | 4379 | else |
b08c89d9 | 4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4381 | $as_echo "no" >&6; } |
4baa087a RM |
4382 | fi |
4383 | ||
26f56c1c | 4384 | |
43ecc41d | 4385 | test -n "$SED" && break |
4baa087a RM |
4386 | done |
4387 | ||
43ecc41d | 4388 | if test -z "$SED"; then |
4baa087a RM |
4389 | ac_verc_fail=yes |
4390 | else | |
4391 | # Found it, now check the version. | |
43ecc41d AZ |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5 |
4393 | $as_echo_n "checking version of $SED... " >&6; } | |
4394 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
4baa087a RM |
4395 | case $ac_prog_version in |
4396 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 4397 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
4baa087a RM |
4398 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4399 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4400 | ||
4401 | esac | |
b08c89d9 | 4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4403 | $as_echo "$ac_prog_version" >&6; } |
4baa087a RM |
4404 | fi |
4405 | if test $ac_verc_fail = yes; then | |
43ecc41d | 4406 | SED=: aux_missing="$aux_missing sed" |
4baa087a RM |
4407 | fi |
4408 | ||
43ecc41d | 4409 | for ac_prog in gawk |
f300dc73 L |
4410 | do |
4411 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4412 | set dummy $ac_prog; ac_word=$2 | |
4413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4414 | $as_echo_n "checking for $ac_word... " >&6; } | |
43ecc41d | 4415 | if ${ac_cv_prog_AWK+:} false; then : |
f300dc73 L |
4416 | $as_echo_n "(cached) " >&6 |
4417 | else | |
43ecc41d AZ |
4418 | if test -n "$AWK"; then |
4419 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
f300dc73 L |
4420 | else |
4421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4422 | for as_dir in $PATH | |
4423 | do | |
4424 | IFS=$as_save_IFS | |
4425 | test -z "$as_dir" && as_dir=. | |
4426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4427 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43ecc41d | 4428 | ac_cv_prog_AWK="$ac_prog" |
f300dc73 L |
4429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4430 | break 2 | |
4431 | fi | |
4432 | done | |
4433 | done | |
4434 | IFS=$as_save_IFS | |
4435 | ||
4436 | fi | |
4437 | fi | |
43ecc41d AZ |
4438 | AWK=$ac_cv_prog_AWK |
4439 | if test -n "$AWK"; then | |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4441 | $as_echo "$AWK" >&6; } | |
f300dc73 L |
4442 | else |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4444 | $as_echo "no" >&6; } | |
4445 | fi | |
4446 | ||
4447 | ||
43ecc41d | 4448 | test -n "$AWK" && break |
f300dc73 L |
4449 | done |
4450 | ||
43ecc41d | 4451 | if test -z "$AWK"; then |
f300dc73 L |
4452 | ac_verc_fail=yes |
4453 | else | |
4454 | # Found it, now check the version. | |
43ecc41d AZ |
4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5 |
4456 | $as_echo_n "checking version of $AWK... " >&6; } | |
4457 | ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` | |
f300dc73 L |
4458 | case $ac_prog_version in |
4459 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 4460 | 3.1.[2-9]*|3.[2-9]*|[4-9]*) |
f300dc73 L |
4461 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4462 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4463 | ||
4464 | esac | |
4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4466 | $as_echo "$ac_prog_version" >&6; } | |
4467 | fi | |
4468 | if test $ac_verc_fail = yes; then | |
43ecc41d | 4469 | critic_missing="$critic_missing gawk" |
f300dc73 L |
4470 | fi |
4471 | ||
43ecc41d | 4472 | for ac_prog in bison |
224edada FS |
4473 | do |
4474 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4475 | set dummy $ac_prog; ac_word=$2 | |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4477 | $as_echo_n "checking for $ac_word... " >&6; } | |
43ecc41d | 4478 | if ${ac_cv_prog_BISON+:} false; then : |
224edada | 4479 | $as_echo_n "(cached) " >&6 |
f300dc73 | 4480 | else |
43ecc41d AZ |
4481 | if test -n "$BISON"; then |
4482 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
224edada FS |
4483 | else |
4484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4485 | for as_dir in $PATH | |
4486 | do | |
4487 | IFS=$as_save_IFS | |
4488 | test -z "$as_dir" && as_dir=. | |
4489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43ecc41d | 4491 | ac_cv_prog_BISON="$ac_prog" |
224edada FS |
4492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4493 | break 2 | |
4494 | fi | |
4495 | done | |
4496 | done | |
4497 | IFS=$as_save_IFS | |
4498 | ||
4499 | fi | |
4500 | fi | |
43ecc41d AZ |
4501 | BISON=$ac_cv_prog_BISON |
4502 | if test -n "$BISON"; then | |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 | |
4504 | $as_echo "$BISON" >&6; } | |
224edada FS |
4505 | else |
4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4507 | $as_echo "no" >&6; } | |
4508 | fi | |
4509 | ||
4510 | ||
43ecc41d | 4511 | test -n "$BISON" && break |
224edada FS |
4512 | done |
4513 | ||
43ecc41d | 4514 | if test -z "$BISON"; then |
224edada FS |
4515 | ac_verc_fail=yes |
4516 | else | |
4517 | # Found it, now check the version. | |
43ecc41d AZ |
4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5 |
4519 | $as_echo_n "checking version of $BISON... " >&6; } | |
4520 | ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'` | |
224edada FS |
4521 | case $ac_prog_version in |
4522 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 4523 | 2.7*|[3-9].*|[1-9][0-9]*) |
224edada FS |
4524 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4525 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
4526 | ||
4527 | esac | |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 | |
4529 | $as_echo "$ac_prog_version" >&6; } | |
4530 | fi | |
4531 | if test $ac_verc_fail = yes; then | |
43ecc41d | 4532 | critic_missing="$critic_missing bison" |
224edada FS |
4533 | fi |
4534 | ||
43ecc41d AZ |
4535 | |
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5 | |
4537 | $as_echo_n "checking if $CC is sufficient to build libc... " >&6; } | |
4538 | if ${libc_cv_compiler_ok+:} false; then : | |
4539 | $as_echo_n "(cached) " >&6 | |
4540 | else | |
4541 | ||
4542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4543 | /* end confdefs.h. */ | |
4544 | ||
4545 | int | |
4546 | main () | |
4547 | { | |
4548 | ||
4549 | #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2) | |
4550 | #error insufficient compiler | |
4551 | #endif | |
4552 | ; | |
4553 | return 0; | |
4554 | } | |
4555 | _ACEOF | |
4556 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4557 | libc_cv_compiler_ok=yes | |
4558 | else | |
4559 | libc_cv_compiler_ok=no | |
4560 | fi | |
4561 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4562 | fi | |
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5 | |
4564 | $as_echo "$libc_cv_compiler_ok" >&6; } | |
4565 | if test $libc_cv_compiler_ok != yes; then : | |
4566 | critic_missing="$critic_missing compiler" | |
4567 | fi | |
4568 | ||
43ecc41d AZ |
4569 | if test "x$maintainer" = "xyes"; then |
4570 | for ac_prog in autoconf | |
4baa087a RM |
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; } |
43ecc41d | 4576 | if ${ac_cv_prog_AUTOCONF+:} false; then : |
322e23db | 4577 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 4578 | else |
43ecc41d AZ |
4579 | if test -n "$AUTOCONF"; then |
4580 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
cd6ede75 | 4581 | else |
3a12e572 UD |
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 |
f4a58f0d | 4588 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
43ecc41d | 4589 | ac_cv_prog_AUTOCONF="$ac_prog" |
b08c89d9 | 4590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
4591 | break 2 |
4592 | fi | |
4593 | done | |
b08c89d9 | 4594 | done |
26f56c1c | 4595 | IFS=$as_save_IFS |
3a12e572 | 4596 | |
cd6ede75 UD |
4597 | fi |
4598 | fi | |
43ecc41d AZ |
4599 | AUTOCONF=$ac_cv_prog_AUTOCONF |
4600 | if test -n "$AUTOCONF"; then | |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 | |
4602 | $as_echo "$AUTOCONF" >&6; } | |
cd6ede75 | 4603 | else |
b08c89d9 | 4604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4605 | $as_echo "no" >&6; } |
cd6ede75 UD |
4606 | fi |
4607 | ||
26f56c1c | 4608 | |
43ecc41d | 4609 | test -n "$AUTOCONF" && break |
4baa087a | 4610 | done |
43ecc41d | 4611 | test -n "$AUTOCONF" || AUTOCONF="no" |
4baa087a | 4612 | |
43ecc41d AZ |
4613 | case "x$AUTOCONF" in |
4614 | xno|x|x:) AUTOCONF=no ;; | |
4615 | *) | |
4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 | |
4617 | $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } | |
4618 | if ${libc_cv_autoconf_works+:} false; then : | |
4619 | $as_echo_n "(cached) " >&6 | |
4baa087a | 4620 | else |
43ecc41d AZ |
4621 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then |
4622 | libc_cv_autoconf_works=yes | |
4623 | else | |
4624 | libc_cv_autoconf_works=no | |
4625 | fi | |
3a12e572 | 4626 | fi |
43ecc41d AZ |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 |
4628 | $as_echo "$libc_cv_autoconf_works" >&6; } | |
4629 | test $libc_cv_autoconf_works = yes || AUTOCONF=no | |
4630 | ;; | |
4631 | esac | |
4632 | if test "x$AUTOCONF" = xno; then | |
4633 | aux_missing="$aux_missing autoconf" | |
4634 | fi | |
4635 | else | |
4636 | AUTOCONF=no | |
4baa087a RM |
4637 | fi |
4638 | ||
43ecc41d AZ |
4639 | # Check for python3 if available, or else python. |
4640 | for ac_prog in python3 python | |
4baa087a RM |
4641 | do |
4642 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4643 | set dummy $ac_prog; ac_word=$2 | |
b08c89d9 | 4644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 4645 | $as_echo_n "checking for $ac_word... " >&6; } |
43ecc41d | 4646 | if ${ac_cv_prog_PYTHON_PROG+:} false; then : |
322e23db | 4647 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 4648 | else |
43ecc41d AZ |
4649 | if test -n "$PYTHON_PROG"; then |
4650 | ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. | |
cd6ede75 | 4651 | else |
3a12e572 UD |
4652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4653 | for as_dir in $PATH | |
4654 | do | |
4655 | IFS=$as_save_IFS | |
4656 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 4657 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 4658 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
43ecc41d | 4659 | ac_cv_prog_PYTHON_PROG="$ac_prog" |
b08c89d9 | 4660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
4661 | break 2 |
4662 | fi | |
4663 | done | |
b08c89d9 | 4664 | done |
26f56c1c | 4665 | IFS=$as_save_IFS |
3a12e572 | 4666 | |
cd6ede75 UD |
4667 | fi |
4668 | fi | |
43ecc41d AZ |
4669 | PYTHON_PROG=$ac_cv_prog_PYTHON_PROG |
4670 | if test -n "$PYTHON_PROG"; then | |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5 | |
4672 | $as_echo "$PYTHON_PROG" >&6; } | |
cd6ede75 | 4673 | else |
b08c89d9 | 4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 4675 | $as_echo "no" >&6; } |
cd6ede75 UD |
4676 | fi |
4677 | ||
26f56c1c | 4678 | |
43ecc41d | 4679 | test -n "$PYTHON_PROG" && break |
4baa087a | 4680 | done |
5edb9387 | 4681 | |
43ecc41d | 4682 | if test -z "$PYTHON_PROG"; then |
4baa087a | 4683 | ac_verc_fail=yes |
5edb9387 | 4684 | else |
4baa087a | 4685 | # Found it, now check the version. |
43ecc41d AZ |
4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5 |
4687 | $as_echo_n "checking version of $PYTHON_PROG... " >&6; } | |
4688 | ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'` | |
4baa087a RM |
4689 | case $ac_prog_version in |
4690 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 4691 | 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) |
4baa087a RM |
4692 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
4693 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 4694 | |
4baa087a | 4695 | esac |
b08c89d9 | 4696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
322e23db | 4697 | $as_echo "$ac_prog_version" >&6; } |
5edb9387 | 4698 | fi |
4baa087a | 4699 | if test $ac_verc_fail = yes; then |
43ecc41d | 4700 | critic_missing="$critic_missing python" |
5edb9387 | 4701 | fi |
cd6ede75 | 4702 | |
43ecc41d AZ |
4703 | PYTHON="$PYTHON_PROG -B" |
4704 | ||
4705 | ||
4706 | test -n "$critic_missing" && as_fn_error $? " | |
4707 | *** These critical programs are missing or too old:$critic_missing | |
4708 | *** Check the INSTALL file for required versions." "$LINENO" 5 | |
4709 | ||
4710 | test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
4711 | *** These auxiliary programs are missing or incompatible versions:$aux_missing | |
4712 | *** some features or tests will be disabled. | |
4713 | *** Check the INSTALL file for required versions." >&5 | |
4714 | $as_echo "$as_me: WARNING: | |
4715 | *** These auxiliary programs are missing or incompatible versions:$aux_missing | |
4716 | *** some features or tests will be disabled. | |
4717 | *** Check the INSTALL file for required versions." >&2;} | |
4718 | ||
4719 | ||
4720 | # Determine whether to use fpu or nofpu sysdeps directories. | |
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5 | |
4722 | $as_echo_n "checking for use of fpu sysdeps directories... " >&6; } | |
4723 | if ${libc_cv_with_fp+:} false; then : | |
322e23db | 4724 | $as_echo_n "(cached) " >&6 |
c4d23330 | 4725 | else |
43ecc41d AZ |
4726 | cat > conftest.c <<EOF |
4727 | #if $with_fp_cond | |
4728 | int dummy; | |
4729 | #else | |
4730 | # error "no hardware floating point" | |
4731 | #endif | |
4732 | EOF | |
4733 | libc_cv_with_fp=no | |
4734 | if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \ | |
4735 | 1>&5 2>&5 ; then | |
4736 | libc_cv_with_fp=yes | |
c4d23330 | 4737 | fi |
43ecc41d | 4738 | rm -f conftest* |
c4d23330 | 4739 | fi |
43ecc41d AZ |
4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 |
4741 | $as_echo "$libc_cv_with_fp" >&6; } | |
4742 | ||
4743 | ||
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5 | |
4745 | $as_echo_n "checking for -fstack-protector... " >&6; } | |
4746 | if ${libc_cv_ssp+:} false; then : | |
4747 | $as_echo_n "(cached) " >&6 | |
c4d23330 | 4748 | else |
43ecc41d AZ |
4749 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' |
4750 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
4751 | (eval $ac_try) 2>&5 | |
4752 | ac_status=$? | |
4753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4754 | test $ac_status = 0; }; }; then : | |
4755 | libc_cv_ssp=yes | |
4756 | else | |
4757 | libc_cv_ssp=no | |
c4d23330 RM |
4758 | fi |
4759 | ||
43ecc41d AZ |
4760 | fi |
4761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 | |
4762 | $as_echo "$libc_cv_ssp" >&6; } | |
26f56c1c | 4763 | |
43ecc41d AZ |
4764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5 |
4765 | $as_echo_n "checking for -fstack-protector-strong... " >&6; } | |
4766 | if ${libc_cv_ssp_strong+:} false; then : | |
4767 | $as_echo_n "(cached) " >&6 | |
c4d23330 | 4768 | else |
43ecc41d AZ |
4769 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' |
4770 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
4771 | (eval $ac_try) 2>&5 | |
4772 | ac_status=$? | |
4773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4774 | test $ac_status = 0; }; }; then : | |
4775 | libc_cv_ssp_strong=yes | |
4776 | else | |
4777 | libc_cv_ssp_strong=no | |
c4d23330 | 4778 | fi |
43ecc41d | 4779 | |
c4d23330 | 4780 | fi |
43ecc41d AZ |
4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 |
4782 | $as_echo "$libc_cv_ssp_strong" >&6; } | |
c4d23330 | 4783 | |
43ecc41d AZ |
4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5 |
4785 | $as_echo_n "checking for -fstack-protector-all... " >&6; } | |
4786 | if ${libc_cv_ssp_all+:} false; then : | |
0786794f AM |
4787 | $as_echo_n "(cached) " >&6 |
4788 | else | |
43ecc41d AZ |
4789 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' |
4790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
4791 | (eval $ac_try) 2>&5 | |
4792 | ac_status=$? | |
4793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4794 | test $ac_status = 0; }; }; then : | |
4795 | libc_cv_ssp_all=yes | |
0786794f | 4796 | else |
43ecc41d AZ |
4797 | libc_cv_ssp_all=no |
4798 | fi | |
0786794f AM |
4799 | |
4800 | fi | |
43ecc41d AZ |
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 |
4802 | $as_echo "$libc_cv_ssp_all" >&6; } | |
4803 | ||
4804 | stack_protector= | |
4805 | no_stack_protector= | |
4806 | if test "$libc_cv_ssp" = yes; then | |
4807 | no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0" | |
4808 | $as_echo "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h | |
4809 | ||
0786794f | 4810 | fi |
43ecc41d AZ |
4811 | |
4812 | if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then | |
4813 | stack_protector="-fstack-protector" | |
4814 | $as_echo "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h | |
4815 | ||
4816 | elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then | |
4817 | stack_protector="-fstack-protector-all" | |
4818 | $as_echo "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h | |
4819 | ||
4820 | elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then | |
4821 | stack_protector="-fstack-protector-strong" | |
4822 | $as_echo "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h | |
4823 | ||
0786794f | 4824 | else |
43ecc41d AZ |
4825 | stack_protector="-fno-stack-protector" |
4826 | $as_echo "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h | |
4827 | ||
0786794f AM |
4828 | fi |
4829 | ||
4830 | ||
0786794f | 4831 | |
43ecc41d AZ |
4832 | |
4833 | if test -n "$stack_protector"; then | |
4834 | no_ssp=-fno-stack-protector | |
0786794f | 4835 | else |
43ecc41d | 4836 | no_ssp= |
0786794f | 4837 | |
43ecc41d AZ |
4838 | if test "$enable_stack_protector" != no; then |
4839 | as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5 | |
4840 | fi | |
0786794f AM |
4841 | fi |
4842 | ||
43ecc41d AZ |
4843 | # For the multi-arch option we need support in the assembler & linker. |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5 | |
4845 | $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } | |
4846 | if ${libc_cv_ld_gnu_indirect_function+:} false; then : | |
1faaf703 JB |
4847 | $as_echo_n "(cached) " >&6 |
4848 | else | |
43ecc41d AZ |
4849 | cat > conftest.S <<EOF |
4850 | .type foo,%gnu_indirect_function | |
4851 | foo: | |
4852 | .globl _start | |
4853 | _start: | |
4854 | .globl __start | |
4855 | __start: | |
4856 | .data | |
4857 | #ifdef _LP64 | |
4858 | .quad foo | |
4859 | #else | |
4860 | .long foo | |
4861 | #endif | |
4862 | EOF | |
4863 | libc_cv_ld_gnu_indirect_function=no | |
4864 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
4865 | -nostartfiles -nostdlib $no_ssp \ | |
4866 | -o conftest conftest.S 1>&5 2>&5; then | |
4867 | # Do a link to see if the backend supports IFUNC relocs. | |
4868 | $READELF -r conftest 1>&5 | |
4869 | LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && { | |
4870 | libc_cv_ld_gnu_indirect_function=yes | |
4871 | } | |
4872 | fi | |
4873 | rm -f conftest* | |
4874 | fi | |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 | |
4876 | $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; } | |
4877 | ||
4878 | # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro. | |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5 | |
4880 | $as_echo_n "checking for gcc attribute ifunc support... " >&6; } | |
4881 | if ${libc_cv_gcc_indirect_function+:} false; then : | |
4882 | $as_echo_n "(cached) " >&6 | |
1faaf703 | 4883 | else |
43ecc41d AZ |
4884 | cat > conftest.c <<EOF |
4885 | extern int func (int); | |
4886 | int used_func (int a) | |
4887 | { | |
4888 | return a; | |
4889 | } | |
4890 | static void *resolver () | |
4891 | { | |
4892 | return &used_func; | |
4893 | } | |
4894 | extern __typeof (func) func __attribute__ ((ifunc ("resolver"))); | |
4895 | EOF | |
4896 | libc_cv_gcc_indirect_function=no | |
4897 | if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \ | |
4898 | 2>&5 ; then | |
4899 | if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then | |
4900 | libc_cv_gcc_indirect_function=yes | |
1faaf703 | 4901 | fi |
1faaf703 | 4902 | fi |
43ecc41d AZ |
4903 | rm -f conftest* |
4904 | fi | |
4905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5 | |
4906 | $as_echo "$libc_cv_gcc_indirect_function" >&6; } | |
4907 | ||
4908 | # Check if linker supports textrel relocation with ifunc (used on elf/tests). | |
4909 | # Note that it relies on libc_cv_ld_gnu_indirect_function test above. | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5 | |
4911 | $as_echo_n "checking whether the linker supports textrels along with ifunc... " >&6; } | |
4912 | if ${libc_cv_textrel_ifunc+:} false; then : | |
4913 | $as_echo_n "(cached) " >&6 | |
4914 | else | |
4915 | cat > conftest.S <<EOF | |
4916 | .type foo,%gnu_indirect_function | |
4917 | foo: | |
4918 | .globl _start | |
4919 | _start: | |
4920 | .globl __start | |
4921 | __start: | |
4922 | .data | |
4923 | #ifdef _LP64 | |
4924 | .quad foo | |
4925 | #else | |
4926 | .long foo | |
4927 | #endif | |
4928 | .text | |
4929 | .globl address | |
4930 | address: | |
4931 | #ifdef _LP64 | |
4932 | .quad address | |
4933 | #else | |
4934 | .long address | |
4935 | #endif | |
4936 | EOF | |
4937 | libc_cv_textrel_ifunc=no | |
4938 | if test $libc_cv_ld_gnu_indirect_function = yes; then | |
4939 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S' | |
4940 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
4941 | (eval $ac_try) 2>&5 | |
4942 | ac_status=$? | |
4943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4944 | test $ac_status = 0; }; }; then | |
4945 | libc_cv_textrel_ifunc=yes | |
4946 | fi | |
1faaf703 | 4947 | fi |
43ecc41d | 4948 | rm -f conftest* |
1faaf703 | 4949 | fi |
43ecc41d AZ |
4950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 |
4951 | $as_echo "$libc_cv_textrel_ifunc" >&6; } | |
1faaf703 JB |
4952 | |
4953 | ||
43ecc41d AZ |
4954 | # Check if CC supports attribute retain as it is used in attribute_used_retain macro. |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5 | |
4956 | $as_echo_n "checking for GNU attribute retain support... " >&6; } | |
4957 | if ${libc_cv_gnu_retain+:} false; then : | |
4958 | $as_echo_n "(cached) " >&6 | |
1faaf703 | 4959 | else |
43ecc41d AZ |
4960 | cat > conftest.c <<EOF |
4961 | static int var __attribute__ ((used, retain, section ("__libc_atexit"))); | |
4962 | EOF | |
4963 | libc_cv_gnu_retain=no | |
4964 | if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \ | |
4965 | 2>&5 ; then | |
4966 | libc_cv_gnu_retain=yes | |
1faaf703 | 4967 | fi |
43ecc41d | 4968 | rm -f conftest* |
1faaf703 | 4969 | fi |
43ecc41d AZ |
4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 |
4971 | $as_echo "$libc_cv_gnu_retain" >&6; } | |
4972 | if test $libc_cv_gnu_retain = yes; then | |
4973 | $as_echo "#define HAVE_GNU_RETAIN 1" >>confdefs.h | |
1faaf703 | 4974 | |
43ecc41d AZ |
4975 | fi |
4976 | config_vars="$config_vars | |
4977 | have-gnu-retain = $libc_cv_gnu_retain" | |
4baa087a | 4978 | |
43ecc41d AZ |
4979 | # Check if gcc warns about alias for function with incompatible types. |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5 | |
4981 | $as_echo_n "checking if compiler warns about alias for function with incompatible types... " >&6; } | |
4982 | if ${libc_cv_gcc_incompatible_alias+:} false; then : | |
461a7b1e RM |
4983 | $as_echo_n "(cached) " >&6 |
4984 | else | |
43ecc41d AZ |
4985 | cat > conftest.c <<EOF |
4986 | int __redirect_foo (const void *s, int c); | |
461a7b1e | 4987 | |
43ecc41d AZ |
4988 | __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); |
4989 | __typeof (__redirect_foo) *foo_impl (void) | |
461a7b1e | 4990 | { |
461a7b1e RM |
4991 | return 0; |
4992 | } | |
43ecc41d AZ |
4993 | |
4994 | extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo"))); | |
4995 | EOF | |
4996 | libc_cv_gcc_incompatible_alias=yes | |
4997 | if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then | |
4998 | libc_cv_gcc_incompatible_alias=no | |
461a7b1e | 4999 | fi |
43ecc41d | 5000 | rm -f conftest* |
461a7b1e | 5001 | fi |
43ecc41d AZ |
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5 |
5003 | $as_echo "$libc_cv_gcc_incompatible_alias" >&6; } | |
461a7b1e | 5004 | |
43ecc41d AZ |
5005 | if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then |
5006 | if test x"$multi_arch" = xyes; then | |
5007 | as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5 | |
5008 | else | |
5009 | multi_arch=no | |
30b99d79 | 5010 | fi |
30b99d79 | 5011 | fi |
43ecc41d AZ |
5012 | if test x"$libc_cv_gcc_indirect_function" != xyes; then |
5013 | # GCC 8+ emits a warning for alias with incompatible types and it might | |
5014 | # fail to build ifunc resolvers aliases to either weak or internal | |
5015 | # symbols. Disables multiarch build in this case. | |
5016 | if test x"$libc_cv_gcc_incompatible_alias" = xyes; then | |
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5 | |
5018 | $as_echo "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;} | |
5019 | if test x"$multi_arch" = xyes; then | |
5020 | as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5 | |
5021 | fi | |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5 | |
5023 | $as_echo "$as_me: WARNING: Multi-arch is disabled." >&2;} | |
5024 | multi_arch=no | |
5025 | elif test x"$multi_arch" = xyes; then | |
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. | |
5027 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5 | |
5028 | $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. | |
5029 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;} | |
5030 | fi | |
30b99d79 | 5031 | fi |
43ecc41d AZ |
5032 | multi_arch_d= |
5033 | if test x"$multi_arch" != xno; then | |
5034 | multi_arch_d=/multiarch | |
30b99d79 RM |
5035 | fi |
5036 | ||
43ecc41d AZ |
5037 | # Compute the list of sysdep directories for this configuration. |
5038 | # This can take a while to compute. | |
5039 | sysdep_dir=$srcdir/sysdeps | |
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5 | |
5041 | $as_echo_n "checking sysdep dirs... " >&6; } | |
5042 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. | |
5043 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
5044 | ||
5045 | test "x$base_os" != x || case "$os" in | |
5046 | gnu*) | |
5047 | base_os=mach/hurd ;; | |
5048 | linux*) | |
5049 | base_os=unix/sysv ;; | |
5050 | esac | |
30b99d79 | 5051 | |
43ecc41d AZ |
5052 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. |
5053 | tail=$os | |
5054 | ostry=$os | |
5055 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
5056 | ostry="$ostry /$o" | |
5057 | tail=$o | |
5058 | done | |
5059 | o=`echo $tail | sed 's/[0-9]*$//'` | |
5060 | if test $o != $tail; then | |
5061 | ostry="$ostry /$o" | |
30b99d79 | 5062 | fi |
43ecc41d AZ |
5063 | # For linux-gnu, try linux-gnu, then linux. |
5064 | o=`echo $tail | sed 's/-.*$//'` | |
5065 | if test $o != $tail; then | |
5066 | ostry="$ostry /$o" | |
5067 | fi | |
5068 | ||
5069 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
5070 | base= | |
5071 | tail=$base_os | |
5072 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
5073 | set $b | |
5074 | base="$base /$1" | |
5075 | tail="$2" | |
5076 | done | |
5077 | ||
5078 | # For sparc/sparc32, try sparc/sparc32 and then sparc. | |
5079 | mach= | |
5080 | tail=$machine${submachine:+/$submachine} | |
5081 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
5082 | set $m | |
5083 | # Prepend the machine's FPU directory unless the architecture specific | |
5084 | # preconfigure disables it. | |
5085 | if test "$libc_cv_with_fp" = yes; then | |
5086 | maybe_fpu=/fpu | |
5087 | else | |
5088 | maybe_fpu=/nofpu | |
30b99d79 | 5089 | fi |
43ecc41d AZ |
5090 | # For each machine term, try it with and then without /multiarch. |
5091 | for try_fpu in $maybe_fpu ''; do | |
5092 | for try_multi in $multi_arch_d ''; do | |
5093 | mach="$mach /$1$try_fpu$try_multi" | |
5094 | done | |
5095 | done | |
5096 | tail="$2" | |
30b99d79 | 5097 | done |
43ecc41d AZ |
5098 | |
5099 | ||
5100 | # Find what sysdep directories exist. | |
5101 | sysnames= | |
5102 | for b in $base ''; do | |
5103 | for m0 in $mach ''; do | |
5104 | for v in /$vendor ''; do | |
5105 | test "$v" = / && continue | |
5106 | for o in /$ostry ''; do | |
5107 | test "$o" = / && continue | |
5108 | for m in $mach ''; do | |
5109 | try_suffix="$m0$b$v$o$m" | |
5110 | if test -n "$try_suffix"; then | |
5111 | try_srcdir="${srcdir}/" | |
5112 | try="sysdeps$try_suffix" | |
5113 | test -n "$enable_debug_configure" && | |
5114 | echo "$0 DEBUG: try $try" >&2 | |
5115 | if test -d "$try_srcdir$try"; then | |
5116 | sysnames="$sysnames $try" | |
5117 | { test -n "$o" || test -n "$b"; } && os_used=t | |
5118 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
5119 | case x${m0:-$m} in | |
5120 | x*/$submachine) submachine_used=t ;; | |
5121 | esac | |
5122 | fi | |
5123 | fi | |
5124 | done | |
5125 | done | |
5126 | done | |
30b99d79 | 5127 | done |
43ecc41d | 5128 | done |
30b99d79 | 5129 | |
43ecc41d AZ |
5130 | # If the assembler supports gnu_indirect_function symbol type and the |
5131 | # architecture supports multi-arch, we enable multi-arch by default. | |
5132 | case $sysnames in | |
5133 | *"$multi_arch_d"*) | |
5134 | ;; | |
5135 | *) | |
5136 | test x"$multi_arch" = xdefault && multi_arch=no | |
5137 | ;; | |
30b99d79 | 5138 | esac |
43ecc41d AZ |
5139 | if test x"$multi_arch" != xno; then |
5140 | $as_echo "#define USE_MULTIARCH 1" >>confdefs.h | |
30b99d79 | 5141 | |
43ecc41d | 5142 | fi |
d30cf5bb | 5143 | |
c4d23330 | 5144 | |
43ecc41d AZ |
5145 | if test -z "$os_used" && test "$os" != none; then |
5146 | as_fn_error $? "Operating system $os is not supported." "$LINENO" 5 | |
c4d23330 | 5147 | fi |
43ecc41d AZ |
5148 | if test -z "$machine_used" && test "$machine" != none; then |
5149 | as_fn_error $? "The $machine is not supported." "$LINENO" 5 | |
c4d23330 | 5150 | fi |
43ecc41d AZ |
5151 | if test -z "$submachine_used" && test -n "$submachine"; then |
5152 | as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5 | |
c4d23330 RM |
5153 | fi |
5154 | ||
26f56c1c | 5155 | |
43ecc41d | 5156 | # We have now validated the configuration. |
c4d23330 | 5157 | |
43ecc41d AZ |
5158 | # Expand the list of system names into a full list of directories |
5159 | # from each element's parent name and Implies file (if present). | |
5160 | set $sysnames | |
5161 | names= | |
5162 | while test $# -gt 0; do | |
5163 | name=$1 | |
5164 | shift | |
5165 | ||
5166 | case " $names " in *" $name "*) | |
5167 | # Already in the list. | |
5168 | continue | |
8894bad3 | 5169 | esac |
c4d23330 | 5170 | |
43ecc41d AZ |
5171 | # Report each name as we discover it, so there is no long pause in output. |
5172 | echo $ECHO_N "$name $ECHO_C" >&6 | |
8ce8299f | 5173 | |
43ecc41d | 5174 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
8ce8299f | 5175 | |
43ecc41d AZ |
5176 | case $name in |
5177 | /*) xsrcdir= ;; | |
5178 | *) xsrcdir=$srcdir/ ;; | |
5179 | esac | |
5180 | test -n "$enable_debug_configure" && | |
5181 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
8ce8299f | 5182 | |
43ecc41d AZ |
5183 | for implies_file in Implies Implies-before Implies-after; do |
5184 | implies_type=`echo $implies_file | sed s/-/_/` | |
5185 | eval ${implies_type}= | |
5186 | if test -f $xsrcdir$name/$implies_file; then | |
5187 | # Collect more names from the `Implies' file (removing comments). | |
5188 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`" | |
5189 | for x in $implied_candidate; do | |
5190 | found=no | |
5191 | if test -d $xsrcdir$name_base/$x; then | |
5192 | eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\"" | |
5193 | found=yes | |
5194 | fi | |
5195 | try="sysdeps/$x" | |
5196 | try_srcdir=$srcdir/ | |
5197 | test -n "$enable_debug_configure" && | |
5198 | echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2 | |
5199 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
5200 | then | |
5201 | eval "${implies_type}=\"\$${implies_type} \$try\"" | |
5202 | found=yes | |
5203 | fi | |
5204 | if test $found = no; then | |
5205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5 | |
5206 | $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;} | |
5207 | fi | |
5208 | done | |
5209 | fi | |
5210 | done | |
8ce8299f | 5211 | |
43ecc41d AZ |
5212 | # Add NAME to the list of names. |
5213 | names="$names $name" | |
8ce8299f | 5214 | |
43ecc41d AZ |
5215 | # Find the parent of NAME, using the empty string if it has none. |
5216 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
c6982f7e | 5217 | |
43ecc41d AZ |
5218 | test -n "$enable_debug_configure" && |
5219 | echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \ | |
5220 | Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2 | |
c6982f7e | 5221 | |
43ecc41d AZ |
5222 | # Add the names implied by NAME, and NAME's parent (if it has one), to |
5223 | # the list of names to be processed (the argument list). We prepend the | |
5224 | # implied names to the list and append the parent. We want implied | |
5225 | # directories to come before further directories inferred from the | |
5226 | # configuration components; this ensures that for sysv4, unix/common | |
5227 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
5228 | # after sysv4). | |
5229 | sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`" | |
5230 | test -n "$sysnames" && set $sysnames | |
5231 | done | |
8ce8299f | 5232 | |
43ecc41d AZ |
5233 | # Add the default directories. |
5234 | default_sysnames="sysdeps/generic" | |
5235 | sysnames="$names $default_sysnames" | |
32a448ed | 5236 | |
43ecc41d AZ |
5237 | # The other names were emitted during the scan. |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5 | |
5239 | $as_echo "$default_sysnames" >&6; } | |
ea9f119b | 5240 | |
3c720987 UD |
5241 | # if using special system headers, find out the compiler's sekrit |
5242 | # header directory and add that to the list. NOTE: Only does the right | |
5243 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
5244 | if test -n "$sysheaders"; then | |
67fbfa5c RM |
5245 | SYSINCLUDES=-nostdinc |
5246 | for d in include include-fixed; do | |
22dca1ea | 5247 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && |
67fbfa5c RM |
5248 | SYSINCLUDES="$SYSINCLUDES -isystem $i" |
5249 | done | |
5250 | SYSINCLUDES="$SYSINCLUDES \ | |
3d6ce23a | 5251 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" |
ef226fec | 5252 | if test -n "$CXX"; then |
7872cfb0 | 5253 | CXX_SYSINCLUDES= |
67060746 AC |
5254 | for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \ |
5255 | | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do | |
5256 | test "x$cxxheaders" != x && | |
5257 | CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders" | |
5258 | done | |
ef226fec | 5259 | fi |
3c720987 UD |
5260 | fi |
5261 | ||
5262 | ||
ef226fec | 5263 | |
fc3e1337 FW |
5264 | # Obtain some C++ header file paths. This is used to make a local |
5265 | # copy of those headers in Makerules. | |
5266 | if test -n "$CXX"; then | |
5267 | find_cxx_header () { | |
596183a1 AZ |
5268 | echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \ |
5269 | | $AWK '$1 == "."{print $2}' | |
fc3e1337 FW |
5270 | } |
5271 | CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" | |
5272 | CXX_CMATH_HEADER="$(find_cxx_header cmath)" | |
a65ea28d | 5273 | CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)" |
fc3e1337 FW |
5274 | fi |
5275 | ||
5276 | ||
5277 | ||
a65ea28d | 5278 | |
3911660e UD |
5279 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
5280 | # since this would lead to problems installing/building glibc. | |
5281 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
5282 | # is true: | |
5283 | # - one of the terminals (":" and ";") is the first or last sign | |
5284 | # - two terminals occur directly after each other | |
5285 | # - the path contains an element with a dot in it | |
b08c89d9 | 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5 |
322e23db | 5287 | $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; } |
3911660e UD |
5288 | case ${LD_LIBRARY_PATH} in |
5289 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 5290 | ld_library_path_setting="contains current directory" |
3911660e UD |
5291 | ;; |
5292 | *) | |
5293 | ld_library_path_setting="ok" | |
5294 | ;; | |
5295 | esac | |
b08c89d9 | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5 |
322e23db | 5297 | $as_echo "$ld_library_path_setting" >&6; } |
3911660e | 5298 | if test "$ld_library_path_setting" != "ok"; then |
4a531bb0 | 5299 | as_fn_error $? " |
3a12e572 UD |
5300 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
5301 | *** building glibc. Please change the environment variable | |
b08c89d9 | 5302 | *** and run configure again." "$LINENO" 5 |
3911660e UD |
5303 | fi |
5304 | ||
cd6ede75 UD |
5305 | # Extract the first word of "bash", so it can be a program name with args. |
5306 | set dummy bash; ac_word=$2 | |
b08c89d9 | 5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5308 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5309 | if ${ac_cv_path_BASH_SHELL+:} false; then : |
322e23db | 5310 | $as_echo_n "(cached) " >&6 |
cd6ede75 | 5311 | else |
26f56c1c | 5312 | case $BASH_SHELL in |
3a12e572 | 5313 | [\\/]* | ?:[\\/]*) |
26f56c1c | 5314 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. |
cd6ede75 UD |
5315 | ;; |
5316 | *) | |
3a12e572 UD |
5317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5318 | for as_dir in $PATH | |
5319 | do | |
5320 | IFS=$as_save_IFS | |
5321 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5322 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 5323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
26f56c1c | 5324 | ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5326 | break 2 |
5327 | fi | |
5328 | done | |
b08c89d9 | 5329 | done |
26f56c1c | 5330 | IFS=$as_save_IFS |
3a12e572 | 5331 | |
26f56c1c | 5332 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" |
cd6ede75 UD |
5333 | ;; |
5334 | esac | |
5335 | fi | |
26f56c1c UD |
5336 | BASH_SHELL=$ac_cv_path_BASH_SHELL |
5337 | if test -n "$BASH_SHELL"; then | |
b08c89d9 | 5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 |
322e23db | 5339 | $as_echo "$BASH_SHELL" >&6; } |
cd6ede75 | 5340 | else |
b08c89d9 | 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5342 | $as_echo "no" >&6; } |
cd6ede75 UD |
5343 | fi |
5344 | ||
26f56c1c | 5345 | |
cd6ede75 | 5346 | |
c0016081 UD |
5347 | # Extract the first word of "perl", so it can be a program name with args. |
5348 | set dummy perl; ac_word=$2 | |
b08c89d9 | 5349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5350 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5351 | if ${ac_cv_path_PERL+:} false; then : |
322e23db | 5352 | $as_echo_n "(cached) " >&6 |
a2b08ee5 | 5353 | else |
3a12e572 UD |
5354 | case $PERL in |
5355 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
5356 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
5357 | ;; | |
5358 | *) | |
3a12e572 UD |
5359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5360 | for as_dir in $PATH | |
5361 | do | |
5362 | IFS=$as_save_IFS | |
5363 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5364 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 5365 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3a12e572 | 5366 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5368 | break 2 |
5369 | fi | |
5370 | done | |
b08c89d9 | 5371 | done |
26f56c1c | 5372 | IFS=$as_save_IFS |
3a12e572 | 5373 | |
c0016081 | 5374 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
5375 | ;; |
5376 | esac | |
5377 | fi | |
3a12e572 | 5378 | PERL=$ac_cv_path_PERL |
a2b08ee5 | 5379 | if test -n "$PERL"; then |
b08c89d9 | 5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
322e23db | 5381 | $as_echo "$PERL" >&6; } |
a2b08ee5 | 5382 | else |
b08c89d9 | 5383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5384 | $as_echo "no" >&6; } |
a2b08ee5 UD |
5385 | fi |
5386 | ||
26f56c1c | 5387 | |
2fd5d029 RM |
5388 | if test "$PERL" != no && |
5389 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
5390 | PERL=no | |
fc304e02 | 5391 | fi |
c0016081 UD |
5392 | # Extract the first word of "install-info", so it can be a program name with args. |
5393 | set dummy install-info; ac_word=$2 | |
b08c89d9 | 5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
322e23db | 5395 | $as_echo_n "checking for $ac_word... " >&6; } |
f318beb8 | 5396 | if ${ac_cv_path_INSTALL_INFO+:} false; then : |
322e23db | 5397 | $as_echo_n "(cached) " >&6 |
c0016081 | 5398 | else |
3a12e572 UD |
5399 | case $INSTALL_INFO in |
5400 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
5401 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
5402 | ;; | |
5403 | *) | |
3a12e572 | 5404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
5405 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
5406 | for as_dir in $as_dummy | |
3a12e572 UD |
5407 | do |
5408 | IFS=$as_save_IFS | |
5409 | test -z "$as_dir" && as_dir=. | |
b08c89d9 | 5410 | for ac_exec_ext in '' $ac_executable_extensions; do |
f4a58f0d | 5411 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3a12e572 | 5412 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
b08c89d9 | 5413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5414 | break 2 |
5415 | fi | |
5416 | done | |
b08c89d9 | 5417 | done |
26f56c1c | 5418 | IFS=$as_save_IFS |
3a12e572 | 5419 | |
c0016081 UD |
5420 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
5421 | ;; | |
5422 | esac | |
5423 | fi | |
3a12e572 | 5424 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
c0016081 | 5425 | if test -n "$INSTALL_INFO"; then |
b08c89d9 | 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
322e23db | 5427 | $as_echo "$INSTALL_INFO" >&6; } |
c0016081 | 5428 | else |
b08c89d9 | 5429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
322e23db | 5430 | $as_echo "no" >&6; } |
c0016081 UD |
5431 | fi |
5432 | ||
26f56c1c | 5433 | |
26f56c1c | 5434 | |
b08c89d9 | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5 |
322e23db | 5436 | $as_echo_n "checking for .set assembler directive... " >&6; } |
f318beb8 | 5437 | if ${libc_cv_asm_set_directive+:} false; then : |
322e23db | 5438 | $as_echo_n "(cached) " >&6 |
cd6ede75 UD |
5439 | else |
5440 | cat > conftest.s <<EOF | |
8c0c01db | 5441 | .text |
cd6ede75 UD |
5442 | foo: |
5443 | .set glibc_conftest_frobozz,foo | |
7b8e0d49 | 5444 | .globl glibc_conftest_frobozz |
cd6ede75 UD |
5445 | EOF |
5446 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
5447 | # (but it doesn't work), so we must do a linking check to be sure. | |
5448 | cat > conftest1.c <<\EOF | |
5449 | extern int glibc_conftest_frobozz; | |
640f0119 | 5450 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
5451 | EOF |
5452 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
66a704c4 | 5453 | -nostartfiles -nostdlib $no_ssp \ |
cd6ede75 UD |
5454 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
5455 | libc_cv_asm_set_directive=yes | |
5456 | else | |
5457 | libc_cv_asm_set_directive=no | |
5458 | fi | |
5459 | rm -f conftest* | |
5460 | fi | |
b08c89d9 | 5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 |
322e23db | 5462 | $as_echo "$libc_cv_asm_set_directive" >&6; } |
cd6ede75 | 5463 | if test $libc_cv_asm_set_directive = yes; then |
b08c89d9 | 5464 | $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
5465 | |
5466 | fi | |
5467 | ||
2a723ff6 | 5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5 |
83569fb8 L |
5469 | $as_echo_n "checking linker support for protected data symbol... " >&6; } |
5470 | if ${libc_cv_protected_data+:} false; then : | |
5471 | $as_echo_n "(cached) " >&6 | |
5472 | else | |
5473 | cat > conftest.c <<EOF | |
2a723ff6 | 5474 | int bar __attribute__ ((visibility ("protected"))) = 1; |
83569fb8 | 5475 | EOF |
2a723ff6 | 5476 | libc_cv_protected_data=no |
66a704c4 | 5477 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so' |
83569fb8 L |
5478 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5479 | (eval $ac_try) 2>&5 | |
5480 | ac_status=$? | |
5481 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5482 | test $ac_status = 0; }; }; then | |
2a723ff6 JM |
5483 | cat > conftest.c <<EOF |
5484 | extern int bar; | |
5485 | int main (void) { return bar; } | |
83569fb8 | 5486 | EOF |
66a704c4 | 5487 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' |
83569fb8 L |
5488 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5489 | (eval $ac_try) 2>&5 | |
5490 | ac_status=$? | |
5491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5492 | test $ac_status = 0; }; }; then | |
2a723ff6 | 5493 | libc_cv_protected_data=yes |
83569fb8 | 5494 | fi |
2a723ff6 JM |
5495 | fi |
5496 | rm -f conftest.* | |
83569fb8 L |
5497 | |
5498 | fi | |
5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 | |
5500 | $as_echo "$libc_cv_protected_data" >&6; } | |
83569fb8 L |
5501 | |
5502 | ||
19f1a11e L |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5 |
5504 | $as_echo_n "checking linker support for INSERT in linker script... " >&6; } | |
5505 | if ${libc_cv_insert+:} false; then : | |
5506 | $as_echo_n "(cached) " >&6 | |
5507 | else | |
5508 | cat > conftest.c <<EOF | |
5f07d47e | 5509 | int __attribute__ ((section(".bar"))) bar = 0x12345678; |
19f1a11e L |
5510 | int test (void) { return bar; } |
5511 | EOF | |
5512 | cat > conftest.t <<EOF | |
5513 | SECTIONS | |
5514 | { | |
5515 | .bar : { *(.bar) } | |
5516 | } | |
5517 | INSERT AFTER .rela.dyn; | |
5518 | EOF | |
5519 | libc_cv_insert=no | |
5520 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so' | |
5521 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5522 | (eval $ac_try) 2>&5 | |
5523 | ac_status=$? | |
5524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5525 | test $ac_status = 0; }; }; then | |
5526 | libc_cv_insert=yes | |
5527 | fi | |
5528 | rm -f conftest.* | |
5529 | ||
5530 | fi | |
5531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 | |
5532 | $as_echo "$libc_cv_insert" >&6; } | |
5533 | ||
5534 | ||
a0da5fe1 | 5535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5 |
322e23db | 5536 | $as_echo_n "checking for broken __attribute__((alias()))... " >&6; } |
f318beb8 | 5537 | if ${libc_cv_broken_alias_attribute+:} false; then : |
322e23db | 5538 | $as_echo_n "(cached) " >&6 |
37ba7d66 UD |
5539 | else |
5540 | cat > conftest.c <<EOF | |
a0da5fe1 UD |
5541 | extern int foo (int x) __asm ("xyzzy"); |
5542 | int bar (int x) { return x; } | |
5543 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); | |
5544 | extern int dfoo; | |
5545 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
5546 | int dfoo = 1; | |
37ba7d66 | 5547 | EOF |
a0da5fe1 UD |
5548 | libc_cv_broken_alias_attribute=yes |
5549 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
b08c89d9 | 5550 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
5551 | (eval $ac_try) 2>&5 |
5552 | ac_status=$? | |
b08c89d9 UD |
5553 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5554 | test $ac_status = 0; }; }; then | |
a0da5fe1 UD |
5555 | if grep 'xyzzy' conftest.s >/dev/null && |
5556 | grep 'abccb' conftest.s >/dev/null; then | |
5557 | libc_cv_broken_alias_attribute=no | |
5558 | fi | |
5559 | fi | |
5560 | rm -f conftest.c conftest.s | |
37ba7d66 | 5561 | |
3a12e572 | 5562 | fi |
b08c89d9 | 5563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 |
322e23db | 5564 | $as_echo "$libc_cv_broken_alias_attribute" >&6; } |
a0da5fe1 UD |
5565 | if test $libc_cv_broken_alias_attribute = yes; then |
5566 | as_fn_error $? "working alias attribute support required" "$LINENO" 5 | |
5567 | fi | |
37ba7d66 | 5568 | |
2a723ff6 | 5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5 |
322e23db | 5570 | $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; } |
f318beb8 | 5571 | if ${libc_cv_have_sdata_section+:} false; then : |
322e23db | 5572 | $as_echo_n "(cached) " >&6 |
0d01dace UD |
5573 | else |
5574 | echo "int i;" > conftest.c | |
2a723ff6 JM |
5575 | libc_cv_have_sdata_section=no |
5576 | if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | |
5577 | | grep '\.sdata' >/dev/null; then | |
5578 | libc_cv_have_sdata_section=yes | |
5579 | fi | |
5580 | rm -f conftest.c conftest.so | |
0d01dace | 5581 | |
3a12e572 | 5582 | fi |
b08c89d9 | 5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 |
322e23db | 5584 | $as_echo "$libc_cv_have_sdata_section" >&6; } |
2a723ff6 JM |
5585 | if test $libc_cv_have_sdata_section = yes; then |
5586 | $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h | |
0d01dace | 5587 | |
a0da5fe1 | 5588 | fi |
0d01dace | 5589 | |
a0da5fe1 | 5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5 |
322e23db | 5591 | $as_echo_n "checking for libunwind-support in compiler... " >&6; } |
f318beb8 | 5592 | if ${libc_cv_cc_with_libunwind+:} false; then : |
322e23db | 5593 | $as_echo_n "(cached) " >&6 |
c776b3d7 | 5594 | else |
c776b3d7 | 5595 | |
a0da5fe1 | 5596 | cat > conftest.c <<EOF |
cbdb12de UD |
5597 | int main (void) { return 0; } |
5598 | EOF | |
a0da5fe1 | 5599 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ |
8175a253 | 5600 | conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then |
a0da5fe1 UD |
5601 | libc_cv_cc_with_libunwind=yes |
5602 | else | |
5603 | libc_cv_cc_with_libunwind=no | |
5604 | fi | |
5605 | rm -f conftest* | |
c776b3d7 | 5606 | fi |
b08c89d9 | 5607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 |
322e23db | 5608 | $as_echo "$libc_cv_cc_with_libunwind" >&6; } |
c776b3d7 | 5609 | |
a0da5fe1 UD |
5610 | if test $libc_cv_cc_with_libunwind = yes; then |
5611 | $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h | |
c776b3d7 | 5612 | |
a0da5fe1 | 5613 | fi |
c776b3d7 | 5614 | |
a0da5fe1 UD |
5615 | ASFLAGS_config= |
5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5 | |
322e23db | 5617 | $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; } |
f318beb8 | 5618 | if ${libc_cv_as_noexecstack+:} false; then : |
322e23db | 5619 | $as_echo_n "(cached) " >&6 |
35915ec8 | 5620 | else |
a0da5fe1 | 5621 | cat > conftest.c <<EOF |
35915ec8 UD |
5622 | void foo (void) { } |
5623 | EOF | |
a0da5fe1 UD |
5624 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS |
5625 | -S -o conftest.s conftest.c 1>&5' | |
b08c89d9 | 5626 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
5627 | (eval $ac_try) 2>&5 |
5628 | ac_status=$? | |
b08c89d9 UD |
5629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5630 | test $ac_status = 0; }; } \ | |
8175a253 | 5631 | && grep .note.GNU-stack conftest.s >/dev/null \ |
a0da5fe1 UD |
5632 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack |
5633 | -c -o conftest.o conftest.s 1>&5' | |
b08c89d9 | 5634 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
5635 | (eval $ac_try) 2>&5 |
5636 | ac_status=$? | |
b08c89d9 UD |
5637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5638 | test $ac_status = 0; }; } | |
a0da5fe1 UD |
5639 | then |
5640 | libc_cv_as_noexecstack=yes | |
5641 | else | |
5642 | libc_cv_as_noexecstack=no | |
5643 | fi | |
5644 | rm -f conftest* | |
35915ec8 | 5645 | fi |
b08c89d9 | 5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 |
322e23db | 5647 | $as_echo "$libc_cv_as_noexecstack" >&6; } |
a0da5fe1 UD |
5648 | if test $libc_cv_as_noexecstack = yes; then |
5649 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
5650 | fi | |
35915ec8 | 5651 | |
2abf9ff1 | 5652 | |
6bfea974 L |
5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5 |
5654 | $as_echo_n "checking for linker that supports -z execstack... " >&6; } | |
5655 | libc_linker_feature=no | |
6cfc50f4 | 5656 | cat > conftest.c <<EOF |
2abf9ff1 RM |
5657 | int _start (void) { return 42; } |
5658 | EOF | |
6cfc50f4 AZ |
5659 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
5660 | -Wl,-z,execstack -nostdlib -nostartfiles | |
5661 | -fPIC -shared -o conftest.so conftest.c | |
5662 | 1>&5' | |
b08c89d9 | 5663 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2abf9ff1 RM |
5664 | (eval $ac_try) 2>&5 |
5665 | ac_status=$? | |
b08c89d9 UD |
5666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5667 | test $ac_status = 0; }; } | |
6cfc50f4 AZ |
5668 | then |
5669 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \ | |
5670 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
5671 | | grep "warning: -z execstack ignored" > /dev/null 2>&1; then | |
5672 | true | |
5673 | else | |
5674 | libc_linker_feature=yes | |
6bfea974 L |
5675 | fi |
5676 | fi | |
6cfc50f4 | 5677 | rm -f conftest* |
6bfea974 | 5678 | if test $libc_linker_feature = yes; then |
a0da5fe1 UD |
5679 | libc_cv_z_execstack=yes |
5680 | else | |
5681 | libc_cv_z_execstack=no | |
5682 | fi | |
6bfea974 L |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
5684 | $as_echo "$libc_linker_feature" >&6; } | |
cd6ede75 | 5685 | |
0f124303 | 5686 | |
cd6ae7ea FS |
5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5 |
5688 | $as_echo_n "checking for linker that supports -z start-stop-gc... " >&6; } | |
5689 | libc_linker_feature=no | |
6cfc50f4 | 5690 | cat > conftest.c <<EOF |
cd6ae7ea FS |
5691 | int _start (void) { return 42; } |
5692 | EOF | |
6cfc50f4 AZ |
5693 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
5694 | -Wl,-z,start-stop-gc -nostdlib -nostartfiles | |
5695 | -fPIC -shared -o conftest.so conftest.c | |
5696 | 1>&5' | |
cd6ae7ea FS |
5697 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5698 | (eval $ac_try) 2>&5 | |
5699 | ac_status=$? | |
5700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5701 | test $ac_status = 0; }; } | |
6cfc50f4 AZ |
5702 | then |
5703 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \ | |
5704 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
5705 | | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then | |
5706 | true | |
5707 | else | |
5708 | libc_linker_feature=yes | |
cd6ae7ea FS |
5709 | fi |
5710 | fi | |
6cfc50f4 | 5711 | rm -f conftest* |
cd6ae7ea FS |
5712 | if test $libc_linker_feature = yes; then |
5713 | libc_cv_z_start_stop_gc=yes | |
5714 | else | |
5715 | libc_cv_z_start_stop_gc=no | |
5716 | fi | |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
5718 | $as_echo "$libc_linker_feature" >&6; } | |
5719 | config_vars="$config_vars | |
5720 | have-z-start-stop-gc = $libc_cv_z_start_stop_gc" | |
5721 | ||
9926f6e2 FS |
5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5 |
5723 | $as_echo_n "checking for linker that supports --depaudit... " >&6; } | |
5724 | libc_linker_feature=no | |
6cfc50f4 | 5725 | cat > conftest.c <<EOF |
9926f6e2 FS |
5726 | int _start (void) { return 42; } |
5727 | EOF | |
6cfc50f4 AZ |
5728 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
5729 | -Wl,--depaudit,x -nostdlib -nostartfiles | |
5730 | -fPIC -shared -o conftest.so conftest.c | |
5731 | 1>&5' | |
9926f6e2 FS |
5732 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5733 | (eval $ac_try) 2>&5 | |
5734 | ac_status=$? | |
5735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5736 | test $ac_status = 0; }; } | |
6cfc50f4 AZ |
5737 | then |
5738 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \ | |
5739 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
5740 | | grep "warning: --depaudit ignored" > /dev/null 2>&1; then | |
5741 | true | |
5742 | else | |
5743 | libc_linker_feature=yes | |
9926f6e2 FS |
5744 | fi |
5745 | fi | |
6cfc50f4 | 5746 | rm -f conftest* |
9926f6e2 FS |
5747 | if test $libc_linker_feature = yes; then |
5748 | libc_cv_depaudit=yes | |
5749 | else | |
5750 | libc_cv_depaudit=no | |
5751 | fi | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
5753 | $as_echo "$libc_linker_feature" >&6; } | |
5754 | config_vars="$config_vars | |
5755 | have-depaudit = $libc_cv_depaudit" | |
5756 | ||
e895cff5 FS |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5 |
5758 | $as_echo_n "checking for linker that supports -z pack-relative-relocs... " >&6; } | |
5759 | libc_linker_feature=no | |
6cfc50f4 | 5760 | cat > conftest.c <<EOF |
e895cff5 FS |
5761 | int _start (void) { return 42; } |
5762 | EOF | |
6cfc50f4 AZ |
5763 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
5764 | -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles | |
5765 | -fPIC -shared -o conftest.so conftest.c | |
5766 | 1>&5' | |
e895cff5 FS |
5767 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5768 | (eval $ac_try) 2>&5 | |
5769 | ac_status=$? | |
5770 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5771 | test $ac_status = 0; }; } | |
6cfc50f4 AZ |
5772 | then |
5773 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \ | |
5774 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
5775 | | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then | |
5776 | true | |
5777 | else | |
5778 | libc_linker_feature=yes | |
e895cff5 | 5779 | fi |
e895cff5 | 5780 | fi |
6cfc50f4 | 5781 | rm -f conftest* |
e895cff5 FS |
5782 | if test $libc_linker_feature = yes; then |
5783 | libc_cv_dt_relr=yes | |
5784 | else | |
5785 | libc_cv_dt_relr=no | |
5786 | fi | |
5787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
5788 | $as_echo "$libc_linker_feature" >&6; } | |
5789 | config_vars="$config_vars | |
5790 | have-dt-relr = $libc_cv_dt_relr" | |
5791 | ||
9d7a3741 L |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5 |
5793 | $as_echo_n "checking for linker that supports --no-dynamic-linker... " >&6; } | |
5794 | libc_linker_feature=no | |
6cfc50f4 | 5795 | cat > conftest.c <<EOF |
9d7a3741 L |
5796 | int _start (void) { return 42; } |
5797 | EOF | |
6cfc50f4 AZ |
5798 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
5799 | -Wl,--no-dynamic-linker -nostdlib -nostartfiles | |
5800 | -fPIC -shared -o conftest.so conftest.c | |
5801 | 1>&5' | |
9d7a3741 L |
5802 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5803 | (eval $ac_try) 2>&5 | |
5804 | ac_status=$? | |
5805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5806 | test $ac_status = 0; }; } | |
6cfc50f4 AZ |
5807 | then |
5808 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \ | |
5809 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
5810 | | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then | |
5811 | true | |
5812 | else | |
5813 | libc_linker_feature=yes | |
9d7a3741 L |
5814 | fi |
5815 | fi | |
6cfc50f4 | 5816 | rm -f conftest* |
9d7a3741 L |
5817 | if test $libc_linker_feature = yes; then |
5818 | libc_cv_no_dynamic_linker=yes | |
5819 | else | |
5820 | libc_cv_no_dynamic_linker=no | |
5821 | fi | |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 | |
5823 | $as_echo "$libc_linker_feature" >&6; } | |
5824 | config_vars="$config_vars | |
5825 | have-no-dynamic-linker = $libc_cv_no_dynamic_linker" | |
5826 | ||
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5 | |
5828 | $as_echo_n "checking for -static-pie... " >&6; } | |
5829 | if ${libc_cv_static_pie+:} false; then : | |
5830 | $as_echo_n "(cached) " >&6 | |
5831 | else | |
5832 | if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' | |
5833 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5834 | (eval $ac_try) 2>&5 | |
5835 | ac_status=$? | |
5836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5837 | test $ac_status = 0; }; }; then : | |
5838 | libc_cv_static_pie=yes | |
5839 | else | |
5840 | libc_cv_static_pie=no | |
5841 | fi | |
5842 | ||
5843 | fi | |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 | |
5845 | $as_echo "$libc_cv_static_pie" >&6; } | |
5846 | config_vars="$config_vars | |
5847 | have-static-pie = $libc_cv_static_pie" | |
5848 | ||
a0da5fe1 | 5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5 |
322e23db | 5850 | $as_echo_n "checking for -fpie... " >&6; } |
f318beb8 | 5851 | if ${libc_cv_fpie+:} false; then : |
322e23db | 5852 | $as_echo_n "(cached) " >&6 |
0f124303 | 5853 | else |
4da0431d | 5854 | if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' |
b08c89d9 | 5855 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
0f124303 UD |
5856 | (eval $ac_try) 2>&5 |
5857 | ac_status=$? | |
b08c89d9 | 5858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4da0431d | 5859 | test $ac_status = 0; }; }; then : |
a0da5fe1 UD |
5860 | libc_cv_fpie=yes |
5861 | else | |
5862 | libc_cv_fpie=no | |
5863 | fi | |
4da0431d | 5864 | |
0f124303 | 5865 | fi |
b08c89d9 | 5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 |
322e23db | 5867 | $as_echo "$libc_cv_fpie" >&6; } |
0f124303 UD |
5868 | |
5869 | ||
871b9158 | 5870 | |
89569c8b L |
5871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5 |
5872 | $as_echo_n "checking for GLOB_DAT reloc... " >&6; } | |
5873 | if ${libc_cv_has_glob_dat+:} false; then : | |
5874 | $as_echo_n "(cached) " >&6 | |
5875 | else | |
5876 | cat > conftest.c <<EOF | |
5877 | extern int mumble; | |
5878 | int foo (void) { return mumble; } | |
5879 | EOF | |
5880 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
5881 | -fPIC -shared -o conftest.so conftest.c | |
66a704c4 | 5882 | -nostdlib -nostartfiles $no_ssp |
89569c8b L |
5883 | 1>&5' |
5884 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5885 | (eval $ac_try) 2>&5 | |
5886 | ac_status=$? | |
5887 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5888 | test $ac_status = 0; }; } | |
5889 | then | |
5890 | if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then | |
5891 | libc_cv_has_glob_dat=yes | |
5892 | else | |
5893 | libc_cv_has_glob_dat=no | |
5894 | fi | |
5895 | else | |
5896 | libc_cv_has_glob_dat=no | |
5897 | fi | |
5898 | rm -f conftest* | |
5899 | fi | |
5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5 | |
5901 | $as_echo "$libc_cv_has_glob_dat" >&6; } | |
5902 | ||
5903 | ||
61655555 L |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5 |
5905 | $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; } | |
5906 | if ${libc_cv_mtls_dialect_gnu2+:} false; then : | |
5907 | $as_echo_n "(cached) " >&6 | |
5908 | else | |
5909 | cat > conftest.c <<EOF | |
5910 | __thread int i; | |
5911 | void foo (void) | |
5912 | { | |
5913 | i = 10; | |
5914 | } | |
5915 | EOF | |
04e8169f AZ |
5916 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles |
5917 | conftest.c -o conftest 1>&5' | |
61655555 L |
5918 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
5919 | (eval $ac_try) 2>&5 | |
5920 | ac_status=$? | |
5921 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5922 | test $ac_status = 0; }; } | |
5923 | then | |
5924 | libc_cv_mtls_dialect_gnu2=yes | |
5925 | else | |
5926 | libc_cv_mtls_dialect_gnu2=no | |
5927 | fi | |
5928 | rm -f conftest* | |
5929 | fi | |
5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5 | |
5931 | $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; } | |
5932 | ||
5933 | config_vars="$config_vars | |
5934 | have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2" | |
5935 | ||
8d98c7c0 AZ |
5936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5 |
5937 | $as_echo_n "checking if -Wno-ignored-attributes is required for aliases... " >&6; } | |
5938 | if ${libc_cv_wno_ignored_attributes+:} false; then : | |
5939 | $as_echo_n "(cached) " >&6 | |
5940 | else | |
5941 | cat > conftest.c <<EOF | |
5942 | void __foo (void) | |
5943 | { | |
5944 | } | |
5945 | extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo"))); | |
5946 | extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo"))); | |
5947 | EOF | |
5948 | libc_cv_wno_ignored_attributes="" | |
5949 | if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c' | |
5950 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5951 | (eval $ac_try) 2>&5 | |
5952 | ac_status=$? | |
5953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5954 | test $ac_status = 0; }; } | |
5955 | then | |
5956 | libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" | |
5957 | fi | |
5958 | rm -f conftest* | |
5959 | fi | |
5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5 | |
5961 | $as_echo "$libc_cv_wno_ignored_attributes" >&6; } | |
5962 | config_vars="$config_vars | |
5963 | config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes" | |
5964 | ||
a0da5fe1 | 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5 |
322e23db | 5966 | $as_echo_n "checking whether cc puts quotes around section names... " >&6; } |
f318beb8 | 5967 | if ${libc_cv_have_section_quotes+:} false; then : |
322e23db | 5968 | $as_echo_n "(cached) " >&6 |
e26dd47f UD |
5969 | else |
5970 | cat > conftest.c <<EOF | |
a0da5fe1 UD |
5971 | static const int foo |
5972 | __attribute__ ((section ("bar"))) = 1; | |
e26dd47f | 5973 | EOF |
a0da5fe1 UD |
5974 | if ${CC-cc} -S conftest.c -o conftest.s; then |
5975 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
5976 | libc_cv_have_section_quotes=yes | |
e26dd47f | 5977 | else |
a0da5fe1 | 5978 | libc_cv_have_section_quotes=no |
e26dd47f | 5979 | fi |
a0da5fe1 UD |
5980 | else |
5981 | libc_cv_have_section_quotes=unknown | |
5982 | fi | |
5983 | rm -f conftest.{c,s} | |
e26dd47f | 5984 | |
3a12e572 | 5985 | fi |
b08c89d9 | 5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 |
322e23db | 5987 | $as_echo "$libc_cv_have_section_quotes" >&6; } |
a0da5fe1 UD |
5988 | if test $libc_cv_have_section_quotes = yes; then |
5989 | $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h | |
cd6ede75 | 5990 | |
9a97d1f7 UD |
5991 | fi |
5992 | ||
b08c89d9 | 5993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5 |
322e23db | 5994 | $as_echo_n "checking for __builtin_memset... " >&6; } |
f318beb8 | 5995 | if ${libc_cv_gcc_builtin_memset+:} false; then : |
322e23db | 5996 | $as_echo_n "(cached) " >&6 |
d555194c UD |
5997 | else |
5998 | cat > conftest.c <<\EOF | |
5999 | void zero (void *x) | |
6000 | { | |
a52d1562 | 6001 | __builtin_memset (x, 0, 1000); |
d555194c UD |
6002 | } |
6003 | EOF | |
e37fc4aa | 6004 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null' |
b08c89d9 | 6005 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
6006 | (eval $ac_try) 2>&5 |
6007 | ac_status=$? | |
b08c89d9 UD |
6008 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6009 | test $ac_status = 0; }; }; | |
d555194c UD |
6010 | then |
6011 | libc_cv_gcc_builtin_memset=no | |
6012 | else | |
6013 | libc_cv_gcc_builtin_memset=yes | |
6014 | fi | |
3a12e572 | 6015 | rm -f conftest* |
d555194c | 6016 | fi |
b08c89d9 | 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 |
322e23db | 6018 | $as_echo "$libc_cv_gcc_builtin_memset" >&6; } |
d555194c | 6019 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
b08c89d9 | 6020 | $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h |
d555194c UD |
6021 | |
6022 | fi | |
6023 | ||
b08c89d9 | 6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5 |
322e23db | 6025 | $as_echo_n "checking for redirection of built-in functions... " >&6; } |
f318beb8 | 6026 | if ${libc_cv_gcc_builtin_redirection+:} false; then : |
322e23db | 6027 | $as_echo_n "(cached) " >&6 |
85dd1003 UD |
6028 | else |
6029 | cat > conftest.c <<\EOF | |
6030 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
6031 | char *foo (const char *a, const char *b) | |
6032 | { | |
6033 | return __builtin_strstr (a, b); | |
6034 | } | |
6035 | EOF | |
e37fc4aa | 6036 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null' |
b08c89d9 | 6037 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
85dd1003 UD |
6038 | (eval $ac_try) 2>&5 |
6039 | ac_status=$? | |
b08c89d9 UD |
6040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6041 | test $ac_status = 0; }; }; | |
85dd1003 UD |
6042 | then |
6043 | libc_cv_gcc_builtin_redirection=yes | |
6044 | else | |
6045 | libc_cv_gcc_builtin_redirection=no | |
6046 | fi | |
6047 | rm -f conftest* | |
6048 | fi | |
b08c89d9 | 6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 |
322e23db | 6050 | $as_echo "$libc_cv_gcc_builtin_redirection" >&6; } |
3ce1f295 UD |
6051 | if test "$libc_cv_gcc_builtin_redirection" = no; then |
6052 | as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5 | |
85dd1003 UD |
6053 | fi |
6054 | ||
7998fa78 AS |
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5 |
6056 | $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; } | |
6057 | if ${libc_cv_cc_nofma+:} false; then : | |
6058 | $as_echo_n "(cached) " >&6 | |
6059 | else | |
6060 | libc_cv_cc_nofma= | |
6061 | for opt in -ffp-contract=off -mno-fused-madd; do | |
6062 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
6063 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6064 | (eval $ac_try) 2>&5 | |
6065 | ac_status=$? | |
6066 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6067 | test $ac_status = 0; }; }; then : | |
6068 | libc_cv_cc_nofma=$opt; break | |
6069 | fi | |
6070 | done | |
6071 | fi | |
6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 | |
6073 | $as_echo "$libc_cv_cc_nofma" >&6; } | |
6074 | ||
bef0b507 | 6075 | |
2cf9ad57 | 6076 | if test -n "$submachine"; then |
b08c89d9 | 6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5 |
322e23db | 6078 | $as_echo_n "checking for compiler option for CPU variant... " >&6; } |
f318beb8 | 6079 | if ${libc_cv_cc_submachine+:} false; then : |
322e23db | 6080 | $as_echo_n "(cached) " >&6 |
2cf9ad57 RM |
6081 | else |
6082 | libc_cv_cc_submachine=no | |
6083 | for opt in "-march=$submachine" "-mcpu=$submachine"; do | |
6084 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
b08c89d9 | 6085 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2cf9ad57 RM |
6086 | (eval $ac_try) 2>&5 |
6087 | ac_status=$? | |
b08c89d9 | 6088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
40b601fb JM |
6089 | test $ac_status = 0; }; }; then : |
6090 | ||
2cf9ad57 RM |
6091 | libc_cv_cc_submachine="$opt" |
6092 | break | |
40b601fb | 6093 | fi |
2cf9ad57 RM |
6094 | done |
6095 | fi | |
b08c89d9 | 6096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 |
322e23db | 6097 | $as_echo "$libc_cv_cc_submachine" >&6; } |
2cf9ad57 | 6098 | if test "x$libc_cv_cc_submachine" = xno; then |
4a531bb0 | 6099 | as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5 |
2cf9ad57 RM |
6100 | fi |
6101 | fi | |
6102 | ||
6103 | ||
5c5a8b99 AZ |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5 |
6105 | $as_echo_n "checking for compiler option that -fsignaling-nans... " >&6; } | |
6106 | if ${libc_cv_cc_signaling_nans+:} false; then : | |
6107 | $as_echo_n "(cached) " >&6 | |
6108 | else | |
6109 | if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' | |
6110 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6111 | (eval $ac_try) 2>&5 | |
6112 | ac_status=$? | |
6113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6114 | test $ac_status = 0; }; }; then : | |
6115 | libc_cv_cc_signaling_nans=-fsignaling-nans | |
6116 | else | |
6117 | libc_cv_cc_signaling_nans= | |
6118 | fi | |
6119 | ||
6120 | fi | |
6121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5 | |
6122 | $as_echo "$libc_cv_cc_signaling_nans" >&6; } | |
6123 | config_vars="$config_vars | |
6124 | config-cflags-signaling-nans = $libc_cv_cc_signaling_nans" | |
6125 | ||
85c2e611 AZ |
6126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \ |
6127 | __attribute__ ((__optimize__))" >&5 | |
6128 | $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \ | |
6129 | __attribute__ ((__optimize__))... " >&6; } | |
6130 | if ${libc_cv_cc_loop_to_function+:} false; then : | |
6131 | $as_echo_n "(cached) " >&6 | |
6132 | else | |
6133 | cat > conftest.c <<EOF | |
6134 | void | |
6135 | __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) | |
6136 | foo (void) {} | |
6137 | EOF | |
6138 | libc_cv_cc_loop_to_function=no | |
6139 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c' | |
6140 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6141 | (eval $ac_try) 2>&5 | |
6142 | ac_status=$? | |
6143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6144 | test $ac_status = 0; }; } | |
6145 | then | |
6146 | libc_cv_cc_loop_to_function=yes | |
6147 | fi | |
6148 | rm -f conftest* | |
6149 | fi | |
6150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5 | |
6151 | $as_echo "$libc_cv_cc_loop_to_function" >&6; } | |
6152 | if test $libc_cv_cc_loop_to_function = yes; then | |
6153 | $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h | |
6154 | ||
6155 | fi | |
6156 | ||
6157 | ||
b08c89d9 | 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5 |
322e23db | 6159 | $as_echo_n "checking for libgd... " >&6; } |
6dab8688 UD |
6160 | if test "$with_gd" != "no"; then |
6161 | old_CFLAGS="$CFLAGS" | |
6162 | CFLAGS="$CFLAGS $libgd_include" | |
6163 | old_LDFLAGS="$LDFLAGS" | |
6164 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
6165 | old_LIBS="$LIBS" | |
6166 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
b08c89d9 | 6167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 6168 | /* end confdefs.h. */ |
c8f3e6db | 6169 | #include <gd.h> |
3a12e572 UD |
6170 | int |
6171 | main () | |
6172 | { | |
c8f3e6db | 6173 | gdImagePng (0, 0) |
3a12e572 UD |
6174 | ; |
6175 | return 0; | |
6176 | } | |
6177 | _ACEOF | |
b08c89d9 | 6178 | if ac_fn_c_try_link "$LINENO"; then : |
c8f3e6db UD |
6179 | LIBGD=yes |
6180 | else | |
b08c89d9 | 6181 | LIBGD=no |
c8f3e6db | 6182 | fi |
b08c89d9 UD |
6183 | rm -f core conftest.err conftest.$ac_objext \ |
6184 | conftest$ac_exeext conftest.$ac_ext | |
6dab8688 UD |
6185 | CFLAGS="$old_CFLAGS" |
6186 | LDFLAGS="$old_LDFLAGS" | |
6187 | LIBS="$old_LIBS" | |
6188 | else | |
6189 | LIBGD=no | |
6190 | fi | |
b08c89d9 | 6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5 |
322e23db | 6192 | $as_echo "$LIBGD" >&6; } |
3a12e572 UD |
6193 | |
6194 | ||
74a30a58 UD |
6195 | # SELinux detection |
6196 | if test x$with_selinux = xno ; then | |
6197 | have_selinux=no; | |
6198 | else | |
6199 | # See if we have the SELinux library | |
b08c89d9 | 6200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
322e23db | 6201 | $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } |
f318beb8 | 6202 | if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : |
322e23db | 6203 | $as_echo_n "(cached) " >&6 |
74a30a58 UD |
6204 | else |
6205 | ac_check_lib_save_LIBS=$LIBS | |
6206 | LIBS="-lselinux $LIBS" | |
b08c89d9 | 6207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
74a30a58 UD |
6208 | /* end confdefs.h. */ |
6209 | ||
26f56c1c UD |
6210 | /* Override any GCC internal prototype to avoid an error. |
6211 | Use char because int might match the return type of a GCC | |
6212 | builtin and then its argument prototype would still apply. */ | |
74a30a58 UD |
6213 | #ifdef __cplusplus |
6214 | extern "C" | |
6215 | #endif | |
74a30a58 UD |
6216 | char is_selinux_enabled (); |
6217 | int | |
6218 | main () | |
6219 | { | |
26f56c1c | 6220 | return is_selinux_enabled (); |
74a30a58 UD |
6221 | ; |
6222 | return 0; | |
6223 | } | |
6224 | _ACEOF | |
b08c89d9 | 6225 | if ac_fn_c_try_link "$LINENO"; then : |
74a30a58 UD |
6226 | ac_cv_lib_selinux_is_selinux_enabled=yes |
6227 | else | |
b08c89d9 | 6228 | ac_cv_lib_selinux_is_selinux_enabled=no |
74a30a58 | 6229 | fi |
b08c89d9 UD |
6230 | rm -f core conftest.err conftest.$ac_objext \ |
6231 | conftest$ac_exeext conftest.$ac_ext | |
74a30a58 UD |
6232 | LIBS=$ac_check_lib_save_LIBS |
6233 | fi | |
b08c89d9 | 6234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
322e23db | 6235 | $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } |
f318beb8 | 6236 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : |
74a30a58 UD |
6237 | have_selinux=yes |
6238 | else | |
6239 | have_selinux=no | |
6240 | fi | |
6241 | ||
8f1913a9 | 6242 | if test x$with_selinux = xyes ; then |
74a30a58 | 6243 | if test x$have_selinux = xno ; then |
0699f766 | 6244 | as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5 |
74a30a58 UD |
6245 | fi |
6246 | fi | |
6247 | fi | |
6248 | # Check if we're building with SELinux support. | |
6249 | if test "x$have_selinux" = xyes; then | |
6250 | ||
b08c89d9 | 6251 | $as_echo "#define HAVE_SELINUX 1" >>confdefs.h |
74a30a58 | 6252 | |
b399a0c2 UD |
6253 | |
6254 | # See if we have the libaudit library | |
b08c89d9 | 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5 |
322e23db | 6256 | $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; } |
f318beb8 | 6257 | if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then : |
322e23db | 6258 | $as_echo_n "(cached) " >&6 |
b399a0c2 UD |
6259 | else |
6260 | ac_check_lib_save_LIBS=$LIBS | |
6261 | LIBS="-laudit $LIBS" | |
b08c89d9 | 6262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b399a0c2 UD |
6263 | /* end confdefs.h. */ |
6264 | ||
26f56c1c UD |
6265 | /* Override any GCC internal prototype to avoid an error. |
6266 | Use char because int might match the return type of a GCC | |
6267 | builtin and then its argument prototype would still apply. */ | |
b399a0c2 UD |
6268 | #ifdef __cplusplus |
6269 | extern "C" | |
6270 | #endif | |
b2f97341 | 6271 | char audit_log_user_avc_message (); |
b399a0c2 UD |
6272 | int |
6273 | main () | |
6274 | { | |
26f56c1c | 6275 | return audit_log_user_avc_message (); |
b399a0c2 UD |
6276 | ; |
6277 | return 0; | |
6278 | } | |
6279 | _ACEOF | |
b08c89d9 | 6280 | if ac_fn_c_try_link "$LINENO"; then : |
b2f97341 | 6281 | ac_cv_lib_audit_audit_log_user_avc_message=yes |
b399a0c2 | 6282 | else |
b08c89d9 | 6283 | ac_cv_lib_audit_audit_log_user_avc_message=no |
b399a0c2 | 6284 | fi |
b08c89d9 UD |
6285 | rm -f core conftest.err conftest.$ac_objext \ |
6286 | conftest$ac_exeext conftest.$ac_ext | |
b399a0c2 UD |
6287 | LIBS=$ac_check_lib_save_LIBS |
6288 | fi | |
b08c89d9 | 6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 |
322e23db | 6290 | $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } |
f318beb8 | 6291 | if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then : |
b399a0c2 UD |
6292 | have_libaudit=yes |
6293 | else | |
6294 | have_libaudit=no | |
6295 | fi | |
6296 | ||
6297 | if test "x$have_libaudit" = xyes; then | |
6298 | ||
b08c89d9 | 6299 | $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h |
b399a0c2 UD |
6300 | |
6301 | fi | |
6302 | ||
1f063dca UD |
6303 | |
6304 | # See if we have the libcap library | |
b08c89d9 | 6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 |
322e23db | 6306 | $as_echo_n "checking for cap_init in -lcap... " >&6; } |
f318beb8 | 6307 | if ${ac_cv_lib_cap_cap_init+:} false; then : |
322e23db | 6308 | $as_echo_n "(cached) " >&6 |
1f063dca UD |
6309 | else |
6310 | ac_check_lib_save_LIBS=$LIBS | |
6311 | LIBS="-lcap $LIBS" | |
b08c89d9 | 6312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1f063dca UD |
6313 | /* end confdefs.h. */ |
6314 | ||
26f56c1c UD |
6315 | /* Override any GCC internal prototype to avoid an error. |
6316 | Use char because int might match the return type of a GCC | |
6317 | builtin and then its argument prototype would still apply. */ | |
1f063dca UD |
6318 | #ifdef __cplusplus |
6319 | extern "C" | |
6320 | #endif | |
1f063dca UD |
6321 | char cap_init (); |
6322 | int | |
6323 | main () | |
6324 | { | |
26f56c1c | 6325 | return cap_init (); |
1f063dca UD |
6326 | ; |
6327 | return 0; | |
6328 | } | |
6329 | _ACEOF | |
b08c89d9 | 6330 | if ac_fn_c_try_link "$LINENO"; then : |
1f063dca UD |
6331 | ac_cv_lib_cap_cap_init=yes |
6332 | else | |
b08c89d9 | 6333 | ac_cv_lib_cap_cap_init=no |
1f063dca | 6334 | fi |
b08c89d9 UD |
6335 | rm -f core conftest.err conftest.$ac_objext \ |
6336 | conftest$ac_exeext conftest.$ac_ext | |
1f063dca UD |
6337 | LIBS=$ac_check_lib_save_LIBS |
6338 | fi | |
b08c89d9 | 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 |
322e23db | 6340 | $as_echo "$ac_cv_lib_cap_cap_init" >&6; } |
f318beb8 | 6341 | if test "x$ac_cv_lib_cap_cap_init" = xyes; then : |
1f063dca UD |
6342 | have_libcap=yes |
6343 | else | |
6344 | have_libcap=no | |
6345 | fi | |
6346 | ||
6347 | if test "x$have_libcap" = xyes; then | |
6348 | ||
b08c89d9 | 6349 | $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h |
1f063dca UD |
6350 | |
6351 | fi | |
6352 | ||
74a30a58 UD |
6353 | fi |
6354 | ||
6355 | ||
61653dfb RM |
6356 | CPPUNDEFS= |
6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5 | |
6358 | $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; } | |
6359 | if ${libc_cv_predef_fortify_source+:} false; then : | |
6360 | $as_echo_n "(cached) " >&6 | |
6361 | else | |
6362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6363 | /* end confdefs.h. */ | |
6364 | ||
6365 | int | |
6366 | main () | |
6367 | { | |
6368 | ||
6369 | #ifdef _FORTIFY_SOURCE | |
6370 | # error bogon | |
6371 | #endif | |
6372 | ; | |
6373 | return 0; | |
6374 | } | |
6375 | _ACEOF | |
6376 | if ac_fn_c_try_compile "$LINENO"; then : | |
6377 | libc_cv_predef_fortify_source=no | |
6378 | else | |
6379 | libc_cv_predef_fortify_source=yes | |
6380 | fi | |
6381 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6382 | fi | |
6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5 | |
6384 | $as_echo "$libc_cv_predef_fortify_source" >&6; } | |
6385 | if test $libc_cv_predef_fortify_source = yes; then | |
6386 | CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE" | |
6387 | fi | |
6388 | ||
6389 | ||
0923f74a FW |
6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5 |
6391 | $as_echo_n "checking whether the assembler requires one version per symbol... " >&6; } | |
6392 | if ${libc_cv_symver_needs_alias+:} false; then : | |
6393 | $as_echo_n "(cached) " >&6 | |
6394 | else | |
6395 | cat > conftest.s <<EOF | |
6396 | .text | |
6397 | testfunc: | |
6398 | .globl testfunc | |
6399 | .symver testfunc, testfunc1@VERSION1 | |
6400 | .symver testfunc, testfunc1@VERSION2 | |
6401 | EOF | |
6402 | libc_cv_symver_needs_alias=no | |
6403 | if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then | |
6404 | libc_cv_symver_needs_alias=no | |
6405 | else | |
6406 | libc_cv_symver_needs_alias=yes | |
6407 | fi | |
6408 | rm conftest.* | |
6409 | ||
6410 | fi | |
6411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5 | |
6412 | $as_echo "$libc_cv_symver_needs_alias" >&6; } | |
6413 | if test "$libc_cv_symver_needs_alias" = yes; then | |
6414 | $as_echo "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h | |
6415 | ||
6416 | fi | |
6417 | ||
9fe7e787 RM |
6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5 |
6419 | $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; } | |
6420 | if ${libc_cv_builtin_trap+:} false; then : | |
6421 | $as_echo_n "(cached) " >&6 | |
6422 | else | |
6423 | libc_cv_builtin_trap=no | |
6424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6425 | /* end confdefs.h. */ | |
6426 | ||
6427 | int | |
6428 | main () | |
6429 | { | |
6430 | __builtin_trap () | |
6431 | ; | |
6432 | return 0; | |
6433 | } | |
6434 | _ACEOF | |
6435 | if ac_fn_c_try_compile "$LINENO"; then : | |
6436 | ||
6437 | libc_undefs=`$NM -u conftest.o | | |
6438 | LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \ | |
6439 | 2>&5` || { | |
6440 | as_fn_error $? "confusing output from $NM -u" "$LINENO" 5 | |
6441 | } | |
6442 | echo >&5 "libc_undefs='$libc_undefs'" | |
6443 | if test -z "$libc_undefs"; then | |
6444 | libc_cv_builtin_trap=yes | |
6445 | fi | |
6446 | fi | |
6447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6448 | fi | |
6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 | |
6450 | $as_echo "$libc_cv_builtin_trap" >&6; } | |
6451 | if test $libc_cv_builtin_trap = yes; then | |
6452 | $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h | |
6453 | ||
6454 | fi | |
6455 | ||
99e1dc0a FW |
6456 | ac_ext=cpp |
6457 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
6461 | ||
6462 | ||
6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5 | |
6464 | $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; } | |
6465 | if ${libc_cv_cxx_thread_local+:} false; then : | |
6466 | $as_echo_n "(cached) " >&6 | |
6467 | else | |
6468 | ||
6469 | old_CXXFLAGS="$CXXFLAGS" | |
6470 | CXXFLAGS="$CXXFLAGS -std=gnu++11" | |
6471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6472 | /* end confdefs.h. */ | |
6473 | ||
6474 | #include <thread> | |
6475 | ||
6476 | // Compiler support. | |
6477 | struct S | |
6478 | { | |
6479 | S (); | |
6480 | ~S (); | |
6481 | }; | |
6482 | thread_local S s; | |
6483 | S * get () { return &s; } | |
6484 | ||
6485 | // libstdc++ support. | |
6486 | #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL | |
6487 | #error __cxa_thread_atexit_impl not supported | |
6488 | #endif | |
6489 | ||
6490 | _ACEOF | |
6491 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6492 | libc_cv_cxx_thread_local=yes | |
6493 | else | |
6494 | libc_cv_cxx_thread_local=no | |
6495 | fi | |
6496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6497 | CXXFLAGS="$old_CXXFLAGS" | |
6498 | ||
6499 | fi | |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5 | |
6501 | $as_echo "$libc_cv_cxx_thread_local" >&6; } | |
6502 | ||
6503 | ||
6504 | ac_ext=c | |
6505 | ac_cpp='$CPP $CPPFLAGS' | |
6506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6509 | ||
6510 | ||
cd6ede75 UD |
6511 | ### End of automated tests. |
6512 | ### Now run sysdeps configure fragments. | |
6513 | ||
cb343854 | 6514 | # They also can set these variables. |
b43b13ac | 6515 | use_ldconfig=no |
cb343854 | 6516 | ldd_rewrite_script=no |
77259608 | 6517 | libc_cv_sysconfdir=$sysconfdir |
4248b1b1 | 6518 | libc_cv_localstatedir=$localstatedir |
74bd2300 | 6519 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 6520 | libc_cv_idn=no |
ad201afe | 6521 | pthread_in_libc=yes |
cb343854 | 6522 | |
cd6ede75 | 6523 | # Iterate over all the sysdep directories we will use, running their |
09055553 | 6524 | # configure fragments. |
cd6ede75 UD |
6525 | for dir in $sysnames; do |
6526 | case $dir in | |
6527 | /*) dest=$dir ;; | |
6528 | *) dest=$srcdir/$dir ;; | |
6529 | esac | |
6530 | if test -r $dest/configure; then | |
b08c89d9 | 6531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5 |
322e23db | 6532 | $as_echo "running configure fragment for $dir" >&6; } |
cd6ede75 UD |
6533 | . $dest/configure |
6534 | fi | |
cd6ede75 UD |
6535 | done |
6536 | ||
5695d46f AS |
6537 | if test x"$build_mathvec" = xnotset; then |
6538 | build_mathvec=no | |
6539 | fi | |
6540 | config_vars="$config_vars | |
6541 | build-mathvec = $build_mathvec" | |
6542 | ||
7ffa9423 AZ |
6543 | |
6544 | ||
6545 | ||
74bd2300 | 6546 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
b08c89d9 | 6547 | $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h |
74bd2300 UD |
6548 | |
6549 | fi | |
6550 | ||
6551 | ||
6e6249d0 RM |
6552 | # A sysdeps configure fragment can reset this if IFUNC is not actually |
6553 | # usable even though the assembler knows how to generate the symbol type. | |
6554 | if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then | |
6555 | $as_echo "#define HAVE_IFUNC 1" >>confdefs.h | |
6556 | ||
6557 | fi | |
92ad88fe L |
6558 | config_vars="$config_vars |
6559 | have-ifunc = $libc_cv_ld_gnu_indirect_function" | |
6e6249d0 | 6560 | |
022dfdce SL |
6561 | if test x"$libc_cv_gcc_indirect_function" = xyes; then |
6562 | $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h | |
6563 | ||
6564 | fi | |
16b59780 ST |
6565 | config_vars="$config_vars |
6566 | have-gcc-ifunc = $libc_cv_gcc_indirect_function" | |
022dfdce | 6567 | |
3cc3ef96 RM |
6568 | # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps |
6569 | # configure fragment can override the value to prevent this AC_DEFINE. | |
6570 | ||
6571 | if test "x$use_nscd" != xno; then | |
6572 | $as_echo "#define USE_NSCD 1" >>confdefs.h | |
6573 | ||
6574 | fi | |
c53d909c RM |
6575 | if test "x$build_nscd" = xdefault; then |
6576 | build_nscd=$use_nscd | |
6577 | fi | |
3cc3ef96 | 6578 | |
cd6ede75 UD |
6579 | |
6580 | ||
6581 | ||
6582 | ||
6583 | ||
cb343854 | 6584 | |
dff14448 | 6585 | |
f57f8055 RM |
6586 | if test x$use_ldconfig = xyes; then |
6587 | $as_echo "#define USE_LDCONFIG 1" >>confdefs.h | |
6588 | ||
6589 | fi | |
af968f62 | 6590 | |
3b100462 | 6591 | |
eae47a36 | 6592 | |
7998fa78 | 6593 | |
650425ce | 6594 | |
a334319f | 6595 | |
b08c89d9 | 6596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5 |
322e23db | 6597 | $as_echo_n "checking whether -fPIC is default... " >&6; } |
f318beb8 | 6598 | if ${libc_cv_pic_default+:} false; then : |
322e23db | 6599 | $as_echo_n "(cached) " >&6 |
cc3fa755 | 6600 | else |
ff886b82 | 6601 | libc_cv_pic_default=yes |
cc3fa755 | 6602 | cat > conftest.c <<EOF |
9756dfe1 | 6603 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
6604 | # error PIC is default. |
6605 | #endif | |
6606 | EOF | |
6607 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
ff886b82 | 6608 | libc_cv_pic_default=no |
cc3fa755 UD |
6609 | fi |
6610 | rm -f conftest.* | |
6611 | fi | |
b08c89d9 | 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 |
322e23db | 6613 | $as_echo "$libc_cv_pic_default" >&6; } |
23645707 SP |
6614 | config_vars="$config_vars |
6615 | build-pic-default = $libc_cv_pic_default" | |
cc3fa755 | 6616 | |
cc08749b L |
6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5 |
6618 | $as_echo_n "checking whether -fPIE is default... " >&6; } | |
00c714df | 6619 | if ${libc_cv_cc_pie_default+:} false; then : |
cc08749b L |
6620 | $as_echo_n "(cached) " >&6 |
6621 | else | |
00c714df | 6622 | libc_cv_cc_pie_default=yes |
cc08749b L |
6623 | cat > conftest.c <<EOF |
6624 | #if defined __PIE__ || defined __pie__ || defined PIE || defined pie | |
6625 | # error PIE is default. | |
6626 | #endif | |
6627 | EOF | |
6628 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
00c714df | 6629 | libc_cv_cc_pie_default=no |
cc08749b L |
6630 | fi |
6631 | rm -f conftest.* | |
6632 | fi | |
00c714df L |
6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5 |
6634 | $as_echo "$libc_cv_cc_pie_default" >&6; } | |
23645707 SP |
6635 | config_vars="$config_vars |
6636 | cc-pie-default = $libc_cv_cc_pie_default" | |
abcb584d | 6637 | |
23645707 SP |
6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5 |
6639 | $as_echo_n "checking if we can build programs as PIE... " >&6; } | |
ded3aeb2 | 6640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23645707 SP |
6641 | /* end confdefs.h. */ |
6642 | #ifdef PIE_UNSUPPORTED | |
6643 | # error PIE is not supported | |
6644 | #endif | |
6645 | _ACEOF | |
6646 | if ac_fn_c_try_compile "$LINENO"; then : | |
ded3aeb2 | 6647 | libc_cv_pie_supported=yes |
23645707 | 6648 | else |
ded3aeb2 | 6649 | libc_cv_pie_supported=no |
23645707 SP |
6650 | fi |
6651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ded3aeb2 L |
6652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5 |
6653 | $as_echo "$libc_cv_pie_supported" >&6; } | |
6654 | # Disable build-pie-default if target does not support it or glibc is | |
6655 | # configured with --disable-default-pie. | |
6656 | if test "x$default_pie" = xno; then | |
6657 | build_pie_default=no | |
6658 | else | |
6659 | build_pie_default=$libc_cv_pie_supported | |
23645707 | 6660 | fi |
23645707 | 6661 | config_vars="$config_vars |
ded3aeb2 | 6662 | build-pie-default = $build_pie_default" |
23645707 SP |
6663 | |
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5 | |
6665 | $as_echo_n "checking if we can build static PIE programs... " >&6; } | |
ded3aeb2 L |
6666 | libc_cv_static_pie_supported=$libc_cv_pie_supported |
6667 | if test "x$libc_cv_pie_supported" != xno \ | |
23645707 | 6668 | -a "$libc_cv_no_dynamic_linker" = yes; then |
374cef32 SN |
6669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6670 | /* end confdefs.h. */ | |
6671 | #ifndef SUPPORT_STATIC_PIE | |
6672 | # error static PIE is not supported | |
6673 | #endif | |
6674 | _ACEOF | |
6675 | if ac_fn_c_try_compile "$LINENO"; then : | |
ded3aeb2 | 6676 | libc_cv_static_pie_supported=yes |
374cef32 | 6677 | else |
ded3aeb2 | 6678 | libc_cv_static_pie_supported=no |
374cef32 SN |
6679 | fi |
6680 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ded3aeb2 L |
6681 | fi |
6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5 | |
6683 | $as_echo "$libc_cv_static_pie_supported" >&6; } | |
6684 | ||
6685 | # Enable static-pie only if it is available and glibc isn't configured | |
6686 | # with --disable-default-pie. | |
6687 | if test "x$default_pie" = xno; then | |
6688 | libc_cv_static_pie=no | |
6689 | else | |
6690 | libc_cv_static_pie=$libc_cv_static_pie_supported | |
6691 | fi | |
6692 | if test "$libc_cv_static_pie" = "yes"; then | |
6693 | $as_echo "#define ENABLE_STATIC_PIE 1" >>confdefs.h | |
9d7a3741 L |
6694 | |
6695 | fi | |
6696 | config_vars="$config_vars | |
23645707 SP |
6697 | enable-static-pie = $libc_cv_static_pie" |
6698 | ||
6699 | # Set the `multidir' variable by grabbing the variable from the compiler. | |
6700 | # We do it once and save the result in a generated makefile. | |
6701 | libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory` | |
6702 | ||
9d7a3741 | 6703 | |
2103c260 | 6704 | |
2103c260 | 6705 | |
2103c260 | 6706 | |
cc3fa755 | 6707 | |
cd6ede75 UD |
6708 | |
6709 | ||
6710 | ||
ee74a442 UD |
6711 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
6712 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
6713 | ||
cd6ede75 UD |
6714 | |
6715 | ||
ad201afe FW |
6716 | if test "$pthread_in_libc" = yes; then |
6717 | $as_echo "#define PTHREAD_IN_LIBC 1" >>confdefs.h | |
6718 | ||
6719 | fi | |
6720 | ||
6721 | ||
728e272a | 6722 | ac_config_files="$ac_config_files config.make Makefile" |
f4b07664 | 6723 | |
26f56c1c | 6724 | ac_config_commands="$ac_config_commands default" |
f4b07664 | 6725 | |
3a12e572 | 6726 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
6727 | # This file is a shell script that caches the results of configure |
6728 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
6729 | # scripts and configure runs, see configure's option --config-cache. |
6730 | # It is not useful on other systems. If it contains results you don't | |
6731 | # want to keep, you may remove or edit it. | |
cd6ede75 | 6732 | # |
3a12e572 UD |
6733 | # config.status only pays attention to the cache file if you give it |
6734 | # the --recheck option to rerun configure. | |
cd6ede75 | 6735 | # |
f4b07664 | 6736 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
6737 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6738 | # following values. | |
6739 | ||
6740 | _ACEOF | |
6741 | ||
cd6ede75 UD |
6742 | # The following way of writing the cache mishandles newlines in values, |
6743 | # but we know of no workaround that is simple, portable, and efficient. | |
26f56c1c | 6744 | # So, we kill variables containing newlines. |
cd6ede75 UD |
6745 | # Ultrix sh set writes to stderr and can't be redirected directly, |
6746 | # and sets the high bit in the cache file unless we assign to the vars. | |
26f56c1c UD |
6747 | ( |
6748 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
6749 | eval ac_val=\$$ac_var | |
6750 | case $ac_val in #( | |
6751 | *${as_nl}*) | |
6752 | case $ac_var in #( | |
b08c89d9 | 6753 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
322e23db | 6754 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
26f56c1c UD |
6755 | esac |
6756 | case $ac_var in #( | |
6757 | _ | IFS | as_nl) ;; #( | |
322e23db | 6758 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 6759 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
6760 | esac ;; |
6761 | esac | |
6762 | done | |
6763 | ||
3a12e572 | 6764 | (set) 2>&1 | |
26f56c1c UD |
6765 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
6766 | *${as_nl}ac_space=\ *) | |
b08c89d9 UD |
6767 | # `set' does not quote correctly, so add quotes: double-quote |
6768 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3a12e572 | 6769 | sed -n \ |
9382fcee RM |
6770 | "s/'/'\\\\''/g; |
6771 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26f56c1c | 6772 | ;; #( |
3a12e572 UD |
6773 | *) |
6774 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26f56c1c | 6775 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 6776 | ;; |
26f56c1c UD |
6777 | esac | |
6778 | sort | |
6779 | ) | | |
3a12e572 | 6780 | sed ' |
26f56c1c | 6781 | /^ac_cv_env_/b end |
3a12e572 | 6782 | t clear |
26f56c1c | 6783 | :clear |
3a12e572 UD |
6784 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6785 | t end | |
26f56c1c UD |
6786 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6787 | :end' >>confcache | |
6788 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
6789 | if test -w "$cache_file"; then | |
f318beb8 | 6790 | if test "x$cache_file" != "x/dev/null"; then |
b08c89d9 | 6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
322e23db | 6792 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
f318beb8 UD |
6793 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
6794 | cat confcache >"$cache_file" | |
6795 | else | |
6796 | case $cache_file in #( | |
6797 | */* | ?:*) | |
6798 | mv -f confcache "$cache_file"$$ && | |
6799 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
6800 | *) | |
6801 | mv -f confcache "$cache_file" ;; | |
6802 | esac | |
6803 | fi | |
6804 | fi | |
cd6ede75 | 6805 | else |
b08c89d9 | 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
322e23db | 6807 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
cd6ede75 UD |
6808 | fi |
6809 | fi | |
6810 | rm -f confcache | |
6811 | ||
cd6ede75 UD |
6812 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6813 | # Let make expand exec_prefix. | |
6814 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6815 | ||
cd6ede75 UD |
6816 | DEFS=-DHAVE_CONFIG_H |
6817 | ||
f4b07664 RM |
6818 | ac_libobjs= |
6819 | ac_ltlibobjs= | |
4a531bb0 | 6820 | U= |
f4b07664 RM |
6821 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6822 | # 1. Remove the extension, and $U if already installed. | |
26f56c1c | 6823 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
322e23db | 6824 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
26f56c1c UD |
6825 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
6826 | # will be set to the directory where LIBOBJS objects are built. | |
b08c89d9 UD |
6827 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
6828 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
f4b07664 RM |
6829 | done |
6830 | LIBOBJS=$ac_libobjs | |
6831 | ||
6832 | LTLIBOBJS=$ac_ltlibobjs | |
6833 | ||
6834 | ||
cd6ede75 | 6835 | |
f318beb8 | 6836 | : "${CONFIG_STATUS=./config.status}" |
322e23db | 6837 | ac_write_fail=0 |
3a12e572 UD |
6838 | ac_clean_files_save=$ac_clean_files |
6839 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b08c89d9 | 6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
322e23db | 6841 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b08c89d9 UD |
6842 | as_write_fail=0 |
6843 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3a12e572 UD |
6844 | #! $SHELL |
6845 | # Generated by $as_me. | |
cd6ede75 | 6846 | # Run this file to recreate the current configuration. |
cd6ede75 | 6847 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 6848 | # configure, is in config.log if it exists. |
cd6ede75 | 6849 | |
3a12e572 | 6850 | debug=false |
2abf9ff1 RM |
6851 | ac_cs_recheck=false |
6852 | ac_cs_silent=false | |
3a12e572 | 6853 | |
b08c89d9 UD |
6854 | SHELL=\${CONFIG_SHELL-$SHELL} |
6855 | export SHELL | |
6856 | _ASEOF | |
6857 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
6858 | ## -------------------- ## | |
6859 | ## M4sh Initialization. ## | |
6860 | ## -------------------- ## | |
3a12e572 | 6861 | |
26f56c1c UD |
6862 | # Be more Bourne compatible |
6863 | DUALCASE=1; export DUALCASE # for MKS sh | |
b08c89d9 | 6864 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
3a12e572 UD |
6865 | emulate sh |
6866 | NULLCMD=: | |
322e23db | 6867 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
6868 | # is contrary to our usage. Disable this feature. |
6869 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c UD |
6870 | setopt NO_GLOB_SUBST |
6871 | else | |
b08c89d9 UD |
6872 | case `(set -o) 2>/dev/null` in #( |
6873 | *posix*) : | |
6874 | set -o posix ;; #( | |
6875 | *) : | |
6876 | ;; | |
26f56c1c | 6877 | esac |
26f56c1c UD |
6878 | fi |
6879 | ||
6880 | ||
322e23db UD |
6881 | as_nl=' |
6882 | ' | |
6883 | export as_nl | |
6884 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
6885 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
6886 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
6887 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b08c89d9 UD |
6888 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
6889 | # but without wasting forks for bash or zsh. | |
6890 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
6891 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
6892 | as_echo='print -r --' | |
6893 | as_echo_n='print -rn --' | |
6894 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
322e23db UD |
6895 | as_echo='printf %s\n' |
6896 | as_echo_n='printf %s' | |
6897 | else | |
6898 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
6899 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
6900 | as_echo_n='/usr/ucb/echo -n' | |
a152f366 | 6901 | else |
322e23db UD |
6902 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
6903 | as_echo_n_body='eval | |
6904 | arg=$1; | |
b08c89d9 | 6905 | case $arg in #( |
322e23db UD |
6906 | *"$as_nl"*) |
6907 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
6908 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
6909 | esac; | |
6910 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
6911 | ' | |
6912 | export as_echo_n_body | |
6913 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
a152f366 | 6914 | fi |
322e23db UD |
6915 | export as_echo_body |
6916 | as_echo='sh -c $as_echo_body as_echo' | |
6917 | fi | |
6918 | ||
6919 | # The user is always right. | |
6920 | if test "${PATH_SEPARATOR+set}" != set; then | |
6921 | PATH_SEPARATOR=: | |
6922 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
6923 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
6924 | PATH_SEPARATOR=';' | |
6925 | } | |
3a12e572 UD |
6926 | fi |
6927 | ||
f4b07664 | 6928 | |
26f56c1c UD |
6929 | # IFS |
6930 | # We need space, tab and new line, in precisely that order. Quoting is | |
6931 | # there to prevent editors from complaining about space-tab. | |
6932 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
6933 | # splitting by setting IFS to empty value.) | |
26f56c1c UD |
6934 | IFS=" "" $as_nl" |
6935 | ||
6936 | # Find who we are. Look in the path if we contain no directory separator. | |
f318beb8 | 6937 | as_myself= |
b08c89d9 | 6938 | case $0 in #(( |
26f56c1c UD |
6939 | *[\\/]* ) as_myself=$0 ;; |
6940 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6941 | for as_dir in $PATH | |
6942 | do | |
6943 | IFS=$as_save_IFS | |
6944 | test -z "$as_dir" && as_dir=. | |
b08c89d9 UD |
6945 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
6946 | done | |
26f56c1c UD |
6947 | IFS=$as_save_IFS |
6948 | ||
6949 | ;; | |
6950 | esac | |
6951 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6952 | # in which case we are not to be found in the path. | |
6953 | if test "x$as_myself" = x; then | |
6954 | as_myself=$0 | |
6955 | fi | |
6956 | if test ! -f "$as_myself"; then | |
322e23db | 6957 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 6958 | exit 1 |
26f56c1c UD |
6959 | fi |
6960 | ||
b08c89d9 UD |
6961 | # Unset variables that we do not need and which cause bugs (e.g. in |
6962 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
6963 | # suppresses any "Segmentation fault" message there. '((' could | |
6964 | # trigger a bug in pdksh 5.2.14. | |
6965 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
6966 | do eval test x\${$as_var+set} = xset \ | |
6967 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
26f56c1c | 6968 | done |
f4b07664 RM |
6969 | PS1='$ ' |
6970 | PS2='> ' | |
6971 | PS4='+ ' | |
6972 | ||
6973 | # NLS nuisances. | |
322e23db UD |
6974 | LC_ALL=C |
6975 | export LC_ALL | |
6976 | LANGUAGE=C | |
6977 | export LANGUAGE | |
f4b07664 | 6978 | |
b08c89d9 UD |
6979 | # CDPATH. |
6980 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
6981 | ||
6982 | ||
4a531bb0 L |
6983 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
6984 | # ---------------------------------------- | |
b08c89d9 UD |
6985 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
6986 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 6987 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
6988 | as_fn_error () |
6989 | { | |
4a531bb0 L |
6990 | as_status=$1; test $as_status -eq 0 && as_status=1 |
6991 | if test "$4"; then | |
6992 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6993 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b08c89d9 | 6994 | fi |
4a531bb0 | 6995 | $as_echo "$as_me: error: $2" >&2 |
b08c89d9 UD |
6996 | as_fn_exit $as_status |
6997 | } # as_fn_error | |
6998 | ||
6999 | ||
7000 | # as_fn_set_status STATUS | |
7001 | # ----------------------- | |
7002 | # Set $? to STATUS, without forking. | |
7003 | as_fn_set_status () | |
7004 | { | |
7005 | return $1 | |
7006 | } # as_fn_set_status | |
7007 | ||
7008 | # as_fn_exit STATUS | |
7009 | # ----------------- | |
7010 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7011 | as_fn_exit () | |
7012 | { | |
7013 | set +e | |
7014 | as_fn_set_status $1 | |
7015 | exit $1 | |
7016 | } # as_fn_exit | |
7017 | ||
7018 | # as_fn_unset VAR | |
7019 | # --------------- | |
7020 | # Portably unset VAR. | |
7021 | as_fn_unset () | |
7022 | { | |
7023 | { eval $1=; unset $1;} | |
7024 | } | |
7025 | as_unset=as_fn_unset | |
7026 | # as_fn_append VAR VALUE | |
7027 | # ---------------------- | |
7028 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7029 | # advantage of any shell optimizations that allow amortized linear growth over | |
7030 | # repeated appends, instead of the typical quadratic growth present in naive | |
7031 | # implementations. | |
7032 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7033 | eval 'as_fn_append () | |
7034 | { | |
7035 | eval $1+=\$2 | |
7036 | }' | |
7037 | else | |
7038 | as_fn_append () | |
7039 | { | |
7040 | eval $1=\$$1\$2 | |
7041 | } | |
7042 | fi # as_fn_append | |
7043 | ||
7044 | # as_fn_arith ARG... | |
7045 | # ------------------ | |
7046 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7047 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7048 | # must be portable across $(()) and expr. | |
7049 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7050 | eval 'as_fn_arith () | |
7051 | { | |
7052 | as_val=$(( $* )) | |
7053 | }' | |
7054 | else | |
7055 | as_fn_arith () | |
7056 | { | |
7057 | as_val=`expr "$@" || test $? -eq 1` | |
7058 | } | |
7059 | fi # as_fn_arith | |
7060 | ||
7061 | ||
26f56c1c UD |
7062 | if expr a : '\(a\)' >/dev/null 2>&1 && |
7063 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
7064 | as_expr=expr |
7065 | else | |
7066 | as_expr=false | |
7067 | fi | |
7068 | ||
26f56c1c | 7069 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
7070 | as_basename=basename |
7071 | else | |
7072 | as_basename=false | |
7073 | fi | |
3a12e572 | 7074 | |
b08c89d9 UD |
7075 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
7076 | as_dirname=dirname | |
7077 | else | |
7078 | as_dirname=false | |
7079 | fi | |
3a12e572 | 7080 | |
26f56c1c | 7081 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
7082 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
7083 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 7084 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 7085 | $as_echo X/"$0" | |
26f56c1c UD |
7086 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
7087 | s//\1/ | |
7088 | q | |
7089 | } | |
7090 | /^X\/\(\/\/\)$/{ | |
7091 | s//\1/ | |
7092 | q | |
7093 | } | |
7094 | /^X\/\(\/\).*/{ | |
7095 | s//\1/ | |
7096 | q | |
7097 | } | |
7098 | s/.*/./; q'` | |
3a12e572 | 7099 | |
b08c89d9 UD |
7100 | # Avoid depending upon Character Ranges. |
7101 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7102 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7103 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7104 | as_cr_digits='0123456789' | |
7105 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26f56c1c UD |
7106 | |
7107 | ECHO_C= ECHO_N= ECHO_T= | |
b08c89d9 | 7108 | case `echo -n x` in #((((( |
26f56c1c | 7109 | -n*) |
b08c89d9 | 7110 | case `echo 'xy\c'` in |
26f56c1c | 7111 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b08c89d9 UD |
7112 | xy) ECHO_C='\c';; |
7113 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7114 | ECHO_T=' ';; | |
26f56c1c UD |
7115 | esac;; |
7116 | *) | |
7117 | ECHO_N='-n';; | |
3a12e572 | 7118 | esac |
cd6ede75 | 7119 | |
3a12e572 | 7120 | rm -f conf$$ conf$$.exe conf$$.file |
26f56c1c UD |
7121 | if test -d conf$$.dir; then |
7122 | rm -f conf$$.dir/conf$$.file | |
7123 | else | |
7124 | rm -f conf$$.dir | |
322e23db UD |
7125 | mkdir conf$$.dir 2>/dev/null |
7126 | fi | |
7127 | if (echo >conf$$.file) 2>/dev/null; then | |
7128 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7129 | as_ln_s='ln -s' | |
7130 | # ... but there are two gotchas: | |
7131 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7132 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f4a58f0d | 7133 | # In both cases, we have to default to `cp -pR'. |
322e23db | 7134 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 7135 | as_ln_s='cp -pR' |
322e23db UD |
7136 | elif ln conf$$.file conf$$ 2>/dev/null; then |
7137 | as_ln_s=ln | |
7138 | else | |
f4a58f0d | 7139 | as_ln_s='cp -pR' |
322e23db | 7140 | fi |
3a12e572 | 7141 | else |
f4a58f0d | 7142 | as_ln_s='cp -pR' |
cd6ede75 | 7143 | fi |
26f56c1c UD |
7144 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
7145 | rmdir conf$$.dir 2>/dev/null | |
cd6ede75 | 7146 | |
b08c89d9 UD |
7147 | |
7148 | # as_fn_mkdir_p | |
7149 | # ------------- | |
7150 | # Create "$as_dir" as a directory, including parents if necessary. | |
7151 | as_fn_mkdir_p () | |
7152 | { | |
7153 | ||
7154 | case $as_dir in #( | |
7155 | -*) as_dir=./$as_dir;; | |
7156 | esac | |
7157 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7158 | as_dirs= | |
7159 | while :; do | |
7160 | case $as_dir in #( | |
7161 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7162 | *) as_qdir=$as_dir;; | |
7163 | esac | |
7164 | as_dirs="'$as_qdir' $as_dirs" | |
7165 | as_dir=`$as_dirname -- "$as_dir" || | |
7166 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7167 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7168 | X"$as_dir" : 'X\(//\)$' \| \ | |
7169 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7170 | $as_echo X"$as_dir" | | |
7171 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7172 | s//\1/ | |
7173 | q | |
7174 | } | |
7175 | /^X\(\/\/\)[^/].*/{ | |
7176 | s//\1/ | |
7177 | q | |
7178 | } | |
7179 | /^X\(\/\/\)$/{ | |
7180 | s//\1/ | |
7181 | q | |
7182 | } | |
7183 | /^X\(\/\).*/{ | |
7184 | s//\1/ | |
7185 | q | |
7186 | } | |
7187 | s/.*/./; q'` | |
7188 | test -d "$as_dir" && break | |
7189 | done | |
7190 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 7191 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
7192 | |
7193 | ||
7194 | } # as_fn_mkdir_p | |
f4b07664 | 7195 | if mkdir -p . 2>/dev/null; then |
b08c89d9 | 7196 | as_mkdir_p='mkdir -p "$as_dir"' |
f4b07664 | 7197 | else |
9382fcee | 7198 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
7199 | as_mkdir_p=false |
7200 | fi | |
7201 | ||
f4a58f0d L |
7202 | |
7203 | # as_fn_executable_p FILE | |
7204 | # ----------------------- | |
7205 | # Test if FILE is an executable regular file. | |
7206 | as_fn_executable_p () | |
7207 | { | |
7208 | test -f "$1" && test -x "$1" | |
7209 | } # as_fn_executable_p | |
7210 | as_test_x='test -x' | |
7211 | as_executable_p=as_fn_executable_p | |
cd6ede75 | 7212 | |
3a12e572 | 7213 | # Sed expression to map a string onto a valid CPP name. |
9382fcee | 7214 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
7215 | |
7216 | # Sed expression to map a string onto a valid variable name. | |
9382fcee | 7217 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
7218 | |
7219 | ||
3a12e572 | 7220 | exec 6>&1 |
b08c89d9 UD |
7221 | ## ----------------------------------- ## |
7222 | ## Main body of $CONFIG_STATUS script. ## | |
7223 | ## ----------------------------------- ## | |
7224 | _ASEOF | |
7225 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3a12e572 | 7226 | |
b08c89d9 UD |
7227 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7228 | # Save the log message, to keep $0 and so on meaningful, and to | |
3a12e572 | 7229 | # report actual input values of CONFIG_FILES etc. instead of their |
26f56c1c UD |
7230 | # values after options handling. |
7231 | ac_log=" | |
f4b07664 | 7232 | This file was extended by GNU C Library $as_me (see version.h), which was |
f4a58f0d | 7233 | generated by GNU Autoconf 2.69. Invocation command line was |
3a12e572 UD |
7234 | |
7235 | CONFIG_FILES = $CONFIG_FILES | |
7236 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7237 | CONFIG_LINKS = $CONFIG_LINKS | |
7238 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7239 | $ $0 $@ | |
7240 | ||
26f56c1c UD |
7241 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
7242 | " | |
7243 | ||
3a12e572 UD |
7244 | _ACEOF |
7245 | ||
322e23db UD |
7246 | case $ac_config_files in *" |
7247 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7248 | esac | |
7249 | ||
7250 | case $ac_config_headers in *" | |
7251 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7252 | esac | |
7253 | ||
7254 | ||
7255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3a12e572 | 7256 | # Files that config.status was made for. |
26f56c1c UD |
7257 | config_files="$ac_config_files" |
7258 | config_headers="$ac_config_headers" | |
7259 | config_commands="$ac_config_commands" | |
3a12e572 | 7260 | |
26f56c1c | 7261 | _ACEOF |
3a12e572 | 7262 | |
322e23db | 7263 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 | 7264 | ac_cs_usage="\ |
b08c89d9 UD |
7265 | \`$as_me' instantiates files and other configuration actions |
7266 | from templates according to the current configuration. Unless the files | |
7267 | and actions are specified as TAGs, all are instantiated by default. | |
3a12e572 | 7268 | |
b08c89d9 | 7269 | Usage: $0 [OPTION]... [TAG]... |
3a12e572 UD |
7270 | |
7271 | -h, --help print this help, then exit | |
26f56c1c | 7272 | -V, --version print version number and configuration settings, then exit |
b08c89d9 | 7273 | --config print configuration, then exit |
322e23db UD |
7274 | -q, --quiet, --silent |
7275 | do not print progress messages | |
3a12e572 UD |
7276 | -d, --debug don't remove temporary files |
7277 | --recheck update $as_me by reconfiguring in the same conditions | |
322e23db UD |
7278 | --file=FILE[:TEMPLATE] |
7279 | instantiate the configuration file FILE | |
7280 | --header=FILE[:TEMPLATE] | |
7281 | instantiate the configuration header FILE | |
3a12e572 UD |
7282 | |
7283 | Configuration files: | |
7284 | $config_files | |
7285 | ||
7286 | Configuration headers: | |
7287 | $config_headers | |
7288 | ||
3a12e572 UD |
7289 | Configuration commands: |
7290 | $config_commands | |
7291 | ||
a306c790 | 7292 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 7293 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
b08c89d9 | 7294 | General help using GNU software: <http://www.gnu.org/gethelp/>." |
3a12e572 | 7295 | |
26f56c1c | 7296 | _ACEOF |
322e23db | 7297 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b08c89d9 | 7298 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
3a12e572 | 7299 | ac_cs_version="\\ |
f4b07664 | 7300 | GNU C Library config.status (see version.h) |
f4a58f0d | 7301 | configured by $0, generated by GNU Autoconf 2.69, |
b08c89d9 | 7302 | with options \\"\$ac_cs_config\\" |
3a12e572 | 7303 | |
f4a58f0d | 7304 | Copyright (C) 2012 Free Software Foundation, Inc. |
3a12e572 UD |
7305 | This config.status script is free software; the Free Software Foundation |
7306 | gives unlimited permission to copy, distribute and modify it." | |
26f56c1c UD |
7307 | |
7308 | ac_pwd='$ac_pwd' | |
7309 | srcdir='$srcdir' | |
7310 | INSTALL='$INSTALL' | |
322e23db | 7311 | test -n "\$AWK" || AWK=awk |
3a12e572 UD |
7312 | _ACEOF |
7313 | ||
322e23db UD |
7314 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7315 | # The default lists apply if the user does not specify any file. | |
3a12e572 UD |
7316 | ac_need_defaults=: |
7317 | while test $# != 0 | |
7318 | do | |
7319 | case $1 in | |
f318beb8 | 7320 | --*=?*) |
26f56c1c UD |
7321 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
7322 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
f4b07664 RM |
7323 | ac_shift=: |
7324 | ;; | |
f318beb8 UD |
7325 | --*=) |
7326 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7327 | ac_optarg= | |
7328 | ac_shift=: | |
7329 | ;; | |
26f56c1c | 7330 | *) |
f4b07664 RM |
7331 | ac_option=$1 |
7332 | ac_optarg=$2 | |
7333 | ac_shift=shift | |
3a12e572 | 7334 | ;; |
cd6ede75 UD |
7335 | esac |
7336 | ||
f4b07664 | 7337 | case $ac_option in |
3a12e572 | 7338 | # Handling of the options. |
2abf9ff1 RM |
7339 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
7340 | ac_cs_recheck=: ;; | |
26f56c1c | 7341 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
322e23db | 7342 | $as_echo "$ac_cs_version"; exit ;; |
b08c89d9 UD |
7343 | --config | --confi | --conf | --con | --co | --c ) |
7344 | $as_echo "$ac_cs_config"; exit ;; | |
26f56c1c | 7345 | --debug | --debu | --deb | --de | --d | -d ) |
3a12e572 UD |
7346 | debug=: ;; |
7347 | --file | --fil | --fi | --f ) | |
f4b07664 | 7348 | $ac_shift |
322e23db UD |
7349 | case $ac_optarg in |
7350 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
f318beb8 | 7351 | '') as_fn_error $? "missing file argument" ;; |
322e23db | 7352 | esac |
b08c89d9 | 7353 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
3a12e572 UD |
7354 | ac_need_defaults=false;; |
7355 | --header | --heade | --head | --hea ) | |
f4b07664 | 7356 | $ac_shift |
322e23db UD |
7357 | case $ac_optarg in |
7358 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7359 | esac | |
b08c89d9 | 7360 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
3a12e572 | 7361 | ac_need_defaults=false;; |
26f56c1c UD |
7362 | --he | --h) |
7363 | # Conflict between --help and --header | |
4a531bb0 | 7364 | as_fn_error $? "ambiguous option: \`$1' |
b08c89d9 | 7365 | Try \`$0 --help' for more information.";; |
26f56c1c | 7366 | --help | --hel | -h ) |
322e23db | 7367 | $as_echo "$ac_cs_usage"; exit ;; |
2abf9ff1 RM |
7368 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7369 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7370 | ac_cs_silent=: ;; | |
3a12e572 UD |
7371 | |
7372 | # This is an error. | |
4a531bb0 | 7373 | -*) as_fn_error $? "unrecognized option: \`$1' |
b08c89d9 | 7374 | Try \`$0 --help' for more information." ;; |
3a12e572 | 7375 | |
b08c89d9 | 7376 | *) as_fn_append ac_config_targets " $1" |
26f56c1c | 7377 | ac_need_defaults=false ;; |
cd6ede75 | 7378 | |
3a12e572 UD |
7379 | esac |
7380 | shift | |
7381 | done | |
7382 | ||
2abf9ff1 RM |
7383 | ac_configure_extra_args= |
7384 | ||
7385 | if $ac_cs_silent; then | |
7386 | exec 6>/dev/null | |
7387 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7388 | fi | |
7389 | ||
7390 | _ACEOF | |
322e23db | 7391 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2abf9ff1 | 7392 | if \$ac_cs_recheck; then |
f4a58f0d | 7393 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
322e23db UD |
7394 | shift |
7395 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7396 | CONFIG_SHELL='$SHELL' | |
26f56c1c | 7397 | export CONFIG_SHELL |
322e23db | 7398 | exec "\$@" |
2abf9ff1 RM |
7399 | fi |
7400 | ||
3a12e572 | 7401 | _ACEOF |
322e23db | 7402 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
7403 | exec 5>>config.log |
7404 | { | |
7405 | echo | |
7406 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7407 | ## Running $as_me. ## | |
7408 | _ASBOX | |
322e23db | 7409 | $as_echo "$ac_log" |
26f56c1c | 7410 | } >&5 |
3a12e572 | 7411 | |
26f56c1c | 7412 | _ACEOF |
322e23db | 7413 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 7414 | # |
26f56c1c | 7415 | # INIT-COMMANDS |
3a12e572 | 7416 | # |
3a12e572 UD |
7417 | config_vars='$config_vars' |
7418 | ||
7419 | _ACEOF | |
7420 | ||
322e23db | 7421 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
7422 | |
7423 | # Handling of arguments. | |
3a12e572 UD |
7424 | for ac_config_target in $ac_config_targets |
7425 | do | |
26f56c1c UD |
7426 | case $ac_config_target in |
7427 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7428 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
728e272a | 7429 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26f56c1c UD |
7430 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
7431 | ||
4a531bb0 | 7432 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
3a12e572 UD |
7433 | esac |
7434 | done | |
7435 | ||
26f56c1c | 7436 | |
3a12e572 UD |
7437 | # If the user did not use the arguments to specify the items to instantiate, |
7438 | # then the envvar interface is used. Set only those that are not. | |
7439 | # We use the long form for the default assignment because of an extremely | |
7440 | # bizarre bug on SunOS 4.1.3. | |
7441 | if $ac_need_defaults; then | |
7442 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7443 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
3a12e572 UD |
7444 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
7445 | fi | |
7446 | ||
2abf9ff1 | 7447 | # Have a temporary directory for convenience. Make it in the build tree |
26f56c1c | 7448 | # simply because there is no reason against having it here, and in addition, |
2abf9ff1 | 7449 | # creating and moving files from /tmp can sometimes cause problems. |
26f56c1c UD |
7450 | # Hook for its removal unless debugging. |
7451 | # Note that there is a small window in which the directory will not be cleaned: | |
7452 | # after its creation but before its name has been assigned to `$tmp'. | |
3a12e572 UD |
7453 | $debug || |
7454 | { | |
f318beb8 | 7455 | tmp= ac_tmp= |
26f56c1c | 7456 | trap 'exit_status=$? |
f318beb8 UD |
7457 | : "${ac_tmp:=$tmp}" |
7458 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
26f56c1c | 7459 | ' 0 |
b08c89d9 | 7460 | trap 'as_fn_exit 1' 1 2 13 15 |
3a12e572 | 7461 | } |
3a12e572 | 7462 | # Create a (secure) tmp directory for tmp files. |
2abf9ff1 | 7463 | |
3a12e572 | 7464 | { |
26f56c1c | 7465 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f318beb8 | 7466 | test -d "$tmp" |
3a12e572 UD |
7467 | } || |
7468 | { | |
26f56c1c UD |
7469 | tmp=./conf$$-$RANDOM |
7470 | (umask 077 && mkdir "$tmp") | |
4a531bb0 | 7471 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
f318beb8 | 7472 | ac_tmp=$tmp |
3a12e572 | 7473 | |
322e23db UD |
7474 | # Set up the scripts for CONFIG_FILES section. |
7475 | # No need to generate them if there are no CONFIG_FILES. | |
7476 | # This happens for instance with `./config.status config.h'. | |
26f56c1c UD |
7477 | if test -n "$CONFIG_FILES"; then |
7478 | ||
a152f366 | 7479 | |
b08c89d9 UD |
7480 | ac_cr=`echo X | tr X '\015'` |
7481 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
7482 | # But we know of no other shell where ac_cr would be empty at this | |
7483 | # point, so we can use a bashism as a fallback. | |
7484 | if test "x$ac_cr" = x; then | |
7485 | eval ac_cr=\$\'\\r\' | |
7486 | fi | |
322e23db UD |
7487 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
7488 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4a531bb0 | 7489 | ac_cs_awk_cr='\\r' |
322e23db UD |
7490 | else |
7491 | ac_cs_awk_cr=$ac_cr | |
26f56c1c UD |
7492 | fi |
7493 | ||
f318beb8 | 7494 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
26f56c1c UD |
7495 | _ACEOF |
7496 | ||
7497 | ||
322e23db UD |
7498 | { |
7499 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
7500 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
7501 | echo "_ACEOF" | |
7502 | } >conf$$subs.sh || | |
4a531bb0 L |
7503 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7504 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
26f56c1c UD |
7505 | ac_delim='%!_!# ' |
7506 | for ac_last_try in false false false false false :; do | |
322e23db | 7507 | . ./conf$$subs.sh || |
4a531bb0 | 7508 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
322e23db UD |
7509 | |
7510 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
7511 | if test $ac_delim_n = $ac_delim_num; then | |
26f56c1c UD |
7512 | break |
7513 | elif $ac_last_try; then | |
4a531bb0 | 7514 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
26f56c1c UD |
7515 | else |
7516 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7517 | fi | |
7518 | done | |
322e23db UD |
7519 | rm -f conf$$subs.sh |
7520 | ||
7521 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f318beb8 | 7522 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
322e23db UD |
7523 | _ACEOF |
7524 | sed -n ' | |
7525 | h | |
7526 | s/^/S["/; s/!.*/"]=/ | |
7527 | p | |
7528 | g | |
7529 | s/^[^!]*!// | |
7530 | :repl | |
7531 | t repl | |
7532 | s/'"$ac_delim"'$// | |
7533 | t delim | |
7534 | :nl | |
7535 | h | |
b08c89d9 | 7536 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
7537 | t more1 |
7538 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
7539 | p | |
7540 | n | |
7541 | b repl | |
7542 | :more1 | |
7543 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7544 | p | |
7545 | g | |
7546 | s/.\{148\}// | |
7547 | t nl | |
7548 | :delim | |
7549 | h | |
b08c89d9 | 7550 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
7551 | t more2 |
7552 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
7553 | p | |
7554 | b | |
7555 | :more2 | |
7556 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
7557 | p | |
7558 | g | |
7559 | s/.\{148\}// | |
7560 | t delim | |
7561 | ' <conf$$subs.awk | sed ' | |
7562 | /^[^""]/{ | |
7563 | N | |
7564 | s/\n// | |
7565 | } | |
7566 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
7567 | rm -f conf$$subs.awk | |
7568 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7569 | _ACAWK | |
f318beb8 | 7570 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
322e23db UD |
7571 | for (key in S) S_is_set[key] = 1 |
7572 | FS = "\a" | |
ff886b82 | 7573 | |
322e23db UD |
7574 | } |
7575 | { | |
7576 | line = $ 0 | |
7577 | nfields = split(line, field, "@") | |
7578 | substed = 0 | |
7579 | len = length(field[1]) | |
7580 | for (i = 2; i < nfields; i++) { | |
7581 | key = field[i] | |
7582 | keylen = length(key) | |
7583 | if (S_is_set[key]) { | |
7584 | value = S[key] | |
7585 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
7586 | len += length(value) + length(field[++i]) | |
7587 | substed = 1 | |
7588 | } else | |
7589 | len += 1 + keylen | |
7590 | } | |
7591 | ||
7592 | print line | |
7593 | } | |
cd6ede75 | 7594 | |
322e23db | 7595 | _ACAWK |
26f56c1c | 7596 | _ACEOF |
322e23db UD |
7597 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
7598 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
7599 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
7600 | else | |
7601 | cat | |
f318beb8 | 7602 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
4a531bb0 | 7603 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
3a12e572 | 7604 | _ACEOF |
26f56c1c | 7605 | |
4a531bb0 L |
7606 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
7607 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
26f56c1c UD |
7608 | # trailing colons and then remove the whole line if VPATH becomes empty |
7609 | # (actually we leave an empty line to preserve line numbers). | |
7610 | if test "x$srcdir" = x.; then | |
4a531bb0 L |
7611 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
7612 | h | |
7613 | s/// | |
7614 | s/^/:/ | |
7615 | s/[ ]*$/:/ | |
7616 | s/:\$(srcdir):/:/g | |
7617 | s/:\${srcdir}:/:/g | |
7618 | s/:@srcdir@:/:/g | |
7619 | s/^:*// | |
26f56c1c | 7620 | s/:*$// |
4a531bb0 L |
7621 | x |
7622 | s/\(=[ ]*\).*/\1/ | |
7623 | G | |
7624 | s/\n// | |
26f56c1c UD |
7625 | s/^[^=]*=[ ]*$// |
7626 | }' | |
7627 | fi | |
7628 | ||
322e23db | 7629 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
7630 | fi # test -n "$CONFIG_FILES" |
7631 | ||
322e23db UD |
7632 | # Set up the scripts for CONFIG_HEADERS section. |
7633 | # No need to generate them if there are no CONFIG_HEADERS. | |
7634 | # This happens for instance with `./config.status Makefile'. | |
7635 | if test -n "$CONFIG_HEADERS"; then | |
f318beb8 | 7636 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
322e23db UD |
7637 | BEGIN { |
7638 | _ACEOF | |
7639 | ||
7640 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
7641 | # here-document in config.status, that substitutes the proper values into | |
7642 | # config.h.in to produce config.h. | |
7643 | ||
7644 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
7645 | # handling of long lines. | |
7646 | ac_delim='%!_!# ' | |
7647 | for ac_last_try in false false :; do | |
f318beb8 UD |
7648 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
7649 | if test -z "$ac_tt"; then | |
322e23db UD |
7650 | break |
7651 | elif $ac_last_try; then | |
4a531bb0 | 7652 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
322e23db UD |
7653 | else |
7654 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
7655 | fi | |
7656 | done | |
7657 | ||
7658 | # For the awk script, D is an array of macro values keyed by name, | |
7659 | # likewise P contains macro parameters if any. Preserve backslash | |
7660 | # newline sequences. | |
7661 | ||
7662 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
7663 | sed -n ' | |
7664 | s/.\{148\}/&'"$ac_delim"'/g | |
7665 | t rset | |
7666 | :rset | |
7667 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
7668 | t def | |
7669 | d | |
7670 | :def | |
7671 | s/\\$// | |
7672 | t bsnl | |
7673 | s/["\\]/\\&/g | |
7674 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7675 | D["\1"]=" \3"/p | |
7676 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
7677 | d | |
7678 | :bsnl | |
7679 | s/["\\]/\\&/g | |
7680 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
7681 | D["\1"]=" \3\\\\\\n"\\/p | |
7682 | t cont | |
7683 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
7684 | t cont | |
7685 | d | |
7686 | :cont | |
7687 | n | |
7688 | s/.\{148\}/&'"$ac_delim"'/g | |
7689 | t clear | |
7690 | :clear | |
7691 | s/\\$// | |
7692 | t bsnlc | |
7693 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
7694 | d | |
7695 | :bsnlc | |
7696 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
7697 | b cont | |
7698 | ' <confdefs.h | sed ' | |
7699 | s/'"$ac_delim"'/"\\\ | |
7700 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
7701 | ||
7702 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7703 | for (key in D) D_is_set[key] = 1 | |
7704 | FS = "\a" | |
7705 | } | |
7706 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
7707 | line = \$ 0 | |
7708 | split(line, arg, " ") | |
7709 | if (arg[1] == "#") { | |
7710 | defundef = arg[2] | |
7711 | mac1 = arg[3] | |
7712 | } else { | |
7713 | defundef = substr(arg[1], 2) | |
7714 | mac1 = arg[2] | |
7715 | } | |
7716 | split(mac1, mac2, "(") #) | |
7717 | macro = mac2[1] | |
7718 | prefix = substr(line, 1, index(line, defundef) - 1) | |
7719 | if (D_is_set[macro]) { | |
7720 | # Preserve the white space surrounding the "#". | |
7721 | print prefix "define", macro P[macro] D[macro] | |
7722 | next | |
7723 | } else { | |
7724 | # Replace #undef with comments. This is necessary, for example, | |
7725 | # in the case of _POSIX_SOURCE, which is predefined and required | |
7726 | # on some systems where configure will not decide to define it. | |
7727 | if (defundef == "undef") { | |
7728 | print "/*", prefix defundef, macro, "*/" | |
7729 | next | |
7730 | } | |
7731 | } | |
7732 | } | |
7733 | { print } | |
7734 | _ACAWK | |
7735 | _ACEOF | |
7736 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4a531bb0 | 7737 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
322e23db UD |
7738 | fi # test -n "$CONFIG_HEADERS" |
7739 | ||
26f56c1c | 7740 | |
322e23db UD |
7741 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7742 | shift | |
7743 | for ac_tag | |
26f56c1c UD |
7744 | do |
7745 | case $ac_tag in | |
7746 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
7747 | esac | |
7748 | case $ac_mode$ac_tag in | |
7749 | :[FHL]*:*);; | |
4a531bb0 | 7750 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
26f56c1c UD |
7751 | :[FH]-) ac_tag=-:-;; |
7752 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
cd6ede75 | 7753 | esac |
26f56c1c UD |
7754 | ac_save_IFS=$IFS |
7755 | IFS=: | |
7756 | set x $ac_tag | |
7757 | IFS=$ac_save_IFS | |
7758 | shift | |
7759 | ac_file=$1 | |
7760 | shift | |
7761 | ||
7762 | case $ac_mode in | |
7763 | :L) ac_source=$1;; | |
7764 | :[FH]) | |
7765 | ac_file_inputs= | |
7766 | for ac_f | |
7767 | do | |
7768 | case $ac_f in | |
f318beb8 | 7769 | -) ac_f="$ac_tmp/stdin";; |
26f56c1c UD |
7770 | *) # Look for the file first in the build tree, then in the source tree |
7771 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
7772 | # because $ac_f cannot contain `:'. | |
7773 | test -f "$ac_f" || | |
7774 | case $ac_f in | |
7775 | [\\/$]*) false;; | |
7776 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
7777 | esac || | |
4a531bb0 | 7778 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
26f56c1c | 7779 | esac |
322e23db | 7780 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
b08c89d9 | 7781 | as_fn_append ac_file_inputs " '$ac_f'" |
26f56c1c | 7782 | done |
cd6ede75 | 7783 | |
26f56c1c UD |
7784 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
7785 | # use $as_me), people would be surprised to read: | |
7786 | # /* config.h. Generated by config.status. */ | |
322e23db UD |
7787 | configure_input='Generated from '` |
7788 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
7789 | `' by configure.' | |
26f56c1c UD |
7790 | if test x"$ac_file" != x-; then |
7791 | configure_input="$ac_file. $configure_input" | |
b08c89d9 | 7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
322e23db | 7793 | $as_echo "$as_me: creating $ac_file" >&6;} |
26f56c1c | 7794 | fi |
322e23db UD |
7795 | # Neutralize special characters interpreted by sed in replacement strings. |
7796 | case $configure_input in #( | |
7797 | *\&* | *\|* | *\\* ) | |
7798 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
7799 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
7800 | *) ac_sed_conf_input=$configure_input;; | |
7801 | esac | |
26f56c1c UD |
7802 | |
7803 | case $ac_tag in | |
f318beb8 | 7804 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4a531bb0 | 7805 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
26f56c1c UD |
7806 | esac |
7807 | ;; | |
7808 | esac | |
7809 | ||
7810 | ac_dir=`$as_dirname -- "$ac_file" || | |
3a12e572 | 7811 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
7812 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7813 | X"$ac_file" : 'X\(//\)$' \| \ | |
26f56c1c | 7814 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
322e23db | 7815 | $as_echo X"$ac_file" | |
26f56c1c UD |
7816 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
7817 | s//\1/ | |
7818 | q | |
7819 | } | |
7820 | /^X\(\/\/\)[^/].*/{ | |
7821 | s//\1/ | |
7822 | q | |
7823 | } | |
7824 | /^X\(\/\/\)$/{ | |
7825 | s//\1/ | |
7826 | q | |
7827 | } | |
7828 | /^X\(\/\).*/{ | |
7829 | s//\1/ | |
7830 | q | |
7831 | } | |
7832 | s/.*/./; q'` | |
b08c89d9 | 7833 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 UD |
7834 | ac_builddir=. |
7835 | ||
26f56c1c UD |
7836 | case "$ac_dir" in |
7837 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7838 | *) | |
322e23db | 7839 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 7840 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 7841 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
7842 | case $ac_top_builddir_sub in |
7843 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
7844 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
7845 | esac ;; | |
7846 | esac | |
7847 | ac_abs_top_builddir=$ac_pwd | |
7848 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
7849 | # for backward compatibility: | |
7850 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
7851 | |
7852 | case $srcdir in | |
26f56c1c | 7853 | .) # We are building in place. |
3a12e572 | 7854 | ac_srcdir=. |
26f56c1c UD |
7855 | ac_top_srcdir=$ac_top_builddir_sub |
7856 | ac_abs_top_srcdir=$ac_pwd ;; | |
7857 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 7858 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
7859 | ac_top_srcdir=$srcdir |
7860 | ac_abs_top_srcdir=$srcdir ;; | |
7861 | *) # Relative name. | |
7862 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
7863 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
7864 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 7865 | esac |
26f56c1c | 7866 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9382fcee | 7867 | |
cd6ede75 | 7868 | |
26f56c1c UD |
7869 | case $ac_mode in |
7870 | :F) | |
7871 | # | |
7872 | # CONFIG_FILE | |
7873 | # | |
3a12e572 UD |
7874 | |
7875 | case $INSTALL in | |
7876 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26f56c1c | 7877 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
cd6ede75 | 7878 | esac |
26f56c1c | 7879 | _ACEOF |
cd6ede75 | 7880 | |
322e23db | 7881 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
7882 | # If the template does not know about datarootdir, expand it. |
7883 | # FIXME: This hack should be removed a few years after 2.60. | |
7884 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
322e23db UD |
7885 | ac_sed_dataroot=' |
7886 | /datarootdir/ { | |
26f56c1c UD |
7887 | p |
7888 | q | |
7889 | } | |
7890 | /@datadir@/p | |
7891 | /@docdir@/p | |
7892 | /@infodir@/p | |
7893 | /@localedir@/p | |
b08c89d9 | 7894 | /@mandir@/p' |
322e23db | 7895 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
26f56c1c UD |
7896 | *datarootdir*) ac_datarootdir_seen=yes;; |
7897 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b08c89d9 | 7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
322e23db | 7899 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
26f56c1c | 7900 | _ACEOF |
322e23db | 7901 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26f56c1c UD |
7902 | ac_datarootdir_hack=' |
7903 | s&@datadir@&$datadir&g | |
7904 | s&@docdir@&$docdir&g | |
7905 | s&@infodir@&$infodir&g | |
7906 | s&@localedir@&$localedir&g | |
7907 | s&@mandir@&$mandir&g | |
b08c89d9 | 7908 | s&\\\${datarootdir}&$datarootdir&g' ;; |
26f56c1c | 7909 | esac |
3a12e572 | 7910 | _ACEOF |
26f56c1c UD |
7911 | |
7912 | # Neutralize VPATH when `$srcdir' = `.'. | |
7913 | # Shell code in configure.ac might set extrasub. | |
7914 | # FIXME: do we really want to maintain this feature? | |
322e23db UD |
7915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
7916 | ac_sed_extra="$ac_vpsub | |
3a12e572 UD |
7917 | $extrasub |
7918 | _ACEOF | |
322e23db | 7919 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
7920 | :t |
7921 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
322e23db | 7922 | s|@configure_input@|$ac_sed_conf_input|;t t |
26f56c1c | 7923 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
322e23db | 7924 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
26f56c1c UD |
7925 | s&@srcdir@&$ac_srcdir&;t t |
7926 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
7927 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
7928 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
7929 | s&@builddir@&$ac_builddir&;t t | |
7930 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
7931 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
7932 | s&@INSTALL@&$ac_INSTALL&;t t | |
7933 | $ac_datarootdir_hack | |
322e23db | 7934 | " |
f318beb8 UD |
7935 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
7936 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
26f56c1c UD |
7937 | |
7938 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f318beb8 UD |
7939 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
7940 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
7941 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
b08c89d9 | 7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 7943 | which seems to be undefined. Please make sure it is defined" >&5 |
322e23db | 7944 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 7945 | which seems to be undefined. Please make sure it is defined" >&2;} |
26f56c1c | 7946 | |
f318beb8 | 7947 | rm -f "$ac_tmp/stdin" |
3a12e572 | 7948 | case $ac_file in |
f318beb8 UD |
7949 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
7950 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
322e23db | 7951 | esac \ |
4a531bb0 | 7952 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
26f56c1c UD |
7953 | ;; |
7954 | :H) | |
7955 | # | |
7956 | # CONFIG_HEADER | |
7957 | # | |
3a12e572 | 7958 | if test x"$ac_file" != x-; then |
322e23db UD |
7959 | { |
7960 | $as_echo "/* $configure_input */" \ | |
f318beb8 UD |
7961 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
7962 | } >"$ac_tmp/config.h" \ | |
4a531bb0 | 7963 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f318beb8 | 7964 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
b08c89d9 | 7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
322e23db | 7966 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
3a12e572 | 7967 | else |
322e23db | 7968 | rm -f "$ac_file" |
f318beb8 | 7969 | mv "$ac_tmp/config.h" "$ac_file" \ |
4a531bb0 | 7970 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f4b07664 RM |
7971 | fi |
7972 | else | |
322e23db | 7973 | $as_echo "/* $configure_input */" \ |
f318beb8 | 7974 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4a531bb0 | 7975 | || as_fn_error $? "could not create -" "$LINENO" 5 |
f4b07664 | 7976 | fi |
26f56c1c | 7977 | ;; |
9382fcee | 7978 | |
b08c89d9 | 7979 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
322e23db | 7980 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
26f56c1c UD |
7981 | ;; |
7982 | esac | |
3a12e572 UD |
7983 | |
7984 | ||
26f56c1c UD |
7985 | case $ac_file$ac_mode in |
7986 | "default":C) | |
c0fb8a56 UD |
7987 | case $CONFIG_FILES in *config.make*) |
7988 | echo "$config_vars" >> config.make;; | |
7989 | esac | |
3a12e572 | 7990 | test -d bits || mkdir bits ;; |
26f56c1c | 7991 | |
3a12e572 | 7992 | esac |
26f56c1c | 7993 | done # for ac_tag |
3a12e572 | 7994 | |
3a12e572 | 7995 | |
b08c89d9 | 7996 | as_fn_exit 0 |
3a12e572 | 7997 | _ACEOF |
3a12e572 UD |
7998 | ac_clean_files=$ac_clean_files_save |
7999 | ||
322e23db | 8000 | test $ac_write_fail = 0 || |
4a531bb0 | 8001 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
322e23db | 8002 | |
3a12e572 UD |
8003 | |
8004 | # configure is writing to config.log, and then calls config.status. | |
8005 | # config.status does its own redirection, appending to config.log. | |
8006 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8007 | # by configure, so config.status won't be able to write to it; its | |
8008 | # output is simply discarded. So we exec the FD to /dev/null, | |
8009 | # effectively closing config.log, so it can be properly (re)opened and | |
8010 | # appended to by config.status. When coming back to configure, we | |
8011 | # need to make the FD available again. | |
8012 | if test "$no_create" != yes; then | |
8013 | ac_cs_success=: | |
2abf9ff1 RM |
8014 | ac_config_status_args= |
8015 | test "$silent" = yes && | |
8016 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 8017 | exec 5>/dev/null |
2abf9ff1 | 8018 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
8019 | exec 5>>config.log |
8020 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8021 | # would make configure fail if this is the last instruction. | |
4a531bb0 | 8022 | $ac_cs_success || as_fn_exit 1 |
3a12e572 | 8023 | fi |
cd6ede75 | 8024 | |
3a12e572 UD |
8025 | # |
8026 | # CONFIG_SUBDIRS section. | |
8027 | # | |
cd6ede75 UD |
8028 | if test "$no_recursion" != yes; then |
8029 | ||
322e23db UD |
8030 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
8031 | # so they do not pile up. | |
cd6ede75 UD |
8032 | ac_sub_configure_args= |
8033 | ac_prev= | |
26f56c1c UD |
8034 | eval "set x $ac_configure_args" |
8035 | shift | |
8036 | for ac_arg | |
8037 | do | |
cd6ede75 UD |
8038 | if test -n "$ac_prev"; then |
8039 | ac_prev= | |
8040 | continue | |
8041 | fi | |
3a12e572 | 8042 | case $ac_arg in |
cd6ede75 UD |
8043 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
8044 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
8045 | ac_prev=cache_file ;; | |
8046 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
8047 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
8048 | | --c=*) | |
8049 | ;; | |
8050 | --config-cache | -C) | |
cd6ede75 UD |
8051 | ;; |
8052 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
8053 | ac_prev=srcdir ;; | |
8054 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
8055 | ;; | |
3a12e572 UD |
8056 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
8057 | ac_prev=prefix ;; | |
8058 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
8059 | ;; | |
322e23db UD |
8060 | --disable-option-checking) |
8061 | ;; | |
26f56c1c UD |
8062 | *) |
8063 | case $ac_arg in | |
322e23db | 8064 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c | 8065 | esac |
b08c89d9 | 8066 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
cd6ede75 UD |
8067 | esac |
8068 | done | |
8069 | ||
3a12e572 UD |
8070 | # Always prepend --prefix to ensure using the same prefix |
8071 | # in subdir configurations. | |
26f56c1c UD |
8072 | ac_arg="--prefix=$prefix" |
8073 | case $ac_arg in | |
322e23db | 8074 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
8075 | esac |
8076 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
8077 | ||
8078 | # Pass --silent | |
8079 | if test "$silent" = yes; then | |
8080 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
8081 | fi | |
3a12e572 | 8082 | |
322e23db UD |
8083 | # Always prepend --disable-option-checking to silence warnings, since |
8084 | # different subdirs can have different --enable and --with options. | |
8085 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
8086 | ||
3a12e572 UD |
8087 | ac_popdir=`pwd` |
8088 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
8089 | |
8090 | # Do not complain, so a configure script can configure whichever | |
8091 | # parts of a large source tree are present. | |
26f56c1c UD |
8092 | test -d "$srcdir/$ac_dir" || continue |
8093 | ||
8094 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
b08c89d9 | 8095 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
322e23db | 8096 | $as_echo "$ac_msg" >&6 |
b08c89d9 | 8097 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 | 8098 | ac_builddir=. |
cd6ede75 | 8099 | |
26f56c1c UD |
8100 | case "$ac_dir" in |
8101 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8102 | *) | |
322e23db | 8103 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 8104 | # A ".." for each directory in $ac_dir_suffix. |
322e23db | 8105 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
8106 | case $ac_top_builddir_sub in |
8107 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8108 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8109 | esac ;; | |
8110 | esac | |
8111 | ac_abs_top_builddir=$ac_pwd | |
8112 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8113 | # for backward compatibility: | |
8114 | ac_top_builddir=$ac_top_build_prefix | |
cd6ede75 | 8115 | |
3a12e572 | 8116 | case $srcdir in |
26f56c1c | 8117 | .) # We are building in place. |
3a12e572 | 8118 | ac_srcdir=. |
26f56c1c UD |
8119 | ac_top_srcdir=$ac_top_builddir_sub |
8120 | ac_abs_top_srcdir=$ac_pwd ;; | |
8121 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 8122 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
8123 | ac_top_srcdir=$srcdir |
8124 | ac_abs_top_srcdir=$srcdir ;; | |
8125 | *) # Relative name. | |
8126 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8127 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8128 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
9382fcee | 8129 | esac |
26f56c1c | 8130 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3a12e572 UD |
8131 | |
8132 | ||
26f56c1c | 8133 | cd "$ac_dir" |
cd6ede75 UD |
8134 | |
8135 | # Check for guested configure; otherwise get Cygnus style configure. | |
26f56c1c UD |
8136 | if test -f "$ac_srcdir/configure.gnu"; then |
8137 | ac_sub_configure=$ac_srcdir/configure.gnu | |
8138 | elif test -f "$ac_srcdir/configure"; then | |
8139 | ac_sub_configure=$ac_srcdir/configure | |
8140 | elif test -f "$ac_srcdir/configure.in"; then | |
8141 | # This should be Cygnus configure. | |
8142 | ac_sub_configure=$ac_aux_dir/configure | |
cd6ede75 | 8143 | else |
b08c89d9 | 8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
322e23db | 8145 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
cd6ede75 UD |
8146 | ac_sub_configure= |
8147 | fi | |
8148 | ||
8149 | # The recursion is here. | |
8150 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 8151 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
8152 | case $cache_file in |
8153 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
26f56c1c UD |
8154 | *) # Relative name. |
8155 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
cd6ede75 | 8156 | esac |
cd6ede75 | 8157 | |
b08c89d9 | 8158 | { $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 | 8159 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
cd6ede75 | 8160 | # The eval makes quoting arguments work. |
26f56c1c UD |
8161 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
8162 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
4a531bb0 | 8163 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
cd6ede75 UD |
8164 | fi |
8165 | ||
26f56c1c | 8166 | cd "$ac_popdir" |
cd6ede75 UD |
8167 | done |
8168 | fi | |
322e23db | 8169 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b08c89d9 | 8170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
322e23db UD |
8171 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
8172 | fi | |
cd6ede75 | 8173 |