]>
Commit | Line | Data |
---|---|---|
cd6ede75 | 1 | #! /bin/sh |
3a12e572 | 2 | # Guess values for system-dependent variables and create Makefiles. |
c6cb8783 | 3 | # Generated by GNU Autoconf 2.71 for GNU C Library (see version.h). |
f4b07664 | 4 | # |
a306c790 | 5 | # Report bugs to <https://sourceware.org/bugzilla/>. |
3a12e572 | 6 | # |
b08c89d9 | 7 | # |
c6cb8783 SP |
8 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
9 | # Inc. | |
b08c89d9 UD |
10 | # |
11 | # | |
3a12e572 UD |
12 | # This configure script is free software; the Free Software Foundation |
13 | # gives unlimited permission to copy, distribute and modify it. | |
b08c89d9 UD |
14 | ## -------------------- ## |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
cd6ede75 | 17 | |
26f56c1c UD |
18 | # Be more Bourne compatible |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
c6cb8783 SP |
20 | as_nop=: |
21 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
22 | then : | |
3a12e572 UD |
23 | emulate sh |
24 | NULLCMD=: | |
322e23db | 25 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
26 | # is contrary to our usage. Disable this feature. |
27 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c | 28 | setopt NO_GLOB_SUBST |
c6cb8783 | 29 | else $as_nop |
b08c89d9 UD |
30 | case `(set -o) 2>/dev/null` in #( |
31 | *posix*) : | |
32 | set -o posix ;; #( | |
33 | *) : | |
34 | ;; | |
26f56c1c | 35 | esac |
26f56c1c UD |
36 | fi |
37 | ||
38 | ||
c6cb8783 SP |
39 | |
40 | # Reset variables that may have inherited troublesome values from | |
41 | # the environment. | |
42 | ||
43 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
44 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
45 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
46 | # Quoting is to prevent editors from complaining about space-tab. | |
322e23db UD |
47 | as_nl=' |
48 | ' | |
49 | export as_nl | |
c6cb8783 SP |
50 | IFS=" "" $as_nl" |
51 | ||
52 | PS1='$ ' | |
53 | PS2='> ' | |
54 | PS4='+ ' | |
55 | ||
56 | # Ensure predictable behavior from utilities with locale-dependent output. | |
57 | LC_ALL=C | |
58 | export LC_ALL | |
59 | LANGUAGE=C | |
60 | export LANGUAGE | |
61 | ||
62 | # We cannot yet rely on "unset" to work, but we need these variables | |
63 | # to be unset--not just set to an empty or harmless value--now, to | |
64 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
65 | # also avoids known problems related to "unset" and subshell syntax | |
66 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
67 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
68 | do eval test \${$as_var+y} \ | |
69 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
70 | done | |
71 | ||
72 | # Ensure that fds 0, 1, and 2 are open. | |
73 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
74 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
75 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
322e23db UD |
76 | |
77 | # The user is always right. | |
c6cb8783 | 78 | if ${PATH_SEPARATOR+false} :; then |
322e23db UD |
79 | PATH_SEPARATOR=: |
80 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
81 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
82 | PATH_SEPARATOR=';' | |
83 | } | |
3a12e572 | 84 | fi |
cd6ede75 | 85 | |
f4b07664 | 86 | |
26f56c1c | 87 | # Find who we are. Look in the path if we contain no directory separator. |
f318beb8 | 88 | as_myself= |
b08c89d9 | 89 | case $0 in #(( |
26f56c1c UD |
90 | *[\\/]* ) as_myself=$0 ;; |
91 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
92 | for as_dir in $PATH | |
93 | do | |
94 | IFS=$as_save_IFS | |
c6cb8783 SP |
95 | case $as_dir in #((( |
96 | '') as_dir=./ ;; | |
97 | */) ;; | |
98 | *) as_dir=$as_dir/ ;; | |
99 | esac | |
100 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
b08c89d9 | 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 | |
c6cb8783 | 112 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 113 | exit 1 |
26f56c1c UD |
114 | fi |
115 | ||
b08c89d9 | 116 | |
f4a58f0d L |
117 | # Use a proper internal environment variable to ensure we don't fall |
118 | # into an infinite loop, continuously re-executing ourselves. | |
119 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
120 | _as_can_reexec=no; export _as_can_reexec; | |
121 | # We cannot yet assume a decent shell, so we have to provide a | |
122 | # neutralization value for shells without unset; and this also | |
123 | # works around shells that cannot unset nonexistent variables. | |
124 | # Preserve -v and -x to the replacement shell. | |
125 | BASH_ENV=/dev/null | |
126 | ENV=/dev/null | |
127 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
128 | case $- in # (((( | |
129 | *v*x* | *x*v* ) as_opts=-vx ;; | |
130 | *v* ) as_opts=-v ;; | |
131 | *x* ) as_opts=-x ;; | |
132 | * ) as_opts= ;; | |
133 | esac | |
134 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
135 | # Admittedly, this is quite paranoid, since all the known shells bail | |
136 | # out after a failed `exec'. | |
c6cb8783 SP |
137 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
138 | exit 255 | |
f4a58f0d L |
139 | fi |
140 | # We don't want this to propagate to other subprocesses. | |
141 | { _as_can_reexec=; unset _as_can_reexec;} | |
b08c89d9 | 142 | if test "x$CONFIG_SHELL" = x; then |
c6cb8783 SP |
143 | as_bourne_compatible="as_nop=: |
144 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
145 | then : | |
b08c89d9 UD |
146 | emulate sh |
147 | NULLCMD=: | |
148 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
149 | # is contrary to our usage. Disable this feature. | |
150 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
151 | setopt NO_GLOB_SUBST | |
c6cb8783 | 152 | else \$as_nop |
b08c89d9 UD |
153 | case \`(set -o) 2>/dev/null\` in #( |
154 | *posix*) : | |
155 | set -o posix ;; #( | |
156 | *) : | |
157 | ;; | |
158 | esac | |
159 | fi | |
160 | " | |
161 | as_required="as_fn_return () { (exit \$1); } | |
162 | as_fn_success () { as_fn_return 0; } | |
163 | as_fn_failure () { as_fn_return 1; } | |
164 | as_fn_ret_success () { return 0; } | |
165 | as_fn_ret_failure () { return 1; } | |
166 | ||
167 | exitcode=0 | |
168 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
169 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
170 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
171 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
c6cb8783 SP |
172 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
173 | then : | |
b08c89d9 | 174 | |
c6cb8783 | 175 | else \$as_nop |
b08c89d9 UD |
176 | exitcode=1; echo positional parameters were not saved. |
177 | fi | |
f4a58f0d | 178 | test x\$exitcode = x0 || exit 1 |
c6cb8783 SP |
179 | blah=\$(echo \$(echo blah)) |
180 | test x\"\$blah\" = xblah || exit 1 | |
f4a58f0d | 181 | test -x / || exit 1" |
b08c89d9 UD |
182 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
183 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
184 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
3d0dbdc4 | 185 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
c6cb8783 SP |
186 | if (eval "$as_required") 2>/dev/null |
187 | then : | |
b08c89d9 | 188 | as_have_required=yes |
c6cb8783 | 189 | else $as_nop |
b08c89d9 UD |
190 | as_have_required=no |
191 | fi | |
c6cb8783 SP |
192 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
193 | then : | |
b08c89d9 | 194 | |
c6cb8783 | 195 | else $as_nop |
b08c89d9 UD |
196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
197 | as_found=false | |
198 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
199 | do | |
200 | IFS=$as_save_IFS | |
c6cb8783 SP |
201 | case $as_dir in #((( |
202 | '') as_dir=./ ;; | |
203 | */) ;; | |
204 | *) as_dir=$as_dir/ ;; | |
205 | esac | |
b08c89d9 UD |
206 | as_found=: |
207 | case $as_dir in #( | |
208 | /*) | |
209 | for as_base in sh bash ksh sh5; do | |
210 | # Try only shells that exist, to save several forks. | |
c6cb8783 | 211 | as_shell=$as_dir$as_base |
b08c89d9 | 212 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
c6cb8783 SP |
213 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
214 | then : | |
b08c89d9 | 215 | CONFIG_SHELL=$as_shell as_have_required=yes |
c6cb8783 SP |
216 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
217 | then : | |
b08c89d9 UD |
218 | break 2 |
219 | fi | |
220 | fi | |
221 | done;; | |
222 | esac | |
223 | as_found=false | |
224 | done | |
b08c89d9 | 225 | IFS=$as_save_IFS |
c6cb8783 SP |
226 | if $as_found |
227 | then : | |
b08c89d9 | 228 | |
c6cb8783 SP |
229 | else $as_nop |
230 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
231 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
232 | then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi | |
235 | fi | |
b08c89d9 | 236 | |
c6cb8783 SP |
237 | |
238 | if test "x$CONFIG_SHELL" != x | |
239 | 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'. | |
c6cb8783 | 257 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
f4a58f0d | 258 | exit 255 |
b08c89d9 UD |
259 | fi |
260 | ||
c6cb8783 SP |
261 | if test x$as_have_required = xno |
262 | then : | |
263 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
264 | printf "%s\n" "$0: the shells that I found on your system." | |
265 | if test ${ZSH_VERSION+y} ; then | |
266 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
b08c89d9 | 268 | else |
c6cb8783 | 269 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and |
a306c790 | 270 | $0: https://sourceware.org/bugzilla/ about your system, |
f318beb8 | 271 | $0: including any error possibly output before this |
b08c89d9 UD |
272 | $0: message. Then install a modern shell, or manually run |
273 | $0: the script under such a shell if you do have one." | |
274 | fi | |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
c6cb8783 | 297 | |
b08c89d9 UD |
298 | # as_fn_set_status STATUS |
299 | # ----------------------- | |
300 | # Set $? to STATUS, without forking. | |
301 | as_fn_set_status () | |
302 | { | |
303 | return $1 | |
304 | } # as_fn_set_status | |
305 | ||
306 | # as_fn_exit STATUS | |
307 | # ----------------- | |
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
309 | as_fn_exit () | |
310 | { | |
311 | set +e | |
312 | as_fn_set_status $1 | |
313 | exit $1 | |
314 | } # as_fn_exit | |
c6cb8783 SP |
315 | # as_fn_nop |
316 | # --------- | |
317 | # Do nothing but, unlike ":", preserve the value of $?. | |
318 | as_fn_nop () | |
319 | { | |
320 | return $? | |
321 | } | |
322 | as_nop=as_fn_nop | |
b08c89d9 UD |
323 | |
324 | # as_fn_mkdir_p | |
325 | # ------------- | |
326 | # Create "$as_dir" as a directory, including parents if necessary. | |
327 | as_fn_mkdir_p () | |
328 | { | |
329 | ||
330 | case $as_dir in #( | |
331 | -*) as_dir=./$as_dir;; | |
332 | esac | |
333 | test -d "$as_dir" || eval $as_mkdir_p || { | |
334 | as_dirs= | |
335 | while :; do | |
336 | case $as_dir in #( | |
c6cb8783 | 337 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
b08c89d9 UD |
338 | *) as_qdir=$as_dir;; |
339 | esac | |
340 | as_dirs="'$as_qdir' $as_dirs" | |
341 | as_dir=`$as_dirname -- "$as_dir" || | |
342 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
343 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
344 | X"$as_dir" : 'X\(//\)$' \| \ | |
345 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
c6cb8783 | 346 | printf "%s\n" X"$as_dir" | |
b08c89d9 UD |
347 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)[^/].*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\/\)$/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | /^X\(\/\).*/{ | |
360 | s//\1/ | |
361 | q | |
362 | } | |
363 | s/.*/./; q'` | |
364 | test -d "$as_dir" && break | |
365 | done | |
366 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 367 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
368 | |
369 | ||
370 | } # as_fn_mkdir_p | |
f4a58f0d L |
371 | |
372 | # as_fn_executable_p FILE | |
373 | # ----------------------- | |
374 | # Test if FILE is an executable regular file. | |
375 | as_fn_executable_p () | |
376 | { | |
377 | test -f "$1" && test -x "$1" | |
378 | } # as_fn_executable_p | |
b08c89d9 UD |
379 | # as_fn_append VAR VALUE |
380 | # ---------------------- | |
381 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
382 | # advantage of any shell optimizations that allow amortized linear growth over | |
383 | # repeated appends, instead of the typical quadratic growth present in naive | |
384 | # implementations. | |
c6cb8783 SP |
385 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
386 | then : | |
b08c89d9 UD |
387 | eval 'as_fn_append () |
388 | { | |
389 | eval $1+=\$2 | |
390 | }' | |
c6cb8783 | 391 | else $as_nop |
b08c89d9 UD |
392 | as_fn_append () |
393 | { | |
394 | eval $1=\$$1\$2 | |
395 | } | |
396 | fi # as_fn_append | |
397 | ||
398 | # as_fn_arith ARG... | |
399 | # ------------------ | |
400 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
401 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
402 | # must be portable across $(()) and expr. | |
c6cb8783 SP |
403 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
404 | then : | |
b08c89d9 UD |
405 | eval 'as_fn_arith () |
406 | { | |
407 | as_val=$(( $* )) | |
408 | }' | |
c6cb8783 | 409 | else $as_nop |
b08c89d9 UD |
410 | as_fn_arith () |
411 | { | |
412 | as_val=`expr "$@" || test $? -eq 1` | |
413 | } | |
414 | fi # as_fn_arith | |
415 | ||
c6cb8783 SP |
416 | # as_fn_nop |
417 | # --------- | |
418 | # Do nothing but, unlike ":", preserve the value of $?. | |
419 | as_fn_nop () | |
420 | { | |
421 | return $? | |
422 | } | |
423 | as_nop=as_fn_nop | |
b08c89d9 | 424 | |
4a531bb0 L |
425 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
426 | # ---------------------------------------- | |
b08c89d9 UD |
427 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
428 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 429 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
430 | as_fn_error () |
431 | { | |
4a531bb0 L |
432 | as_status=$1; test $as_status -eq 0 && as_status=1 |
433 | if test "$4"; then | |
434 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 435 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
b08c89d9 | 436 | fi |
c6cb8783 | 437 | printf "%s\n" "$as_me: error: $2" >&2 |
b08c89d9 UD |
438 | as_fn_exit $as_status |
439 | } # as_fn_error | |
440 | ||
26f56c1c UD |
441 | if expr a : '\(a\)' >/dev/null 2>&1 && |
442 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
443 | as_expr=expr |
444 | else | |
445 | as_expr=false | |
446 | fi | |
447 | ||
26f56c1c | 448 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
449 | as_basename=basename |
450 | else | |
451 | as_basename=false | |
452 | fi | |
3a12e572 | 453 | |
b08c89d9 UD |
454 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
455 | as_dirname=dirname | |
456 | else | |
457 | as_dirname=false | |
458 | fi | |
3a12e572 | 459 | |
26f56c1c | 460 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
461 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
462 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 463 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 464 | printf "%s\n" X/"$0" | |
26f56c1c UD |
465 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
466 | s//\1/ | |
467 | q | |
468 | } | |
469 | /^X\/\(\/\/\)$/{ | |
470 | s//\1/ | |
471 | q | |
472 | } | |
473 | /^X\/\(\/\).*/{ | |
474 | s//\1/ | |
475 | q | |
476 | } | |
477 | s/.*/./; q'` | |
3a12e572 | 478 | |
b08c89d9 UD |
479 | # Avoid depending upon Character Ranges. |
480 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
481 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
482 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
483 | as_cr_digits='0123456789' | |
484 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
f4b07664 | 485 | |
3a12e572 | 486 | |
b08c89d9 UD |
487 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
488 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
489 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
490 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
491 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
492 | sed -n ' | |
493 | p | |
494 | /[$]LINENO/= | |
495 | ' <$as_myself | | |
496 | sed ' | |
497 | s/[$]LINENO.*/&-/ | |
498 | t lineno | |
499 | b | |
500 | :lineno | |
501 | N | |
502 | :loop | |
503 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
504 | t loop | |
505 | s/-\n.*// | |
506 | ' >$as_me.lineno && | |
507 | chmod +x "$as_me.lineno" || | |
c6cb8783 | 508 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
cd6ede75 | 509 | |
f4a58f0d L |
510 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
511 | # already done that, so ensure we don't try to do so again and fall | |
512 | # in an infinite loop. This has already happened in practice. | |
513 | _as_can_reexec=no; export _as_can_reexec | |
b08c89d9 UD |
514 | # Don't try to exec as it changes $[0], causing all sort of problems |
515 | # (the dirname of $[0] is not the place where we might find the | |
516 | # original and so on. Autoconf is especially sensitive to this). | |
517 | . "./$as_me.lineno" | |
518 | # Exit status is that of the last command. | |
519 | exit | |
26f56c1c | 520 | } |
cd6ede75 | 521 | |
c6cb8783 SP |
522 | |
523 | # Determine whether it's possible to make 'echo' print without a newline. | |
524 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
525 | # for compatibility with existing Makefiles. | |
b08c89d9 UD |
526 | ECHO_C= ECHO_N= ECHO_T= |
527 | case `echo -n x` in #((((( | |
528 | -n*) | |
529 | case `echo 'xy\c'` in | |
530 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
531 | xy) ECHO_C='\c';; | |
532 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
533 | ECHO_T=' ';; | |
534 | esac;; | |
535 | *) | |
536 | ECHO_N='-n';; | |
537 | esac | |
650425ce | 538 | |
c6cb8783 SP |
539 | # For backward compatibility with old third-party macros, we provide |
540 | # the shell variables $as_echo and $as_echo_n. New code should use | |
541 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
542 | as_echo='printf %s\n' | |
543 | as_echo_n='printf %s' | |
544 | ||
545 | ||
b08c89d9 UD |
546 | rm -f conf$$ conf$$.exe conf$$.file |
547 | if test -d conf$$.dir; then | |
548 | rm -f conf$$.dir/conf$$.file | |
549 | else | |
550 | rm -f conf$$.dir | |
551 | mkdir conf$$.dir 2>/dev/null | |
26f56c1c | 552 | fi |
b08c89d9 UD |
553 | if (echo >conf$$.file) 2>/dev/null; then |
554 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
555 | as_ln_s='ln -s' | |
556 | # ... but there are two gotchas: | |
557 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
558 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f4a58f0d | 559 | # In both cases, we have to default to `cp -pR'. |
b08c89d9 | 560 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 561 | as_ln_s='cp -pR' |
b08c89d9 UD |
562 | elif ln conf$$.file conf$$ 2>/dev/null; then |
563 | as_ln_s=ln | |
564 | else | |
f4a58f0d | 565 | as_ln_s='cp -pR' |
b08c89d9 | 566 | fi |
26f56c1c | 567 | else |
f4a58f0d | 568 | as_ln_s='cp -pR' |
26f56c1c | 569 | fi |
b08c89d9 UD |
570 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
571 | rmdir conf$$.dir 2>/dev/null | |
26f56c1c | 572 | |
b08c89d9 UD |
573 | if mkdir -p . 2>/dev/null; then |
574 | as_mkdir_p='mkdir -p "$as_dir"' | |
575 | else | |
576 | test -d ./-p && rmdir ./-p | |
577 | as_mkdir_p=false | |
26f56c1c UD |
578 | fi |
579 | ||
f4a58f0d L |
580 | as_test_x='test -x' |
581 | as_executable_p=as_fn_executable_p | |
26f56c1c | 582 | |
b08c89d9 UD |
583 | # Sed expression to map a string onto a valid CPP name. |
584 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c | 585 | |
b08c89d9 UD |
586 | # Sed expression to map a string onto a valid variable name. |
587 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
26f56c1c UD |
588 | |
589 | ||
b08c89d9 UD |
590 | test -n "$DJDIR" || exec 7<&0 </dev/null |
591 | exec 6>&1 | |
cd6ede75 | 592 | |
3a12e572 | 593 | # Name of the host. |
4a531bb0 | 594 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
3a12e572 UD |
595 | # so uname gets run too. |
596 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
597 | ||
3a12e572 UD |
598 | # |
599 | # Initializations. | |
600 | # | |
cd6ede75 | 601 | ac_default_prefix=/usr/local |
26f56c1c | 602 | ac_clean_files= |
f4b07664 | 603 | ac_config_libobj_dir=. |
26f56c1c | 604 | LIBOBJS= |
3a12e572 UD |
605 | cross_compiling=no |
606 | subdirs= | |
607 | MFLAGS= | |
608 | MAKEFLAGS= | |
3a12e572 | 609 | |
3a12e572 | 610 | # Identity of this package. |
f4b07664 | 611 | PACKAGE_NAME='GNU C Library' |
f318beb8 | 612 | PACKAGE_TARNAME='glibc' |
f4b07664 RM |
613 | PACKAGE_VERSION='(see version.h)' |
614 | PACKAGE_STRING='GNU C Library (see version.h)' | |
a306c790 | 615 | PACKAGE_BUGREPORT='https://sourceware.org/bugzilla/' |
02d35f06 | 616 | PACKAGE_URL='https://www.gnu.org/software/glibc/' |
3a12e572 UD |
617 | |
618 | ac_unique_file="include/features.h" | |
322e23db | 619 | enable_option_checking=no |
322e23db | 620 | ac_subst_vars='LTLIBOBJS |
a152f366 | 621 | LIBOBJS |
ad201afe | 622 | pthread_in_libc |
322e23db UD |
623 | RELEASE |
624 | VERSION | |
625 | mach_interface_list | |
626 | DEFINES | |
322e23db | 627 | static_nss |
322e23db | 628 | profile |
abcb584d | 629 | libc_cv_multidir |
322e23db UD |
630 | shared |
631 | static | |
322e23db UD |
632 | ldd_rewrite_script |
633 | use_ldconfig | |
322e23db | 634 | libc_cv_rootsbindir |
4248b1b1 | 635 | libc_cv_localstatedir |
322e23db | 636 | libc_cv_sysconfdir |
90fe682d | 637 | libc_cv_complocaledir |
aaa8cb4b | 638 | libc_cv_rtlddir |
322e23db | 639 | libc_cv_slibdir |
3cc3ef96 | 640 | use_nscd |
322e23db | 641 | libc_cv_gcc_unwind_find_fde |
7ffa9423 | 642 | libc_extra_cppflags |
30b99d79 | 643 | libc_extra_cflags |
99e1dc0a | 644 | libc_cv_cxx_thread_local |
64d9580c FB |
645 | fortify_source |
646 | no_fortify_source | |
647 | libc_cv_fortify_source | |
648 | enable_fortify_source | |
322e23db UD |
649 | have_selinux |
650 | have_libcap | |
651 | have_libaudit | |
652 | LIBGD | |
85c2e611 | 653 | libc_cv_cc_loop_to_function |
322e23db | 654 | libc_cv_cc_submachine |
bef0b507 | 655 | libc_cv_cc_nofma |
61655555 | 656 | libc_cv_mtls_dialect_gnu2 |
89569c8b | 657 | libc_cv_has_glob_dat |
322e23db UD |
658 | libc_cv_fpie |
659 | libc_cv_z_execstack | |
322e23db | 660 | ASFLAGS_config |
322e23db | 661 | libc_cv_cc_with_libunwind |
19f1a11e | 662 | libc_cv_insert |
83569fb8 | 663 | libc_cv_protected_data |
322e23db UD |
664 | INSTALL_INFO |
665 | PERL | |
322e23db | 666 | BASH_SHELL |
a65ea28d | 667 | CXX_BITS_STD_ABS_H |
fc3e1337 FW |
668 | CXX_CMATH_HEADER |
669 | CXX_CSTDLIB_HEADER | |
322e23db UD |
670 | CXX_SYSINCLUDES |
671 | SYSINCLUDES | |
43ecc41d AZ |
672 | sysnames |
673 | submachine | |
674 | multi_arch | |
675 | libc_cv_textrel_ifunc | |
676 | no_stack_protector | |
677 | stack_protector | |
678 | libc_cv_ssp | |
679 | libc_cv_with_fp | |
8ce8299f SP |
680 | PYTHON |
681 | PYTHON_PROG | |
322e23db | 682 | AUTOCONF |
1faaf703 | 683 | BISON |
0786794f | 684 | AWK |
322e23db UD |
685 | SED |
686 | MAKEINFO | |
687 | MSGFMT | |
688 | MAKE | |
322e23db | 689 | LD |
02abdab0 AZ |
690 | NM |
691 | OBJDUMP | |
692 | READELF | |
6014c65d | 693 | GPROF |
1b74661a | 694 | OBJCOPY |
322e23db UD |
695 | AR |
696 | LN_S | |
697 | INSTALL_DATA | |
698 | INSTALL_SCRIPT | |
699 | INSTALL_PROGRAM | |
322e23db | 700 | base_machine |
e4608715 | 701 | build_pt_chown |
c53d909c | 702 | build_nscd |
84aa7516 | 703 | libc_cv_static_nss_crypt |
322e23db | 704 | libc_cv_nss_crypt |
e69d994a | 705 | build_crypt |
33784089 | 706 | memory_tagging |
a4ecc9eb | 707 | enable_werror |
322e23db UD |
708 | all_warnings |
709 | force_install | |
710 | bindnow | |
740b3dbe | 711 | hardcoded_path_in_tests |
1cba4036 | 712 | enable_timezone_tools |
9ba202c7 | 713 | rtld_early_cflags |
6413fcde | 714 | extra_nonshared_cflags |
c91c505f | 715 | sysheaders |
322e23db UD |
716 | ac_ct_CXX |
717 | CXXFLAGS | |
718 | CXX | |
719 | CPP | |
720 | cross_compiling | |
721 | BUILD_CC | |
722 | OBJEXT | |
723 | ac_ct_CC | |
724 | CPPFLAGS | |
725 | LDFLAGS | |
726 | CFLAGS | |
727 | CC | |
c16a054d AS |
728 | host_os |
729 | host_vendor | |
730 | host_cpu | |
731 | host | |
732 | build_os | |
733 | build_vendor | |
734 | build_cpu | |
735 | build | |
7967983f | 736 | subdirs |
8b748aed JM |
737 | REPORT_BUGS_TEXI |
738 | REPORT_BUGS_TO | |
739 | PKGVERSION_TEXI | |
740 | PKGVERSION | |
322e23db UD |
741 | target_alias |
742 | host_alias | |
743 | build_alias | |
744 | LIBS | |
745 | ECHO_T | |
746 | ECHO_N | |
747 | ECHO_C | |
748 | DEFS | |
749 | mandir | |
750 | localedir | |
751 | libdir | |
752 | psdir | |
753 | pdfdir | |
754 | dvidir | |
755 | htmldir | |
756 | infodir | |
757 | docdir | |
758 | oldincludedir | |
759 | includedir | |
c6cb8783 | 760 | runstatedir |
322e23db UD |
761 | localstatedir |
762 | sharedstatedir | |
763 | sysconfdir | |
764 | datadir | |
765 | datarootdir | |
766 | libexecdir | |
767 | sbindir | |
768 | bindir | |
769 | program_transform_name | |
770 | prefix | |
771 | exec_prefix | |
b08c89d9 | 772 | PACKAGE_URL |
322e23db UD |
773 | PACKAGE_BUGREPORT |
774 | PACKAGE_STRING | |
775 | PACKAGE_VERSION | |
776 | PACKAGE_TARNAME | |
777 | PACKAGE_NAME | |
778 | PATH_SEPARATOR | |
779 | SHELL' | |
a152f366 | 780 | ac_subst_files='' |
322e23db UD |
781 | ac_user_opts=' |
782 | enable_option_checking | |
8b748aed JM |
783 | with_pkgversion |
784 | with_bugurl | |
322e23db UD |
785 | with_gd |
786 | with_gd_include | |
787 | with_gd_lib | |
322e23db | 788 | with_binutils |
322e23db | 789 | with_selinux |
322e23db | 790 | with_headers |
6413fcde | 791 | with_nonshared_cflags |
9ba202c7 | 792 | with_rtld_early_cflags |
bada2e31 | 793 | with_timeoutfactor |
322e23db | 794 | enable_sanity_checks |
322e23db UD |
795 | enable_shared |
796 | enable_profile | |
23645707 | 797 | enable_default_pie |
1cba4036 | 798 | enable_timezone_tools |
740b3dbe | 799 | enable_hardcoded_path_in_tests |
322e23db UD |
800 | enable_hidden_plt |
801 | enable_bind_now | |
03baef1c | 802 | enable_stack_protector |
322e23db UD |
803 | enable_static_nss |
804 | enable_force_install | |
8894bad3 | 805 | enable_maintainer_mode |
322e23db UD |
806 | enable_kernel |
807 | enable_all_warnings | |
a4ecc9eb | 808 | enable_werror |
322e23db | 809 | enable_multi_arch |
33784089 | 810 | enable_memory_tagging |
e69d994a | 811 | enable_crypt |
322e23db | 812 | enable_nss_crypt |
3a097cc7 | 813 | enable_systemtap |
c53d909c | 814 | enable_build_nscd |
3cc3ef96 | 815 | enable_nscd |
e4608715 | 816 | enable_pt_chown |
5695d46f | 817 | enable_mathvec |
f753fa7d | 818 | enable_cet |
ebae2f5a | 819 | enable_scv |
64d9580c | 820 | enable_fortify_source |
322e23db UD |
821 | with_cpu |
822 | ' | |
a152f366 UD |
823 | ac_precious_vars='build_alias |
824 | host_alias | |
825 | target_alias | |
826 | CC | |
827 | CFLAGS | |
828 | LDFLAGS | |
829 | LIBS | |
830 | CPPFLAGS | |
831 | CPP | |
832 | CXX | |
833 | CXXFLAGS | |
834 | CCC' | |
644d3857 | 835 | ac_subdirs_all='' |
a152f366 UD |
836 | |
837 | # Initialize some variables set by options. | |
838 | ac_init_help= | |
839 | ac_init_version=false | |
322e23db UD |
840 | ac_unrecognized_opts= |
841 | ac_unrecognized_sep= | |
a152f366 UD |
842 | # The variables have the same names as the options, with |
843 | # dashes changed to underlines. | |
844 | cache_file=/dev/null | |
845 | exec_prefix=NONE | |
846 | no_create= | |
847 | no_recursion= | |
848 | prefix=NONE | |
849 | program_prefix=NONE | |
850 | program_suffix=NONE | |
851 | program_transform_name=s,x,x, | |
852 | silent= | |
853 | site= | |
854 | srcdir= | |
855 | verbose= | |
856 | x_includes=NONE | |
857 | x_libraries=NONE | |
858 | ||
859 | # Installation directory options. | |
860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
861 | # and all the variables that are supposed to be based on exec_prefix | |
862 | # by default will actually change. | |
863 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
864 | # (The list follows the same order as the GNU Coding Standards.) | |
865 | bindir='${exec_prefix}/bin' | |
866 | sbindir='${exec_prefix}/sbin' | |
867 | libexecdir='${exec_prefix}/libexec' | |
868 | datarootdir='${prefix}/share' | |
869 | datadir='${datarootdir}' | |
870 | sysconfdir='${prefix}/etc' | |
871 | sharedstatedir='${prefix}/com' | |
872 | localstatedir='${prefix}/var' | |
c6cb8783 | 873 | runstatedir='${localstatedir}/run' |
a152f366 UD |
874 | includedir='${prefix}/include' |
875 | oldincludedir='/usr/include' | |
876 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
877 | infodir='${datarootdir}/info' | |
878 | htmldir='${docdir}' | |
26f56c1c UD |
879 | dvidir='${docdir}' |
880 | pdfdir='${docdir}' | |
881 | psdir='${docdir}' | |
882 | libdir='${exec_prefix}/lib' | |
883 | localedir='${datarootdir}/locale' | |
884 | mandir='${datarootdir}/man' | |
cd6ede75 | 885 | |
cd6ede75 | 886 | ac_prev= |
26f56c1c | 887 | ac_dashdash= |
cd6ede75 UD |
888 | for ac_option |
889 | do | |
cd6ede75 UD |
890 | # If the previous option needs an argument, assign it. |
891 | if test -n "$ac_prev"; then | |
26f56c1c | 892 | eval $ac_prev=\$ac_option |
cd6ede75 UD |
893 | ac_prev= |
894 | continue | |
895 | fi | |
896 | ||
26f56c1c | 897 | case $ac_option in |
f318beb8 UD |
898 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
899 | *=) ac_optarg= ;; | |
900 | *) ac_optarg=yes ;; | |
26f56c1c | 901 | esac |
cd6ede75 | 902 | |
26f56c1c UD |
903 | case $ac_dashdash$ac_option in |
904 | --) | |
905 | ac_dashdash=yes ;; | |
cd6ede75 UD |
906 | |
907 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
908 | ac_prev=bindir ;; | |
909 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
3a12e572 | 910 | bindir=$ac_optarg ;; |
cd6ede75 UD |
911 | |
912 | -build | --build | --buil | --bui | --bu) | |
3a12e572 | 913 | ac_prev=build_alias ;; |
cd6ede75 | 914 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
3a12e572 | 915 | build_alias=$ac_optarg ;; |
cd6ede75 UD |
916 | |
917 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
918 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
919 | ac_prev=cache_file ;; | |
920 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
921 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
3a12e572 UD |
922 | cache_file=$ac_optarg ;; |
923 | ||
924 | --config-cache | -C) | |
925 | cache_file=config.cache ;; | |
cd6ede75 | 926 | |
26f56c1c | 927 | -datadir | --datadir | --datadi | --datad) |
cd6ede75 | 928 | ac_prev=datadir ;; |
26f56c1c | 929 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
3a12e572 | 930 | datadir=$ac_optarg ;; |
cd6ede75 | 931 | |
26f56c1c UD |
932 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
933 | | --dataroo | --dataro | --datar) | |
934 | ac_prev=datarootdir ;; | |
935 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
936 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
937 | datarootdir=$ac_optarg ;; | |
938 | ||
cd6ede75 | 939 | -disable-* | --disable-*) |
322e23db | 940 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
cd6ede75 | 941 | # Reject names that are not valid shell variable names. |
322e23db | 942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 943 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
322e23db | 944 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 945 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
946 | case $ac_user_opts in |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=no ;; | |
26f56c1c UD |
954 | |
955 | -docdir | --docdir | --docdi | --doc | --do) | |
956 | ac_prev=docdir ;; | |
957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
958 | docdir=$ac_optarg ;; | |
959 | ||
960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
961 | ac_prev=dvidir ;; | |
962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
963 | dvidir=$ac_optarg ;; | |
cd6ede75 UD |
964 | |
965 | -enable-* | --enable-*) | |
322e23db | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
cd6ede75 | 967 | # Reject names that are not valid shell variable names. |
322e23db | 968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 969 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
322e23db | 970 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 971 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
972 | case $ac_user_opts in |
973 | *" | |
974 | "enable_$ac_useropt" | |
975 | "*) ;; | |
976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
977 | ac_unrecognized_sep=', ';; | |
978 | esac | |
979 | eval enable_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
980 | |
981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
983 | | --exec | --exe | --ex) | |
984 | ac_prev=exec_prefix ;; | |
985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
987 | | --exec=* | --exe=* | --ex=*) | |
3a12e572 | 988 | exec_prefix=$ac_optarg ;; |
cd6ede75 UD |
989 | |
990 | -gas | --gas | --ga | --g) | |
991 | # Obsolete; use --with-gas. | |
992 | with_gas=yes ;; | |
993 | ||
3a12e572 UD |
994 | -help | --help | --hel | --he | -h) |
995 | ac_init_help=long ;; | |
996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
997 | ac_init_help=recursive ;; | |
998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
999 | ac_init_help=short ;; | |
cd6ede75 UD |
1000 | |
1001 | -host | --host | --hos | --ho) | |
3a12e572 | 1002 | ac_prev=host_alias ;; |
cd6ede75 | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
3a12e572 | 1004 | host_alias=$ac_optarg ;; |
cd6ede75 | 1005 | |
26f56c1c UD |
1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1007 | ac_prev=htmldir ;; | |
1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1009 | | --ht=*) | |
1010 | htmldir=$ac_optarg ;; | |
1011 | ||
cd6ede75 UD |
1012 | -includedir | --includedir | --includedi | --included | --include \ |
1013 | | --includ | --inclu | --incl | --inc) | |
1014 | ac_prev=includedir ;; | |
1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
3a12e572 | 1017 | includedir=$ac_optarg ;; |
cd6ede75 UD |
1018 | |
1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1020 | ac_prev=infodir ;; | |
1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
3a12e572 | 1022 | infodir=$ac_optarg ;; |
cd6ede75 UD |
1023 | |
1024 | -libdir | --libdir | --libdi | --libd) | |
1025 | ac_prev=libdir ;; | |
1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
3a12e572 | 1027 | libdir=$ac_optarg ;; |
cd6ede75 UD |
1028 | |
1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1030 | | --libexe | --libex | --libe) | |
1031 | ac_prev=libexecdir ;; | |
1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1033 | | --libexe=* | --libex=* | --libe=*) | |
3a12e572 | 1034 | libexecdir=$ac_optarg ;; |
cd6ede75 | 1035 | |
26f56c1c UD |
1036 | -localedir | --localedir | --localedi | --localed | --locale) |
1037 | ac_prev=localedir ;; | |
1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1039 | localedir=$ac_optarg ;; | |
1040 | ||
cd6ede75 | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
26f56c1c | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
cd6ede75 UD |
1043 | ac_prev=localstatedir ;; |
1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
26f56c1c | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
3a12e572 | 1046 | localstatedir=$ac_optarg ;; |
cd6ede75 UD |
1047 | |
1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1049 | ac_prev=mandir ;; | |
1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
3a12e572 | 1051 | mandir=$ac_optarg ;; |
cd6ede75 UD |
1052 | |
1053 | -nfp | --nfp | --nf) | |
1054 | # Obsolete; use --without-fp. | |
1055 | with_fp=no ;; | |
1056 | ||
1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
3a12e572 | 1058 | | --no-cr | --no-c | -n) |
cd6ede75 UD |
1059 | no_create=yes ;; |
1060 | ||
1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1063 | no_recursion=yes ;; | |
1064 | ||
1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1067 | | --oldin | --oldi | --old | --ol | --o) | |
1068 | ac_prev=oldincludedir ;; | |
1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
3a12e572 | 1072 | oldincludedir=$ac_optarg ;; |
cd6ede75 UD |
1073 | |
1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1075 | ac_prev=prefix ;; | |
1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
3a12e572 | 1077 | prefix=$ac_optarg ;; |
cd6ede75 UD |
1078 | |
1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1080 | | --program-pre | --program-pr | --program-p) | |
1081 | ac_prev=program_prefix ;; | |
1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
3a12e572 | 1084 | program_prefix=$ac_optarg ;; |
cd6ede75 UD |
1085 | |
1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1087 | | --program-suf | --program-su | --program-s) | |
1088 | ac_prev=program_suffix ;; | |
1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
3a12e572 | 1091 | program_suffix=$ac_optarg ;; |
cd6ede75 UD |
1092 | |
1093 | -program-transform-name | --program-transform-name \ | |
1094 | | --program-transform-nam | --program-transform-na \ | |
1095 | | --program-transform-n | --program-transform- \ | |
1096 | | --program-transform | --program-transfor \ | |
1097 | | --program-transfo | --program-transf \ | |
1098 | | --program-trans | --program-tran \ | |
1099 | | --progr-tra | --program-tr | --program-t) | |
1100 | ac_prev=program_transform_name ;; | |
1101 | -program-transform-name=* | --program-transform-name=* \ | |
1102 | | --program-transform-nam=* | --program-transform-na=* \ | |
1103 | | --program-transform-n=* | --program-transform-=* \ | |
1104 | | --program-transform=* | --program-transfor=* \ | |
1105 | | --program-transfo=* | --program-transf=* \ | |
1106 | | --program-trans=* | --program-tran=* \ | |
1107 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
3a12e572 | 1108 | program_transform_name=$ac_optarg ;; |
cd6ede75 | 1109 | |
26f56c1c UD |
1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1111 | ac_prev=pdfdir ;; | |
1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1113 | pdfdir=$ac_optarg ;; | |
1114 | ||
1115 | -psdir | --psdir | --psdi | --psd | --ps) | |
1116 | ac_prev=psdir ;; | |
1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1118 | psdir=$ac_optarg ;; | |
1119 | ||
cd6ede75 UD |
1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1121 | | -silent | --silent | --silen | --sile | --sil) | |
1122 | silent=yes ;; | |
1123 | ||
c6cb8783 SP |
1124 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1125 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1126 | | --run | --ru | --r) | |
1127 | ac_prev=runstatedir ;; | |
1128 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1129 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1130 | | --run=* | --ru=* | --r=*) | |
1131 | runstatedir=$ac_optarg ;; | |
1132 | ||
cd6ede75 UD |
1133 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1134 | ac_prev=sbindir ;; | |
1135 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1136 | | --sbi=* | --sb=*) | |
3a12e572 | 1137 | sbindir=$ac_optarg ;; |
cd6ede75 UD |
1138 | |
1139 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1140 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1141 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1142 | | --sha | --sh) | |
1143 | ac_prev=sharedstatedir ;; | |
1144 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1145 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1146 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1147 | | --sha=* | --sh=*) | |
3a12e572 | 1148 | sharedstatedir=$ac_optarg ;; |
cd6ede75 UD |
1149 | |
1150 | -site | --site | --sit) | |
1151 | ac_prev=site ;; | |
1152 | -site=* | --site=* | --sit=*) | |
3a12e572 | 1153 | site=$ac_optarg ;; |
cd6ede75 UD |
1154 | |
1155 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1156 | ac_prev=srcdir ;; | |
1157 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
3a12e572 | 1158 | srcdir=$ac_optarg ;; |
cd6ede75 UD |
1159 | |
1160 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1161 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1162 | ac_prev=sysconfdir ;; | |
1163 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1164 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
3a12e572 | 1165 | sysconfdir=$ac_optarg ;; |
cd6ede75 UD |
1166 | |
1167 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
3a12e572 | 1168 | ac_prev=target_alias ;; |
cd6ede75 | 1169 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
3a12e572 | 1170 | target_alias=$ac_optarg ;; |
cd6ede75 UD |
1171 | |
1172 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1173 | verbose=yes ;; | |
1174 | ||
3a12e572 UD |
1175 | -version | --version | --versio | --versi | --vers | -V) |
1176 | ac_init_version=: ;; | |
cd6ede75 UD |
1177 | |
1178 | -with-* | --with-*) | |
322e23db | 1179 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
cd6ede75 | 1180 | # Reject names that are not valid shell variable names. |
322e23db | 1181 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1182 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
322e23db | 1183 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 1184 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
1185 | case $ac_user_opts in |
1186 | *" | |
1187 | "with_$ac_useropt" | |
1188 | "*) ;; | |
1189 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1190 | ac_unrecognized_sep=', ';; | |
1191 | esac | |
1192 | eval with_$ac_useropt=\$ac_optarg ;; | |
cd6ede75 UD |
1193 | |
1194 | -without-* | --without-*) | |
322e23db | 1195 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
cd6ede75 | 1196 | # Reject names that are not valid shell variable names. |
322e23db | 1197 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1198 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
322e23db | 1199 | ac_useropt_orig=$ac_useropt |
c6cb8783 | 1200 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
322e23db UD |
1201 | case $ac_user_opts in |
1202 | *" | |
1203 | "with_$ac_useropt" | |
1204 | "*) ;; | |
1205 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1206 | ac_unrecognized_sep=', ';; | |
1207 | esac | |
1208 | eval with_$ac_useropt=no ;; | |
cd6ede75 UD |
1209 | |
1210 | --x) | |
1211 | # Obsolete; use --with-x. | |
1212 | with_x=yes ;; | |
1213 | ||
1214 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1215 | | --x-incl | --x-inc | --x-in | --x-i) | |
1216 | ac_prev=x_includes ;; | |
1217 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1218 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
3a12e572 | 1219 | x_includes=$ac_optarg ;; |
cd6ede75 UD |
1220 | |
1221 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1222 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1223 | ac_prev=x_libraries ;; | |
1224 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1225 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
3a12e572 | 1226 | x_libraries=$ac_optarg ;; |
cd6ede75 | 1227 | |
4a531bb0 L |
1228 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1229 | Try \`$0 --help' for more information" | |
cd6ede75 UD |
1230 | ;; |
1231 | ||
3a12e572 UD |
1232 | *=*) |
1233 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1234 | # Reject names that are not valid shell variable names. | |
b08c89d9 UD |
1235 | case $ac_envvar in #( |
1236 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
4a531bb0 | 1237 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
b08c89d9 | 1238 | esac |
26f56c1c | 1239 | eval $ac_envvar=\$ac_optarg |
3a12e572 UD |
1240 | export $ac_envvar ;; |
1241 | ||
cd6ede75 | 1242 | *) |
3a12e572 | 1243 | # FIXME: should be removed in autoconf 3.0. |
c6cb8783 | 1244 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
3a12e572 | 1245 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
c6cb8783 | 1246 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
f318beb8 | 1247 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
cd6ede75 UD |
1248 | ;; |
1249 | ||
1250 | esac | |
1251 | done | |
1252 | ||
1253 | if test -n "$ac_prev"; then | |
3a12e572 | 1254 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
4a531bb0 | 1255 | as_fn_error $? "missing argument to $ac_option" |
cd6ede75 | 1256 | fi |
cd6ede75 | 1257 | |
322e23db UD |
1258 | if test -n "$ac_unrecognized_opts"; then |
1259 | case $enable_option_checking in | |
1260 | no) ;; | |
4a531bb0 | 1261 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
c6cb8783 | 1262 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
322e23db UD |
1263 | esac |
1264 | fi | |
1265 | ||
1266 | # Check all directory arguments for consistency. | |
26f56c1c UD |
1267 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1268 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1269 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
c6cb8783 | 1270 | libdir localedir mandir runstatedir |
cd6ede75 | 1271 | do |
26f56c1c | 1272 | eval ac_val=\$$ac_var |
322e23db UD |
1273 | # Remove trailing slashes. |
1274 | case $ac_val in | |
1275 | */ ) | |
1276 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1277 | eval $ac_var=\$ac_val;; | |
1278 | esac | |
1279 | # Be sure to have absolute directory names. | |
3a12e572 | 1280 | case $ac_val in |
26f56c1c UD |
1281 | [\\/$]* | ?:[\\/]* ) continue;; |
1282 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
cd6ede75 | 1283 | esac |
4a531bb0 | 1284 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
cd6ede75 UD |
1285 | done |
1286 | ||
3a12e572 UD |
1287 | # There might be people who depend on the old broken behavior: `$host' |
1288 | # used to hold the argument of --host etc. | |
1289 | # FIXME: To remove some day. | |
1290 | build=$build_alias | |
1291 | host=$host_alias | |
1292 | target=$target_alias | |
1293 | ||
1294 | # FIXME: To remove some day. | |
1295 | if test "x$host_alias" != x; then | |
1296 | if test "x$build_alias" = x; then | |
1297 | cross_compiling=maybe | |
3a12e572 UD |
1298 | elif test "x$build_alias" != "x$host_alias"; then |
1299 | cross_compiling=yes | |
1300 | fi | |
1301 | fi | |
cd6ede75 | 1302 | |
3a12e572 UD |
1303 | ac_tool_prefix= |
1304 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1305 | ||
1306 | test "$silent" = yes && exec 6>/dev/null | |
cd6ede75 | 1307 | |
cd6ede75 | 1308 | |
26f56c1c UD |
1309 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1310 | ac_ls_di=`ls -di .` && | |
1311 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
4a531bb0 | 1312 | as_fn_error $? "working directory cannot be determined" |
26f56c1c | 1313 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
4a531bb0 | 1314 | as_fn_error $? "pwd does not report name of working directory" |
26f56c1c UD |
1315 | |
1316 | ||
cd6ede75 UD |
1317 | # Find the source files, if location was not specified. |
1318 | if test -z "$srcdir"; then | |
1319 | ac_srcdir_defaulted=yes | |
26f56c1c | 1320 | # Try the directory containing this script, then the parent directory. |
322e23db UD |
1321 | ac_confdir=`$as_dirname -- "$as_myself" || |
1322 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1323 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1324 | X"$as_myself" : 'X\(//\)$' \| \ | |
1325 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
c6cb8783 | 1326 | printf "%s\n" X"$as_myself" | |
26f56c1c UD |
1327 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)[^/].*/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)$/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\).*/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | s/.*/./; q'` | |
cd6ede75 | 1344 | srcdir=$ac_confdir |
26f56c1c | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
cd6ede75 UD |
1346 | srcdir=.. |
1347 | fi | |
1348 | else | |
1349 | ac_srcdir_defaulted=no | |
1350 | fi | |
26f56c1c UD |
1351 | if test ! -r "$srcdir/$ac_unique_file"; then |
1352 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
4a531bb0 | 1353 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
cd6ede75 | 1354 | fi |
26f56c1c UD |
1355 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1356 | ac_abs_confdir=`( | |
4a531bb0 | 1357 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
26f56c1c UD |
1358 | pwd)` |
1359 | # When building in place, set srcdir=. | |
1360 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1361 | srcdir=. | |
1362 | fi | |
1363 | # Remove unnecessary trailing slashes from srcdir. | |
1364 | # Double slashes in file names in object file debugging info | |
1365 | # mess up M-x gdb in Emacs. | |
1366 | case $srcdir in | |
1367 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1368 | esac | |
1369 | for ac_var in $ac_precious_vars; do | |
1370 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1371 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1372 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1373 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1374 | done | |
3a12e572 UD |
1375 | |
1376 | # | |
1377 | # Report the --help message. | |
1378 | # | |
1379 | if test "$ac_init_help" = "long"; then | |
1380 | # Omit some internal or obsolete options to make the list less imposing. | |
1381 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1382 | cat <<_ACEOF | |
f4b07664 | 1383 | \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems. |
3a12e572 UD |
1384 | |
1385 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1386 | ||
1387 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1388 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1389 | ||
1390 | Defaults for the options are specified in brackets. | |
1391 | ||
1392 | Configuration: | |
1393 | -h, --help display this help and exit | |
1394 | --help=short display options specific to this package | |
1395 | --help=recursive display the short help of all the included packages | |
1396 | -V, --version display version information and exit | |
4a531bb0 | 1397 | -q, --quiet, --silent do not print \`checking ...' messages |
3a12e572 UD |
1398 | --cache-file=FILE cache test results in FILE [disabled] |
1399 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1400 | -n, --no-create do not create output files | |
1401 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1402 | ||
3a12e572 UD |
1403 | Installation directories: |
1404 | --prefix=PREFIX install architecture-independent files in PREFIX | |
322e23db | 1405 | [$ac_default_prefix] |
3a12e572 | 1406 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
322e23db | 1407 | [PREFIX] |
3a12e572 UD |
1408 | |
1409 | By default, \`make install' will install all the files in | |
1410 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1411 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1412 | for instance \`--prefix=\$HOME'. | |
1413 | ||
1414 | For better control, use the options below. | |
1415 | ||
1416 | Fine tuning of the installation directories: | |
322e23db UD |
1417 | --bindir=DIR user executables [EPREFIX/bin] |
1418 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1419 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1420 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1421 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1422 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
c6cb8783 | 1423 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
322e23db UD |
1424 | --libdir=DIR object code libraries [EPREFIX/lib] |
1425 | --includedir=DIR C header files [PREFIX/include] | |
1426 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1427 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1428 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1429 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1430 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1431 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
f318beb8 | 1432 | --docdir=DIR documentation root [DATAROOTDIR/doc/glibc] |
322e23db UD |
1433 | --htmldir=DIR html documentation [DOCDIR] |
1434 | --dvidir=DIR dvi documentation [DOCDIR] | |
1435 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1436 | --psdir=DIR ps documentation [DOCDIR] | |
3a12e572 UD |
1437 | _ACEOF |
1438 | ||
1439 | cat <<\_ACEOF | |
1440 | ||
1441 | System types: | |
1442 | --build=BUILD configure for building on BUILD [guessed] | |
1443 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1444 | _ACEOF | |
1445 | fi | |
cd6ede75 | 1446 | |
3a12e572 | 1447 | if test -n "$ac_init_help"; then |
f4b07664 RM |
1448 | case $ac_init_help in |
1449 | short | recursive ) echo "Configuration of GNU C Library (see version.h):";; | |
1450 | esac | |
3a12e572 UD |
1451 | cat <<\_ACEOF |
1452 | ||
1453 | Optional Features: | |
322e23db | 1454 | --disable-option-checking ignore unrecognized --enable/--with options |
3a12e572 UD |
1455 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1456 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6b7f6183 RM |
1457 | --disable-sanity-checks really do not use threads (should not be used except |
1458 | in special situations) [default=yes] | |
a0da5fe1 | 1459 | --enable-shared build shared library [default=yes if GNU ld] |
11bf311e | 1460 | --enable-profile build profiled library [default=no] |
23645707 SP |
1461 | --disable-default-pie Do not build glibc programs and the testsuite as PIE |
1462 | [default=no] | |
1cba4036 | 1463 | --disable-timezone-tools |
44f826e3 | 1464 | do not install timezone tools [default=install] |
740b3dbe L |
1465 | --enable-hardcoded-path-in-tests |
1466 | hardcode newly built glibc path in tests | |
1467 | [default=no] | |
3a12e572 | 1468 | --disable-hidden-plt do not hide internal function calls to avoid PLT |
4df8c11d | 1469 | --enable-bind-now disable lazy relocations in DSOs |
03baef1c NA |
1470 | --enable-stack-protector=[yes|no|all|strong] |
1471 | Use -fstack-protector[-all|-strong] to detect glibc | |
1472 | buffer overflows | |
6b7f6183 | 1473 | --enable-static-nss build static NSS modules [default=no] |
3a12e572 | 1474 | --disable-force-install don't force installation of files from this package, |
6b7f6183 | 1475 | even if they are older than the installed files |
8894bad3 AM |
1476 | --enable-maintainer-mode |
1477 | enable make rules and dependencies not useful (and | |
1478 | sometimes confusing) to the casual installer | |
6b7f6183 RM |
1479 | --enable-kernel=VERSION compile for compatibility with kernel not older than |
1480 | VERSION | |
3a12e572 | 1481 | --enable-all-warnings enable all useful warnings gcc can issue |
a4ecc9eb | 1482 | --disable-werror do not build with -Werror |
425ce2ed UD |
1483 | --enable-multi-arch enable single DSO with optimizations for multiple |
1484 | architectures | |
33784089 RE |
1485 | --enable-memory-tagging enable memory tagging if supported by the |
1486 | architecture [default=no] | |
6c85c5a1 | 1487 | --enable-crypt build and install the legacy passphrase hashing |
e69d994a | 1488 | library, libcrypt |
ff886b82 | 1489 | --enable-nss-crypt enable libcrypt to use nss |
3a097cc7 | 1490 | --enable-systemtap enable systemtap static probe points [default=no] |
c53d909c | 1491 | --disable-build-nscd disable building and installing the nscd daemon |
3cc3ef96 | 1492 | --disable-nscd library functions will not contact the nscd daemon |
e4608715 | 1493 | --enable-pt_chown Enable building and installing pt_chown |
5695d46f AS |
1494 | --enable-mathvec Enable building and installing mathvec [default |
1495 | depends on architecture] | |
f753fa7d L |
1496 | --enable-cet enable Intel Control-flow Enforcement Technology |
1497 | (CET), x86 only | |
ebae2f5a MC |
1498 | --disable-scv syscalls will not use scv instruction, even if the |
1499 | kernel supports it, powerpc only | |
64d9580c FB |
1500 | --enable-fortify-source[=1|2|3] |
1501 | Use -D_FORTIFY_SOURCE=[1|2|3] to control code | |
1502 | hardening, defaults to highest possible value | |
1503 | supported by the build compiler. | |
3a12e572 UD |
1504 | |
1505 | Optional Packages: | |
1506 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1507 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
8b748aed JM |
1508 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc" |
1509 | --with-bugurl=URL Direct users to URL to report a bug | |
3a12e572 UD |
1510 | --with-gd=DIR find libgd include dir and library with prefix DIR |
1511 | --with-gd-include=DIR find libgd include files in DIR | |
1512 | --with-gd-lib=DIR find libgd library files in DIR | |
6b7f6183 | 1513 | --with-binutils=PATH specify location of binutils (as and ld) |
74a30a58 | 1514 | --with-selinux if building with SELinux support |
6b7f6183 | 1515 | --with-headers=PATH location of system headers to use (for example |
26f56c1c | 1516 | /usr/src/linux/include) [default=compiler default] |
6413fcde FW |
1517 | --with-nonshared-cflags=CFLAGS |
1518 | build nonshared libraries with additional CFLAGS | |
9ba202c7 FW |
1519 | --with-rtld-early-cflags=CFLAGS |
1520 | build early initialization with additional CFLAGS | |
bada2e31 L |
1521 | --with-timeoutfactor=NUM |
1522 | specify an integer to scale the timeout | |
2ceaa76a | 1523 | --with-cpu=CPU select code for CPU variant |
3a12e572 UD |
1524 | |
1525 | Some influential environment variables: | |
1526 | CC C compiler command | |
1527 | CFLAGS C compiler flags | |
1528 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1529 | nonstandard directory <lib dir> | |
26f56c1c | 1530 | LIBS libraries to pass to the linker, e.g. -l<library> |
b08c89d9 | 1531 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
26f56c1c | 1532 | you have headers in a nonstandard directory <include dir> |
3a12e572 | 1533 | CPP C preprocessor |
925c3c5c UD |
1534 | CXX C++ compiler command |
1535 | CXXFLAGS C++ compiler flags | |
3a12e572 UD |
1536 | |
1537 | Use these variables to override the choices made by `configure' or to help | |
1538 | it to find libraries and programs with nonstandard names/locations. | |
1539 | ||
a306c790 | 1540 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 1541 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
c6cb8783 | 1542 | General help using GNU software: <https://www.gnu.org/gethelp/>. |
3a12e572 | 1543 | _ACEOF |
26f56c1c | 1544 | ac_status=$? |
3a12e572 UD |
1545 | fi |
1546 | ||
1547 | if test "$ac_init_help" = "recursive"; then | |
1548 | # If there are subdirs, report their specific --help. | |
3a12e572 | 1549 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
322e23db UD |
1550 | test -d "$ac_dir" || |
1551 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1552 | continue | |
3a12e572 UD |
1553 | ac_builddir=. |
1554 | ||
26f56c1c UD |
1555 | case "$ac_dir" in |
1556 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1557 | *) | |
c6cb8783 | 1558 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 1559 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 1560 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
1561 | case $ac_top_builddir_sub in |
1562 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1563 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1564 | esac ;; | |
1565 | esac | |
1566 | ac_abs_top_builddir=$ac_pwd | |
1567 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1568 | # for backward compatibility: | |
1569 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
1570 | |
1571 | case $srcdir in | |
26f56c1c | 1572 | .) # We are building in place. |
3a12e572 | 1573 | ac_srcdir=. |
26f56c1c UD |
1574 | ac_top_srcdir=$ac_top_builddir_sub |
1575 | ac_abs_top_srcdir=$ac_pwd ;; | |
1576 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 1577 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
1578 | ac_top_srcdir=$srcdir |
1579 | ac_abs_top_srcdir=$srcdir ;; | |
1580 | *) # Relative name. | |
1581 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1582 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1583 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 1584 | esac |
26f56c1c UD |
1585 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1586 | ||
1587 | cd "$ac_dir" || { ac_status=$?; continue; } | |
c6cb8783 SP |
1588 | # Check for configure.gnu first; this name is used for a wrapper for |
1589 | # Metaconfig's "Configure" on case-insensitive file systems. | |
26f56c1c UD |
1590 | if test -f "$ac_srcdir/configure.gnu"; then |
1591 | echo && | |
1592 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1593 | elif test -f "$ac_srcdir/configure"; then | |
1594 | echo && | |
1595 | $SHELL "$ac_srcdir/configure" --help=recursive | |
3a12e572 | 1596 | else |
c6cb8783 | 1597 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
26f56c1c UD |
1598 | fi || ac_status=$? |
1599 | cd "$ac_pwd" || { ac_status=$?; break; } | |
3a12e572 UD |
1600 | done |
1601 | fi | |
1602 | ||
26f56c1c | 1603 | test -n "$ac_init_help" && exit $ac_status |
3a12e572 UD |
1604 | if $ac_init_version; then |
1605 | cat <<\_ACEOF | |
f4b07664 | 1606 | GNU C Library configure (see version.h) |
c6cb8783 | 1607 | generated by GNU Autoconf 2.71 |
3a12e572 | 1608 | |
c6cb8783 | 1609 | Copyright (C) 2021 Free Software Foundation, Inc. |
3a12e572 UD |
1610 | This configure script is free software; the Free Software Foundation |
1611 | gives unlimited permission to copy, distribute and modify it. | |
1612 | _ACEOF | |
26f56c1c | 1613 | exit |
3a12e572 | 1614 | fi |
3a12e572 | 1615 | |
b08c89d9 UD |
1616 | ## ------------------------ ## |
1617 | ## Autoconf initialization. ## | |
1618 | ## ------------------------ ## | |
3a12e572 | 1619 | |
b08c89d9 UD |
1620 | # ac_fn_c_try_compile LINENO |
1621 | # -------------------------- | |
1622 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1623 | ac_fn_c_try_compile () | |
3a12e572 | 1624 | { |
b08c89d9 | 1625 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
c6cb8783 | 1626 | rm -f conftest.$ac_objext conftest.beam |
b08c89d9 UD |
1627 | if { { ac_try="$ac_compile" |
1628 | case "(($ac_try" in | |
1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1630 | *) ac_try_echo=$ac_try;; | |
1631 | esac | |
1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1633 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
1634 | (eval "$ac_compile") 2>conftest.err |
1635 | ac_status=$? | |
1636 | if test -s conftest.err; then | |
1637 | grep -v '^ *+' conftest.err >conftest.er1 | |
1638 | cat conftest.er1 >&5 | |
1639 | mv -f conftest.er1 conftest.err | |
1640 | fi | |
c6cb8783 | 1641 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1642 | test $ac_status = 0; } && { |
1643 | test -z "$ac_c_werror_flag" || | |
1644 | test ! -s conftest.err | |
c6cb8783 SP |
1645 | } && test -s conftest.$ac_objext |
1646 | then : | |
b08c89d9 | 1647 | ac_retval=0 |
c6cb8783 SP |
1648 | else $as_nop |
1649 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 | 1650 | sed 's/^/| /' conftest.$ac_ext >&5 |
3a12e572 | 1651 | |
b08c89d9 UD |
1652 | ac_retval=1 |
1653 | fi | |
f318beb8 | 1654 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 | 1655 | as_fn_set_status $ac_retval |
3a12e572 | 1656 | |
b08c89d9 | 1657 | } # ac_fn_c_try_compile |
3a12e572 | 1658 | |
b08c89d9 UD |
1659 | # ac_fn_cxx_try_compile LINENO |
1660 | # ---------------------------- | |
1661 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1662 | ac_fn_cxx_try_compile () | |
1663 | { | |
1664 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 1665 | rm -f conftest.$ac_objext conftest.beam |
b08c89d9 UD |
1666 | if { { ac_try="$ac_compile" |
1667 | case "(($ac_try" in | |
1668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1669 | *) ac_try_echo=$ac_try;; | |
1670 | esac | |
1671 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1672 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
1673 | (eval "$ac_compile") 2>conftest.err |
1674 | ac_status=$? | |
1675 | if test -s conftest.err; then | |
1676 | grep -v '^ *+' conftest.err >conftest.er1 | |
1677 | cat conftest.er1 >&5 | |
1678 | mv -f conftest.er1 conftest.err | |
1679 | fi | |
c6cb8783 | 1680 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1681 | test $ac_status = 0; } && { |
1682 | test -z "$ac_cxx_werror_flag" || | |
1683 | test ! -s conftest.err | |
c6cb8783 SP |
1684 | } && test -s conftest.$ac_objext |
1685 | then : | |
b08c89d9 | 1686 | ac_retval=0 |
c6cb8783 SP |
1687 | else $as_nop |
1688 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 UD |
1689 | sed 's/^/| /' conftest.$ac_ext >&5 |
1690 | ||
1691 | ac_retval=1 | |
1692 | fi | |
f318beb8 | 1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1694 | as_fn_set_status $ac_retval |
1695 | ||
1696 | } # ac_fn_cxx_try_compile | |
1697 | ||
e4693aa7 RM |
1698 | # ac_fn_cxx_try_link LINENO |
1699 | # ------------------------- | |
1700 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1701 | ac_fn_cxx_try_link () | |
1702 | { | |
1703 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 1704 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
e4693aa7 RM |
1705 | if { { ac_try="$ac_link" |
1706 | case "(($ac_try" in | |
1707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1708 | *) ac_try_echo=$ac_try;; | |
1709 | esac | |
1710 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1711 | printf "%s\n" "$ac_try_echo"; } >&5 |
e4693aa7 RM |
1712 | (eval "$ac_link") 2>conftest.err |
1713 | ac_status=$? | |
1714 | if test -s conftest.err; then | |
1715 | grep -v '^ *+' conftest.err >conftest.er1 | |
1716 | cat conftest.er1 >&5 | |
1717 | mv -f conftest.er1 conftest.err | |
1718 | fi | |
c6cb8783 | 1719 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
e4693aa7 RM |
1720 | test $ac_status = 0; } && { |
1721 | test -z "$ac_cxx_werror_flag" || | |
1722 | test ! -s conftest.err | |
1723 | } && test -s conftest$ac_exeext && { | |
1724 | test "$cross_compiling" = yes || | |
1725 | test -x conftest$ac_exeext | |
c6cb8783 SP |
1726 | } |
1727 | then : | |
e4693aa7 | 1728 | ac_retval=0 |
c6cb8783 SP |
1729 | else $as_nop |
1730 | printf "%s\n" "$as_me: failed program was:" >&5 | |
e4693aa7 RM |
1731 | sed 's/^/| /' conftest.$ac_ext >&5 |
1732 | ||
1733 | ac_retval=1 | |
1734 | fi | |
1735 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1736 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1737 | # interfere with the next link command; also delete a directory that is | |
1738 | # left behind by Apple's compiler. We do this before executing the actions. | |
1739 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1740 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1741 | as_fn_set_status $ac_retval | |
1742 | ||
1743 | } # ac_fn_cxx_try_link | |
1744 | ||
b08c89d9 UD |
1745 | # ac_fn_c_try_link LINENO |
1746 | # ----------------------- | |
1747 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1748 | ac_fn_c_try_link () | |
1749 | { | |
1750 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 1751 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
b08c89d9 UD |
1752 | if { { ac_try="$ac_link" |
1753 | case "(($ac_try" in | |
1754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1755 | *) ac_try_echo=$ac_try;; | |
1756 | esac | |
1757 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1758 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 UD |
1759 | (eval "$ac_link") 2>conftest.err |
1760 | ac_status=$? | |
1761 | if test -s conftest.err; then | |
1762 | grep -v '^ *+' conftest.err >conftest.er1 | |
1763 | cat conftest.er1 >&5 | |
1764 | mv -f conftest.er1 conftest.err | |
1765 | fi | |
c6cb8783 | 1766 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
1767 | test $ac_status = 0; } && { |
1768 | test -z "$ac_c_werror_flag" || | |
1769 | test ! -s conftest.err | |
1770 | } && test -s conftest$ac_exeext && { | |
1771 | test "$cross_compiling" = yes || | |
f4a58f0d | 1772 | test -x conftest$ac_exeext |
c6cb8783 SP |
1773 | } |
1774 | then : | |
b08c89d9 | 1775 | ac_retval=0 |
c6cb8783 SP |
1776 | else $as_nop |
1777 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b08c89d9 UD |
1778 | sed 's/^/| /' conftest.$ac_ext >&5 |
1779 | ||
1780 | ac_retval=1 | |
1781 | fi | |
1782 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1783 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1784 | # interfere with the next link command; also delete a directory that is | |
1785 | # left behind by Apple's compiler. We do this before executing the actions. | |
1786 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
f318beb8 | 1787 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
b08c89d9 UD |
1788 | as_fn_set_status $ac_retval |
1789 | ||
1790 | } # ac_fn_c_try_link | |
b190bccc NT |
1791 | |
1792 | # ac_fn_c_try_cpp LINENO | |
1793 | # ---------------------- | |
1794 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1795 | ac_fn_c_try_cpp () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1799 | case "(($ac_try" in | |
1800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1801 | *) ac_try_echo=$ac_try;; | |
1802 | esac | |
1803 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
c6cb8783 | 1804 | printf "%s\n" "$ac_try_echo"; } >&5 |
b190bccc NT |
1805 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1806 | ac_status=$? | |
1807 | if test -s conftest.err; then | |
1808 | grep -v '^ *+' conftest.err >conftest.er1 | |
1809 | cat conftest.er1 >&5 | |
1810 | mv -f conftest.er1 conftest.err | |
1811 | fi | |
c6cb8783 | 1812 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b190bccc NT |
1813 | test $ac_status = 0; } > conftest.i && { |
1814 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1815 | test ! -s conftest.err | |
c6cb8783 SP |
1816 | } |
1817 | then : | |
b190bccc | 1818 | ac_retval=0 |
c6cb8783 SP |
1819 | else $as_nop |
1820 | printf "%s\n" "$as_me: failed program was:" >&5 | |
b190bccc NT |
1821 | sed 's/^/| /' conftest.$ac_ext >&5 |
1822 | ||
1823 | ac_retval=1 | |
1824 | fi | |
1825 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1826 | as_fn_set_status $ac_retval | |
1827 | ||
1828 | } # ac_fn_c_try_cpp | |
c6cb8783 SP |
1829 | ac_configure_args_raw= |
1830 | for ac_arg | |
1831 | do | |
1832 | case $ac_arg in | |
1833 | *\'*) | |
1834 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1835 | esac | |
1836 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
1837 | done | |
1838 | ||
1839 | case $ac_configure_args_raw in | |
1840 | *$as_nl*) | |
1841 | ac_safe_unquote= ;; | |
1842 | *) | |
1843 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
1844 | ac_unsafe_a="$ac_unsafe_z#~" | |
1845 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
1846 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
1847 | esac | |
1848 | ||
b08c89d9 UD |
1849 | cat >config.log <<_ACEOF |
1850 | This file contains any messages produced by compilers while | |
1851 | running configure, to aid debugging if configure makes a mistake. | |
1852 | ||
1853 | It was created by GNU C Library $as_me (see version.h), which was | |
c6cb8783 | 1854 | generated by GNU Autoconf 2.71. Invocation command line was |
b08c89d9 | 1855 | |
c6cb8783 | 1856 | $ $0$ac_configure_args_raw |
b08c89d9 UD |
1857 | |
1858 | _ACEOF | |
1859 | exec 5>>config.log | |
1860 | { | |
1861 | cat <<_ASUNAME | |
1862 | ## --------- ## | |
1863 | ## Platform. ## | |
1864 | ## --------- ## | |
1865 | ||
1866 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1867 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1868 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1869 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1870 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1871 | ||
1872 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1873 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1874 | ||
1875 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1876 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1877 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1878 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1879 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1880 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1881 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1882 | ||
1883 | _ASUNAME | |
3a12e572 UD |
1884 | |
1885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1886 | for as_dir in $PATH | |
1887 | do | |
1888 | IFS=$as_save_IFS | |
c6cb8783 SP |
1889 | case $as_dir in #((( |
1890 | '') as_dir=./ ;; | |
1891 | */) ;; | |
1892 | *) as_dir=$as_dir/ ;; | |
1893 | esac | |
1894 | printf "%s\n" "PATH: $as_dir" | |
b08c89d9 | 1895 | done |
26f56c1c | 1896 | IFS=$as_save_IFS |
3a12e572 UD |
1897 | |
1898 | } >&5 | |
1899 | ||
1900 | cat >&5 <<_ACEOF | |
1901 | ||
1902 | ||
1903 | ## ----------- ## | |
1904 | ## Core tests. ## | |
1905 | ## ----------- ## | |
1906 | ||
1907 | _ACEOF | |
1908 | ||
1909 | ||
1910 | # Keep a trace of the command line. | |
1911 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2abf9ff1 | 1912 | # Strip out --silent because we don't want to record it for future runs. |
3a12e572 | 1913 | # Also quote any args containing shell meta-characters. |
2abf9ff1 | 1914 | # Make two passes to allow for proper duplicate-argument suppression. |
3a12e572 | 1915 | ac_configure_args= |
2abf9ff1 RM |
1916 | ac_configure_args0= |
1917 | ac_configure_args1= | |
2abf9ff1 RM |
1918 | ac_must_keep_next=false |
1919 | for ac_pass in 1 2 | |
3a12e572 | 1920 | do |
2abf9ff1 RM |
1921 | for ac_arg |
1922 | do | |
1923 | case $ac_arg in | |
1924 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1925 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1926 | | -silent | --silent | --silen | --sile | --sil) | |
1927 | continue ;; | |
26f56c1c | 1928 | *\'*) |
c6cb8783 | 1929 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
2abf9ff1 RM |
1930 | esac |
1931 | case $ac_pass in | |
b08c89d9 | 1932 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
2abf9ff1 | 1933 | 2) |
b08c89d9 | 1934 | as_fn_append ac_configure_args1 " '$ac_arg'" |
2abf9ff1 | 1935 | if test $ac_must_keep_next = true; then |
9382fcee | 1936 | ac_must_keep_next=false # Got value, back to normal. |
2abf9ff1 | 1937 | else |
9382fcee RM |
1938 | case $ac_arg in |
1939 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1940 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1941 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1942 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1943 | case "$ac_configure_args0 " in | |
1944 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1945 | esac | |
1946 | ;; | |
1947 | -* ) ac_must_keep_next=true ;; | |
1948 | esac | |
2abf9ff1 | 1949 | fi |
b08c89d9 | 1950 | as_fn_append ac_configure_args " '$ac_arg'" |
2abf9ff1 RM |
1951 | ;; |
1952 | esac | |
1953 | done | |
3a12e572 | 1954 | done |
b08c89d9 UD |
1955 | { ac_configure_args0=; unset ac_configure_args0;} |
1956 | { ac_configure_args1=; unset ac_configure_args1;} | |
3a12e572 UD |
1957 | |
1958 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1959 | # config.log. We remove comments because anyway the quotes in there | |
1960 | # would cause problems or look ugly. | |
26f56c1c UD |
1961 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1962 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3a12e572 | 1963 | trap 'exit_status=$? |
c6cb8783 SP |
1964 | # Sanitize IFS. |
1965 | IFS=" "" $as_nl" | |
3a12e572 UD |
1966 | # Save into config.log some information that might help in debugging. |
1967 | { | |
1968 | echo | |
f4b07664 | 1969 | |
c6cb8783 | 1970 | printf "%s\n" "## ---------------- ## |
3a12e572 | 1971 | ## Cache variables. ## |
4a531bb0 | 1972 | ## ---------------- ##" |
3a12e572 UD |
1973 | echo |
1974 | # The following way of writing the cache mishandles newlines in values, | |
26f56c1c UD |
1975 | ( |
1976 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1977 | eval ac_val=\$$ac_var | |
1978 | case $ac_val in #( | |
1979 | *${as_nl}*) | |
1980 | case $ac_var in #( | |
c6cb8783 SP |
1981 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1982 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26f56c1c UD |
1983 | esac |
1984 | case $ac_var in #( | |
1985 | _ | IFS | as_nl) ;; #( | |
322e23db | 1986 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 1987 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
1988 | esac ;; |
1989 | esac | |
1990 | done | |
3a12e572 | 1991 | (set) 2>&1 | |
26f56c1c UD |
1992 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1993 | *${as_nl}ac_space=\ *) | |
3a12e572 | 1994 | sed -n \ |
26f56c1c UD |
1995 | "s/'\''/'\''\\\\'\'''\''/g; |
1996 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1997 | ;; #( | |
3a12e572 | 1998 | *) |
26f56c1c | 1999 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 2000 | ;; |
26f56c1c UD |
2001 | esac | |
2002 | sort | |
2003 | ) | |
3a12e572 | 2004 | echo |
f4b07664 | 2005 | |
c6cb8783 | 2006 | printf "%s\n" "## ----------------- ## |
f4b07664 | 2007 | ## Output variables. ## |
4a531bb0 | 2008 | ## ----------------- ##" |
f4b07664 RM |
2009 | echo |
2010 | for ac_var in $ac_subst_vars | |
2011 | do | |
26f56c1c UD |
2012 | eval ac_val=\$$ac_var |
2013 | case $ac_val in | |
c6cb8783 | 2014 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2015 | esac |
c6cb8783 | 2016 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2017 | done | sort |
2018 | echo | |
2019 | ||
2020 | if test -n "$ac_subst_files"; then | |
c6cb8783 | 2021 | printf "%s\n" "## ------------------- ## |
26f56c1c | 2022 | ## File substitutions. ## |
4a531bb0 | 2023 | ## ------------------- ##" |
f4b07664 RM |
2024 | echo |
2025 | for ac_var in $ac_subst_files | |
2026 | do | |
26f56c1c UD |
2027 | eval ac_val=\$$ac_var |
2028 | case $ac_val in | |
c6cb8783 | 2029 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
26f56c1c | 2030 | esac |
c6cb8783 | 2031 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
f4b07664 RM |
2032 | done | sort |
2033 | echo | |
2034 | fi | |
2035 | ||
3a12e572 | 2036 | if test -s confdefs.h; then |
c6cb8783 | 2037 | printf "%s\n" "## ----------- ## |
3a12e572 | 2038 | ## confdefs.h. ## |
4a531bb0 | 2039 | ## ----------- ##" |
3a12e572 | 2040 | echo |
26f56c1c | 2041 | cat confdefs.h |
3a12e572 UD |
2042 | echo |
2043 | fi | |
2044 | test "$ac_signal" != 0 && | |
c6cb8783 SP |
2045 | printf "%s\n" "$as_me: caught signal $ac_signal" |
2046 | printf "%s\n" "$as_me: exit $exit_status" | |
3a12e572 | 2047 | } >&5 |
26f56c1c UD |
2048 | rm -f core *.core core.conftest.* && |
2049 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3a12e572 | 2050 | exit $exit_status |
26f56c1c | 2051 | ' 0 |
3a12e572 | 2052 | for ac_signal in 1 2 13 15; do |
b08c89d9 | 2053 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
3a12e572 UD |
2054 | done |
2055 | ac_signal=0 | |
2056 | ||
2057 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
26f56c1c | 2058 | rm -f -r conftest* confdefs.h |
3a12e572 | 2059 | |
c6cb8783 | 2060 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
b08c89d9 | 2061 | |
3a12e572 UD |
2062 | # Predefined preprocessor variables. |
2063 | ||
c6cb8783 | 2064 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
3a12e572 | 2065 | |
c6cb8783 | 2066 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
3a12e572 | 2067 | |
c6cb8783 | 2068 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
3a12e572 | 2069 | |
c6cb8783 | 2070 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
3a12e572 | 2071 | |
c6cb8783 | 2072 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
3a12e572 | 2073 | |
c6cb8783 | 2074 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
b08c89d9 | 2075 | |
3a12e572 UD |
2076 | |
2077 | # Let the site file select an alternate cache file if it wants to. | |
322e23db | 2078 | # Prefer an explicitly selected file to automatically selected ones. |
26f56c1c | 2079 | if test -n "$CONFIG_SITE"; then |
c6cb8783 | 2080 | ac_site_files="$CONFIG_SITE" |
26f56c1c | 2081 | elif test "x$prefix" != xNONE; then |
c6cb8783 | 2082 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
26f56c1c | 2083 | else |
c6cb8783 | 2084 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
cd6ede75 | 2085 | fi |
c6cb8783 SP |
2086 | |
2087 | for ac_site_file in $ac_site_files | |
26f56c1c | 2088 | do |
c6cb8783 SP |
2089 | case $ac_site_file in #( |
2090 | */*) : | |
2091 | ;; #( | |
2092 | *) : | |
2093 | ac_site_file=./$ac_site_file ;; | |
2094 | esac | |
2095 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2097 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
3a12e572 | 2098 | sed 's/^/| /' "$ac_site_file" >&5 |
4a531bb0 | 2099 | . "$ac_site_file" \ |
c6cb8783 SP |
2100 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2101 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4a531bb0 L |
2102 | as_fn_error $? "failed to load site script $ac_site_file |
2103 | See \`config.log' for more details" "$LINENO" 5; } | |
cd6ede75 UD |
2104 | fi |
2105 | done | |
2106 | ||
2107 | if test -r "$cache_file"; then | |
b08c89d9 UD |
2108 | # Some versions of bash will fail to source /dev/null (special files |
2109 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2110 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
c6cb8783 SP |
2111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2112 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
3a12e572 | 2113 | case $cache_file in |
26f56c1c UD |
2114 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2115 | *) . "./$cache_file";; | |
3a12e572 UD |
2116 | esac |
2117 | fi | |
cd6ede75 | 2118 | else |
c6cb8783 SP |
2119 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2120 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
3a12e572 UD |
2121 | >$cache_file |
2122 | fi | |
2123 | ||
c6cb8783 SP |
2124 | # Test code for whether the C compiler supports C89 (global declarations) |
2125 | ac_c_conftest_c89_globals=' | |
2126 | /* Does the compiler advertise C89 conformance? | |
2127 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2128 | while being otherwise adequately conformant. */ | |
2129 | #if !defined __STDC__ | |
2130 | # error "Compiler does not advertise C89 conformance" | |
2131 | #endif | |
2132 | ||
2133 | #include <stddef.h> | |
2134 | #include <stdarg.h> | |
2135 | struct stat; | |
2136 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2137 | struct buf { int x; }; | |
2138 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2139 | static char *e (p, i) | |
2140 | char **p; | |
2141 | int i; | |
2142 | { | |
2143 | return p[i]; | |
2144 | } | |
2145 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2146 | { | |
2147 | char *s; | |
2148 | va_list v; | |
2149 | va_start (v,p); | |
2150 | s = g (p, va_arg (v,int)); | |
2151 | va_end (v); | |
2152 | return s; | |
2153 | } | |
2154 | ||
2155 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2156 | function prototypes and stuff, but not \xHH hex character constants. | |
2157 | These do not provoke an error unfortunately, instead are silently treated | |
2158 | as an "x". The following induces an error, until -std is added to get | |
2159 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2160 | array size at least. It is necessary to write \x00 == 0 to get something | |
2161 | that is true only with -std. */ | |
2162 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2163 | ||
2164 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2165 | inside strings and character constants. */ | |
2166 | #define FOO(x) '\''x'\'' | |
2167 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2168 | ||
2169 | int test (int i, double x); | |
2170 | struct s1 {int (*f) (int a);}; | |
2171 | struct s2 {int (*f) (double a);}; | |
2172 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2173 | int, int);' | |
2174 | ||
2175 | # Test code for whether the C compiler supports C89 (body of main). | |
2176 | ac_c_conftest_c89_main=' | |
2177 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2178 | ' | |
2179 | ||
2180 | # Test code for whether the C compiler supports C99 (global declarations) | |
2181 | ac_c_conftest_c99_globals=' | |
2182 | // Does the compiler advertise C99 conformance? | |
2183 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2184 | # error "Compiler does not advertise C99 conformance" | |
2185 | #endif | |
2186 | ||
2187 | #include <stdbool.h> | |
2188 | extern int puts (const char *); | |
2189 | extern int printf (const char *, ...); | |
2190 | extern int dprintf (int, const char *, ...); | |
2191 | extern void *malloc (size_t); | |
2192 | ||
2193 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2194 | // dprintf is used instead of fprintf to avoid needing to declare | |
2195 | // FILE and stderr. | |
2196 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2197 | #define showlist(...) puts (#__VA_ARGS__) | |
2198 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2199 | static void | |
2200 | test_varargs_macros (void) | |
2201 | { | |
2202 | int x = 1234; | |
2203 | int y = 5678; | |
2204 | debug ("Flag"); | |
2205 | debug ("X = %d\n", x); | |
2206 | showlist (The first, second, and third items.); | |
2207 | report (x>y, "x is %d but y is %d", x, y); | |
2208 | } | |
2209 | ||
2210 | // Check long long types. | |
2211 | #define BIG64 18446744073709551615ull | |
2212 | #define BIG32 4294967295ul | |
2213 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2214 | #if !BIG_OK | |
2215 | #error "your preprocessor is broken" | |
2216 | #endif | |
2217 | #if BIG_OK | |
2218 | #else | |
2219 | #error "your preprocessor is broken" | |
2220 | #endif | |
2221 | static long long int bignum = -9223372036854775807LL; | |
2222 | static unsigned long long int ubignum = BIG64; | |
2223 | ||
2224 | struct incomplete_array | |
2225 | { | |
2226 | int datasize; | |
2227 | double data[]; | |
2228 | }; | |
2229 | ||
2230 | struct named_init { | |
2231 | int number; | |
2232 | const wchar_t *name; | |
2233 | double average; | |
2234 | }; | |
2235 | ||
2236 | typedef const char *ccp; | |
2237 | ||
2238 | static inline int | |
2239 | test_restrict (ccp restrict text) | |
2240 | { | |
2241 | // See if C++-style comments work. | |
2242 | // Iterate through items via the restricted pointer. | |
2243 | // Also check for declarations in for loops. | |
2244 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
2245 | continue; | |
2246 | return 0; | |
2247 | } | |
2248 | ||
2249 | // Check varargs and va_copy. | |
2250 | static bool | |
2251 | test_varargs (const char *format, ...) | |
2252 | { | |
2253 | va_list args; | |
2254 | va_start (args, format); | |
2255 | va_list args_copy; | |
2256 | va_copy (args_copy, args); | |
2257 | ||
2258 | const char *str = ""; | |
2259 | int number = 0; | |
2260 | float fnumber = 0; | |
2261 | ||
2262 | while (*format) | |
2263 | { | |
2264 | switch (*format++) | |
2265 | { | |
2266 | case '\''s'\'': // string | |
2267 | str = va_arg (args_copy, const char *); | |
2268 | break; | |
2269 | case '\''d'\'': // int | |
2270 | number = va_arg (args_copy, int); | |
2271 | break; | |
2272 | case '\''f'\'': // float | |
2273 | fnumber = va_arg (args_copy, double); | |
2274 | break; | |
2275 | default: | |
2276 | break; | |
2277 | } | |
2278 | } | |
2279 | va_end (args_copy); | |
2280 | va_end (args); | |
2281 | ||
2282 | return *str && number && fnumber; | |
2283 | } | |
2284 | ' | |
2285 | ||
2286 | # Test code for whether the C compiler supports C99 (body of main). | |
2287 | ac_c_conftest_c99_main=' | |
2288 | // Check bool. | |
2289 | _Bool success = false; | |
2290 | success |= (argc != 0); | |
2291 | ||
2292 | // Check restrict. | |
2293 | if (test_restrict ("String literal") == 0) | |
2294 | success = true; | |
2295 | char *restrict newvar = "Another string"; | |
2296 | ||
2297 | // Check varargs. | |
2298 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
2299 | test_varargs_macros (); | |
2300 | ||
2301 | // Check flexible array members. | |
2302 | struct incomplete_array *ia = | |
2303 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
2304 | ia->datasize = 10; | |
2305 | for (int i = 0; i < ia->datasize; ++i) | |
2306 | ia->data[i] = i * 1.234; | |
2307 | ||
2308 | // Check named initializers. | |
2309 | struct named_init ni = { | |
2310 | .number = 34, | |
2311 | .name = L"Test wide string", | |
2312 | .average = 543.34343, | |
2313 | }; | |
2314 | ||
2315 | ni.number = 58; | |
2316 | ||
2317 | int dynamic_array[ni.number]; | |
2318 | dynamic_array[0] = argv[0][0]; | |
2319 | dynamic_array[ni.number - 1] = 543; | |
2320 | ||
2321 | // work around unused variable warnings | |
2322 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
2323 | || dynamic_array[ni.number - 1] != 543); | |
2324 | ' | |
2325 | ||
2326 | # Test code for whether the C compiler supports C11 (global declarations) | |
2327 | ac_c_conftest_c11_globals=' | |
2328 | // Does the compiler advertise C11 conformance? | |
2329 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
2330 | # error "Compiler does not advertise C11 conformance" | |
2331 | #endif | |
2332 | ||
2333 | // Check _Alignas. | |
2334 | char _Alignas (double) aligned_as_double; | |
2335 | char _Alignas (0) no_special_alignment; | |
2336 | extern char aligned_as_int; | |
2337 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
2338 | ||
2339 | // Check _Alignof. | |
2340 | enum | |
2341 | { | |
2342 | int_alignment = _Alignof (int), | |
2343 | int_array_alignment = _Alignof (int[100]), | |
2344 | char_alignment = _Alignof (char) | |
2345 | }; | |
2346 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
2347 | ||
2348 | // Check _Noreturn. | |
2349 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
2350 | ||
2351 | // Check _Static_assert. | |
2352 | struct test_static_assert | |
2353 | { | |
2354 | int x; | |
2355 | _Static_assert (sizeof (int) <= sizeof (long int), | |
2356 | "_Static_assert does not work in struct"); | |
2357 | long int y; | |
2358 | }; | |
2359 | ||
2360 | // Check UTF-8 literals. | |
2361 | #define u8 syntax error! | |
2362 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
2363 | ||
2364 | // Check duplicate typedefs. | |
2365 | typedef long *long_ptr; | |
2366 | typedef long int *long_ptr; | |
2367 | typedef long_ptr long_ptr; | |
2368 | ||
2369 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
2370 | struct anonymous | |
2371 | { | |
2372 | union { | |
2373 | struct { int i; int j; }; | |
2374 | struct { int k; long int l; } w; | |
2375 | }; | |
2376 | int m; | |
2377 | } v1; | |
2378 | ' | |
2379 | ||
2380 | # Test code for whether the C compiler supports C11 (body of main). | |
2381 | ac_c_conftest_c11_main=' | |
2382 | _Static_assert ((offsetof (struct anonymous, i) | |
2383 | == offsetof (struct anonymous, w.k)), | |
2384 | "Anonymous union alignment botch"); | |
2385 | v1.i = 2; | |
2386 | v1.w.k = 5; | |
2387 | ok |= v1.i != 5; | |
2388 | ' | |
2389 | ||
2390 | # Test code for whether the C compiler supports C11 (complete). | |
2391 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
2392 | ${ac_c_conftest_c99_globals} | |
2393 | ${ac_c_conftest_c11_globals} | |
2394 | ||
2395 | int | |
2396 | main (int argc, char **argv) | |
2397 | { | |
2398 | int ok = 0; | |
2399 | ${ac_c_conftest_c89_main} | |
2400 | ${ac_c_conftest_c99_main} | |
2401 | ${ac_c_conftest_c11_main} | |
2402 | return ok; | |
2403 | } | |
2404 | " | |
2405 | ||
2406 | # Test code for whether the C compiler supports C99 (complete). | |
2407 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
2408 | ${ac_c_conftest_c99_globals} | |
2409 | ||
2410 | int | |
2411 | main (int argc, char **argv) | |
2412 | { | |
2413 | int ok = 0; | |
2414 | ${ac_c_conftest_c89_main} | |
2415 | ${ac_c_conftest_c99_main} | |
2416 | return ok; | |
2417 | } | |
2418 | " | |
2419 | ||
2420 | # Test code for whether the C compiler supports C89 (complete). | |
2421 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
2422 | ||
2423 | int | |
2424 | main (int argc, char **argv) | |
2425 | { | |
2426 | int ok = 0; | |
2427 | ${ac_c_conftest_c89_main} | |
2428 | return ok; | |
2429 | } | |
2430 | " | |
2431 | ||
2432 | # Test code for whether the C++ compiler supports C++98 (global declarations) | |
2433 | ac_cxx_conftest_cxx98_globals=' | |
2434 | // Does the compiler advertise C++98 conformance? | |
2435 | #if !defined __cplusplus || __cplusplus < 199711L | |
2436 | # error "Compiler does not advertise C++98 conformance" | |
2437 | #endif | |
2438 | ||
2439 | // These inclusions are to reject old compilers that | |
2440 | // lack the unsuffixed header files. | |
2441 | #include <cstdlib> | |
2442 | #include <exception> | |
2443 | ||
2444 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
2445 | extern void assert (int); | |
2446 | namespace std { | |
2447 | extern int strcmp (const char *, const char *); | |
2448 | } | |
2449 | ||
2450 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
2451 | using std::exception; | |
2452 | using std::strcmp; | |
2453 | ||
2454 | namespace { | |
2455 | ||
2456 | void test_exception_syntax() | |
2457 | { | |
2458 | try { | |
2459 | throw "test"; | |
2460 | } catch (const char *s) { | |
2461 | // Extra parentheses suppress a warning when building autoconf itself, | |
2462 | // due to lint rules shared with more typical C programs. | |
2463 | assert (!(strcmp) (s, "test")); | |
2464 | } | |
2465 | } | |
2466 | ||
2467 | template <typename T> struct test_template | |
2468 | { | |
2469 | T const val; | |
2470 | explicit test_template(T t) : val(t) {} | |
2471 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
2472 | }; | |
2473 | ||
2474 | } // anonymous namespace | |
2475 | ' | |
2476 | ||
2477 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
2478 | ac_cxx_conftest_cxx98_main=' | |
2479 | assert (argc); | |
2480 | assert (! argv[0]); | |
2481 | { | |
2482 | test_exception_syntax (); | |
2483 | test_template<double> tt (2.0); | |
2484 | assert (tt.add (4) == 6.0); | |
2485 | assert (true && !false); | |
2486 | } | |
2487 | ' | |
2488 | ||
2489 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
2490 | ac_cxx_conftest_cxx11_globals=' | |
2491 | // Does the compiler advertise C++ 2011 conformance? | |
2492 | #if !defined __cplusplus || __cplusplus < 201103L | |
2493 | # error "Compiler does not advertise C++11 conformance" | |
2494 | #endif | |
2495 | ||
2496 | namespace cxx11test | |
2497 | { | |
2498 | constexpr int get_val() { return 20; } | |
2499 | ||
2500 | struct testinit | |
2501 | { | |
2502 | int i; | |
2503 | double d; | |
2504 | }; | |
2505 | ||
2506 | class delegate | |
2507 | { | |
2508 | public: | |
2509 | delegate(int n) : n(n) {} | |
2510 | delegate(): delegate(2354) {} | |
2511 | ||
2512 | virtual int getval() { return this->n; }; | |
2513 | protected: | |
2514 | int n; | |
2515 | }; | |
2516 | ||
2517 | class overridden : public delegate | |
2518 | { | |
2519 | public: | |
2520 | overridden(int n): delegate(n) {} | |
2521 | virtual int getval() override final { return this->n * 2; } | |
2522 | }; | |
2523 | ||
2524 | class nocopy | |
2525 | { | |
2526 | public: | |
2527 | nocopy(int i): i(i) {} | |
2528 | nocopy() = default; | |
2529 | nocopy(const nocopy&) = delete; | |
2530 | nocopy & operator=(const nocopy&) = delete; | |
2531 | private: | |
2532 | int i; | |
2533 | }; | |
2534 | ||
2535 | // for testing lambda expressions | |
2536 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
2537 | { | |
2538 | return f(v); | |
2539 | } | |
2540 | ||
2541 | // for testing variadic templates and trailing return types | |
2542 | template <typename V> auto sum(V first) -> V | |
2543 | { | |
2544 | return first; | |
2545 | } | |
2546 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
2547 | { | |
2548 | return first + sum(rest...); | |
2549 | } | |
2550 | } | |
2551 | ' | |
2552 | ||
2553 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
2554 | ac_cxx_conftest_cxx11_main=' | |
2555 | { | |
2556 | // Test auto and decltype | |
2557 | auto a1 = 6538; | |
2558 | auto a2 = 48573953.4; | |
2559 | auto a3 = "String literal"; | |
2560 | ||
2561 | int total = 0; | |
2562 | for (auto i = a3; *i; ++i) { total += *i; } | |
2563 | ||
2564 | decltype(a2) a4 = 34895.034; | |
2565 | } | |
2566 | { | |
2567 | // Test constexpr | |
2568 | short sa[cxx11test::get_val()] = { 0 }; | |
2569 | } | |
2570 | { | |
2571 | // Test initializer lists | |
2572 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
2573 | } | |
2574 | { | |
2575 | // Test range-based for | |
2576 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
2577 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
2578 | for (auto &x : array) { x += 23; } | |
2579 | } | |
2580 | { | |
2581 | // Test lambda expressions | |
2582 | using cxx11test::eval; | |
2583 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
2584 | double d = 2.0; | |
2585 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
2586 | assert (d == 5.0); | |
2587 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
2588 | assert (d == 5.0); | |
2589 | } | |
2590 | { | |
2591 | // Test use of variadic templates | |
2592 | using cxx11test::sum; | |
2593 | auto a = sum(1); | |
2594 | auto b = sum(1, 2); | |
2595 | auto c = sum(1.0, 2.0, 3.0); | |
2596 | } | |
2597 | { | |
2598 | // Test constructor delegation | |
2599 | cxx11test::delegate d1; | |
2600 | cxx11test::delegate d2(); | |
2601 | cxx11test::delegate d3(45); | |
2602 | } | |
2603 | { | |
2604 | // Test override and final | |
2605 | cxx11test::overridden o1(55464); | |
2606 | } | |
2607 | { | |
2608 | // Test nullptr | |
2609 | char *c = nullptr; | |
2610 | } | |
2611 | { | |
2612 | // Test template brackets | |
2613 | test_template<::test_template<int>> v(test_template<int>(12)); | |
2614 | } | |
2615 | { | |
2616 | // Unicode literals | |
2617 | char const *utf8 = u8"UTF-8 string \u2500"; | |
2618 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
2619 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
2620 | } | |
2621 | ' | |
2622 | ||
2623 | # Test code for whether the C compiler supports C++11 (complete). | |
2624 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
2625 | ${ac_cxx_conftest_cxx11_globals} | |
2626 | ||
2627 | int | |
2628 | main (int argc, char **argv) | |
2629 | { | |
2630 | int ok = 0; | |
2631 | ${ac_cxx_conftest_cxx98_main} | |
2632 | ${ac_cxx_conftest_cxx11_main} | |
2633 | return ok; | |
2634 | } | |
2635 | " | |
2636 | ||
2637 | # Test code for whether the C compiler supports C++98 (complete). | |
2638 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
2639 | int | |
2640 | main (int argc, char **argv) | |
2641 | { | |
2642 | int ok = 0; | |
2643 | ${ac_cxx_conftest_cxx98_main} | |
2644 | return ok; | |
2645 | } | |
2646 | " | |
2647 | ||
2648 | ||
2649 | # Auxiliary files required by this configure script. | |
2650 | ac_aux_files="install-sh config.guess config.sub" | |
2651 | ||
2652 | # Locations in which to look for auxiliary files. | |
2653 | ac_aux_dir_candidates="${srcdir}/scripts" | |
2654 | ||
2655 | # Search for a directory containing all of the required auxiliary files, | |
2656 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
2657 | # If we don't find one directory that contains all the files we need, | |
2658 | # we report the set of missing files from the *first* directory in | |
2659 | # $ac_aux_dir_candidates and give up. | |
2660 | ac_missing_aux_files="" | |
2661 | ac_first_candidate=: | |
2662 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
2663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2664 | as_found=false | |
2665 | for as_dir in $ac_aux_dir_candidates | |
2666 | do | |
2667 | IFS=$as_save_IFS | |
2668 | case $as_dir in #((( | |
2669 | '') as_dir=./ ;; | |
2670 | */) ;; | |
2671 | *) as_dir=$as_dir/ ;; | |
2672 | esac | |
2673 | as_found=: | |
2674 | ||
2675 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
2676 | ac_aux_dir_found=yes | |
2677 | ac_install_sh= | |
2678 | for ac_aux in $ac_aux_files | |
2679 | do | |
2680 | # As a special case, if "install-sh" is required, that requirement | |
2681 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
2682 | # and $ac_install_sh is set appropriately for whichever one is found. | |
2683 | if test x"$ac_aux" = x"install-sh" | |
2684 | then | |
2685 | if test -f "${as_dir}install-sh"; then | |
2686 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
2687 | ac_install_sh="${as_dir}install-sh -c" | |
2688 | elif test -f "${as_dir}install.sh"; then | |
2689 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
2690 | ac_install_sh="${as_dir}install.sh -c" | |
2691 | elif test -f "${as_dir}shtool"; then | |
2692 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
2693 | ac_install_sh="${as_dir}shtool install -c" | |
2694 | else | |
2695 | ac_aux_dir_found=no | |
2696 | if $ac_first_candidate; then | |
2697 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
2698 | else | |
2699 | break | |
2700 | fi | |
2701 | fi | |
2702 | else | |
2703 | if test -f "${as_dir}${ac_aux}"; then | |
2704 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
2705 | else | |
2706 | ac_aux_dir_found=no | |
2707 | if $ac_first_candidate; then | |
2708 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
2709 | else | |
2710 | break | |
2711 | fi | |
2712 | fi | |
2713 | fi | |
2714 | done | |
2715 | if test "$ac_aux_dir_found" = yes; then | |
2716 | ac_aux_dir="$as_dir" | |
2717 | break | |
2718 | fi | |
2719 | ac_first_candidate=false | |
2720 | ||
2721 | as_found=false | |
2722 | done | |
2723 | IFS=$as_save_IFS | |
2724 | if $as_found | |
2725 | then : | |
2726 | ||
2727 | else $as_nop | |
2728 | as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 | |
2729 | fi | |
2730 | ||
2731 | ||
2732 | # These three variables are undocumented and unsupported, | |
2733 | # and are intended to be withdrawn in a future Autoconf release. | |
2734 | # They can cause serious problems if a builder's source tree is in a directory | |
2735 | # whose full name contains unusual characters. | |
2736 | if test -f "${ac_aux_dir}config.guess"; then | |
2737 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
2738 | fi | |
2739 | if test -f "${ac_aux_dir}config.sub"; then | |
2740 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
2741 | fi | |
2742 | if test -f "$ac_aux_dir/configure"; then | |
2743 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
2744 | fi | |
2745 | ||
3a12e572 UD |
2746 | # Check that the precious variables saved in the cache have kept the same |
2747 | # value. | |
2748 | ac_cache_corrupted=false | |
26f56c1c | 2749 | for ac_var in $ac_precious_vars; do |
3a12e572 UD |
2750 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2751 | eval ac_new_set=\$ac_env_${ac_var}_set | |
26f56c1c UD |
2752 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2753 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3a12e572 UD |
2754 | case $ac_old_set,$ac_new_set in |
2755 | set,) | |
c6cb8783 SP |
2756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2757 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3a12e572 UD |
2758 | ac_cache_corrupted=: ;; |
2759 | ,set) | |
c6cb8783 SP |
2760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2761 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3a12e572 UD |
2762 | ac_cache_corrupted=: ;; |
2763 | ,);; | |
2764 | *) | |
2765 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
322e23db UD |
2766 | # differences in whitespace do not lead to failure. |
2767 | ac_old_val_w=`echo x $ac_old_val` | |
2768 | ac_new_val_w=`echo x $ac_new_val` | |
2769 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
c6cb8783 SP |
2770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2771 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
322e23db UD |
2772 | ac_cache_corrupted=: |
2773 | else | |
c6cb8783 SP |
2774 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2775 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
322e23db UD |
2776 | eval $ac_var=\$ac_old_val |
2777 | fi | |
c6cb8783 SP |
2778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2779 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} | |
2780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2781 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} | |
3a12e572 UD |
2782 | fi;; |
2783 | esac | |
2784 | # Pass precious variables to config.status. | |
2785 | if test "$ac_new_set" = set; then | |
2786 | case $ac_new_val in | |
c6cb8783 | 2787 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
3a12e572 UD |
2788 | *) ac_arg=$ac_var=$ac_new_val ;; |
2789 | esac | |
2790 | case " $ac_configure_args " in | |
2791 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
b08c89d9 | 2792 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
3a12e572 UD |
2793 | esac |
2794 | fi | |
2795 | done | |
2796 | if $ac_cache_corrupted; then | |
c6cb8783 SP |
2797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2798 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
2799 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2800 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2801 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' | |
2802 | and start over" "$LINENO" 5 | |
cd6ede75 | 2803 | fi |
b08c89d9 UD |
2804 | ## -------------------- ## |
2805 | ## Main body of script. ## | |
2806 | ## -------------------- ## | |
cd6ede75 | 2807 | |
b08c89d9 UD |
2808 | ac_ext=c |
2809 | ac_cpp='$CPP $CPPFLAGS' | |
2810 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2811 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2812 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3a12e572 UD |
2813 | |
2814 | ||
cd6ede75 | 2815 | |
b08c89d9 | 2816 | ac_config_headers="$ac_config_headers config.h" |
63bda0c1 | 2817 | |
444518fe | 2818 | |
cd6ede75 | 2819 | |
8b748aed JM |
2820 | |
2821 | ||
2822 | # Check whether --with-pkgversion was given. | |
c6cb8783 SP |
2823 | if test ${with_pkgversion+y} |
2824 | then : | |
8b748aed JM |
2825 | withval=$with_pkgversion; case "$withval" in |
2826 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; | |
2827 | no) PKGVERSION= ;; | |
2828 | *) PKGVERSION="($withval) " ;; | |
2829 | esac | |
c6cb8783 | 2830 | else $as_nop |
8b748aed JM |
2831 | PKGVERSION="(GNU libc) " |
2832 | ||
2833 | fi | |
2834 | ||
2835 | PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'` | |
2836 | ||
2837 | ||
2838 | ||
2839 | ||
2840 | ||
2841 | # Check whether --with-bugurl was given. | |
c6cb8783 SP |
2842 | if test ${with_bugurl+y} |
2843 | then : | |
8b748aed JM |
2844 | withval=$with_bugurl; case "$withval" in |
2845 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; | |
2846 | no) BUGURL= | |
2847 | ;; | |
2848 | *) BUGURL="$withval" | |
2849 | ;; | |
2850 | esac | |
c6cb8783 | 2851 | else $as_nop |
5a82c748 | 2852 | BUGURL="https://www.gnu.org/software/libc/bugs.html" |
8b748aed JM |
2853 | |
2854 | fi | |
2855 | ||
2856 | case ${BUGURL} in | |
2857 | "") | |
2858 | REPORT_BUGS_TO= | |
2859 | REPORT_BUGS_TEXI= | |
2860 | ;; | |
2861 | *) | |
2862 | REPORT_BUGS_TO="<$BUGURL>" | |
2863 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
2864 | ;; | |
2865 | esac; | |
2866 | ||
2867 | ||
2868 | ||
2869 | ||
c6cb8783 | 2870 | printf "%s\n" "#define PKGVERSION \"$PKGVERSION\"" >>confdefs.h |
8b748aed JM |
2871 | |
2872 | ||
c6cb8783 | 2873 | printf "%s\n" "#define REPORT_BUGS_TO \"$REPORT_BUGS_TO\"" >>confdefs.h |
8b748aed JM |
2874 | |
2875 | ||
918b5606 L |
2876 | # Glibc should not depend on any header files |
2877 | ||
2878 | ||
bb931195 TS |
2879 | # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP |
2880 | # here to work around the Autoconf issue discussed in | |
a306c790 | 2881 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>. |
bb931195 TS |
2882 | # AC_PROG_CPP |
2883 | ||
b5a5da23 TS |
2884 | # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf |
2885 | # issue discussed in | |
a306c790 | 2886 | # <https://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>. |
b5a5da23 TS |
2887 | |
2888 | ||
7967983f RM |
2889 | |
2890 | ||
2891 | subdirs="$subdirs " | |
2892 | ||
2893 | ||
c16a054d | 2894 | |
c6cb8783 SP |
2895 | |
2896 | ||
2897 | # Make sure we can run config.sub. | |
2898 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
2899 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
2900 | ||
2901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2902 | printf %s "checking build system type... " >&6; } | |
2903 | if test ${ac_cv_build+y} | |
2904 | then : | |
2905 | printf %s "(cached) " >&6 | |
2906 | else $as_nop | |
c16a054d AS |
2907 | ac_build_alias=$build_alias |
2908 | test "x$ac_build_alias" = x && | |
c6cb8783 | 2909 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
c16a054d | 2910 | test "x$ac_build_alias" = x && |
4a531bb0 | 2911 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
c6cb8783 SP |
2912 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
2913 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
c16a054d AS |
2914 | |
2915 | fi | |
c6cb8783 SP |
2916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2917 | printf "%s\n" "$ac_cv_build" >&6; } | |
c16a054d AS |
2918 | case $ac_cv_build in |
2919 | *-*-*) ;; | |
4a531bb0 | 2920 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
c16a054d AS |
2921 | esac |
2922 | build=$ac_cv_build | |
2923 | ac_save_IFS=$IFS; IFS='-' | |
2924 | set x $ac_cv_build | |
2925 | shift | |
2926 | build_cpu=$1 | |
2927 | build_vendor=$2 | |
2928 | shift; shift | |
2929 | # Remember, the first character of IFS is used to create $*, | |
2930 | # except with old shells: | |
2931 | build_os=$* | |
2932 | IFS=$ac_save_IFS | |
2933 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2934 | ||
2935 | ||
c6cb8783 SP |
2936 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2937 | printf %s "checking host system type... " >&6; } | |
2938 | if test ${ac_cv_host+y} | |
2939 | then : | |
2940 | printf %s "(cached) " >&6 | |
2941 | else $as_nop | |
c16a054d AS |
2942 | if test "x$host_alias" = x; then |
2943 | ac_cv_host=$ac_cv_build | |
2944 | else | |
c6cb8783 SP |
2945 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
2946 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
c16a054d AS |
2947 | fi |
2948 | ||
2949 | fi | |
c6cb8783 SP |
2950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2951 | printf "%s\n" "$ac_cv_host" >&6; } | |
c16a054d AS |
2952 | case $ac_cv_host in |
2953 | *-*-*) ;; | |
4a531bb0 | 2954 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
c16a054d AS |
2955 | esac |
2956 | host=$ac_cv_host | |
2957 | ac_save_IFS=$IFS; IFS='-' | |
2958 | set x $ac_cv_host | |
2959 | shift | |
2960 | host_cpu=$1 | |
2961 | host_vendor=$2 | |
2962 | shift; shift | |
2963 | # Remember, the first character of IFS is used to create $*, | |
2964 | # except with old shells: | |
2965 | host_os=$* | |
2966 | IFS=$ac_save_IFS | |
2967 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2968 | ||
2969 | ||
2970 | ||
c6cb8783 SP |
2971 | |
2972 | ||
2973 | ||
2974 | ||
2975 | ||
2976 | ||
2977 | ||
2978 | ||
2979 | ||
a152f366 UD |
2980 | ac_ext=c |
2981 | ac_cpp='$CPP $CPPFLAGS' | |
2982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2985 | if test -n "$ac_tool_prefix"; then | |
2986 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2987 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
c6cb8783 SP |
2988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2989 | printf %s "checking for $ac_word... " >&6; } | |
2990 | if test ${ac_cv_prog_CC+y} | |
2991 | then : | |
2992 | printf %s "(cached) " >&6 | |
2993 | else $as_nop | |
a152f366 UD |
2994 | if test -n "$CC"; then |
2995 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2996 | else | |
2997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2998 | for as_dir in $PATH | |
2999 | do | |
3000 | IFS=$as_save_IFS | |
c6cb8783 SP |
3001 | case $as_dir in #((( |
3002 | '') as_dir=./ ;; | |
3003 | */) ;; | |
3004 | *) as_dir=$as_dir/ ;; | |
3005 | esac | |
b08c89d9 | 3006 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3007 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3008 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
c6cb8783 | 3009 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3010 | break 2 |
3011 | fi | |
3012 | done | |
b08c89d9 | 3013 | done |
a152f366 | 3014 | IFS=$as_save_IFS |
c8f3e6db | 3015 | |
26f56c1c | 3016 | fi |
26f56c1c | 3017 | fi |
a152f366 UD |
3018 | CC=$ac_cv_prog_CC |
3019 | if test -n "$CC"; then | |
c6cb8783 SP |
3020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3021 | printf "%s\n" "$CC" >&6; } | |
a152f366 | 3022 | else |
c6cb8783 SP |
3023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3024 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3025 | fi |
3026 | ||
e41db95b | 3027 | |
e41db95b | 3028 | fi |
a152f366 UD |
3029 | if test -z "$ac_cv_prog_CC"; then |
3030 | ac_ct_CC=$CC | |
3031 | # Extract the first word of "gcc", so it can be a program name with args. | |
3032 | set dummy gcc; ac_word=$2 | |
c6cb8783 SP |
3033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3034 | printf %s "checking for $ac_word... " >&6; } | |
3035 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3036 | then : | |
3037 | printf %s "(cached) " >&6 | |
3038 | else $as_nop | |
a152f366 UD |
3039 | if test -n "$ac_ct_CC"; then |
3040 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
a5a0310d | 3041 | else |
a152f366 UD |
3042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3043 | for as_dir in $PATH | |
3044 | do | |
3045 | IFS=$as_save_IFS | |
c6cb8783 SP |
3046 | case $as_dir in #((( |
3047 | '') as_dir=./ ;; | |
3048 | */) ;; | |
3049 | *) as_dir=$as_dir/ ;; | |
3050 | esac | |
b08c89d9 | 3051 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3052 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3053 | ac_cv_prog_ac_ct_CC="gcc" |
c6cb8783 | 3054 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3055 | break 2 |
3056 | fi | |
3057 | done | |
b08c89d9 | 3058 | done |
a152f366 | 3059 | IFS=$as_save_IFS |
cd6ede75 | 3060 | |
a152f366 UD |
3061 | fi |
3062 | fi | |
3063 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3064 | if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
3065 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3066 | printf "%s\n" "$ac_ct_CC" >&6; } | |
cd6ede75 | 3067 | else |
c6cb8783 SP |
3068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3069 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3070 | fi |
3071 | ||
a152f366 UD |
3072 | if test "x$ac_ct_CC" = x; then |
3073 | CC="" | |
3074 | else | |
3075 | case $cross_compiling:$ac_tool_warned in | |
3076 | yes:) | |
c6cb8783 SP |
3077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3078 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3079 | ac_tool_warned=yes ;; |
3080 | esac | |
3081 | CC=$ac_ct_CC | |
3082 | fi | |
74a30a58 | 3083 | else |
a152f366 | 3084 | CC="$ac_cv_prog_CC" |
26f56c1c UD |
3085 | fi |
3086 | ||
a152f366 UD |
3087 | if test -z "$CC"; then |
3088 | if test -n "$ac_tool_prefix"; then | |
3089 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3090 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
c6cb8783 SP |
3091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3092 | printf %s "checking for $ac_word... " >&6; } | |
3093 | if test ${ac_cv_prog_CC+y} | |
3094 | then : | |
3095 | printf %s "(cached) " >&6 | |
3096 | else $as_nop | |
a152f366 UD |
3097 | if test -n "$CC"; then |
3098 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3099 | else | |
3100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3101 | for as_dir in $PATH | |
3102 | do | |
3103 | IFS=$as_save_IFS | |
c6cb8783 SP |
3104 | case $as_dir in #((( |
3105 | '') as_dir=./ ;; | |
3106 | */) ;; | |
3107 | *) as_dir=$as_dir/ ;; | |
3108 | esac | |
b08c89d9 | 3109 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3110 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3111 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
c6cb8783 | 3112 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3113 | break 2 |
3114 | fi | |
3115 | done | |
b08c89d9 | 3116 | done |
a152f366 | 3117 | IFS=$as_save_IFS |
74a30a58 | 3118 | |
a152f366 UD |
3119 | fi |
3120 | fi | |
3121 | CC=$ac_cv_prog_CC | |
3122 | if test -n "$CC"; then | |
c6cb8783 SP |
3123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3124 | printf "%s\n" "$CC" >&6; } | |
5af3245a | 3125 | else |
c6cb8783 SP |
3126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3127 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3128 | fi |
3129 | ||
5af3245a | 3130 | |
a152f366 | 3131 | fi |
26f56c1c | 3132 | fi |
a152f366 UD |
3133 | if test -z "$CC"; then |
3134 | # Extract the first word of "cc", so it can be a program name with args. | |
3135 | set dummy cc; ac_word=$2 | |
c6cb8783 SP |
3136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3137 | printf %s "checking for $ac_word... " >&6; } | |
3138 | if test ${ac_cv_prog_CC+y} | |
3139 | then : | |
3140 | printf %s "(cached) " >&6 | |
3141 | else $as_nop | |
a152f366 UD |
3142 | if test -n "$CC"; then |
3143 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3144 | else | |
3145 | ac_prog_rejected=no | |
3146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3147 | for as_dir in $PATH | |
3148 | do | |
3149 | IFS=$as_save_IFS | |
c6cb8783 SP |
3150 | case $as_dir in #((( |
3151 | '') as_dir=./ ;; | |
3152 | */) ;; | |
3153 | *) as_dir=$as_dir/ ;; | |
3154 | esac | |
b08c89d9 | 3155 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
3156 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3157 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
a152f366 UD |
3158 | ac_prog_rejected=yes |
3159 | continue | |
3160 | fi | |
3161 | ac_cv_prog_CC="cc" | |
c6cb8783 | 3162 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3163 | break 2 |
3164 | fi | |
3165 | done | |
b08c89d9 | 3166 | done |
a152f366 | 3167 | IFS=$as_save_IFS |
26f56c1c | 3168 | |
a152f366 UD |
3169 | if test $ac_prog_rejected = yes; then |
3170 | # We found a bogon in the path, so make sure we never use it. | |
3171 | set dummy $ac_cv_prog_CC | |
3172 | shift | |
3173 | if test $# != 0; then | |
3174 | # We chose a different compiler from the bogus one. | |
3175 | # However, it has the same basename, so the bogon will be chosen | |
3176 | # first if we set CC to just the basename; use the full file name. | |
3177 | shift | |
c6cb8783 | 3178 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
6b3f2b3d | 3179 | fi |
4442d7e8 | 3180 | fi |
26f56c1c | 3181 | fi |
26f56c1c | 3182 | fi |
a152f366 UD |
3183 | CC=$ac_cv_prog_CC |
3184 | if test -n "$CC"; then | |
c6cb8783 SP |
3185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3186 | printf "%s\n" "$CC" >&6; } | |
7dbde9db | 3187 | else |
c6cb8783 SP |
3188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3189 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3190 | fi |
3191 | ||
7dbde9db | 3192 | |
26f56c1c | 3193 | fi |
a152f366 UD |
3194 | if test -z "$CC"; then |
3195 | if test -n "$ac_tool_prefix"; then | |
3196 | for ac_prog in cl.exe | |
3197 | do | |
3198 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3199 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c6cb8783 SP |
3200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3201 | printf %s "checking for $ac_word... " >&6; } | |
3202 | if test ${ac_cv_prog_CC+y} | |
3203 | then : | |
3204 | printf %s "(cached) " >&6 | |
3205 | else $as_nop | |
a152f366 UD |
3206 | if test -n "$CC"; then |
3207 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
cd6ede75 | 3208 | else |
a152f366 UD |
3209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3210 | for as_dir in $PATH | |
3211 | do | |
3212 | IFS=$as_save_IFS | |
c6cb8783 SP |
3213 | case $as_dir in #((( |
3214 | '') as_dir=./ ;; | |
3215 | */) ;; | |
3216 | *) as_dir=$as_dir/ ;; | |
3217 | esac | |
b08c89d9 | 3218 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3219 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3220 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
c6cb8783 | 3221 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3222 | break 2 |
3223 | fi | |
3224 | done | |
b08c89d9 | 3225 | done |
a152f366 | 3226 | IFS=$as_save_IFS |
26f56c1c | 3227 | |
26f56c1c | 3228 | fi |
a152f366 UD |
3229 | fi |
3230 | CC=$ac_cv_prog_CC | |
3231 | if test -n "$CC"; then | |
c6cb8783 SP |
3232 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3233 | printf "%s\n" "$CC" >&6; } | |
650425ce | 3234 | else |
c6cb8783 SP |
3235 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3236 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3237 | fi |
3238 | ||
cd6ede75 | 3239 | |
a152f366 UD |
3240 | test -n "$CC" && break |
3241 | done | |
26f56c1c | 3242 | fi |
a152f366 UD |
3243 | if test -z "$CC"; then |
3244 | ac_ct_CC=$CC | |
3245 | for ac_prog in cl.exe | |
3246 | do | |
3247 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3248 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
3249 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3250 | printf %s "checking for $ac_word... " >&6; } | |
3251 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3252 | then : | |
3253 | printf %s "(cached) " >&6 | |
3254 | else $as_nop | |
a152f366 UD |
3255 | if test -n "$ac_ct_CC"; then |
3256 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3257 | else | |
3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3259 | for as_dir in $PATH | |
3260 | do | |
3261 | IFS=$as_save_IFS | |
c6cb8783 SP |
3262 | case $as_dir in #((( |
3263 | '') as_dir=./ ;; | |
3264 | */) ;; | |
3265 | *) as_dir=$as_dir/ ;; | |
3266 | esac | |
b08c89d9 | 3267 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3268 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3269 | ac_cv_prog_ac_ct_CC="$ac_prog" |
c6cb8783 | 3270 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3271 | break 2 |
3272 | fi | |
3273 | done | |
b08c89d9 | 3274 | done |
a152f366 | 3275 | IFS=$as_save_IFS |
62ab42d6 UD |
3276 | |
3277 | fi | |
a152f366 UD |
3278 | fi |
3279 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3280 | if test -n "$ac_ct_CC"; then | |
c6cb8783 SP |
3281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3282 | printf "%s\n" "$ac_ct_CC" >&6; } | |
35f1e827 | 3283 | else |
c6cb8783 SP |
3284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3285 | printf "%s\n" "no" >&6; } | |
26f56c1c UD |
3286 | fi |
3287 | ||
35f1e827 | 3288 | |
a152f366 UD |
3289 | test -n "$ac_ct_CC" && break |
3290 | done | |
35f1e827 | 3291 | |
a152f366 UD |
3292 | if test "x$ac_ct_CC" = x; then |
3293 | CC="" | |
3294 | else | |
3295 | case $cross_compiling:$ac_tool_warned in | |
3296 | yes:) | |
c6cb8783 SP |
3297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3298 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3299 | ac_tool_warned=yes ;; | |
3300 | esac | |
3301 | CC=$ac_ct_CC | |
3302 | fi | |
3303 | fi | |
3304 | ||
3305 | fi | |
3306 | if test -z "$CC"; then | |
3307 | if test -n "$ac_tool_prefix"; then | |
3308 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
3309 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
3310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3311 | printf %s "checking for $ac_word... " >&6; } | |
3312 | if test ${ac_cv_prog_CC+y} | |
3313 | then : | |
3314 | printf %s "(cached) " >&6 | |
3315 | else $as_nop | |
3316 | if test -n "$CC"; then | |
3317 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3318 | else | |
3319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3320 | for as_dir in $PATH | |
3321 | do | |
3322 | IFS=$as_save_IFS | |
3323 | case $as_dir in #((( | |
3324 | '') as_dir=./ ;; | |
3325 | */) ;; | |
3326 | *) as_dir=$as_dir/ ;; | |
3327 | esac | |
3328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3329 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3330 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
3331 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3332 | break 2 | |
3333 | fi | |
3334 | done | |
3335 | done | |
3336 | IFS=$as_save_IFS | |
3337 | ||
3338 | fi | |
3339 | fi | |
3340 | CC=$ac_cv_prog_CC | |
3341 | if test -n "$CC"; then | |
3342 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3343 | printf "%s\n" "$CC" >&6; } | |
3344 | else | |
3345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3346 | printf "%s\n" "no" >&6; } | |
3347 | fi | |
3348 | ||
3349 | ||
3350 | fi | |
3351 | if test -z "$ac_cv_prog_CC"; then | |
3352 | ac_ct_CC=$CC | |
3353 | # Extract the first word of "clang", so it can be a program name with args. | |
3354 | set dummy clang; ac_word=$2 | |
3355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3356 | printf %s "checking for $ac_word... " >&6; } | |
3357 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3358 | then : | |
3359 | printf %s "(cached) " >&6 | |
3360 | else $as_nop | |
3361 | if test -n "$ac_ct_CC"; then | |
3362 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3363 | else | |
3364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3365 | for as_dir in $PATH | |
3366 | do | |
3367 | IFS=$as_save_IFS | |
3368 | case $as_dir in #((( | |
3369 | '') as_dir=./ ;; | |
3370 | */) ;; | |
3371 | *) as_dir=$as_dir/ ;; | |
3372 | esac | |
3373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3374 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3375 | ac_cv_prog_ac_ct_CC="clang" | |
3376 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3377 | break 2 | |
3378 | fi | |
3379 | done | |
3380 | done | |
3381 | IFS=$as_save_IFS | |
3382 | ||
3383 | fi | |
3384 | fi | |
3385 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3386 | if test -n "$ac_ct_CC"; then | |
3387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3388 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3389 | else | |
3390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3391 | printf "%s\n" "no" >&6; } | |
3392 | fi | |
3393 | ||
3394 | if test "x$ac_ct_CC" = x; then | |
3395 | CC="" | |
3396 | else | |
3397 | case $cross_compiling:$ac_tool_warned in | |
3398 | yes:) | |
3399 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3400 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3401 | ac_tool_warned=yes ;; |
3402 | esac | |
3403 | CC=$ac_ct_CC | |
3404 | fi | |
c6cb8783 SP |
3405 | else |
3406 | CC="$ac_cv_prog_CC" | |
26f56c1c | 3407 | fi |
cd6ede75 | 3408 | |
26f56c1c | 3409 | fi |
8d4b5a8a UD |
3410 | |
3411 | ||
c6cb8783 SP |
3412 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3413 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4a531bb0 L |
3414 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3415 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 3416 | |
a152f366 | 3417 | # Provide some information about the compiler. |
c6cb8783 | 3418 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
322e23db UD |
3419 | set X $ac_compile |
3420 | ac_compiler=$2 | |
c6cb8783 | 3421 | for ac_option in --version -v -V -qversion -version; do |
b08c89d9 | 3422 | { { ac_try="$ac_compiler $ac_option >&5" |
a152f366 UD |
3423 | case "(($ac_try" in |
3424 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3425 | *) ac_try_echo=$ac_try;; | |
3426 | esac | |
b08c89d9 | 3427 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3428 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 | 3429 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
a152f366 | 3430 | ac_status=$? |
b08c89d9 UD |
3431 | if test -s conftest.err; then |
3432 | sed '10a\ | |
3433 | ... rest of stderr output deleted ... | |
3434 | 10q' conftest.err >conftest.er1 | |
3435 | cat conftest.er1 >&5 | |
3436 | fi | |
3437 | rm -f conftest.er1 conftest.err | |
c6cb8783 | 3438 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
3439 | test $ac_status = 0; } |
3440 | done | |
26f56c1c | 3441 | |
a152f366 | 3442 | EXEEXT= |
c6cb8783 SP |
3443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3444 | printf %s "checking for suffix of object files... " >&6; } | |
3445 | if test ${ac_cv_objext+y} | |
3446 | then : | |
3447 | printf %s "(cached) " >&6 | |
3448 | else $as_nop | |
b08c89d9 | 3449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3450 | /* end confdefs.h. */ |
749a9a4f | 3451 | |
a152f366 | 3452 | int |
c6cb8783 | 3453 | main (void) |
a152f366 | 3454 | { |
749a9a4f | 3455 | |
a152f366 UD |
3456 | ; |
3457 | return 0; | |
3458 | } | |
3459 | _ACEOF | |
3460 | rm -f conftest.o conftest.obj | |
b08c89d9 | 3461 | if { { ac_try="$ac_compile" |
a152f366 UD |
3462 | case "(($ac_try" in |
3463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3464 | *) ac_try_echo=$ac_try;; | |
3465 | esac | |
b08c89d9 | 3466 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3467 | printf "%s\n" "$ac_try_echo"; } >&5 |
a152f366 UD |
3468 | (eval "$ac_compile") 2>&5 |
3469 | ac_status=$? | |
c6cb8783 SP |
3470 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3471 | test $ac_status = 0; } | |
3472 | then : | |
a152f366 UD |
3473 | for ac_file in conftest.o conftest.obj conftest.*; do |
3474 | test -f "$ac_file" || continue; | |
3475 | case $ac_file in | |
322e23db | 3476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
a152f366 UD |
3477 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3478 | break;; | |
3479 | esac | |
3480 | done | |
c6cb8783 SP |
3481 | else $as_nop |
3482 | printf "%s\n" "$as_me: failed program was:" >&5 | |
a152f366 | 3483 | sed 's/^/| /' conftest.$ac_ext >&5 |
26f56c1c | 3484 | |
c6cb8783 SP |
3485 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3486 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
4a531bb0 L |
3487 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3488 | See \`config.log' for more details" "$LINENO" 5; } | |
26f56c1c | 3489 | fi |
a152f366 | 3490 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
cd6ede75 | 3491 | fi |
c6cb8783 SP |
3492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3493 | printf "%s\n" "$ac_cv_objext" >&6; } | |
a152f366 UD |
3494 | OBJEXT=$ac_cv_objext |
3495 | ac_objext=$OBJEXT | |
c6cb8783 SP |
3496 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
3497 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
3498 | if test ${ac_cv_c_compiler_gnu+y} | |
3499 | then : | |
3500 | printf %s "(cached) " >&6 | |
3501 | else $as_nop | |
b08c89d9 | 3502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3503 | /* end confdefs.h. */ |
73237de3 | 3504 | |
a152f366 | 3505 | int |
c6cb8783 | 3506 | main (void) |
a152f366 UD |
3507 | { |
3508 | #ifndef __GNUC__ | |
3509 | choke me | |
3510 | #endif | |
73237de3 | 3511 | |
a152f366 UD |
3512 | ; |
3513 | return 0; | |
3514 | } | |
3515 | _ACEOF | |
c6cb8783 SP |
3516 | if ac_fn_c_try_compile "$LINENO" |
3517 | then : | |
a152f366 | 3518 | ac_compiler_gnu=yes |
c6cb8783 | 3519 | else $as_nop |
b08c89d9 | 3520 | ac_compiler_gnu=no |
26f56c1c | 3521 | fi |
c6cb8783 | 3522 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3523 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
958f238f | 3524 | |
26f56c1c | 3525 | fi |
c6cb8783 SP |
3526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3527 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
3528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3529 | ||
322e23db UD |
3530 | if test $ac_compiler_gnu = yes; then |
3531 | GCC=yes | |
3532 | else | |
3533 | GCC= | |
3534 | fi | |
c6cb8783 | 3535 | ac_test_CFLAGS=${CFLAGS+y} |
a152f366 | 3536 | ac_save_CFLAGS=$CFLAGS |
c6cb8783 SP |
3537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3538 | printf %s "checking whether $CC accepts -g... " >&6; } | |
3539 | if test ${ac_cv_prog_cc_g+y} | |
3540 | then : | |
3541 | printf %s "(cached) " >&6 | |
3542 | else $as_nop | |
a152f366 UD |
3543 | ac_save_c_werror_flag=$ac_c_werror_flag |
3544 | ac_c_werror_flag=yes | |
3545 | ac_cv_prog_cc_g=no | |
3546 | CFLAGS="-g" | |
b08c89d9 | 3547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3548 | /* end confdefs.h. */ |
26f56c1c | 3549 | |
a152f366 | 3550 | int |
c6cb8783 | 3551 | main (void) |
a152f366 | 3552 | { |
958f238f | 3553 | |
a152f366 UD |
3554 | ; |
3555 | return 0; | |
3556 | } | |
3557 | _ACEOF | |
c6cb8783 SP |
3558 | if ac_fn_c_try_compile "$LINENO" |
3559 | then : | |
a152f366 | 3560 | ac_cv_prog_cc_g=yes |
c6cb8783 | 3561 | else $as_nop |
b08c89d9 UD |
3562 | CFLAGS="" |
3563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 3564 | /* end confdefs.h. */ |
425ce2ed | 3565 | |
a152f366 | 3566 | int |
c6cb8783 | 3567 | main (void) |
a152f366 | 3568 | { |
425ce2ed | 3569 | |
a152f366 UD |
3570 | ; |
3571 | return 0; | |
3572 | } | |
3573 | _ACEOF | |
c6cb8783 SP |
3574 | if ac_fn_c_try_compile "$LINENO" |
3575 | then : | |
425ce2ed | 3576 | |
c6cb8783 | 3577 | else $as_nop |
b08c89d9 | 3578 | ac_c_werror_flag=$ac_save_c_werror_flag |
a152f366 | 3579 | CFLAGS="-g" |
b08c89d9 | 3580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 | 3581 | /* end confdefs.h. */ |
425ce2ed | 3582 | |
a152f366 | 3583 | int |
c6cb8783 | 3584 | main (void) |
a152f366 | 3585 | { |
425ce2ed | 3586 | |
a152f366 UD |
3587 | ; |
3588 | return 0; | |
3589 | } | |
3590 | _ACEOF | |
c6cb8783 SP |
3591 | if ac_fn_c_try_compile "$LINENO" |
3592 | then : | |
a152f366 | 3593 | ac_cv_prog_cc_g=yes |
ff886b82 | 3594 | fi |
c6cb8783 | 3595 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ff886b82 | 3596 | fi |
c6cb8783 | 3597 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3598 | fi |
c6cb8783 | 3599 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 3600 | ac_c_werror_flag=$ac_save_c_werror_flag |
ff886b82 | 3601 | fi |
c6cb8783 SP |
3602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3603 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
3604 | if test $ac_test_CFLAGS; then | |
a152f366 UD |
3605 | CFLAGS=$ac_save_CFLAGS |
3606 | elif test $ac_cv_prog_cc_g = yes; then | |
3607 | if test "$GCC" = yes; then | |
3608 | CFLAGS="-g -O2" | |
3609 | else | |
3610 | CFLAGS="-g" | |
3611 | fi | |
ff886b82 | 3612 | else |
a152f366 UD |
3613 | if test "$GCC" = yes; then |
3614 | CFLAGS="-O2" | |
3615 | else | |
3616 | CFLAGS= | |
ff886b82 | 3617 | fi |
ff886b82 | 3618 | fi |
c6cb8783 SP |
3619 | ac_prog_cc_stdc=no |
3620 | if test x$ac_prog_cc_stdc = xno | |
3621 | then : | |
3622 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
3623 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
3624 | if test ${ac_cv_prog_cc_c11+y} | |
3625 | then : | |
3626 | printf %s "(cached) " >&6 | |
3627 | else $as_nop | |
3628 | ac_cv_prog_cc_c11=no | |
3629 | ac_save_CC=$CC | |
3630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3631 | /* end confdefs.h. */ | |
3632 | $ac_c_conftest_c11_program | |
3633 | _ACEOF | |
3634 | for ac_arg in '' -std=gnu11 | |
3635 | do | |
3636 | CC="$ac_save_CC $ac_arg" | |
3637 | if ac_fn_c_try_compile "$LINENO" | |
3638 | then : | |
3639 | ac_cv_prog_cc_c11=$ac_arg | |
3640 | fi | |
3641 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3642 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
3643 | done | |
3644 | rm -f conftest.$ac_ext | |
3645 | CC=$ac_save_CC | |
3646 | fi | |
3647 | ||
3648 | if test "x$ac_cv_prog_cc_c11" = xno | |
3649 | then : | |
3650 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3651 | printf "%s\n" "unsupported" >&6; } | |
3652 | else $as_nop | |
3653 | if test "x$ac_cv_prog_cc_c11" = x | |
3654 | then : | |
3655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3656 | printf "%s\n" "none needed" >&6; } | |
3657 | else $as_nop | |
3658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
3659 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
3660 | CC="$CC $ac_cv_prog_cc_c11" | |
3661 | fi | |
3662 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
3663 | ac_prog_cc_stdc=c11 | |
3664 | fi | |
3665 | fi | |
3666 | if test x$ac_prog_cc_stdc = xno | |
3667 | then : | |
3668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
3669 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
3670 | if test ${ac_cv_prog_cc_c99+y} | |
3671 | then : | |
3672 | printf %s "(cached) " >&6 | |
3673 | else $as_nop | |
3674 | ac_cv_prog_cc_c99=no | |
3675 | ac_save_CC=$CC | |
3676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3677 | /* end confdefs.h. */ | |
3678 | $ac_c_conftest_c99_program | |
3679 | _ACEOF | |
3680 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
3681 | do | |
3682 | CC="$ac_save_CC $ac_arg" | |
3683 | if ac_fn_c_try_compile "$LINENO" | |
3684 | then : | |
3685 | ac_cv_prog_cc_c99=$ac_arg | |
3686 | fi | |
3687 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3688 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
3689 | done | |
3690 | rm -f conftest.$ac_ext | |
3691 | CC=$ac_save_CC | |
3692 | fi | |
3693 | ||
3694 | if test "x$ac_cv_prog_cc_c99" = xno | |
3695 | then : | |
3696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3697 | printf "%s\n" "unsupported" >&6; } | |
3698 | else $as_nop | |
3699 | if test "x$ac_cv_prog_cc_c99" = x | |
3700 | then : | |
3701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3702 | printf "%s\n" "none needed" >&6; } | |
3703 | else $as_nop | |
3704 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3705 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
3706 | CC="$CC $ac_cv_prog_cc_c99" | |
3707 | fi | |
3708 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
3709 | ac_prog_cc_stdc=c99 | |
3710 | fi | |
3711 | fi | |
3712 | if test x$ac_prog_cc_stdc = xno | |
3713 | then : | |
3714 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
3715 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
3716 | if test ${ac_cv_prog_cc_c89+y} | |
3717 | then : | |
3718 | printf %s "(cached) " >&6 | |
3719 | else $as_nop | |
3720 | ac_cv_prog_cc_c89=no | |
3721 | ac_save_CC=$CC | |
3722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3723 | /* end confdefs.h. */ | |
3724 | $ac_c_conftest_c89_program | |
3725 | _ACEOF | |
3726 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3727 | do | |
3728 | CC="$ac_save_CC $ac_arg" | |
3729 | if ac_fn_c_try_compile "$LINENO" | |
3730 | then : | |
3731 | ac_cv_prog_cc_c89=$ac_arg | |
3732 | fi | |
3733 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
3734 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3735 | done | |
3736 | rm -f conftest.$ac_ext | |
3737 | CC=$ac_save_CC | |
3738 | fi | |
3739 | ||
3740 | if test "x$ac_cv_prog_cc_c89" = xno | |
3741 | then : | |
3742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3743 | printf "%s\n" "unsupported" >&6; } | |
3744 | else $as_nop | |
3745 | if test "x$ac_cv_prog_cc_c89" = x | |
3746 | then : | |
3747 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3748 | printf "%s\n" "none needed" >&6; } | |
3749 | else $as_nop | |
3750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3751 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
3752 | CC="$CC $ac_cv_prog_cc_c89" | |
3753 | fi | |
3754 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
3755 | ac_prog_cc_stdc=c89 | |
3756 | fi | |
3757 | fi | |
a152f366 UD |
3758 | |
3759 | ac_ext=c | |
3760 | ac_cpp='$CPP $CPPFLAGS' | |
3761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3764 | ||
3765 | if test $host != $build; then | |
3766 | for ac_prog in gcc cc | |
3767 | do | |
3768 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3769 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
3770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3771 | printf %s "checking for $ac_word... " >&6; } | |
3772 | if test ${ac_cv_prog_BUILD_CC+y} | |
3773 | then : | |
3774 | printf %s "(cached) " >&6 | |
3775 | else $as_nop | |
a152f366 UD |
3776 | if test -n "$BUILD_CC"; then |
3777 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | |
ff886b82 UD |
3778 | else |
3779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3780 | for as_dir in $PATH | |
3781 | do | |
3782 | IFS=$as_save_IFS | |
c6cb8783 SP |
3783 | case $as_dir in #((( |
3784 | '') as_dir=./ ;; | |
3785 | */) ;; | |
3786 | *) as_dir=$as_dir/ ;; | |
3787 | esac | |
b08c89d9 | 3788 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3789 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3790 | ac_cv_prog_BUILD_CC="$ac_prog" |
c6cb8783 | 3791 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
ff886b82 UD |
3792 | break 2 |
3793 | fi | |
3794 | done | |
b08c89d9 | 3795 | done |
ff886b82 UD |
3796 | IFS=$as_save_IFS |
3797 | ||
3798 | fi | |
3799 | fi | |
a152f366 UD |
3800 | BUILD_CC=$ac_cv_prog_BUILD_CC |
3801 | if test -n "$BUILD_CC"; then | |
c6cb8783 SP |
3802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
3803 | printf "%s\n" "$BUILD_CC" >&6; } | |
ff886b82 | 3804 | else |
c6cb8783 SP |
3805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3806 | printf "%s\n" "no" >&6; } | |
ff886b82 UD |
3807 | fi |
3808 | ||
3809 | ||
a152f366 | 3810 | test -n "$BUILD_CC" && break |
ff886b82 | 3811 | done |
ff886b82 UD |
3812 | |
3813 | fi | |
ff886b82 | 3814 | |
a152f366 UD |
3815 | # On Suns, sometimes $CPP names a directory. |
3816 | if test -n "$CPP" && test -d "$CPP"; then | |
3817 | CPP= | |
ff886b82 | 3818 | fi |
a152f366 | 3819 | if test -z "$CPP"; then |
bb931195 | 3820 | CPP="$CC -E" |
ff886b82 | 3821 | fi |
a152f366 | 3822 | |
e4693aa7 | 3823 | |
a152f366 | 3824 | # We need the C++ compiler only for testing. |
c6cb8783 SP |
3825 | |
3826 | ||
3827 | ||
3828 | ||
3829 | ||
3830 | ||
a152f366 UD |
3831 | ac_ext=cpp |
3832 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3833 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3834 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3835 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3836 | if test -z "$CXX"; then | |
3837 | if test -n "$CCC"; then | |
3838 | CXX=$CCC | |
3839 | else | |
3840 | if test -n "$ac_tool_prefix"; then | |
c6cb8783 | 3841 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
a152f366 UD |
3842 | do |
3843 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3844 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
c6cb8783 SP |
3845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3846 | printf %s "checking for $ac_word... " >&6; } | |
3847 | if test ${ac_cv_prog_CXX+y} | |
3848 | then : | |
3849 | printf %s "(cached) " >&6 | |
3850 | else $as_nop | |
a152f366 UD |
3851 | if test -n "$CXX"; then |
3852 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3853 | else | |
3854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3855 | for as_dir in $PATH | |
3856 | do | |
3857 | IFS=$as_save_IFS | |
c6cb8783 SP |
3858 | case $as_dir in #((( |
3859 | '') as_dir=./ ;; | |
3860 | */) ;; | |
3861 | *) as_dir=$as_dir/ ;; | |
3862 | esac | |
b08c89d9 | 3863 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3864 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3865 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
c6cb8783 | 3866 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3867 | break 2 |
3868 | fi | |
3869 | done | |
b08c89d9 | 3870 | done |
a152f366 UD |
3871 | IFS=$as_save_IFS |
3872 | ||
3873 | fi | |
3874 | fi | |
3875 | CXX=$ac_cv_prog_CXX | |
3876 | if test -n "$CXX"; then | |
c6cb8783 SP |
3877 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
3878 | printf "%s\n" "$CXX" >&6; } | |
a152f366 | 3879 | else |
c6cb8783 SP |
3880 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3881 | printf "%s\n" "no" >&6; } | |
a152f366 UD |
3882 | fi |
3883 | ||
3884 | ||
3885 | test -n "$CXX" && break | |
3886 | done | |
3887 | fi | |
3888 | if test -z "$CXX"; then | |
3889 | ac_ct_CXX=$CXX | |
c6cb8783 | 3890 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
a152f366 UD |
3891 | do |
3892 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3893 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
3894 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3895 | printf %s "checking for $ac_word... " >&6; } | |
3896 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
3897 | then : | |
3898 | printf %s "(cached) " >&6 | |
3899 | else $as_nop | |
a152f366 UD |
3900 | if test -n "$ac_ct_CXX"; then |
3901 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3902 | else | |
3903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3904 | for as_dir in $PATH | |
3905 | do | |
3906 | IFS=$as_save_IFS | |
c6cb8783 SP |
3907 | case $as_dir in #((( |
3908 | '') as_dir=./ ;; | |
3909 | */) ;; | |
3910 | *) as_dir=$as_dir/ ;; | |
3911 | esac | |
b08c89d9 | 3912 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 3913 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
a152f366 | 3914 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
c6cb8783 | 3915 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
a152f366 UD |
3916 | break 2 |
3917 | fi | |
3918 | done | |
b08c89d9 | 3919 | done |
a152f366 UD |
3920 | IFS=$as_save_IFS |
3921 | ||
3922 | fi | |
3923 | fi | |
3924 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3925 | if test -n "$ac_ct_CXX"; then | |
c6cb8783 SP |
3926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
3927 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
a152f366 | 3928 | else |
c6cb8783 SP |
3929 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3930 | printf "%s\n" "no" >&6; } | |
a152f366 UD |
3931 | fi |
3932 | ||
3933 | ||
3934 | test -n "$ac_ct_CXX" && break | |
3935 | done | |
3936 | ||
3937 | if test "x$ac_ct_CXX" = x; then | |
3938 | CXX="g++" | |
3939 | else | |
3940 | case $cross_compiling:$ac_tool_warned in | |
3941 | yes:) | |
c6cb8783 SP |
3942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3943 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
a152f366 UD |
3944 | ac_tool_warned=yes ;; |
3945 | esac | |
3946 | CXX=$ac_ct_CXX | |
3947 | fi | |
3948 | fi | |
3949 | ||
3950 | fi | |
3951 | fi | |
3952 | # Provide some information about the compiler. | |
c6cb8783 | 3953 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
322e23db UD |
3954 | set X $ac_compile |
3955 | ac_compiler=$2 | |
b08c89d9 UD |
3956 | for ac_option in --version -v -V -qversion; do |
3957 | { { ac_try="$ac_compiler $ac_option >&5" | |
a152f366 UD |
3958 | case "(($ac_try" in |
3959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3960 | *) ac_try_echo=$ac_try;; | |
3961 | esac | |
b08c89d9 | 3962 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
c6cb8783 | 3963 | printf "%s\n" "$ac_try_echo"; } >&5 |
b08c89d9 | 3964 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
a152f366 | 3965 | ac_status=$? |
b08c89d9 UD |
3966 | if test -s conftest.err; then |
3967 | sed '10a\ | |
3968 | ... rest of stderr output deleted ... | |
3969 | 10q' conftest.err >conftest.er1 | |
3970 | cat conftest.er1 >&5 | |
3971 | fi | |
3972 | rm -f conftest.er1 conftest.err | |
c6cb8783 | 3973 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 UD |
3974 | test $ac_status = 0; } |
3975 | done | |
a152f366 | 3976 | |
c6cb8783 SP |
3977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
3978 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
3979 | if test ${ac_cv_cxx_compiler_gnu+y} | |
3980 | then : | |
3981 | printf %s "(cached) " >&6 | |
3982 | else $as_nop | |
b08c89d9 | 3983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 UD |
3984 | /* end confdefs.h. */ |
3985 | ||
3986 | int | |
c6cb8783 | 3987 | main (void) |
ff886b82 | 3988 | { |
a152f366 UD |
3989 | #ifndef __GNUC__ |
3990 | choke me | |
3991 | #endif | |
ff886b82 UD |
3992 | |
3993 | ; | |
3994 | return 0; | |
3995 | } | |
3996 | _ACEOF | |
c6cb8783 SP |
3997 | if ac_fn_cxx_try_compile "$LINENO" |
3998 | then : | |
a152f366 | 3999 | ac_compiler_gnu=yes |
c6cb8783 | 4000 | else $as_nop |
b08c89d9 | 4001 | ac_compiler_gnu=no |
ff886b82 | 4002 | fi |
c6cb8783 | 4003 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4004 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
ff886b82 | 4005 | |
ff886b82 | 4006 | fi |
c6cb8783 SP |
4007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4008 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
4009 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4010 | ||
322e23db UD |
4011 | if test $ac_compiler_gnu = yes; then |
4012 | GXX=yes | |
4013 | else | |
4014 | GXX= | |
4015 | fi | |
c6cb8783 | 4016 | ac_test_CXXFLAGS=${CXXFLAGS+y} |
a152f366 | 4017 | ac_save_CXXFLAGS=$CXXFLAGS |
c6cb8783 SP |
4018 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4019 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
4020 | if test ${ac_cv_prog_cxx_g+y} | |
4021 | then : | |
4022 | printf %s "(cached) " >&6 | |
4023 | else $as_nop | |
a152f366 UD |
4024 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4025 | ac_cxx_werror_flag=yes | |
4026 | ac_cv_prog_cxx_g=no | |
4027 | CXXFLAGS="-g" | |
b08c89d9 | 4028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 4029 | /* end confdefs.h. */ |
ff886b82 | 4030 | |
ff886b82 | 4031 | int |
c6cb8783 | 4032 | main (void) |
ff886b82 | 4033 | { |
a152f366 | 4034 | |
ff886b82 UD |
4035 | ; |
4036 | return 0; | |
4037 | } | |
4038 | _ACEOF | |
c6cb8783 SP |
4039 | if ac_fn_cxx_try_compile "$LINENO" |
4040 | then : | |
a152f366 | 4041 | ac_cv_prog_cxx_g=yes |
c6cb8783 | 4042 | else $as_nop |
b08c89d9 UD |
4043 | CXXFLAGS="" |
4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a152f366 | 4045 | /* end confdefs.h. */ |
ff886b82 | 4046 | |
a152f366 | 4047 | int |
c6cb8783 | 4048 | main (void) |
a152f366 | 4049 | { |
ff886b82 | 4050 | |
a152f366 UD |
4051 | ; |
4052 | return 0; | |
4053 | } | |
ff886b82 | 4054 | _ACEOF |
c6cb8783 SP |
4055 | if ac_fn_cxx_try_compile "$LINENO" |
4056 | then : | |
ff886b82 | 4057 | |
c6cb8783 | 4058 | else $as_nop |
b08c89d9 | 4059 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
a152f366 | 4060 | CXXFLAGS="-g" |
b08c89d9 | 4061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ff886b82 | 4062 | /* end confdefs.h. */ |
a152f366 | 4063 | |
ff886b82 | 4064 | int |
c6cb8783 | 4065 | main (void) |
ff886b82 | 4066 | { |
a152f366 | 4067 | |
ff886b82 UD |
4068 | ; |
4069 | return 0; | |
4070 | } | |
4071 | _ACEOF | |
c6cb8783 SP |
4072 | if ac_fn_cxx_try_compile "$LINENO" |
4073 | then : | |
a152f366 | 4074 | ac_cv_prog_cxx_g=yes |
ff886b82 | 4075 | fi |
c6cb8783 | 4076 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4077 | fi |
c6cb8783 | 4078 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4079 | fi |
c6cb8783 | 4080 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 UD |
4081 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4082 | fi | |
c6cb8783 SP |
4083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
4084 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
4085 | if test $ac_test_CXXFLAGS; then | |
a152f366 UD |
4086 | CXXFLAGS=$ac_save_CXXFLAGS |
4087 | elif test $ac_cv_prog_cxx_g = yes; then | |
4088 | if test "$GXX" = yes; then | |
4089 | CXXFLAGS="-g -O2" | |
4090 | else | |
4091 | CXXFLAGS="-g" | |
4092 | fi | |
3a12e572 | 4093 | else |
a152f366 UD |
4094 | if test "$GXX" = yes; then |
4095 | CXXFLAGS="-O2" | |
4096 | else | |
4097 | CXXFLAGS= | |
4098 | fi | |
3a12e572 | 4099 | fi |
c6cb8783 SP |
4100 | ac_prog_cxx_stdcxx=no |
4101 | if test x$ac_prog_cxx_stdcxx = xno | |
4102 | then : | |
4103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
4104 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
4105 | if test ${ac_cv_prog_cxx_cxx11+y} | |
4106 | then : | |
4107 | printf %s "(cached) " >&6 | |
4108 | else $as_nop | |
4109 | ac_cv_prog_cxx_cxx11=no | |
4110 | ac_save_CXX=$CXX | |
4111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4112 | /* end confdefs.h. */ | |
4113 | $ac_cxx_conftest_cxx11_program | |
4114 | _ACEOF | |
4115 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
4116 | do | |
4117 | CXX="$ac_save_CXX $ac_arg" | |
4118 | if ac_fn_cxx_try_compile "$LINENO" | |
4119 | then : | |
4120 | ac_cv_prog_cxx_cxx11=$ac_arg | |
4121 | fi | |
4122 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4123 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
4124 | done | |
4125 | rm -f conftest.$ac_ext | |
4126 | CXX=$ac_save_CXX | |
4127 | fi | |
4128 | ||
4129 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
4130 | then : | |
4131 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4132 | printf "%s\n" "unsupported" >&6; } | |
4133 | else $as_nop | |
4134 | if test "x$ac_cv_prog_cxx_cxx11" = x | |
4135 | then : | |
4136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4137 | printf "%s\n" "none needed" >&6; } | |
4138 | else $as_nop | |
4139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
4140 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
4141 | CXX="$CXX $ac_cv_prog_cxx_cxx11" | |
4142 | fi | |
4143 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
4144 | ac_prog_cxx_stdcxx=cxx11 | |
4145 | fi | |
4146 | fi | |
4147 | if test x$ac_prog_cxx_stdcxx = xno | |
4148 | then : | |
4149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
4150 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
4151 | if test ${ac_cv_prog_cxx_cxx98+y} | |
4152 | then : | |
4153 | printf %s "(cached) " >&6 | |
4154 | else $as_nop | |
4155 | ac_cv_prog_cxx_cxx98=no | |
4156 | ac_save_CXX=$CXX | |
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4158 | /* end confdefs.h. */ | |
4159 | $ac_cxx_conftest_cxx98_program | |
4160 | _ACEOF | |
4161 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
4162 | do | |
4163 | CXX="$ac_save_CXX $ac_arg" | |
4164 | if ac_fn_cxx_try_compile "$LINENO" | |
4165 | then : | |
4166 | ac_cv_prog_cxx_cxx98=$ac_arg | |
4167 | fi | |
4168 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4169 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
4170 | done | |
4171 | rm -f conftest.$ac_ext | |
4172 | CXX=$ac_save_CXX | |
4173 | fi | |
4174 | ||
4175 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
4176 | then : | |
4177 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4178 | printf "%s\n" "unsupported" >&6; } | |
4179 | else $as_nop | |
4180 | if test "x$ac_cv_prog_cxx_cxx98" = x | |
4181 | then : | |
4182 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4183 | printf "%s\n" "none needed" >&6; } | |
4184 | else $as_nop | |
4185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
4186 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
4187 | CXX="$CXX $ac_cv_prog_cxx_cxx98" | |
4188 | fi | |
4189 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
4190 | ac_prog_cxx_stdcxx=cxx98 | |
4191 | fi | |
4192 | fi | |
4193 | ||
a152f366 UD |
4194 | ac_ext=c |
4195 | ac_cpp='$CPP $CPPFLAGS' | |
4196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26f56c1c | 4199 | |
e4693aa7 | 4200 | # It's useless to us if it can't link programs (e.g. missing -lstdc++). |
0cae3f4b | 4201 | |
c6cb8783 SP |
4202 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5 |
4203 | printf %s "checking whether $CXX can link programs... " >&6; } | |
4204 | if test ${libc_cv_cxx_link_ok+y} | |
4205 | then : | |
4206 | printf %s "(cached) " >&6 | |
4207 | else $as_nop | |
e4693aa7 RM |
4208 | ac_ext=cpp |
4209 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4210 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4211 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4212 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
0cae3f4b | 4213 | |
d337ceb7 | 4214 | # Default, dynamic case. |
e4693aa7 RM |
4215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4216 | /* end confdefs.h. */ | |
0cae3f4b | 4217 | |
e4693aa7 | 4218 | int |
c6cb8783 | 4219 | main (void) |
e4693aa7 | 4220 | { |
0cae3f4b | 4221 | |
e4693aa7 RM |
4222 | ; |
4223 | return 0; | |
4224 | } | |
4225 | _ACEOF | |
c6cb8783 SP |
4226 | if ac_fn_cxx_try_link "$LINENO" |
4227 | then : | |
e4693aa7 | 4228 | libc_cv_cxx_link_ok=yes |
c6cb8783 | 4229 | else $as_nop |
e4693aa7 | 4230 | libc_cv_cxx_link_ok=no |
0cae3f4b | 4231 | fi |
c6cb8783 | 4232 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
e4693aa7 | 4233 | conftest$ac_exeext conftest.$ac_ext |
d337ceb7 FW |
4234 | # Static case. |
4235 | old_LDFLAGS="$LDFLAGS" | |
4236 | LDFLAGS="$LDFLAGS -static" | |
4237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4238 | /* end confdefs.h. */ | |
4239 | ||
4240 | #include <iostream> | |
4241 | ||
4242 | int | |
4243 | main() | |
4244 | { | |
4245 | std::cout << "Hello, world!"; | |
4246 | return 0; | |
4247 | } | |
4248 | ||
4249 | _ACEOF | |
c6cb8783 SP |
4250 | if ac_fn_cxx_try_link "$LINENO" |
4251 | then : | |
d337ceb7 | 4252 | |
c6cb8783 | 4253 | else $as_nop |
d337ceb7 FW |
4254 | libc_cv_cxx_link_ok=no |
4255 | fi | |
c6cb8783 | 4256 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
d337ceb7 FW |
4257 | conftest$ac_exeext conftest.$ac_ext |
4258 | LDFLAGS="$old_LDFLAGS" | |
e4693aa7 RM |
4259 | ac_ext=c |
4260 | ac_cpp='$CPP $CPPFLAGS' | |
4261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
0cae3f4b | 4264 | |
0cae3f4b | 4265 | fi |
c6cb8783 SP |
4266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5 |
4267 | printf "%s\n" "$libc_cv_cxx_link_ok" >&6; } | |
4268 | if test $libc_cv_cxx_link_ok != yes | |
4269 | then : | |
e4693aa7 RM |
4270 | CXX= |
4271 | fi | |
26f56c1c | 4272 | |
db340c90 | 4273 | if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then |
4a531bb0 | 4274 | as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5 |
26f56c1c | 4275 | fi |
3a12e572 | 4276 | |
a152f366 UD |
4277 | # This will get text that should go into config.make. |
4278 | config_vars= | |
4279 | ||
4280 | # Check for a --with-gd argument and set libgd-LDFLAGS in config.make. | |
4281 | ||
4282 | # Check whether --with-gd was given. | |
c6cb8783 SP |
4283 | if test ${with_gd+y} |
4284 | then : | |
a152f366 UD |
4285 | withval=$with_gd; case "$with_gd" in |
4286 | yes|''|no) ;; | |
4287 | *) libgd_include="-I$withval/include" | |
4288 | libgd_ldflags="-L$withval/lib" ;; | |
26f56c1c | 4289 | esac |
cd6ede75 | 4290 | |
a152f366 | 4291 | fi |
cd6ede75 UD |
4292 | |
4293 | ||
a152f366 | 4294 | # Check whether --with-gd-include was given. |
c6cb8783 SP |
4295 | if test ${with_gd_include+y} |
4296 | then : | |
a152f366 UD |
4297 | withval=$with_gd_include; case "$with_gd_include" in |
4298 | ''|no) ;; | |
4299 | *) libgd_include="-I$withval" ;; | |
cd6ede75 UD |
4300 | esac |
4301 | ||
a152f366 | 4302 | fi |
cd6ede75 | 4303 | |
0816838f | 4304 | |
a152f366 | 4305 | # Check whether --with-gd-lib was given. |
c6cb8783 SP |
4306 | if test ${with_gd_lib+y} |
4307 | then : | |
a152f366 UD |
4308 | withval=$with_gd_lib; case "$with_gd_lib" in |
4309 | ''|no) ;; | |
4310 | *) libgd_ldflags="-L$withval" ;; | |
cd6ede75 UD |
4311 | esac |
4312 | ||
a808d541 UD |
4313 | fi |
4314 | ||
f4b07664 | 4315 | |
a152f366 UD |
4316 | if test -n "$libgd_include"; then |
4317 | config_vars="$config_vars | |
4318 | CFLAGS-memusagestat.c = $libgd_include" | |
4319 | fi | |
4320 | if test -n "$libgd_ldflags"; then | |
4321 | config_vars="$config_vars | |
4322 | libgd-LDFLAGS = $libgd_ldflags" | |
4323 | fi | |
2ceaa76a | 4324 | |
2ceaa76a | 4325 | |
a152f366 | 4326 | # Check whether --with-binutils was given. |
c6cb8783 SP |
4327 | if test ${with_binutils+y} |
4328 | then : | |
a152f366 | 4329 | withval=$with_binutils; path_binutils=$withval |
c6cb8783 | 4330 | else $as_nop |
a152f366 UD |
4331 | path_binutils='' |
4332 | fi | |
ff886b82 UD |
4333 | |
4334 | ||
a152f366 | 4335 | # Check whether --with-selinux was given. |
c6cb8783 SP |
4336 | if test ${with_selinux+y} |
4337 | then : | |
a152f366 | 4338 | withval=$with_selinux; with_selinux=$withval |
c6cb8783 | 4339 | else $as_nop |
a152f366 UD |
4340 | with_selinux=auto |
4341 | fi | |
e0a3ed4f | 4342 | |
8f73811b | 4343 | |
e0a3ed4f | 4344 | |
a152f366 | 4345 | # Check whether --with-headers was given. |
c6cb8783 SP |
4346 | if test ${with_headers+y} |
4347 | then : | |
a152f366 | 4348 | withval=$with_headers; sysheaders=$withval |
c6cb8783 | 4349 | else $as_nop |
a152f366 | 4350 | sysheaders='' |
7efb9bd1 UD |
4351 | fi |
4352 | ||
dfd2257a | 4353 | |
f781ef40 RM |
4354 | |
4355 | ||
6413fcde | 4356 | # Check whether --with-nonshared-cflags was given. |
c6cb8783 SP |
4357 | if test ${with_nonshared_cflags+y} |
4358 | then : | |
6413fcde | 4359 | withval=$with_nonshared_cflags; extra_nonshared_cflags=$withval |
c6cb8783 | 4360 | else $as_nop |
6413fcde FW |
4361 | extra_nonshared_cflags= |
4362 | fi | |
4363 | ||
4364 | ||
4365 | ||
9ba202c7 | 4366 | # Check whether --with-rtld-early-cflags was given. |
c6cb8783 SP |
4367 | if test ${with_rtld_early_cflags+y} |
4368 | then : | |
9ba202c7 | 4369 | withval=$with_rtld_early_cflags; rtld_early_cflags=$withval |
c6cb8783 | 4370 | else $as_nop |
9ba202c7 FW |
4371 | rtld_early_cflags= |
4372 | fi | |
4373 | ||
4374 | ||
4375 | ||
bada2e31 L |
4376 | |
4377 | # Check whether --with-timeoutfactor was given. | |
c6cb8783 SP |
4378 | if test ${with_timeoutfactor+y} |
4379 | then : | |
bada2e31 | 4380 | withval=$with_timeoutfactor; timeoutfactor=$withval |
c6cb8783 | 4381 | else $as_nop |
bada2e31 L |
4382 | timeoutfactor=1 |
4383 | fi | |
4384 | ||
c6cb8783 | 4385 | printf "%s\n" "#define TIMEOUTFACTOR $timeoutfactor" >>confdefs.h |
bada2e31 L |
4386 | |
4387 | ||
a152f366 | 4388 | # Check whether --enable-sanity-checks was given. |
c6cb8783 SP |
4389 | if test ${enable_sanity_checks+y} |
4390 | then : | |
a152f366 | 4391 | enableval=$enable_sanity_checks; enable_sanity=$enableval |
c6cb8783 | 4392 | else $as_nop |
a152f366 | 4393 | enable_sanity=yes |
dfd2257a UD |
4394 | fi |
4395 | ||
cd6ede75 | 4396 | |
a152f366 | 4397 | # Check whether --enable-shared was given. |
c6cb8783 SP |
4398 | if test ${enable_shared+y} |
4399 | then : | |
a152f366 | 4400 | enableval=$enable_shared; shared=$enableval |
c6cb8783 | 4401 | else $as_nop |
a0da5fe1 | 4402 | shared=yes |
a152f366 | 4403 | fi |
cd6ede75 | 4404 | |
a152f366 | 4405 | # Check whether --enable-profile was given. |
c6cb8783 SP |
4406 | if test ${enable_profile+y} |
4407 | then : | |
a152f366 | 4408 | enableval=$enable_profile; profile=$enableval |
c6cb8783 | 4409 | else $as_nop |
a152f366 UD |
4410 | profile=no |
4411 | fi | |
cd6ede75 | 4412 | |
23645707 | 4413 | # Check whether --enable-default-pie was given. |
c6cb8783 SP |
4414 | if test ${enable_default_pie+y} |
4415 | then : | |
23645707 | 4416 | enableval=$enable_default_pie; default_pie=$enableval |
c6cb8783 | 4417 | else $as_nop |
23645707 | 4418 | default_pie=yes |
9d7a3741 L |
4419 | fi |
4420 | ||
1cba4036 | 4421 | # Check whether --enable-timezone-tools was given. |
c6cb8783 SP |
4422 | if test ${enable_timezone_tools+y} |
4423 | then : | |
1cba4036 | 4424 | enableval=$enable_timezone_tools; enable_timezone_tools=$enableval |
c6cb8783 | 4425 | else $as_nop |
1cba4036 MF |
4426 | enable_timezone_tools=yes |
4427 | fi | |
4428 | ||
4429 | ||
a152f366 | 4430 | |
740b3dbe | 4431 | # Check whether --enable-hardcoded-path-in-tests was given. |
c6cb8783 SP |
4432 | if test ${enable_hardcoded_path_in_tests+y} |
4433 | then : | |
740b3dbe | 4434 | enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval |
c6cb8783 | 4435 | else $as_nop |
740b3dbe L |
4436 | hardcoded_path_in_tests=no |
4437 | fi | |
4438 | ||
4439 | ||
4440 | ||
a152f366 | 4441 | # Check whether --enable-hidden-plt was given. |
c6cb8783 SP |
4442 | if test ${enable_hidden_plt+y} |
4443 | then : | |
a152f366 | 4444 | enableval=$enable_hidden_plt; hidden=$enableval |
c6cb8783 | 4445 | else $as_nop |
a152f366 | 4446 | hidden=yes |
2de7874e | 4447 | fi |
cd6ede75 | 4448 | |
a152f366 | 4449 | if test "x$hidden" = xno; then |
c6cb8783 | 4450 | printf "%s\n" "#define NO_HIDDEN 1" >>confdefs.h |
cd6ede75 | 4451 | |
a152f366 | 4452 | fi |
e0a3ed4f | 4453 | |
a152f366 | 4454 | # Check whether --enable-bind-now was given. |
c6cb8783 SP |
4455 | if test ${enable_bind_now+y} |
4456 | then : | |
a152f366 | 4457 | enableval=$enable_bind_now; bindnow=$enableval |
c6cb8783 | 4458 | else $as_nop |
a152f366 UD |
4459 | bindnow=no |
4460 | fi | |
e0a3ed4f | 4461 | |
e0a3ed4f | 4462 | |
6901def6 | 4463 | if test "x$bindnow" = xyes; then |
c6cb8783 | 4464 | printf "%s\n" "#define BIND_NOW 1" >>confdefs.h |
6901def6 L |
4465 | |
4466 | fi | |
e0a3ed4f | 4467 | |
03baef1c | 4468 | # Check whether --enable-stack-protector was given. |
c6cb8783 SP |
4469 | if test ${enable_stack_protector+y} |
4470 | then : | |
03baef1c | 4471 | enableval=$enable_stack_protector; enable_stack_protector=$enableval |
c6cb8783 | 4472 | else $as_nop |
03baef1c NA |
4473 | enable_stack_protector=no |
4474 | fi | |
4475 | ||
4476 | case "$enable_stack_protector" in | |
4477 | all|yes|no|strong) ;; | |
4478 | *) as_fn_error $? "Not a valid argument for --enable-stack-protector: \"$enable_stack_protector\"" "$LINENO" 5;; | |
4479 | esac | |
4480 | ||
a152f366 | 4481 | # Check whether --enable-static-nss was given. |
c6cb8783 SP |
4482 | if test ${enable_static_nss+y} |
4483 | then : | |
a152f366 | 4484 | enableval=$enable_static_nss; static_nss=$enableval |
c6cb8783 | 4485 | else $as_nop |
a152f366 UD |
4486 | static_nss=no |
4487 | fi | |
e0a3ed4f | 4488 | |
a152f366 UD |
4489 | if test x"$static_nss" = xyes || test x"$shared" = xno; then |
4490 | static_nss=yes | |
c6cb8783 | 4491 | printf "%s\n" "#define DO_STATIC_NSS 1" >>confdefs.h |
cd6ede75 | 4492 | |
a152f366 | 4493 | fi |
cd6ede75 | 4494 | |
a152f366 | 4495 | # Check whether --enable-force-install was given. |
c6cb8783 SP |
4496 | if test ${enable_force_install+y} |
4497 | then : | |
a152f366 | 4498 | enableval=$enable_force_install; force_install=$enableval |
c6cb8783 | 4499 | else $as_nop |
a152f366 UD |
4500 | force_install=yes |
4501 | fi | |
ff886b82 | 4502 | |
3a12e572 | 4503 | |
cd6ede75 | 4504 | |
8894bad3 | 4505 | # Check whether --enable-maintainer-mode was given. |
c6cb8783 SP |
4506 | if test ${enable_maintainer_mode+y} |
4507 | then : | |
8894bad3 | 4508 | enableval=$enable_maintainer_mode; maintainer=$enableval |
c6cb8783 | 4509 | else $as_nop |
8894bad3 AM |
4510 | maintainer=no |
4511 | fi | |
4512 | ||
4513 | ||
a152f366 | 4514 | # Check whether --enable-kernel was given. |
c6cb8783 SP |
4515 | if test ${enable_kernel+y} |
4516 | then : | |
a152f366 | 4517 | enableval=$enable_kernel; minimum_kernel=$enableval |
cd6ede75 | 4518 | fi |
a152f366 UD |
4519 | |
4520 | if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then | |
4521 | # Better nothing than this. | |
4522 | minimum_kernel="" | |
4523 | else | |
4524 | if test "$minimum_kernel" = current; then | |
4525 | minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel= | |
cd6ede75 UD |
4526 | fi |
4527 | fi | |
cd6ede75 | 4528 | |
a152f366 | 4529 | # Check whether --enable-all-warnings was given. |
c6cb8783 SP |
4530 | if test ${enable_all_warnings+y} |
4531 | then : | |
a152f366 UD |
4532 | enableval=$enable_all_warnings; all_warnings=$enableval |
4533 | fi | |
cd6ede75 | 4534 | |
5c2a0669 | 4535 | |
cd6ede75 | 4536 | |
a4ecc9eb | 4537 | # Check whether --enable-werror was given. |
c6cb8783 SP |
4538 | if test ${enable_werror+y} |
4539 | then : | |
a4ecc9eb | 4540 | enableval=$enable_werror; enable_werror=$enableval |
c6cb8783 | 4541 | else $as_nop |
a4ecc9eb JM |
4542 | enable_werror=yes |
4543 | fi | |
4544 | ||
4545 | ||
4546 | ||
a152f366 | 4547 | # Check whether --enable-multi-arch was given. |
c6cb8783 SP |
4548 | if test ${enable_multi_arch+y} |
4549 | then : | |
a152f366 | 4550 | enableval=$enable_multi_arch; multi_arch=$enableval |
c6cb8783 | 4551 | else $as_nop |
6f89d2f3 | 4552 | multi_arch=default |
cd6ede75 UD |
4553 | fi |
4554 | ||
4bca4c17 | 4555 | |
33784089 | 4556 | # Check whether --enable-memory-tagging was given. |
c6cb8783 SP |
4557 | if test ${enable_memory_tagging+y} |
4558 | then : | |
33784089 | 4559 | enableval=$enable_memory_tagging; memory_tagging=$enableval |
c6cb8783 | 4560 | else $as_nop |
33784089 RE |
4561 | memory_tagging=no |
4562 | fi | |
4563 | ||
4564 | if test "$memory_tagging" = yes; then | |
4565 | # Only enable this on architectures that support it. | |
4566 | case $host_cpu in | |
4567 | aarch64) | |
c6cb8783 | 4568 | printf "%s\n" "#define USE_MTAG 1" >>confdefs.h |
33784089 RE |
4569 | |
4570 | ;; | |
4571 | esac | |
4572 | fi | |
4573 | ||
4574 | ||
e69d994a | 4575 | # Check whether --enable-crypt was given. |
c6cb8783 SP |
4576 | if test ${enable_crypt+y} |
4577 | then : | |
e69d994a | 4578 | enableval=$enable_crypt; build_crypt=$enableval |
c6cb8783 | 4579 | else $as_nop |
6c85c5a1 | 4580 | build_crypt=no |
e69d994a ZW |
4581 | fi |
4582 | ||
4583 | ||
4584 | ||
a152f366 | 4585 | # Check whether --enable-nss-crypt was given. |
c6cb8783 SP |
4586 | if test ${enable_nss_crypt+y} |
4587 | then : | |
a152f366 | 4588 | enableval=$enable_nss_crypt; nss_crypt=$enableval |
c6cb8783 | 4589 | else $as_nop |
a152f366 | 4590 | nss_crypt=no |
4bca4c17 UD |
4591 | fi |
4592 | ||
e69d994a | 4593 | if test x$build_libcrypt = xno && test x$nss_crypt = xyes; then |
c6cb8783 SP |
4594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&5 |
4595 | printf "%s\n" "$as_me: WARNING: --enable-nss-crypt has no effect when libcrypt is disabled" >&2;} | |
e69d994a ZW |
4596 | nss_crypt=no |
4597 | fi | |
a152f366 UD |
4598 | if test x$nss_crypt = xyes; then |
4599 | nss_includes=-I$(nss-config --includedir 2>/dev/null) | |
4600 | if test $? -ne 0; then | |
4a531bb0 | 4601 | as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5 |
26f56c1c | 4602 | fi |
57b4af19 GT |
4603 | nspr_includes=-I$(nspr-config --includedir 2>/dev/null) |
4604 | if test $? -ne 0; then | |
4605 | as_fn_error $? "cannot find include directory with nspr-config" "$LINENO" 5 | |
4606 | fi | |
a152f366 | 4607 | old_CFLAGS="$CFLAGS" |
57b4af19 | 4608 | CFLAGS="$CFLAGS $nss_includes $nspr_includes" |
a152f366 | 4609 | |
b08c89d9 UD |
4610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4611 | /* end confdefs.h. */ | |
a152f366 UD |
4612 | typedef int PRBool; |
4613 | #include <hasht.h> | |
4614 | #include <nsslowhash.h> | |
4615 | void f (void) { NSSLOW_Init (); } | |
b68e08db | 4616 | int |
c6cb8783 | 4617 | main (void) |
b68e08db RM |
4618 | { |
4619 | ||
4620 | ; | |
4621 | return 0; | |
4622 | } | |
a152f366 | 4623 | _ACEOF |
c6cb8783 SP |
4624 | if ac_fn_c_try_compile "$LINENO" |
4625 | then : | |
a152f366 | 4626 | libc_cv_nss_crypt=yes |
c6cb8783 | 4627 | else $as_nop |
4a531bb0 | 4628 | as_fn_error $? " |
b08c89d9 | 4629 | cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5 |
04be94a8 | 4630 | fi |
c6cb8783 | 4631 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
a152f366 | 4632 | old_LIBS="$LIBS" |
84aa7516 | 4633 | old_LDFLAGS="$LDFLAGS" |
a152f366 | 4634 | LIBS="$LIBS -lfreebl3" |
b08c89d9 | 4635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a152f366 UD |
4636 | /* end confdefs.h. */ |
4637 | typedef int PRBool; | |
4638 | #include <hasht.h> | |
4639 | #include <nsslowhash.h> | |
4640 | int | |
c6cb8783 | 4641 | main (void) |
a152f366 UD |
4642 | { |
4643 | NSSLOW_Init(); | |
4644 | ; | |
4645 | return 0; | |
4646 | } | |
4647 | _ACEOF | |
c6cb8783 SP |
4648 | if ac_fn_c_try_link "$LINENO" |
4649 | then : | |
a152f366 | 4650 | libc_cv_nss_crypt=yes |
c6cb8783 | 4651 | else $as_nop |
4a531bb0 | 4652 | as_fn_error $? " |
b08c89d9 | 4653 | cannot link program using lowlevel NSS hash functions" "$LINENO" 5 |
cd6ede75 | 4654 | fi |
c6cb8783 | 4655 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 4656 | conftest$ac_exeext conftest.$ac_ext |
84aa7516 CD |
4657 | # Check to see if there is a static NSS cryptographic library. |
4658 | # If there isn't then we can't link anything with libcrypt.a, | |
4659 | # and that might mean disabling some static tests. | |
4660 | LDFLAGS="$LDFLAGS -static" | |
4661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4662 | /* end confdefs.h. */ | |
4663 | typedef int PRBool; | |
4664 | #include <hasht.h> | |
4665 | #include <nsslowhash.h> | |
4666 | int | |
c6cb8783 | 4667 | main (void) |
84aa7516 CD |
4668 | { |
4669 | NSSLOW_Init(); | |
4670 | ; | |
4671 | return 0; | |
4672 | } | |
4673 | _ACEOF | |
c6cb8783 SP |
4674 | if ac_fn_c_try_link "$LINENO" |
4675 | then : | |
84aa7516 | 4676 | libc_cv_static_nss_crypt=yes |
c6cb8783 | 4677 | else $as_nop |
84aa7516 CD |
4678 | libc_cv_static_nss_crypt=no |
4679 | fi | |
c6cb8783 | 4680 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
84aa7516 CD |
4681 | conftest$ac_exeext conftest.$ac_ext |
4682 | LDFLAGS="$old_LDFLAGS" | |
a152f366 UD |
4683 | CFLAGS="$old_CFLAGS" |
4684 | LIBS="$old_LIBS" | |
4bca4c17 | 4685 | else |
a152f366 | 4686 | libc_cv_nss_crypt=no |
84aa7516 | 4687 | libc_cv_static_nss_crypt=no |
4bca4c17 UD |
4688 | fi |
4689 | ||
cd6ede75 | 4690 | |
3a097cc7 | 4691 | |
84aa7516 | 4692 | |
3a097cc7 | 4693 | # Check whether --enable-systemtap was given. |
c6cb8783 SP |
4694 | if test ${enable_systemtap+y} |
4695 | then : | |
3a097cc7 | 4696 | enableval=$enable_systemtap; systemtap=$enableval |
c6cb8783 | 4697 | else $as_nop |
3a097cc7 RM |
4698 | systemtap=no |
4699 | fi | |
4700 | ||
4701 | if test "x$systemtap" != xno; then | |
c6cb8783 SP |
4702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5 |
4703 | printf %s "checking for systemtap static probe support... " >&6; } | |
4704 | if test ${libc_cv_sdt+y} | |
4705 | then : | |
4706 | printf %s "(cached) " >&6 | |
4707 | else $as_nop | |
3a097cc7 | 4708 | old_CFLAGS="$CFLAGS" |
783dd2d3 | 4709 | CFLAGS="-std=gnu11 $CFLAGS" |
3a097cc7 RM |
4710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4711 | /* end confdefs.h. */ | |
4712 | #include <sys/sdt.h> | |
4713 | void foo (int i, void *p) | |
4714 | { | |
4715 | asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) "" | |
4716 | :: STAP_PROBE_ASM_OPERANDS (2, i, p)); | |
4717 | } | |
4718 | _ACEOF | |
c6cb8783 SP |
4719 | if ac_fn_c_try_compile "$LINENO" |
4720 | then : | |
3a097cc7 | 4721 | libc_cv_sdt=yes |
c6cb8783 | 4722 | else $as_nop |
3a097cc7 RM |
4723 | libc_cv_sdt=no |
4724 | fi | |
c6cb8783 | 4725 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3a097cc7 RM |
4726 | CFLAGS="$old_CFLAGS" |
4727 | fi | |
c6cb8783 SP |
4728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5 |
4729 | printf "%s\n" "$libc_cv_sdt" >&6; } | |
3a097cc7 | 4730 | if test $libc_cv_sdt = yes; then |
c6cb8783 | 4731 | printf "%s\n" "#define USE_STAP_PROBE 1" >>confdefs.h |
3a097cc7 RM |
4732 | |
4733 | elif test "x$systemtap" != xauto; then | |
c6cb8783 SP |
4734 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4735 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} | |
3a097cc7 RM |
4736 | as_fn_error $? "systemtap support needs sys/sdt.h with asm support |
4737 | See \`config.log' for more details" "$LINENO" 5; } | |
4738 | fi | |
4739 | fi | |
4740 | ||
c53d909c | 4741 | # Check whether --enable-build-nscd was given. |
c6cb8783 SP |
4742 | if test ${enable_build_nscd+y} |
4743 | then : | |
c53d909c | 4744 | enableval=$enable_build_nscd; build_nscd=$enableval |
c6cb8783 | 4745 | else $as_nop |
c53d909c RM |
4746 | build_nscd=default |
4747 | fi | |
4748 | ||
4749 | ||
4750 | ||
3cc3ef96 RM |
4751 | # Note the use of $use_nscd is near the bottom of the file. |
4752 | # Check whether --enable-nscd was given. | |
c6cb8783 SP |
4753 | if test ${enable_nscd+y} |
4754 | then : | |
3cc3ef96 | 4755 | enableval=$enable_nscd; use_nscd=$enableval |
c6cb8783 | 4756 | else $as_nop |
3cc3ef96 RM |
4757 | use_nscd=yes |
4758 | fi | |
4759 | ||
4760 | ||
e4608715 | 4761 | # Check whether --enable-pt_chown was given. |
c6cb8783 SP |
4762 | if test ${enable_pt_chown+y} |
4763 | then : | |
e4608715 | 4764 | enableval=$enable_pt_chown; build_pt_chown=$enableval |
c6cb8783 | 4765 | else $as_nop |
e4608715 CD |
4766 | build_pt_chown=no |
4767 | fi | |
4768 | ||
4769 | ||
8c12f01d | 4770 | if test "$build_pt_chown" = yes; then |
c6cb8783 | 4771 | printf "%s\n" "#define HAVE_PT_CHOWN 1" >>confdefs.h |
e4608715 CD |
4772 | |
4773 | fi | |
4774 | ||
ebf27d12 ST |
4775 | # The abi-tags file uses a fairly simplistic model for name recognition that |
4776 | # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a | |
4777 | # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell. | |
4778 | # This doesn't get used much beyond that, so it's fairly safe. | |
4779 | case "$host_os" in | |
4780 | linux*) | |
4781 | ;; | |
4782 | gnu*) | |
4783 | host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'` | |
4784 | ;; | |
4785 | esac | |
4786 | ||
5695d46f | 4787 | # Check whether --enable-mathvec was given. |
c6cb8783 SP |
4788 | if test ${enable_mathvec+y} |
4789 | then : | |
5695d46f | 4790 | enableval=$enable_mathvec; build_mathvec=$enableval |
c6cb8783 | 4791 | else $as_nop |
5695d46f AS |
4792 | build_mathvec=notset |
4793 | fi | |
4794 | ||
4795 | ||
b190bccc | 4796 | |
9fb81390 FW |
4797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4798 | /* end confdefs.h. */ | |
4799 | ||
4800 | int | |
c6cb8783 | 4801 | main (void) |
9fb81390 FW |
4802 | { |
4803 | ||
4804 | #ifndef __CET__ | |
ae7a94e5 | 4805 | # error no CET compiler support |
9fb81390 FW |
4806 | #endif |
4807 | ; | |
4808 | return 0; | |
4809 | } | |
4810 | _ACEOF | |
c6cb8783 SP |
4811 | if ac_fn_c_try_cpp "$LINENO" |
4812 | then : | |
9fb81390 | 4813 | libc_cv_compiler_default_cet=yes |
c6cb8783 | 4814 | else $as_nop |
9fb81390 FW |
4815 | libc_cv_compiler_default_cet=no |
4816 | fi | |
b190bccc | 4817 | rm -f conftest.err conftest.i conftest.$ac_ext |
9fb81390 | 4818 | |
f753fa7d | 4819 | # Check whether --enable-cet was given. |
c6cb8783 SP |
4820 | if test ${enable_cet+y} |
4821 | then : | |
f753fa7d | 4822 | enableval=$enable_cet; enable_cet=$enableval |
c6cb8783 | 4823 | else $as_nop |
9fb81390 | 4824 | enable_cet=$libc_cv_compiler_default_cet |
f753fa7d L |
4825 | fi |
4826 | ||
4827 | ||
ebae2f5a | 4828 | # Check whether --enable-scv was given. |
c6cb8783 SP |
4829 | if test ${enable_scv+y} |
4830 | then : | |
ebae2f5a | 4831 | enableval=$enable_scv; use_scv=$enableval |
c6cb8783 | 4832 | else $as_nop |
ebae2f5a MC |
4833 | use_scv=yes |
4834 | fi | |
4835 | ||
4836 | ||
c6cb8783 SP |
4837 | if test "$use_scv" != "no" |
4838 | then : | |
4839 | printf "%s\n" "#define USE_PPC_SCV 1" >>confdefs.h | |
ebae2f5a MC |
4840 | |
4841 | fi | |
4842 | ||
64d9580c | 4843 | # Check whether --enable-fortify-source was given. |
c6cb8783 SP |
4844 | if test ${enable_fortify_source+y} |
4845 | then : | |
64d9580c | 4846 | enableval=$enable_fortify_source; enable_fortify_source=$enableval |
c6cb8783 | 4847 | else $as_nop |
64d9580c FB |
4848 | enable_fortify_source=no |
4849 | fi | |
4850 | ||
4851 | case "$enable_fortify_source" in | |
4852 | 1|2|3|no|yes) ;; | |
4853 | *) as_fn_error $? "Not a valid argument for --enable-fortify-source: \"$enable_fortify_source\"" "$LINENO" 5;; | |
4854 | esac | |
4855 | ||
a152f366 UD |
4856 | # We keep the original values in `$config_*' and never modify them, so we |
4857 | # can write them unchanged into config.make. Everything else uses | |
4858 | # $machine, $vendor, and $os, and changes them whenever convenient. | |
4859 | config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os | |
3a12e572 | 4860 | |
a152f366 UD |
4861 | # Don't allow vendor == "unknown" |
4862 | test "$config_vendor" = unknown && config_vendor= | |
4863 | config_os="`echo $config_os | sed 's/^unknown-//'`" | |
3a12e572 | 4864 | |
a152f366 | 4865 | # Some configurations imply other options. |
0269750c | 4866 | elf=yes |
3a12e572 | 4867 | |
644d3857 | 4868 | # The configure fragment of a port can modify these to supplement |
a152f366 UD |
4869 | # or override the table in the case statement below. No fragment should |
4870 | # ever change the config_* variables, however. | |
4871 | machine=$config_machine | |
4872 | vendor=$config_vendor | |
4873 | os=$config_os | |
4874 | base_os='' | |
3a12e572 | 4875 | |
a152f366 | 4876 | submachine= |
26f56c1c | 4877 | |
a152f366 | 4878 | # Check whether --with-cpu was given. |
c6cb8783 SP |
4879 | if test ${with_cpu+y} |
4880 | then : | |
a152f366 | 4881 | withval=$with_cpu; case "$withval" in |
4a531bb0 | 4882 | yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;; |
a152f366 UD |
4883 | no) ;; |
4884 | *) submachine="$withval" ;; | |
4885 | esac | |
3a12e572 UD |
4886 | |
4887 | fi | |
3a12e572 | 4888 | |
3a12e572 | 4889 | |
05439291 RM |
4890 | # An preconfigure script can set this when it wants to disable the sanity |
4891 | # check below. | |
4892 | libc_config_ok=no | |
4893 | ||
8df5d347 JM |
4894 | # A preconfigure script for a system that may or may not use fpu |
4895 | # sysdeps directories sets this to a preprocessor conditional for | |
4896 | # whether to use such directories. | |
4897 | with_fp_cond=1 | |
4898 | ||
10a803e0 RM |
4899 | if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null` |
4900 | then | |
c6cb8783 SP |
4901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5 |
4902 | printf %s "checking for sysdeps preconfigure fragments... " >&6; } | |
10a803e0 RM |
4903 | for frag in $frags; do |
4904 | name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'` | |
4905 | echo $ECHO_N "$name $ECHO_C" >&6 | |
4906 | . "$frag" | |
4907 | done | |
c6cb8783 SP |
4908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5 |
4909 | printf "%s\n" "" >&6; } | |
10a803e0 RM |
4910 | fi |
4911 | ||
3a12e572 | 4912 | |
a152f366 UD |
4913 | ### |
4914 | ### By using the undocumented --enable-hacker-mode option for configure | |
4915 | ### one can skip this test to make the configuration not fail for unsupported | |
4916 | ### platforms. | |
4917 | ### | |
4918 | if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then | |
4919 | case "$machine-$host_os" in | |
2ce4f015 | 4920 | *-linux* | *-gnu*) |
a152f366 UD |
4921 | ;; |
4922 | *) | |
4e58b648 MF |
4923 | as_fn_error $? " |
4924 | *** The GNU C library is currently unavailable for this platform. | |
4925 | *** If you are interested in seeing glibc on this platform visit | |
4926 | *** the \"How to submit a new port\" in the wiki: | |
656ee792 | 4927 | *** https://sourceware.org/glibc/wiki/#Development |
4e58b648 | 4928 | *** and join the community!" "$LINENO" 5 |
a152f366 UD |
4929 | ;; |
4930 | esac | |
3a12e572 | 4931 | fi |
2abf9ff1 | 4932 | |
3e239be6 JM |
4933 | # Set base_machine if not set by a preconfigure fragment. |
4934 | test -n "$base_machine" || base_machine=$machine | |
26f56c1c | 4935 | |
3a12e572 | 4936 | |
43ecc41d AZ |
4937 | ### Locate tools. |
4938 | ||
c6cb8783 SP |
4939 | |
4940 | # Find a good install program. We prefer a C program (faster), | |
43ecc41d AZ |
4941 | # so one script is as good as another. But avoid the broken or |
4942 | # incompatible versions: | |
4943 | # SysV /etc/install, /usr/sbin/install | |
4944 | # SunOS /usr/etc/install | |
4945 | # IRIX /sbin/install | |
4946 | # AIX /bin/install | |
4947 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4948 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4949 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4950 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4951 | # OS/2's system install, which has a completely different semantic | |
4952 | # ./install, which can be erroneously created by make from ./install.sh. | |
4953 | # Reject install programs that cannot install multiple files. | |
c6cb8783 SP |
4954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
4955 | printf %s "checking for a BSD-compatible install... " >&6; } | |
43ecc41d | 4956 | if test -z "$INSTALL"; then |
c6cb8783 SP |
4957 | if test ${ac_cv_path_install+y} |
4958 | then : | |
4959 | printf %s "(cached) " >&6 | |
4960 | else $as_nop | |
43ecc41d AZ |
4961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4962 | for as_dir in $PATH | |
4963 | do | |
4964 | IFS=$as_save_IFS | |
c6cb8783 SP |
4965 | case $as_dir in #((( |
4966 | '') as_dir=./ ;; | |
4967 | */) ;; | |
4968 | *) as_dir=$as_dir/ ;; | |
4969 | esac | |
4970 | # Account for fact that we put trailing slashes in our PATH walk. | |
4971 | case $as_dir in #(( | |
4972 | ./ | /[cC]/* | \ | |
43ecc41d AZ |
4973 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
4974 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4975 | /usr/ucb/* ) ;; | |
4976 | *) | |
4977 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4978 | # Don't use installbsd from OSF since it installs stuff as root | |
4979 | # by default. | |
4980 | for ac_prog in ginstall scoinst install; do | |
4981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c6cb8783 | 4982 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
43ecc41d | 4983 | if test $ac_prog = install && |
c6cb8783 | 4984 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
43ecc41d AZ |
4985 | # AIX install. It has an incompatible calling convention. |
4986 | : | |
4987 | elif test $ac_prog = install && | |
c6cb8783 | 4988 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
43ecc41d AZ |
4989 | # program-specific install script used by HP pwplus--don't use. |
4990 | : | |
4991 | else | |
4992 | rm -rf conftest.one conftest.two conftest.dir | |
4993 | echo one > conftest.one | |
4994 | echo two > conftest.two | |
4995 | mkdir conftest.dir | |
c6cb8783 | 4996 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
43ecc41d AZ |
4997 | test -s conftest.one && test -s conftest.two && |
4998 | test -s conftest.dir/conftest.one && | |
4999 | test -s conftest.dir/conftest.two | |
5000 | then | |
c6cb8783 | 5001 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
43ecc41d AZ |
5002 | break 3 |
5003 | fi | |
5004 | fi | |
5005 | fi | |
5006 | done | |
5007 | done | |
5008 | ;; | |
5009 | esac | |
5010 | ||
5011 | done | |
5012 | IFS=$as_save_IFS | |
5013 | ||
5014 | rm -rf conftest.one conftest.two conftest.dir | |
5015 | ||
8df5d347 | 5016 | fi |
c6cb8783 | 5017 | if test ${ac_cv_path_install+y}; then |
43ecc41d AZ |
5018 | INSTALL=$ac_cv_path_install |
5019 | else | |
5020 | # As a last resort, use the slow shell script. Don't cache a | |
5021 | # value for INSTALL within a source directory, because that will | |
5022 | # break other packages using the cache if that directory is | |
5023 | # removed, or if the value is a relative name. | |
5024 | INSTALL=$ac_install_sh | |
5025 | fi | |
8df5d347 | 5026 | fi |
c6cb8783 SP |
5027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
5028 | printf "%s\n" "$INSTALL" >&6; } | |
8df5d347 | 5029 | |
43ecc41d AZ |
5030 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
5031 | # It thinks the first close brace ends the variable substitution. | |
5032 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8df5d347 | 5033 | |
43ecc41d AZ |
5034 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5035 | ||
5036 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5037 | ||
5038 | if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then | |
5039 | # The makefiles need to use a different form to find it in $srcdir. | |
5040 | INSTALL='\$(..)./scripts/install-sh -c' | |
5041 | fi | |
c6cb8783 SP |
5042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5043 | printf %s "checking whether ln -s works... " >&6; } | |
43ecc41d AZ |
5044 | LN_S=$as_ln_s |
5045 | if test "$LN_S" = "ln -s"; then | |
c6cb8783 SP |
5046 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5047 | printf "%s\n" "yes" >&6; } | |
03baef1c | 5048 | else |
c6cb8783 SP |
5049 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5050 | printf "%s\n" "no, using $LN_S" >&6; } | |
03baef1c NA |
5051 | fi |
5052 | ||
43ecc41d AZ |
5053 | |
5054 | # Was a --with-binutils option given? | |
5055 | if test -n "$path_binutils"; then | |
5056 | # Make absolute; ensure a single trailing slash. | |
5057 | path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'` | |
5058 | CC="$CC -B$path_binutils" | |
03baef1c | 5059 | fi |
43ecc41d AZ |
5060 | case "$CC" in |
5061 | *fuse-ld=lld*) LDNAME=ld.lld;; | |
5062 | *) LDNAME=ld;; | |
5063 | esac | |
2d2d7e1a AZ |
5064 | if test -z "$LD"; then |
5065 | LD=`$CC -print-prog-name=$LDNAME` | |
5066 | fi | |
5067 | if test -z "$AR"; then | |
5068 | AR=`$CC -print-prog-name=ar` | |
5069 | fi | |
03baef1c | 5070 | |
2d2d7e1a AZ |
5071 | if test -z "$OBJCOPY"; then |
5072 | OBJCOPY=`$CC -print-prog-name=objcopy` | |
5073 | fi | |
43ecc41d | 5074 | |
2d2d7e1a AZ |
5075 | if test -z "$GPROF"; then |
5076 | GPROF=`$CC -print-prog-name=gprof` | |
5077 | fi | |
43ecc41d | 5078 | |
02abdab0 AZ |
5079 | if test -z "$READELF"; then |
5080 | READELF=`$CC -print-prog-name=readelf` | |
5081 | fi | |
5082 | ||
5083 | if test -z "$OBJDUMP"; then | |
5084 | OBJDUMP=`$CC -print-prog-name=objdump` | |
5085 | fi | |
5086 | ||
5087 | if test -z "$NM"; then | |
5088 | NM=`$CC -print-prog-name=nm` | |
5089 | fi | |
5090 | ||
43ecc41d | 5091 | |
03baef1c | 5092 | |
43ecc41d | 5093 | # Accept binutils 2.25 or newer. |
43ecc41d AZ |
5094 | libc_cv_with_lld=no |
5095 | case $($LD --version) in | |
5096 | "GNU gold"*) | |
5097 | # Accept gold 1.14 or higher | |
5098 | for ac_prog in $LD | |
5099 | do | |
5100 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5101 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5103 | printf %s "checking for $ac_word... " >&6; } | |
5104 | if test ${ac_cv_prog_LD+y} | |
5105 | then : | |
5106 | printf %s "(cached) " >&6 | |
5107 | else $as_nop | |
43ecc41d AZ |
5108 | if test -n "$LD"; then |
5109 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5110 | else | |
5111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5112 | for as_dir in $PATH | |
5113 | do | |
5114 | IFS=$as_save_IFS | |
c6cb8783 SP |
5115 | case $as_dir in #((( |
5116 | '') as_dir=./ ;; | |
5117 | */) ;; | |
5118 | *) as_dir=$as_dir/ ;; | |
5119 | esac | |
43ecc41d | 5120 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5121 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5122 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5123 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5124 | break 2 |
5125 | fi | |
5126 | done | |
5127 | done | |
5128 | IFS=$as_save_IFS | |
5129 | ||
cd6ae7ea | 5130 | fi |
cd6ae7ea | 5131 | fi |
43ecc41d AZ |
5132 | LD=$ac_cv_prog_LD |
5133 | if test -n "$LD"; then | |
c6cb8783 SP |
5134 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5135 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5136 | else |
c6cb8783 SP |
5137 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5138 | printf "%s\n" "no" >&6; } | |
cd6ae7ea | 5139 | fi |
cd6ae7ea | 5140 | |
8f6f5362 | 5141 | |
43ecc41d AZ |
5142 | test -n "$LD" && break |
5143 | done | |
8f6f5362 | 5144 | |
43ecc41d AZ |
5145 | if test -z "$LD"; then |
5146 | ac_verc_fail=yes | |
5147 | else | |
5148 | # Found it, now check the version. | |
c6cb8783 SP |
5149 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5150 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
5151 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU gold.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
5152 | case $ac_prog_version in | |
5153 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5154 | 1.1[4-9]*|1.[2-9][0-9]*|1.1[0-9][0-9]*|[2-9].*|[1-9][0-9]*) | |
5155 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5156 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5157 | ||
5158 | esac | |
c6cb8783 SP |
5159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5160 | printf "%s\n" "$ac_prog_version" >&6; } | |
8f6f5362 | 5161 | fi |
43ecc41d AZ |
5162 | if test $ac_verc_fail = yes; then |
5163 | LD=: critic_missing="$critic_missing GNU gold" | |
8f6f5362 | 5164 | fi |
8f6f5362 | 5165 | |
43ecc41d AZ |
5166 | ;; |
5167 | "LLD"*) | |
5168 | # Accept LLD 13.0.0 or higher | |
5169 | for ac_prog in $LD | |
5170 | do | |
5171 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5172 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5174 | printf %s "checking for $ac_word... " >&6; } | |
5175 | if test ${ac_cv_prog_LD+y} | |
5176 | then : | |
5177 | printf %s "(cached) " >&6 | |
5178 | else $as_nop | |
43ecc41d AZ |
5179 | if test -n "$LD"; then |
5180 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5181 | else | |
5182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5183 | for as_dir in $PATH | |
5184 | do | |
5185 | IFS=$as_save_IFS | |
c6cb8783 SP |
5186 | case $as_dir in #((( |
5187 | '') as_dir=./ ;; | |
5188 | */) ;; | |
5189 | *) as_dir=$as_dir/ ;; | |
5190 | esac | |
43ecc41d | 5191 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5192 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5193 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5194 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d | 5195 | break 2 |
8f6f5362 | 5196 | fi |
43ecc41d AZ |
5197 | done |
5198 | done | |
5199 | IFS=$as_save_IFS | |
5200 | ||
022dfdce | 5201 | fi |
43ecc41d AZ |
5202 | fi |
5203 | LD=$ac_cv_prog_LD | |
5204 | if test -n "$LD"; then | |
c6cb8783 SP |
5205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5206 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5207 | else |
c6cb8783 SP |
5208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5209 | printf "%s\n" "no" >&6; } | |
84b9230c MF |
5210 | fi |
5211 | ||
3a12e572 | 5212 | |
43ecc41d | 5213 | test -n "$LD" && break |
3a12e572 | 5214 | done |
43ecc41d AZ |
5215 | |
5216 | if test -z "$LD"; then | |
5217 | ac_verc_fail=yes | |
5218 | else | |
5219 | # Found it, now check the version. | |
c6cb8783 SP |
5220 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5221 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
5222 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*LLD.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
5223 | case $ac_prog_version in | |
5224 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5225 | 1[3-9].*|[2-9][0-9].*) | |
5226 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5227 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5228 | ||
5229 | esac | |
c6cb8783 SP |
5230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5231 | printf "%s\n" "$ac_prog_version" >&6; } | |
a152f366 | 5232 | fi |
43ecc41d AZ |
5233 | if test $ac_verc_fail = yes; then |
5234 | LD=: critic_missing="$critic_missing LLD" | |
cd6ede75 | 5235 | fi |
3a12e572 | 5236 | |
43ecc41d AZ |
5237 | libc_cv_with_lld=yes |
5238 | ;; | |
5239 | *) | |
5240 | for ac_prog in $LD | |
5241 | do | |
5242 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5243 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5245 | printf %s "checking for $ac_word... " >&6; } | |
5246 | if test ${ac_cv_prog_LD+y} | |
5247 | then : | |
5248 | printf %s "(cached) " >&6 | |
5249 | else $as_nop | |
43ecc41d AZ |
5250 | if test -n "$LD"; then |
5251 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5252 | else | |
5253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5254 | for as_dir in $PATH | |
5255 | do | |
5256 | IFS=$as_save_IFS | |
c6cb8783 SP |
5257 | case $as_dir in #((( |
5258 | '') as_dir=./ ;; | |
5259 | */) ;; | |
5260 | *) as_dir=$as_dir/ ;; | |
5261 | esac | |
43ecc41d | 5262 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5263 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5264 | ac_cv_prog_LD="$ac_prog" |
c6cb8783 | 5265 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d | 5266 | break 2 |
925c3c5c UD |
5267 | fi |
5268 | done | |
a152f366 | 5269 | done |
43ecc41d | 5270 | IFS=$as_save_IFS |
6f89d2f3 | 5271 | |
925c3c5c UD |
5272 | fi |
5273 | fi | |
43ecc41d AZ |
5274 | LD=$ac_cv_prog_LD |
5275 | if test -n "$LD"; then | |
c6cb8783 SP |
5276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5277 | printf "%s\n" "$LD" >&6; } | |
43ecc41d | 5278 | else |
c6cb8783 SP |
5279 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5280 | printf "%s\n" "no" >&6; } | |
925c3c5c UD |
5281 | fi |
5282 | ||
26f56c1c | 5283 | |
43ecc41d AZ |
5284 | test -n "$LD" && break |
5285 | done | |
a152f366 | 5286 | |
43ecc41d AZ |
5287 | if test -z "$LD"; then |
5288 | ac_verc_fail=yes | |
5289 | else | |
5290 | # Found it, now check the version. | |
c6cb8783 SP |
5291 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5 |
5292 | printf %s "checking version of $LD... " >&6; } | |
43ecc41d AZ |
5293 | ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'` |
5294 | case $ac_prog_version in | |
5295 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5296 | 2.1[0-9][0-9]*|2.2[5-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*) | |
5297 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5298 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
26f56c1c | 5299 | |
a152f366 | 5300 | esac |
c6cb8783 SP |
5301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5302 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5303 | fi |
5304 | if test $ac_verc_fail = yes; then | |
5305 | LD=: critic_missing="$critic_missing GNU ld" | |
5306 | fi | |
925c3c5c | 5307 | |
43ecc41d AZ |
5308 | ;; |
5309 | esac | |
5310 | config_vars="$config_vars | |
5311 | with-lld = $libc_cv_with_lld" | |
a152f366 | 5312 | |
43ecc41d AZ |
5313 | # These programs are version sensitive. |
5314 | for ac_prog in gnumake gmake make | |
5315 | do | |
5316 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5317 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5319 | printf %s "checking for $ac_word... " >&6; } | |
5320 | if test ${ac_cv_prog_MAKE+y} | |
5321 | then : | |
5322 | printf %s "(cached) " >&6 | |
5323 | else $as_nop | |
43ecc41d AZ |
5324 | if test -n "$MAKE"; then |
5325 | ac_cv_prog_MAKE="$MAKE" # Let the user override the test. | |
5326 | else | |
5327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5328 | for as_dir in $PATH | |
5329 | do | |
5330 | IFS=$as_save_IFS | |
c6cb8783 SP |
5331 | case $as_dir in #((( |
5332 | '') as_dir=./ ;; | |
5333 | */) ;; | |
5334 | *) as_dir=$as_dir/ ;; | |
5335 | esac | |
43ecc41d | 5336 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5337 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5338 | ac_cv_prog_MAKE="$ac_prog" |
c6cb8783 | 5339 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5340 | break 2 |
5341 | fi | |
5342 | done | |
ba75122d | 5343 | done |
43ecc41d | 5344 | IFS=$as_save_IFS |
925c3c5c | 5345 | |
43ecc41d AZ |
5346 | fi |
5347 | fi | |
5348 | MAKE=$ac_cv_prog_MAKE | |
5349 | if test -n "$MAKE"; then | |
c6cb8783 SP |
5350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 |
5351 | printf "%s\n" "$MAKE" >&6; } | |
43ecc41d | 5352 | else |
c6cb8783 SP |
5353 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5354 | printf "%s\n" "no" >&6; } | |
43ecc41d | 5355 | fi |
925c3c5c | 5356 | |
ba75122d | 5357 | |
43ecc41d | 5358 | test -n "$MAKE" && break |
a152f366 | 5359 | done |
2abf9ff1 | 5360 | |
43ecc41d AZ |
5361 | if test -z "$MAKE"; then |
5362 | ac_verc_fail=yes | |
5363 | else | |
5364 | # Found it, now check the version. | |
c6cb8783 SP |
5365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5 |
5366 | printf %s "checking version of $MAKE... " >&6; } | |
43ecc41d AZ |
5367 | ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
5368 | case $ac_prog_version in | |
5369 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5370 | [4-9].* | [1-9][0-9]*) | |
5371 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5372 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
925c3c5c | 5373 | |
43ecc41d | 5374 | esac |
c6cb8783 SP |
5375 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5376 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5377 | fi |
5378 | if test $ac_verc_fail = yes; then | |
5379 | critic_missing="$critic_missing make" | |
5380 | fi | |
26f56c1c | 5381 | |
26f56c1c | 5382 | |
43ecc41d AZ |
5383 | for ac_prog in gnumsgfmt gmsgfmt msgfmt |
5384 | do | |
5385 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5386 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5388 | printf %s "checking for $ac_word... " >&6; } | |
5389 | if test ${ac_cv_prog_MSGFMT+y} | |
5390 | then : | |
5391 | printf %s "(cached) " >&6 | |
5392 | else $as_nop | |
43ecc41d AZ |
5393 | if test -n "$MSGFMT"; then |
5394 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. | |
5395 | else | |
5396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
a152f366 UD |
5397 | for as_dir in $PATH |
5398 | do | |
5399 | IFS=$as_save_IFS | |
c6cb8783 SP |
5400 | case $as_dir in #((( |
5401 | '') as_dir=./ ;; | |
5402 | */) ;; | |
5403 | *) as_dir=$as_dir/ ;; | |
5404 | esac | |
43ecc41d | 5405 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5406 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5407 | ac_cv_prog_MSGFMT="$ac_prog" |
c6cb8783 | 5408 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5409 | break 2 |
5410 | fi | |
5411 | done | |
b08c89d9 | 5412 | done |
a152f366 | 5413 | IFS=$as_save_IFS |
2abf9ff1 | 5414 | |
925c3c5c | 5415 | fi |
26f56c1c | 5416 | fi |
43ecc41d AZ |
5417 | MSGFMT=$ac_cv_prog_MSGFMT |
5418 | if test -n "$MSGFMT"; then | |
c6cb8783 SP |
5419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
5420 | printf "%s\n" "$MSGFMT" >&6; } | |
26f56c1c | 5421 | else |
c6cb8783 SP |
5422 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5423 | printf "%s\n" "no" >&6; } | |
26f56c1c | 5424 | fi |
a152f366 | 5425 | |
925c3c5c | 5426 | |
43ecc41d AZ |
5427 | test -n "$MSGFMT" && break |
5428 | done | |
1b74661a | 5429 | |
43ecc41d AZ |
5430 | if test -z "$MSGFMT"; then |
5431 | ac_verc_fail=yes | |
5432 | else | |
5433 | # Found it, now check the version. | |
c6cb8783 SP |
5434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5 |
5435 | printf %s "checking version of $MSGFMT... " >&6; } | |
43ecc41d AZ |
5436 | ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
5437 | case $ac_prog_version in | |
5438 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5439 | 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*) | |
5440 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5441 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
6014c65d | 5442 | |
43ecc41d | 5443 | esac |
c6cb8783 SP |
5444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5445 | printf "%s\n" "$ac_prog_version" >&6; } | |
43ecc41d AZ |
5446 | fi |
5447 | if test $ac_verc_fail = yes; then | |
5448 | MSGFMT=: aux_missing="$aux_missing msgfmt" | |
5449 | fi | |
4baa087a | 5450 | |
43ecc41d AZ |
5451 | for ac_prog in makeinfo |
5452 | do | |
5453 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5454 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5456 | printf %s "checking for $ac_word... " >&6; } | |
5457 | if test ${ac_cv_prog_MAKEINFO+y} | |
5458 | then : | |
5459 | printf %s "(cached) " >&6 | |
5460 | else $as_nop | |
43ecc41d AZ |
5461 | if test -n "$MAKEINFO"; then |
5462 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
4baa087a | 5463 | else |
43ecc41d AZ |
5464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5465 | for as_dir in $PATH | |
5466 | do | |
5467 | IFS=$as_save_IFS | |
c6cb8783 SP |
5468 | case $as_dir in #((( |
5469 | '') as_dir=./ ;; | |
5470 | */) ;; | |
5471 | *) as_dir=$as_dir/ ;; | |
5472 | esac | |
43ecc41d | 5473 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5474 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5475 | ac_cv_prog_MAKEINFO="$ac_prog" |
c6cb8783 | 5476 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
43ecc41d AZ |
5477 | break 2 |
5478 | fi | |
5479 | done | |
5480 | done | |
5481 | IFS=$as_save_IFS | |
5482 | ||
4baa087a | 5483 | fi |
4baa087a | 5484 | fi |
43ecc41d AZ |
5485 | MAKEINFO=$ac_cv_prog_MAKEINFO |
5486 | if test -n "$MAKEINFO"; then | |
c6cb8783 SP |
5487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
5488 | printf "%s\n" "$MAKEINFO" >&6; } | |
4baa087a | 5489 | else |
c6cb8783 SP |
5490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5491 | printf "%s\n" "no" >&6; } | |
43ecc41d AZ |
5492 | fi |
5493 | ||
5494 | ||
5495 | test -n "$MAKEINFO" && break | |
5496 | done | |
5497 | ||
5498 | if test -z "$MAKEINFO"; then | |
5499 | ac_verc_fail=yes | |
4baa087a | 5500 | else |
43ecc41d | 5501 | # Found it, now check the version. |
c6cb8783 SP |
5502 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5 |
5503 | printf %s "checking version of $MAKEINFO... " >&6; } | |
43ecc41d AZ |
5504 | ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` |
5505 | case $ac_prog_version in | |
5506 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
5507 | 4.[7-9]*|4.[1-9][0-9]*|[5-9].*) | |
5508 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | |
5509 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5510 | ||
5511 | esac | |
c6cb8783 SP |
5512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5513 | printf "%s\n" "$ac_prog_version" >&6; } | |
4baa087a | 5514 | fi |
43ecc41d AZ |
5515 | if test $ac_verc_fail = yes; then |
5516 | MAKEINFO=: aux_missing="$aux_missing makeinfo" | |
4baa087a | 5517 | fi |
4baa087a | 5518 | |
43ecc41d | 5519 | for ac_prog in sed |
4baa087a RM |
5520 | do |
5521 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5522 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5524 | printf %s "checking for $ac_word... " >&6; } | |
5525 | if test ${ac_cv_prog_SED+y} | |
5526 | then : | |
5527 | printf %s "(cached) " >&6 | |
5528 | else $as_nop | |
43ecc41d AZ |
5529 | if test -n "$SED"; then |
5530 | ac_cv_prog_SED="$SED" # Let the user override the test. | |
4baa087a RM |
5531 | else |
5532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5533 | for as_dir in $PATH | |
5534 | do | |
5535 | IFS=$as_save_IFS | |
c6cb8783 SP |
5536 | case $as_dir in #((( |
5537 | '') as_dir=./ ;; | |
5538 | */) ;; | |
5539 | *) as_dir=$as_dir/ ;; | |
5540 | esac | |
b08c89d9 | 5541 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5542 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5543 | ac_cv_prog_SED="$ac_prog" |
c6cb8783 | 5544 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4baa087a RM |
5545 | break 2 |
5546 | fi | |
5547 | done | |
b08c89d9 | 5548 | done |
26f56c1c | 5549 | IFS=$as_save_IFS |
4baa087a RM |
5550 | |
5551 | fi | |
5552 | fi | |
43ecc41d AZ |
5553 | SED=$ac_cv_prog_SED |
5554 | if test -n "$SED"; then | |
c6cb8783 SP |
5555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
5556 | printf "%s\n" "$SED" >&6; } | |
4baa087a | 5557 | else |
c6cb8783 SP |
5558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5559 | printf "%s\n" "no" >&6; } | |
4baa087a RM |
5560 | fi |
5561 | ||
26f56c1c | 5562 | |
43ecc41d | 5563 | test -n "$SED" && break |
4baa087a RM |
5564 | done |
5565 | ||
43ecc41d | 5566 | if test -z "$SED"; then |
4baa087a RM |
5567 | ac_verc_fail=yes |
5568 | else | |
5569 | # Found it, now check the version. | |
c6cb8783 SP |
5570 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5 |
5571 | printf %s "checking version of $SED... " >&6; } | |
43ecc41d | 5572 | ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
4baa087a RM |
5573 | case $ac_prog_version in |
5574 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5575 | 3.0[2-9]*|3.[1-9]*|[4-9]*) |
4baa087a RM |
5576 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5577 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5578 | ||
5579 | esac | |
c6cb8783 SP |
5580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5581 | printf "%s\n" "$ac_prog_version" >&6; } | |
4baa087a RM |
5582 | fi |
5583 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5584 | SED=: aux_missing="$aux_missing sed" |
4baa087a RM |
5585 | fi |
5586 | ||
43ecc41d | 5587 | for ac_prog in gawk |
f300dc73 L |
5588 | do |
5589 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5590 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5592 | printf %s "checking for $ac_word... " >&6; } | |
5593 | if test ${ac_cv_prog_AWK+y} | |
5594 | then : | |
5595 | printf %s "(cached) " >&6 | |
5596 | else $as_nop | |
43ecc41d AZ |
5597 | if test -n "$AWK"; then |
5598 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
f300dc73 L |
5599 | else |
5600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5601 | for as_dir in $PATH | |
5602 | do | |
5603 | IFS=$as_save_IFS | |
c6cb8783 SP |
5604 | case $as_dir in #((( |
5605 | '') as_dir=./ ;; | |
5606 | */) ;; | |
5607 | *) as_dir=$as_dir/ ;; | |
5608 | esac | |
f300dc73 | 5609 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5610 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5611 | ac_cv_prog_AWK="$ac_prog" |
c6cb8783 | 5612 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
f300dc73 L |
5613 | break 2 |
5614 | fi | |
5615 | done | |
5616 | done | |
5617 | IFS=$as_save_IFS | |
5618 | ||
5619 | fi | |
5620 | fi | |
43ecc41d AZ |
5621 | AWK=$ac_cv_prog_AWK |
5622 | if test -n "$AWK"; then | |
c6cb8783 SP |
5623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
5624 | printf "%s\n" "$AWK" >&6; } | |
f300dc73 | 5625 | else |
c6cb8783 SP |
5626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5627 | printf "%s\n" "no" >&6; } | |
f300dc73 L |
5628 | fi |
5629 | ||
5630 | ||
43ecc41d | 5631 | test -n "$AWK" && break |
f300dc73 L |
5632 | done |
5633 | ||
43ecc41d | 5634 | if test -z "$AWK"; then |
f300dc73 L |
5635 | ac_verc_fail=yes |
5636 | else | |
5637 | # Found it, now check the version. | |
c6cb8783 SP |
5638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5 |
5639 | printf %s "checking version of $AWK... " >&6; } | |
43ecc41d | 5640 | ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'` |
f300dc73 L |
5641 | case $ac_prog_version in |
5642 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5643 | 3.1.[2-9]*|3.[2-9]*|[4-9]*) |
f300dc73 L |
5644 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5645 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5646 | ||
5647 | esac | |
c6cb8783 SP |
5648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5649 | printf "%s\n" "$ac_prog_version" >&6; } | |
f300dc73 L |
5650 | fi |
5651 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5652 | critic_missing="$critic_missing gawk" |
f300dc73 L |
5653 | fi |
5654 | ||
43ecc41d | 5655 | for ac_prog in bison |
224edada FS |
5656 | do |
5657 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5658 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5660 | printf %s "checking for $ac_word... " >&6; } | |
5661 | if test ${ac_cv_prog_BISON+y} | |
5662 | then : | |
5663 | printf %s "(cached) " >&6 | |
5664 | else $as_nop | |
43ecc41d AZ |
5665 | if test -n "$BISON"; then |
5666 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
224edada FS |
5667 | else |
5668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5669 | for as_dir in $PATH | |
5670 | do | |
5671 | IFS=$as_save_IFS | |
c6cb8783 SP |
5672 | case $as_dir in #((( |
5673 | '') as_dir=./ ;; | |
5674 | */) ;; | |
5675 | *) as_dir=$as_dir/ ;; | |
5676 | esac | |
224edada | 5677 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5678 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5679 | ac_cv_prog_BISON="$ac_prog" |
c6cb8783 | 5680 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
224edada FS |
5681 | break 2 |
5682 | fi | |
5683 | done | |
5684 | done | |
5685 | IFS=$as_save_IFS | |
5686 | ||
5687 | fi | |
5688 | fi | |
43ecc41d AZ |
5689 | BISON=$ac_cv_prog_BISON |
5690 | if test -n "$BISON"; then | |
c6cb8783 SP |
5691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
5692 | printf "%s\n" "$BISON" >&6; } | |
224edada | 5693 | else |
c6cb8783 SP |
5694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5695 | printf "%s\n" "no" >&6; } | |
224edada FS |
5696 | fi |
5697 | ||
5698 | ||
43ecc41d | 5699 | test -n "$BISON" && break |
224edada FS |
5700 | done |
5701 | ||
43ecc41d | 5702 | if test -z "$BISON"; then |
224edada FS |
5703 | ac_verc_fail=yes |
5704 | else | |
5705 | # Found it, now check the version. | |
c6cb8783 SP |
5706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5 |
5707 | printf %s "checking version of $BISON... " >&6; } | |
43ecc41d | 5708 | ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'` |
224edada FS |
5709 | case $ac_prog_version in |
5710 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5711 | 2.7*|[3-9].*|[1-9][0-9]*) |
224edada FS |
5712 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5713 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5714 | ||
5715 | esac | |
c6cb8783 SP |
5716 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5717 | printf "%s\n" "$ac_prog_version" >&6; } | |
224edada FS |
5718 | fi |
5719 | if test $ac_verc_fail = yes; then | |
43ecc41d | 5720 | critic_missing="$critic_missing bison" |
224edada FS |
5721 | fi |
5722 | ||
43ecc41d | 5723 | |
c6cb8783 SP |
5724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5 |
5725 | printf %s "checking if $CC is sufficient to build libc... " >&6; } | |
5726 | if test ${libc_cv_compiler_ok+y} | |
5727 | then : | |
5728 | printf %s "(cached) " >&6 | |
5729 | else $as_nop | |
43ecc41d AZ |
5730 | |
5731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5732 | /* end confdefs.h. */ | |
5733 | ||
5734 | int | |
c6cb8783 | 5735 | main (void) |
43ecc41d AZ |
5736 | { |
5737 | ||
5738 | #if !defined __GNUC__ || __GNUC__ < 6 || (__GNUC__ == 6 && __GNUC_MINOR__ < 2) | |
5739 | #error insufficient compiler | |
5740 | #endif | |
5741 | ; | |
5742 | return 0; | |
5743 | } | |
5744 | _ACEOF | |
c6cb8783 SP |
5745 | if ac_fn_c_try_cpp "$LINENO" |
5746 | then : | |
43ecc41d | 5747 | libc_cv_compiler_ok=yes |
c6cb8783 | 5748 | else $as_nop |
43ecc41d AZ |
5749 | libc_cv_compiler_ok=no |
5750 | fi | |
5751 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5752 | fi | |
c6cb8783 SP |
5753 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5 |
5754 | printf "%s\n" "$libc_cv_compiler_ok" >&6; } | |
5755 | if test $libc_cv_compiler_ok != yes | |
5756 | then : | |
43ecc41d AZ |
5757 | critic_missing="$critic_missing compiler" |
5758 | fi | |
5759 | ||
43ecc41d AZ |
5760 | if test "x$maintainer" = "xyes"; then |
5761 | for ac_prog in autoconf | |
4baa087a RM |
5762 | do |
5763 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5764 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5766 | printf %s "checking for $ac_word... " >&6; } | |
5767 | if test ${ac_cv_prog_AUTOCONF+y} | |
5768 | then : | |
5769 | printf %s "(cached) " >&6 | |
5770 | else $as_nop | |
43ecc41d AZ |
5771 | if test -n "$AUTOCONF"; then |
5772 | ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. | |
cd6ede75 | 5773 | else |
3a12e572 UD |
5774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5775 | for as_dir in $PATH | |
5776 | do | |
5777 | IFS=$as_save_IFS | |
c6cb8783 SP |
5778 | case $as_dir in #((( |
5779 | '') as_dir=./ ;; | |
5780 | */) ;; | |
5781 | *) as_dir=$as_dir/ ;; | |
5782 | esac | |
b08c89d9 | 5783 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5784 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5785 | ac_cv_prog_AUTOCONF="$ac_prog" |
c6cb8783 | 5786 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5787 | break 2 |
5788 | fi | |
5789 | done | |
b08c89d9 | 5790 | done |
26f56c1c | 5791 | IFS=$as_save_IFS |
3a12e572 | 5792 | |
cd6ede75 UD |
5793 | fi |
5794 | fi | |
43ecc41d AZ |
5795 | AUTOCONF=$ac_cv_prog_AUTOCONF |
5796 | if test -n "$AUTOCONF"; then | |
c6cb8783 SP |
5797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 |
5798 | printf "%s\n" "$AUTOCONF" >&6; } | |
cd6ede75 | 5799 | else |
c6cb8783 SP |
5800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5801 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
5802 | fi |
5803 | ||
26f56c1c | 5804 | |
43ecc41d | 5805 | test -n "$AUTOCONF" && break |
4baa087a | 5806 | done |
43ecc41d | 5807 | test -n "$AUTOCONF" || AUTOCONF="no" |
4baa087a | 5808 | |
43ecc41d AZ |
5809 | case "x$AUTOCONF" in |
5810 | xno|x|x:) AUTOCONF=no ;; | |
5811 | *) | |
c6cb8783 SP |
5812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5 |
5813 | printf %s "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; } | |
5814 | if test ${libc_cv_autoconf_works+y} | |
5815 | then : | |
5816 | printf %s "(cached) " >&6 | |
5817 | else $as_nop | |
43ecc41d AZ |
5818 | if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then |
5819 | libc_cv_autoconf_works=yes | |
5820 | else | |
5821 | libc_cv_autoconf_works=no | |
5822 | fi | |
3a12e572 | 5823 | fi |
c6cb8783 SP |
5824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5 |
5825 | printf "%s\n" "$libc_cv_autoconf_works" >&6; } | |
43ecc41d AZ |
5826 | test $libc_cv_autoconf_works = yes || AUTOCONF=no |
5827 | ;; | |
5828 | esac | |
5829 | if test "x$AUTOCONF" = xno; then | |
5830 | aux_missing="$aux_missing autoconf" | |
5831 | fi | |
5832 | else | |
5833 | AUTOCONF=no | |
4baa087a RM |
5834 | fi |
5835 | ||
43ecc41d AZ |
5836 | # Check for python3 if available, or else python. |
5837 | for ac_prog in python3 python | |
4baa087a RM |
5838 | do |
5839 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5840 | set dummy $ac_prog; ac_word=$2 | |
c6cb8783 SP |
5841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5842 | printf %s "checking for $ac_word... " >&6; } | |
5843 | if test ${ac_cv_prog_PYTHON_PROG+y} | |
5844 | then : | |
5845 | printf %s "(cached) " >&6 | |
5846 | else $as_nop | |
43ecc41d AZ |
5847 | if test -n "$PYTHON_PROG"; then |
5848 | ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test. | |
cd6ede75 | 5849 | else |
3a12e572 UD |
5850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5851 | for as_dir in $PATH | |
5852 | do | |
5853 | IFS=$as_save_IFS | |
c6cb8783 SP |
5854 | case $as_dir in #((( |
5855 | '') as_dir=./ ;; | |
5856 | */) ;; | |
5857 | *) as_dir=$as_dir/ ;; | |
5858 | esac | |
b08c89d9 | 5859 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 | 5860 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
43ecc41d | 5861 | ac_cv_prog_PYTHON_PROG="$ac_prog" |
c6cb8783 | 5862 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3a12e572 UD |
5863 | break 2 |
5864 | fi | |
5865 | done | |
b08c89d9 | 5866 | done |
26f56c1c | 5867 | IFS=$as_save_IFS |
3a12e572 | 5868 | |
cd6ede75 UD |
5869 | fi |
5870 | fi | |
43ecc41d AZ |
5871 | PYTHON_PROG=$ac_cv_prog_PYTHON_PROG |
5872 | if test -n "$PYTHON_PROG"; then | |
c6cb8783 SP |
5873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5 |
5874 | printf "%s\n" "$PYTHON_PROG" >&6; } | |
cd6ede75 | 5875 | else |
c6cb8783 SP |
5876 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5877 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
5878 | fi |
5879 | ||
26f56c1c | 5880 | |
43ecc41d | 5881 | test -n "$PYTHON_PROG" && break |
4baa087a | 5882 | done |
5edb9387 | 5883 | |
43ecc41d | 5884 | if test -z "$PYTHON_PROG"; then |
4baa087a | 5885 | ac_verc_fail=yes |
5edb9387 | 5886 | else |
4baa087a | 5887 | # Found it, now check the version. |
c6cb8783 SP |
5888 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version of $PYTHON_PROG" >&5 |
5889 | printf %s "checking version of $PYTHON_PROG... " >&6; } | |
43ecc41d | 5890 | ac_prog_version=`$PYTHON_PROG --version 2>&1 | sed -n 's/^.*Python \([0-9][0-9.]*\).*$/\1/p'` |
4baa087a RM |
5891 | case $ac_prog_version in |
5892 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | |
43ecc41d | 5893 | 3.[4-9]*|3.[1-9][0-9]*|[4-9].*|[1-9][0-9]*) |
4baa087a RM |
5894 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
5895 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | |
5edb9387 | 5896 | |
4baa087a | 5897 | esac |
c6cb8783 SP |
5898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
5899 | printf "%s\n" "$ac_prog_version" >&6; } | |
5edb9387 | 5900 | fi |
4baa087a | 5901 | if test $ac_verc_fail = yes; then |
43ecc41d | 5902 | critic_missing="$critic_missing python" |
5edb9387 | 5903 | fi |
cd6ede75 | 5904 | |
43ecc41d AZ |
5905 | PYTHON="$PYTHON_PROG -B" |
5906 | ||
5907 | ||
5908 | test -n "$critic_missing" && as_fn_error $? " | |
5909 | *** These critical programs are missing or too old:$critic_missing | |
5910 | *** Check the INSTALL file for required versions." "$LINENO" 5 | |
5911 | ||
c6cb8783 | 5912 | test -n "$aux_missing" && { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
43ecc41d AZ |
5913 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
5914 | *** some features or tests will be disabled. | |
5915 | *** Check the INSTALL file for required versions." >&5 | |
c6cb8783 | 5916 | printf "%s\n" "$as_me: WARNING: |
43ecc41d AZ |
5917 | *** These auxiliary programs are missing or incompatible versions:$aux_missing |
5918 | *** some features or tests will be disabled. | |
5919 | *** Check the INSTALL file for required versions." >&2;} | |
5920 | ||
5921 | ||
5922 | # Determine whether to use fpu or nofpu sysdeps directories. | |
c6cb8783 SP |
5923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for use of fpu sysdeps directories" >&5 |
5924 | printf %s "checking for use of fpu sysdeps directories... " >&6; } | |
5925 | if test ${libc_cv_with_fp+y} | |
5926 | then : | |
5927 | printf %s "(cached) " >&6 | |
5928 | else $as_nop | |
43ecc41d AZ |
5929 | cat > conftest.c <<EOF |
5930 | #if $with_fp_cond | |
5931 | int dummy; | |
5932 | #else | |
5933 | # error "no hardware floating point" | |
5934 | #endif | |
5935 | EOF | |
5936 | libc_cv_with_fp=no | |
5937 | if ${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c -o conftest.s \ | |
5938 | 1>&5 2>&5 ; then | |
5939 | libc_cv_with_fp=yes | |
c4d23330 | 5940 | fi |
43ecc41d | 5941 | rm -f conftest* |
c4d23330 | 5942 | fi |
c6cb8783 SP |
5943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_with_fp" >&5 |
5944 | printf "%s\n" "$libc_cv_with_fp" >&6; } | |
43ecc41d AZ |
5945 | |
5946 | ||
c6cb8783 SP |
5947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5 |
5948 | printf %s "checking for -fstack-protector... " >&6; } | |
5949 | if test ${libc_cv_ssp+y} | |
5950 | then : | |
5951 | printf %s "(cached) " >&6 | |
5952 | else $as_nop | |
43ecc41d AZ |
5953 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null' |
5954 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5955 | (eval $ac_try) 2>&5 | |
5956 | ac_status=$? | |
c6cb8783 SP |
5957 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5958 | test $ac_status = 0; }; } | |
5959 | then : | |
43ecc41d | 5960 | libc_cv_ssp=yes |
c6cb8783 | 5961 | else $as_nop |
43ecc41d | 5962 | libc_cv_ssp=no |
c4d23330 RM |
5963 | fi |
5964 | ||
43ecc41d | 5965 | fi |
c6cb8783 SP |
5966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5 |
5967 | printf "%s\n" "$libc_cv_ssp" >&6; } | |
26f56c1c | 5968 | |
c6cb8783 SP |
5969 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5 |
5970 | printf %s "checking for -fstack-protector-strong... " >&6; } | |
5971 | if test ${libc_cv_ssp_strong+y} | |
5972 | then : | |
5973 | printf %s "(cached) " >&6 | |
5974 | else $as_nop | |
43ecc41d AZ |
5975 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null' |
5976 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5977 | (eval $ac_try) 2>&5 | |
5978 | ac_status=$? | |
c6cb8783 SP |
5979 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5980 | test $ac_status = 0; }; } | |
5981 | then : | |
43ecc41d | 5982 | libc_cv_ssp_strong=yes |
c6cb8783 | 5983 | else $as_nop |
43ecc41d | 5984 | libc_cv_ssp_strong=no |
c4d23330 | 5985 | fi |
43ecc41d | 5986 | |
c4d23330 | 5987 | fi |
c6cb8783 SP |
5988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5 |
5989 | printf "%s\n" "$libc_cv_ssp_strong" >&6; } | |
c4d23330 | 5990 | |
c6cb8783 SP |
5991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-all" >&5 |
5992 | printf %s "checking for -fstack-protector-all... " >&6; } | |
5993 | if test ${libc_cv_ssp_all+y} | |
5994 | then : | |
5995 | printf %s "(cached) " >&6 | |
5996 | else $as_nop | |
43ecc41d AZ |
5997 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-all -xc /dev/null -S -o /dev/null' |
5998 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5999 | (eval $ac_try) 2>&5 | |
6000 | ac_status=$? | |
c6cb8783 SP |
6001 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6002 | test $ac_status = 0; }; } | |
6003 | then : | |
43ecc41d | 6004 | libc_cv_ssp_all=yes |
c6cb8783 | 6005 | else $as_nop |
43ecc41d AZ |
6006 | libc_cv_ssp_all=no |
6007 | fi | |
0786794f AM |
6008 | |
6009 | fi | |
c6cb8783 SP |
6010 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_all" >&5 |
6011 | printf "%s\n" "$libc_cv_ssp_all" >&6; } | |
43ecc41d AZ |
6012 | |
6013 | stack_protector= | |
6014 | no_stack_protector= | |
6015 | if test "$libc_cv_ssp" = yes; then | |
6016 | no_stack_protector="-fno-stack-protector -DSTACK_PROTECTOR_LEVEL=0" | |
c6cb8783 | 6017 | printf "%s\n" "#define HAVE_CC_NO_STACK_PROTECTOR 1" >>confdefs.h |
43ecc41d | 6018 | |
0786794f | 6019 | fi |
43ecc41d AZ |
6020 | |
6021 | if test "$enable_stack_protector" = yes && test "$libc_cv_ssp" = yes; then | |
6022 | stack_protector="-fstack-protector" | |
c6cb8783 | 6023 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 1" >>confdefs.h |
43ecc41d AZ |
6024 | |
6025 | elif test "$enable_stack_protector" = all && test "$libc_cv_ssp_all" = yes; then | |
6026 | stack_protector="-fstack-protector-all" | |
c6cb8783 | 6027 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 2" >>confdefs.h |
43ecc41d AZ |
6028 | |
6029 | elif test "$enable_stack_protector" = strong && test "$libc_cv_ssp_strong" = yes; then | |
6030 | stack_protector="-fstack-protector-strong" | |
c6cb8783 | 6031 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 3" >>confdefs.h |
43ecc41d | 6032 | |
0786794f | 6033 | else |
43ecc41d | 6034 | stack_protector="-fno-stack-protector" |
c6cb8783 | 6035 | printf "%s\n" "#define STACK_PROTECTOR_LEVEL 0" >>confdefs.h |
43ecc41d | 6036 | |
0786794f AM |
6037 | fi |
6038 | ||
6039 | ||
0786794f | 6040 | |
43ecc41d AZ |
6041 | |
6042 | if test -n "$stack_protector"; then | |
6043 | no_ssp=-fno-stack-protector | |
0786794f | 6044 | else |
43ecc41d | 6045 | no_ssp= |
0786794f | 6046 | |
43ecc41d AZ |
6047 | if test "$enable_stack_protector" != no; then |
6048 | as_fn_error $? "--enable-stack-protector=$enable_stack_protector specified, but specified level of stack protection is not supported by the compiler." "$LINENO" 5 | |
6049 | fi | |
0786794f AM |
6050 | fi |
6051 | ||
43ecc41d | 6052 | # For the multi-arch option we need support in the assembler & linker. |
c6cb8783 SP |
6053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5 |
6054 | printf %s "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } | |
6055 | if test ${libc_cv_ld_gnu_indirect_function+y} | |
6056 | then : | |
6057 | printf %s "(cached) " >&6 | |
6058 | else $as_nop | |
43ecc41d AZ |
6059 | cat > conftest.S <<EOF |
6060 | .type foo,%gnu_indirect_function | |
6061 | foo: | |
6062 | .globl _start | |
6063 | _start: | |
6064 | .globl __start | |
6065 | __start: | |
6066 | .data | |
6067 | #ifdef _LP64 | |
6068 | .quad foo | |
6069 | #else | |
6070 | .long foo | |
6071 | #endif | |
6072 | EOF | |
6073 | libc_cv_ld_gnu_indirect_function=no | |
6074 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
6075 | -nostartfiles -nostdlib $no_ssp \ | |
6076 | -o conftest conftest.S 1>&5 2>&5; then | |
6077 | # Do a link to see if the backend supports IFUNC relocs. | |
6078 | $READELF -r conftest 1>&5 | |
6079 | LC_ALL=C $READELF -Wr conftest | grep -q 'IRELATIVE\|R_SPARC_JMP_IREL' && { | |
6080 | libc_cv_ld_gnu_indirect_function=yes | |
6081 | } | |
6082 | fi | |
6083 | rm -f conftest* | |
6084 | fi | |
c6cb8783 SP |
6085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5 |
6086 | printf "%s\n" "$libc_cv_ld_gnu_indirect_function" >&6; } | |
43ecc41d AZ |
6087 | |
6088 | # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro. | |
c6cb8783 SP |
6089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5 |
6090 | printf %s "checking for gcc attribute ifunc support... " >&6; } | |
6091 | if test ${libc_cv_gcc_indirect_function+y} | |
6092 | then : | |
6093 | printf %s "(cached) " >&6 | |
6094 | else $as_nop | |
43ecc41d AZ |
6095 | cat > conftest.c <<EOF |
6096 | extern int func (int); | |
6097 | int used_func (int a) | |
6098 | { | |
6099 | return a; | |
6100 | } | |
6101 | static void *resolver () | |
6102 | { | |
6103 | return &used_func; | |
6104 | } | |
6105 | extern __typeof (func) func __attribute__ ((ifunc ("resolver"))); | |
6106 | EOF | |
6107 | libc_cv_gcc_indirect_function=no | |
6108 | if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \ | |
6109 | 2>&5 ; then | |
6110 | if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then | |
6111 | libc_cv_gcc_indirect_function=yes | |
1faaf703 | 6112 | fi |
1faaf703 | 6113 | fi |
43ecc41d AZ |
6114 | rm -f conftest* |
6115 | fi | |
c6cb8783 SP |
6116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5 |
6117 | printf "%s\n" "$libc_cv_gcc_indirect_function" >&6; } | |
43ecc41d AZ |
6118 | |
6119 | # Check if linker supports textrel relocation with ifunc (used on elf/tests). | |
6120 | # Note that it relies on libc_cv_ld_gnu_indirect_function test above. | |
c6cb8783 SP |
6121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports textrels along with ifunc" >&5 |
6122 | printf %s "checking whether the linker supports textrels along with ifunc... " >&6; } | |
6123 | if test ${libc_cv_textrel_ifunc+y} | |
6124 | then : | |
6125 | printf %s "(cached) " >&6 | |
6126 | else $as_nop | |
43ecc41d AZ |
6127 | cat > conftest.S <<EOF |
6128 | .type foo,%gnu_indirect_function | |
6129 | foo: | |
6130 | .globl _start | |
6131 | _start: | |
6132 | .globl __start | |
6133 | __start: | |
6134 | .data | |
6135 | #ifdef _LP64 | |
6136 | .quad foo | |
6137 | #else | |
6138 | .long foo | |
6139 | #endif | |
6140 | .text | |
6141 | .globl address | |
6142 | address: | |
6143 | #ifdef _LP64 | |
6144 | .quad address | |
6145 | #else | |
6146 | .long address | |
6147 | #endif | |
6148 | EOF | |
6149 | libc_cv_textrel_ifunc=no | |
6150 | if test $libc_cv_ld_gnu_indirect_function = yes; then | |
6151 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostartfiles -nostdlib $no_ssp -pie -o conftest conftest.S' | |
6152 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6153 | (eval $ac_try) 2>&5 | |
6154 | ac_status=$? | |
c6cb8783 | 6155 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
43ecc41d AZ |
6156 | test $ac_status = 0; }; }; then |
6157 | libc_cv_textrel_ifunc=yes | |
6158 | fi | |
1faaf703 | 6159 | fi |
43ecc41d | 6160 | rm -f conftest* |
1faaf703 | 6161 | fi |
c6cb8783 SP |
6162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_textrel_ifunc" >&5 |
6163 | printf "%s\n" "$libc_cv_textrel_ifunc" >&6; } | |
1faaf703 JB |
6164 | |
6165 | ||
43ecc41d | 6166 | # Check if CC supports attribute retain as it is used in attribute_used_retain macro. |
c6cb8783 SP |
6167 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU attribute retain support" >&5 |
6168 | printf %s "checking for GNU attribute retain support... " >&6; } | |
6169 | if test ${libc_cv_gnu_retain+y} | |
6170 | then : | |
6171 | printf %s "(cached) " >&6 | |
6172 | else $as_nop | |
43ecc41d AZ |
6173 | cat > conftest.c <<EOF |
6174 | static int var __attribute__ ((used, retain, section ("__libc_atexit"))); | |
6175 | EOF | |
6176 | libc_cv_gnu_retain=no | |
6177 | if ${CC-cc} -Werror -c conftest.c -o /dev/null 1>&5 \ | |
6178 | 2>&5 ; then | |
6179 | libc_cv_gnu_retain=yes | |
1faaf703 | 6180 | fi |
43ecc41d | 6181 | rm -f conftest* |
1faaf703 | 6182 | fi |
c6cb8783 SP |
6183 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu_retain" >&5 |
6184 | printf "%s\n" "$libc_cv_gnu_retain" >&6; } | |
43ecc41d | 6185 | if test $libc_cv_gnu_retain = yes; then |
c6cb8783 | 6186 | printf "%s\n" "#define HAVE_GNU_RETAIN 1" >>confdefs.h |
1faaf703 | 6187 | |
43ecc41d AZ |
6188 | fi |
6189 | config_vars="$config_vars | |
6190 | have-gnu-retain = $libc_cv_gnu_retain" | |
4baa087a | 6191 | |
43ecc41d | 6192 | # Check if gcc warns about alias for function with incompatible types. |
c6cb8783 SP |
6193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler warns about alias for function with incompatible types" >&5 |
6194 | printf %s "checking if compiler warns about alias for function with incompatible types... " >&6; } | |
6195 | if test ${libc_cv_gcc_incompatible_alias+y} | |
6196 | then : | |
6197 | printf %s "(cached) " >&6 | |
6198 | else $as_nop | |
43ecc41d AZ |
6199 | cat > conftest.c <<EOF |
6200 | int __redirect_foo (const void *s, int c); | |
461a7b1e | 6201 | |
43ecc41d AZ |
6202 | __typeof (__redirect_foo) *foo_impl (void) __asm__ ("foo"); |
6203 | __typeof (__redirect_foo) *foo_impl (void) | |
461a7b1e | 6204 | { |
461a7b1e RM |
6205 | return 0; |
6206 | } | |
43ecc41d AZ |
6207 | |
6208 | extern __typeof (__redirect_foo) foo_alias __attribute__ ((alias ("foo"))); | |
6209 | EOF | |
6210 | libc_cv_gcc_incompatible_alias=yes | |
6211 | if ${CC-cc} -Werror -c conftest.c -o conftest.o 1>&5 2>&5 ; then | |
6212 | libc_cv_gcc_incompatible_alias=no | |
461a7b1e | 6213 | fi |
43ecc41d | 6214 | rm -f conftest* |
461a7b1e | 6215 | fi |
c6cb8783 SP |
6216 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_incompatible_alias" >&5 |
6217 | printf "%s\n" "$libc_cv_gcc_incompatible_alias" >&6; } | |
461a7b1e | 6218 | |
43ecc41d AZ |
6219 | if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then |
6220 | if test x"$multi_arch" = xyes; then | |
6221 | as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5 | |
6222 | else | |
6223 | multi_arch=no | |
30b99d79 | 6224 | fi |
30b99d79 | 6225 | fi |
43ecc41d AZ |
6226 | if test x"$libc_cv_gcc_indirect_function" != xyes; then |
6227 | # GCC 8+ emits a warning for alias with incompatible types and it might | |
6228 | # fail to build ifunc resolvers aliases to either weak or internal | |
6229 | # symbols. Disables multiarch build in this case. | |
6230 | if test x"$libc_cv_gcc_incompatible_alias" = xyes; then | |
c6cb8783 SP |
6231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: gcc emits a warning for alias between functions of incompatible types" >&5 |
6232 | printf "%s\n" "$as_me: WARNING: gcc emits a warning for alias between functions of incompatible types" >&2;} | |
43ecc41d AZ |
6233 | if test x"$multi_arch" = xyes; then |
6234 | as_fn_error $? "--enable-multi-arch support requires a gcc with gnu-indirect-function support" "$LINENO" 5 | |
6235 | fi | |
c6cb8783 SP |
6236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Multi-arch is disabled." >&5 |
6237 | printf "%s\n" "$as_me: WARNING: Multi-arch is disabled." >&2;} | |
43ecc41d AZ |
6238 | multi_arch=no |
6239 | elif test x"$multi_arch" = xyes; then | |
c6cb8783 | 6240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. |
43ecc41d | 6241 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5 |
c6cb8783 | 6242 | printf "%s\n" "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support. |
43ecc41d AZ |
6243 | Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;} |
6244 | fi | |
30b99d79 | 6245 | fi |
43ecc41d AZ |
6246 | multi_arch_d= |
6247 | if test x"$multi_arch" != xno; then | |
6248 | multi_arch_d=/multiarch | |
30b99d79 RM |
6249 | fi |
6250 | ||
43ecc41d AZ |
6251 | # Compute the list of sysdep directories for this configuration. |
6252 | # This can take a while to compute. | |
6253 | sysdep_dir=$srcdir/sysdeps | |
c6cb8783 SP |
6254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5 |
6255 | printf %s "checking sysdep dirs... " >&6; } | |
43ecc41d AZ |
6256 | # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. |
6257 | os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" | |
6258 | ||
6259 | test "x$base_os" != x || case "$os" in | |
6260 | gnu*) | |
6261 | base_os=mach/hurd ;; | |
6262 | linux*) | |
6263 | base_os=unix/sysv ;; | |
6264 | esac | |
30b99d79 | 6265 | |
43ecc41d AZ |
6266 | # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos. |
6267 | tail=$os | |
6268 | ostry=$os | |
6269 | while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do | |
6270 | ostry="$ostry /$o" | |
6271 | tail=$o | |
6272 | done | |
6273 | o=`echo $tail | sed 's/[0-9]*$//'` | |
6274 | if test $o != $tail; then | |
6275 | ostry="$ostry /$o" | |
30b99d79 | 6276 | fi |
43ecc41d AZ |
6277 | # For linux-gnu, try linux-gnu, then linux. |
6278 | o=`echo $tail | sed 's/-.*$//'` | |
6279 | if test $o != $tail; then | |
6280 | ostry="$ostry /$o" | |
6281 | fi | |
6282 | ||
6283 | # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix. | |
6284 | base= | |
6285 | tail=$base_os | |
6286 | while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do | |
6287 | set $b | |
6288 | base="$base /$1" | |
6289 | tail="$2" | |
6290 | done | |
6291 | ||
6292 | # For sparc/sparc32, try sparc/sparc32 and then sparc. | |
6293 | mach= | |
6294 | tail=$machine${submachine:+/$submachine} | |
6295 | while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do | |
6296 | set $m | |
6297 | # Prepend the machine's FPU directory unless the architecture specific | |
6298 | # preconfigure disables it. | |
6299 | if test "$libc_cv_with_fp" = yes; then | |
6300 | maybe_fpu=/fpu | |
6301 | else | |
6302 | maybe_fpu=/nofpu | |
30b99d79 | 6303 | fi |
43ecc41d AZ |
6304 | # For each machine term, try it with and then without /multiarch. |
6305 | for try_fpu in $maybe_fpu ''; do | |
6306 | for try_multi in $multi_arch_d ''; do | |
6307 | mach="$mach /$1$try_fpu$try_multi" | |
6308 | done | |
6309 | done | |
6310 | tail="$2" | |
30b99d79 | 6311 | done |
43ecc41d AZ |
6312 | |
6313 | ||
6314 | # Find what sysdep directories exist. | |
6315 | sysnames= | |
6316 | for b in $base ''; do | |
6317 | for m0 in $mach ''; do | |
6318 | for v in /$vendor ''; do | |
6319 | test "$v" = / && continue | |
6320 | for o in /$ostry ''; do | |
6321 | test "$o" = / && continue | |
6322 | for m in $mach ''; do | |
6323 | try_suffix="$m0$b$v$o$m" | |
6324 | if test -n "$try_suffix"; then | |
6325 | try_srcdir="${srcdir}/" | |
6326 | try="sysdeps$try_suffix" | |
6327 | test -n "$enable_debug_configure" && | |
6328 | echo "$0 DEBUG: try $try" >&2 | |
6329 | if test -d "$try_srcdir$try"; then | |
6330 | sysnames="$sysnames $try" | |
6331 | { test -n "$o" || test -n "$b"; } && os_used=t | |
6332 | { test -n "$m" || test -n "$m0"; } && machine_used=t | |
6333 | case x${m0:-$m} in | |
6334 | x*/$submachine) submachine_used=t ;; | |
6335 | esac | |
6336 | fi | |
6337 | fi | |
6338 | done | |
6339 | done | |
6340 | done | |
30b99d79 | 6341 | done |
43ecc41d | 6342 | done |
30b99d79 | 6343 | |
43ecc41d AZ |
6344 | # If the assembler supports gnu_indirect_function symbol type and the |
6345 | # architecture supports multi-arch, we enable multi-arch by default. | |
6346 | case $sysnames in | |
6347 | *"$multi_arch_d"*) | |
6348 | ;; | |
6349 | *) | |
6350 | test x"$multi_arch" = xdefault && multi_arch=no | |
6351 | ;; | |
30b99d79 | 6352 | esac |
43ecc41d | 6353 | if test x"$multi_arch" != xno; then |
c6cb8783 | 6354 | printf "%s\n" "#define USE_MULTIARCH 1" >>confdefs.h |
30b99d79 | 6355 | |
43ecc41d | 6356 | fi |
d30cf5bb | 6357 | |
c4d23330 | 6358 | |
43ecc41d AZ |
6359 | if test -z "$os_used" && test "$os" != none; then |
6360 | as_fn_error $? "Operating system $os is not supported." "$LINENO" 5 | |
c4d23330 | 6361 | fi |
43ecc41d AZ |
6362 | if test -z "$machine_used" && test "$machine" != none; then |
6363 | as_fn_error $? "The $machine is not supported." "$LINENO" 5 | |
c4d23330 | 6364 | fi |
43ecc41d AZ |
6365 | if test -z "$submachine_used" && test -n "$submachine"; then |
6366 | as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5 | |
c4d23330 RM |
6367 | fi |
6368 | ||
26f56c1c | 6369 | |
43ecc41d | 6370 | # We have now validated the configuration. |
c4d23330 | 6371 | |
43ecc41d AZ |
6372 | # Expand the list of system names into a full list of directories |
6373 | # from each element's parent name and Implies file (if present). | |
6374 | set $sysnames | |
6375 | names= | |
6376 | while test $# -gt 0; do | |
6377 | name=$1 | |
6378 | shift | |
6379 | ||
6380 | case " $names " in *" $name "*) | |
6381 | # Already in the list. | |
6382 | continue | |
8894bad3 | 6383 | esac |
c4d23330 | 6384 | |
43ecc41d AZ |
6385 | # Report each name as we discover it, so there is no long pause in output. |
6386 | echo $ECHO_N "$name $ECHO_C" >&6 | |
8ce8299f | 6387 | |
43ecc41d | 6388 | name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'` |
8ce8299f | 6389 | |
43ecc41d AZ |
6390 | case $name in |
6391 | /*) xsrcdir= ;; | |
6392 | *) xsrcdir=$srcdir/ ;; | |
6393 | esac | |
6394 | test -n "$enable_debug_configure" && | |
6395 | echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2 | |
8ce8299f | 6396 | |
43ecc41d AZ |
6397 | for implies_file in Implies Implies-before Implies-after; do |
6398 | implies_type=`echo $implies_file | sed s/-/_/` | |
6399 | eval ${implies_type}= | |
6400 | if test -f $xsrcdir$name/$implies_file; then | |
6401 | # Collect more names from the `Implies' file (removing comments). | |
6402 | implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`" | |
6403 | for x in $implied_candidate; do | |
6404 | found=no | |
6405 | if test -d $xsrcdir$name_base/$x; then | |
6406 | eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\"" | |
6407 | found=yes | |
6408 | fi | |
6409 | try="sysdeps/$x" | |
6410 | try_srcdir=$srcdir/ | |
6411 | test -n "$enable_debug_configure" && | |
6412 | echo "DEBUG: $name $implies_file $x try() {$try_srcdir}$try" >&2 | |
6413 | if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try; | |
6414 | then | |
6415 | eval "${implies_type}=\"\$${implies_type} \$try\"" | |
6416 | found=yes | |
6417 | fi | |
6418 | if test $found = no; then | |
c6cb8783 SP |
6419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5 |
6420 | printf "%s\n" "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;} | |
43ecc41d AZ |
6421 | fi |
6422 | done | |
6423 | fi | |
6424 | done | |
8ce8299f | 6425 | |
43ecc41d AZ |
6426 | # Add NAME to the list of names. |
6427 | names="$names $name" | |
8ce8299f | 6428 | |
43ecc41d AZ |
6429 | # Find the parent of NAME, using the empty string if it has none. |
6430 | parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`" | |
c6982f7e | 6431 | |
43ecc41d AZ |
6432 | test -n "$enable_debug_configure" && |
6433 | echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \ | |
6434 | Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2 | |
c6982f7e | 6435 | |
43ecc41d AZ |
6436 | # Add the names implied by NAME, and NAME's parent (if it has one), to |
6437 | # the list of names to be processed (the argument list). We prepend the | |
6438 | # implied names to the list and append the parent. We want implied | |
6439 | # directories to come before further directories inferred from the | |
6440 | # configuration components; this ensures that for sysv4, unix/common | |
6441 | # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*) | |
6442 | # after sysv4). | |
6443 | sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`" | |
6444 | test -n "$sysnames" && set $sysnames | |
6445 | done | |
8ce8299f | 6446 | |
43ecc41d AZ |
6447 | # Add the default directories. |
6448 | default_sysnames="sysdeps/generic" | |
6449 | sysnames="$names $default_sysnames" | |
32a448ed | 6450 | |
43ecc41d | 6451 | # The other names were emitted during the scan. |
c6cb8783 SP |
6452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5 |
6453 | printf "%s\n" "$default_sysnames" >&6; } | |
ea9f119b | 6454 | |
3c720987 UD |
6455 | # if using special system headers, find out the compiler's sekrit |
6456 | # header directory and add that to the list. NOTE: Only does the right | |
6457 | # thing on a system that doesn't need fixincludes. (Not presently a problem.) | |
6458 | if test -n "$sysheaders"; then | |
67fbfa5c RM |
6459 | SYSINCLUDES=-nostdinc |
6460 | for d in include include-fixed; do | |
22dca1ea | 6461 | i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" && |
67fbfa5c RM |
6462 | SYSINCLUDES="$SYSINCLUDES -isystem $i" |
6463 | done | |
6464 | SYSINCLUDES="$SYSINCLUDES \ | |
3d6ce23a | 6465 | -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" |
ef226fec | 6466 | if test -n "$CXX"; then |
7872cfb0 | 6467 | CXX_SYSINCLUDES= |
67060746 AC |
6468 | for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \ |
6469 | | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do | |
6470 | test "x$cxxheaders" != x && | |
6471 | CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders" | |
6472 | done | |
ef226fec | 6473 | fi |
3c720987 UD |
6474 | fi |
6475 | ||
6476 | ||
ef226fec | 6477 | |
fc3e1337 FW |
6478 | # Obtain some C++ header file paths. This is used to make a local |
6479 | # copy of those headers in Makerules. | |
6480 | if test -n "$CXX"; then | |
6481 | find_cxx_header () { | |
596183a1 AZ |
6482 | echo "#include <$1>" | $CXX -H -fsyntax-only -x c++ - 2>&1 \ |
6483 | | $AWK '$1 == "."{print $2}' | |
fc3e1337 FW |
6484 | } |
6485 | CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)" | |
6486 | CXX_CMATH_HEADER="$(find_cxx_header cmath)" | |
a65ea28d | 6487 | CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)" |
fc3e1337 FW |
6488 | fi |
6489 | ||
6490 | ||
6491 | ||
a65ea28d | 6492 | |
3911660e UD |
6493 | # Test if LD_LIBRARY_PATH contains the notation for the current directory |
6494 | # since this would lead to problems installing/building glibc. | |
6495 | # LD_LIBRARY_PATH contains the current directory if one of the following | |
6496 | # is true: | |
6497 | # - one of the terminals (":" and ";") is the first or last sign | |
6498 | # - two terminals occur directly after each other | |
6499 | # - the path contains an element with a dot in it | |
c6cb8783 SP |
6500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5 |
6501 | printf %s "checking LD_LIBRARY_PATH variable... " >&6; } | |
3911660e UD |
6502 | case ${LD_LIBRARY_PATH} in |
6503 | [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) | |
b3a86ae1 | 6504 | ld_library_path_setting="contains current directory" |
3911660e UD |
6505 | ;; |
6506 | *) | |
6507 | ld_library_path_setting="ok" | |
6508 | ;; | |
6509 | esac | |
c6cb8783 SP |
6510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5 |
6511 | printf "%s\n" "$ld_library_path_setting" >&6; } | |
3911660e | 6512 | if test "$ld_library_path_setting" != "ok"; then |
4a531bb0 | 6513 | as_fn_error $? " |
3a12e572 UD |
6514 | *** LD_LIBRARY_PATH shouldn't contain the current directory when |
6515 | *** building glibc. Please change the environment variable | |
b08c89d9 | 6516 | *** and run configure again." "$LINENO" 5 |
3911660e UD |
6517 | fi |
6518 | ||
cd6ede75 UD |
6519 | # Extract the first word of "bash", so it can be a program name with args. |
6520 | set dummy bash; ac_word=$2 | |
c6cb8783 SP |
6521 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6522 | printf %s "checking for $ac_word... " >&6; } | |
6523 | if test ${ac_cv_path_BASH_SHELL+y} | |
6524 | then : | |
6525 | printf %s "(cached) " >&6 | |
6526 | else $as_nop | |
26f56c1c | 6527 | case $BASH_SHELL in |
3a12e572 | 6528 | [\\/]* | ?:[\\/]*) |
26f56c1c | 6529 | ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path. |
cd6ede75 UD |
6530 | ;; |
6531 | *) | |
3a12e572 UD |
6532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6533 | for as_dir in $PATH | |
6534 | do | |
6535 | IFS=$as_save_IFS | |
c6cb8783 SP |
6536 | case $as_dir in #((( |
6537 | '') as_dir=./ ;; | |
6538 | */) ;; | |
6539 | *) as_dir=$as_dir/ ;; | |
6540 | esac | |
b08c89d9 | 6541 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
6542 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6543 | ac_cv_path_BASH_SHELL="$as_dir$ac_word$ac_exec_ext" | |
6544 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3a12e572 UD |
6545 | break 2 |
6546 | fi | |
6547 | done | |
b08c89d9 | 6548 | done |
26f56c1c | 6549 | IFS=$as_save_IFS |
3a12e572 | 6550 | |
26f56c1c | 6551 | test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no" |
cd6ede75 UD |
6552 | ;; |
6553 | esac | |
6554 | fi | |
26f56c1c UD |
6555 | BASH_SHELL=$ac_cv_path_BASH_SHELL |
6556 | if test -n "$BASH_SHELL"; then | |
c6cb8783 SP |
6557 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5 |
6558 | printf "%s\n" "$BASH_SHELL" >&6; } | |
cd6ede75 | 6559 | else |
c6cb8783 SP |
6560 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6561 | printf "%s\n" "no" >&6; } | |
cd6ede75 UD |
6562 | fi |
6563 | ||
26f56c1c | 6564 | |
cd6ede75 | 6565 | |
c0016081 UD |
6566 | # Extract the first word of "perl", so it can be a program name with args. |
6567 | set dummy perl; ac_word=$2 | |
c6cb8783 SP |
6568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6569 | printf %s "checking for $ac_word... " >&6; } | |
6570 | if test ${ac_cv_path_PERL+y} | |
6571 | then : | |
6572 | printf %s "(cached) " >&6 | |
6573 | else $as_nop | |
3a12e572 UD |
6574 | case $PERL in |
6575 | [\\/]* | ?:[\\/]*) | |
a2b08ee5 UD |
6576 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
6577 | ;; | |
6578 | *) | |
3a12e572 UD |
6579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6580 | for as_dir in $PATH | |
6581 | do | |
6582 | IFS=$as_save_IFS | |
c6cb8783 SP |
6583 | case $as_dir in #((( |
6584 | '') as_dir=./ ;; | |
6585 | */) ;; | |
6586 | *) as_dir=$as_dir/ ;; | |
6587 | esac | |
b08c89d9 | 6588 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
6589 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6590 | ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext" | |
6591 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3a12e572 UD |
6592 | break 2 |
6593 | fi | |
6594 | done | |
b08c89d9 | 6595 | done |
26f56c1c | 6596 | IFS=$as_save_IFS |
3a12e572 | 6597 | |
c0016081 | 6598 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no" |
a2b08ee5 UD |
6599 | ;; |
6600 | esac | |
6601 | fi | |
3a12e572 | 6602 | PERL=$ac_cv_path_PERL |
a2b08ee5 | 6603 | if test -n "$PERL"; then |
c6cb8783 SP |
6604 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
6605 | printf "%s\n" "$PERL" >&6; } | |
a2b08ee5 | 6606 | else |
c6cb8783 SP |
6607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6608 | printf "%s\n" "no" >&6; } | |
a2b08ee5 UD |
6609 | fi |
6610 | ||
26f56c1c | 6611 | |
2fd5d029 RM |
6612 | if test "$PERL" != no && |
6613 | (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then | |
6614 | PERL=no | |
fc304e02 | 6615 | fi |
c0016081 UD |
6616 | # Extract the first word of "install-info", so it can be a program name with args. |
6617 | set dummy install-info; ac_word=$2 | |
c6cb8783 SP |
6618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6619 | printf %s "checking for $ac_word... " >&6; } | |
6620 | if test ${ac_cv_path_INSTALL_INFO+y} | |
6621 | then : | |
6622 | printf %s "(cached) " >&6 | |
6623 | else $as_nop | |
3a12e572 UD |
6624 | case $INSTALL_INFO in |
6625 | [\\/]* | ?:[\\/]*) | |
c0016081 UD |
6626 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
6627 | ;; | |
6628 | *) | |
3a12e572 | 6629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f4b07664 RM |
6630 | as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
6631 | for as_dir in $as_dummy | |
3a12e572 UD |
6632 | do |
6633 | IFS=$as_save_IFS | |
c6cb8783 SP |
6634 | case $as_dir in #((( |
6635 | '') as_dir=./ ;; | |
6636 | */) ;; | |
6637 | *) as_dir=$as_dir/ ;; | |
6638 | esac | |
b08c89d9 | 6639 | for ac_exec_ext in '' $ac_executable_extensions; do |
c6cb8783 SP |
6640 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
6641 | ac_cv_path_INSTALL_INFO="$as_dir$ac_word$ac_exec_ext" | |
6642 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3a12e572 UD |
6643 | break 2 |
6644 | fi | |
6645 | done | |
b08c89d9 | 6646 | done |
26f56c1c | 6647 | IFS=$as_save_IFS |
3a12e572 | 6648 | |
c0016081 UD |
6649 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no" |
6650 | ;; | |
6651 | esac | |
6652 | fi | |
3a12e572 | 6653 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
c0016081 | 6654 | if test -n "$INSTALL_INFO"; then |
c6cb8783 SP |
6655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
6656 | printf "%s\n" "$INSTALL_INFO" >&6; } | |
c0016081 | 6657 | else |
c6cb8783 SP |
6658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6659 | printf "%s\n" "no" >&6; } | |
c0016081 UD |
6660 | fi |
6661 | ||
26f56c1c | 6662 | |
26f56c1c | 6663 | |
c6cb8783 SP |
6664 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5 |
6665 | printf %s "checking for .set assembler directive... " >&6; } | |
6666 | if test ${libc_cv_asm_set_directive+y} | |
6667 | then : | |
6668 | printf %s "(cached) " >&6 | |
6669 | else $as_nop | |
cd6ede75 | 6670 | cat > conftest.s <<EOF |
8c0c01db | 6671 | .text |
cd6ede75 UD |
6672 | foo: |
6673 | .set glibc_conftest_frobozz,foo | |
7b8e0d49 | 6674 | .globl glibc_conftest_frobozz |
cd6ede75 UD |
6675 | EOF |
6676 | # The alpha-dec-osf1 assembler gives only a warning for `.set' | |
6677 | # (but it doesn't work), so we must do a linking check to be sure. | |
6678 | cat > conftest1.c <<\EOF | |
6679 | extern int glibc_conftest_frobozz; | |
640f0119 | 6680 | void _start() { glibc_conftest_frobozz = 1; } |
cd6ede75 UD |
6681 | EOF |
6682 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ | |
66a704c4 | 6683 | -nostartfiles -nostdlib $no_ssp \ |
cd6ede75 UD |
6684 | -o conftest conftest.s conftest1.c 1>&5 2>&5; then |
6685 | libc_cv_asm_set_directive=yes | |
6686 | else | |
6687 | libc_cv_asm_set_directive=no | |
6688 | fi | |
6689 | rm -f conftest* | |
6690 | fi | |
c6cb8783 SP |
6691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5 |
6692 | printf "%s\n" "$libc_cv_asm_set_directive" >&6; } | |
cd6ede75 | 6693 | if test $libc_cv_asm_set_directive = yes; then |
c6cb8783 | 6694 | printf "%s\n" "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h |
cd6ede75 UD |
6695 | |
6696 | fi | |
6697 | ||
c6cb8783 SP |
6698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5 |
6699 | printf %s "checking linker support for protected data symbol... " >&6; } | |
6700 | if test ${libc_cv_protected_data+y} | |
6701 | then : | |
6702 | printf %s "(cached) " >&6 | |
6703 | else $as_nop | |
83569fb8 | 6704 | cat > conftest.c <<EOF |
2a723ff6 | 6705 | int bar __attribute__ ((visibility ("protected"))) = 1; |
83569fb8 | 6706 | EOF |
2a723ff6 | 6707 | libc_cv_protected_data=no |
66a704c4 | 6708 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -o conftest.so' |
83569fb8 L |
6709 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6710 | (eval $ac_try) 2>&5 | |
6711 | ac_status=$? | |
c6cb8783 | 6712 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83569fb8 | 6713 | test $ac_status = 0; }; }; then |
2a723ff6 JM |
6714 | cat > conftest.c <<EOF |
6715 | extern int bar; | |
6716 | int main (void) { return bar; } | |
83569fb8 | 6717 | EOF |
66a704c4 | 6718 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so' |
83569fb8 L |
6719 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6720 | (eval $ac_try) 2>&5 | |
6721 | ac_status=$? | |
c6cb8783 | 6722 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83569fb8 | 6723 | test $ac_status = 0; }; }; then |
2a723ff6 | 6724 | libc_cv_protected_data=yes |
83569fb8 | 6725 | fi |
2a723ff6 JM |
6726 | fi |
6727 | rm -f conftest.* | |
83569fb8 L |
6728 | |
6729 | fi | |
c6cb8783 SP |
6730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5 |
6731 | printf "%s\n" "$libc_cv_protected_data" >&6; } | |
83569fb8 L |
6732 | |
6733 | ||
c6cb8783 SP |
6734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking linker support for INSERT in linker script" >&5 |
6735 | printf %s "checking linker support for INSERT in linker script... " >&6; } | |
6736 | if test ${libc_cv_insert+y} | |
6737 | then : | |
6738 | printf %s "(cached) " >&6 | |
6739 | else $as_nop | |
19f1a11e | 6740 | cat > conftest.c <<EOF |
5f07d47e | 6741 | int __attribute__ ((section(".bar"))) bar = 0x12345678; |
19f1a11e L |
6742 | int test (void) { return bar; } |
6743 | EOF | |
6744 | cat > conftest.t <<EOF | |
6745 | SECTIONS | |
6746 | { | |
6747 | .bar : { *(.bar) } | |
6748 | } | |
6749 | INSERT AFTER .rela.dyn; | |
6750 | EOF | |
6751 | libc_cv_insert=no | |
6752 | if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp -fPIC -shared conftest.c -Wl,-T,conftest.t -o conftest.so' | |
6753 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
6754 | (eval $ac_try) 2>&5 | |
6755 | ac_status=$? | |
c6cb8783 | 6756 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
19f1a11e L |
6757 | test $ac_status = 0; }; }; then |
6758 | libc_cv_insert=yes | |
6759 | fi | |
6760 | rm -f conftest.* | |
6761 | ||
6762 | fi | |
c6cb8783 SP |
6763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_insert" >&5 |
6764 | printf "%s\n" "$libc_cv_insert" >&6; } | |
19f1a11e L |
6765 | |
6766 | ||
c6cb8783 SP |
6767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5 |
6768 | printf %s "checking for broken __attribute__((alias()))... " >&6; } | |
6769 | if test ${libc_cv_broken_alias_attribute+y} | |
6770 | then : | |
6771 | printf %s "(cached) " >&6 | |
6772 | else $as_nop | |
37ba7d66 | 6773 | cat > conftest.c <<EOF |
a0da5fe1 UD |
6774 | extern int foo (int x) __asm ("xyzzy"); |
6775 | int bar (int x) { return x; } | |
6776 | extern __typeof (bar) foo __attribute ((weak, alias ("bar"))); | |
6777 | extern int dfoo; | |
6778 | extern __typeof (dfoo) dfoo __asm ("abccb"); | |
6779 | int dfoo = 1; | |
37ba7d66 | 6780 | EOF |
a0da5fe1 UD |
6781 | libc_cv_broken_alias_attribute=yes |
6782 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
b08c89d9 | 6783 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
61cea1c3 RM |
6784 | (eval $ac_try) 2>&5 |
6785 | ac_status=$? | |
c6cb8783 | 6786 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6787 | test $ac_status = 0; }; }; then |
a0da5fe1 UD |
6788 | if grep 'xyzzy' conftest.s >/dev/null && |
6789 | grep 'abccb' conftest.s >/dev/null; then | |
6790 | libc_cv_broken_alias_attribute=no | |
6791 | fi | |
6792 | fi | |
6793 | rm -f conftest.c conftest.s | |
37ba7d66 | 6794 | |
3a12e572 | 6795 | fi |
c6cb8783 SP |
6796 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5 |
6797 | printf "%s\n" "$libc_cv_broken_alias_attribute" >&6; } | |
a0da5fe1 UD |
6798 | if test $libc_cv_broken_alias_attribute = yes; then |
6799 | as_fn_error $? "working alias attribute support required" "$LINENO" 5 | |
6800 | fi | |
37ba7d66 | 6801 | |
c6cb8783 SP |
6802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5 |
6803 | printf %s "checking whether to put _rtld_local into .sdata section... " >&6; } | |
6804 | if test ${libc_cv_have_sdata_section+y} | |
6805 | then : | |
6806 | printf %s "(cached) " >&6 | |
6807 | else $as_nop | |
0d01dace | 6808 | echo "int i;" > conftest.c |
2a723ff6 JM |
6809 | libc_cv_have_sdata_section=no |
6810 | if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \ | |
6811 | | grep '\.sdata' >/dev/null; then | |
6812 | libc_cv_have_sdata_section=yes | |
6813 | fi | |
6814 | rm -f conftest.c conftest.so | |
0d01dace | 6815 | |
3a12e572 | 6816 | fi |
c6cb8783 SP |
6817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5 |
6818 | printf "%s\n" "$libc_cv_have_sdata_section" >&6; } | |
2a723ff6 | 6819 | if test $libc_cv_have_sdata_section = yes; then |
c6cb8783 | 6820 | printf "%s\n" "#define HAVE_SDATA_SECTION 1" >>confdefs.h |
0d01dace | 6821 | |
a0da5fe1 | 6822 | fi |
0d01dace | 6823 | |
c6cb8783 SP |
6824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5 |
6825 | printf %s "checking for libunwind-support in compiler... " >&6; } | |
6826 | if test ${libc_cv_cc_with_libunwind+y} | |
6827 | then : | |
6828 | printf %s "(cached) " >&6 | |
6829 | else $as_nop | |
c776b3d7 | 6830 | |
a0da5fe1 | 6831 | cat > conftest.c <<EOF |
cbdb12de UD |
6832 | int main (void) { return 0; } |
6833 | EOF | |
a0da5fe1 | 6834 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ |
8175a253 | 6835 | conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then |
a0da5fe1 UD |
6836 | libc_cv_cc_with_libunwind=yes |
6837 | else | |
6838 | libc_cv_cc_with_libunwind=no | |
6839 | fi | |
6840 | rm -f conftest* | |
c776b3d7 | 6841 | fi |
c6cb8783 SP |
6842 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5 |
6843 | printf "%s\n" "$libc_cv_cc_with_libunwind" >&6; } | |
c776b3d7 | 6844 | |
a0da5fe1 | 6845 | if test $libc_cv_cc_with_libunwind = yes; then |
c6cb8783 | 6846 | printf "%s\n" "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h |
c776b3d7 | 6847 | |
a0da5fe1 | 6848 | fi |
c776b3d7 | 6849 | |
a0da5fe1 | 6850 | ASFLAGS_config= |
c6cb8783 SP |
6851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5 |
6852 | printf %s "checking whether --noexecstack is desirable for .S files... " >&6; } | |
6853 | if test ${libc_cv_as_noexecstack+y} | |
6854 | then : | |
6855 | printf %s "(cached) " >&6 | |
6856 | else $as_nop | |
a0da5fe1 | 6857 | cat > conftest.c <<EOF |
35915ec8 UD |
6858 | void foo (void) { } |
6859 | EOF | |
a0da5fe1 UD |
6860 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS |
6861 | -S -o conftest.s conftest.c 1>&5' | |
b08c89d9 | 6862 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
6863 | (eval $ac_try) 2>&5 |
6864 | ac_status=$? | |
c6cb8783 | 6865 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6866 | test $ac_status = 0; }; } \ |
8175a253 | 6867 | && grep .note.GNU-stack conftest.s >/dev/null \ |
a0da5fe1 UD |
6868 | && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack |
6869 | -c -o conftest.o conftest.s 1>&5' | |
b08c89d9 | 6870 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
35915ec8 UD |
6871 | (eval $ac_try) 2>&5 |
6872 | ac_status=$? | |
c6cb8783 | 6873 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6874 | test $ac_status = 0; }; } |
a0da5fe1 UD |
6875 | then |
6876 | libc_cv_as_noexecstack=yes | |
6877 | else | |
6878 | libc_cv_as_noexecstack=no | |
6879 | fi | |
6880 | rm -f conftest* | |
35915ec8 | 6881 | fi |
c6cb8783 SP |
6882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5 |
6883 | printf "%s\n" "$libc_cv_as_noexecstack" >&6; } | |
a0da5fe1 UD |
6884 | if test $libc_cv_as_noexecstack = yes; then |
6885 | ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack" | |
6886 | fi | |
35915ec8 | 6887 | |
2abf9ff1 | 6888 | |
c6cb8783 SP |
6889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5 |
6890 | printf %s "checking for linker that supports -z execstack... " >&6; } | |
6bfea974 | 6891 | libc_linker_feature=no |
6cfc50f4 | 6892 | cat > conftest.c <<EOF |
2abf9ff1 RM |
6893 | int _start (void) { return 42; } |
6894 | EOF | |
6cfc50f4 AZ |
6895 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6896 | -Wl,-z,execstack -nostdlib -nostartfiles | |
6897 | -fPIC -shared -o conftest.so conftest.c | |
6898 | 1>&5' | |
b08c89d9 | 6899 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2abf9ff1 RM |
6900 | (eval $ac_try) 2>&5 |
6901 | ac_status=$? | |
c6cb8783 | 6902 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 6903 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6904 | then |
6905 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,execstack -nostdlib \ | |
6906 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6907 | | grep "warning: -z execstack ignored" > /dev/null 2>&1; then | |
6908 | true | |
6909 | else | |
6910 | libc_linker_feature=yes | |
6bfea974 L |
6911 | fi |
6912 | fi | |
6cfc50f4 | 6913 | rm -f conftest* |
6bfea974 | 6914 | if test $libc_linker_feature = yes; then |
a0da5fe1 UD |
6915 | libc_cv_z_execstack=yes |
6916 | else | |
6917 | libc_cv_z_execstack=no | |
6918 | fi | |
c6cb8783 SP |
6919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6920 | printf "%s\n" "$libc_linker_feature" >&6; } | |
cd6ede75 | 6921 | |
0f124303 | 6922 | |
c6cb8783 SP |
6923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z start-stop-gc" >&5 |
6924 | printf %s "checking for linker that supports -z start-stop-gc... " >&6; } | |
cd6ae7ea | 6925 | libc_linker_feature=no |
6cfc50f4 | 6926 | cat > conftest.c <<EOF |
cd6ae7ea FS |
6927 | int _start (void) { return 42; } |
6928 | EOF | |
6cfc50f4 AZ |
6929 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6930 | -Wl,-z,start-stop-gc -nostdlib -nostartfiles | |
6931 | -fPIC -shared -o conftest.so conftest.c | |
6932 | 1>&5' | |
cd6ae7ea FS |
6933 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6934 | (eval $ac_try) 2>&5 | |
6935 | ac_status=$? | |
c6cb8783 | 6936 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
cd6ae7ea | 6937 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6938 | then |
6939 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,start-stop-gc -nostdlib \ | |
6940 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6941 | | grep "warning: -z start-stop-gc ignored" > /dev/null 2>&1; then | |
6942 | true | |
6943 | else | |
6944 | libc_linker_feature=yes | |
cd6ae7ea FS |
6945 | fi |
6946 | fi | |
6cfc50f4 | 6947 | rm -f conftest* |
cd6ae7ea FS |
6948 | if test $libc_linker_feature = yes; then |
6949 | libc_cv_z_start_stop_gc=yes | |
6950 | else | |
6951 | libc_cv_z_start_stop_gc=no | |
6952 | fi | |
c6cb8783 SP |
6953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6954 | printf "%s\n" "$libc_linker_feature" >&6; } | |
cd6ae7ea FS |
6955 | config_vars="$config_vars |
6956 | have-z-start-stop-gc = $libc_cv_z_start_stop_gc" | |
6957 | ||
c6cb8783 SP |
6958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --depaudit" >&5 |
6959 | printf %s "checking for linker that supports --depaudit... " >&6; } | |
9926f6e2 | 6960 | libc_linker_feature=no |
6cfc50f4 | 6961 | cat > conftest.c <<EOF |
9926f6e2 FS |
6962 | int _start (void) { return 42; } |
6963 | EOF | |
6cfc50f4 AZ |
6964 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
6965 | -Wl,--depaudit,x -nostdlib -nostartfiles | |
6966 | -fPIC -shared -o conftest.so conftest.c | |
6967 | 1>&5' | |
9926f6e2 FS |
6968 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
6969 | (eval $ac_try) 2>&5 | |
6970 | ac_status=$? | |
c6cb8783 | 6971 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9926f6e2 | 6972 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
6973 | then |
6974 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--depaudit,x -nostdlib \ | |
6975 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
6976 | | grep "warning: --depaudit ignored" > /dev/null 2>&1; then | |
6977 | true | |
6978 | else | |
6979 | libc_linker_feature=yes | |
9926f6e2 FS |
6980 | fi |
6981 | fi | |
6cfc50f4 | 6982 | rm -f conftest* |
9926f6e2 FS |
6983 | if test $libc_linker_feature = yes; then |
6984 | libc_cv_depaudit=yes | |
6985 | else | |
6986 | libc_cv_depaudit=no | |
6987 | fi | |
c6cb8783 SP |
6988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
6989 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9926f6e2 FS |
6990 | config_vars="$config_vars |
6991 | have-depaudit = $libc_cv_depaudit" | |
6992 | ||
c6cb8783 SP |
6993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z pack-relative-relocs" >&5 |
6994 | printf %s "checking for linker that supports -z pack-relative-relocs... " >&6; } | |
e895cff5 | 6995 | libc_linker_feature=no |
6cfc50f4 | 6996 | cat > conftest.c <<EOF |
e895cff5 FS |
6997 | int _start (void) { return 42; } |
6998 | EOF | |
6cfc50f4 AZ |
6999 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
7000 | -Wl,-z,pack-relative-relocs -nostdlib -nostartfiles | |
7001 | -fPIC -shared -o conftest.so conftest.c | |
7002 | 1>&5' | |
e895cff5 FS |
7003 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7004 | (eval $ac_try) 2>&5 | |
7005 | ac_status=$? | |
c6cb8783 | 7006 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
e895cff5 | 7007 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
7008 | then |
7009 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,pack-relative-relocs -nostdlib \ | |
7010 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7011 | | grep "warning: -z pack-relative-relocs ignored" > /dev/null 2>&1; then | |
7012 | true | |
7013 | else | |
7014 | libc_linker_feature=yes | |
e895cff5 | 7015 | fi |
e895cff5 | 7016 | fi |
6cfc50f4 | 7017 | rm -f conftest* |
e895cff5 FS |
7018 | if test $libc_linker_feature = yes; then |
7019 | libc_cv_dt_relr=yes | |
7020 | else | |
7021 | libc_cv_dt_relr=no | |
7022 | fi | |
c6cb8783 SP |
7023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7024 | printf "%s\n" "$libc_linker_feature" >&6; } | |
e895cff5 FS |
7025 | config_vars="$config_vars |
7026 | have-dt-relr = $libc_cv_dt_relr" | |
7027 | ||
c6cb8783 SP |
7028 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for linker that supports --no-dynamic-linker" >&5 |
7029 | printf %s "checking for linker that supports --no-dynamic-linker... " >&6; } | |
9d7a3741 | 7030 | libc_linker_feature=no |
6cfc50f4 | 7031 | cat > conftest.c <<EOF |
9d7a3741 L |
7032 | int _start (void) { return 42; } |
7033 | EOF | |
6cfc50f4 AZ |
7034 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp |
7035 | -Wl,--no-dynamic-linker -nostdlib -nostartfiles | |
7036 | -fPIC -shared -o conftest.so conftest.c | |
7037 | 1>&5' | |
9d7a3741 L |
7038 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7039 | (eval $ac_try) 2>&5 | |
7040 | ac_status=$? | |
c6cb8783 | 7041 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9d7a3741 | 7042 | test $ac_status = 0; }; } |
6cfc50f4 AZ |
7043 | then |
7044 | if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-dynamic-linker -nostdlib \ | |
7045 | -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | |
7046 | | grep "warning: --no-dynamic-linker ignored" > /dev/null 2>&1; then | |
7047 | true | |
7048 | else | |
7049 | libc_linker_feature=yes | |
9d7a3741 L |
7050 | fi |
7051 | fi | |
6cfc50f4 | 7052 | rm -f conftest* |
9d7a3741 L |
7053 | if test $libc_linker_feature = yes; then |
7054 | libc_cv_no_dynamic_linker=yes | |
7055 | else | |
7056 | libc_cv_no_dynamic_linker=no | |
7057 | fi | |
c6cb8783 SP |
7058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5 |
7059 | printf "%s\n" "$libc_linker_feature" >&6; } | |
9d7a3741 L |
7060 | config_vars="$config_vars |
7061 | have-no-dynamic-linker = $libc_cv_no_dynamic_linker" | |
7062 | ||
c6cb8783 SP |
7063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -static-pie" >&5 |
7064 | printf %s "checking for -static-pie... " >&6; } | |
7065 | if test ${libc_cv_static_pie+y} | |
7066 | then : | |
7067 | printf %s "(cached) " >&6 | |
7068 | else $as_nop | |
9d7a3741 L |
7069 | if { ac_try='${CC-cc} -static-pie -xc /dev/null -S -o /dev/null' |
7070 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7071 | (eval $ac_try) 2>&5 | |
7072 | ac_status=$? | |
c6cb8783 SP |
7073 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7074 | test $ac_status = 0; }; } | |
7075 | then : | |
9d7a3741 | 7076 | libc_cv_static_pie=yes |
c6cb8783 | 7077 | else $as_nop |
9d7a3741 L |
7078 | libc_cv_static_pie=no |
7079 | fi | |
7080 | ||
7081 | fi | |
c6cb8783 SP |
7082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie" >&5 |
7083 | printf "%s\n" "$libc_cv_static_pie" >&6; } | |
9d7a3741 L |
7084 | config_vars="$config_vars |
7085 | have-static-pie = $libc_cv_static_pie" | |
7086 | ||
c6cb8783 SP |
7087 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5 |
7088 | printf %s "checking for -fpie... " >&6; } | |
7089 | if test ${libc_cv_fpie+y} | |
7090 | then : | |
7091 | printf %s "(cached) " >&6 | |
7092 | else $as_nop | |
4da0431d | 7093 | if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null' |
b08c89d9 | 7094 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
0f124303 UD |
7095 | (eval $ac_try) 2>&5 |
7096 | ac_status=$? | |
c6cb8783 SP |
7097 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7098 | test $ac_status = 0; }; } | |
7099 | then : | |
a0da5fe1 | 7100 | libc_cv_fpie=yes |
c6cb8783 | 7101 | else $as_nop |
a0da5fe1 UD |
7102 | libc_cv_fpie=no |
7103 | fi | |
4da0431d | 7104 | |
0f124303 | 7105 | fi |
c6cb8783 SP |
7106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5 |
7107 | printf "%s\n" "$libc_cv_fpie" >&6; } | |
0f124303 UD |
7108 | |
7109 | ||
871b9158 | 7110 | |
c6cb8783 SP |
7111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5 |
7112 | printf %s "checking for GLOB_DAT reloc... " >&6; } | |
7113 | if test ${libc_cv_has_glob_dat+y} | |
7114 | then : | |
7115 | printf %s "(cached) " >&6 | |
7116 | else $as_nop | |
89569c8b L |
7117 | cat > conftest.c <<EOF |
7118 | extern int mumble; | |
7119 | int foo (void) { return mumble; } | |
7120 | EOF | |
7121 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS | |
7122 | -fPIC -shared -o conftest.so conftest.c | |
66a704c4 | 7123 | -nostdlib -nostartfiles $no_ssp |
89569c8b L |
7124 | 1>&5' |
7125 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7126 | (eval $ac_try) 2>&5 | |
7127 | ac_status=$? | |
c6cb8783 | 7128 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
89569c8b L |
7129 | test $ac_status = 0; }; } |
7130 | then | |
7131 | if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then | |
7132 | libc_cv_has_glob_dat=yes | |
7133 | else | |
7134 | libc_cv_has_glob_dat=no | |
7135 | fi | |
7136 | else | |
7137 | libc_cv_has_glob_dat=no | |
7138 | fi | |
7139 | rm -f conftest* | |
7140 | fi | |
c6cb8783 SP |
7141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5 |
7142 | printf "%s\n" "$libc_cv_has_glob_dat" >&6; } | |
89569c8b L |
7143 | |
7144 | ||
c6cb8783 SP |
7145 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5 |
7146 | printf %s "checking for -mtls-dialect=gnu2... " >&6; } | |
7147 | if test ${libc_cv_mtls_dialect_gnu2+y} | |
7148 | then : | |
7149 | printf %s "(cached) " >&6 | |
7150 | else $as_nop | |
61655555 L |
7151 | cat > conftest.c <<EOF |
7152 | __thread int i; | |
7153 | void foo (void) | |
7154 | { | |
7155 | i = 10; | |
7156 | } | |
7157 | EOF | |
04e8169f AZ |
7158 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -fPIC -mtls-dialect=gnu2 -nostdlib -nostartfiles |
7159 | conftest.c -o conftest 1>&5' | |
61655555 L |
7160 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
7161 | (eval $ac_try) 2>&5 | |
7162 | ac_status=$? | |
c6cb8783 | 7163 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
61655555 L |
7164 | test $ac_status = 0; }; } |
7165 | then | |
7166 | libc_cv_mtls_dialect_gnu2=yes | |
7167 | else | |
7168 | libc_cv_mtls_dialect_gnu2=no | |
7169 | fi | |
7170 | rm -f conftest* | |
7171 | fi | |
c6cb8783 SP |
7172 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5 |
7173 | printf "%s\n" "$libc_cv_mtls_dialect_gnu2" >&6; } | |
61655555 L |
7174 | |
7175 | config_vars="$config_vars | |
7176 | have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2" | |
7177 | ||
c6cb8783 SP |
7178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wno-ignored-attributes is required for aliases" >&5 |
7179 | printf %s "checking if -Wno-ignored-attributes is required for aliases... " >&6; } | |
7180 | if test ${libc_cv_wno_ignored_attributes+y} | |
7181 | then : | |
7182 | printf %s "(cached) " >&6 | |
7183 | else $as_nop | |
8d98c7c0 AZ |
7184 | cat > conftest.c <<EOF |
7185 | void __foo (void) | |
7186 | { | |
7187 | } | |
7188 | extern __typeof (__foo) foo __attribute__ ((weak, alias ("__foo"))); | |
7189 | extern __typeof (__foo) bar __attribute__ ((weak, alias ("foo"))); | |
7190 | EOF | |
7191 | libc_cv_wno_ignored_attributes="" | |
7192 | if ! { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -c conftest.c' | |
7193 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7194 | (eval $ac_try) 2>&5 | |
7195 | ac_status=$? | |
c6cb8783 | 7196 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
8d98c7c0 AZ |
7197 | test $ac_status = 0; }; } |
7198 | then | |
7199 | libc_cv_wno_ignored_attributes="-Wno-ignored-attributes" | |
7200 | fi | |
7201 | rm -f conftest* | |
7202 | fi | |
c6cb8783 SP |
7203 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_wno_ignored_attributes" >&5 |
7204 | printf "%s\n" "$libc_cv_wno_ignored_attributes" >&6; } | |
8d98c7c0 AZ |
7205 | config_vars="$config_vars |
7206 | config-cflags-wno-ignored-attributes = $libc_cv_wno_ignored_attributes" | |
7207 | ||
c6cb8783 SP |
7208 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5 |
7209 | printf %s "checking whether cc puts quotes around section names... " >&6; } | |
7210 | if test ${libc_cv_have_section_quotes+y} | |
7211 | then : | |
7212 | printf %s "(cached) " >&6 | |
7213 | else $as_nop | |
e26dd47f | 7214 | cat > conftest.c <<EOF |
a0da5fe1 UD |
7215 | static const int foo |
7216 | __attribute__ ((section ("bar"))) = 1; | |
e26dd47f | 7217 | EOF |
a0da5fe1 UD |
7218 | if ${CC-cc} -S conftest.c -o conftest.s; then |
7219 | if grep '\.section.*"bar"' conftest.s >/dev/null; then | |
7220 | libc_cv_have_section_quotes=yes | |
e26dd47f | 7221 | else |
a0da5fe1 | 7222 | libc_cv_have_section_quotes=no |
e26dd47f | 7223 | fi |
a0da5fe1 UD |
7224 | else |
7225 | libc_cv_have_section_quotes=unknown | |
7226 | fi | |
7227 | rm -f conftest.{c,s} | |
e26dd47f | 7228 | |
3a12e572 | 7229 | fi |
c6cb8783 SP |
7230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5 |
7231 | printf "%s\n" "$libc_cv_have_section_quotes" >&6; } | |
a0da5fe1 | 7232 | if test $libc_cv_have_section_quotes = yes; then |
c6cb8783 | 7233 | printf "%s\n" "#define HAVE_SECTION_QUOTES 1" >>confdefs.h |
cd6ede75 | 7234 | |
9a97d1f7 UD |
7235 | fi |
7236 | ||
c6cb8783 SP |
7237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5 |
7238 | printf %s "checking for __builtin_memset... " >&6; } | |
7239 | if test ${libc_cv_gcc_builtin_memset+y} | |
7240 | then : | |
7241 | printf %s "(cached) " >&6 | |
7242 | else $as_nop | |
d555194c UD |
7243 | cat > conftest.c <<\EOF |
7244 | void zero (void *x) | |
7245 | { | |
a52d1562 | 7246 | __builtin_memset (x, 0, 1000); |
d555194c UD |
7247 | } |
7248 | EOF | |
e37fc4aa | 7249 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "memset" > /dev/null' |
b08c89d9 | 7250 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
3a12e572 UD |
7251 | (eval $ac_try) 2>&5 |
7252 | ac_status=$? | |
c6cb8783 | 7253 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7254 | test $ac_status = 0; }; }; |
d555194c UD |
7255 | then |
7256 | libc_cv_gcc_builtin_memset=no | |
7257 | else | |
7258 | libc_cv_gcc_builtin_memset=yes | |
7259 | fi | |
3a12e572 | 7260 | rm -f conftest* |
d555194c | 7261 | fi |
c6cb8783 SP |
7262 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5 |
7263 | printf "%s\n" "$libc_cv_gcc_builtin_memset" >&6; } | |
d555194c | 7264 | if test "$libc_cv_gcc_builtin_memset" = yes ; then |
c6cb8783 | 7265 | printf "%s\n" "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h |
d555194c UD |
7266 | |
7267 | fi | |
7268 | ||
c6cb8783 SP |
7269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5 |
7270 | printf %s "checking for redirection of built-in functions... " >&6; } | |
7271 | if test ${libc_cv_gcc_builtin_redirection+y} | |
7272 | then : | |
7273 | printf %s "(cached) " >&6 | |
7274 | else $as_nop | |
85dd1003 UD |
7275 | cat > conftest.c <<\EOF |
7276 | extern char *strstr (const char *, const char *) __asm ("my_strstr"); | |
7277 | char *foo (const char *a, const char *b) | |
7278 | { | |
7279 | return __builtin_strstr (a, b); | |
7280 | } | |
7281 | EOF | |
e37fc4aa | 7282 | if { ac_try='${CC-cc} -O3 -S conftest.c -o - | grep -F "my_strstr" > /dev/null' |
b08c89d9 | 7283 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
85dd1003 UD |
7284 | (eval $ac_try) 2>&5 |
7285 | ac_status=$? | |
c6cb8783 | 7286 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
b08c89d9 | 7287 | test $ac_status = 0; }; }; |
85dd1003 UD |
7288 | then |
7289 | libc_cv_gcc_builtin_redirection=yes | |
7290 | else | |
7291 | libc_cv_gcc_builtin_redirection=no | |
7292 | fi | |
7293 | rm -f conftest* | |
7294 | fi | |
c6cb8783 SP |
7295 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5 |
7296 | printf "%s\n" "$libc_cv_gcc_builtin_redirection" >&6; } | |
3ce1f295 UD |
7297 | if test "$libc_cv_gcc_builtin_redirection" = no; then |
7298 | as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5 | |
85dd1003 UD |
7299 | fi |
7300 | ||
c6cb8783 SP |
7301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5 |
7302 | printf %s "checking for compiler option to disable generation of FMA instructions... " >&6; } | |
7303 | if test ${libc_cv_cc_nofma+y} | |
7304 | then : | |
7305 | printf %s "(cached) " >&6 | |
7306 | else $as_nop | |
7998fa78 AS |
7307 | libc_cv_cc_nofma= |
7308 | for opt in -ffp-contract=off -mno-fused-madd; do | |
7309 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
7310 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7311 | (eval $ac_try) 2>&5 | |
7312 | ac_status=$? | |
c6cb8783 SP |
7313 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7314 | test $ac_status = 0; }; } | |
7315 | then : | |
7998fa78 AS |
7316 | libc_cv_cc_nofma=$opt; break |
7317 | fi | |
7318 | done | |
7319 | fi | |
c6cb8783 SP |
7320 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5 |
7321 | printf "%s\n" "$libc_cv_cc_nofma" >&6; } | |
7998fa78 | 7322 | |
bef0b507 | 7323 | |
2cf9ad57 | 7324 | if test -n "$submachine"; then |
c6cb8783 SP |
7325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5 |
7326 | printf %s "checking for compiler option for CPU variant... " >&6; } | |
7327 | if test ${libc_cv_cc_submachine+y} | |
7328 | then : | |
7329 | printf %s "(cached) " >&6 | |
7330 | else $as_nop | |
2cf9ad57 RM |
7331 | libc_cv_cc_submachine=no |
7332 | for opt in "-march=$submachine" "-mcpu=$submachine"; do | |
7333 | if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null' | |
b08c89d9 | 7334 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
2cf9ad57 RM |
7335 | (eval $ac_try) 2>&5 |
7336 | ac_status=$? | |
c6cb8783 SP |
7337 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7338 | test $ac_status = 0; }; } | |
7339 | then : | |
40b601fb | 7340 | |
2cf9ad57 RM |
7341 | libc_cv_cc_submachine="$opt" |
7342 | break | |
40b601fb | 7343 | fi |
2cf9ad57 RM |
7344 | done |
7345 | fi | |
c6cb8783 SP |
7346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5 |
7347 | printf "%s\n" "$libc_cv_cc_submachine" >&6; } | |
2cf9ad57 | 7348 | if test "x$libc_cv_cc_submachine" = xno; then |
4a531bb0 | 7349 | as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5 |
2cf9ad57 RM |
7350 | fi |
7351 | fi | |
7352 | ||
7353 | ||
c6cb8783 SP |
7354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option that -fsignaling-nans" >&5 |
7355 | printf %s "checking for compiler option that -fsignaling-nans... " >&6; } | |
7356 | if test ${libc_cv_cc_signaling_nans+y} | |
7357 | then : | |
7358 | printf %s "(cached) " >&6 | |
7359 | else $as_nop | |
5c5a8b99 AZ |
7360 | if { ac_try='${CC-cc} -Werror -fsignaling-nans -xc /dev/null -S -o /dev/null' |
7361 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7362 | (eval $ac_try) 2>&5 | |
7363 | ac_status=$? | |
c6cb8783 SP |
7364 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
7365 | test $ac_status = 0; }; } | |
7366 | then : | |
5c5a8b99 | 7367 | libc_cv_cc_signaling_nans=-fsignaling-nans |
c6cb8783 | 7368 | else $as_nop |
5c5a8b99 AZ |
7369 | libc_cv_cc_signaling_nans= |
7370 | fi | |
7371 | ||
7372 | fi | |
c6cb8783 SP |
7373 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_signaling_nans" >&5 |
7374 | printf "%s\n" "$libc_cv_cc_signaling_nans" >&6; } | |
5c5a8b99 AZ |
7375 | config_vars="$config_vars |
7376 | config-cflags-signaling-nans = $libc_cv_cc_signaling_nans" | |
7377 | ||
c6cb8783 | 7378 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \ |
85c2e611 | 7379 | __attribute__ ((__optimize__))" >&5 |
c6cb8783 | 7380 | printf %s "checking if $CC accepts -fno-tree-loop-distribute-patterns with \ |
85c2e611 | 7381 | __attribute__ ((__optimize__))... " >&6; } |
c6cb8783 SP |
7382 | if test ${libc_cv_cc_loop_to_function+y} |
7383 | then : | |
7384 | printf %s "(cached) " >&6 | |
7385 | else $as_nop | |
85c2e611 AZ |
7386 | cat > conftest.c <<EOF |
7387 | void | |
7388 | __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) | |
7389 | foo (void) {} | |
7390 | EOF | |
7391 | libc_cv_cc_loop_to_function=no | |
7392 | if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c' | |
7393 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
7394 | (eval $ac_try) 2>&5 | |
7395 | ac_status=$? | |
c6cb8783 | 7396 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
85c2e611 AZ |
7397 | test $ac_status = 0; }; } |
7398 | then | |
7399 | libc_cv_cc_loop_to_function=yes | |
7400 | fi | |
7401 | rm -f conftest* | |
7402 | fi | |
c6cb8783 SP |
7403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5 |
7404 | printf "%s\n" "$libc_cv_cc_loop_to_function" >&6; } | |
85c2e611 | 7405 | if test $libc_cv_cc_loop_to_function = yes; then |
c6cb8783 | 7406 | printf "%s\n" "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h |
85c2e611 AZ |
7407 | |
7408 | fi | |
7409 | ||
7410 | ||
c6cb8783 SP |
7411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5 |
7412 | printf %s "checking for libgd... " >&6; } | |
6dab8688 UD |
7413 | if test "$with_gd" != "no"; then |
7414 | old_CFLAGS="$CFLAGS" | |
7415 | CFLAGS="$CFLAGS $libgd_include" | |
7416 | old_LDFLAGS="$LDFLAGS" | |
7417 | LDFLAGS="$LDFLAGS $libgd_ldflags" | |
7418 | old_LIBS="$LIBS" | |
7419 | LIBS="$LIBS -lgd -lpng -lz -lm" | |
b08c89d9 | 7420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2abf9ff1 | 7421 | /* end confdefs.h. */ |
c8f3e6db | 7422 | #include <gd.h> |
3a12e572 | 7423 | int |
c6cb8783 | 7424 | main (void) |
3a12e572 | 7425 | { |
c8f3e6db | 7426 | gdImagePng (0, 0) |
3a12e572 UD |
7427 | ; |
7428 | return 0; | |
7429 | } | |
7430 | _ACEOF | |
c6cb8783 SP |
7431 | if ac_fn_c_try_link "$LINENO" |
7432 | then : | |
c8f3e6db | 7433 | LIBGD=yes |
c6cb8783 | 7434 | else $as_nop |
b08c89d9 | 7435 | LIBGD=no |
c8f3e6db | 7436 | fi |
c6cb8783 | 7437 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7438 | conftest$ac_exeext conftest.$ac_ext |
6dab8688 UD |
7439 | CFLAGS="$old_CFLAGS" |
7440 | LDFLAGS="$old_LDFLAGS" | |
7441 | LIBS="$old_LIBS" | |
7442 | else | |
7443 | LIBGD=no | |
7444 | fi | |
c6cb8783 SP |
7445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5 |
7446 | printf "%s\n" "$LIBGD" >&6; } | |
3a12e572 UD |
7447 | |
7448 | ||
74a30a58 UD |
7449 | # SELinux detection |
7450 | if test x$with_selinux = xno ; then | |
7451 | have_selinux=no; | |
7452 | else | |
7453 | # See if we have the SELinux library | |
c6cb8783 SP |
7454 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 |
7455 | printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } | |
7456 | if test ${ac_cv_lib_selinux_is_selinux_enabled+y} | |
7457 | then : | |
7458 | printf %s "(cached) " >&6 | |
7459 | else $as_nop | |
74a30a58 UD |
7460 | ac_check_lib_save_LIBS=$LIBS |
7461 | LIBS="-lselinux $LIBS" | |
b08c89d9 | 7462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
74a30a58 UD |
7463 | /* end confdefs.h. */ |
7464 | ||
26f56c1c UD |
7465 | /* Override any GCC internal prototype to avoid an error. |
7466 | Use char because int might match the return type of a GCC | |
7467 | builtin and then its argument prototype would still apply. */ | |
74a30a58 UD |
7468 | char is_selinux_enabled (); |
7469 | int | |
c6cb8783 | 7470 | main (void) |
74a30a58 | 7471 | { |
26f56c1c | 7472 | return is_selinux_enabled (); |
74a30a58 UD |
7473 | ; |
7474 | return 0; | |
7475 | } | |
7476 | _ACEOF | |
c6cb8783 SP |
7477 | if ac_fn_c_try_link "$LINENO" |
7478 | then : | |
74a30a58 | 7479 | ac_cv_lib_selinux_is_selinux_enabled=yes |
c6cb8783 | 7480 | else $as_nop |
b08c89d9 | 7481 | ac_cv_lib_selinux_is_selinux_enabled=no |
74a30a58 | 7482 | fi |
c6cb8783 | 7483 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7484 | conftest$ac_exeext conftest.$ac_ext |
74a30a58 UD |
7485 | LIBS=$ac_check_lib_save_LIBS |
7486 | fi | |
c6cb8783 SP |
7487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
7488 | printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
7489 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes | |
7490 | then : | |
74a30a58 | 7491 | have_selinux=yes |
c6cb8783 | 7492 | else $as_nop |
74a30a58 UD |
7493 | have_selinux=no |
7494 | fi | |
7495 | ||
8f1913a9 | 7496 | if test x$with_selinux = xyes ; then |
74a30a58 | 7497 | if test x$have_selinux = xno ; then |
0699f766 | 7498 | as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5 |
74a30a58 UD |
7499 | fi |
7500 | fi | |
7501 | fi | |
7502 | # Check if we're building with SELinux support. | |
7503 | if test "x$have_selinux" = xyes; then | |
7504 | ||
c6cb8783 | 7505 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h |
74a30a58 | 7506 | |
b399a0c2 UD |
7507 | |
7508 | # See if we have the libaudit library | |
c6cb8783 SP |
7509 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5 |
7510 | printf %s "checking for audit_log_user_avc_message in -laudit... " >&6; } | |
7511 | if test ${ac_cv_lib_audit_audit_log_user_avc_message+y} | |
7512 | then : | |
7513 | printf %s "(cached) " >&6 | |
7514 | else $as_nop | |
b399a0c2 UD |
7515 | ac_check_lib_save_LIBS=$LIBS |
7516 | LIBS="-laudit $LIBS" | |
b08c89d9 | 7517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b399a0c2 UD |
7518 | /* end confdefs.h. */ |
7519 | ||
26f56c1c UD |
7520 | /* Override any GCC internal prototype to avoid an error. |
7521 | Use char because int might match the return type of a GCC | |
7522 | builtin and then its argument prototype would still apply. */ | |
b2f97341 | 7523 | char audit_log_user_avc_message (); |
b399a0c2 | 7524 | int |
c6cb8783 | 7525 | main (void) |
b399a0c2 | 7526 | { |
26f56c1c | 7527 | return audit_log_user_avc_message (); |
b399a0c2 UD |
7528 | ; |
7529 | return 0; | |
7530 | } | |
7531 | _ACEOF | |
c6cb8783 SP |
7532 | if ac_fn_c_try_link "$LINENO" |
7533 | then : | |
b2f97341 | 7534 | ac_cv_lib_audit_audit_log_user_avc_message=yes |
c6cb8783 | 7535 | else $as_nop |
b08c89d9 | 7536 | ac_cv_lib_audit_audit_log_user_avc_message=no |
b399a0c2 | 7537 | fi |
c6cb8783 | 7538 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7539 | conftest$ac_exeext conftest.$ac_ext |
b399a0c2 UD |
7540 | LIBS=$ac_check_lib_save_LIBS |
7541 | fi | |
c6cb8783 SP |
7542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5 |
7543 | printf "%s\n" "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; } | |
7544 | if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes | |
7545 | then : | |
b399a0c2 | 7546 | have_libaudit=yes |
c6cb8783 | 7547 | else $as_nop |
b399a0c2 UD |
7548 | have_libaudit=no |
7549 | fi | |
7550 | ||
7551 | if test "x$have_libaudit" = xyes; then | |
7552 | ||
c6cb8783 | 7553 | printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h |
b399a0c2 UD |
7554 | |
7555 | fi | |
7556 | ||
1f063dca UD |
7557 | |
7558 | # See if we have the libcap library | |
c6cb8783 SP |
7559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5 |
7560 | printf %s "checking for cap_init in -lcap... " >&6; } | |
7561 | if test ${ac_cv_lib_cap_cap_init+y} | |
7562 | then : | |
7563 | printf %s "(cached) " >&6 | |
7564 | else $as_nop | |
1f063dca UD |
7565 | ac_check_lib_save_LIBS=$LIBS |
7566 | LIBS="-lcap $LIBS" | |
b08c89d9 | 7567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1f063dca UD |
7568 | /* end confdefs.h. */ |
7569 | ||
26f56c1c UD |
7570 | /* Override any GCC internal prototype to avoid an error. |
7571 | Use char because int might match the return type of a GCC | |
7572 | builtin and then its argument prototype would still apply. */ | |
1f063dca UD |
7573 | char cap_init (); |
7574 | int | |
c6cb8783 | 7575 | main (void) |
1f063dca | 7576 | { |
26f56c1c | 7577 | return cap_init (); |
1f063dca UD |
7578 | ; |
7579 | return 0; | |
7580 | } | |
7581 | _ACEOF | |
c6cb8783 SP |
7582 | if ac_fn_c_try_link "$LINENO" |
7583 | then : | |
1f063dca | 7584 | ac_cv_lib_cap_cap_init=yes |
c6cb8783 | 7585 | else $as_nop |
b08c89d9 | 7586 | ac_cv_lib_cap_cap_init=no |
1f063dca | 7587 | fi |
c6cb8783 | 7588 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
b08c89d9 | 7589 | conftest$ac_exeext conftest.$ac_ext |
1f063dca UD |
7590 | LIBS=$ac_check_lib_save_LIBS |
7591 | fi | |
c6cb8783 SP |
7592 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5 |
7593 | printf "%s\n" "$ac_cv_lib_cap_cap_init" >&6; } | |
7594 | if test "x$ac_cv_lib_cap_cap_init" = xyes | |
7595 | then : | |
1f063dca | 7596 | have_libcap=yes |
c6cb8783 | 7597 | else $as_nop |
1f063dca UD |
7598 | have_libcap=no |
7599 | fi | |
7600 | ||
7601 | if test "x$have_libcap" = xyes; then | |
7602 | ||
c6cb8783 | 7603 | printf "%s\n" "#define HAVE_LIBCAP 1" >>confdefs.h |
1f063dca UD |
7604 | |
7605 | fi | |
7606 | ||
74a30a58 UD |
7607 | fi |
7608 | ||
7609 | ||
64d9580c FB |
7610 | no_fortify_source="-Wp,-U_FORTIFY_SOURCE" |
7611 | fortify_source="${no_fortify_source}" | |
7612 | ||
a3090c2c AZ |
7613 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for maximum supported _FORTIFY_SOURCE level" >&5 |
7614 | printf %s "checking for maximum supported _FORTIFY_SOURCE level... " >&6; } | |
7615 | if test ${libc_cv_supported_fortify_source+y} | |
c6cb8783 SP |
7616 | then : |
7617 | printf %s "(cached) " >&6 | |
7618 | else $as_nop | |
64d9580c FB |
7619 | |
7620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
61653dfb RM |
7621 | /* end confdefs.h. */ |
7622 | ||
7623 | int | |
c6cb8783 | 7624 | main (void) |
61653dfb | 7625 | { |
64d9580c | 7626 | __builtin_dynamic_object_size("", 0) |
61653dfb RM |
7627 | ; |
7628 | return 0; | |
7629 | } | |
7630 | _ACEOF | |
c6cb8783 SP |
7631 | if ac_fn_c_try_link "$LINENO" |
7632 | then : | |
a3090c2c | 7633 | libc_cv_supported_fortify_source=3 |
c6cb8783 | 7634 | else $as_nop |
a3090c2c | 7635 | libc_cv_supported_fortify_source=2 |
61653dfb | 7636 | fi |
c6cb8783 | 7637 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
64d9580c FB |
7638 | conftest$ac_exeext conftest.$ac_ext |
7639 | ||
7640 | fi | |
a3090c2c AZ |
7641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_supported_fortify_source" >&5 |
7642 | printf "%s\n" "$libc_cv_supported_fortify_source" >&6; } | |
64d9580c FB |
7643 | |
7644 | case $enable_fortify_source in #( | |
a3090c2c AZ |
7645 | yes) : |
7646 | libc_cv_fortify_source=yes enable_fortify_source=$libc_cv_supported_fortify_source ;; #( | |
64d9580c FB |
7647 | 1|2) : |
7648 | libc_cv_fortify_source=yes ;; #( | |
7649 | 3) : | |
a3090c2c | 7650 | if test $libc_cv_supported_fortify_source = 3 |
c6cb8783 | 7651 | then : |
64d9580c | 7652 | libc_cv_fortify_source=yes |
c6cb8783 | 7653 | else $as_nop |
64d9580c FB |
7654 | as_fn_error $? "Compiler doesn't provide necessary support for _FORTIFY_SOURCE=3" "$LINENO" 5 |
7655 | fi ;; #( | |
7656 | *) : | |
7657 | libc_cv_fortify_source=no ;; | |
7658 | esac | |
7659 | ||
c6cb8783 SP |
7660 | if test "$libc_cv_fortify_source" = yes |
7661 | then : | |
64d9580c FB |
7662 | fortify_source="${fortify_source},-D_FORTIFY_SOURCE=${enable_fortify_source}" |
7663 | ||
61653dfb RM |
7664 | fi |
7665 | ||
7666 | ||
64d9580c FB |
7667 | |
7668 | ||
7669 | ||
a3090c2c AZ |
7670 | config_vars="$config_vars |
7671 | supported-fortify = $libc_cv_supported_fortify_source" | |
64d9580c | 7672 | |
c6cb8783 SP |
7673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5 |
7674 | printf %s "checking whether the assembler requires one version per symbol... " >&6; } | |
7675 | if test ${libc_cv_symver_needs_alias+y} | |
7676 | then : | |
7677 | printf %s "(cached) " >&6 | |
7678 | else $as_nop | |
0923f74a FW |
7679 | cat > conftest.s <<EOF |
7680 | .text | |
7681 | testfunc: | |
7682 | .globl testfunc | |
7683 | .symver testfunc, testfunc1@VERSION1 | |
7684 | .symver testfunc, testfunc1@VERSION2 | |
7685 | EOF | |
7686 | libc_cv_symver_needs_alias=no | |
7687 | if ${CC-cc} $ASFLAGS -c conftest.s 2>&5; then | |
7688 | libc_cv_symver_needs_alias=no | |
7689 | else | |
7690 | libc_cv_symver_needs_alias=yes | |
7691 | fi | |
7692 | rm conftest.* | |
7693 | ||
7694 | fi | |
c6cb8783 SP |
7695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_symver_needs_alias" >&5 |
7696 | printf "%s\n" "$libc_cv_symver_needs_alias" >&6; } | |
0923f74a | 7697 | if test "$libc_cv_symver_needs_alias" = yes; then |
c6cb8783 | 7698 | printf "%s\n" "#define SYMVER_NEEDS_ALIAS 1" >>confdefs.h |
0923f74a FW |
7699 | |
7700 | fi | |
7701 | ||
c6cb8783 SP |
7702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5 |
7703 | printf %s "checking for __builtin_trap with no external dependencies... " >&6; } | |
7704 | if test ${libc_cv_builtin_trap+y} | |
7705 | then : | |
7706 | printf %s "(cached) " >&6 | |
7707 | else $as_nop | |
9fe7e787 RM |
7708 | libc_cv_builtin_trap=no |
7709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7710 | /* end confdefs.h. */ | |
7711 | ||
7712 | int | |
c6cb8783 | 7713 | main (void) |
9fe7e787 RM |
7714 | { |
7715 | __builtin_trap () | |
7716 | ; | |
7717 | return 0; | |
7718 | } | |
7719 | _ACEOF | |
c6cb8783 SP |
7720 | if ac_fn_c_try_compile "$LINENO" |
7721 | then : | |
9fe7e787 RM |
7722 | |
7723 | libc_undefs=`$NM -u conftest.o | | |
7724 | LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \ | |
7725 | 2>&5` || { | |
7726 | as_fn_error $? "confusing output from $NM -u" "$LINENO" 5 | |
7727 | } | |
7728 | echo >&5 "libc_undefs='$libc_undefs'" | |
7729 | if test -z "$libc_undefs"; then | |
7730 | libc_cv_builtin_trap=yes | |
7731 | fi | |
7732 | fi | |
c6cb8783 | 7733 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
9fe7e787 | 7734 | fi |
c6cb8783 SP |
7735 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5 |
7736 | printf "%s\n" "$libc_cv_builtin_trap" >&6; } | |
9fe7e787 | 7737 | if test $libc_cv_builtin_trap = yes; then |
c6cb8783 | 7738 | printf "%s\n" "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h |
9fe7e787 RM |
7739 | |
7740 | fi | |
7741 | ||
99e1dc0a FW |
7742 | ac_ext=cpp |
7743 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7744 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7745 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7746 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7747 | ||
7748 | ||
c6cb8783 SP |
7749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5 |
7750 | printf %s "checking whether the C++ compiler supports thread_local... " >&6; } | |
7751 | if test ${libc_cv_cxx_thread_local+y} | |
7752 | then : | |
7753 | printf %s "(cached) " >&6 | |
7754 | else $as_nop | |
99e1dc0a FW |
7755 | |
7756 | old_CXXFLAGS="$CXXFLAGS" | |
7757 | CXXFLAGS="$CXXFLAGS -std=gnu++11" | |
7758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7759 | /* end confdefs.h. */ | |
7760 | ||
7761 | #include <thread> | |
7762 | ||
7763 | // Compiler support. | |
7764 | struct S | |
7765 | { | |
7766 | S (); | |
7767 | ~S (); | |
7768 | }; | |
7769 | thread_local S s; | |
7770 | S * get () { return &s; } | |
7771 | ||
7772 | // libstdc++ support. | |
7773 | #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL | |
7774 | #error __cxa_thread_atexit_impl not supported | |
7775 | #endif | |
7776 | ||
7777 | _ACEOF | |
c6cb8783 SP |
7778 | if ac_fn_cxx_try_compile "$LINENO" |
7779 | then : | |
99e1dc0a | 7780 | libc_cv_cxx_thread_local=yes |
c6cb8783 | 7781 | else $as_nop |
99e1dc0a FW |
7782 | libc_cv_cxx_thread_local=no |
7783 | fi | |
c6cb8783 | 7784 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
99e1dc0a FW |
7785 | CXXFLAGS="$old_CXXFLAGS" |
7786 | ||
7787 | fi | |
c6cb8783 SP |
7788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5 |
7789 | printf "%s\n" "$libc_cv_cxx_thread_local" >&6; } | |
99e1dc0a FW |
7790 | |
7791 | ||
7792 | ac_ext=c | |
7793 | ac_cpp='$CPP $CPPFLAGS' | |
7794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7797 | ||
7798 | ||
cd6ede75 UD |
7799 | ### End of automated tests. |
7800 | ### Now run sysdeps configure fragments. | |
7801 | ||
cb343854 | 7802 | # They also can set these variables. |
b43b13ac | 7803 | use_ldconfig=no |
cb343854 | 7804 | ldd_rewrite_script=no |
77259608 | 7805 | libc_cv_sysconfdir=$sysconfdir |
4248b1b1 | 7806 | libc_cv_localstatedir=$localstatedir |
74bd2300 | 7807 | libc_cv_gcc_unwind_find_fde=no |
e2fd3cbe | 7808 | libc_cv_idn=no |
ad201afe | 7809 | pthread_in_libc=yes |
cb343854 | 7810 | |
cd6ede75 | 7811 | # Iterate over all the sysdep directories we will use, running their |
09055553 | 7812 | # configure fragments. |
cd6ede75 UD |
7813 | for dir in $sysnames; do |
7814 | case $dir in | |
7815 | /*) dest=$dir ;; | |
7816 | *) dest=$srcdir/$dir ;; | |
7817 | esac | |
7818 | if test -r $dest/configure; then | |
c6cb8783 SP |
7819 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5 |
7820 | printf "%s\n" "running configure fragment for $dir" >&6; } | |
cd6ede75 UD |
7821 | . $dest/configure |
7822 | fi | |
cd6ede75 UD |
7823 | done |
7824 | ||
5695d46f AS |
7825 | if test x"$build_mathvec" = xnotset; then |
7826 | build_mathvec=no | |
7827 | fi | |
7828 | config_vars="$config_vars | |
7829 | build-mathvec = $build_mathvec" | |
7830 | ||
7ffa9423 AZ |
7831 | |
7832 | ||
7833 | ||
74bd2300 | 7834 | if test x$libc_cv_gcc_unwind_find_fde = xyes; then |
c6cb8783 | 7835 | printf "%s\n" "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h |
74bd2300 UD |
7836 | |
7837 | fi | |
7838 | ||
7839 | ||
6e6249d0 RM |
7840 | # A sysdeps configure fragment can reset this if IFUNC is not actually |
7841 | # usable even though the assembler knows how to generate the symbol type. | |
7842 | if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then | |
c6cb8783 | 7843 | printf "%s\n" "#define HAVE_IFUNC 1" >>confdefs.h |
6e6249d0 RM |
7844 | |
7845 | fi | |
92ad88fe L |
7846 | config_vars="$config_vars |
7847 | have-ifunc = $libc_cv_ld_gnu_indirect_function" | |
6e6249d0 | 7848 | |
022dfdce | 7849 | if test x"$libc_cv_gcc_indirect_function" = xyes; then |
c6cb8783 | 7850 | printf "%s\n" "#define HAVE_GCC_IFUNC 1" >>confdefs.h |
022dfdce SL |
7851 | |
7852 | fi | |
16b59780 ST |
7853 | config_vars="$config_vars |
7854 | have-gcc-ifunc = $libc_cv_gcc_indirect_function" | |
022dfdce | 7855 | |
3cc3ef96 RM |
7856 | # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps |
7857 | # configure fragment can override the value to prevent this AC_DEFINE. | |
7858 | ||
7859 | if test "x$use_nscd" != xno; then | |
c6cb8783 | 7860 | printf "%s\n" "#define USE_NSCD 1" >>confdefs.h |
3cc3ef96 RM |
7861 | |
7862 | fi | |
c53d909c RM |
7863 | if test "x$build_nscd" = xdefault; then |
7864 | build_nscd=$use_nscd | |
7865 | fi | |
3cc3ef96 | 7866 | |
cd6ede75 UD |
7867 | |
7868 | ||
7869 | ||
7870 | ||
7871 | ||
cb343854 | 7872 | |
dff14448 | 7873 | |
f57f8055 | 7874 | if test x$use_ldconfig = xyes; then |
c6cb8783 | 7875 | printf "%s\n" "#define USE_LDCONFIG 1" >>confdefs.h |
f57f8055 RM |
7876 | |
7877 | fi | |
af968f62 | 7878 | |
3b100462 | 7879 | |
eae47a36 | 7880 | |
7998fa78 | 7881 | |
650425ce | 7882 | |
a334319f | 7883 | |
c6cb8783 SP |
7884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5 |
7885 | printf %s "checking whether -fPIC is default... " >&6; } | |
7886 | if test ${libc_cv_pic_default+y} | |
7887 | then : | |
7888 | printf %s "(cached) " >&6 | |
7889 | else $as_nop | |
ff886b82 | 7890 | libc_cv_pic_default=yes |
cc3fa755 | 7891 | cat > conftest.c <<EOF |
9756dfe1 | 7892 | #if defined __PIC__ || defined __pic__ || defined PIC || defined pic |
cc3fa755 UD |
7893 | # error PIC is default. |
7894 | #endif | |
7895 | EOF | |
7896 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
ff886b82 | 7897 | libc_cv_pic_default=no |
cc3fa755 UD |
7898 | fi |
7899 | rm -f conftest.* | |
7900 | fi | |
c6cb8783 SP |
7901 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5 |
7902 | printf "%s\n" "$libc_cv_pic_default" >&6; } | |
23645707 SP |
7903 | config_vars="$config_vars |
7904 | build-pic-default = $libc_cv_pic_default" | |
cc3fa755 | 7905 | |
c6cb8783 SP |
7906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5 |
7907 | printf %s "checking whether -fPIE is default... " >&6; } | |
7908 | if test ${libc_cv_cc_pie_default+y} | |
7909 | then : | |
7910 | printf %s "(cached) " >&6 | |
7911 | else $as_nop | |
00c714df | 7912 | libc_cv_cc_pie_default=yes |
cc08749b L |
7913 | cat > conftest.c <<EOF |
7914 | #if defined __PIE__ || defined __pie__ || defined PIE || defined pie | |
7915 | # error PIE is default. | |
7916 | #endif | |
7917 | EOF | |
7918 | if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then | |
00c714df | 7919 | libc_cv_cc_pie_default=no |
cc08749b L |
7920 | fi |
7921 | rm -f conftest.* | |
7922 | fi | |
c6cb8783 SP |
7923 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_pie_default" >&5 |
7924 | printf "%s\n" "$libc_cv_cc_pie_default" >&6; } | |
23645707 SP |
7925 | config_vars="$config_vars |
7926 | cc-pie-default = $libc_cv_cc_pie_default" | |
abcb584d | 7927 | |
c6cb8783 SP |
7928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build programs as PIE" >&5 |
7929 | printf %s "checking if we can build programs as PIE... " >&6; } | |
ded3aeb2 | 7930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
23645707 SP |
7931 | /* end confdefs.h. */ |
7932 | #ifdef PIE_UNSUPPORTED | |
7933 | # error PIE is not supported | |
7934 | #endif | |
7935 | _ACEOF | |
c6cb8783 SP |
7936 | if ac_fn_c_try_compile "$LINENO" |
7937 | then : | |
ded3aeb2 | 7938 | libc_cv_pie_supported=yes |
c6cb8783 | 7939 | else $as_nop |
ded3aeb2 | 7940 | libc_cv_pie_supported=no |
23645707 | 7941 | fi |
c6cb8783 SP |
7942 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
7943 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_supported" >&5 | |
7944 | printf "%s\n" "$libc_cv_pie_supported" >&6; } | |
ded3aeb2 L |
7945 | # Disable build-pie-default if target does not support it or glibc is |
7946 | # configured with --disable-default-pie. | |
7947 | if test "x$default_pie" = xno; then | |
7948 | build_pie_default=no | |
7949 | else | |
7950 | build_pie_default=$libc_cv_pie_supported | |
23645707 | 7951 | fi |
23645707 | 7952 | config_vars="$config_vars |
ded3aeb2 | 7953 | build-pie-default = $build_pie_default" |
23645707 | 7954 | |
c6cb8783 SP |
7955 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can build static PIE programs" >&5 |
7956 | printf %s "checking if we can build static PIE programs... " >&6; } | |
ded3aeb2 L |
7957 | libc_cv_static_pie_supported=$libc_cv_pie_supported |
7958 | if test "x$libc_cv_pie_supported" != xno \ | |
23645707 | 7959 | -a "$libc_cv_no_dynamic_linker" = yes; then |
374cef32 SN |
7960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7961 | /* end confdefs.h. */ | |
7962 | #ifndef SUPPORT_STATIC_PIE | |
7963 | # error static PIE is not supported | |
7964 | #endif | |
7965 | _ACEOF | |
c6cb8783 SP |
7966 | if ac_fn_c_try_compile "$LINENO" |
7967 | then : | |
ded3aeb2 | 7968 | libc_cv_static_pie_supported=yes |
c6cb8783 | 7969 | else $as_nop |
ded3aeb2 | 7970 | libc_cv_static_pie_supported=no |
374cef32 | 7971 | fi |
c6cb8783 | 7972 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
ded3aeb2 | 7973 | fi |
c6cb8783 SP |
7974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_static_pie_supported" >&5 |
7975 | printf "%s\n" "$libc_cv_static_pie_supported" >&6; } | |
ded3aeb2 L |
7976 | |
7977 | # Enable static-pie only if it is available and glibc isn't configured | |
7978 | # with --disable-default-pie. | |
7979 | if test "x$default_pie" = xno; then | |
7980 | libc_cv_static_pie=no | |
7981 | else | |
7982 | libc_cv_static_pie=$libc_cv_static_pie_supported | |
7983 | fi | |
7984 | if test "$libc_cv_static_pie" = "yes"; then | |
c6cb8783 | 7985 | printf "%s\n" "#define ENABLE_STATIC_PIE 1" >>confdefs.h |
9d7a3741 L |
7986 | |
7987 | fi | |
7988 | config_vars="$config_vars | |
23645707 SP |
7989 | enable-static-pie = $libc_cv_static_pie" |
7990 | ||
7991 | # Set the `multidir' variable by grabbing the variable from the compiler. | |
7992 | # We do it once and save the result in a generated makefile. | |
7993 | libc_cv_multidir=`${CC-cc} $CFLAGS $CPPFLAGS -print-multi-directory` | |
7994 | ||
9d7a3741 | 7995 | |
2103c260 | 7996 | |
2103c260 | 7997 | |
2103c260 | 7998 | |
cc3fa755 | 7999 | |
cd6ede75 UD |
8000 | |
8001 | ||
8002 | ||
ee74a442 UD |
8003 | VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h` |
8004 | RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h` | |
8005 | ||
cd6ede75 UD |
8006 | |
8007 | ||
ad201afe | 8008 | if test "$pthread_in_libc" = yes; then |
c6cb8783 | 8009 | printf "%s\n" "#define PTHREAD_IN_LIBC 1" >>confdefs.h |
ad201afe FW |
8010 | |
8011 | fi | |
8012 | ||
8013 | ||
728e272a | 8014 | ac_config_files="$ac_config_files config.make Makefile" |
f4b07664 | 8015 | |
26f56c1c | 8016 | ac_config_commands="$ac_config_commands default" |
f4b07664 | 8017 | |
3a12e572 | 8018 | cat >confcache <<\_ACEOF |
cd6ede75 UD |
8019 | # This file is a shell script that caches the results of configure |
8020 | # tests run on this system so they can be shared between configure | |
3a12e572 UD |
8021 | # scripts and configure runs, see configure's option --config-cache. |
8022 | # It is not useful on other systems. If it contains results you don't | |
8023 | # want to keep, you may remove or edit it. | |
cd6ede75 | 8024 | # |
3a12e572 UD |
8025 | # config.status only pays attention to the cache file if you give it |
8026 | # the --recheck option to rerun configure. | |
cd6ede75 | 8027 | # |
f4b07664 | 8028 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
3a12e572 UD |
8029 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
8030 | # following values. | |
8031 | ||
8032 | _ACEOF | |
8033 | ||
cd6ede75 UD |
8034 | # The following way of writing the cache mishandles newlines in values, |
8035 | # but we know of no workaround that is simple, portable, and efficient. | |
26f56c1c | 8036 | # So, we kill variables containing newlines. |
cd6ede75 UD |
8037 | # Ultrix sh set writes to stderr and can't be redirected directly, |
8038 | # and sets the high bit in the cache file unless we assign to the vars. | |
26f56c1c UD |
8039 | ( |
8040 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
8041 | eval ac_val=\$$ac_var | |
8042 | case $ac_val in #( | |
8043 | *${as_nl}*) | |
8044 | case $ac_var in #( | |
c6cb8783 SP |
8045 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8046 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
26f56c1c UD |
8047 | esac |
8048 | case $ac_var in #( | |
8049 | _ | IFS | as_nl) ;; #( | |
322e23db | 8050 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
b08c89d9 | 8051 | *) { eval $ac_var=; unset $ac_var;} ;; |
26f56c1c UD |
8052 | esac ;; |
8053 | esac | |
8054 | done | |
8055 | ||
3a12e572 | 8056 | (set) 2>&1 | |
26f56c1c UD |
8057 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
8058 | *${as_nl}ac_space=\ *) | |
b08c89d9 UD |
8059 | # `set' does not quote correctly, so add quotes: double-quote |
8060 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3a12e572 | 8061 | sed -n \ |
9382fcee RM |
8062 | "s/'/'\\\\''/g; |
8063 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
26f56c1c | 8064 | ;; #( |
3a12e572 UD |
8065 | *) |
8066 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
26f56c1c | 8067 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
3a12e572 | 8068 | ;; |
26f56c1c UD |
8069 | esac | |
8070 | sort | |
8071 | ) | | |
3a12e572 | 8072 | sed ' |
26f56c1c | 8073 | /^ac_cv_env_/b end |
3a12e572 | 8074 | t clear |
26f56c1c | 8075 | :clear |
c6cb8783 | 8076 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
3a12e572 | 8077 | t end |
26f56c1c UD |
8078 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
8079 | :end' >>confcache | |
8080 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
8081 | if test -w "$cache_file"; then | |
f318beb8 | 8082 | if test "x$cache_file" != "x/dev/null"; then |
c6cb8783 SP |
8083 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
8084 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
f318beb8 UD |
8085 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
8086 | cat confcache >"$cache_file" | |
8087 | else | |
8088 | case $cache_file in #( | |
8089 | */* | ?:*) | |
8090 | mv -f confcache "$cache_file"$$ && | |
8091 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
8092 | *) | |
8093 | mv -f confcache "$cache_file" ;; | |
8094 | esac | |
8095 | fi | |
8096 | fi | |
cd6ede75 | 8097 | else |
c6cb8783 SP |
8098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8099 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
cd6ede75 UD |
8100 | fi |
8101 | fi | |
8102 | rm -f confcache | |
8103 | ||
cd6ede75 UD |
8104 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8105 | # Let make expand exec_prefix. | |
8106 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8107 | ||
cd6ede75 UD |
8108 | DEFS=-DHAVE_CONFIG_H |
8109 | ||
f4b07664 RM |
8110 | ac_libobjs= |
8111 | ac_ltlibobjs= | |
4a531bb0 | 8112 | U= |
f4b07664 RM |
8113 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
8114 | # 1. Remove the extension, and $U if already installed. | |
26f56c1c | 8115 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
c6cb8783 | 8116 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
26f56c1c UD |
8117 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
8118 | # will be set to the directory where LIBOBJS objects are built. | |
b08c89d9 UD |
8119 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
8120 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
f4b07664 RM |
8121 | done |
8122 | LIBOBJS=$ac_libobjs | |
8123 | ||
8124 | LTLIBOBJS=$ac_ltlibobjs | |
8125 | ||
8126 | ||
cd6ede75 | 8127 | |
f318beb8 | 8128 | : "${CONFIG_STATUS=./config.status}" |
322e23db | 8129 | ac_write_fail=0 |
3a12e572 UD |
8130 | ac_clean_files_save=$ac_clean_files |
8131 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c6cb8783 SP |
8132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8133 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
b08c89d9 UD |
8134 | as_write_fail=0 |
8135 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3a12e572 UD |
8136 | #! $SHELL |
8137 | # Generated by $as_me. | |
cd6ede75 | 8138 | # Run this file to recreate the current configuration. |
cd6ede75 | 8139 | # Compiler output produced by configure, useful for debugging |
3a12e572 | 8140 | # configure, is in config.log if it exists. |
cd6ede75 | 8141 | |
3a12e572 | 8142 | debug=false |
2abf9ff1 RM |
8143 | ac_cs_recheck=false |
8144 | ac_cs_silent=false | |
3a12e572 | 8145 | |
b08c89d9 UD |
8146 | SHELL=\${CONFIG_SHELL-$SHELL} |
8147 | export SHELL | |
8148 | _ASEOF | |
8149 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
8150 | ## -------------------- ## | |
8151 | ## M4sh Initialization. ## | |
8152 | ## -------------------- ## | |
3a12e572 | 8153 | |
26f56c1c UD |
8154 | # Be more Bourne compatible |
8155 | DUALCASE=1; export DUALCASE # for MKS sh | |
c6cb8783 SP |
8156 | as_nop=: |
8157 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
8158 | then : | |
3a12e572 UD |
8159 | emulate sh |
8160 | NULLCMD=: | |
322e23db | 8161 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
f4b07664 RM |
8162 | # is contrary to our usage. Disable this feature. |
8163 | alias -g '${1+"$@"}'='"$@"' | |
26f56c1c | 8164 | setopt NO_GLOB_SUBST |
c6cb8783 | 8165 | else $as_nop |
b08c89d9 UD |
8166 | case `(set -o) 2>/dev/null` in #( |
8167 | *posix*) : | |
8168 | set -o posix ;; #( | |
8169 | *) : | |
8170 | ;; | |
26f56c1c | 8171 | esac |
26f56c1c UD |
8172 | fi |
8173 | ||
8174 | ||
c6cb8783 SP |
8175 | |
8176 | # Reset variables that may have inherited troublesome values from | |
8177 | # the environment. | |
8178 | ||
8179 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
8180 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
8181 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
8182 | # Quoting is to prevent editors from complaining about space-tab. | |
322e23db UD |
8183 | as_nl=' |
8184 | ' | |
8185 | export as_nl | |
c6cb8783 SP |
8186 | IFS=" "" $as_nl" |
8187 | ||
8188 | PS1='$ ' | |
8189 | PS2='> ' | |
8190 | PS4='+ ' | |
8191 | ||
8192 | # Ensure predictable behavior from utilities with locale-dependent output. | |
8193 | LC_ALL=C | |
8194 | export LC_ALL | |
8195 | LANGUAGE=C | |
8196 | export LANGUAGE | |
8197 | ||
8198 | # We cannot yet rely on "unset" to work, but we need these variables | |
8199 | # to be unset--not just set to an empty or harmless value--now, to | |
8200 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
8201 | # also avoids known problems related to "unset" and subshell syntax | |
8202 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
8203 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
8204 | do eval test \${$as_var+y} \ | |
8205 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8206 | done | |
8207 | ||
8208 | # Ensure that fds 0, 1, and 2 are open. | |
8209 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
8210 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
8211 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
322e23db UD |
8212 | |
8213 | # The user is always right. | |
c6cb8783 | 8214 | if ${PATH_SEPARATOR+false} :; then |
322e23db UD |
8215 | PATH_SEPARATOR=: |
8216 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
8217 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
8218 | PATH_SEPARATOR=';' | |
8219 | } | |
3a12e572 UD |
8220 | fi |
8221 | ||
f4b07664 | 8222 | |
26f56c1c | 8223 | # Find who we are. Look in the path if we contain no directory separator. |
f318beb8 | 8224 | as_myself= |
b08c89d9 | 8225 | case $0 in #(( |
26f56c1c UD |
8226 | *[\\/]* ) as_myself=$0 ;; |
8227 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8228 | for as_dir in $PATH | |
8229 | do | |
8230 | IFS=$as_save_IFS | |
c6cb8783 SP |
8231 | case $as_dir in #((( |
8232 | '') as_dir=./ ;; | |
8233 | */) ;; | |
8234 | *) as_dir=$as_dir/ ;; | |
8235 | esac | |
8236 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
b08c89d9 | 8237 | done |
26f56c1c UD |
8238 | IFS=$as_save_IFS |
8239 | ||
8240 | ;; | |
8241 | esac | |
8242 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8243 | # in which case we are not to be found in the path. | |
8244 | if test "x$as_myself" = x; then | |
8245 | as_myself=$0 | |
8246 | fi | |
8247 | if test ! -f "$as_myself"; then | |
c6cb8783 | 8248 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b08c89d9 | 8249 | exit 1 |
26f56c1c UD |
8250 | fi |
8251 | ||
b08c89d9 UD |
8252 | |
8253 | ||
4a531bb0 L |
8254 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
8255 | # ---------------------------------------- | |
b08c89d9 UD |
8256 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
8257 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4a531bb0 | 8258 | # script with STATUS, using 1 if that was 0. |
b08c89d9 UD |
8259 | as_fn_error () |
8260 | { | |
4a531bb0 L |
8261 | as_status=$1; test $as_status -eq 0 && as_status=1 |
8262 | if test "$4"; then | |
8263 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
c6cb8783 | 8264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
b08c89d9 | 8265 | fi |
c6cb8783 | 8266 | printf "%s\n" "$as_me: error: $2" >&2 |
b08c89d9 UD |
8267 | as_fn_exit $as_status |
8268 | } # as_fn_error | |
8269 | ||
8270 | ||
c6cb8783 | 8271 | |
b08c89d9 UD |
8272 | # as_fn_set_status STATUS |
8273 | # ----------------------- | |
8274 | # Set $? to STATUS, without forking. | |
8275 | as_fn_set_status () | |
8276 | { | |
8277 | return $1 | |
8278 | } # as_fn_set_status | |
8279 | ||
8280 | # as_fn_exit STATUS | |
8281 | # ----------------- | |
8282 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
8283 | as_fn_exit () | |
8284 | { | |
8285 | set +e | |
8286 | as_fn_set_status $1 | |
8287 | exit $1 | |
8288 | } # as_fn_exit | |
8289 | ||
8290 | # as_fn_unset VAR | |
8291 | # --------------- | |
8292 | # Portably unset VAR. | |
8293 | as_fn_unset () | |
8294 | { | |
8295 | { eval $1=; unset $1;} | |
8296 | } | |
8297 | as_unset=as_fn_unset | |
c6cb8783 | 8298 | |
b08c89d9 UD |
8299 | # as_fn_append VAR VALUE |
8300 | # ---------------------- | |
8301 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
8302 | # advantage of any shell optimizations that allow amortized linear growth over | |
8303 | # repeated appends, instead of the typical quadratic growth present in naive | |
8304 | # implementations. | |
c6cb8783 SP |
8305 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
8306 | then : | |
b08c89d9 UD |
8307 | eval 'as_fn_append () |
8308 | { | |
8309 | eval $1+=\$2 | |
8310 | }' | |
c6cb8783 | 8311 | else $as_nop |
b08c89d9 UD |
8312 | as_fn_append () |
8313 | { | |
8314 | eval $1=\$$1\$2 | |
8315 | } | |
8316 | fi # as_fn_append | |
8317 | ||
8318 | # as_fn_arith ARG... | |
8319 | # ------------------ | |
8320 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
8321 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
8322 | # must be portable across $(()) and expr. | |
c6cb8783 SP |
8323 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
8324 | then : | |
b08c89d9 UD |
8325 | eval 'as_fn_arith () |
8326 | { | |
8327 | as_val=$(( $* )) | |
8328 | }' | |
c6cb8783 | 8329 | else $as_nop |
b08c89d9 UD |
8330 | as_fn_arith () |
8331 | { | |
8332 | as_val=`expr "$@" || test $? -eq 1` | |
8333 | } | |
8334 | fi # as_fn_arith | |
8335 | ||
8336 | ||
26f56c1c UD |
8337 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8338 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f4b07664 RM |
8339 | as_expr=expr |
8340 | else | |
8341 | as_expr=false | |
8342 | fi | |
8343 | ||
26f56c1c | 8344 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
f4b07664 RM |
8345 | as_basename=basename |
8346 | else | |
8347 | as_basename=false | |
8348 | fi | |
3a12e572 | 8349 | |
b08c89d9 UD |
8350 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8351 | as_dirname=dirname | |
8352 | else | |
8353 | as_dirname=false | |
8354 | fi | |
3a12e572 | 8355 | |
26f56c1c | 8356 | as_me=`$as_basename -- "$0" || |
3a12e572 UD |
8357 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8358 | X"$0" : 'X\(//\)$' \| \ | |
26f56c1c | 8359 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 8360 | printf "%s\n" X/"$0" | |
26f56c1c UD |
8361 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8362 | s//\1/ | |
8363 | q | |
8364 | } | |
8365 | /^X\/\(\/\/\)$/{ | |
8366 | s//\1/ | |
8367 | q | |
8368 | } | |
8369 | /^X\/\(\/\).*/{ | |
8370 | s//\1/ | |
8371 | q | |
8372 | } | |
8373 | s/.*/./; q'` | |
3a12e572 | 8374 | |
b08c89d9 UD |
8375 | # Avoid depending upon Character Ranges. |
8376 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8377 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8378 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8379 | as_cr_digits='0123456789' | |
8380 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
26f56c1c | 8381 | |
c6cb8783 SP |
8382 | |
8383 | # Determine whether it's possible to make 'echo' print without a newline. | |
8384 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
8385 | # for compatibility with existing Makefiles. | |
26f56c1c | 8386 | ECHO_C= ECHO_N= ECHO_T= |
b08c89d9 | 8387 | case `echo -n x` in #((((( |
26f56c1c | 8388 | -n*) |
b08c89d9 | 8389 | case `echo 'xy\c'` in |
26f56c1c | 8390 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b08c89d9 UD |
8391 | xy) ECHO_C='\c';; |
8392 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
8393 | ECHO_T=' ';; | |
26f56c1c UD |
8394 | esac;; |
8395 | *) | |
8396 | ECHO_N='-n';; | |
3a12e572 | 8397 | esac |
cd6ede75 | 8398 | |
c6cb8783 SP |
8399 | # For backward compatibility with old third-party macros, we provide |
8400 | # the shell variables $as_echo and $as_echo_n. New code should use | |
8401 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
8402 | as_echo='printf %s\n' | |
8403 | as_echo_n='printf %s' | |
8404 | ||
3a12e572 | 8405 | rm -f conf$$ conf$$.exe conf$$.file |
26f56c1c UD |
8406 | if test -d conf$$.dir; then |
8407 | rm -f conf$$.dir/conf$$.file | |
8408 | else | |
8409 | rm -f conf$$.dir | |
322e23db UD |
8410 | mkdir conf$$.dir 2>/dev/null |
8411 | fi | |
8412 | if (echo >conf$$.file) 2>/dev/null; then | |
8413 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
8414 | as_ln_s='ln -s' | |
8415 | # ... but there are two gotchas: | |
8416 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8417 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
f4a58f0d | 8418 | # In both cases, we have to default to `cp -pR'. |
322e23db | 8419 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
f4a58f0d | 8420 | as_ln_s='cp -pR' |
322e23db UD |
8421 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8422 | as_ln_s=ln | |
8423 | else | |
f4a58f0d | 8424 | as_ln_s='cp -pR' |
322e23db | 8425 | fi |
3a12e572 | 8426 | else |
f4a58f0d | 8427 | as_ln_s='cp -pR' |
cd6ede75 | 8428 | fi |
26f56c1c UD |
8429 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8430 | rmdir conf$$.dir 2>/dev/null | |
cd6ede75 | 8431 | |
b08c89d9 UD |
8432 | |
8433 | # as_fn_mkdir_p | |
8434 | # ------------- | |
8435 | # Create "$as_dir" as a directory, including parents if necessary. | |
8436 | as_fn_mkdir_p () | |
8437 | { | |
8438 | ||
8439 | case $as_dir in #( | |
8440 | -*) as_dir=./$as_dir;; | |
8441 | esac | |
8442 | test -d "$as_dir" || eval $as_mkdir_p || { | |
8443 | as_dirs= | |
8444 | while :; do | |
8445 | case $as_dir in #( | |
c6cb8783 | 8446 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
b08c89d9 UD |
8447 | *) as_qdir=$as_dir;; |
8448 | esac | |
8449 | as_dirs="'$as_qdir' $as_dirs" | |
8450 | as_dir=`$as_dirname -- "$as_dir" || | |
8451 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8452 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8453 | X"$as_dir" : 'X\(//\)$' \| \ | |
8454 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
c6cb8783 | 8455 | printf "%s\n" X"$as_dir" | |
b08c89d9 UD |
8456 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8457 | s//\1/ | |
8458 | q | |
8459 | } | |
8460 | /^X\(\/\/\)[^/].*/{ | |
8461 | s//\1/ | |
8462 | q | |
8463 | } | |
8464 | /^X\(\/\/\)$/{ | |
8465 | s//\1/ | |
8466 | q | |
8467 | } | |
8468 | /^X\(\/\).*/{ | |
8469 | s//\1/ | |
8470 | q | |
8471 | } | |
8472 | s/.*/./; q'` | |
8473 | test -d "$as_dir" && break | |
8474 | done | |
8475 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4a531bb0 | 8476 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b08c89d9 UD |
8477 | |
8478 | ||
8479 | } # as_fn_mkdir_p | |
f4b07664 | 8480 | if mkdir -p . 2>/dev/null; then |
b08c89d9 | 8481 | as_mkdir_p='mkdir -p "$as_dir"' |
f4b07664 | 8482 | else |
9382fcee | 8483 | test -d ./-p && rmdir ./-p |
f4b07664 RM |
8484 | as_mkdir_p=false |
8485 | fi | |
8486 | ||
f4a58f0d L |
8487 | |
8488 | # as_fn_executable_p FILE | |
8489 | # ----------------------- | |
8490 | # Test if FILE is an executable regular file. | |
8491 | as_fn_executable_p () | |
8492 | { | |
8493 | test -f "$1" && test -x "$1" | |
8494 | } # as_fn_executable_p | |
8495 | as_test_x='test -x' | |
8496 | as_executable_p=as_fn_executable_p | |
cd6ede75 | 8497 | |
3a12e572 | 8498 | # Sed expression to map a string onto a valid CPP name. |
9382fcee | 8499 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
8500 | |
8501 | # Sed expression to map a string onto a valid variable name. | |
9382fcee | 8502 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
3a12e572 UD |
8503 | |
8504 | ||
3a12e572 | 8505 | exec 6>&1 |
b08c89d9 UD |
8506 | ## ----------------------------------- ## |
8507 | ## Main body of $CONFIG_STATUS script. ## | |
8508 | ## ----------------------------------- ## | |
8509 | _ASEOF | |
8510 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3a12e572 | 8511 | |
b08c89d9 UD |
8512 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8513 | # Save the log message, to keep $0 and so on meaningful, and to | |
3a12e572 | 8514 | # report actual input values of CONFIG_FILES etc. instead of their |
26f56c1c UD |
8515 | # values after options handling. |
8516 | ac_log=" | |
f4b07664 | 8517 | This file was extended by GNU C Library $as_me (see version.h), which was |
c6cb8783 | 8518 | generated by GNU Autoconf 2.71. Invocation command line was |
3a12e572 UD |
8519 | |
8520 | CONFIG_FILES = $CONFIG_FILES | |
8521 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8522 | CONFIG_LINKS = $CONFIG_LINKS | |
8523 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8524 | $ $0 $@ | |
8525 | ||
26f56c1c UD |
8526 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8527 | " | |
8528 | ||
3a12e572 UD |
8529 | _ACEOF |
8530 | ||
322e23db UD |
8531 | case $ac_config_files in *" |
8532 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
8533 | esac | |
8534 | ||
8535 | case $ac_config_headers in *" | |
8536 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
8537 | esac | |
8538 | ||
8539 | ||
8540 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3a12e572 | 8541 | # Files that config.status was made for. |
26f56c1c UD |
8542 | config_files="$ac_config_files" |
8543 | config_headers="$ac_config_headers" | |
8544 | config_commands="$ac_config_commands" | |
3a12e572 | 8545 | |
26f56c1c | 8546 | _ACEOF |
3a12e572 | 8547 | |
322e23db | 8548 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 | 8549 | ac_cs_usage="\ |
b08c89d9 UD |
8550 | \`$as_me' instantiates files and other configuration actions |
8551 | from templates according to the current configuration. Unless the files | |
8552 | and actions are specified as TAGs, all are instantiated by default. | |
3a12e572 | 8553 | |
b08c89d9 | 8554 | Usage: $0 [OPTION]... [TAG]... |
3a12e572 UD |
8555 | |
8556 | -h, --help print this help, then exit | |
26f56c1c | 8557 | -V, --version print version number and configuration settings, then exit |
b08c89d9 | 8558 | --config print configuration, then exit |
322e23db UD |
8559 | -q, --quiet, --silent |
8560 | do not print progress messages | |
3a12e572 UD |
8561 | -d, --debug don't remove temporary files |
8562 | --recheck update $as_me by reconfiguring in the same conditions | |
322e23db UD |
8563 | --file=FILE[:TEMPLATE] |
8564 | instantiate the configuration file FILE | |
8565 | --header=FILE[:TEMPLATE] | |
8566 | instantiate the configuration header FILE | |
3a12e572 UD |
8567 | |
8568 | Configuration files: | |
8569 | $config_files | |
8570 | ||
8571 | Configuration headers: | |
8572 | $config_headers | |
8573 | ||
3a12e572 UD |
8574 | Configuration commands: |
8575 | $config_commands | |
8576 | ||
a306c790 | 8577 | Report bugs to <https://sourceware.org/bugzilla/>. |
02d35f06 | 8578 | GNU C Library home page: <https://www.gnu.org/software/glibc/>. |
c6cb8783 | 8579 | General help using GNU software: <https://www.gnu.org/gethelp/>." |
3a12e572 | 8580 | |
26f56c1c | 8581 | _ACEOF |
c6cb8783 SP |
8582 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
8583 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
322e23db | 8584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6cb8783 | 8585 | ac_cs_config='$ac_cs_config_escaped' |
3a12e572 | 8586 | ac_cs_version="\\ |
f4b07664 | 8587 | GNU C Library config.status (see version.h) |
c6cb8783 | 8588 | configured by $0, generated by GNU Autoconf 2.71, |
b08c89d9 | 8589 | with options \\"\$ac_cs_config\\" |
3a12e572 | 8590 | |
c6cb8783 | 8591 | Copyright (C) 2021 Free Software Foundation, Inc. |
3a12e572 UD |
8592 | This config.status script is free software; the Free Software Foundation |
8593 | gives unlimited permission to copy, distribute and modify it." | |
26f56c1c UD |
8594 | |
8595 | ac_pwd='$ac_pwd' | |
8596 | srcdir='$srcdir' | |
8597 | INSTALL='$INSTALL' | |
322e23db | 8598 | test -n "\$AWK" || AWK=awk |
3a12e572 UD |
8599 | _ACEOF |
8600 | ||
322e23db UD |
8601 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8602 | # The default lists apply if the user does not specify any file. | |
3a12e572 UD |
8603 | ac_need_defaults=: |
8604 | while test $# != 0 | |
8605 | do | |
8606 | case $1 in | |
f318beb8 | 8607 | --*=?*) |
26f56c1c UD |
8608 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8609 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
f4b07664 RM |
8610 | ac_shift=: |
8611 | ;; | |
f318beb8 UD |
8612 | --*=) |
8613 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
8614 | ac_optarg= | |
8615 | ac_shift=: | |
8616 | ;; | |
26f56c1c | 8617 | *) |
f4b07664 RM |
8618 | ac_option=$1 |
8619 | ac_optarg=$2 | |
8620 | ac_shift=shift | |
3a12e572 | 8621 | ;; |
cd6ede75 UD |
8622 | esac |
8623 | ||
f4b07664 | 8624 | case $ac_option in |
3a12e572 | 8625 | # Handling of the options. |
2abf9ff1 RM |
8626 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8627 | ac_cs_recheck=: ;; | |
26f56c1c | 8628 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
c6cb8783 | 8629 | printf "%s\n" "$ac_cs_version"; exit ;; |
b08c89d9 | 8630 | --config | --confi | --conf | --con | --co | --c ) |
c6cb8783 | 8631 | printf "%s\n" "$ac_cs_config"; exit ;; |
26f56c1c | 8632 | --debug | --debu | --deb | --de | --d | -d ) |
3a12e572 UD |
8633 | debug=: ;; |
8634 | --file | --fil | --fi | --f ) | |
f4b07664 | 8635 | $ac_shift |
322e23db | 8636 | case $ac_optarg in |
c6cb8783 | 8637 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
f318beb8 | 8638 | '') as_fn_error $? "missing file argument" ;; |
322e23db | 8639 | esac |
b08c89d9 | 8640 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
3a12e572 UD |
8641 | ac_need_defaults=false;; |
8642 | --header | --heade | --head | --hea ) | |
f4b07664 | 8643 | $ac_shift |
322e23db | 8644 | case $ac_optarg in |
c6cb8783 | 8645 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
322e23db | 8646 | esac |
b08c89d9 | 8647 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
3a12e572 | 8648 | ac_need_defaults=false;; |
26f56c1c UD |
8649 | --he | --h) |
8650 | # Conflict between --help and --header | |
4a531bb0 | 8651 | as_fn_error $? "ambiguous option: \`$1' |
b08c89d9 | 8652 | Try \`$0 --help' for more information.";; |
26f56c1c | 8653 | --help | --hel | -h ) |
c6cb8783 | 8654 | printf "%s\n" "$ac_cs_usage"; exit ;; |
2abf9ff1 RM |
8655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8656 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8657 | ac_cs_silent=: ;; | |
3a12e572 UD |
8658 | |
8659 | # This is an error. | |
4a531bb0 | 8660 | -*) as_fn_error $? "unrecognized option: \`$1' |
b08c89d9 | 8661 | Try \`$0 --help' for more information." ;; |
3a12e572 | 8662 | |
b08c89d9 | 8663 | *) as_fn_append ac_config_targets " $1" |
26f56c1c | 8664 | ac_need_defaults=false ;; |
cd6ede75 | 8665 | |
3a12e572 UD |
8666 | esac |
8667 | shift | |
8668 | done | |
8669 | ||
2abf9ff1 RM |
8670 | ac_configure_extra_args= |
8671 | ||
8672 | if $ac_cs_silent; then | |
8673 | exec 6>/dev/null | |
8674 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8675 | fi | |
8676 | ||
8677 | _ACEOF | |
322e23db | 8678 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
2abf9ff1 | 8679 | if \$ac_cs_recheck; then |
f4a58f0d | 8680 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
322e23db | 8681 | shift |
c6cb8783 | 8682 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
322e23db | 8683 | CONFIG_SHELL='$SHELL' |
26f56c1c | 8684 | export CONFIG_SHELL |
322e23db | 8685 | exec "\$@" |
2abf9ff1 RM |
8686 | fi |
8687 | ||
3a12e572 | 8688 | _ACEOF |
322e23db | 8689 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8690 | exec 5>>config.log |
8691 | { | |
8692 | echo | |
8693 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8694 | ## Running $as_me. ## | |
8695 | _ASBOX | |
c6cb8783 | 8696 | printf "%s\n" "$ac_log" |
26f56c1c | 8697 | } >&5 |
3a12e572 | 8698 | |
26f56c1c | 8699 | _ACEOF |
322e23db | 8700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
3a12e572 | 8701 | # |
26f56c1c | 8702 | # INIT-COMMANDS |
3a12e572 | 8703 | # |
3a12e572 UD |
8704 | config_vars='$config_vars' |
8705 | ||
8706 | _ACEOF | |
8707 | ||
322e23db | 8708 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8709 | |
8710 | # Handling of arguments. | |
3a12e572 UD |
8711 | for ac_config_target in $ac_config_targets |
8712 | do | |
26f56c1c UD |
8713 | case $ac_config_target in |
8714 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
8715 | "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;; | |
728e272a | 8716 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
26f56c1c UD |
8717 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
8718 | ||
4a531bb0 | 8719 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
3a12e572 UD |
8720 | esac |
8721 | done | |
8722 | ||
26f56c1c | 8723 | |
3a12e572 UD |
8724 | # If the user did not use the arguments to specify the items to instantiate, |
8725 | # then the envvar interface is used. Set only those that are not. | |
8726 | # We use the long form for the default assignment because of an extremely | |
8727 | # bizarre bug on SunOS 4.1.3. | |
8728 | if $ac_need_defaults; then | |
c6cb8783 SP |
8729 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
8730 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
8731 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands | |
3a12e572 UD |
8732 | fi |
8733 | ||
2abf9ff1 | 8734 | # Have a temporary directory for convenience. Make it in the build tree |
26f56c1c | 8735 | # simply because there is no reason against having it here, and in addition, |
2abf9ff1 | 8736 | # creating and moving files from /tmp can sometimes cause problems. |
26f56c1c UD |
8737 | # Hook for its removal unless debugging. |
8738 | # Note that there is a small window in which the directory will not be cleaned: | |
8739 | # after its creation but before its name has been assigned to `$tmp'. | |
3a12e572 UD |
8740 | $debug || |
8741 | { | |
f318beb8 | 8742 | tmp= ac_tmp= |
26f56c1c | 8743 | trap 'exit_status=$? |
f318beb8 UD |
8744 | : "${ac_tmp:=$tmp}" |
8745 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
26f56c1c | 8746 | ' 0 |
b08c89d9 | 8747 | trap 'as_fn_exit 1' 1 2 13 15 |
3a12e572 | 8748 | } |
3a12e572 | 8749 | # Create a (secure) tmp directory for tmp files. |
2abf9ff1 | 8750 | |
3a12e572 | 8751 | { |
26f56c1c | 8752 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f318beb8 | 8753 | test -d "$tmp" |
3a12e572 UD |
8754 | } || |
8755 | { | |
26f56c1c UD |
8756 | tmp=./conf$$-$RANDOM |
8757 | (umask 077 && mkdir "$tmp") | |
4a531bb0 | 8758 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
f318beb8 | 8759 | ac_tmp=$tmp |
3a12e572 | 8760 | |
322e23db UD |
8761 | # Set up the scripts for CONFIG_FILES section. |
8762 | # No need to generate them if there are no CONFIG_FILES. | |
8763 | # This happens for instance with `./config.status config.h'. | |
26f56c1c UD |
8764 | if test -n "$CONFIG_FILES"; then |
8765 | ||
a152f366 | 8766 | |
b08c89d9 UD |
8767 | ac_cr=`echo X | tr X '\015'` |
8768 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8769 | # But we know of no other shell where ac_cr would be empty at this | |
8770 | # point, so we can use a bashism as a fallback. | |
8771 | if test "x$ac_cr" = x; then | |
8772 | eval ac_cr=\$\'\\r\' | |
8773 | fi | |
322e23db UD |
8774 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
8775 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4a531bb0 | 8776 | ac_cs_awk_cr='\\r' |
322e23db UD |
8777 | else |
8778 | ac_cs_awk_cr=$ac_cr | |
26f56c1c UD |
8779 | fi |
8780 | ||
f318beb8 | 8781 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
26f56c1c UD |
8782 | _ACEOF |
8783 | ||
8784 | ||
322e23db UD |
8785 | { |
8786 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8787 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8788 | echo "_ACEOF" | |
8789 | } >conf$$subs.sh || | |
4a531bb0 L |
8790 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
8791 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
26f56c1c UD |
8792 | ac_delim='%!_!# ' |
8793 | for ac_last_try in false false false false false :; do | |
322e23db | 8794 | . ./conf$$subs.sh || |
4a531bb0 | 8795 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
322e23db UD |
8796 | |
8797 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8798 | if test $ac_delim_n = $ac_delim_num; then | |
26f56c1c UD |
8799 | break |
8800 | elif $ac_last_try; then | |
4a531bb0 | 8801 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
26f56c1c UD |
8802 | else |
8803 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8804 | fi | |
8805 | done | |
322e23db UD |
8806 | rm -f conf$$subs.sh |
8807 | ||
8808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
f318beb8 | 8809 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
322e23db UD |
8810 | _ACEOF |
8811 | sed -n ' | |
8812 | h | |
8813 | s/^/S["/; s/!.*/"]=/ | |
8814 | p | |
8815 | g | |
8816 | s/^[^!]*!// | |
8817 | :repl | |
8818 | t repl | |
8819 | s/'"$ac_delim"'$// | |
8820 | t delim | |
8821 | :nl | |
8822 | h | |
b08c89d9 | 8823 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
8824 | t more1 |
8825 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8826 | p | |
8827 | n | |
8828 | b repl | |
8829 | :more1 | |
8830 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8831 | p | |
8832 | g | |
8833 | s/.\{148\}// | |
8834 | t nl | |
8835 | :delim | |
8836 | h | |
b08c89d9 | 8837 | s/\(.\{148\}\)..*/\1/ |
322e23db UD |
8838 | t more2 |
8839 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8840 | p | |
8841 | b | |
8842 | :more2 | |
8843 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8844 | p | |
8845 | g | |
8846 | s/.\{148\}// | |
8847 | t delim | |
8848 | ' <conf$$subs.awk | sed ' | |
8849 | /^[^""]/{ | |
8850 | N | |
8851 | s/\n// | |
8852 | } | |
8853 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8854 | rm -f conf$$subs.awk | |
8855 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8856 | _ACAWK | |
f318beb8 | 8857 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
322e23db UD |
8858 | for (key in S) S_is_set[key] = 1 |
8859 | FS = "\a" | |
ff886b82 | 8860 | |
322e23db UD |
8861 | } |
8862 | { | |
8863 | line = $ 0 | |
8864 | nfields = split(line, field, "@") | |
8865 | substed = 0 | |
8866 | len = length(field[1]) | |
8867 | for (i = 2; i < nfields; i++) { | |
8868 | key = field[i] | |
8869 | keylen = length(key) | |
8870 | if (S_is_set[key]) { | |
8871 | value = S[key] | |
8872 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8873 | len += length(value) + length(field[++i]) | |
8874 | substed = 1 | |
8875 | } else | |
8876 | len += 1 + keylen | |
8877 | } | |
8878 | ||
8879 | print line | |
8880 | } | |
cd6ede75 | 8881 | |
322e23db | 8882 | _ACAWK |
26f56c1c | 8883 | _ACEOF |
322e23db UD |
8884 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
8885 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8886 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8887 | else | |
8888 | cat | |
f318beb8 | 8889 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
4a531bb0 | 8890 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
3a12e572 | 8891 | _ACEOF |
26f56c1c | 8892 | |
4a531bb0 L |
8893 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
8894 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
26f56c1c UD |
8895 | # trailing colons and then remove the whole line if VPATH becomes empty |
8896 | # (actually we leave an empty line to preserve line numbers). | |
8897 | if test "x$srcdir" = x.; then | |
4a531bb0 L |
8898 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
8899 | h | |
8900 | s/// | |
8901 | s/^/:/ | |
8902 | s/[ ]*$/:/ | |
8903 | s/:\$(srcdir):/:/g | |
8904 | s/:\${srcdir}:/:/g | |
8905 | s/:@srcdir@:/:/g | |
8906 | s/^:*// | |
26f56c1c | 8907 | s/:*$// |
4a531bb0 L |
8908 | x |
8909 | s/\(=[ ]*\).*/\1/ | |
8910 | G | |
8911 | s/\n// | |
26f56c1c UD |
8912 | s/^[^=]*=[ ]*$// |
8913 | }' | |
8914 | fi | |
8915 | ||
322e23db | 8916 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
8917 | fi # test -n "$CONFIG_FILES" |
8918 | ||
322e23db UD |
8919 | # Set up the scripts for CONFIG_HEADERS section. |
8920 | # No need to generate them if there are no CONFIG_HEADERS. | |
8921 | # This happens for instance with `./config.status Makefile'. | |
8922 | if test -n "$CONFIG_HEADERS"; then | |
f318beb8 | 8923 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
322e23db UD |
8924 | BEGIN { |
8925 | _ACEOF | |
8926 | ||
8927 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8928 | # here-document in config.status, that substitutes the proper values into | |
8929 | # config.h.in to produce config.h. | |
8930 | ||
8931 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8932 | # handling of long lines. | |
8933 | ac_delim='%!_!# ' | |
8934 | for ac_last_try in false false :; do | |
f318beb8 UD |
8935 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
8936 | if test -z "$ac_tt"; then | |
322e23db UD |
8937 | break |
8938 | elif $ac_last_try; then | |
4a531bb0 | 8939 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
322e23db UD |
8940 | else |
8941 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8942 | fi | |
8943 | done | |
8944 | ||
8945 | # For the awk script, D is an array of macro values keyed by name, | |
8946 | # likewise P contains macro parameters if any. Preserve backslash | |
8947 | # newline sequences. | |
8948 | ||
8949 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8950 | sed -n ' | |
8951 | s/.\{148\}/&'"$ac_delim"'/g | |
8952 | t rset | |
8953 | :rset | |
8954 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8955 | t def | |
8956 | d | |
8957 | :def | |
8958 | s/\\$// | |
8959 | t bsnl | |
8960 | s/["\\]/\\&/g | |
8961 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8962 | D["\1"]=" \3"/p | |
8963 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8964 | d | |
8965 | :bsnl | |
8966 | s/["\\]/\\&/g | |
8967 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8968 | D["\1"]=" \3\\\\\\n"\\/p | |
8969 | t cont | |
8970 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8971 | t cont | |
8972 | d | |
8973 | :cont | |
8974 | n | |
8975 | s/.\{148\}/&'"$ac_delim"'/g | |
8976 | t clear | |
8977 | :clear | |
8978 | s/\\$// | |
8979 | t bsnlc | |
8980 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8981 | d | |
8982 | :bsnlc | |
8983 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8984 | b cont | |
8985 | ' <confdefs.h | sed ' | |
8986 | s/'"$ac_delim"'/"\\\ | |
8987 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8988 | ||
8989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8990 | for (key in D) D_is_set[key] = 1 | |
8991 | FS = "\a" | |
8992 | } | |
8993 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8994 | line = \$ 0 | |
8995 | split(line, arg, " ") | |
8996 | if (arg[1] == "#") { | |
8997 | defundef = arg[2] | |
8998 | mac1 = arg[3] | |
8999 | } else { | |
9000 | defundef = substr(arg[1], 2) | |
9001 | mac1 = arg[2] | |
9002 | } | |
9003 | split(mac1, mac2, "(") #) | |
9004 | macro = mac2[1] | |
9005 | prefix = substr(line, 1, index(line, defundef) - 1) | |
9006 | if (D_is_set[macro]) { | |
9007 | # Preserve the white space surrounding the "#". | |
9008 | print prefix "define", macro P[macro] D[macro] | |
9009 | next | |
9010 | } else { | |
9011 | # Replace #undef with comments. This is necessary, for example, | |
9012 | # in the case of _POSIX_SOURCE, which is predefined and required | |
9013 | # on some systems where configure will not decide to define it. | |
9014 | if (defundef == "undef") { | |
9015 | print "/*", prefix defundef, macro, "*/" | |
9016 | next | |
9017 | } | |
9018 | } | |
9019 | } | |
9020 | { print } | |
9021 | _ACAWK | |
9022 | _ACEOF | |
9023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4a531bb0 | 9024 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
322e23db UD |
9025 | fi # test -n "$CONFIG_HEADERS" |
9026 | ||
26f56c1c | 9027 | |
322e23db UD |
9028 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
9029 | shift | |
9030 | for ac_tag | |
26f56c1c UD |
9031 | do |
9032 | case $ac_tag in | |
9033 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
9034 | esac | |
9035 | case $ac_mode$ac_tag in | |
9036 | :[FHL]*:*);; | |
4a531bb0 | 9037 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
26f56c1c UD |
9038 | :[FH]-) ac_tag=-:-;; |
9039 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
cd6ede75 | 9040 | esac |
26f56c1c UD |
9041 | ac_save_IFS=$IFS |
9042 | IFS=: | |
9043 | set x $ac_tag | |
9044 | IFS=$ac_save_IFS | |
9045 | shift | |
9046 | ac_file=$1 | |
9047 | shift | |
9048 | ||
9049 | case $ac_mode in | |
9050 | :L) ac_source=$1;; | |
9051 | :[FH]) | |
9052 | ac_file_inputs= | |
9053 | for ac_f | |
9054 | do | |
9055 | case $ac_f in | |
f318beb8 | 9056 | -) ac_f="$ac_tmp/stdin";; |
26f56c1c UD |
9057 | *) # Look for the file first in the build tree, then in the source tree |
9058 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
9059 | # because $ac_f cannot contain `:'. | |
9060 | test -f "$ac_f" || | |
9061 | case $ac_f in | |
9062 | [\\/$]*) false;; | |
9063 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
9064 | esac || | |
4a531bb0 | 9065 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
26f56c1c | 9066 | esac |
c6cb8783 | 9067 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
b08c89d9 | 9068 | as_fn_append ac_file_inputs " '$ac_f'" |
26f56c1c | 9069 | done |
cd6ede75 | 9070 | |
26f56c1c UD |
9071 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
9072 | # use $as_me), people would be surprised to read: | |
9073 | # /* config.h. Generated by config.status. */ | |
322e23db | 9074 | configure_input='Generated from '` |
c6cb8783 | 9075 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
322e23db | 9076 | `' by configure.' |
26f56c1c UD |
9077 | if test x"$ac_file" != x-; then |
9078 | configure_input="$ac_file. $configure_input" | |
c6cb8783 SP |
9079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
9080 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
26f56c1c | 9081 | fi |
322e23db UD |
9082 | # Neutralize special characters interpreted by sed in replacement strings. |
9083 | case $configure_input in #( | |
9084 | *\&* | *\|* | *\\* ) | |
c6cb8783 | 9085 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
322e23db UD |
9086 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
9087 | *) ac_sed_conf_input=$configure_input;; | |
9088 | esac | |
26f56c1c UD |
9089 | |
9090 | case $ac_tag in | |
f318beb8 | 9091 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
4a531bb0 | 9092 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
26f56c1c UD |
9093 | esac |
9094 | ;; | |
9095 | esac | |
9096 | ||
9097 | ac_dir=`$as_dirname -- "$ac_file" || | |
3a12e572 | 9098 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9382fcee RM |
9099 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
9100 | X"$ac_file" : 'X\(//\)$' \| \ | |
26f56c1c | 9101 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
c6cb8783 | 9102 | printf "%s\n" X"$ac_file" | |
26f56c1c UD |
9103 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9104 | s//\1/ | |
9105 | q | |
9106 | } | |
9107 | /^X\(\/\/\)[^/].*/{ | |
9108 | s//\1/ | |
9109 | q | |
9110 | } | |
9111 | /^X\(\/\/\)$/{ | |
9112 | s//\1/ | |
9113 | q | |
9114 | } | |
9115 | /^X\(\/\).*/{ | |
9116 | s//\1/ | |
9117 | q | |
9118 | } | |
9119 | s/.*/./; q'` | |
b08c89d9 | 9120 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 UD |
9121 | ac_builddir=. |
9122 | ||
26f56c1c UD |
9123 | case "$ac_dir" in |
9124 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9125 | *) | |
c6cb8783 | 9126 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 9127 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 9128 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
9129 | case $ac_top_builddir_sub in |
9130 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9131 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9132 | esac ;; | |
9133 | esac | |
9134 | ac_abs_top_builddir=$ac_pwd | |
9135 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9136 | # for backward compatibility: | |
9137 | ac_top_builddir=$ac_top_build_prefix | |
3a12e572 UD |
9138 | |
9139 | case $srcdir in | |
26f56c1c | 9140 | .) # We are building in place. |
3a12e572 | 9141 | ac_srcdir=. |
26f56c1c UD |
9142 | ac_top_srcdir=$ac_top_builddir_sub |
9143 | ac_abs_top_srcdir=$ac_pwd ;; | |
9144 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 9145 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
9146 | ac_top_srcdir=$srcdir |
9147 | ac_abs_top_srcdir=$srcdir ;; | |
9148 | *) # Relative name. | |
9149 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9150 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9151 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
3a12e572 | 9152 | esac |
26f56c1c | 9153 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
9382fcee | 9154 | |
cd6ede75 | 9155 | |
26f56c1c UD |
9156 | case $ac_mode in |
9157 | :F) | |
9158 | # | |
9159 | # CONFIG_FILE | |
9160 | # | |
3a12e572 UD |
9161 | |
9162 | case $INSTALL in | |
9163 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
26f56c1c | 9164 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
cd6ede75 | 9165 | esac |
26f56c1c | 9166 | _ACEOF |
cd6ede75 | 9167 | |
322e23db | 9168 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9169 | # If the template does not know about datarootdir, expand it. |
9170 | # FIXME: This hack should be removed a few years after 2.60. | |
9171 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
322e23db UD |
9172 | ac_sed_dataroot=' |
9173 | /datarootdir/ { | |
26f56c1c UD |
9174 | p |
9175 | q | |
9176 | } | |
9177 | /@datadir@/p | |
9178 | /@docdir@/p | |
9179 | /@infodir@/p | |
9180 | /@localedir@/p | |
b08c89d9 | 9181 | /@mandir@/p' |
322e23db | 9182 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
26f56c1c UD |
9183 | *datarootdir*) ac_datarootdir_seen=yes;; |
9184 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
c6cb8783 SP |
9185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
9186 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
26f56c1c | 9187 | _ACEOF |
322e23db | 9188 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
26f56c1c UD |
9189 | ac_datarootdir_hack=' |
9190 | s&@datadir@&$datadir&g | |
9191 | s&@docdir@&$docdir&g | |
9192 | s&@infodir@&$infodir&g | |
9193 | s&@localedir@&$localedir&g | |
9194 | s&@mandir@&$mandir&g | |
b08c89d9 | 9195 | s&\\\${datarootdir}&$datarootdir&g' ;; |
26f56c1c | 9196 | esac |
3a12e572 | 9197 | _ACEOF |
26f56c1c UD |
9198 | |
9199 | # Neutralize VPATH when `$srcdir' = `.'. | |
9200 | # Shell code in configure.ac might set extrasub. | |
9201 | # FIXME: do we really want to maintain this feature? | |
322e23db UD |
9202 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
9203 | ac_sed_extra="$ac_vpsub | |
3a12e572 UD |
9204 | $extrasub |
9205 | _ACEOF | |
322e23db | 9206 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
3a12e572 UD |
9207 | :t |
9208 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
322e23db | 9209 | s|@configure_input@|$ac_sed_conf_input|;t t |
26f56c1c | 9210 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
322e23db | 9211 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
26f56c1c UD |
9212 | s&@srcdir@&$ac_srcdir&;t t |
9213 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
9214 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
9215 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
9216 | s&@builddir@&$ac_builddir&;t t | |
9217 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
9218 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
9219 | s&@INSTALL@&$ac_INSTALL&;t t | |
9220 | $ac_datarootdir_hack | |
322e23db | 9221 | " |
f318beb8 UD |
9222 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
9223 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
26f56c1c UD |
9224 | |
9225 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
f318beb8 UD |
9226 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
9227 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
9228 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
c6cb8783 | 9229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 9230 | which seems to be undefined. Please make sure it is defined" >&5 |
c6cb8783 | 9231 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
4a531bb0 | 9232 | which seems to be undefined. Please make sure it is defined" >&2;} |
26f56c1c | 9233 | |
f318beb8 | 9234 | rm -f "$ac_tmp/stdin" |
3a12e572 | 9235 | case $ac_file in |
f318beb8 UD |
9236 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
9237 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
322e23db | 9238 | esac \ |
4a531bb0 | 9239 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
26f56c1c UD |
9240 | ;; |
9241 | :H) | |
9242 | # | |
9243 | # CONFIG_HEADER | |
9244 | # | |
3a12e572 | 9245 | if test x"$ac_file" != x-; then |
322e23db | 9246 | { |
c6cb8783 | 9247 | printf "%s\n" "/* $configure_input */" >&1 \ |
f318beb8 UD |
9248 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
9249 | } >"$ac_tmp/config.h" \ | |
4a531bb0 | 9250 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f318beb8 | 9251 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
c6cb8783 SP |
9252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
9253 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
3a12e572 | 9254 | else |
322e23db | 9255 | rm -f "$ac_file" |
f318beb8 | 9256 | mv "$ac_tmp/config.h" "$ac_file" \ |
4a531bb0 | 9257 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
f4b07664 RM |
9258 | fi |
9259 | else | |
c6cb8783 | 9260 | printf "%s\n" "/* $configure_input */" >&1 \ |
f318beb8 | 9261 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
4a531bb0 | 9262 | || as_fn_error $? "could not create -" "$LINENO" 5 |
f4b07664 | 9263 | fi |
26f56c1c | 9264 | ;; |
9382fcee | 9265 | |
c6cb8783 SP |
9266 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
9267 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} | |
26f56c1c UD |
9268 | ;; |
9269 | esac | |
3a12e572 UD |
9270 | |
9271 | ||
26f56c1c UD |
9272 | case $ac_file$ac_mode in |
9273 | "default":C) | |
c0fb8a56 UD |
9274 | case $CONFIG_FILES in *config.make*) |
9275 | echo "$config_vars" >> config.make;; | |
9276 | esac | |
3a12e572 | 9277 | test -d bits || mkdir bits ;; |
26f56c1c | 9278 | |
3a12e572 | 9279 | esac |
26f56c1c | 9280 | done # for ac_tag |
3a12e572 | 9281 | |
3a12e572 | 9282 | |
b08c89d9 | 9283 | as_fn_exit 0 |
3a12e572 | 9284 | _ACEOF |
3a12e572 UD |
9285 | ac_clean_files=$ac_clean_files_save |
9286 | ||
322e23db | 9287 | test $ac_write_fail = 0 || |
4a531bb0 | 9288 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
322e23db | 9289 | |
3a12e572 UD |
9290 | |
9291 | # configure is writing to config.log, and then calls config.status. | |
9292 | # config.status does its own redirection, appending to config.log. | |
9293 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9294 | # by configure, so config.status won't be able to write to it; its | |
9295 | # output is simply discarded. So we exec the FD to /dev/null, | |
9296 | # effectively closing config.log, so it can be properly (re)opened and | |
9297 | # appended to by config.status. When coming back to configure, we | |
9298 | # need to make the FD available again. | |
9299 | if test "$no_create" != yes; then | |
9300 | ac_cs_success=: | |
2abf9ff1 RM |
9301 | ac_config_status_args= |
9302 | test "$silent" = yes && | |
9303 | ac_config_status_args="$ac_config_status_args --quiet" | |
3a12e572 | 9304 | exec 5>/dev/null |
2abf9ff1 | 9305 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
3a12e572 UD |
9306 | exec 5>>config.log |
9307 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9308 | # would make configure fail if this is the last instruction. | |
4a531bb0 | 9309 | $ac_cs_success || as_fn_exit 1 |
3a12e572 | 9310 | fi |
cd6ede75 | 9311 | |
3a12e572 UD |
9312 | # |
9313 | # CONFIG_SUBDIRS section. | |
9314 | # | |
cd6ede75 UD |
9315 | if test "$no_recursion" != yes; then |
9316 | ||
322e23db UD |
9317 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
9318 | # so they do not pile up. | |
cd6ede75 UD |
9319 | ac_sub_configure_args= |
9320 | ac_prev= | |
26f56c1c UD |
9321 | eval "set x $ac_configure_args" |
9322 | shift | |
9323 | for ac_arg | |
9324 | do | |
cd6ede75 UD |
9325 | if test -n "$ac_prev"; then |
9326 | ac_prev= | |
9327 | continue | |
9328 | fi | |
3a12e572 | 9329 | case $ac_arg in |
cd6ede75 UD |
9330 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
9331 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
9332 | ac_prev=cache_file ;; | |
9333 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
3a12e572 UD |
9334 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
9335 | | --c=*) | |
9336 | ;; | |
9337 | --config-cache | -C) | |
cd6ede75 UD |
9338 | ;; |
9339 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
9340 | ac_prev=srcdir ;; | |
9341 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9342 | ;; | |
3a12e572 UD |
9343 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
9344 | ac_prev=prefix ;; | |
9345 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9346 | ;; | |
322e23db UD |
9347 | --disable-option-checking) |
9348 | ;; | |
26f56c1c UD |
9349 | *) |
9350 | case $ac_arg in | |
c6cb8783 | 9351 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c | 9352 | esac |
b08c89d9 | 9353 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
cd6ede75 UD |
9354 | esac |
9355 | done | |
9356 | ||
3a12e572 UD |
9357 | # Always prepend --prefix to ensure using the same prefix |
9358 | # in subdir configurations. | |
26f56c1c UD |
9359 | ac_arg="--prefix=$prefix" |
9360 | case $ac_arg in | |
c6cb8783 | 9361 | *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
26f56c1c UD |
9362 | esac |
9363 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
9364 | ||
9365 | # Pass --silent | |
9366 | if test "$silent" = yes; then | |
9367 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
9368 | fi | |
3a12e572 | 9369 | |
322e23db UD |
9370 | # Always prepend --disable-option-checking to silence warnings, since |
9371 | # different subdirs can have different --enable and --with options. | |
9372 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
9373 | ||
3a12e572 UD |
9374 | ac_popdir=`pwd` |
9375 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
cd6ede75 UD |
9376 | |
9377 | # Do not complain, so a configure script can configure whichever | |
9378 | # parts of a large source tree are present. | |
26f56c1c UD |
9379 | test -d "$srcdir/$ac_dir" || continue |
9380 | ||
9381 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
c6cb8783 SP |
9382 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
9383 | printf "%s\n" "$ac_msg" >&6 | |
b08c89d9 | 9384 | as_dir="$ac_dir"; as_fn_mkdir_p |
3a12e572 | 9385 | ac_builddir=. |
cd6ede75 | 9386 | |
26f56c1c UD |
9387 | case "$ac_dir" in |
9388 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9389 | *) | |
c6cb8783 | 9390 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
26f56c1c | 9391 | # A ".." for each directory in $ac_dir_suffix. |
c6cb8783 | 9392 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
26f56c1c UD |
9393 | case $ac_top_builddir_sub in |
9394 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
9395 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
9396 | esac ;; | |
9397 | esac | |
9398 | ac_abs_top_builddir=$ac_pwd | |
9399 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
9400 | # for backward compatibility: | |
9401 | ac_top_builddir=$ac_top_build_prefix | |
cd6ede75 | 9402 | |
3a12e572 | 9403 | case $srcdir in |
26f56c1c | 9404 | .) # We are building in place. |
3a12e572 | 9405 | ac_srcdir=. |
26f56c1c UD |
9406 | ac_top_srcdir=$ac_top_builddir_sub |
9407 | ac_abs_top_srcdir=$ac_pwd ;; | |
9408 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
3a12e572 | 9409 | ac_srcdir=$srcdir$ac_dir_suffix; |
26f56c1c UD |
9410 | ac_top_srcdir=$srcdir |
9411 | ac_abs_top_srcdir=$srcdir ;; | |
9412 | *) # Relative name. | |
9413 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
9414 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
9415 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
9382fcee | 9416 | esac |
26f56c1c | 9417 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
3a12e572 UD |
9418 | |
9419 | ||
26f56c1c | 9420 | cd "$ac_dir" |
cd6ede75 | 9421 | |
c6cb8783 SP |
9422 | # Check for configure.gnu first; this name is used for a wrapper for |
9423 | # Metaconfig's "Configure" on case-insensitive file systems. | |
26f56c1c UD |
9424 | if test -f "$ac_srcdir/configure.gnu"; then |
9425 | ac_sub_configure=$ac_srcdir/configure.gnu | |
9426 | elif test -f "$ac_srcdir/configure"; then | |
9427 | ac_sub_configure=$ac_srcdir/configure | |
cd6ede75 | 9428 | else |
c6cb8783 SP |
9429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
9430 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
cd6ede75 UD |
9431 | ac_sub_configure= |
9432 | fi | |
9433 | ||
9434 | # The recursion is here. | |
9435 | if test -n "$ac_sub_configure"; then | |
cd6ede75 | 9436 | # Make the cache file name correct relative to the subdirectory. |
3a12e572 UD |
9437 | case $cache_file in |
9438 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
26f56c1c UD |
9439 | *) # Relative name. |
9440 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
cd6ede75 | 9441 | esac |
cd6ede75 | 9442 | |
c6cb8783 SP |
9443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
9444 | printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
cd6ede75 | 9445 | # The eval makes quoting arguments work. |
26f56c1c UD |
9446 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
9447 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
4a531bb0 | 9448 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
cd6ede75 UD |
9449 | fi |
9450 | ||
26f56c1c | 9451 | cd "$ac_popdir" |
cd6ede75 UD |
9452 | done |
9453 | fi | |
322e23db | 9454 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
c6cb8783 SP |
9455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
9456 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
322e23db | 9457 | fi |
cd6ede75 | 9458 | |
c6cb8783 | 9459 |