]>
Commit | Line | Data |
---|---|---|
fa958513 DJ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
22e05272 JM |
3 | # Generated by GNU Autoconf 2.69 for GNU C Runtime Library 1.0. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
5213506e | 7 | # |
fa958513 | 8 | # |
fa958513 DJ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
fa958513 | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
fa958513 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fa958513 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
fa958513 | 31 | fi |
fa958513 | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
fa958513 | 50 | else |
5213506e RW |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
fa958513 DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 90 | as_myself= |
5213506e RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
fa958513 DJ |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
5213506e RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
22e05272 JM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
5213506e RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
22e05272 JM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
5213506e RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
569dc494 RO |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
200 | if (eval "$as_required") 2>/dev/null; then : |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
fa958513 | 211 | do |
5213506e RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
22e05272 JM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
5213506e RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
fa958513 | 266 | else |
5213506e RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
fa958513 | 271 | fi |
5213506e RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5213506e RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
22e05272 JM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
5213506e RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
402 | ||
22e05272 JM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
5213506e RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 407 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
408 | as_fn_error () |
409 | { | |
22e05272 JM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5213506e | 414 | fi |
22e05272 | 415 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
fa958513 | 418 | |
5213506e RW |
419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fa958513 DJ |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
425 | ||
5213506e | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fa958513 DJ |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
431 | ||
5213506e RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
fa958513 | 437 | |
5213506e | 438 | as_me=`$as_basename -- "$0" || |
fa958513 DJ |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
fa958513 | 456 | |
d6efbf5a DJ |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14e8fc8b | 463 | |
fa958513 | 464 | |
5213506e RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
fa958513 | 474 | sed ' |
5213506e RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
fa958513 | 479 | N |
5213506e RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fa958513 | 482 | t loop |
5213506e | 483 | s/-\n.*// |
fa958513 | 484 | ' >$as_me.lineno && |
5213506e RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
fa958513 | 487 | |
22e05272 JM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
fa958513 DJ |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
fa958513 DJ |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
499 | ||
5213506e RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
fa958513 DJ |
511 | esac |
512 | ||
5213506e RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
fa958513 | 516 | else |
5213506e RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
fa958513 | 519 | fi |
5213506e RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6efbf5a | 522 | as_ln_s='ln -s' |
5213506e RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 526 | # In both cases, we have to default to `cp -pR'. |
5213506e | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 528 | as_ln_s='cp -pR' |
5213506e RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
22e05272 | 532 | as_ln_s='cp -pR' |
d6efbf5a | 533 | fi |
fa958513 | 534 | else |
22e05272 | 535 | as_ln_s='cp -pR' |
fa958513 | 536 | fi |
5213506e RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
fa958513 DJ |
539 | |
540 | if mkdir -p . 2>/dev/null; then | |
5213506e | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
fa958513 DJ |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
546 | ||
22e05272 JM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
fa958513 DJ |
549 | |
550 | # Sed expression to map a string onto a valid CPP name. | |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | # Sed expression to map a string onto a valid variable name. | |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | ||
22e05272 JM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
fa958513 DJ |
559 | |
560 | # Name of the host. | |
22e05272 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
fa958513 DJ |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
564 | ||
fa958513 DJ |
565 | # |
566 | # Initializations. | |
567 | # | |
568 | ac_default_prefix=/usr/local | |
5213506e | 569 | ac_clean_files= |
fa958513 | 570 | ac_config_libobj_dir=. |
5213506e | 571 | LIBOBJS= |
fa958513 DJ |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
d6efbf5a | 576 | |
fa958513 DJ |
577 | # Identity of this package. |
578 | PACKAGE_NAME='GNU C Runtime Library' | |
579 | PACKAGE_TARNAME='libgcc' | |
580 | PACKAGE_VERSION='1.0' | |
581 | PACKAGE_STRING='GNU C Runtime Library 1.0' | |
582 | PACKAGE_BUGREPORT='' | |
5213506e | 583 | PACKAGE_URL='http://www.gnu.org/software/libgcc/' |
fa958513 DJ |
584 | |
585 | ac_unique_file="static-object.mk" | |
07ba94b9 | 586 | ac_includes_default='/* none */' |
5213506e RW |
587 | ac_subst_vars='LTLIBOBJS |
588 | LIBOBJS | |
7e02fd1b EB |
589 | md_unwind_header |
590 | unwind_header | |
591 | enable_execute_stack | |
5213506e RW |
592 | asm_hidden_op |
593 | extra_parts | |
ca24c5ad | 594 | cpu_type |
3c36aa6b | 595 | get_gcc_base_ver |
1183dc2c | 596 | thread_header |
852b75ed RO |
597 | tm_defines |
598 | tm_file | |
5213506e | 599 | tmake_file |
aca0b0b3 | 600 | sfp_machine_header |
368fabd5 | 601 | set_use_emutls |
5213506e RW |
602 | set_have_cc_tls |
603 | vis_hide | |
53c6feb2 | 604 | solaris_ld_v2_maps |
d28ad5d4 | 605 | real_host_noncanonical |
85c64bbe | 606 | accel_dir_suffix |
5a460280 | 607 | use_tm_clone_registry |
598a1586 | 608 | force_explicit_eh_registry |
1ecae1fc | 609 | CET_FLAGS |
5213506e RW |
610 | fixed_point |
611 | enable_decimal_float | |
612 | decimal_float | |
0e4a0def KT |
613 | EGREP |
614 | GREP | |
569dc494 RO |
615 | long_double_type_size |
616 | double_type_size | |
0824d924 KT |
617 | CPP |
618 | OBJEXT | |
619 | EXEEXT | |
620 | ac_ct_CC | |
621 | CPPFLAGS | |
622 | LDFLAGS | |
623 | CFLAGS | |
624 | CC | |
5213506e RW |
625 | LN_S |
626 | STRIP | |
627 | RANLIB | |
628 | NM | |
629 | LIPO | |
630 | AR | |
58c741a6 DK |
631 | toolexeclibdir |
632 | toolexecdir | |
39be73d0 | 633 | enable_gcov |
5213506e RW |
634 | target_subdir |
635 | host_subdir | |
636 | build_subdir | |
637 | build_libsubdir | |
58c741a6 | 638 | target_noncanonical |
5213506e | 639 | host_noncanonical |
f9989b51 RO |
640 | AWK |
641 | INSTALL_DATA | |
642 | INSTALL_SCRIPT | |
643 | INSTALL_PROGRAM | |
644 | MAINT | |
645 | slibdir | |
646 | PICFLAG | |
5213506e RW |
647 | host_os |
648 | host_vendor | |
649 | host_cpu | |
650 | host | |
651 | build_os | |
652 | build_vendor | |
653 | build_cpu | |
654 | build | |
dd913323 | 655 | with_aix_soname |
2077db1b | 656 | enable_vtable_verify |
5213506e RW |
657 | enable_shared |
658 | libgcc_topdir | |
659 | target_alias | |
660 | host_alias | |
661 | build_alias | |
662 | LIBS | |
663 | ECHO_T | |
664 | ECHO_N | |
665 | ECHO_C | |
666 | DEFS | |
667 | mandir | |
668 | localedir | |
669 | libdir | |
670 | psdir | |
671 | pdfdir | |
672 | dvidir | |
673 | htmldir | |
674 | infodir | |
675 | docdir | |
676 | oldincludedir | |
677 | includedir | |
678 | localstatedir | |
679 | sharedstatedir | |
680 | sysconfdir | |
681 | datadir | |
682 | datarootdir | |
683 | libexecdir | |
684 | sbindir | |
685 | bindir | |
686 | program_transform_name | |
687 | prefix | |
688 | exec_prefix | |
689 | PACKAGE_URL | |
690 | PACKAGE_BUGREPORT | |
691 | PACKAGE_STRING | |
692 | PACKAGE_VERSION | |
693 | PACKAGE_TARNAME | |
694 | PACKAGE_NAME | |
695 | PATH_SEPARATOR | |
696 | SHELL' | |
fa958513 | 697 | ac_subst_files='' |
5213506e RW |
698 | ac_user_opts=' |
699 | enable_option_checking | |
700 | with_target_subdir | |
701 | with_cross_host | |
702 | with_ld | |
703 | enable_shared | |
2077db1b | 704 | enable_vtable_verify |
dd913323 | 705 | with_aix_soname |
5213506e | 706 | enable_version_specific_runtime_libs |
e8e66971 | 707 | with_toolexeclibdir |
5213506e RW |
708 | with_slibdir |
709 | enable_maintainer_mode | |
710 | with_build_libsubdir | |
39be73d0 | 711 | enable_gcov |
a51a76e5 | 712 | enable_largefile |
5213506e | 713 | enable_decimal_float |
201cdb74 | 714 | with_system_libunwind |
1ecae1fc | 715 | enable_cet |
598a1586 | 716 | enable_explicit_exception_frame_registration |
5a460280 | 717 | enable_tm_clone_registry |
e610393c | 718 | with_glibc_version |
5213506e | 719 | enable_tls |
3c36aa6b | 720 | with_gcc_major_version_only |
5213506e RW |
721 | ' |
722 | ac_precious_vars='build_alias | |
723 | host_alias | |
724 | target_alias | |
725 | CC | |
726 | CFLAGS | |
727 | LDFLAGS | |
728 | LIBS | |
729 | CPPFLAGS | |
730 | CPP' | |
731 | ||
fa958513 DJ |
732 | |
733 | # Initialize some variables set by options. | |
734 | ac_init_help= | |
735 | ac_init_version=false | |
5213506e RW |
736 | ac_unrecognized_opts= |
737 | ac_unrecognized_sep= | |
fa958513 DJ |
738 | # The variables have the same names as the options, with |
739 | # dashes changed to underlines. | |
740 | cache_file=/dev/null | |
741 | exec_prefix=NONE | |
742 | no_create= | |
743 | no_recursion= | |
744 | prefix=NONE | |
745 | program_prefix=NONE | |
746 | program_suffix=NONE | |
747 | program_transform_name=s,x,x, | |
748 | silent= | |
749 | site= | |
750 | srcdir= | |
751 | verbose= | |
752 | x_includes=NONE | |
753 | x_libraries=NONE | |
754 | ||
755 | # Installation directory options. | |
756 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
757 | # and all the variables that are supposed to be based on exec_prefix | |
758 | # by default will actually change. | |
759 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 760 | # (The list follows the same order as the GNU Coding Standards.) |
fa958513 DJ |
761 | bindir='${exec_prefix}/bin' |
762 | sbindir='${exec_prefix}/sbin' | |
763 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
764 | datarootdir='${prefix}/share' |
765 | datadir='${datarootdir}' | |
fa958513 DJ |
766 | sysconfdir='${prefix}/etc' |
767 | sharedstatedir='${prefix}/com' | |
768 | localstatedir='${prefix}/var' | |
fa958513 DJ |
769 | includedir='${prefix}/include' |
770 | oldincludedir='/usr/include' | |
5213506e RW |
771 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
772 | infodir='${datarootdir}/info' | |
773 | htmldir='${docdir}' | |
774 | dvidir='${docdir}' | |
775 | pdfdir='${docdir}' | |
776 | psdir='${docdir}' | |
777 | libdir='${exec_prefix}/lib' | |
778 | localedir='${datarootdir}/locale' | |
779 | mandir='${datarootdir}/man' | |
fa958513 DJ |
780 | |
781 | ac_prev= | |
5213506e | 782 | ac_dashdash= |
fa958513 DJ |
783 | for ac_option |
784 | do | |
785 | # If the previous option needs an argument, assign it. | |
786 | if test -n "$ac_prev"; then | |
5213506e | 787 | eval $ac_prev=\$ac_option |
fa958513 DJ |
788 | ac_prev= |
789 | continue | |
790 | fi | |
791 | ||
5213506e | 792 | case $ac_option in |
22e05272 JM |
793 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
794 | *=) ac_optarg= ;; | |
795 | *) ac_optarg=yes ;; | |
5213506e | 796 | esac |
fa958513 DJ |
797 | |
798 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
799 | ||
5213506e RW |
800 | case $ac_dashdash$ac_option in |
801 | --) | |
802 | ac_dashdash=yes ;; | |
fa958513 DJ |
803 | |
804 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
805 | ac_prev=bindir ;; | |
806 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
807 | bindir=$ac_optarg ;; | |
808 | ||
809 | -build | --build | --buil | --bui | --bu) | |
810 | ac_prev=build_alias ;; | |
811 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
812 | build_alias=$ac_optarg ;; | |
813 | ||
814 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
815 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
816 | ac_prev=cache_file ;; | |
817 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
818 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
819 | cache_file=$ac_optarg ;; | |
820 | ||
821 | --config-cache | -C) | |
822 | cache_file=config.cache ;; | |
823 | ||
5213506e | 824 | -datadir | --datadir | --datadi | --datad) |
fa958513 | 825 | ac_prev=datadir ;; |
5213506e | 826 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fa958513 DJ |
827 | datadir=$ac_optarg ;; |
828 | ||
5213506e RW |
829 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
830 | | --dataroo | --dataro | --datar) | |
831 | ac_prev=datarootdir ;; | |
832 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
833 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
834 | datarootdir=$ac_optarg ;; | |
835 | ||
fa958513 | 836 | -disable-* | --disable-*) |
5213506e | 837 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
fa958513 | 838 | # Reject names that are not valid shell variable names. |
5213506e | 839 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 840 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
841 | ac_useropt_orig=$ac_useropt |
842 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
843 | case $ac_user_opts in | |
844 | *" | |
845 | "enable_$ac_useropt" | |
846 | "*) ;; | |
847 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
848 | ac_unrecognized_sep=', ';; | |
849 | esac | |
850 | eval enable_$ac_useropt=no ;; | |
851 | ||
852 | -docdir | --docdir | --docdi | --doc | --do) | |
853 | ac_prev=docdir ;; | |
854 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
855 | docdir=$ac_optarg ;; | |
856 | ||
857 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
858 | ac_prev=dvidir ;; | |
859 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
860 | dvidir=$ac_optarg ;; | |
fa958513 DJ |
861 | |
862 | -enable-* | --enable-*) | |
5213506e | 863 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
fa958513 | 864 | # Reject names that are not valid shell variable names. |
5213506e | 865 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 866 | as_fn_error $? "invalid feature name: $ac_useropt" |
5213506e RW |
867 | ac_useropt_orig=$ac_useropt |
868 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
869 | case $ac_user_opts in | |
870 | *" | |
871 | "enable_$ac_useropt" | |
872 | "*) ;; | |
873 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
874 | ac_unrecognized_sep=', ';; | |
d6efbf5a | 875 | esac |
5213506e | 876 | eval enable_$ac_useropt=\$ac_optarg ;; |
fa958513 DJ |
877 | |
878 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
879 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
880 | | --exec | --exe | --ex) | |
881 | ac_prev=exec_prefix ;; | |
882 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
883 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
884 | | --exec=* | --exe=* | --ex=*) | |
885 | exec_prefix=$ac_optarg ;; | |
886 | ||
887 | -gas | --gas | --ga | --g) | |
888 | # Obsolete; use --with-gas. | |
889 | with_gas=yes ;; | |
890 | ||
891 | -help | --help | --hel | --he | -h) | |
892 | ac_init_help=long ;; | |
893 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
894 | ac_init_help=recursive ;; | |
895 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
896 | ac_init_help=short ;; | |
897 | ||
898 | -host | --host | --hos | --ho) | |
899 | ac_prev=host_alias ;; | |
900 | -host=* | --host=* | --hos=* | --ho=*) | |
901 | host_alias=$ac_optarg ;; | |
902 | ||
5213506e RW |
903 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
904 | ac_prev=htmldir ;; | |
905 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
906 | | --ht=*) | |
907 | htmldir=$ac_optarg ;; | |
908 | ||
fa958513 DJ |
909 | -includedir | --includedir | --includedi | --included | --include \ |
910 | | --includ | --inclu | --incl | --inc) | |
911 | ac_prev=includedir ;; | |
912 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
913 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
914 | includedir=$ac_optarg ;; | |
915 | ||
916 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
917 | ac_prev=infodir ;; | |
918 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
919 | infodir=$ac_optarg ;; | |
920 | ||
921 | -libdir | --libdir | --libdi | --libd) | |
922 | ac_prev=libdir ;; | |
923 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
924 | libdir=$ac_optarg ;; | |
925 | ||
926 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
927 | | --libexe | --libex | --libe) | |
928 | ac_prev=libexecdir ;; | |
929 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
930 | | --libexe=* | --libex=* | --libe=*) | |
931 | libexecdir=$ac_optarg ;; | |
932 | ||
5213506e RW |
933 | -localedir | --localedir | --localedi | --localed | --locale) |
934 | ac_prev=localedir ;; | |
935 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
936 | localedir=$ac_optarg ;; | |
937 | ||
fa958513 | 938 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 939 | | --localstate | --localstat | --localsta | --localst | --locals) |
fa958513 DJ |
940 | ac_prev=localstatedir ;; |
941 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 942 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fa958513 DJ |
943 | localstatedir=$ac_optarg ;; |
944 | ||
945 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
946 | ac_prev=mandir ;; | |
947 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
948 | mandir=$ac_optarg ;; | |
949 | ||
950 | -nfp | --nfp | --nf) | |
951 | # Obsolete; use --without-fp. | |
952 | with_fp=no ;; | |
953 | ||
954 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
955 | | --no-cr | --no-c | -n) | |
956 | no_create=yes ;; | |
957 | ||
958 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
959 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
960 | no_recursion=yes ;; | |
961 | ||
962 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
963 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
964 | | --oldin | --oldi | --old | --ol | --o) | |
965 | ac_prev=oldincludedir ;; | |
966 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
967 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
968 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
969 | oldincludedir=$ac_optarg ;; | |
970 | ||
971 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
972 | ac_prev=prefix ;; | |
973 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
974 | prefix=$ac_optarg ;; | |
975 | ||
976 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
977 | | --program-pre | --program-pr | --program-p) | |
978 | ac_prev=program_prefix ;; | |
979 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
980 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
981 | program_prefix=$ac_optarg ;; | |
982 | ||
983 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
984 | | --program-suf | --program-su | --program-s) | |
985 | ac_prev=program_suffix ;; | |
986 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
987 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
988 | program_suffix=$ac_optarg ;; | |
989 | ||
990 | -program-transform-name | --program-transform-name \ | |
991 | | --program-transform-nam | --program-transform-na \ | |
992 | | --program-transform-n | --program-transform- \ | |
993 | | --program-transform | --program-transfor \ | |
994 | | --program-transfo | --program-transf \ | |
995 | | --program-trans | --program-tran \ | |
996 | | --progr-tra | --program-tr | --program-t) | |
997 | ac_prev=program_transform_name ;; | |
998 | -program-transform-name=* | --program-transform-name=* \ | |
999 | | --program-transform-nam=* | --program-transform-na=* \ | |
1000 | | --program-transform-n=* | --program-transform-=* \ | |
1001 | | --program-transform=* | --program-transfor=* \ | |
1002 | | --program-transfo=* | --program-transf=* \ | |
1003 | | --program-trans=* | --program-tran=* \ | |
1004 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1005 | program_transform_name=$ac_optarg ;; | |
1006 | ||
5213506e RW |
1007 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1008 | ac_prev=pdfdir ;; | |
1009 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1010 | pdfdir=$ac_optarg ;; | |
1011 | ||
1012 | -psdir | --psdir | --psdi | --psd | --ps) | |
1013 | ac_prev=psdir ;; | |
1014 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1015 | psdir=$ac_optarg ;; | |
1016 | ||
fa958513 DJ |
1017 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1018 | | -silent | --silent | --silen | --sile | --sil) | |
1019 | silent=yes ;; | |
1020 | ||
1021 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1022 | ac_prev=sbindir ;; | |
1023 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1024 | | --sbi=* | --sb=*) | |
1025 | sbindir=$ac_optarg ;; | |
1026 | ||
1027 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1028 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1029 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1030 | | --sha | --sh) | |
1031 | ac_prev=sharedstatedir ;; | |
1032 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1033 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1034 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1035 | | --sha=* | --sh=*) | |
1036 | sharedstatedir=$ac_optarg ;; | |
1037 | ||
1038 | -site | --site | --sit) | |
1039 | ac_prev=site ;; | |
1040 | -site=* | --site=* | --sit=*) | |
1041 | site=$ac_optarg ;; | |
1042 | ||
1043 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1044 | ac_prev=srcdir ;; | |
1045 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1046 | srcdir=$ac_optarg ;; | |
1047 | ||
1048 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1049 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1050 | ac_prev=sysconfdir ;; | |
1051 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1052 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1053 | sysconfdir=$ac_optarg ;; | |
1054 | ||
1055 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1056 | ac_prev=target_alias ;; | |
1057 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1058 | target_alias=$ac_optarg ;; | |
1059 | ||
1060 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1061 | verbose=yes ;; | |
1062 | ||
1063 | -version | --version | --versio | --versi | --vers | -V) | |
1064 | ac_init_version=: ;; | |
1065 | ||
1066 | -with-* | --with-*) | |
5213506e | 1067 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
fa958513 | 1068 | # Reject names that are not valid shell variable names. |
5213506e | 1069 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1070 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1071 | ac_useropt_orig=$ac_useropt |
1072 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1073 | case $ac_user_opts in | |
1074 | *" | |
1075 | "with_$ac_useropt" | |
1076 | "*) ;; | |
1077 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1078 | ac_unrecognized_sep=', ';; | |
d6efbf5a | 1079 | esac |
5213506e | 1080 | eval with_$ac_useropt=\$ac_optarg ;; |
fa958513 DJ |
1081 | |
1082 | -without-* | --without-*) | |
5213506e | 1083 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
fa958513 | 1084 | # Reject names that are not valid shell variable names. |
5213506e | 1085 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
22e05272 | 1086 | as_fn_error $? "invalid package name: $ac_useropt" |
5213506e RW |
1087 | ac_useropt_orig=$ac_useropt |
1088 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1089 | case $ac_user_opts in | |
1090 | *" | |
1091 | "with_$ac_useropt" | |
1092 | "*) ;; | |
1093 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1094 | ac_unrecognized_sep=', ';; | |
1095 | esac | |
1096 | eval with_$ac_useropt=no ;; | |
fa958513 DJ |
1097 | |
1098 | --x) | |
1099 | # Obsolete; use --with-x. | |
1100 | with_x=yes ;; | |
1101 | ||
1102 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1103 | | --x-incl | --x-inc | --x-in | --x-i) | |
1104 | ac_prev=x_includes ;; | |
1105 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1106 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1107 | x_includes=$ac_optarg ;; | |
1108 | ||
1109 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1110 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1111 | ac_prev=x_libraries ;; | |
1112 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1113 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1114 | x_libraries=$ac_optarg ;; | |
1115 | ||
22e05272 JM |
1116 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1117 | Try \`$0 --help' for more information" | |
fa958513 DJ |
1118 | ;; |
1119 | ||
1120 | *=*) | |
1121 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1122 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1123 | case $ac_envvar in #( |
1124 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
22e05272 | 1125 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
5213506e RW |
1126 | esac |
1127 | eval $ac_envvar=\$ac_optarg | |
fa958513 DJ |
1128 | export $ac_envvar ;; |
1129 | ||
1130 | *) | |
1131 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1132 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
fa958513 | 1133 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1134 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
22e05272 | 1135 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
fa958513 DJ |
1136 | ;; |
1137 | ||
1138 | esac | |
1139 | done | |
1140 | ||
1141 | if test -n "$ac_prev"; then | |
1142 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
22e05272 | 1143 | as_fn_error $? "missing argument to $ac_option" |
fa958513 DJ |
1144 | fi |
1145 | ||
5213506e RW |
1146 | if test -n "$ac_unrecognized_opts"; then |
1147 | case $enable_option_checking in | |
1148 | no) ;; | |
22e05272 | 1149 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
5213506e | 1150 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
d6efbf5a | 1151 | esac |
5213506e | 1152 | fi |
d6efbf5a | 1153 | |
5213506e RW |
1154 | # Check all directory arguments for consistency. |
1155 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1156 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1157 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
9e46fd07 | 1158 | libdir localedir mandir |
d6efbf5a | 1159 | do |
5213506e RW |
1160 | eval ac_val=\$$ac_var |
1161 | # Remove trailing slashes. | |
1162 | case $ac_val in | |
1163 | */ ) | |
1164 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1165 | eval $ac_var=\$ac_val;; | |
1166 | esac | |
1167 | # Be sure to have absolute directory names. | |
d6efbf5a | 1168 | case $ac_val in |
5213506e RW |
1169 | [\\/$]* | ?:[\\/]* ) continue;; |
1170 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fa958513 | 1171 | esac |
22e05272 | 1172 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
fa958513 DJ |
1173 | done |
1174 | ||
1175 | # There might be people who depend on the old broken behavior: `$host' | |
1176 | # used to hold the argument of --host etc. | |
1177 | # FIXME: To remove some day. | |
1178 | build=$build_alias | |
1179 | host=$host_alias | |
1180 | target=$target_alias | |
1181 | ||
1182 | # FIXME: To remove some day. | |
1183 | if test "x$host_alias" != x; then | |
1184 | if test "x$build_alias" = x; then | |
1185 | cross_compiling=maybe | |
fa958513 DJ |
1186 | elif test "x$build_alias" != "x$host_alias"; then |
1187 | cross_compiling=yes | |
1188 | fi | |
1189 | fi | |
1190 | ||
1191 | ac_tool_prefix= | |
1192 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1193 | ||
1194 | test "$silent" = yes && exec 6>/dev/null | |
1195 | ||
1196 | ||
5213506e RW |
1197 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1198 | ac_ls_di=`ls -di .` && | |
1199 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
22e05272 | 1200 | as_fn_error $? "working directory cannot be determined" |
5213506e | 1201 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
22e05272 | 1202 | as_fn_error $? "pwd does not report name of working directory" |
5213506e RW |
1203 | |
1204 | ||
fa958513 DJ |
1205 | # Find the source files, if location was not specified. |
1206 | if test -z "$srcdir"; then | |
1207 | ac_srcdir_defaulted=yes | |
5213506e RW |
1208 | # Try the directory containing this script, then the parent directory. |
1209 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1210 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1211 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1212 | X"$as_myself" : 'X\(//\)$' \| \ | |
1213 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1214 | $as_echo X"$as_myself" | | |
1215 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1216 | s//\1/ | |
1217 | q | |
1218 | } | |
1219 | /^X\(\/\/\)[^/].*/{ | |
1220 | s//\1/ | |
1221 | q | |
1222 | } | |
1223 | /^X\(\/\/\)$/{ | |
1224 | s//\1/ | |
1225 | q | |
1226 | } | |
1227 | /^X\(\/\).*/{ | |
1228 | s//\1/ | |
1229 | q | |
1230 | } | |
1231 | s/.*/./; q'` | |
fa958513 | 1232 | srcdir=$ac_confdir |
5213506e | 1233 | if test ! -r "$srcdir/$ac_unique_file"; then |
fa958513 DJ |
1234 | srcdir=.. |
1235 | fi | |
1236 | else | |
1237 | ac_srcdir_defaulted=no | |
1238 | fi | |
5213506e RW |
1239 | if test ! -r "$srcdir/$ac_unique_file"; then |
1240 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
22e05272 | 1241 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
5213506e RW |
1242 | fi |
1243 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1244 | ac_abs_confdir=`( | |
22e05272 | 1245 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
5213506e RW |
1246 | pwd)` |
1247 | # When building in place, set srcdir=. | |
1248 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1249 | srcdir=. | |
1250 | fi | |
1251 | # Remove unnecessary trailing slashes from srcdir. | |
1252 | # Double slashes in file names in object file debugging info | |
1253 | # mess up M-x gdb in Emacs. | |
1254 | case $srcdir in | |
1255 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1256 | esac | |
1257 | for ac_var in $ac_precious_vars; do | |
1258 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1259 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1260 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1261 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1262 | done | |
14e8fc8b | 1263 | |
fa958513 DJ |
1264 | # |
1265 | # Report the --help message. | |
1266 | # | |
1267 | if test "$ac_init_help" = "long"; then | |
1268 | # Omit some internal or obsolete options to make the list less imposing. | |
1269 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1270 | cat <<_ACEOF | |
1271 | \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems. | |
1272 | ||
1273 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1274 | ||
1275 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1276 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1277 | ||
1278 | Defaults for the options are specified in brackets. | |
1279 | ||
1280 | Configuration: | |
1281 | -h, --help display this help and exit | |
1282 | --help=short display options specific to this package | |
1283 | --help=recursive display the short help of all the included packages | |
1284 | -V, --version display version information and exit | |
22e05272 | 1285 | -q, --quiet, --silent do not print \`checking ...' messages |
fa958513 DJ |
1286 | --cache-file=FILE cache test results in FILE [disabled] |
1287 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1288 | -n, --no-create do not create output files | |
1289 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1290 | ||
fa958513 DJ |
1291 | Installation directories: |
1292 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1293 | [$ac_default_prefix] |
fa958513 | 1294 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1295 | [PREFIX] |
fa958513 DJ |
1296 | |
1297 | By default, \`make install' will install all the files in | |
1298 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1299 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1300 | for instance \`--prefix=\$HOME'. | |
1301 | ||
1302 | For better control, use the options below. | |
1303 | ||
1304 | Fine tuning of the installation directories: | |
5213506e RW |
1305 | --bindir=DIR user executables [EPREFIX/bin] |
1306 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1307 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1308 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1309 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1310 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1311 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1312 | --includedir=DIR C header files [PREFIX/include] | |
1313 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1314 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1315 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1316 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1317 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1318 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1319 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc] | |
1320 | --htmldir=DIR html documentation [DOCDIR] | |
1321 | --dvidir=DIR dvi documentation [DOCDIR] | |
1322 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1323 | --psdir=DIR ps documentation [DOCDIR] | |
fa958513 DJ |
1324 | _ACEOF |
1325 | ||
1326 | cat <<\_ACEOF | |
1327 | ||
1328 | System types: | |
1329 | --build=BUILD configure for building on BUILD [guessed] | |
1330 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1331 | _ACEOF | |
1332 | fi | |
1333 | ||
1334 | if test -n "$ac_init_help"; then | |
1335 | case $ac_init_help in | |
1336 | short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";; | |
1337 | esac | |
1338 | cat <<\_ACEOF | |
1339 | ||
1340 | Optional Features: | |
5213506e | 1341 | --disable-option-checking ignore unrecognized --enable/--with options |
fa958513 DJ |
1342 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1343 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1344 | --disable-shared don't provide a shared libgcc | |
2077db1b | 1345 | --enable-vtable-verify Enable vtable verification feature |
d6efbf5a | 1346 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
6efbd53f RW |
1347 | --enable-maintainer-mode |
1348 | enable make rules and dependencies not useful (and | |
1349 | sometimes confusing) to the casual installer | |
39be73d0 | 1350 | --disable-gcov don't provide libgcov and related host tools |
a51a76e5 | 1351 | --disable-largefile omit support for large files |
79b87c74 MM |
1352 | --enable-decimal-float={no,yes,bid,dpd} |
1353 | enable decimal float extension to C. Selecting 'bid' | |
1354 | or 'dpd' choses which decimal floating point format | |
1355 | to use | |
8d286dd1 | 1356 | --enable-cet enable Intel CET in target libraries [default=auto] |
598a1586 HPN |
1357 | --enable-explicit-exception-frame-registration |
1358 | register exception tables explicitly at module | |
1359 | start, for use e.g. for compatibility with | |
1360 | installations without PT_GNU_EH_FRAME support | |
5a460280 | 1361 | --disable-tm-clone-registry disable TM clone registry |
6f461e76 | 1362 | --enable-tls Use thread-local storage [default=yes] |
fa958513 DJ |
1363 | |
1364 | Optional Packages: | |
1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1367 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1368 | --with-cross-host=HOST Configuring with a cross compiler | |
1369 | --with-ld arrange to use the specified ld (full pathname) | |
dd913323 MH |
1370 | --with-aix-soname=aix|svr4|both |
1371 | shared library versioning (aka "SONAME") variant to | |
1372 | provide on AIX | |
e8e66971 MR |
1373 | --with-toolexeclibdir=DIR |
1374 | install libraries built with a cross compiler within | |
1375 | DIR | |
fa958513 | 1376 | --with-slibdir=DIR shared libraries in DIR LIBDIR |
14e8fc8b | 1377 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
201cdb74 | 1378 | --with-system-libunwind use installed libunwind |
e610393c JM |
1379 | --with-glibc-version=M.N |
1380 | assume GCC used with glibc version M.N or later | |
3c36aa6b JJ |
1381 | --with-gcc-major-version-only |
1382 | use only GCC major number in filesystem paths | |
fa958513 DJ |
1383 | |
1384 | Some influential environment variables: | |
1385 | CC C compiler command | |
1386 | CFLAGS C compiler flags | |
1387 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1388 | nonstandard directory <lib dir> | |
5213506e | 1389 | LIBS libraries to pass to the linker, e.g. -l<library> |
22e05272 | 1390 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5213506e | 1391 | you have headers in a nonstandard directory <include dir> |
fa958513 DJ |
1392 | CPP C preprocessor |
1393 | ||
1394 | Use these variables to override the choices made by `configure' or to help | |
1395 | it to find libraries and programs with nonstandard names/locations. | |
1396 | ||
5213506e RW |
1397 | Report bugs to the package provider. |
1398 | GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. | |
1399 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
fa958513 | 1400 | _ACEOF |
5213506e | 1401 | ac_status=$? |
fa958513 DJ |
1402 | fi |
1403 | ||
1404 | if test "$ac_init_help" = "recursive"; then | |
1405 | # If there are subdirs, report their specific --help. | |
fa958513 | 1406 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1407 | test -d "$ac_dir" || |
1408 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1409 | continue | |
fa958513 DJ |
1410 | ac_builddir=. |
1411 | ||
5213506e RW |
1412 | case "$ac_dir" in |
1413 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1414 | *) | |
1415 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1416 | # A ".." for each directory in $ac_dir_suffix. | |
1417 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1418 | case $ac_top_builddir_sub in | |
1419 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1420 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1421 | esac ;; | |
1422 | esac | |
1423 | ac_abs_top_builddir=$ac_pwd | |
1424 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1425 | # for backward compatibility: | |
1426 | ac_top_builddir=$ac_top_build_prefix | |
fa958513 DJ |
1427 | |
1428 | case $srcdir in | |
5213506e | 1429 | .) # We are building in place. |
fa958513 | 1430 | ac_srcdir=. |
5213506e RW |
1431 | ac_top_srcdir=$ac_top_builddir_sub |
1432 | ac_abs_top_srcdir=$ac_pwd ;; | |
1433 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fa958513 | 1434 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1435 | ac_top_srcdir=$srcdir |
1436 | ac_abs_top_srcdir=$srcdir ;; | |
1437 | *) # Relative name. | |
1438 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1439 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1440 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fa958513 | 1441 | esac |
5213506e RW |
1442 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1443 | ||
1444 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1445 | # Check for guested configure. | |
1446 | if test -f "$ac_srcdir/configure.gnu"; then | |
1447 | echo && | |
1448 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1449 | elif test -f "$ac_srcdir/configure"; then | |
1450 | echo && | |
1451 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fa958513 | 1452 | else |
5213506e RW |
1453 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1454 | fi || ac_status=$? | |
1455 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fa958513 DJ |
1456 | done |
1457 | fi | |
1458 | ||
5213506e | 1459 | test -n "$ac_init_help" && exit $ac_status |
fa958513 DJ |
1460 | if $ac_init_version; then |
1461 | cat <<\_ACEOF | |
1462 | GNU C Runtime Library configure 1.0 | |
22e05272 | 1463 | generated by GNU Autoconf 2.69 |
fa958513 | 1464 | |
22e05272 | 1465 | Copyright (C) 2012 Free Software Foundation, Inc. |
fa958513 DJ |
1466 | This configure script is free software; the Free Software Foundation |
1467 | gives unlimited permission to copy, distribute and modify it. | |
1468 | _ACEOF | |
5213506e | 1469 | exit |
fa958513 | 1470 | fi |
5213506e RW |
1471 | |
1472 | ## ------------------------ ## | |
1473 | ## Autoconf initialization. ## | |
1474 | ## ------------------------ ## | |
1475 | ||
1476 | # ac_fn_c_try_compile LINENO | |
1477 | # -------------------------- | |
1478 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1479 | ac_fn_c_try_compile () | |
1480 | { | |
1481 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1482 | rm -f conftest.$ac_objext | |
1483 | if { { ac_try="$ac_compile" | |
1484 | case "(($ac_try" in | |
1485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1486 | *) ac_try_echo=$ac_try;; | |
1487 | esac | |
1488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1489 | $as_echo "$ac_try_echo"; } >&5 | |
1490 | (eval "$ac_compile") 2>conftest.err | |
1491 | ac_status=$? | |
1492 | if test -s conftest.err; then | |
1493 | grep -v '^ *+' conftest.err >conftest.er1 | |
1494 | cat conftest.er1 >&5 | |
1495 | mv -f conftest.er1 conftest.err | |
1496 | fi | |
1497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1498 | test $ac_status = 0; } && { | |
1499 | test -z "$ac_c_werror_flag" || | |
1500 | test ! -s conftest.err | |
1501 | } && test -s conftest.$ac_objext; then : | |
1502 | ac_retval=0 | |
1503 | else | |
1504 | $as_echo "$as_me: failed program was:" >&5 | |
1505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1506 | ||
1507 | ac_retval=1 | |
1508 | fi | |
22e05272 JM |
1509 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1510 | as_fn_set_status $ac_retval | |
5213506e RW |
1511 | |
1512 | } # ac_fn_c_try_compile | |
1513 | ||
1514 | # ac_fn_c_try_cpp LINENO | |
1515 | # ---------------------- | |
1516 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1517 | ac_fn_c_try_cpp () | |
1518 | { | |
1519 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1520 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1521 | case "(($ac_try" in | |
1522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1523 | *) ac_try_echo=$ac_try;; | |
1524 | esac | |
1525 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1526 | $as_echo "$ac_try_echo"; } >&5 | |
1527 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1528 | ac_status=$? | |
1529 | if test -s conftest.err; then | |
1530 | grep -v '^ *+' conftest.err >conftest.er1 | |
1531 | cat conftest.er1 >&5 | |
1532 | mv -f conftest.er1 conftest.err | |
1533 | fi | |
1534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
22e05272 | 1535 | test $ac_status = 0; } > conftest.i && { |
5213506e RW |
1536 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1537 | test ! -s conftest.err | |
1538 | }; then : | |
1539 | ac_retval=0 | |
1540 | else | |
1541 | $as_echo "$as_me: failed program was:" >&5 | |
1542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1543 | ||
1544 | ac_retval=1 | |
1545 | fi | |
22e05272 JM |
1546 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1547 | as_fn_set_status $ac_retval | |
5213506e RW |
1548 | |
1549 | } # ac_fn_c_try_cpp | |
569dc494 RO |
1550 | |
1551 | # ac_fn_c_try_run LINENO | |
1552 | # ---------------------- | |
1553 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1554 | # that executables *can* be run. | |
1555 | ac_fn_c_try_run () | |
1556 | { | |
1557 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1558 | if { { ac_try="$ac_link" | |
1559 | case "(($ac_try" in | |
1560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1561 | *) ac_try_echo=$ac_try;; | |
1562 | esac | |
1563 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1564 | $as_echo "$ac_try_echo"; } >&5 | |
1565 | (eval "$ac_link") 2>&5 | |
1566 | ac_status=$? | |
1567 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1568 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1569 | { { case "(($ac_try" in | |
1570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1571 | *) ac_try_echo=$ac_try;; | |
1572 | esac | |
1573 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1574 | $as_echo "$ac_try_echo"; } >&5 | |
1575 | (eval "$ac_try") 2>&5 | |
1576 | ac_status=$? | |
1577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1578 | test $ac_status = 0; }; }; then : | |
1579 | ac_retval=0 | |
1580 | else | |
1581 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1582 | $as_echo "$as_me: failed program was:" >&5 | |
1583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1584 | ||
1585 | ac_retval=$ac_status | |
1586 | fi | |
1587 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
22e05272 JM |
1588 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1589 | as_fn_set_status $ac_retval | |
569dc494 RO |
1590 | |
1591 | } # ac_fn_c_try_run | |
1592 | ||
1593 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
1594 | # -------------------------------------------- | |
1595 | # Tries to find the compile-time value of EXPR in a program that includes | |
1596 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1597 | # computed | |
1598 | ac_fn_c_compute_int () | |
1599 | { | |
1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1601 | if test "$cross_compiling" = yes; then | |
1602 | # Depending upon the size, compute the lo and hi bounds. | |
1603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1604 | /* end confdefs.h. */ | |
1605 | $4 | |
1606 | int | |
1607 | main () | |
1608 | { | |
1609 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
22e05272 JM |
1610 | test_array [0] = 0; |
1611 | return test_array [0]; | |
569dc494 RO |
1612 | |
1613 | ; | |
1614 | return 0; | |
1615 | } | |
1616 | _ACEOF | |
1617 | if ac_fn_c_try_compile "$LINENO"; then : | |
1618 | ac_lo=0 ac_mid=0 | |
1619 | while :; do | |
1620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1621 | /* end confdefs.h. */ | |
1622 | $4 | |
1623 | int | |
1624 | main () | |
1625 | { | |
1626 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1627 | test_array [0] = 0; |
1628 | return test_array [0]; | |
569dc494 RO |
1629 | |
1630 | ; | |
1631 | return 0; | |
1632 | } | |
1633 | _ACEOF | |
1634 | if ac_fn_c_try_compile "$LINENO"; then : | |
1635 | ac_hi=$ac_mid; break | |
1636 | else | |
1637 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1638 | if test $ac_lo -le $ac_mid; then | |
1639 | ac_lo= ac_hi= | |
1640 | break | |
1641 | fi | |
1642 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1643 | fi | |
1644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1645 | done | |
1646 | else | |
1647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1648 | /* end confdefs.h. */ | |
1649 | $4 | |
1650 | int | |
1651 | main () | |
1652 | { | |
1653 | static int test_array [1 - 2 * !(($2) < 0)]; | |
22e05272 JM |
1654 | test_array [0] = 0; |
1655 | return test_array [0]; | |
569dc494 RO |
1656 | |
1657 | ; | |
1658 | return 0; | |
1659 | } | |
1660 | _ACEOF | |
1661 | if ac_fn_c_try_compile "$LINENO"; then : | |
1662 | ac_hi=-1 ac_mid=-1 | |
1663 | while :; do | |
1664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1665 | /* end confdefs.h. */ | |
1666 | $4 | |
1667 | int | |
1668 | main () | |
1669 | { | |
1670 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
22e05272 JM |
1671 | test_array [0] = 0; |
1672 | return test_array [0]; | |
569dc494 RO |
1673 | |
1674 | ; | |
1675 | return 0; | |
1676 | } | |
1677 | _ACEOF | |
1678 | if ac_fn_c_try_compile "$LINENO"; then : | |
1679 | ac_lo=$ac_mid; break | |
1680 | else | |
1681 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1682 | if test $ac_mid -le $ac_hi; then | |
1683 | ac_lo= ac_hi= | |
1684 | break | |
1685 | fi | |
1686 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1687 | fi | |
1688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1689 | done | |
1690 | else | |
1691 | ac_lo= ac_hi= | |
1692 | fi | |
1693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1694 | fi | |
1695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1696 | # Binary search between lo and hi bounds. | |
1697 | while test "x$ac_lo" != "x$ac_hi"; do | |
1698 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1700 | /* end confdefs.h. */ | |
1701 | $4 | |
1702 | int | |
1703 | main () | |
1704 | { | |
1705 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
22e05272 JM |
1706 | test_array [0] = 0; |
1707 | return test_array [0]; | |
569dc494 RO |
1708 | |
1709 | ; | |
1710 | return 0; | |
1711 | } | |
1712 | _ACEOF | |
1713 | if ac_fn_c_try_compile "$LINENO"; then : | |
1714 | ac_hi=$ac_mid | |
1715 | else | |
1716 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1717 | fi | |
1718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1719 | done | |
1720 | case $ac_lo in #(( | |
1721 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1722 | '') ac_retval=1 ;; | |
1723 | esac | |
1724 | else | |
1725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1726 | /* end confdefs.h. */ | |
1727 | $4 | |
1728 | static long int longval () { return $2; } | |
1729 | static unsigned long int ulongval () { return $2; } | |
1730 | #include <stdio.h> | |
1731 | #include <stdlib.h> | |
1732 | int | |
1733 | main () | |
1734 | { | |
1735 | ||
1736 | FILE *f = fopen ("conftest.val", "w"); | |
1737 | if (! f) | |
1738 | return 1; | |
1739 | if (($2) < 0) | |
1740 | { | |
1741 | long int i = longval (); | |
1742 | if (i != ($2)) | |
1743 | return 1; | |
1744 | fprintf (f, "%ld", i); | |
1745 | } | |
1746 | else | |
1747 | { | |
1748 | unsigned long int i = ulongval (); | |
1749 | if (i != ($2)) | |
1750 | return 1; | |
1751 | fprintf (f, "%lu", i); | |
1752 | } | |
1753 | /* Do not output a trailing newline, as this causes \r\n confusion | |
1754 | on some platforms. */ | |
1755 | return ferror (f) || fclose (f) != 0; | |
1756 | ||
1757 | ; | |
1758 | return 0; | |
1759 | } | |
1760 | _ACEOF | |
1761 | if ac_fn_c_try_run "$LINENO"; then : | |
1762 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
1763 | else | |
1764 | ac_retval=1 | |
1765 | fi | |
1766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
1767 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
1768 | rm -f conftest.val | |
1769 | ||
1770 | fi | |
22e05272 JM |
1771 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1772 | as_fn_set_status $ac_retval | |
569dc494 RO |
1773 | |
1774 | } # ac_fn_c_compute_int | |
0e4a0def KT |
1775 | |
1776 | # ac_fn_c_check_header_preproc LINENO HEADER VAR | |
1777 | # ---------------------------------------------- | |
1778 | # Tests whether HEADER is present, setting the cache variable VAR accordingly. | |
1779 | ac_fn_c_check_header_preproc () | |
1780 | { | |
1781 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1783 | $as_echo_n "checking for $2... " >&6; } | |
22e05272 | 1784 | if eval \${$3+:} false; then : |
0e4a0def KT |
1785 | $as_echo_n "(cached) " >&6 |
1786 | else | |
1787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1788 | /* end confdefs.h. */ | |
1789 | #include <$2> | |
1790 | _ACEOF | |
1791 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1792 | eval "$3=yes" | |
1793 | else | |
1794 | eval "$3=no" | |
1795 | fi | |
22e05272 | 1796 | rm -f conftest.err conftest.i conftest.$ac_ext |
0e4a0def KT |
1797 | fi |
1798 | eval ac_res=\$$3 | |
1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1800 | $as_echo "$ac_res" >&6; } | |
22e05272 | 1801 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
0e4a0def KT |
1802 | |
1803 | } # ac_fn_c_check_header_preproc | |
5213506e | 1804 | cat >config.log <<_ACEOF |
fa958513 DJ |
1805 | This file contains any messages produced by compilers while |
1806 | running configure, to aid debugging if configure makes a mistake. | |
1807 | ||
1808 | It was created by GNU C Runtime Library $as_me 1.0, which was | |
22e05272 | 1809 | generated by GNU Autoconf 2.69. Invocation command line was |
fa958513 DJ |
1810 | |
1811 | $ $0 $@ | |
1812 | ||
1813 | _ACEOF | |
5213506e | 1814 | exec 5>>config.log |
fa958513 DJ |
1815 | { |
1816 | cat <<_ASUNAME | |
1817 | ## --------- ## | |
1818 | ## Platform. ## | |
1819 | ## --------- ## | |
1820 | ||
1821 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1822 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1823 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1824 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1825 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1826 | ||
1827 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1828 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1829 | ||
1830 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1831 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1832 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1833 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
fa958513 DJ |
1834 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1835 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1836 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1837 | ||
1838 | _ASUNAME | |
1839 | ||
1840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1841 | for as_dir in $PATH | |
1842 | do | |
1843 | IFS=$as_save_IFS | |
1844 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1845 | $as_echo "PATH: $as_dir" |
1846 | done | |
1847 | IFS=$as_save_IFS | |
fa958513 DJ |
1848 | |
1849 | } >&5 | |
1850 | ||
1851 | cat >&5 <<_ACEOF | |
1852 | ||
1853 | ||
1854 | ## ----------- ## | |
1855 | ## Core tests. ## | |
1856 | ## ----------- ## | |
1857 | ||
1858 | _ACEOF | |
1859 | ||
1860 | ||
1861 | # Keep a trace of the command line. | |
1862 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1863 | # Strip out --silent because we don't want to record it for future runs. | |
1864 | # Also quote any args containing shell meta-characters. | |
1865 | # Make two passes to allow for proper duplicate-argument suppression. | |
1866 | ac_configure_args= | |
1867 | ac_configure_args0= | |
1868 | ac_configure_args1= | |
fa958513 DJ |
1869 | ac_must_keep_next=false |
1870 | for ac_pass in 1 2 | |
1871 | do | |
1872 | for ac_arg | |
1873 | do | |
1874 | case $ac_arg in | |
1875 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1876 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1877 | | -silent | --silent | --silen | --sile | --sil) | |
1878 | continue ;; | |
5213506e RW |
1879 | *\'*) |
1880 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
fa958513 DJ |
1881 | esac |
1882 | case $ac_pass in | |
5213506e | 1883 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
fa958513 | 1884 | 2) |
5213506e | 1885 | as_fn_append ac_configure_args1 " '$ac_arg'" |
fa958513 DJ |
1886 | if test $ac_must_keep_next = true; then |
1887 | ac_must_keep_next=false # Got value, back to normal. | |
1888 | else | |
1889 | case $ac_arg in | |
1890 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1891 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1892 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1893 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1894 | case "$ac_configure_args0 " in | |
1895 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1896 | esac | |
1897 | ;; | |
1898 | -* ) ac_must_keep_next=true ;; | |
1899 | esac | |
1900 | fi | |
5213506e | 1901 | as_fn_append ac_configure_args " '$ac_arg'" |
fa958513 DJ |
1902 | ;; |
1903 | esac | |
1904 | done | |
1905 | done | |
5213506e RW |
1906 | { ac_configure_args0=; unset ac_configure_args0;} |
1907 | { ac_configure_args1=; unset ac_configure_args1;} | |
fa958513 DJ |
1908 | |
1909 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1910 | # config.log. We remove comments because anyway the quotes in there | |
1911 | # would cause problems or look ugly. | |
5213506e RW |
1912 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1913 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
fa958513 DJ |
1914 | trap 'exit_status=$? |
1915 | # Save into config.log some information that might help in debugging. | |
1916 | { | |
1917 | echo | |
1918 | ||
22e05272 | 1919 | $as_echo "## ---------------- ## |
fa958513 | 1920 | ## Cache variables. ## |
22e05272 | 1921 | ## ---------------- ##" |
fa958513 DJ |
1922 | echo |
1923 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1924 | ( |
1925 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1926 | eval ac_val=\$$ac_var | |
1927 | case $ac_val in #( | |
1928 | *${as_nl}*) | |
1929 | case $ac_var in #( | |
1930 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1931 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1932 | esac | |
1933 | case $ac_var in #( | |
1934 | _ | IFS | as_nl) ;; #( | |
1935 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1936 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1937 | esac ;; | |
1938 | esac | |
1939 | done | |
fa958513 | 1940 | (set) 2>&1 | |
5213506e RW |
1941 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1942 | *${as_nl}ac_space=\ *) | |
fa958513 | 1943 | sed -n \ |
5213506e RW |
1944 | "s/'\''/'\''\\\\'\'''\''/g; |
1945 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1946 | ;; #( | |
fa958513 | 1947 | *) |
5213506e | 1948 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fa958513 | 1949 | ;; |
5213506e RW |
1950 | esac | |
1951 | sort | |
1952 | ) | |
fa958513 DJ |
1953 | echo |
1954 | ||
22e05272 | 1955 | $as_echo "## ----------------- ## |
fa958513 | 1956 | ## Output variables. ## |
22e05272 | 1957 | ## ----------------- ##" |
fa958513 DJ |
1958 | echo |
1959 | for ac_var in $ac_subst_vars | |
1960 | do | |
5213506e RW |
1961 | eval ac_val=\$$ac_var |
1962 | case $ac_val in | |
1963 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1964 | esac | |
1965 | $as_echo "$ac_var='\''$ac_val'\''" | |
fa958513 DJ |
1966 | done | sort |
1967 | echo | |
1968 | ||
1969 | if test -n "$ac_subst_files"; then | |
22e05272 | 1970 | $as_echo "## ------------------- ## |
5213506e | 1971 | ## File substitutions. ## |
22e05272 | 1972 | ## ------------------- ##" |
fa958513 DJ |
1973 | echo |
1974 | for ac_var in $ac_subst_files | |
1975 | do | |
5213506e RW |
1976 | eval ac_val=\$$ac_var |
1977 | case $ac_val in | |
1978 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1979 | esac | |
1980 | $as_echo "$ac_var='\''$ac_val'\''" | |
fa958513 DJ |
1981 | done | sort |
1982 | echo | |
1983 | fi | |
1984 | ||
1985 | if test -s confdefs.h; then | |
22e05272 | 1986 | $as_echo "## ----------- ## |
fa958513 | 1987 | ## confdefs.h. ## |
22e05272 | 1988 | ## ----------- ##" |
fa958513 | 1989 | echo |
5213506e | 1990 | cat confdefs.h |
fa958513 DJ |
1991 | echo |
1992 | fi | |
1993 | test "$ac_signal" != 0 && | |
5213506e RW |
1994 | $as_echo "$as_me: caught signal $ac_signal" |
1995 | $as_echo "$as_me: exit $exit_status" | |
fa958513 | 1996 | } >&5 |
5213506e RW |
1997 | rm -f core *.core core.conftest.* && |
1998 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
fa958513 | 1999 | exit $exit_status |
5213506e | 2000 | ' 0 |
fa958513 | 2001 | for ac_signal in 1 2 13 15; do |
5213506e | 2002 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
fa958513 DJ |
2003 | done |
2004 | ac_signal=0 | |
2005 | ||
2006 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2007 | rm -f -r conftest* confdefs.h |
2008 | ||
2009 | $as_echo "/* confdefs.h */" > confdefs.h | |
fa958513 DJ |
2010 | |
2011 | # Predefined preprocessor variables. | |
2012 | ||
2013 | cat >>confdefs.h <<_ACEOF | |
2014 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2015 | _ACEOF | |
2016 | ||
fa958513 DJ |
2017 | cat >>confdefs.h <<_ACEOF |
2018 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2019 | _ACEOF | |
2020 | ||
fa958513 DJ |
2021 | cat >>confdefs.h <<_ACEOF |
2022 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2023 | _ACEOF | |
2024 | ||
fa958513 DJ |
2025 | cat >>confdefs.h <<_ACEOF |
2026 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2027 | _ACEOF | |
2028 | ||
fa958513 DJ |
2029 | cat >>confdefs.h <<_ACEOF |
2030 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2031 | _ACEOF | |
2032 | ||
5213506e RW |
2033 | cat >>confdefs.h <<_ACEOF |
2034 | #define PACKAGE_URL "$PACKAGE_URL" | |
2035 | _ACEOF | |
2036 | ||
fa958513 DJ |
2037 | |
2038 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2039 | # Prefer an explicitly selected file to automatically selected ones. |
2040 | ac_site_file1=NONE | |
2041 | ac_site_file2=NONE | |
2042 | if test -n "$CONFIG_SITE"; then | |
22e05272 JM |
2043 | # We do not want a PATH search for config.site. |
2044 | case $CONFIG_SITE in #(( | |
2045 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2046 | */*) ac_site_file1=$CONFIG_SITE;; | |
2047 | *) ac_site_file1=./$CONFIG_SITE;; | |
2048 | esac | |
5213506e RW |
2049 | elif test "x$prefix" != xNONE; then |
2050 | ac_site_file1=$prefix/share/config.site | |
2051 | ac_site_file2=$prefix/etc/config.site | |
2052 | else | |
2053 | ac_site_file1=$ac_default_prefix/share/config.site | |
2054 | ac_site_file2=$ac_default_prefix/etc/config.site | |
fa958513 | 2055 | fi |
5213506e RW |
2056 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2057 | do | |
2058 | test "x$ac_site_file" = xNONE && continue | |
22e05272 | 2059 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5213506e RW |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2061 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
fa958513 | 2062 | sed 's/^/| /' "$ac_site_file" >&5 |
22e05272 JM |
2063 | . "$ac_site_file" \ |
2064 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2065 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2066 | as_fn_error $? "failed to load site script $ac_site_file | |
2067 | See \`config.log' for more details" "$LINENO" 5; } | |
fa958513 DJ |
2068 | fi |
2069 | done | |
2070 | ||
2071 | if test -r "$cache_file"; then | |
22e05272 JM |
2072 | # Some versions of bash will fail to source /dev/null (special files |
2073 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2074 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
5213506e RW |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2076 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
fa958513 | 2077 | case $cache_file in |
5213506e RW |
2078 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2079 | *) . "./$cache_file";; | |
fa958513 DJ |
2080 | esac |
2081 | fi | |
2082 | else | |
5213506e RW |
2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2084 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
fa958513 DJ |
2085 | >$cache_file |
2086 | fi | |
2087 | ||
2088 | # Check that the precious variables saved in the cache have kept the same | |
2089 | # value. | |
2090 | ac_cache_corrupted=false | |
5213506e | 2091 | for ac_var in $ac_precious_vars; do |
fa958513 DJ |
2092 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2093 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2094 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2095 | eval ac_new_val=\$ac_env_${ac_var}_value | |
fa958513 DJ |
2096 | case $ac_old_set,$ac_new_set in |
2097 | set,) | |
5213506e RW |
2098 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2099 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
fa958513 DJ |
2100 | ac_cache_corrupted=: ;; |
2101 | ,set) | |
5213506e RW |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2103 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
fa958513 DJ |
2104 | ac_cache_corrupted=: ;; |
2105 | ,);; | |
2106 | *) | |
2107 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2108 | # differences in whitespace do not lead to failure. |
2109 | ac_old_val_w=`echo x $ac_old_val` | |
2110 | ac_new_val_w=`echo x $ac_new_val` | |
2111 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2113 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2114 | ac_cache_corrupted=: | |
2115 | else | |
2116 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2117 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2118 | eval $ac_var=\$ac_old_val | |
2119 | fi | |
2120 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2121 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2123 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
fa958513 DJ |
2124 | fi;; |
2125 | esac | |
2126 | # Pass precious variables to config.status. | |
2127 | if test "$ac_new_set" = set; then | |
2128 | case $ac_new_val in | |
5213506e | 2129 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
fa958513 DJ |
2130 | *) ac_arg=$ac_var=$ac_new_val ;; |
2131 | esac | |
2132 | case " $ac_configure_args " in | |
2133 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2134 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
fa958513 DJ |
2135 | esac |
2136 | fi | |
2137 | done | |
2138 | if $ac_cache_corrupted; then | |
5213506e RW |
2139 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2140 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2142 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
22e05272 | 2143 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
fa958513 | 2144 | fi |
5213506e RW |
2145 | ## -------------------- ## |
2146 | ## Main body of script. ## | |
2147 | ## -------------------- ## | |
fa958513 | 2148 | |
d6efbf5a DJ |
2149 | ac_ext=c |
2150 | ac_cpp='$CPP $CPPFLAGS' | |
2151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2154 | ||
fa958513 DJ |
2155 | |
2156 | ||
2157 | ||
2158 | ||
2159 | ||
2160 | ||
07ba94b9 AP |
2161 | # The libgcc should not depend on any header files |
2162 | ||
2163 | ||
fa958513 | 2164 | |
5213506e RW |
2165 | # Check whether --with-target-subdir was given. |
2166 | if test "${with_target_subdir+set}" = set; then : | |
2167 | withval=$with_target_subdir; | |
2168 | fi | |
fa958513 DJ |
2169 | |
2170 | ||
5213506e RW |
2171 | # Check whether --with-cross-host was given. |
2172 | if test "${with_cross_host+set}" = set; then : | |
2173 | withval=$with_cross_host; | |
2174 | fi | |
fa958513 DJ |
2175 | |
2176 | ||
5213506e RW |
2177 | # Check whether --with-ld was given. |
2178 | if test "${with_ld+set}" = set; then : | |
2179 | withval=$with_ld; | |
2180 | fi | |
fa958513 DJ |
2181 | |
2182 | ||
fa958513 DJ |
2183 | if test "${srcdir}" = "."; then |
2184 | if test -n "${with_build_subdir}"; then | |
2185 | libgcc_topdir="${srcdir}/../.." | |
2186 | with_target_subdir= | |
2187 | elif test -z "${with_target_subdir}"; then | |
2188 | libgcc_topdir="${srcdir}/.." | |
2189 | else | |
2190 | if test "${with_target_subdir}" != "."; then | |
2191 | libgcc_topdir="${srcdir}/${with_multisrctop}../.." | |
2192 | else | |
2193 | libgcc_topdir="${srcdir}/${with_multisrctop}.." | |
2194 | fi | |
2195 | fi | |
2196 | else | |
2197 | libgcc_topdir="${srcdir}/.." | |
2198 | fi | |
2199 | ||
2200 | ac_aux_dir= | |
5213506e | 2201 | for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do |
22e05272 JM |
2202 | if test -f "$ac_dir/install-sh"; then |
2203 | ac_aux_dir=$ac_dir | |
2204 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2205 | break | |
2206 | elif test -f "$ac_dir/install.sh"; then | |
2207 | ac_aux_dir=$ac_dir | |
2208 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2209 | break | |
2210 | elif test -f "$ac_dir/shtool"; then | |
2211 | ac_aux_dir=$ac_dir | |
2212 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2213 | break | |
2214 | fi | |
fa958513 DJ |
2215 | done |
2216 | if test -z "$ac_aux_dir"; then | |
22e05272 | 2217 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5 |
fa958513 | 2218 | fi |
5213506e RW |
2219 | |
2220 | # These three variables are undocumented and unsupported, | |
2221 | # and are intended to be withdrawn in a future Autoconf release. | |
2222 | # They can cause serious problems if a builder's source tree is in a directory | |
2223 | # whose full name contains unusual characters. | |
2224 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2225 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2226 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
fa958513 | 2227 | |
fa958513 | 2228 | |
aca06c90 RO |
2229 | ac_config_headers="$ac_config_headers auto-target.h:config.in" |
2230 | ||
d6efbf5a | 2231 | |
0824d924 KT |
2232 | # Check whether --enable-shared was given. |
2233 | if test "${enable_shared+set}" = set; then : | |
2234 | enableval=$enable_shared; | |
2235 | case $enable_shared in | |
2236 | yes | no) ;; | |
2237 | *) | |
2238 | enable_shared=no | |
2239 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
2240 | for pkg in $enableval; do | |
2241 | if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then | |
2242 | enable_shared=yes | |
2243 | fi | |
2244 | done | |
2245 | IFS="$ac_save_ifs" | |
2246 | ;; | |
2247 | esac | |
fa958513 DJ |
2248 | |
2249 | else | |
0824d924 | 2250 | enable_shared=yes |
5213506e RW |
2251 | fi |
2252 | ||
d6efbf5a DJ |
2253 | |
2254 | ||
0824d924 KT |
2255 | # Check whether --enable-vtable-verify was given. |
2256 | if test "${enable_vtable_verify+set}" = set; then : | |
2257 | enableval=$enable_vtable_verify; case "$enableval" in | |
2258 | yes) enable_vtable_verify=yes ;; | |
2259 | no) enable_vtable_verify=no ;; | |
2260 | *) enable_vtable_verify=no;; | |
2261 | esac | |
2077db1b | 2262 | else |
0824d924 | 2263 | enable_vtable_verify=no |
2077db1b CT |
2264 | fi |
2265 | ||
0824d924 KT |
2266 | |
2267 | ||
2268 | ||
2269 | # Check whether --with-aix-soname was given. | |
2270 | if test "${with_aix_soname+set}" = set; then : | |
2271 | withval=$with_aix_soname; case "${host}:${enable_shared}" in | |
2272 | power*-*-aix[5-9]*:yes) | |
2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide for shared libgcc" >&5 | |
2274 | $as_echo_n "checking which variant of shared library versioning to provide for shared libgcc... " >&6; } | |
2275 | case ${withval} in | |
2276 | aix|svr4|both) ;; | |
22e05272 | 2277 | *) as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5;; |
0824d924 KT |
2278 | esac |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 | |
2280 | $as_echo "$withval" >&6; } | |
2281 | ;; | |
2282 | *) with_aix_soname=aix ;; | |
2283 | esac | |
2284 | ||
dd913323 | 2285 | else |
0824d924 | 2286 | with_aix_soname=aix |
dd913323 MH |
2287 | fi |
2288 | ||
0824d924 KT |
2289 | |
2290 | ||
2291 | # Make sure we can run config.sub. | |
2292 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
22e05272 | 2293 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
0824d924 KT |
2294 | |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2296 | $as_echo_n "checking build system type... " >&6; } | |
22e05272 | 2297 | if ${ac_cv_build+:} false; then : |
f9989b51 RO |
2298 | $as_echo_n "(cached) " >&6 |
2299 | else | |
0824d924 KT |
2300 | ac_build_alias=$build_alias |
2301 | test "x$ac_build_alias" = x && | |
2302 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2303 | test "x$ac_build_alias" = x && | |
22e05272 | 2304 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
0824d924 | 2305 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
22e05272 | 2306 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
f9989b51 RO |
2307 | |
2308 | fi | |
0824d924 KT |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
2310 | $as_echo "$ac_cv_build" >&6; } | |
2311 | case $ac_cv_build in | |
2312 | *-*-*) ;; | |
22e05272 | 2313 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
0824d924 KT |
2314 | esac |
2315 | build=$ac_cv_build | |
2316 | ac_save_IFS=$IFS; IFS='-' | |
2317 | set x $ac_cv_build | |
2318 | shift | |
2319 | build_cpu=$1 | |
2320 | build_vendor=$2 | |
2321 | shift; shift | |
2322 | # Remember, the first character of IFS is used to create $*, | |
2323 | # except with old shells: | |
2324 | build_os=$* | |
2325 | IFS=$ac_save_IFS | |
2326 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
f9989b51 | 2327 | |
a2a5609b | 2328 | |
0824d924 KT |
2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2330 | $as_echo_n "checking host system type... " >&6; } | |
22e05272 | 2331 | if ${ac_cv_host+:} false; then : |
a2a5609b KT |
2332 | $as_echo_n "(cached) " >&6 |
2333 | else | |
2334 | if test "x$host_alias" = x; then | |
2335 | ac_cv_host=$ac_cv_build | |
2336 | else | |
2337 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
22e05272 | 2338 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
a2a5609b KT |
2339 | fi |
2340 | ||
2341 | fi | |
2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
f9989b51 RO |
2343 | $as_echo "$ac_cv_host" >&6; } |
2344 | case $ac_cv_host in | |
2345 | *-*-*) ;; | |
22e05272 | 2346 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
f9989b51 RO |
2347 | esac |
2348 | host=$ac_cv_host | |
2349 | ac_save_IFS=$IFS; IFS='-' | |
2350 | set x $ac_cv_host | |
2351 | shift | |
2352 | host_cpu=$1 | |
2353 | host_vendor=$2 | |
2354 | shift; shift | |
2355 | # Remember, the first character of IFS is used to create $*, | |
2356 | # except with old shells: | |
2357 | host_os=$* | |
2358 | IFS=$ac_save_IFS | |
2359 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2360 | ||
2361 | ||
2362 | ||
2363 | ||
5d1c8e77 | 2364 | |
f9989b51 RO |
2365 | |
2366 | case "${host}" in | |
2367 | # PIC is the default on some targets or must not be used. | |
2368 | *-*-darwin*) | |
cacf1f59 JJ |
2369 | # For darwin, common symbols are not allowed in MH_DYLIB files |
2370 | case "${CFLAGS}" in | |
2371 | # If we are using a compiler supporting mdynamic-no-pic | |
2372 | # and the option has been tested as safe to add, then cancel | |
2373 | # it here, since the code generated is incompatible with shared | |
8f56cb51 | 2374 | # libs. |
cacf1f59 JJ |
2375 | *-mdynamic-no-pic*) PICFLAG='-fno-common -mno-dynamic-no-pic' ;; |
2376 | *) PICFLAG=-fno-common ;; | |
2377 | esac | |
f9989b51 RO |
2378 | ;; |
2379 | alpha*-dec-osf5*) | |
2380 | # PIC is the default. | |
2381 | ;; | |
2382 | hppa*64*-*-hpux*) | |
2383 | # PIC is the default for 64-bit PA HP-UX. | |
2384 | ;; | |
e9fd8c19 KT |
2385 | i[34567]86-*-cygwin* | x86_64-*-cygwin*) |
2386 | ;; | |
2387 | i[34567]86-*-mingw* | x86_64-*-mingw*) | |
f9989b51 | 2388 | ;; |
8f56cb51 AM |
2389 | i[34567]86-*-interix[3-9]*) |
2390 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
2391 | # Instead, we relocate shared libraries at runtime. | |
2392 | ;; | |
5d1c8e77 | 2393 | i[34567]86-*-nto-qnx*) |
f9989b51 RO |
2394 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
2395 | # it will coredump. | |
2396 | PICFLAG='-fPIC -shared' | |
2397 | ;; | |
5d1c8e77 | 2398 | i[34567]86-pc-msdosdjgpp*) |
f9989b51 RO |
2399 | # DJGPP does not support shared libraries at all. |
2400 | ;; | |
2401 | ia64*-*-hpux*) | |
2402 | # On IA64 HP-UX, PIC is the default but the pic flag | |
2403 | # sets the default TLS model and affects inlining. | |
f9989b51 RO |
2404 | PICFLAG=-fPIC |
2405 | ;; | |
b38100eb | 2406 | loongarch*-*-*) |
2407 | PICFLAG=-fpic | |
2408 | ;; | |
f9989b51 RO |
2409 | mips-sgi-irix6*) |
2410 | # PIC is the default. | |
2411 | ;; | |
2412 | rs6000-ibm-aix* | powerpc-ibm-aix*) | |
2413 | # All AIX code is PIC. | |
2414 | ;; | |
2415 | ||
2416 | # Some targets support both -fPIC and -fpic, but prefer the latter. | |
2417 | # FIXME: Why? | |
5d1c8e77 | 2418 | i[34567]86-*-* | x86_64-*-*) |
f9989b51 RO |
2419 | PICFLAG=-fpic |
2420 | ;; | |
f9989b51 | 2421 | # FIXME: Override -fPIC default in libgcc only? |
5d1c8e77 | 2422 | sh-*-linux* | sh[2346lbe]*-*-linux*) |
f9989b51 RO |
2423 | PICFLAG=-fpic |
2424 | ;; | |
9fc0ae60 | 2425 | sh*-*-netbsd*) |
f9989b51 RO |
2426 | PICFLAG=-fpic |
2427 | ;; | |
f9989b51 RO |
2428 | # Default to -fPIC unless specified otherwise. |
2429 | *) | |
2430 | PICFLAG=-fPIC | |
2431 | ;; | |
2432 | esac | |
2433 | ||
5d1c8e77 RO |
2434 | # If the user explicitly uses -fpic/-fPIC, keep that. |
2435 | case "${CFLAGS}" in | |
2436 | *-fpic*) | |
2437 | PICFLAG=-fpic | |
2438 | ;; | |
2439 | *-fPIC*) | |
2440 | PICFLAG=-fPIC | |
2441 | ;; | |
2442 | esac | |
2443 | ||
f9989b51 RO |
2444 | |
2445 | ||
5213506e RW |
2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
2447 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
2448 | # Check whether --enable-version-specific-runtime-libs was given. | |
2449 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
2450 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
d6efbf5a DJ |
2451 | yes) version_specific_libs=yes ;; |
2452 | no) version_specific_libs=no ;; | |
22e05272 | 2453 | *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
d6efbf5a DJ |
2454 | esac |
2455 | else | |
2456 | version_specific_libs=no | |
5213506e RW |
2457 | fi |
2458 | ||
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
2460 | $as_echo "$version_specific_libs" >&6; } | |
fa958513 | 2461 | |
14e8fc8b | 2462 | |
e8e66971 MR |
2463 | # Check whether --with-toolexeclibdir was given. |
2464 | if test "${with_toolexeclibdir+set}" = set; then : | |
2465 | withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in | |
2466 | /) | |
2467 | ;; | |
2468 | */) | |
2469 | with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` | |
2470 | ;; | |
2471 | esac | |
2472 | else | |
2473 | with_toolexeclibdir=no | |
2474 | fi | |
2475 | ||
2476 | ||
2477 | ||
2478 | ||
5213506e RW |
2479 | # Check whether --with-slibdir was given. |
2480 | if test "${with_slibdir+set}" = set; then : | |
2481 | withval=$with_slibdir; slibdir="$with_slibdir" | |
fa958513 | 2482 | else |
d6efbf5a | 2483 | if test "${version_specific_libs}" = yes; then |
fa958513 | 2484 | slibdir='$(libsubdir)' |
d6efbf5a | 2485 | elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then |
e8e66971 MR |
2486 | case ${with_toolexeclibdir} in |
2487 | no) | |
2488 | slibdir='$(exec_prefix)/$(host_noncanonical)/lib' | |
2489 | ;; | |
2490 | *) | |
2491 | slibdir=${with_toolexeclibdir} | |
2492 | ;; | |
2493 | esac | |
fa958513 DJ |
2494 | else |
2495 | slibdir='$(libdir)' | |
2496 | fi | |
5213506e RW |
2497 | fi |
2498 | ||
fa958513 DJ |
2499 | |
2500 | ||
6efbd53f RW |
2501 | # Command-line options. |
2502 | # Very limited version of AC_MAINTAINER_MODE. | |
5213506e RW |
2503 | # Check whether --enable-maintainer-mode was given. |
2504 | if test "${enable_maintainer_mode+set}" = set; then : | |
2505 | enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in | |
6efbd53f RW |
2506 | yes) MAINT='' ;; |
2507 | no) MAINT='#' ;; | |
22e05272 | 2508 | *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;; |
6efbd53f RW |
2509 | esac |
2510 | maintainer_mode=${enableval} | |
2511 | else | |
2512 | MAINT='#' | |
5213506e RW |
2513 | fi |
2514 | ||
6efbd53f | 2515 | |
fa958513 DJ |
2516 | # Find a good install program. We prefer a C program (faster), |
2517 | # so one script is as good as another. But avoid the broken or | |
2518 | # incompatible versions: | |
2519 | # SysV /etc/install, /usr/sbin/install | |
2520 | # SunOS /usr/etc/install | |
2521 | # IRIX /sbin/install | |
2522 | # AIX /bin/install | |
2523 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2524 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2525 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2526 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2527 | # OS/2's system install, which has a completely different semantic | |
2528 | # ./install, which can be erroneously created by make from ./install.sh. | |
5213506e RW |
2529 | # Reject install programs that cannot install multiple files. |
2530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2531 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
fa958513 | 2532 | if test -z "$INSTALL"; then |
22e05272 | 2533 | if ${ac_cv_path_install+:} false; then : |
5213506e | 2534 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2535 | else |
2536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2537 | for as_dir in $PATH | |
2538 | do | |
2539 | IFS=$as_save_IFS | |
2540 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2541 | # Account for people who put trailing slashes in PATH elements. |
2542 | case $as_dir/ in #(( | |
2543 | ./ | .// | /[cC]/* | \ | |
fa958513 | 2544 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2545 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
fa958513 DJ |
2546 | /usr/ucb/* ) ;; |
2547 | *) | |
2548 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2549 | # Don't use installbsd from OSF since it installs stuff as root | |
2550 | # by default. | |
2551 | for ac_prog in ginstall scoinst install; do | |
2552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22e05272 | 2553 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
fa958513 DJ |
2554 | if test $ac_prog = install && |
2555 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2556 | # AIX install. It has an incompatible calling convention. | |
2557 | : | |
2558 | elif test $ac_prog = install && | |
2559 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2560 | # program-specific install script used by HP pwplus--don't use. | |
2561 | : | |
2562 | else | |
5213506e RW |
2563 | rm -rf conftest.one conftest.two conftest.dir |
2564 | echo one > conftest.one | |
2565 | echo two > conftest.two | |
2566 | mkdir conftest.dir | |
2567 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2568 | test -s conftest.one && test -s conftest.two && | |
2569 | test -s conftest.dir/conftest.one && | |
2570 | test -s conftest.dir/conftest.two | |
2571 | then | |
2572 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2573 | break 3 | |
2574 | fi | |
fa958513 DJ |
2575 | fi |
2576 | fi | |
2577 | done | |
2578 | done | |
2579 | ;; | |
2580 | esac | |
fa958513 | 2581 | |
5213506e RW |
2582 | done |
2583 | IFS=$as_save_IFS | |
2584 | ||
2585 | rm -rf conftest.one conftest.two conftest.dir | |
fa958513 DJ |
2586 | |
2587 | fi | |
2588 | if test "${ac_cv_path_install+set}" = set; then | |
2589 | INSTALL=$ac_cv_path_install | |
2590 | else | |
5213506e RW |
2591 | # As a last resort, use the slow shell script. Don't cache a |
2592 | # value for INSTALL within a source directory, because that will | |
fa958513 | 2593 | # break other packages using the cache if that directory is |
5213506e | 2594 | # removed, or if the value is a relative name. |
fa958513 DJ |
2595 | INSTALL=$ac_install_sh |
2596 | fi | |
2597 | fi | |
5213506e RW |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2599 | $as_echo "$INSTALL" >&6; } | |
fa958513 DJ |
2600 | |
2601 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2602 | # It thinks the first close brace ends the variable substitution. | |
2603 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2604 | ||
2605 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2606 | ||
2607 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2608 | ||
2609 | ||
2610 | for ac_prog in gawk mawk nawk awk | |
2611 | do | |
2612 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2613 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2615 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2616 | if ${ac_cv_prog_AWK+:} false; then : |
5213506e | 2617 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2618 | else |
2619 | if test -n "$AWK"; then | |
2620 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2621 | else | |
2622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2623 | for as_dir in $PATH | |
2624 | do | |
2625 | IFS=$as_save_IFS | |
2626 | test -z "$as_dir" && as_dir=. | |
5213506e | 2627 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2628 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 2629 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 2630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2631 | break 2 |
2632 | fi | |
2633 | done | |
5213506e RW |
2634 | done |
2635 | IFS=$as_save_IFS | |
fa958513 DJ |
2636 | |
2637 | fi | |
2638 | fi | |
2639 | AWK=$ac_cv_prog_AWK | |
2640 | if test -n "$AWK"; then | |
5213506e RW |
2641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2642 | $as_echo "$AWK" >&6; } | |
fa958513 | 2643 | else |
5213506e RW |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2645 | $as_echo "no" >&6; } | |
fa958513 DJ |
2646 | fi |
2647 | ||
5213506e | 2648 | |
fa958513 DJ |
2649 | test -n "$AWK" && break |
2650 | done | |
2651 | ||
2652 | # We need awk; bail out if it's missing. | |
2653 | case ${AWK} in | |
22e05272 | 2654 | "") as_fn_error $? "can't build without awk, bailing out" "$LINENO" 5 ;; |
fa958513 DJ |
2655 | esac |
2656 | ||
fa958513 DJ |
2657 | |
2658 | case ${build_alias} in | |
2659 | "") build_noncanonical=${build} ;; | |
2660 | *) build_noncanonical=${build_alias} ;; | |
2661 | esac | |
2662 | ||
2663 | case ${host_alias} in | |
2664 | "") host_noncanonical=${build_noncanonical} ;; | |
2665 | *) host_noncanonical=${host_alias} ;; | |
2666 | esac | |
2667 | ||
2668 | ||
2669 | ||
14e8fc8b PB |
2670 | case ${target_alias} in |
2671 | "") target_noncanonical=${host_noncanonical} ;; | |
2672 | *) target_noncanonical=${target_alias} ;; | |
2673 | esac | |
2674 | ||
2675 | ||
58c741a6 DK |
2676 | |
2677 | ||
14e8fc8b PB |
2678 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2679 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2680 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2681 | # However, they still use the build modules, because the corresponding | |
2682 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2683 | # finishes. So: | |
2684 | # - build_subdir is where we find build modules, and never changes. | |
2685 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2686 | ||
2687 | # Prefix 'build-' so this never conflicts with target_subdir. | |
2688 | build_subdir="build-${build_noncanonical}" | |
2689 | ||
5213506e RW |
2690 | # Check whether --with-build-libsubdir was given. |
2691 | if test "${with_build_libsubdir+set}" = set; then : | |
2692 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
14e8fc8b PB |
2693 | else |
2694 | build_libsubdir="$build_subdir" | |
5213506e RW |
2695 | fi |
2696 | ||
14e8fc8b PB |
2697 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2698 | if ( test $srcdir = . && test -d gcc ) \ | |
2699 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2700 | host_subdir="host-${host_noncanonical}" | |
2701 | else | |
2702 | host_subdir=. | |
2703 | fi | |
2704 | # No prefix. | |
2705 | target_subdir=${target_noncanonical} | |
2706 | ||
fa958513 | 2707 | |
39be73d0 JM |
2708 | # Check whether --enable-gcov was given. |
2709 | if test "${enable_gcov+set}" = set; then : | |
2710 | enableval=$enable_gcov; | |
2711 | else | |
2712 | case $target in | |
2713 | bpf-*-*) | |
2714 | enable_gcov=no | |
2715 | ;; | |
2716 | *) | |
2717 | enable_gcov=yes | |
2718 | ;; | |
2719 | esac | |
2720 | fi | |
2721 | ||
2722 | ||
2723 | ||
58c741a6 DK |
2724 | # Calculate toolexeclibdir |
2725 | # Also toolexecdir, though it's only used in toolexeclibdir | |
2726 | case ${version_specific_libs} in | |
2727 | yes) | |
2728 | # Need the gcc compiler version to know where to install libraries | |
2729 | # and header files if --enable-version-specific-runtime-libs option | |
2730 | # is selected. | |
2731 | toolexecdir='$(libdir)/gcc/$(target_noncanonical)' | |
2732 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' | |
2733 | ;; | |
2734 | no) | |
2735 | if test -n "$with_cross_host" && | |
2736 | test x"$with_cross_host" != x"no"; then | |
2737 | # Install a library built with a cross compiler in tooldir, not libdir. | |
2738 | toolexecdir='$(exec_prefix)/$(target_noncanonical)' | |
e8e66971 MR |
2739 | case ${with_toolexeclibdir} in |
2740 | no) | |
2741 | toolexeclibdir='$(toolexecdir)/lib' | |
2742 | ;; | |
2743 | *) | |
2744 | toolexeclibdir=${with_toolexeclibdir} | |
2745 | ;; | |
2746 | esac | |
58c741a6 DK |
2747 | else |
2748 | toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' | |
2749 | toolexeclibdir='$(libdir)' | |
2750 | fi | |
2751 | multi_os_directory=`$CC -print-multi-os-directory` | |
2752 | case $multi_os_directory in | |
2753 | .) ;; # Avoid trailing /. | |
2754 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
2755 | esac | |
2756 | ;; | |
2757 | esac | |
2758 | ||
2759 | ||
2760 | ||
fa958513 DJ |
2761 | if test -n "$ac_tool_prefix"; then |
2762 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
2763 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2765 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2766 | if ${ac_cv_prog_AR+:} false; then : |
5213506e | 2767 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2768 | else |
2769 | if test -n "$AR"; then | |
2770 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2771 | else | |
2772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2773 | for as_dir in $PATH | |
2774 | do | |
2775 | IFS=$as_save_IFS | |
2776 | test -z "$as_dir" && as_dir=. | |
5213506e | 2777 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2778 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 2779 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 2780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2781 | break 2 |
2782 | fi | |
2783 | done | |
5213506e RW |
2784 | done |
2785 | IFS=$as_save_IFS | |
fa958513 DJ |
2786 | |
2787 | fi | |
2788 | fi | |
2789 | AR=$ac_cv_prog_AR | |
2790 | if test -n "$AR"; then | |
5213506e RW |
2791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
2792 | $as_echo "$AR" >&6; } | |
fa958513 | 2793 | else |
5213506e RW |
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2795 | $as_echo "no" >&6; } | |
fa958513 DJ |
2796 | fi |
2797 | ||
5213506e | 2798 | |
fa958513 DJ |
2799 | fi |
2800 | if test -z "$ac_cv_prog_AR"; then | |
2801 | ac_ct_AR=$AR | |
2802 | # Extract the first word of "ar", so it can be a program name with args. | |
2803 | set dummy ar; ac_word=$2 | |
5213506e RW |
2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2805 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2806 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
5213506e | 2807 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2808 | else |
2809 | if test -n "$ac_ct_AR"; then | |
2810 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
2811 | else | |
2812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2813 | for as_dir in $PATH | |
2814 | do | |
2815 | IFS=$as_save_IFS | |
2816 | test -z "$as_dir" && as_dir=. | |
5213506e | 2817 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2818 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 2819 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 2820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2821 | break 2 |
2822 | fi | |
2823 | done | |
5213506e RW |
2824 | done |
2825 | IFS=$as_save_IFS | |
fa958513 DJ |
2826 | |
2827 | fi | |
2828 | fi | |
2829 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
2830 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
2831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
2832 | $as_echo "$ac_ct_AR" >&6; } | |
fa958513 | 2833 | else |
5213506e RW |
2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2835 | $as_echo "no" >&6; } | |
fa958513 DJ |
2836 | fi |
2837 | ||
5213506e RW |
2838 | if test "x$ac_ct_AR" = x; then |
2839 | AR="" | |
2840 | else | |
2841 | case $cross_compiling:$ac_tool_warned in | |
2842 | yes:) | |
2843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2844 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2845 | ac_tool_warned=yes ;; | |
2846 | esac | |
2847 | AR=$ac_ct_AR | |
2848 | fi | |
fa958513 DJ |
2849 | else |
2850 | AR="$ac_cv_prog_AR" | |
2851 | fi | |
2852 | ||
2853 | if test -n "$ac_tool_prefix"; then | |
2854 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
2855 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2857 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2858 | if ${ac_cv_prog_LIPO+:} false; then : |
5213506e | 2859 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2860 | else |
2861 | if test -n "$LIPO"; then | |
2862 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
2863 | else | |
2864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2865 | for as_dir in $PATH | |
2866 | do | |
2867 | IFS=$as_save_IFS | |
2868 | test -z "$as_dir" && as_dir=. | |
5213506e | 2869 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2870 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 2871 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 2872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2873 | break 2 |
2874 | fi | |
2875 | done | |
5213506e RW |
2876 | done |
2877 | IFS=$as_save_IFS | |
fa958513 DJ |
2878 | |
2879 | fi | |
2880 | fi | |
2881 | LIPO=$ac_cv_prog_LIPO | |
2882 | if test -n "$LIPO"; then | |
5213506e RW |
2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
2884 | $as_echo "$LIPO" >&6; } | |
fa958513 | 2885 | else |
5213506e RW |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2887 | $as_echo "no" >&6; } | |
fa958513 DJ |
2888 | fi |
2889 | ||
5213506e | 2890 | |
fa958513 DJ |
2891 | fi |
2892 | if test -z "$ac_cv_prog_LIPO"; then | |
2893 | ac_ct_LIPO=$LIPO | |
2894 | # Extract the first word of "lipo", so it can be a program name with args. | |
2895 | set dummy lipo; ac_word=$2 | |
5213506e RW |
2896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2897 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2898 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
5213506e | 2899 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2900 | else |
2901 | if test -n "$ac_ct_LIPO"; then | |
2902 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
2903 | else | |
2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2905 | for as_dir in $PATH | |
2906 | do | |
2907 | IFS=$as_save_IFS | |
2908 | test -z "$as_dir" && as_dir=. | |
5213506e | 2909 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2910 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 2911 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 2912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2913 | break 2 |
2914 | fi | |
2915 | done | |
5213506e RW |
2916 | done |
2917 | IFS=$as_save_IFS | |
fa958513 | 2918 | |
fa958513 DJ |
2919 | fi |
2920 | fi | |
2921 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
2922 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
2924 | $as_echo "$ac_ct_LIPO" >&6; } | |
fa958513 | 2925 | else |
5213506e RW |
2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2927 | $as_echo "no" >&6; } | |
fa958513 DJ |
2928 | fi |
2929 | ||
5213506e RW |
2930 | if test "x$ac_ct_LIPO" = x; then |
2931 | LIPO=":" | |
2932 | else | |
2933 | case $cross_compiling:$ac_tool_warned in | |
2934 | yes:) | |
2935 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2936 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2937 | ac_tool_warned=yes ;; | |
2938 | esac | |
2939 | LIPO=$ac_ct_LIPO | |
2940 | fi | |
fa958513 DJ |
2941 | else |
2942 | LIPO="$ac_cv_prog_LIPO" | |
2943 | fi | |
2944 | ||
2945 | if test -n "$ac_tool_prefix"; then | |
2946 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
2947 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
5213506e RW |
2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2949 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2950 | if ${ac_cv_prog_NM+:} false; then : |
5213506e | 2951 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2952 | else |
2953 | if test -n "$NM"; then | |
2954 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
2955 | else | |
2956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2957 | for as_dir in $PATH | |
2958 | do | |
2959 | IFS=$as_save_IFS | |
2960 | test -z "$as_dir" && as_dir=. | |
5213506e | 2961 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 2962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 2963 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
5213506e | 2964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2965 | break 2 |
2966 | fi | |
2967 | done | |
5213506e RW |
2968 | done |
2969 | IFS=$as_save_IFS | |
fa958513 DJ |
2970 | |
2971 | fi | |
2972 | fi | |
2973 | NM=$ac_cv_prog_NM | |
2974 | if test -n "$NM"; then | |
5213506e RW |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
2976 | $as_echo "$NM" >&6; } | |
fa958513 | 2977 | else |
5213506e RW |
2978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2979 | $as_echo "no" >&6; } | |
fa958513 DJ |
2980 | fi |
2981 | ||
5213506e | 2982 | |
fa958513 DJ |
2983 | fi |
2984 | if test -z "$ac_cv_prog_NM"; then | |
2985 | ac_ct_NM=$NM | |
2986 | # Extract the first word of "nm", so it can be a program name with args. | |
2987 | set dummy nm; ac_word=$2 | |
5213506e RW |
2988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2989 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 2990 | if ${ac_cv_prog_ac_ct_NM+:} false; then : |
5213506e | 2991 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
2992 | else |
2993 | if test -n "$ac_ct_NM"; then | |
2994 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
2995 | else | |
2996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2997 | for as_dir in $PATH | |
2998 | do | |
2999 | IFS=$as_save_IFS | |
3000 | test -z "$as_dir" && as_dir=. | |
5213506e | 3001 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3002 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3003 | ac_cv_prog_ac_ct_NM="nm" |
5213506e | 3004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3005 | break 2 |
3006 | fi | |
3007 | done | |
5213506e RW |
3008 | done |
3009 | IFS=$as_save_IFS | |
fa958513 DJ |
3010 | |
3011 | fi | |
3012 | fi | |
3013 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
3014 | if test -n "$ac_ct_NM"; then | |
5213506e RW |
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
3016 | $as_echo "$ac_ct_NM" >&6; } | |
fa958513 | 3017 | else |
5213506e RW |
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3019 | $as_echo "no" >&6; } | |
fa958513 DJ |
3020 | fi |
3021 | ||
5213506e RW |
3022 | if test "x$ac_ct_NM" = x; then |
3023 | NM="" | |
3024 | else | |
3025 | case $cross_compiling:$ac_tool_warned in | |
3026 | yes:) | |
3027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3028 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3029 | ac_tool_warned=yes ;; | |
3030 | esac | |
3031 | NM=$ac_ct_NM | |
3032 | fi | |
fa958513 DJ |
3033 | else |
3034 | NM="$ac_cv_prog_NM" | |
3035 | fi | |
3036 | ||
3037 | if test -n "$ac_tool_prefix"; then | |
3038 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3039 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3041 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3042 | if ${ac_cv_prog_RANLIB+:} false; then : |
5213506e | 3043 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3044 | else |
3045 | if test -n "$RANLIB"; then | |
3046 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3047 | else | |
3048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3049 | for as_dir in $PATH | |
3050 | do | |
3051 | IFS=$as_save_IFS | |
3052 | test -z "$as_dir" && as_dir=. | |
5213506e | 3053 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3055 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 3056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3057 | break 2 |
3058 | fi | |
3059 | done | |
5213506e RW |
3060 | done |
3061 | IFS=$as_save_IFS | |
fa958513 DJ |
3062 | |
3063 | fi | |
3064 | fi | |
3065 | RANLIB=$ac_cv_prog_RANLIB | |
3066 | if test -n "$RANLIB"; then | |
5213506e RW |
3067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
3068 | $as_echo "$RANLIB" >&6; } | |
fa958513 | 3069 | else |
5213506e RW |
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3071 | $as_echo "no" >&6; } | |
fa958513 DJ |
3072 | fi |
3073 | ||
5213506e | 3074 | |
fa958513 DJ |
3075 | fi |
3076 | if test -z "$ac_cv_prog_RANLIB"; then | |
3077 | ac_ct_RANLIB=$RANLIB | |
3078 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3079 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3081 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3082 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
5213506e | 3083 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3084 | else |
3085 | if test -n "$ac_ct_RANLIB"; then | |
3086 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3087 | else | |
3088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3089 | for as_dir in $PATH | |
3090 | do | |
3091 | IFS=$as_save_IFS | |
3092 | test -z "$as_dir" && as_dir=. | |
5213506e | 3093 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3095 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 3096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3097 | break 2 |
3098 | fi | |
3099 | done | |
5213506e RW |
3100 | done |
3101 | IFS=$as_save_IFS | |
fa958513 | 3102 | |
fa958513 DJ |
3103 | fi |
3104 | fi | |
3105 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3106 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
3108 | $as_echo "$ac_ct_RANLIB" >&6; } | |
fa958513 | 3109 | else |
5213506e RW |
3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3111 | $as_echo "no" >&6; } | |
fa958513 DJ |
3112 | fi |
3113 | ||
5213506e RW |
3114 | if test "x$ac_ct_RANLIB" = x; then |
3115 | RANLIB=":" | |
3116 | else | |
3117 | case $cross_compiling:$ac_tool_warned in | |
3118 | yes:) | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3120 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3121 | ac_tool_warned=yes ;; | |
3122 | esac | |
3123 | RANLIB=$ac_ct_RANLIB | |
3124 | fi | |
fa958513 DJ |
3125 | else |
3126 | RANLIB="$ac_cv_prog_RANLIB" | |
3127 | fi | |
3128 | ||
3129 | if test -n "$ac_tool_prefix"; then | |
3130 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3131 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3133 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3134 | if ${ac_cv_prog_STRIP+:} false; then : |
5213506e | 3135 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3136 | else |
3137 | if test -n "$STRIP"; then | |
3138 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3139 | else | |
3140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3141 | for as_dir in $PATH | |
3142 | do | |
3143 | IFS=$as_save_IFS | |
3144 | test -z "$as_dir" && as_dir=. | |
5213506e | 3145 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3147 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 3148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3149 | break 2 |
3150 | fi | |
3151 | done | |
5213506e RW |
3152 | done |
3153 | IFS=$as_save_IFS | |
fa958513 DJ |
3154 | |
3155 | fi | |
3156 | fi | |
3157 | STRIP=$ac_cv_prog_STRIP | |
3158 | if test -n "$STRIP"; then | |
5213506e RW |
3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
3160 | $as_echo "$STRIP" >&6; } | |
fa958513 | 3161 | else |
5213506e RW |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3163 | $as_echo "no" >&6; } | |
fa958513 DJ |
3164 | fi |
3165 | ||
5213506e | 3166 | |
fa958513 DJ |
3167 | fi |
3168 | if test -z "$ac_cv_prog_STRIP"; then | |
3169 | ac_ct_STRIP=$STRIP | |
3170 | # Extract the first word of "strip", so it can be a program name with args. | |
3171 | set dummy strip; ac_word=$2 | |
5213506e RW |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3173 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3174 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
5213506e | 3175 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3176 | else |
3177 | if test -n "$ac_ct_STRIP"; then | |
3178 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3179 | else | |
3180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3181 | for as_dir in $PATH | |
3182 | do | |
3183 | IFS=$as_save_IFS | |
3184 | test -z "$as_dir" && as_dir=. | |
5213506e | 3185 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3186 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3187 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 3188 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3189 | break 2 |
3190 | fi | |
3191 | done | |
5213506e RW |
3192 | done |
3193 | IFS=$as_save_IFS | |
fa958513 | 3194 | |
fa958513 DJ |
3195 | fi |
3196 | fi | |
3197 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3198 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
3200 | $as_echo "$ac_ct_STRIP" >&6; } | |
fa958513 | 3201 | else |
5213506e RW |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3203 | $as_echo "no" >&6; } | |
fa958513 DJ |
3204 | fi |
3205 | ||
5213506e RW |
3206 | if test "x$ac_ct_STRIP" = x; then |
3207 | STRIP=":" | |
3208 | else | |
3209 | case $cross_compiling:$ac_tool_warned in | |
3210 | yes:) | |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3213 | ac_tool_warned=yes ;; | |
3214 | esac | |
3215 | STRIP=$ac_ct_STRIP | |
3216 | fi | |
fa958513 DJ |
3217 | else |
3218 | STRIP="$ac_cv_prog_STRIP" | |
3219 | fi | |
3220 | ||
5213506e RW |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
3222 | $as_echo_n "checking whether ln -s works... " >&6; } | |
fa958513 DJ |
3223 | LN_S=$as_ln_s |
3224 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3226 | $as_echo "yes" >&6; } | |
fa958513 | 3227 | else |
5213506e RW |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
3229 | $as_echo "no, using $LN_S" >&6; } | |
fa958513 DJ |
3230 | fi |
3231 | ||
3232 | ||
3233 | ||
3234 | ac_ext=c | |
3235 | ac_cpp='$CPP $CPPFLAGS' | |
3236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3239 | if test -n "$ac_tool_prefix"; then | |
3240 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3241 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3243 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3244 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3245 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3246 | else |
3247 | if test -n "$CC"; then | |
3248 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3249 | else | |
3250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3251 | for as_dir in $PATH | |
3252 | do | |
3253 | IFS=$as_save_IFS | |
3254 | test -z "$as_dir" && as_dir=. | |
5213506e | 3255 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3256 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3257 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3258 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3259 | break 2 |
3260 | fi | |
3261 | done | |
5213506e RW |
3262 | done |
3263 | IFS=$as_save_IFS | |
fa958513 DJ |
3264 | |
3265 | fi | |
3266 | fi | |
3267 | CC=$ac_cv_prog_CC | |
3268 | if test -n "$CC"; then | |
5213506e RW |
3269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3270 | $as_echo "$CC" >&6; } | |
fa958513 | 3271 | else |
5213506e RW |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3273 | $as_echo "no" >&6; } | |
fa958513 DJ |
3274 | fi |
3275 | ||
5213506e | 3276 | |
fa958513 DJ |
3277 | fi |
3278 | if test -z "$ac_cv_prog_CC"; then | |
3279 | ac_ct_CC=$CC | |
3280 | # Extract the first word of "gcc", so it can be a program name with args. | |
3281 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3283 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3284 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3285 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3286 | else |
3287 | if test -n "$ac_ct_CC"; then | |
3288 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3289 | else | |
3290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3291 | for as_dir in $PATH | |
3292 | do | |
3293 | IFS=$as_save_IFS | |
3294 | test -z "$as_dir" && as_dir=. | |
5213506e | 3295 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3296 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3297 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3299 | break 2 |
3300 | fi | |
3301 | done | |
5213506e RW |
3302 | done |
3303 | IFS=$as_save_IFS | |
fa958513 DJ |
3304 | |
3305 | fi | |
3306 | fi | |
3307 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3308 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3310 | $as_echo "$ac_ct_CC" >&6; } | |
fa958513 | 3311 | else |
5213506e RW |
3312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3313 | $as_echo "no" >&6; } | |
fa958513 DJ |
3314 | fi |
3315 | ||
5213506e RW |
3316 | if test "x$ac_ct_CC" = x; then |
3317 | CC="" | |
3318 | else | |
3319 | case $cross_compiling:$ac_tool_warned in | |
3320 | yes:) | |
3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3322 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3323 | ac_tool_warned=yes ;; | |
3324 | esac | |
3325 | CC=$ac_ct_CC | |
3326 | fi | |
fa958513 DJ |
3327 | else |
3328 | CC="$ac_cv_prog_CC" | |
3329 | fi | |
3330 | ||
3331 | if test -z "$CC"; then | |
5213506e RW |
3332 | if test -n "$ac_tool_prefix"; then |
3333 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
fa958513 | 3334 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3336 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3337 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3338 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3339 | else |
3340 | if test -n "$CC"; then | |
3341 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3342 | else | |
3343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3344 | for as_dir in $PATH | |
3345 | do | |
3346 | IFS=$as_save_IFS | |
3347 | test -z "$as_dir" && as_dir=. | |
5213506e | 3348 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3350 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3352 | break 2 |
3353 | fi | |
3354 | done | |
5213506e RW |
3355 | done |
3356 | IFS=$as_save_IFS | |
fa958513 DJ |
3357 | |
3358 | fi | |
3359 | fi | |
3360 | CC=$ac_cv_prog_CC | |
3361 | if test -n "$CC"; then | |
5213506e RW |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3363 | $as_echo "$CC" >&6; } | |
d6efbf5a | 3364 | else |
5213506e RW |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3366 | $as_echo "no" >&6; } | |
d6efbf5a DJ |
3367 | fi |
3368 | ||
d6efbf5a | 3369 | |
5213506e | 3370 | fi |
fa958513 DJ |
3371 | fi |
3372 | if test -z "$CC"; then | |
3373 | # Extract the first word of "cc", so it can be a program name with args. | |
3374 | set dummy cc; ac_word=$2 | |
5213506e RW |
3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3376 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3377 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3378 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3379 | else |
3380 | if test -n "$CC"; then | |
3381 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3382 | else | |
3383 | ac_prog_rejected=no | |
3384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3385 | for as_dir in $PATH | |
3386 | do | |
3387 | IFS=$as_save_IFS | |
3388 | test -z "$as_dir" && as_dir=. | |
5213506e | 3389 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 DJ |
3391 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3392 | ac_prog_rejected=yes | |
3393 | continue | |
3394 | fi | |
3395 | ac_cv_prog_CC="cc" | |
5213506e | 3396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3397 | break 2 |
3398 | fi | |
3399 | done | |
5213506e RW |
3400 | done |
3401 | IFS=$as_save_IFS | |
fa958513 DJ |
3402 | |
3403 | if test $ac_prog_rejected = yes; then | |
3404 | # We found a bogon in the path, so make sure we never use it. | |
3405 | set dummy $ac_cv_prog_CC | |
3406 | shift | |
3407 | if test $# != 0; then | |
3408 | # We chose a different compiler from the bogus one. | |
3409 | # However, it has the same basename, so the bogon will be chosen | |
3410 | # first if we set CC to just the basename; use the full file name. | |
3411 | shift | |
3412 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3413 | fi | |
3414 | fi | |
3415 | fi | |
3416 | fi | |
3417 | CC=$ac_cv_prog_CC | |
3418 | if test -n "$CC"; then | |
5213506e RW |
3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3420 | $as_echo "$CC" >&6; } | |
fa958513 | 3421 | else |
5213506e RW |
3422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3423 | $as_echo "no" >&6; } | |
fa958513 DJ |
3424 | fi |
3425 | ||
5213506e | 3426 | |
fa958513 DJ |
3427 | fi |
3428 | if test -z "$CC"; then | |
3429 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3430 | for ac_prog in cl.exe |
fa958513 DJ |
3431 | do |
3432 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3433 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3435 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3436 | if ${ac_cv_prog_CC+:} false; then : |
5213506e | 3437 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3438 | else |
3439 | if test -n "$CC"; then | |
3440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3441 | else | |
3442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3443 | for as_dir in $PATH | |
3444 | do | |
3445 | IFS=$as_save_IFS | |
3446 | test -z "$as_dir" && as_dir=. | |
5213506e | 3447 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3449 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3451 | break 2 |
3452 | fi | |
3453 | done | |
5213506e RW |
3454 | done |
3455 | IFS=$as_save_IFS | |
fa958513 DJ |
3456 | |
3457 | fi | |
3458 | fi | |
3459 | CC=$ac_cv_prog_CC | |
3460 | if test -n "$CC"; then | |
5213506e RW |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3462 | $as_echo "$CC" >&6; } | |
fa958513 | 3463 | else |
5213506e RW |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3465 | $as_echo "no" >&6; } | |
fa958513 DJ |
3466 | fi |
3467 | ||
5213506e | 3468 | |
fa958513 DJ |
3469 | test -n "$CC" && break |
3470 | done | |
3471 | fi | |
3472 | if test -z "$CC"; then | |
3473 | ac_ct_CC=$CC | |
5213506e | 3474 | for ac_prog in cl.exe |
fa958513 DJ |
3475 | do |
3476 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3477 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3479 | $as_echo_n "checking for $ac_word... " >&6; } | |
22e05272 | 3480 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
5213506e | 3481 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
3482 | else |
3483 | if test -n "$ac_ct_CC"; then | |
3484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3485 | else | |
3486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3487 | for as_dir in $PATH | |
3488 | do | |
3489 | IFS=$as_save_IFS | |
3490 | test -z "$as_dir" && as_dir=. | |
5213506e | 3491 | for ac_exec_ext in '' $ac_executable_extensions; do |
22e05272 | 3492 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
fa958513 | 3493 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
3495 | break 2 |
3496 | fi | |
3497 | done | |
5213506e RW |
3498 | done |
3499 | IFS=$as_save_IFS | |
fa958513 DJ |
3500 | |
3501 | fi | |
3502 | fi | |
3503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3504 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3506 | $as_echo "$ac_ct_CC" >&6; } | |
fa958513 | 3507 | else |
5213506e RW |
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3509 | $as_echo "no" >&6; } | |
a2a5609b | 3510 | fi |
fa958513 | 3511 | |
5213506e | 3512 | |
0824d924 KT |
3513 | test -n "$ac_ct_CC" && break |
3514 | done | |
3515 | ||
3516 | if test "x$ac_ct_CC" = x; then | |
3517 | CC="" | |
3518 | else | |
3519 | case $cross_compiling:$ac_tool_warned in | |
3520 | yes:) | |
3521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3522 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3523 | ac_tool_warned=yes ;; | |
3524 | esac | |
3525 | CC=$ac_ct_CC | |
3526 | fi | |
3527 | fi | |
3528 | ||
3529 | fi | |
3530 | ||
3531 | ||
3532 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3534 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3535 | See \`config.log' for more details" "$LINENO" 5; } | |
0824d924 KT |
3536 | |
3537 | # Provide some information about the compiler. | |
3538 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3539 | set X $ac_compile | |
3540 | ac_compiler=$2 | |
3541 | for ac_option in --version -v -V -qversion; do | |
3542 | { { ac_try="$ac_compiler $ac_option >&5" | |
3543 | case "(($ac_try" in | |
3544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3545 | *) ac_try_echo=$ac_try;; | |
3546 | esac | |
3547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3548 | $as_echo "$ac_try_echo"; } >&5 | |
3549 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3550 | ac_status=$? | |
3551 | if test -s conftest.err; then | |
3552 | sed '10a\ | |
3553 | ... rest of stderr output deleted ... | |
3554 | 10q' conftest.err >conftest.er1 | |
3555 | cat conftest.er1 >&5 | |
0824d924 | 3556 | fi |
22e05272 | 3557 | rm -f conftest.er1 conftest.err |
0824d924 KT |
3558 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3559 | test $ac_status = 0; } | |
3560 | done | |
3561 | ||
3562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3563 | /* end confdefs.h. */ | |
02ce382c | 3564 | #include <stdio.h> |
0824d924 KT |
3565 | int |
3566 | main () | |
3567 | { | |
02ce382c | 3568 | printf ("hello world\n"); |
0824d924 KT |
3569 | ; |
3570 | return 0; | |
3571 | } | |
3572 | _ACEOF | |
3573 | # FIXME: Cleanup? | |
3574 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
3575 | (eval $ac_link) 2>&5 | |
3576 | ac_status=$? | |
3577 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3578 | test $ac_status = 0; }; then : | |
3579 | gcc_no_link=no | |
3580 | else | |
3581 | gcc_no_link=yes | |
3582 | fi | |
3583 | if test x$gcc_no_link = xyes; then | |
3584 | # Setting cross_compile will disable run tests; it will | |
3585 | # also disable AC_CHECK_FILE but that's generally | |
3586 | # correct if we can't link. | |
3587 | cross_compiling=yes | |
3588 | EXEEXT= | |
3589 | else | |
3590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3591 | /* end confdefs.h. */ | |
3592 | ||
3593 | int | |
3594 | main () | |
3595 | { | |
3596 | ||
3597 | ; | |
3598 | return 0; | |
3599 | } | |
3600 | _ACEOF | |
3601 | ac_clean_files_save=$ac_clean_files | |
22e05272 | 3602 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
0824d924 KT |
3603 | # Try to create an executable without -o first, disregard a.out. |
3604 | # It will help us diagnose broken compilers, and finding out an intuition | |
3605 | # of exeext. | |
22e05272 JM |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3607 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
0824d924 KT |
3608 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3609 | ||
3610 | # The possible output files: | |
3611 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3612 | ||
3613 | ac_rmfiles= | |
3614 | for ac_file in $ac_files | |
3615 | do | |
3616 | case $ac_file in | |
3617 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3618 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3619 | esac | |
3620 | done | |
3621 | rm -f $ac_rmfiles | |
3622 | ||
3623 | if { { ac_try="$ac_link_default" | |
3624 | case "(($ac_try" in | |
3625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3626 | *) ac_try_echo=$ac_try;; | |
3627 | esac | |
3628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3629 | $as_echo "$ac_try_echo"; } >&5 | |
3630 | (eval "$ac_link_default") 2>&5 | |
3631 | ac_status=$? | |
3632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3633 | test $ac_status = 0; }; then : | |
3634 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3635 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3636 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3637 | # so that the user can short-circuit this test for compilers unknown to | |
3638 | # Autoconf. | |
3639 | for ac_file in $ac_files '' | |
3640 | do | |
3641 | test -f "$ac_file" || continue | |
3642 | case $ac_file in | |
3643 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3644 | ;; | |
3645 | [ab].out ) | |
3646 | # We found the default executable, but exeext='' is most | |
3647 | # certainly right. | |
3648 | break;; | |
3649 | *.* ) | |
3650 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3651 | then :; else | |
3652 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3653 | fi | |
3654 | # We set ac_cv_exeext here because the later test for it is not | |
3655 | # safe: cross compilers may not add the suffix if given an `-o' | |
3656 | # argument, so we may need to know it at that point already. | |
3657 | # Even if this section looks crufty: it has the advantage of | |
3658 | # actually working. | |
3659 | break;; | |
3660 | * ) | |
3661 | break;; | |
3662 | esac | |
3663 | done | |
3664 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3665 | ||
3666 | else | |
3667 | ac_file='' | |
3668 | fi | |
0824d924 | 3669 | if test -z "$ac_file"; then : |
22e05272 JM |
3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3671 | $as_echo "no" >&6; } | |
3672 | $as_echo "$as_me: failed program was:" >&5 | |
0824d924 KT |
3673 | sed 's/^/| /' conftest.$ac_ext >&5 |
3674 | ||
3675 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3677 | as_fn_error 77 "C compiler cannot create executables |
3678 | See \`config.log' for more details" "$LINENO" 5; } | |
3679 | else | |
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3681 | $as_echo "yes" >&6; } | |
0824d924 | 3682 | fi |
22e05272 JM |
3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3684 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3686 | $as_echo "$ac_file" >&6; } | |
0824d924 KT |
3687 | ac_exeext=$ac_cv_exeext |
3688 | ||
22e05272 | 3689 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
0824d924 | 3690 | ac_clean_files=$ac_clean_files_save |
0824d924 KT |
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
3692 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3693 | if { { ac_try="$ac_link" | |
3694 | case "(($ac_try" in | |
3695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3696 | *) ac_try_echo=$ac_try;; | |
a2a5609b | 3697 | esac |
0824d924 KT |
3698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3699 | $as_echo "$ac_try_echo"; } >&5 | |
3700 | (eval "$ac_link") 2>&5 | |
3701 | ac_status=$? | |
3702 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3703 | test $ac_status = 0; }; then : | |
3704 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3705 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3706 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3707 | # `rm'. | |
3708 | for ac_file in conftest.exe conftest conftest.*; do | |
3709 | test -f "$ac_file" || continue | |
3710 | case $ac_file in | |
3711 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3712 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3713 | break;; | |
3714 | * ) break;; | |
3715 | esac | |
3716 | done | |
3717 | else | |
3718 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3719 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3720 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3721 | See \`config.log' for more details" "$LINENO" 5; } | |
fa958513 | 3722 | fi |
22e05272 | 3723 | rm -f conftest conftest$ac_cv_exeext |
0824d924 KT |
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3725 | $as_echo "$ac_cv_exeext" >&6; } | |
fa958513 | 3726 | |
0824d924 KT |
3727 | rm -f conftest.$ac_ext |
3728 | EXEEXT=$ac_cv_exeext | |
3729 | ac_exeext=$EXEEXT | |
22e05272 JM |
3730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3731 | /* end confdefs.h. */ | |
3732 | #include <stdio.h> | |
3733 | int | |
3734 | main () | |
3735 | { | |
3736 | FILE *f = fopen ("conftest.out", "w"); | |
3737 | return ferror (f) || fclose (f) != 0; | |
3738 | ||
3739 | ; | |
3740 | return 0; | |
3741 | } | |
3742 | _ACEOF | |
3743 | ac_clean_files="$ac_clean_files conftest.out" | |
3744 | # Check that the compiler produces executables we can run. If not, either | |
3745 | # the compiler is broken, or we cross compile. | |
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3747 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3748 | if test "$cross_compiling" != yes; then | |
3749 | { { ac_try="$ac_link" | |
3750 | case "(($ac_try" in | |
3751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3752 | *) ac_try_echo=$ac_try;; | |
3753 | esac | |
3754 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3755 | $as_echo "$ac_try_echo"; } >&5 | |
3756 | (eval "$ac_link") 2>&5 | |
3757 | ac_status=$? | |
3758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3759 | test $ac_status = 0; } | |
3760 | if { ac_try='./conftest$ac_cv_exeext' | |
3761 | { { case "(($ac_try" in | |
3762 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3763 | *) ac_try_echo=$ac_try;; | |
3764 | esac | |
3765 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3766 | $as_echo "$ac_try_echo"; } >&5 | |
3767 | (eval "$ac_try") 2>&5 | |
3768 | ac_status=$? | |
3769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3770 | test $ac_status = 0; }; }; then | |
3771 | cross_compiling=no | |
3772 | else | |
3773 | if test "$cross_compiling" = maybe; then | |
3774 | cross_compiling=yes | |
3775 | else | |
3776 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3777 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3778 | as_fn_error $? "cannot run C compiled programs. | |
3779 | If you meant to cross compile, use \`--host'. | |
3780 | See \`config.log' for more details" "$LINENO" 5; } | |
3781 | fi | |
3782 | fi | |
3783 | fi | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3785 | $as_echo "$cross_compiling" >&6; } | |
3786 | ||
3787 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3788 | ac_clean_files=$ac_clean_files_save | |
fa958513 | 3789 | fi |
0824d924 KT |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3791 | $as_echo_n "checking for suffix of object files... " >&6; } | |
22e05272 | 3792 | if ${ac_cv_objext+:} false; then : |
0824d924 KT |
3793 | $as_echo_n "(cached) " >&6 |
3794 | else | |
3795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3796 | /* end confdefs.h. */ | |
fa958513 | 3797 | |
0824d924 KT |
3798 | int |
3799 | main () | |
3800 | { | |
fa958513 | 3801 | |
0824d924 KT |
3802 | ; |
3803 | return 0; | |
3804 | } | |
3805 | _ACEOF | |
3806 | rm -f conftest.o conftest.obj | |
3807 | if { { ac_try="$ac_compile" | |
5213506e RW |
3808 | case "(($ac_try" in |
3809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3810 | *) ac_try_echo=$ac_try;; | |
3811 | esac | |
3812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3813 | $as_echo "$ac_try_echo"; } >&5 | |
0824d924 | 3814 | (eval "$ac_compile") 2>&5 |
fa958513 | 3815 | ac_status=$? |
5213506e | 3816 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
0824d924 KT |
3817 | test $ac_status = 0; }; then : |
3818 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3819 | test -f "$ac_file" || continue; | |
3820 | case $ac_file in | |
3821 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3822 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3823 | break;; | |
3824 | esac | |
fa958513 | 3825 | done |
0824d924 KT |
3826 | else |
3827 | $as_echo "$as_me: failed program was:" >&5 | |
3828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fa958513 | 3829 | |
0824d924 KT |
3830 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3831 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
3832 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3833 | See \`config.log' for more details" "$LINENO" 5; } | |
0824d924 KT |
3834 | fi |
3835 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3836 | fi | |
3837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3838 | $as_echo "$ac_cv_objext" >&6; } | |
3839 | OBJEXT=$ac_cv_objext | |
3840 | ac_objext=$OBJEXT | |
5213506e RW |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3842 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
22e05272 | 3843 | if ${ac_cv_c_compiler_gnu+:} false; then : |
5213506e | 3844 | $as_echo_n "(cached) " >&6 |
fa958513 | 3845 | else |
5213506e | 3846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3847 | /* end confdefs.h. */ |
3848 | ||
3849 | int | |
3850 | main () | |
3851 | { | |
3852 | #ifndef __GNUC__ | |
3853 | choke me | |
3854 | #endif | |
3855 | ||
3856 | ; | |
3857 | return 0; | |
3858 | } | |
3859 | _ACEOF | |
5213506e | 3860 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3861 | ac_compiler_gnu=yes |
3862 | else | |
5213506e | 3863 | ac_compiler_gnu=no |
fa958513 | 3864 | fi |
5213506e | 3865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 DJ |
3866 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3867 | ||
3868 | fi | |
5213506e RW |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3870 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3871 | if test $ac_compiler_gnu = yes; then | |
3872 | GCC=yes | |
3873 | else | |
3874 | GCC= | |
3875 | fi | |
fa958513 DJ |
3876 | ac_test_CFLAGS=${CFLAGS+set} |
3877 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3879 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
22e05272 | 3880 | if ${ac_cv_prog_cc_g+:} false; then : |
5213506e RW |
3881 | $as_echo_n "(cached) " >&6 |
3882 | else | |
3883 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3884 | ac_c_werror_flag=yes | |
3885 | ac_cv_prog_cc_g=no | |
3886 | CFLAGS="-g" | |
3887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fa958513 DJ |
3888 | /* end confdefs.h. */ |
3889 | ||
3890 | int | |
3891 | main () | |
3892 | { | |
3893 | ||
3894 | ; | |
3895 | return 0; | |
3896 | } | |
3897 | _ACEOF | |
5213506e | 3898 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3899 | ac_cv_prog_cc_g=yes |
3900 | else | |
5213506e RW |
3901 | CFLAGS="" |
3902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3903 | /* end confdefs.h. */ | |
3904 | ||
3905 | int | |
3906 | main () | |
3907 | { | |
3908 | ||
3909 | ; | |
3910 | return 0; | |
3911 | } | |
3912 | _ACEOF | |
3913 | if ac_fn_c_try_compile "$LINENO"; then : | |
3914 | ||
3915 | else | |
3916 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3917 | CFLAGS="-g" | |
3918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3919 | /* end confdefs.h. */ | |
3920 | ||
3921 | int | |
3922 | main () | |
3923 | { | |
fa958513 | 3924 | |
5213506e RW |
3925 | ; |
3926 | return 0; | |
3927 | } | |
3928 | _ACEOF | |
3929 | if ac_fn_c_try_compile "$LINENO"; then : | |
3930 | ac_cv_prog_cc_g=yes | |
3931 | fi | |
3932 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fa958513 | 3933 | fi |
5213506e | 3934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 | 3935 | fi |
5213506e RW |
3936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3937 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3938 | fi | |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3940 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
fa958513 DJ |
3941 | if test "$ac_test_CFLAGS" = set; then |
3942 | CFLAGS=$ac_save_CFLAGS | |
3943 | elif test $ac_cv_prog_cc_g = yes; then | |
3944 | if test "$GCC" = yes; then | |
3945 | CFLAGS="-g -O2" | |
3946 | else | |
3947 | CFLAGS="-g" | |
3948 | fi | |
3949 | else | |
3950 | if test "$GCC" = yes; then | |
3951 | CFLAGS="-O2" | |
3952 | else | |
3953 | CFLAGS= | |
3954 | fi | |
3955 | fi | |
5213506e RW |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3957 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
22e05272 | 3958 | if ${ac_cv_prog_cc_c89+:} false; then : |
5213506e | 3959 | $as_echo_n "(cached) " >&6 |
fa958513 | 3960 | else |
5213506e | 3961 | ac_cv_prog_cc_c89=no |
fa958513 | 3962 | ac_save_CC=$CC |
5213506e | 3963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3964 | /* end confdefs.h. */ |
3965 | #include <stdarg.h> | |
3966 | #include <stdio.h> | |
22e05272 | 3967 | struct stat; |
fa958513 DJ |
3968 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3969 | struct buf { int x; }; | |
3970 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3971 | static char *e (p, i) | |
3972 | char **p; | |
3973 | int i; | |
3974 | { | |
3975 | return p[i]; | |
3976 | } | |
3977 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3978 | { | |
3979 | char *s; | |
3980 | va_list v; | |
3981 | va_start (v,p); | |
3982 | s = g (p, va_arg (v,int)); | |
3983 | va_end (v); | |
3984 | return s; | |
3985 | } | |
3986 | ||
3987 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3988 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3989 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 3990 | as 'x'. The following induces an error, until -std is added to get |
fa958513 DJ |
3991 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3992 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 3993 | that's true only with -std. */ |
fa958513 DJ |
3994 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3995 | ||
5213506e RW |
3996 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3997 | inside strings and character constants. */ | |
3998 | #define FOO(x) 'x' | |
3999 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4000 | ||
fa958513 DJ |
4001 | int test (int i, double x); |
4002 | struct s1 {int (*f) (int a);}; | |
4003 | struct s2 {int (*f) (double a);}; | |
4004 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4005 | int argc; | |
4006 | char **argv; | |
4007 | int | |
4008 | main () | |
4009 | { | |
4010 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4011 | ; | |
4012 | return 0; | |
4013 | } | |
4014 | _ACEOF | |
5213506e RW |
4015 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4016 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
fa958513 DJ |
4017 | do |
4018 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4019 | if ac_fn_c_try_compile "$LINENO"; then : |
4020 | ac_cv_prog_cc_c89=$ac_arg | |
fa958513 | 4021 | fi |
5213506e RW |
4022 | rm -f core conftest.err conftest.$ac_objext |
4023 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
fa958513 | 4024 | done |
5213506e | 4025 | rm -f conftest.$ac_ext |
fa958513 DJ |
4026 | CC=$ac_save_CC |
4027 | ||
4028 | fi | |
5213506e RW |
4029 | # AC_CACHE_VAL |
4030 | case "x$ac_cv_prog_cc_c89" in | |
4031 | x) | |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4033 | $as_echo "none needed" >&6; } ;; | |
4034 | xno) | |
4035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4036 | $as_echo "unsupported" >&6; } ;; | |
fa958513 | 4037 | *) |
5213506e RW |
4038 | CC="$CC $ac_cv_prog_cc_c89" |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4040 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
fa958513 | 4041 | esac |
5213506e | 4042 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
fa958513 | 4043 | |
d6efbf5a | 4044 | fi |
d6efbf5a | 4045 | |
fa958513 DJ |
4046 | ac_ext=c |
4047 | ac_cpp='$CPP $CPPFLAGS' | |
4048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4051 | ||
0824d924 KT |
4052 | ac_ext=c |
4053 | ac_cpp='$CPP $CPPFLAGS' | |
4054 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4055 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4056 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
4058 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
4059 | # On Suns, sometimes $CPP names a directory. | |
4060 | if test -n "$CPP" && test -d "$CPP"; then | |
4061 | CPP= | |
4062 | fi | |
4063 | if test -z "$CPP"; then | |
22e05272 | 4064 | if ${ac_cv_prog_CPP+:} false; then : |
0824d924 KT |
4065 | $as_echo_n "(cached) " >&6 |
4066 | else | |
4067 | # Double quotes because CPP needs to be expanded | |
4068 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4069 | do | |
4070 | ac_preproc_ok=false | |
4071 | for ac_c_preproc_warn_flag in '' yes | |
4072 | do | |
4073 | # Use a header file that comes with gcc, so configuring glibc | |
4074 | # with a fresh cross-compiler works. | |
4075 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4076 | # <limits.h> exists even on freestanding compilers. | |
4077 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4078 | # not just through cpp. "Syntax error" is here to catch this case. | |
4079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4080 | /* end confdefs.h. */ | |
4081 | #ifdef __STDC__ | |
4082 | # include <limits.h> | |
4083 | #else | |
4084 | # include <assert.h> | |
4085 | #endif | |
4086 | Syntax error | |
4087 | _ACEOF | |
4088 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4089 | ||
4090 | else | |
4091 | # Broken: fails on valid input. | |
4092 | continue | |
4093 | fi | |
22e05272 | 4094 | rm -f conftest.err conftest.i conftest.$ac_ext |
0824d924 KT |
4095 | |
4096 | # OK, works on sane cases. Now check whether nonexistent headers | |
4097 | # can be detected and how. | |
4098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4099 | /* end confdefs.h. */ | |
4100 | #include <ac_nonexistent.h> | |
4101 | _ACEOF | |
4102 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4103 | # Broken: success on invalid input. | |
4104 | continue | |
4105 | else | |
4106 | # Passes both tests. | |
4107 | ac_preproc_ok=: | |
4108 | break | |
4109 | fi | |
22e05272 | 4110 | rm -f conftest.err conftest.i conftest.$ac_ext |
0824d924 KT |
4111 | |
4112 | done | |
4113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4114 | rm -f conftest.i conftest.err conftest.$ac_ext |
0824d924 KT |
4115 | if $ac_preproc_ok; then : |
4116 | break | |
4117 | fi | |
4118 | ||
4119 | done | |
4120 | ac_cv_prog_CPP=$CPP | |
4121 | ||
4122 | fi | |
4123 | CPP=$ac_cv_prog_CPP | |
4124 | else | |
4125 | ac_cv_prog_CPP=$CPP | |
4126 | fi | |
4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
4128 | $as_echo "$CPP" >&6; } | |
4129 | ac_preproc_ok=false | |
4130 | for ac_c_preproc_warn_flag in '' yes | |
4131 | do | |
4132 | # Use a header file that comes with gcc, so configuring glibc | |
4133 | # with a fresh cross-compiler works. | |
4134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4135 | # <limits.h> exists even on freestanding compilers. | |
4136 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4137 | # not just through cpp. "Syntax error" is here to catch this case. | |
4138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4139 | /* end confdefs.h. */ | |
4140 | #ifdef __STDC__ | |
4141 | # include <limits.h> | |
4142 | #else | |
4143 | # include <assert.h> | |
4144 | #endif | |
4145 | Syntax error | |
4146 | _ACEOF | |
4147 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4148 | ||
4149 | else | |
4150 | # Broken: fails on valid input. | |
4151 | continue | |
4152 | fi | |
22e05272 | 4153 | rm -f conftest.err conftest.i conftest.$ac_ext |
0824d924 KT |
4154 | |
4155 | # OK, works on sane cases. Now check whether nonexistent headers | |
4156 | # can be detected and how. | |
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4158 | /* end confdefs.h. */ | |
4159 | #include <ac_nonexistent.h> | |
4160 | _ACEOF | |
4161 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4162 | # Broken: success on invalid input. | |
4163 | continue | |
4164 | else | |
4165 | # Passes both tests. | |
4166 | ac_preproc_ok=: | |
4167 | break | |
4168 | fi | |
22e05272 | 4169 | rm -f conftest.err conftest.i conftest.$ac_ext |
0824d924 KT |
4170 | |
4171 | done | |
4172 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22e05272 | 4173 | rm -f conftest.i conftest.err conftest.$ac_ext |
0824d924 KT |
4174 | if $ac_preproc_ok; then : |
4175 | ||
4176 | else | |
4177 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4178 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4179 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4180 | See \`config.log' for more details" "$LINENO" 5; } | |
0824d924 KT |
4181 | fi |
4182 | ||
4183 | ac_ext=c | |
4184 | ac_cpp='$CPP $CPPFLAGS' | |
4185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4188 | ||
fa958513 DJ |
4189 | |
4190 | ac_c_preproc_warn_flag=yes | |
4191 | ||
0824d924 | 4192 | |
a51a76e5 RB |
4193 | # Check whether --enable-largefile was given. |
4194 | if test "${enable_largefile+set}" = set; then : | |
4195 | enableval=$enable_largefile; | |
4196 | fi | |
4197 | ||
4198 | if test "$enable_largefile" != no; then | |
4199 | ||
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
4201 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
22e05272 | 4202 | if ${ac_cv_sys_largefile_CC+:} false; then : |
a51a76e5 RB |
4203 | $as_echo_n "(cached) " >&6 |
4204 | else | |
4205 | ac_cv_sys_largefile_CC=no | |
4206 | if test "$GCC" != yes; then | |
4207 | ac_save_CC=$CC | |
4208 | while :; do | |
4209 | # IRIX 6.2 and later do not support large files by default, | |
4210 | # so use the C compiler's -n32 option if that helps. | |
4211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4212 | /* end confdefs.h. */ | |
4213 | #include <sys/types.h> | |
4214 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4215 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4216 | since some C++ compilers masquerading as C compilers | |
4217 | incorrectly reject 9223372036854775807. */ | |
9e46fd07 | 4218 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
a51a76e5 RB |
4219 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4220 | && LARGE_OFF_T % 2147483647 == 1) | |
4221 | ? 1 : -1]; | |
4222 | int | |
4223 | main () | |
4224 | { | |
4225 | ||
4226 | ; | |
4227 | return 0; | |
4228 | } | |
4229 | _ACEOF | |
4230 | if ac_fn_c_try_compile "$LINENO"; then : | |
4231 | break | |
4232 | fi | |
4233 | rm -f core conftest.err conftest.$ac_objext | |
4234 | CC="$CC -n32" | |
4235 | if ac_fn_c_try_compile "$LINENO"; then : | |
4236 | ac_cv_sys_largefile_CC=' -n32'; break | |
4237 | fi | |
4238 | rm -f core conftest.err conftest.$ac_objext | |
4239 | break | |
4240 | done | |
4241 | CC=$ac_save_CC | |
4242 | rm -f conftest.$ac_ext | |
4243 | fi | |
4244 | fi | |
4245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
4246 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
4247 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4248 | CC=$CC$ac_cv_sys_largefile_CC | |
4249 | fi | |
4250 | ||
4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4252 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
22e05272 | 4253 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
a51a76e5 RB |
4254 | $as_echo_n "(cached) " >&6 |
4255 | else | |
4256 | while :; do | |
4257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4258 | /* end confdefs.h. */ | |
4259 | #include <sys/types.h> | |
4260 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4261 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4262 | since some C++ compilers masquerading as C compilers | |
4263 | incorrectly reject 9223372036854775807. */ | |
9e46fd07 | 4264 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
a51a76e5 RB |
4265 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4266 | && LARGE_OFF_T % 2147483647 == 1) | |
4267 | ? 1 : -1]; | |
4268 | int | |
4269 | main () | |
4270 | { | |
4271 | ||
4272 | ; | |
4273 | return 0; | |
4274 | } | |
4275 | _ACEOF | |
4276 | if ac_fn_c_try_compile "$LINENO"; then : | |
4277 | ac_cv_sys_file_offset_bits=no; break | |
4278 | fi | |
4279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4281 | /* end confdefs.h. */ | |
4282 | #define _FILE_OFFSET_BITS 64 | |
4283 | #include <sys/types.h> | |
4284 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4285 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4286 | since some C++ compilers masquerading as C compilers | |
4287 | incorrectly reject 9223372036854775807. */ | |
9e46fd07 | 4288 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
a51a76e5 RB |
4289 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4290 | && LARGE_OFF_T % 2147483647 == 1) | |
4291 | ? 1 : -1]; | |
4292 | int | |
4293 | main () | |
4294 | { | |
4295 | ||
4296 | ; | |
4297 | return 0; | |
4298 | } | |
4299 | _ACEOF | |
4300 | if ac_fn_c_try_compile "$LINENO"; then : | |
4301 | ac_cv_sys_file_offset_bits=64; break | |
4302 | fi | |
4303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4304 | ac_cv_sys_file_offset_bits=unknown | |
4305 | break | |
4306 | done | |
4307 | fi | |
4308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
4309 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
4310 | case $ac_cv_sys_file_offset_bits in #( | |
4311 | no | unknown) ;; | |
4312 | *) | |
4313 | cat >>confdefs.h <<_ACEOF | |
4314 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4315 | _ACEOF | |
4316 | ;; | |
4317 | esac | |
4318 | rm -rf conftest* | |
4319 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
4321 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
22e05272 | 4322 | if ${ac_cv_sys_large_files+:} false; then : |
a51a76e5 RB |
4323 | $as_echo_n "(cached) " >&6 |
4324 | else | |
4325 | while :; do | |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4327 | /* end confdefs.h. */ | |
4328 | #include <sys/types.h> | |
4329 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4330 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4331 | since some C++ compilers masquerading as C compilers | |
4332 | incorrectly reject 9223372036854775807. */ | |
9e46fd07 | 4333 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
a51a76e5 RB |
4334 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4335 | && LARGE_OFF_T % 2147483647 == 1) | |
4336 | ? 1 : -1]; | |
4337 | int | |
4338 | main () | |
4339 | { | |
4340 | ||
4341 | ; | |
4342 | return 0; | |
4343 | } | |
4344 | _ACEOF | |
4345 | if ac_fn_c_try_compile "$LINENO"; then : | |
4346 | ac_cv_sys_large_files=no; break | |
4347 | fi | |
4348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4350 | /* end confdefs.h. */ | |
4351 | #define _LARGE_FILES 1 | |
4352 | #include <sys/types.h> | |
4353 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4354 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4355 | since some C++ compilers masquerading as C compilers | |
4356 | incorrectly reject 9223372036854775807. */ | |
9e46fd07 | 4357 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
a51a76e5 RB |
4358 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
4359 | && LARGE_OFF_T % 2147483647 == 1) | |
4360 | ? 1 : -1]; | |
4361 | int | |
4362 | main () | |
4363 | { | |
4364 | ||
4365 | ; | |
4366 | return 0; | |
4367 | } | |
4368 | _ACEOF | |
4369 | if ac_fn_c_try_compile "$LINENO"; then : | |
4370 | ac_cv_sys_large_files=1; break | |
4371 | fi | |
4372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4373 | ac_cv_sys_large_files=unknown | |
4374 | break | |
4375 | done | |
4376 | fi | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
4378 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
4379 | case $ac_cv_sys_large_files in #( | |
4380 | no | unknown) ;; | |
4381 | *) | |
4382 | cat >>confdefs.h <<_ACEOF | |
4383 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4384 | _ACEOF | |
4385 | ;; | |
4386 | esac | |
4387 | rm -rf conftest* | |
4388 | fi | |
22e05272 JM |
4389 | |
4390 | ||
a51a76e5 RB |
4391 | fi |
4392 | ||
4393 | ||
0824d924 | 4394 | |
569dc494 RO |
4395 | # The cast to long int works around a bug in the HP C Compiler |
4396 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4397 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4398 | # This bug is HP SR number 8606223364. | |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 | |
4400 | $as_echo_n "checking size of double... " >&6; } | |
22e05272 | 4401 | if ${ac_cv_sizeof_double+:} false; then : |
569dc494 RO |
4402 | $as_echo_n "(cached) " >&6 |
4403 | else | |
4404 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : | |
4405 | ||
4406 | else | |
4407 | if test "$ac_cv_type_double" = yes; then | |
4408 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4409 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4410 | as_fn_error 77 "cannot compute sizeof (double) |
4411 | See \`config.log' for more details" "$LINENO" 5; } | |
569dc494 RO |
4412 | else |
4413 | ac_cv_sizeof_double=0 | |
4414 | fi | |
4415 | fi | |
4416 | ||
4417 | fi | |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 | |
4419 | $as_echo "$ac_cv_sizeof_double" >&6; } | |
4420 | ||
4421 | ||
4422 | ||
4423 | cat >>confdefs.h <<_ACEOF | |
4424 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | |
4425 | _ACEOF | |
4426 | ||
4427 | ||
4428 | # The cast to long int works around a bug in the HP C Compiler | |
4429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
4430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
4431 | # This bug is HP SR number 8606223364. | |
4432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 | |
4433 | $as_echo_n "checking size of long double... " >&6; } | |
22e05272 | 4434 | if ${ac_cv_sizeof_long_double+:} false; then : |
569dc494 RO |
4435 | $as_echo_n "(cached) " >&6 |
4436 | else | |
4437 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : | |
4438 | ||
4439 | else | |
4440 | if test "$ac_cv_type_long_double" = yes; then | |
4441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22e05272 JM |
4443 | as_fn_error 77 "cannot compute sizeof (long double) |
4444 | See \`config.log' for more details" "$LINENO" 5; } | |
569dc494 RO |
4445 | else |
4446 | ac_cv_sizeof_long_double=0 | |
4447 | fi | |
4448 | fi | |
4449 | ||
4450 | fi | |
4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 | |
4452 | $as_echo "$ac_cv_sizeof_long_double" >&6; } | |
4453 | ||
4454 | ||
4455 | ||
4456 | cat >>confdefs.h <<_ACEOF | |
4457 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double | |
4458 | _ACEOF | |
4459 | ||
4460 | ||
4461 | as_fn_arith $ac_cv_sizeof_double \* 8 && double_type_size=$as_val | |
4462 | as_fn_arith $ac_cv_sizeof_long_double \* 8 && long_double_type_size=$as_val | |
4463 | ||
4464 | ||
4465 | ||
0e4a0def KT |
4466 | |
4467 | for ac_header in inttypes.h stdint.h stdlib.h ftw.h \ | |
4468 | unistd.h sys/stat.h sys/types.h \ | |
00d79dc4 | 4469 | string.h strings.h memory.h sys/auxv.h sys/mman.h |
0e4a0def KT |
4470 | do : |
4471 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4472 | ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header" | |
22e05272 | 4473 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
0e4a0def KT |
4474 | cat >>confdefs.h <<_ACEOF |
4475 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4476 | _ACEOF | |
4477 | ||
4478 | fi | |
4479 | done | |
4480 | ||
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4482 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
22e05272 | 4483 | if ${ac_cv_path_GREP+:} false; then : |
0e4a0def KT |
4484 | $as_echo_n "(cached) " >&6 |
4485 | else | |
4486 | if test -z "$GREP"; then | |
4487 | ac_path_GREP_found=false | |
4488 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4490 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4491 | do | |
4492 | IFS=$as_save_IFS | |
4493 | test -z "$as_dir" && as_dir=. | |
4494 | for ac_prog in grep ggrep; do | |
4495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4496 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 4497 | as_fn_executable_p "$ac_path_GREP" || continue |
0e4a0def KT |
4498 | # Check for GNU ac_path_GREP and select it if it is found. |
4499 | # Check for GNU $ac_path_GREP | |
4500 | case `"$ac_path_GREP" --version 2>&1` in | |
4501 | *GNU*) | |
4502 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4503 | *) | |
4504 | ac_count=0 | |
4505 | $as_echo_n 0123456789 >"conftest.in" | |
4506 | while : | |
4507 | do | |
4508 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4509 | mv "conftest.tmp" "conftest.in" | |
4510 | cp "conftest.in" "conftest.nl" | |
4511 | $as_echo 'GREP' >> "conftest.nl" | |
4512 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4513 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4514 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4515 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4516 | # Best one so far, save it but keep looking for a better one | |
4517 | ac_cv_path_GREP="$ac_path_GREP" | |
4518 | ac_path_GREP_max=$ac_count | |
4519 | fi | |
4520 | # 10*(2^10) chars as input seems more than enough | |
4521 | test $ac_count -gt 10 && break | |
4522 | done | |
4523 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4524 | esac | |
4525 | ||
4526 | $ac_path_GREP_found && break 3 | |
4527 | done | |
4528 | done | |
4529 | done | |
4530 | IFS=$as_save_IFS | |
4531 | if test -z "$ac_cv_path_GREP"; then | |
22e05272 | 4532 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0e4a0def KT |
4533 | fi |
4534 | else | |
4535 | ac_cv_path_GREP=$GREP | |
4536 | fi | |
4537 | ||
4538 | fi | |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4540 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4541 | GREP="$ac_cv_path_GREP" | |
4542 | ||
4543 | ||
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4545 | $as_echo_n "checking for egrep... " >&6; } | |
22e05272 | 4546 | if ${ac_cv_path_EGREP+:} false; then : |
0e4a0def KT |
4547 | $as_echo_n "(cached) " >&6 |
4548 | else | |
4549 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4550 | then ac_cv_path_EGREP="$GREP -E" | |
4551 | else | |
4552 | if test -z "$EGREP"; then | |
4553 | ac_path_EGREP_found=false | |
4554 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4556 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4557 | do | |
4558 | IFS=$as_save_IFS | |
4559 | test -z "$as_dir" && as_dir=. | |
4560 | for ac_prog in egrep; do | |
4561 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4562 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
22e05272 | 4563 | as_fn_executable_p "$ac_path_EGREP" || continue |
0e4a0def KT |
4564 | # Check for GNU ac_path_EGREP and select it if it is found. |
4565 | # Check for GNU $ac_path_EGREP | |
4566 | case `"$ac_path_EGREP" --version 2>&1` in | |
4567 | *GNU*) | |
4568 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4569 | *) | |
4570 | ac_count=0 | |
4571 | $as_echo_n 0123456789 >"conftest.in" | |
4572 | while : | |
4573 | do | |
4574 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4575 | mv "conftest.tmp" "conftest.in" | |
4576 | cp "conftest.in" "conftest.nl" | |
4577 | $as_echo 'EGREP' >> "conftest.nl" | |
4578 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4579 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4580 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4581 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4582 | # Best one so far, save it but keep looking for a better one | |
4583 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4584 | ac_path_EGREP_max=$ac_count | |
4585 | fi | |
4586 | # 10*(2^10) chars as input seems more than enough | |
4587 | test $ac_count -gt 10 && break | |
4588 | done | |
4589 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4590 | esac | |
4591 | ||
4592 | $ac_path_EGREP_found && break 3 | |
4593 | done | |
4594 | done | |
4595 | done | |
4596 | IFS=$as_save_IFS | |
4597 | if test -z "$ac_cv_path_EGREP"; then | |
22e05272 | 4598 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
0e4a0def KT |
4599 | fi |
4600 | else | |
4601 | ac_cv_path_EGREP=$EGREP | |
4602 | fi | |
4603 | ||
4604 | fi | |
4605 | fi | |
4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4607 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4608 | EGREP="$ac_cv_path_EGREP" | |
4609 | ||
4610 | ||
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4612 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
22e05272 | 4613 | if ${ac_cv_header_stdc+:} false; then : |
0e4a0def KT |
4614 | $as_echo_n "(cached) " >&6 |
4615 | else | |
4616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4617 | /* end confdefs.h. */ | |
4618 | #include <stdlib.h> | |
4619 | #include <stdarg.h> | |
4620 | #include <string.h> | |
4621 | #include <float.h> | |
4622 | ||
4623 | int | |
4624 | main () | |
4625 | { | |
4626 | ||
4627 | ; | |
4628 | return 0; | |
4629 | } | |
4630 | _ACEOF | |
4631 | if ac_fn_c_try_compile "$LINENO"; then : | |
4632 | ac_cv_header_stdc=yes | |
4633 | else | |
4634 | ac_cv_header_stdc=no | |
4635 | fi | |
4636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4637 | ||
4638 | if test $ac_cv_header_stdc = yes; then | |
4639 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4641 | /* end confdefs.h. */ | |
4642 | #include <string.h> | |
4643 | ||
4644 | _ACEOF | |
4645 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4646 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4647 | ||
4648 | else | |
4649 | ac_cv_header_stdc=no | |
4650 | fi | |
4651 | rm -f conftest* | |
4652 | ||
4653 | fi | |
4654 | ||
4655 | if test $ac_cv_header_stdc = yes; then | |
4656 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4658 | /* end confdefs.h. */ | |
4659 | #include <stdlib.h> | |
4660 | ||
4661 | _ACEOF | |
4662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4663 | $EGREP "free" >/dev/null 2>&1; then : | |
4664 | ||
4665 | else | |
4666 | ac_cv_header_stdc=no | |
4667 | fi | |
4668 | rm -f conftest* | |
4669 | ||
4670 | fi | |
4671 | ||
4672 | if test $ac_cv_header_stdc = yes; then | |
4673 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4674 | if test "$cross_compiling" = yes; then : | |
4675 | : | |
4676 | else | |
4677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4678 | /* end confdefs.h. */ | |
4679 | #include <ctype.h> | |
4680 | #include <stdlib.h> | |
4681 | #if ((' ' & 0x0FF) == 0x020) | |
4682 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4683 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4684 | #else | |
4685 | # define ISLOWER(c) \ | |
4686 | (('a' <= (c) && (c) <= 'i') \ | |
4687 | || ('j' <= (c) && (c) <= 'r') \ | |
4688 | || ('s' <= (c) && (c) <= 'z')) | |
4689 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4690 | #endif | |
4691 | ||
4692 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4693 | int | |
4694 | main () | |
4695 | { | |
4696 | int i; | |
4697 | for (i = 0; i < 256; i++) | |
4698 | if (XOR (islower (i), ISLOWER (i)) | |
4699 | || toupper (i) != TOUPPER (i)) | |
4700 | return 2; | |
4701 | return 0; | |
4702 | } | |
4703 | _ACEOF | |
4704 | if ac_fn_c_try_run "$LINENO"; then : | |
4705 | ||
4706 | else | |
4707 | ac_cv_header_stdc=no | |
4708 | fi | |
4709 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4710 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4711 | fi | |
4712 | ||
4713 | fi | |
4714 | fi | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4716 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4717 | if test $ac_cv_header_stdc = yes; then | |
4718 | ||
4719 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4720 | ||
4721 | fi | |
4722 | ||
4723 | ||
569dc494 | 4724 | # Check for decimal float support. |
5213506e RW |
4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5 |
4726 | $as_echo_n "checking whether decimal floating point is supported... " >&6; } | |
22e05272 | 4727 | if ${libgcc_cv_dfp+:} false; then : |
5213506e | 4728 | $as_echo_n "(cached) " >&6 |
fa958513 | 4729 | else |
5213506e RW |
4730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4731 | /* end confdefs.h. */ | |
ac088ba1 BRF |
4732 | |
4733 | #include <fenv.h> | |
4734 | ||
4735 | int | |
4736 | main () | |
4737 | { | |
4738 | ||
fa958513 | 4739 | _Decimal32 x; |
ac088ba1 BRF |
4740 | int fe_except = |
4741 | FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW|FE_UNDERFLOW|FE_INEXACT; | |
4742 | ||
4743 | ; | |
4744 | return 0; | |
4745 | } | |
fa958513 | 4746 | _ACEOF |
5213506e | 4747 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
4748 | libgcc_cv_dfp=yes |
4749 | else | |
5213506e | 4750 | libgcc_cv_dfp=no |
fa958513 | 4751 | fi |
5213506e | 4752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 | 4753 | fi |
5213506e RW |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5 |
4755 | $as_echo "$libgcc_cv_dfp" >&6; } | |
fa958513 DJ |
4756 | decimal_float=$libgcc_cv_dfp |
4757 | ||
4758 | ||
f4dae9fc | 4759 | |
5213506e RW |
4760 | # Check whether --enable-decimal-float was given. |
4761 | if test "${enable_decimal_float+set}" = set; then : | |
4762 | enableval=$enable_decimal_float; | |
79b87c74 | 4763 | case $enable_decimal_float in |
cc0ae0ca | 4764 | yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;; |
22e05272 | 4765 | *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float. |
5213506e | 4766 | Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; |
79b87c74 MM |
4767 | esac |
4768 | ||
4769 | else | |
4770 | ||
96fccd0d | 4771 | case $host in |
afd82c10 | 4772 | aarch64* | \ |
996b42ef | 4773 | powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ |
1c1d2d8c | 4774 | i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ |
b93cf342 | 4775 | i?86*-*-mingw* | x86_64*-*-mingw* | \ |
e9fd8c19 | 4776 | i?86*-*-cygwin* | x86_64*-*-cygwin*) |
79b87c74 MM |
4777 | enable_decimal_float=yes |
4778 | ;; | |
4779 | *) | |
84f47d20 AS |
4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5 |
4781 | $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;} | |
79b87c74 MM |
4782 | enable_decimal_float=no |
4783 | ;; | |
4784 | esac | |
4785 | ||
5213506e RW |
4786 | fi |
4787 | ||
79b87c74 MM |
4788 | |
4789 | # x86's use BID format instead of DPD | |
f4dae9fc AK |
4790 | case x$enable_decimal_float in |
4791 | xyes) | |
4792 | case $host in | |
afd82c10 | 4793 | aarch64* | i?86*-*-* | x86_64*-*-*) |
f4dae9fc AK |
4794 | enable_decimal_float=bid |
4795 | ;; | |
4796 | *) | |
4797 | enable_decimal_float=dpd | |
4798 | ;; | |
4799 | esac | |
cc0ae0ca | 4800 | default_decimal_float=$enable_decimal_float |
f4dae9fc AK |
4801 | ;; |
4802 | xno) | |
4803 | # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper | |
4804 | # dependency on libdecnumber. | |
cc0ae0ca | 4805 | default_decimal_float=dpd |
f4dae9fc AK |
4806 | ;; |
4807 | esac | |
4808 | ||
4809 | ||
79b87c74 MM |
4810 | |
4811 | ||
8d2a9e0e | 4812 | # Check for fixed-point support. |
5213506e RW |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5 |
4814 | $as_echo_n "checking whether fixed-point is supported... " >&6; } | |
22e05272 | 4815 | if ${libgcc_cv_fixed_point+:} false; then : |
5213506e | 4816 | $as_echo_n "(cached) " >&6 |
8d2a9e0e | 4817 | else |
5213506e RW |
4818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4819 | /* end confdefs.h. */ | |
8d2a9e0e CF |
4820 | _Sat _Fract x; |
4821 | _ACEOF | |
5213506e | 4822 | if ac_fn_c_try_compile "$LINENO"; then : |
8d2a9e0e CF |
4823 | libgcc_cv_fixed_point=yes |
4824 | else | |
5213506e | 4825 | libgcc_cv_fixed_point=no |
8d2a9e0e | 4826 | fi |
5213506e | 4827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d2a9e0e | 4828 | fi |
5213506e RW |
4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5 |
4830 | $as_echo "$libgcc_cv_fixed_point" >&6; } | |
8d2a9e0e CF |
4831 | fixed_point=$libgcc_cv_fixed_point |
4832 | ||
4833 | ||
201cdb74 RO |
4834 | # For platforms with the unwind ABI which includes an unwind library, |
4835 | # libunwind, we can choose to use the system libunwind. | |
4836 | # config.gcc also contains tests of with_system_libunwind. | |
4837 | ||
4838 | ||
4839 | # Check whether --with-system-libunwind was given. | |
4840 | if test "${with_system_libunwind+set}" = set; then : | |
4841 | withval=$with_system_libunwind; | |
4842 | fi | |
4843 | ||
4844 | # If system-libunwind was not specifically set, pick a default setting. | |
4845 | if test x$with_system_libunwind = x; then | |
4846 | case ${target} in | |
4847 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
4848 | *) with_system_libunwind=no ;; | |
4849 | esac | |
4850 | fi | |
4851 | # Based on system-libunwind and target, do we have ipinfo? | |
4852 | if test x$with_system_libunwind = xyes; then | |
4853 | case ${target} in | |
4854 | ia64-*-*) have_unwind_getipinfo=no ;; | |
4855 | *) have_unwind_getipinfo=yes ;; | |
4856 | esac | |
4857 | else | |
4858 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
4859 | ||
4860 | case ${target} in | |
4861 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
4862 | *) have_unwind_getipinfo=yes ;; | |
4863 | esac | |
4864 | ||
4865 | fi | |
4866 | ||
4867 | if test x$have_unwind_getipinfo = xyes; then | |
4868 | ||
4869 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
4870 | ||
4871 | fi | |
4872 | ||
4873 | ||
9b92a9f3 EB |
4874 | # Check if the compiler is configured for setjmp/longjmp exceptions. |
4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5 | |
4876 | $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; } | |
22e05272 | 4877 | if ${ac_cv_sjlj_exceptions+:} false; then : |
b040f2be RO |
4878 | $as_echo_n "(cached) " >&6 |
4879 | else | |
4880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4881 | /* end confdefs.h. */ | |
9b92a9f3 EB |
4882 | #ifdef __USING_SJLJ_EXCEPTIONS__ |
4883 | this will fail | |
4884 | #endif | |
4885 | int | |
4886 | main () | |
b040f2be | 4887 | { |
9b92a9f3 EB |
4888 | int i; |
4889 | ; | |
4890 | return 0; | |
b040f2be | 4891 | } |
b040f2be | 4892 | _ACEOF |
9b92a9f3 EB |
4893 | if ac_fn_c_try_compile "$LINENO"; then : |
4894 | ac_cv_sjlj_exceptions=no | |
4895 | else | |
4896 | ac_cv_sjlj_exceptions=yes | |
b040f2be | 4897 | fi |
9b92a9f3 | 4898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b040f2be | 4899 | fi |
9b92a9f3 EB |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5 |
4901 | $as_echo "$ac_cv_sjlj_exceptions" >&6; } | |
b040f2be | 4902 | |
1ecae1fc IT |
4903 | # Check whether --enable-cet was given. |
4904 | if test "${enable_cet+set}" = set; then : | |
4905 | enableval=$enable_cet; | |
4906 | case "$enableval" in | |
a0e1df88 | 4907 | yes|no|auto) ;; |
22e05272 | 4908 | *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; |
1ecae1fc IT |
4909 | esac |
4910 | ||
4911 | else | |
8d286dd1 | 4912 | enable_cet=auto |
1ecae1fc IT |
4913 | fi |
4914 | ||
4915 | ||
14e335ed IT |
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 |
4917 | $as_echo_n "checking for CET support... " >&6; } | |
4918 | ||
9051b548 | 4919 | # NB: Avoid nested save_CFLAGS and save_LDFLAGS. |
1ecae1fc IT |
4920 | case "$host" in |
4921 | i[34567]86-*-linux* | x86_64-*-linux*) | |
4922 | case "$enable_cet" in | |
a0e1df88 | 4923 | auto) |
14e335ed | 4924 | # Check if target supports multi-byte NOPs |
00d79dc4 | 4925 | # and if compiler and assembler support CET insn. |
9051b548 | 4926 | cet_save_CFLAGS="$CFLAGS" |
4c1a5d8b | 4927 | CFLAGS="$CFLAGS -fcf-protection" |
1ecae1fc IT |
4928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4929 | /* end confdefs.h. */ | |
4930 | ||
4931 | int | |
4932 | main () | |
4933 | { | |
14e335ed IT |
4934 | |
4935 | #if !defined(__SSE2__) | |
4936 | #error target does not support multi-byte NOPs | |
4937 | #else | |
1ecae1fc | 4938 | asm ("setssbsy"); |
14e335ed IT |
4939 | #endif |
4940 | ||
1ecae1fc IT |
4941 | ; |
4942 | return 0; | |
4943 | } | |
4944 | _ACEOF | |
4945 | if ac_fn_c_try_compile "$LINENO"; then : | |
4946 | enable_cet=yes | |
4947 | else | |
4948 | enable_cet=no | |
4949 | fi | |
4950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9051b548 | 4951 | CFLAGS="$cet_save_CFLAGS" |
1ecae1fc IT |
4952 | ;; |
4953 | yes) | |
4954 | # Check if assembler supports CET. | |
4955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4956 | /* end confdefs.h. */ | |
4957 | ||
4958 | int | |
4959 | main () | |
4960 | { | |
4961 | asm ("setssbsy"); | |
4962 | ; | |
4963 | return 0; | |
4964 | } | |
4965 | _ACEOF | |
4966 | if ac_fn_c_try_compile "$LINENO"; then : | |
4967 | ||
4968 | else | |
22e05272 | 4969 | as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 |
1ecae1fc IT |
4970 | fi |
4971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4972 | ;; | |
4973 | esac | |
4974 | ;; | |
4975 | *) | |
4976 | enable_cet=no | |
4977 | ;; | |
4978 | esac | |
4979 | if test x$enable_cet = xyes; then | |
7b47ecf2 | 4980 | CET_FLAGS="-fcf-protection -mshstk" |
14e335ed IT |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4982 | $as_echo "yes" >&6; } | |
4983 | else | |
4984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4985 | $as_echo "no" >&6; } | |
1ecae1fc IT |
4986 | fi |
4987 | ||
4988 | ||
4989 | ||
598a1586 HPN |
4990 | # Check whether --enable-explicit-exception-frame-registration was given. |
4991 | if test "${enable_explicit_exception_frame_registration+set}" = set; then : | |
4992 | enableval=$enable_explicit_exception_frame_registration; | |
4993 | force_explicit_eh_registry= | |
4994 | if test "$enable_explicit_exception_frame_registration" = yes; then | |
9b92a9f3 | 4995 | if test $ac_cv_sjlj_exceptions = yes; then |
22e05272 | 4996 | as_fn_error $? "Can't --enable-explicit-exception-frame-registration |
9b92a9f3 | 4997 | with setjmp/longjmp exceptions" "$LINENO" 5 |
598a1586 HPN |
4998 | fi |
4999 | force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS | |
5000 | fi | |
5001 | ||
5002 | fi | |
5003 | ||
5004 | ||
5005 | ||
5a460280 ID |
5006 | # Check whether --enable-tm-clone-registry was given. |
5007 | if test "${enable_tm_clone_registry+set}" = set; then : | |
5008 | enableval=$enable_tm_clone_registry; | |
5009 | use_tm_clone_registry= | |
5010 | if test "$enable_tm_clone_registry" = no; then | |
5011 | use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0 | |
5012 | fi | |
5013 | ||
e8aa9f55 JL |
5014 | else |
5015 | ||
5016 | use_tm_clone_registry= | |
5017 | case $target in | |
5018 | msp430*elfbare) | |
5019 | use_tm_clone_registry=-DUSE_TM_CLONE_REGISTRY=0 | |
5020 | ;; | |
5021 | esac | |
5022 | ||
5a460280 ID |
5023 | fi |
5024 | ||
5025 | ||
5026 | ||
ca24c5ad RO |
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5028 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
22e05272 | 5029 | if ${acl_cv_prog_gnu_ld+:} false; then : |
ca24c5ad RO |
5030 | $as_echo_n "(cached) " >&6 |
5031 | else | |
5032 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1d6c6dc9 | 5033 | if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then |
ca24c5ad RO |
5034 | acl_cv_prog_gnu_ld=yes |
5035 | else | |
5036 | acl_cv_prog_gnu_ld=no | |
5037 | fi | |
5038 | fi | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 | |
5040 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } | |
5041 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5042 | ||
5043 | ||
ee33b5f0 RO |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5 |
5045 | $as_echo_n "checking for thread model used by GCC... " >&6; } | |
5046 | target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5 | |
5048 | $as_echo "$target_thread_file" >&6; } | |
5049 | ||
b6110d6d ILT |
5050 | # Check for assembler CFI support. |
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5 | |
5052 | $as_echo_n "checking whether assembler supports CFI directives... " >&6; } | |
22e05272 | 5053 | if ${libgcc_cv_cfi+:} false; then : |
b6110d6d ILT |
5054 | $as_echo_n "(cached) " >&6 |
5055 | else | |
5056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5057 | /* end confdefs.h. */ | |
6dace308 ILT |
5058 | asm("\n\ |
5059 | .text\n\ | |
5060 | .cfi_startproc\n\ | |
5061 | .cfi_personality 0, symbol\n\ | |
5062 | .cfi_endproc"); | |
b6110d6d ILT |
5063 | _ACEOF |
5064 | if ac_fn_c_try_compile "$LINENO"; then : | |
5065 | libgcc_cv_cfi=yes | |
5066 | else | |
5067 | libgcc_cv_cfi=no | |
5068 | fi | |
5069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5070 | fi | |
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5 | |
5072 | $as_echo "$libgcc_cv_cfi" >&6; } | |
5073 | ||
1ea0a651 RS |
5074 | # Check 32bit or 64bit. In the case of MIPS, this really determines the |
5075 | # word size rather than the address size. | |
1bb6f778 | 5076 | cat > conftest.c <<EOF |
1ea0a651 | 5077 | #if defined(__x86_64__) || (!defined(__i386__) && defined(__LP64__)) \ |
b38100eb | 5078 | || defined(__mips64) || defined(__loongarch64) |
ff473280 L |
5079 | host_address=64 |
5080 | #else | |
5081 | host_address=32 | |
5082 | #endif | |
5083 | EOF | |
1bb6f778 DM |
5084 | eval `${CC-cc} -E conftest.c | grep host_address=` |
5085 | rm -f conftest.c | |
ff473280 | 5086 | |
1c51d688 RS |
5087 | case ${host} in |
5088 | mips*-*-*) | |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target is hard-float" >&5 | |
5090 | $as_echo_n "checking whether the target is hard-float... " >&6; } | |
22e05272 | 5091 | if ${libgcc_cv_mips_hard_float+:} false; then : |
1c51d688 RS |
5092 | $as_echo_n "(cached) " >&6 |
5093 | else | |
5094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5095 | /* end confdefs.h. */ | |
5096 | #ifndef __mips_hard_float | |
5097 | #error FOO | |
5098 | #endif | |
22e05272 | 5099 | |
1c51d688 RS |
5100 | _ACEOF |
5101 | if ac_fn_c_try_compile "$LINENO"; then : | |
5102 | libgcc_cv_mips_hard_float=yes | |
5103 | else | |
5104 | libgcc_cv_mips_hard_float=no | |
5105 | fi | |
5106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5107 | fi | |
5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_mips_hard_float" >&5 | |
5109 | $as_echo "$libgcc_cv_mips_hard_float" >&6; } | |
5110 | esac | |
5111 | ||
2d110442 RO |
5112 | case ${host} in |
5113 | *-*-solaris2*) | |
f021f1d3 | 5114 | # Check for system-provided CRTs on Solaris 11.4. |
2d110442 RO |
5115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5 |
5116 | $as_echo_n "checking system-provided CRTs on Solaris... " >&6; } | |
22e05272 | 5117 | if ${libgcc_cv_solaris_crts+:} false; then : |
2d110442 RO |
5118 | $as_echo_n "(cached) " >&6 |
5119 | else | |
5120 | libgcc_cv_solaris_crts=no | |
5121 | libgcc_sysroot="`${CC} -print-sysroot`" | |
5122 | libgcc_libdir="$libgcc_sysroot/usr/lib" | |
5123 | # At the time they were added, gcrt1.o became a symlink for backwards | |
5124 | # compatibility on x86, while crt1.o was added on sparc, so check for that. | |
5125 | case ${host} in | |
5126 | i?86-*-solaris2* | x86_64-*-solaris2*) | |
5127 | if test -h "$libgcc_libdir/gcrt1.o"; then libgcc_cv_solaris_crts=yes; fi | |
5128 | ;; | |
5129 | sparc*-*-solaris2*) | |
5130 | if test -f "$libgcc_libdir/crt1.o"; then libgcc_cv_solaris_crts=yes; fi | |
5131 | ;; | |
5132 | esac | |
5133 | fi | |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_solaris_crts" >&5 | |
5135 | $as_echo "$libgcc_cv_solaris_crts" >&6; } | |
5136 | if test $libgcc_cv_solaris_crts = yes; then | |
5137 | ||
5138 | $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h | |
5139 | ||
5140 | fi | |
5141 | ;; | |
5142 | esac | |
5143 | ||
e610393c JM |
5144 | # Determine the version of glibc, if any, used on the target. |
5145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5 | |
5146 | $as_echo_n "checking for target glibc version... " >&6; } | |
5147 | ||
5148 | # Check whether --with-glibc-version was given. | |
5149 | if test "${with_glibc_version+set}" = set; then : | |
5150 | withval=$with_glibc_version; | |
5151 | if echo "$with_glibc_version" | grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then | |
5152 | glibc_version_major=`echo "$with_glibc_version" | sed -e 's/\..*//'` | |
5153 | glibc_version_minor=`echo "$with_glibc_version" | sed -e 's/.*\.//'` | |
5154 | else | |
22e05272 | 5155 | as_fn_error $? "option --with-glibc-version requires a version number M.N" "$LINENO" 5 |
e610393c JM |
5156 | fi |
5157 | else | |
5158 | ||
5159 | if ac_fn_c_compute_int "$LINENO" "__GLIBC__" "glibc_version_major" "#include <features.h>"; then : | |
5160 | ||
5161 | else | |
5162 | glibc_version_major=0 | |
5163 | fi | |
5164 | ||
5165 | if ac_fn_c_compute_int "$LINENO" "__GLIBC_MINOR__" "glibc_version_minor" "#include <features.h>"; then : | |
5166 | ||
5167 | else | |
5168 | glibc_version_minor=0 | |
5169 | fi | |
5170 | ||
5171 | fi | |
5172 | ||
5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5 | |
5174 | $as_echo "$glibc_version_major.$glibc_version_minor" >&6; } | |
5175 | ||
17867980 | 5176 | # Determine floating-point type for powerpc*-*-linux* or vxworks7*. |
d80c2bea JM |
5177 | # Single-precision-only FPRs are not a supported configuration for |
5178 | # this target, so are not allowed for in this test. | |
5179 | case ${host} in | |
17867980 | 5180 | powerpc*-*-linux* | powerpc*-*-vxworks7*) |
d80c2bea JM |
5181 | cat > conftest.c <<EOF |
5182 | #ifdef __powerpc64__ | |
5183 | ppc_fp_type=64 | |
5184 | #elif defined _SOFT_FLOAT | |
5185 | ppc_fp_type=soft | |
5186 | #elif defined _SOFT_DOUBLE | |
5187 | ppc_fp_type=e500v1 | |
5188 | #elif defined __NO_FPRS__ | |
5189 | ppc_fp_type=e500v2 | |
5190 | #else | |
5191 | ppc_fp_type=hard | |
5192 | #endif | |
5193 | EOF | |
5194 | eval `${CC-cc} -E conftest.c | grep ppc_fp_type=` | |
5195 | rm -f conftest.c | |
e610393c JM |
5196 | # glibc 2.19 and later provide all the soft-fp functions, with proper |
5197 | # interactions with <fenv.h> exception and rounding mode handling, so | |
5198 | # make libgcc's versions into compat symbols if a recent enough glibc | |
5199 | # version is being used. | |
5200 | ppc_fp_compat= | |
5201 | case ${ppc_fp_type} in | |
5202 | soft|e500v1|e500v2) | |
5203 | if test $glibc_version_major -gt 2 \ | |
5204 | || ( test $glibc_version_major -eq 2 \ | |
5205 | && test $glibc_version_minor -ge 19 ); then | |
5206 | ppc_fp_compat="t-softfp-compat" | |
5207 | fi | |
5208 | ;; | |
5209 | esac | |
d80c2bea JM |
5210 | ;; |
5211 | esac | |
5212 | ||
a71c0334 | 5213 | case ${host} in |
3787ee47 MM |
5214 | # At present, we cannot turn -mfloat128 on via #pragma GCC target, so just |
5215 | # check if we have VSX (ISA 2.06) support to build the software libraries, and | |
5216 | # whether the assembler can handle xsaddqp for hardware support. Also check if | |
ef836167 | 5217 | # a new glibc is being used so that __builtin_cpu_supports can be used. |
a71c0334 | 5218 | powerpc*-*-linux*) |
7502c597 SB |
5219 | saved_CFLAGS="$CFLAGS" |
5220 | CFLAGS="$CFLAGS -mabi=altivec -mvsx -mfloat128" | |
35fbda43 MM |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 2.06 to build __float128 libraries" >&5 |
5222 | $as_echo_n "checking for PowerPC ISA 2.06 to build __float128 libraries... " >&6; } | |
22e05272 | 5223 | if ${libgcc_cv_powerpc_float128+:} false; then : |
a71c0334 MM |
5224 | $as_echo_n "(cached) " >&6 |
5225 | else | |
5226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5227 | /* end confdefs.h. */ | |
7502c597 | 5228 | vector double dadd (vector double a, vector double b) { return a + b; } |
a71c0334 MM |
5229 | _ACEOF |
5230 | if ac_fn_c_try_compile "$LINENO"; then : | |
5231 | libgcc_cv_powerpc_float128=yes | |
5232 | else | |
5233 | libgcc_cv_powerpc_float128=no | |
5234 | fi | |
5235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5236 | fi | |
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128" >&5 | |
5238 | $as_echo "$libgcc_cv_powerpc_float128" >&6; } | |
5239 | ||
7502c597 | 5240 | CFLAGS="$CFLAGS -mpower9-vector -mfloat128-hardware" |
35fbda43 MM |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.0 to build hardware __float128 libraries" >&5 |
5242 | $as_echo_n "checking for PowerPC ISA 3.0 to build hardware __float128 libraries... " >&6; } | |
22e05272 | 5243 | if ${libgcc_cv_powerpc_float128_hw+:} false; then : |
a71c0334 MM |
5244 | $as_echo_n "(cached) " >&6 |
5245 | else | |
5246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5247 | /* end confdefs.h. */ | |
7502c597 | 5248 | #include <sys/auxv.h> |
a71c0334 MM |
5249 | #ifndef AT_PLATFORM |
5250 | #error "AT_PLATFORM is not defined" | |
5251 | #endif | |
3787ee47 MM |
5252 | #ifndef __BUILTIN_CPU_SUPPORTS__ |
5253 | #error "__builtin_cpu_supports is not available" | |
5254 | #endif | |
7502c597 | 5255 | vector unsigned char add (vector unsigned char a, vector unsigned char b) |
a71c0334 | 5256 | { |
35fbda43 | 5257 | vector unsigned char ret; |
a71c0334 MM |
5258 | __asm__ ("xsaddqp %0,%1,%2" : "=v" (ret) : "v" (a), "v" (b)); |
5259 | return ret; | |
5260 | } | |
5261 | void *add_resolver (void) { return (void *) add; } | |
5262 | __float128 add_ifunc (__float128, __float128) | |
5263 | __attribute__ ((__ifunc__ ("add_resolver"))); | |
5264 | _ACEOF | |
5265 | if ac_fn_c_try_compile "$LINENO"; then : | |
5266 | libgcc_cv_powerpc_float128_hw=yes | |
5267 | else | |
5268 | libgcc_cv_powerpc_float128_hw=no | |
5269 | fi | |
5270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5271 | fi | |
5272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_float128_hw" >&5 | |
5273 | $as_echo "$libgcc_cv_powerpc_float128_hw" >&6; } | |
7502c597 | 5274 | CFLAGS="$saved_CFLAGS" |
9090f480 CL |
5275 | |
5276 | saved_CFLAGS="$CFLAGS" | |
47749c43 | 5277 | CFLAGS="$CFLAGS -mcpu=power10 -mfloat128-hardware" |
9090f480 CL |
5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PowerPC ISA 3.1 to build hardware __float128 libraries" >&5 |
5279 | $as_echo_n "checking for PowerPC ISA 3.1 to build hardware __float128 libraries... " >&6; } | |
47749c43 | 5280 | if ${libgcc_cv_powerpc_3_1_float128_hw+:} false; then : |
9090f480 CL |
5281 | $as_echo_n "(cached) " >&6 |
5282 | else | |
5283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5284 | /* end confdefs.h. */ | |
5285 | #include <sys/auxv.h> | |
5286 | #ifndef AT_PLATFORM | |
5287 | #error "AT_PLATFORM is not defined" | |
5288 | #endif | |
5289 | #ifndef __BUILTIN_CPU_SUPPORTS__ | |
5290 | #error "__builtin_cpu_supports is not available" | |
5291 | #endif | |
47749c43 | 5292 | vector unsigned char conv (vector unsigned char qs) |
9090f480 CL |
5293 | { |
5294 | vector unsigned char ret; | |
47749c43 | 5295 | __asm__ ("xscvsqqp %0,%1" : "=v" (ret) : "v" (qs)); |
9090f480 CL |
5296 | return ret; |
5297 | } | |
47749c43 KL |
5298 | void *conv_resolver (void) { return (void *) conv; } |
5299 | __float128 conv_ifunc (__float128) | |
5300 | __attribute__ ((__ifunc__ ("conv_resolver"))); | |
9090f480 CL |
5301 | _ACEOF |
5302 | if ac_fn_c_try_compile "$LINENO"; then : | |
5303 | libgcc_cv_powerpc_3_1_float128_hw=yes | |
5304 | else | |
5305 | libgcc_cv_powerpc_3_1_float128_hw=no | |
5306 | fi | |
5307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5308 | fi | |
47749c43 KL |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_powerpc_3_1_float128_hw" >&5 |
5310 | $as_echo "$libgcc_cv_powerpc_3_1_float128_hw" >&6; } | |
9090f480 | 5311 | CFLAGS="$saved_CFLAGS" |
a71c0334 MM |
5312 | esac |
5313 | ||
fa958513 DJ |
5314 | # Collect host-machine-specific information. |
5315 | . ${srcdir}/config.host | |
5316 | ||
85c64bbe BS |
5317 | # Used for constructing correct paths for offload compilers. |
5318 | accel_dir_suffix= | |
d28ad5d4 | 5319 | real_host_noncanonical=${host_noncanonical} |
85c64bbe BS |
5320 | if test x"$enable_as_accelerator_for" != x; then |
5321 | accel_dir_suffix=/accel/${target_noncanonical} | |
d28ad5d4 | 5322 | real_host_noncanonical=${enable_as_accelerator_for} |
85c64bbe BS |
5323 | fi |
5324 | ||
5325 | ||
d28ad5d4 | 5326 | |
85c64bbe | 5327 | if test x"$enable_offload_targets" != x; then |
e6861a99 | 5328 | extra_parts="${extra_parts} crtoffloadbegin.o crtoffloadend.o crtoffloadtable.o" |
85c64bbe BS |
5329 | fi |
5330 | ||
19523300 RO |
5331 | # Check if Solaris/x86 linker supports ZERO terminator unwind entries. |
5332 | # This is after config.host so we can augment tmake_file. | |
5333 | # Link with -nostartfiles -nodefaultlibs since neither are present while | |
5334 | # building libgcc. | |
5335 | case ${host} in | |
ccd1242e | 5336 | i?86-*-solaris2* | x86_64-*-solaris2*) |
19523300 RO |
5337 | cat > conftest.s <<EOF |
5338 | .section .eh_frame,"a",@unwind | |
5339 | .zero 4 | |
5340 | .section .jcr,"aw",@progbits | |
5341 | .zero 8 | |
5342 | EOF | |
5343 | if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5' | |
5213506e | 5344 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
19523300 RO |
5345 | (eval $ac_try) 2>&5 |
5346 | ac_status=$? | |
5213506e RW |
5347 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5348 | test $ac_status = 0; }; }; then | |
4a8bb046 | 5349 | tmake_file="${tmake_file} i386/t-crtstuff" |
19523300 RO |
5350 | fi |
5351 | ;; | |
5352 | esac | |
5353 | ||
53c6feb2 RO |
5354 | # Check if Solaris linker support v2 linker mapfile syntax. |
5355 | # Link with -nostartfiles -nodefaultlibs since neither are present while | |
5356 | # building libgcc. | |
5357 | case ${host} in | |
5358 | *-*-solaris2*) | |
5359 | solaris_ld_v2_maps=no | |
5360 | echo 'int main(void) {return 0;}' > conftest.c | |
5361 | echo '$mapfile_version 2' > conftest.map | |
5362 | if { ac_try='${CC-cc} -nostartfiles -nodefaultlibs -Wl,-M,conftest.map -o conftest conftest.c 1>&5' | |
5363 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5364 | (eval $ac_try) 2>&5 | |
5365 | ac_status=$? | |
5366 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5367 | test $ac_status = 0; }; }; then | |
5368 | solaris_ld_v2_maps=yes | |
5369 | fi | |
5370 | ;; | |
5371 | esac | |
5372 | ||
5373 | ||
590e2636 MF |
5374 | # Check if xtensa target is configured for windowed ABI and thus needs to use |
5375 | # custom unwind code. | |
5376 | # This is after config.host so we can augment tmake_file. | |
5377 | case ${host} in | |
5378 | xtensa*-*) | |
8c8eb949 MF |
5379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5380 | /* end confdefs.h. */ | |
5381 | #ifdef __XTENSA_CALL0_ABI__ | |
5382 | #error | |
5383 | #endif | |
5384 | ||
5385 | _ACEOF | |
5386 | if ac_fn_c_try_compile "$LINENO"; then : | |
5387 | tmake_file="${tmake_file} xtensa/t-windowed" | |
5388 | fi | |
5389 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
590e2636 MF |
5390 | ;; |
5391 | esac | |
5392 | ||
fa958513 DJ |
5393 | # Check for visibility support. This is after config.host so that |
5394 | # we can check for asm_hidden_op. | |
5213506e RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5 |
5396 | $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; } | |
22e05272 | 5397 | if ${libgcc_cv_hidden_visibility_attribute+:} false; then : |
5213506e | 5398 | $as_echo_n "(cached) " >&6 |
fa958513 DJ |
5399 | else |
5400 | ||
5401 | echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c | |
5402 | libgcc_cv_hidden_visibility_attribute=no | |
5403 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
5213506e | 5404 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
fa958513 DJ |
5405 | (eval $ac_try) 2>&5 |
5406 | ac_status=$? | |
5213506e RW |
5407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
5408 | test $ac_status = 0; }; }; then | |
fa958513 DJ |
5409 | if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then |
5410 | libgcc_cv_hidden_visibility_attribute=yes | |
5411 | fi | |
5412 | fi | |
5413 | rm -f conftest.* | |
5414 | ||
5415 | fi | |
5213506e RW |
5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5 |
5417 | $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; } | |
fa958513 DJ |
5418 | |
5419 | if test $libgcc_cv_hidden_visibility_attribute = yes; then | |
5420 | vis_hide='-fvisibility=hidden -DHIDE_EXPORTS' | |
ce579a4f JJ |
5421 | |
5422 | cat >>confdefs.h <<_ACEOF | |
5423 | #define AS_HIDDEN_DIRECTIVE $asm_hidden_op | |
5424 | _ACEOF | |
5425 | ||
fa958513 DJ |
5426 | else |
5427 | vis_hide= | |
5428 | fi | |
5429 | ||
5430 | ||
ce579a4f JJ |
5431 | # Check for .cfi_sections .debug_frame support. |
5432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .cfi_sections .debug_frame" >&5 | |
5433 | $as_echo_n "checking for .cfi_sections .debug_frame... " >&6; } | |
22e05272 | 5434 | if ${libgcc_cv_cfi_sections_directive+:} false; then : |
ce579a4f JJ |
5435 | $as_echo_n "(cached) " >&6 |
5436 | else | |
5437 | ||
5438 | echo 'int foo (int, char *);' > conftest.c | |
5439 | echo 'int bar (int x) { char *y = __builtin_alloca (x); return foo (x + 1, y) + 1; }' >> conftest.c | |
5440 | libgcc_cv_cfi_sections_directive=no | |
5441 | if { ac_try='${CC-cc} -Werror -g -fno-asynchronous-unwind-tables -fno-unwind-tables -fno-exceptions -S conftest.c -o conftest.s 1>&5' | |
5442 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5443 | (eval $ac_try) 2>&5 | |
5444 | ac_status=$? | |
5445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5446 | test $ac_status = 0; }; }; then | |
5447 | if grep "\\.cfi_sections.*\\.debug_frame" conftest.s >/dev/null; then | |
5448 | libgcc_cv_cfi_sections_directive=yes | |
5449 | fi | |
5450 | fi | |
5451 | rm -f conftest.* | |
5452 | ||
5453 | fi | |
5454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi_sections_directive" >&5 | |
5455 | $as_echo "$libgcc_cv_cfi_sections_directive" >&6; } | |
5456 | if test $libgcc_cv_cfi_sections_directive = yes; then | |
5457 | ||
5458 | $as_echo "#define HAVE_AS_CFI_SECTIONS 1" >>confdefs.h | |
5459 | ||
5460 | fi | |
5461 | ||
6f461e76 | 5462 | # See if we have thread-local storage. We can only test assembler |
d8c9d391 | 5463 | # since link-time and run-time tests require the newly built |
6f461e76 L |
5464 | # gcc, which can't be used to build executable due to that libgcc |
5465 | # is yet to be built here. | |
5466 | ||
5213506e RW |
5467 | # Check whether --enable-tls was given. |
5468 | if test "${enable_tls+set}" = set; then : | |
5469 | enableval=$enable_tls; | |
6f461e76 L |
5470 | case "$enableval" in |
5471 | yes|no) ;; | |
22e05272 | 5472 | *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
6f461e76 L |
5473 | esac |
5474 | ||
5475 | else | |
5476 | enable_tls=yes | |
5213506e | 5477 | fi |
6f461e76 | 5478 | |
5213506e RW |
5479 | |
5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5 | |
5481 | $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; } | |
22e05272 | 5482 | if ${gcc_cv_have_cc_tls+:} false; then : |
5213506e | 5483 | $as_echo_n "(cached) " >&6 |
6f461e76 L |
5484 | else |
5485 | ||
5213506e RW |
5486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5487 | /* end confdefs.h. */ | |
6f461e76 L |
5488 | __thread int a; int b; int main() { return a = b; } |
5489 | _ACEOF | |
5213506e | 5490 | if ac_fn_c_try_compile "$LINENO"; then : |
b4e9c2c6 | 5491 | gcc_cv_have_cc_tls=yes |
6f461e76 | 5492 | else |
5213506e | 5493 | gcc_cv_have_cc_tls=no |
6f461e76 | 5494 | fi |
5213506e | 5495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6f461e76 L |
5496 | |
5497 | fi | |
5213506e RW |
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5 |
5499 | $as_echo "$gcc_cv_have_cc_tls" >&6; } | |
22867d02 | 5500 | set_have_cc_tls= |
b4e9c2c6 | 5501 | if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then |
6f461e76 L |
5502 | set_have_cc_tls="-DHAVE_CC_TLS" |
5503 | fi | |
5504 | ||
5505 | ||
368fabd5 JH |
5506 | # See if we have emulated thread-local storage. |
5507 | ||
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 | |
5509 | $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } | |
22e05272 | 5510 | if ${gcc_cv_use_emutls+:} false; then : |
368fabd5 JH |
5511 | $as_echo_n "(cached) " >&6 |
5512 | else | |
5513 | ||
5514 | gcc_cv_use_emutls=no | |
5515 | echo '__thread int a; int b; int main() { return a = b; }' > conftest.c | |
5516 | if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' | |
5517 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 | |
5518 | (eval $ac_try) 2>&5 | |
5519 | ac_status=$? | |
5520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5521 | test $ac_status = 0; }; }; then | |
5522 | if grep __emutls_get_address conftest.s > /dev/null; then | |
5523 | gcc_cv_use_emutls=yes | |
5524 | fi | |
5525 | fi | |
5526 | rm -f conftest.* | |
5527 | ||
5528 | fi | |
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 | |
5530 | $as_echo "$gcc_cv_use_emutls" >&6; } | |
5531 | if test "$gcc_cv_use_emutls" = "yes" ; then | |
5532 | ||
5533 | $as_echo "#define USE_EMUTLS 1" >>confdefs.h | |
5534 | ||
5535 | fi | |
5536 | set_use_emutls= | |
5537 | if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then | |
5538 | set_use_emutls="-DUSE_EMUTLS" | |
5539 | fi | |
5540 | ||
5541 | ||
89762a83 DS |
5542 | |
5543 | ||
5544 | case "${target}" in | |
5545 | i[34567]86-*-* | x86_64-*-*) | |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5 | |
5547 | $as_echo_n "checking if the assembler supports AVX... " >&6; } | |
22e05272 | 5548 | if ${libgcc_cv_as_avx+:} false; then : |
89762a83 DS |
5549 | $as_echo_n "(cached) " >&6 |
5550 | else | |
5551 | ||
5552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5553 | /* end confdefs.h. */ | |
5554 | ||
5555 | int | |
5556 | main () | |
5557 | { | |
5558 | asm("vzeroupper"); | |
5559 | ; | |
5560 | return 0; | |
5561 | } | |
5562 | _ACEOF | |
5563 | if ac_fn_c_try_compile "$LINENO"; then : | |
5564 | libgcc_cv_as_avx=yes | |
5565 | else | |
5566 | libgcc_cv_as_avx=no | |
5567 | fi | |
5568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5569 | ||
5570 | fi | |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_avx" >&5 | |
5572 | $as_echo "$libgcc_cv_as_avx" >&6; } | |
5573 | if test x$libgcc_cv_as_avx = xyes; then | |
5574 | ||
5575 | $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h | |
5576 | ||
5577 | fi | |
5578 | ;; | |
5579 | esac | |
5580 | ||
5b2f76e3 JJ |
5581 | |
5582 | ||
5583 | case "${target}" in | |
5584 | aarch64*-*-*) | |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports LSE" >&5 | |
5586 | $as_echo_n "checking if the assembler supports LSE... " >&6; } | |
5587 | if ${libgcc_cv_as_lse+:} false; then : | |
5588 | $as_echo_n "(cached) " >&6 | |
5589 | else | |
5590 | ||
5591 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5592 | /* end confdefs.h. */ | |
5593 | ||
5594 | int | |
5595 | main () | |
5596 | { | |
5597 | asm(".arch armv8-a+lse\n\tcas w0, w1, [x2]"); | |
5598 | ||
5599 | ; | |
5600 | return 0; | |
5601 | } | |
5602 | _ACEOF | |
5603 | if ac_fn_c_try_compile "$LINENO"; then : | |
5604 | libgcc_cv_as_lse=yes | |
5605 | else | |
5606 | libgcc_cv_as_lse=no | |
5607 | fi | |
5608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5609 | ||
5610 | fi | |
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_as_lse" >&5 | |
5612 | $as_echo "$libgcc_cv_as_lse" >&6; } | |
5613 | if test x$libgcc_cv_as_lse = xyes; then | |
5614 | ||
5615 | $as_echo "#define HAVE_AS_LSE 1" >>confdefs.h | |
5616 | ||
5617 | fi | |
5618 | ;; | |
5619 | esac | |
5620 | ||
aca06c90 RO |
5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init priority support" >&5 |
5622 | $as_echo_n "checking for init priority support... " >&6; } | |
22e05272 | 5623 | if ${libgcc_cv_init_priority+:} false; then : |
aca06c90 RO |
5624 | $as_echo_n "(cached) " >&6 |
5625 | else | |
5626 | ||
5627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5628 | /* end confdefs.h. */ | |
5629 | ||
5630 | int | |
5631 | main () | |
5632 | { | |
5633 | void ip (void) __attribute__ ((constructor (1))); | |
5634 | ; | |
5635 | return 0; | |
5636 | } | |
5637 | _ACEOF | |
5638 | if ac_fn_c_try_compile "$LINENO"; then : | |
5639 | libgcc_cv_init_priority=yes | |
5640 | else | |
5641 | libgcc_cv_init_priority=no | |
5642 | fi | |
5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5644 | fi | |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_init_priority" >&5 | |
5646 | $as_echo "$libgcc_cv_init_priority" >&6; } | |
5647 | if test $libgcc_cv_init_priority = yes; then | |
5648 | ||
5649 | $as_echo "#define HAVE_INIT_PRIORITY 1" >>confdefs.h | |
5650 | ||
5651 | fi | |
5652 | ||
aca0b0b3 RO |
5653 | # Conditionalize the sfp-machine.h header for this target machine. |
5654 | if test -z "${sfp_machine_header}"; then | |
5655 | sfp_machine_header=$cpu_type/sfp-machine.h | |
5656 | if test -f ${srcdir}/config/${sfp_machine_header}; then | |
5657 | : | |
5658 | else | |
5659 | sfp_machine_header=no-sfp-machine.h | |
5660 | fi | |
5661 | fi | |
5662 | ||
5663 | ||
fa958513 DJ |
5664 | # Conditionalize the makefile for this target machine. |
5665 | tmake_file_= | |
5666 | for f in ${tmake_file} | |
5667 | do | |
5668 | if test -f ${srcdir}/config/$f | |
5669 | then | |
5670 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
5671 | fi | |
5672 | done | |
5673 | tmake_file="${tmake_file_}" | |
5674 | ||
5675 | ||
852b75ed RO |
5676 | # Likewise export definitions for libgcc_tm.h |
5677 | tm_file_= | |
5678 | for f in ${tm_file} | |
5679 | do | |
5680 | tm_file_="${tm_file_} \$(srcdir)/config/$f" | |
5681 | done | |
5682 | tm_file="${tm_file_}" | |
5683 | ||
5684 | ||
5685 | ||
5d1c8e77 | 5686 | # Map from thread model to thread header. |
1183dc2c | 5687 | |
5d1c8e77 RO |
5688 | case $target_thread_file in |
5689 | aix) thread_header=config/rs6000/gthr-aix.h ;; | |
5690 | dce) thread_header=config/pa/gthr-dce.h ;; | |
76d46331 | 5691 | gcn) thread_header=config/gcn/gthr-gcn.h ;; |
5d1c8e77 RO |
5692 | lynx) thread_header=config/gthr-lynx.h ;; |
5693 | mipssde) thread_header=config/mips/gthr-mipssde.h ;; | |
9fbcc75d | 5694 | posix) thread_header=gthr-posix.h ;; |
5d1c8e77 RO |
5695 | rtems) thread_header=config/gthr-rtems.h ;; |
5696 | single) thread_header=gthr-single.h ;; | |
5697 | tpf) thread_header=config/s390/gthr-tpf.h ;; | |
5698 | vxworks) thread_header=config/gthr-vxworks.h ;; | |
5699 | win32) thread_header=config/i386/gthr-win32.h ;; | |
f036d759 | 5700 | mcf) thread_header=config/i386/gthr-mcf.h ;; |
5d1c8e77 RO |
5701 | esac |
5702 | ||
1183dc2c PC |
5703 | |
5704 | ||
3c36aa6b JJ |
5705 | # Determine what GCC version number to use in filesystem paths. |
5706 | ||
5707 | get_gcc_base_ver="cat" | |
5708 | ||
5709 | # Check whether --with-gcc-major-version-only was given. | |
5710 | if test "${with_gcc_major_version_only+set}" = set; then : | |
5711 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
001ddaa8 | 5712 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" |
3c36aa6b JJ |
5713 | fi |
5714 | ||
5715 | fi | |
5716 | ||
5717 | ||
5718 | ||
5719 | ||
fa958513 DJ |
5720 | # Substitute configuration variables |
5721 | ||
5722 | ||
5723 | ||
10e48e39 | 5724 | |
201cdb74 | 5725 | |
58cd1d70 | 5726 | |
aca0b0b3 | 5727 | |
5d1c8e77 | 5728 | |
ca24c5ad | 5729 | |
fa958513 | 5730 | # We need multilib support. |
5213506e | 5731 | ac_config_files="$ac_config_files Makefile" |
fa958513 | 5732 | |
5213506e | 5733 | ac_config_commands="$ac_config_commands default" |
fa958513 DJ |
5734 | |
5735 | cat >confcache <<\_ACEOF | |
5736 | # This file is a shell script that caches the results of configure | |
5737 | # tests run on this system so they can be shared between configure | |
5738 | # scripts and configure runs, see configure's option --config-cache. | |
5739 | # It is not useful on other systems. If it contains results you don't | |
5740 | # want to keep, you may remove or edit it. | |
5741 | # | |
5742 | # config.status only pays attention to the cache file if you give it | |
5743 | # the --recheck option to rerun configure. | |
5744 | # | |
5745 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
5746 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
5747 | # following values. | |
5748 | ||
5749 | _ACEOF | |
5750 | ||
5751 | # The following way of writing the cache mishandles newlines in values, | |
5752 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 5753 | # So, we kill variables containing newlines. |
fa958513 DJ |
5754 | # Ultrix sh set writes to stderr and can't be redirected directly, |
5755 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
5756 | ( |
5757 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
5758 | eval ac_val=\$$ac_var | |
5759 | case $ac_val in #( | |
5760 | *${as_nl}*) | |
5761 | case $ac_var in #( | |
5762 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
5763 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
5764 | esac | |
5765 | case $ac_var in #( | |
5766 | _ | IFS | as_nl) ;; #( | |
5767 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
5768 | *) { eval $ac_var=; unset $ac_var;} ;; | |
5769 | esac ;; | |
5770 | esac | |
5771 | done | |
5772 | ||
fa958513 | 5773 | (set) 2>&1 | |
5213506e RW |
5774 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
5775 | *${as_nl}ac_space=\ *) | |
5776 | # `set' does not quote correctly, so add quotes: double-quote | |
5777 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
fa958513 DJ |
5778 | sed -n \ |
5779 | "s/'/'\\\\''/g; | |
5780 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 5781 | ;; #( |
fa958513 DJ |
5782 | *) |
5783 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 5784 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fa958513 | 5785 | ;; |
5213506e RW |
5786 | esac | |
5787 | sort | |
5788 | ) | | |
fa958513 | 5789 | sed ' |
5213506e | 5790 | /^ac_cv_env_/b end |
fa958513 | 5791 | t clear |
5213506e | 5792 | :clear |
fa958513 DJ |
5793 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5794 | t end | |
5213506e RW |
5795 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5796 | :end' >>confcache | |
5797 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
5798 | if test -w "$cache_file"; then | |
22e05272 | 5799 | if test "x$cache_file" != "x/dev/null"; then |
5213506e RW |
5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
5801 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
22e05272 JM |
5802 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
5803 | cat confcache >"$cache_file" | |
5804 | else | |
5805 | case $cache_file in #( | |
5806 | */* | ?:*) | |
5807 | mv -f confcache "$cache_file"$$ && | |
5808 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
5809 | *) | |
5810 | mv -f confcache "$cache_file" ;; | |
5811 | esac | |
5812 | fi | |
5813 | fi | |
fa958513 | 5814 | else |
5213506e RW |
5815 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5816 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
fa958513 DJ |
5817 | fi |
5818 | fi | |
5819 | rm -f confcache | |
5820 | ||
5821 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
5822 | # Let make expand exec_prefix. | |
5823 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
5824 | ||
aca06c90 | 5825 | DEFS=-DHAVE_CONFIG_H |
fa958513 DJ |
5826 | |
5827 | ac_libobjs= | |
5828 | ac_ltlibobjs= | |
22e05272 | 5829 | U= |
fa958513 DJ |
5830 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5831 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
5832 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5833 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
5834 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
5835 | # will be set to the directory where LIBOBJS objects are built. | |
5836 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
5837 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
fa958513 DJ |
5838 | done |
5839 | LIBOBJS=$ac_libobjs | |
5840 | ||
5841 | LTLIBOBJS=$ac_ltlibobjs | |
5842 | ||
5843 | ||
5844 | ||
22e05272 | 5845 | : "${CONFIG_STATUS=./config.status}" |
5213506e | 5846 | ac_write_fail=0 |
fa958513 DJ |
5847 | ac_clean_files_save=$ac_clean_files |
5848 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
5849 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
5850 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
5851 | as_write_fail=0 | |
5852 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
fa958513 DJ |
5853 | #! $SHELL |
5854 | # Generated by $as_me. | |
5855 | # Run this file to recreate the current configuration. | |
5856 | # Compiler output produced by configure, useful for debugging | |
5857 | # configure, is in config.log if it exists. | |
5858 | ||
5859 | debug=false | |
5860 | ac_cs_recheck=false | |
5861 | ac_cs_silent=false | |
fa958513 | 5862 | |
5213506e RW |
5863 | SHELL=\${CONFIG_SHELL-$SHELL} |
5864 | export SHELL | |
5865 | _ASEOF | |
5866 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
5867 | ## -------------------- ## | |
5868 | ## M4sh Initialization. ## | |
5869 | ## -------------------- ## | |
5870 | ||
5871 | # Be more Bourne compatible | |
5872 | DUALCASE=1; export DUALCASE # for MKS sh | |
5873 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
fa958513 DJ |
5874 | emulate sh |
5875 | NULLCMD=: | |
5213506e | 5876 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fa958513 DJ |
5877 | # is contrary to our usage. Disable this feature. |
5878 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
5879 | setopt NO_GLOB_SUBST |
5880 | else | |
5881 | case `(set -o) 2>/dev/null` in #( | |
5882 | *posix*) : | |
5883 | set -o posix ;; #( | |
5884 | *) : | |
5885 | ;; | |
5886 | esac | |
fa958513 | 5887 | fi |
fa958513 | 5888 | |
5213506e RW |
5889 | |
5890 | as_nl=' | |
5891 | ' | |
5892 | export as_nl | |
5893 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
5894 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5895 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
5896 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
5897 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
5898 | # but without wasting forks for bash or zsh. | |
5899 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
5900 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5901 | as_echo='print -r --' | |
5902 | as_echo_n='print -rn --' | |
5903 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5904 | as_echo='printf %s\n' | |
5905 | as_echo_n='printf %s' | |
fa958513 | 5906 | else |
5213506e RW |
5907 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
5908 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
5909 | as_echo_n='/usr/ucb/echo -n' | |
5910 | else | |
5911 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
5912 | as_echo_n_body='eval | |
5913 | arg=$1; | |
5914 | case $arg in #( | |
5915 | *"$as_nl"*) | |
5916 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
5917 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
5918 | esac; | |
5919 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
5920 | ' | |
5921 | export as_echo_n_body | |
5922 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
5923 | fi | |
5924 | export as_echo_body | |
5925 | as_echo='sh -c $as_echo_body as_echo' | |
5926 | fi | |
5927 | ||
5928 | # The user is always right. | |
5929 | if test "${PATH_SEPARATOR+set}" != set; then | |
5930 | PATH_SEPARATOR=: | |
5931 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
5932 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
5933 | PATH_SEPARATOR=';' | |
5934 | } | |
fa958513 DJ |
5935 | fi |
5936 | ||
5937 | ||
5213506e RW |
5938 | # IFS |
5939 | # We need space, tab and new line, in precisely that order. Quoting is | |
5940 | # there to prevent editors from complaining about space-tab. | |
5941 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
5942 | # splitting by setting IFS to empty value.) | |
5943 | IFS=" "" $as_nl" | |
5944 | ||
5945 | # Find who we are. Look in the path if we contain no directory separator. | |
22e05272 | 5946 | as_myself= |
5213506e RW |
5947 | case $0 in #(( |
5948 | *[\\/]* ) as_myself=$0 ;; | |
5949 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5950 | for as_dir in $PATH | |
5951 | do | |
5952 | IFS=$as_save_IFS | |
5953 | test -z "$as_dir" && as_dir=. | |
5954 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5955 | done | |
5956 | IFS=$as_save_IFS | |
5957 | ||
5958 | ;; | |
5959 | esac | |
5960 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5961 | # in which case we are not to be found in the path. | |
5962 | if test "x$as_myself" = x; then | |
5963 | as_myself=$0 | |
5964 | fi | |
5965 | if test ! -f "$as_myself"; then | |
5966 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
5967 | exit 1 | |
5968 | fi | |
5969 | ||
5970 | # Unset variables that we do not need and which cause bugs (e.g. in | |
5971 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
5972 | # suppresses any "Segmentation fault" message there. '((' could | |
5973 | # trigger a bug in pdksh 5.2.14. | |
5974 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
5975 | do eval test x\${$as_var+set} = xset \ | |
5976 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
5977 | done | |
fa958513 DJ |
5978 | PS1='$ ' |
5979 | PS2='> ' | |
5980 | PS4='+ ' | |
5981 | ||
5982 | # NLS nuisances. | |
5213506e RW |
5983 | LC_ALL=C |
5984 | export LC_ALL | |
5985 | LANGUAGE=C | |
5986 | export LANGUAGE | |
5987 | ||
5988 | # CDPATH. | |
5989 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
5990 | ||
5991 | ||
22e05272 JM |
5992 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
5993 | # ---------------------------------------- | |
5213506e RW |
5994 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
5995 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
22e05272 | 5996 | # script with STATUS, using 1 if that was 0. |
5213506e RW |
5997 | as_fn_error () |
5998 | { | |
22e05272 JM |
5999 | as_status=$1; test $as_status -eq 0 && as_status=1 |
6000 | if test "$4"; then | |
6001 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
6002 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
fa958513 | 6003 | fi |
22e05272 | 6004 | $as_echo "$as_me: error: $2" >&2 |
5213506e RW |
6005 | as_fn_exit $as_status |
6006 | } # as_fn_error | |
6007 | ||
fa958513 | 6008 | |
5213506e RW |
6009 | # as_fn_set_status STATUS |
6010 | # ----------------------- | |
6011 | # Set $? to STATUS, without forking. | |
6012 | as_fn_set_status () | |
6013 | { | |
6014 | return $1 | |
6015 | } # as_fn_set_status | |
6016 | ||
6017 | # as_fn_exit STATUS | |
6018 | # ----------------- | |
6019 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
6020 | as_fn_exit () | |
6021 | { | |
6022 | set +e | |
6023 | as_fn_set_status $1 | |
6024 | exit $1 | |
6025 | } # as_fn_exit | |
6026 | ||
6027 | # as_fn_unset VAR | |
6028 | # --------------- | |
6029 | # Portably unset VAR. | |
6030 | as_fn_unset () | |
6031 | { | |
6032 | { eval $1=; unset $1;} | |
6033 | } | |
6034 | as_unset=as_fn_unset | |
6035 | # as_fn_append VAR VALUE | |
6036 | # ---------------------- | |
6037 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
6038 | # advantage of any shell optimizations that allow amortized linear growth over | |
6039 | # repeated appends, instead of the typical quadratic growth present in naive | |
6040 | # implementations. | |
6041 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
6042 | eval 'as_fn_append () | |
6043 | { | |
6044 | eval $1+=\$2 | |
6045 | }' | |
6046 | else | |
6047 | as_fn_append () | |
6048 | { | |
6049 | eval $1=\$$1\$2 | |
6050 | } | |
6051 | fi # as_fn_append | |
6052 | ||
6053 | # as_fn_arith ARG... | |
6054 | # ------------------ | |
6055 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
6056 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
6057 | # must be portable across $(()) and expr. | |
6058 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
6059 | eval 'as_fn_arith () | |
6060 | { | |
6061 | as_val=$(( $* )) | |
6062 | }' | |
6063 | else | |
6064 | as_fn_arith () | |
6065 | { | |
6066 | as_val=`expr "$@" || test $? -eq 1` | |
6067 | } | |
6068 | fi # as_fn_arith | |
6069 | ||
6070 | ||
6071 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
6072 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fa958513 DJ |
6073 | as_expr=expr |
6074 | else | |
6075 | as_expr=false | |
6076 | fi | |
6077 | ||
5213506e | 6078 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fa958513 DJ |
6079 | as_basename=basename |
6080 | else | |
6081 | as_basename=false | |
6082 | fi | |
6083 | ||
5213506e RW |
6084 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
6085 | as_dirname=dirname | |
6086 | else | |
6087 | as_dirname=false | |
6088 | fi | |
fa958513 | 6089 | |
5213506e | 6090 | as_me=`$as_basename -- "$0" || |
fa958513 DJ |
6091 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6092 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
6093 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
6094 | $as_echo X/"$0" | | |
6095 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
6096 | s//\1/ | |
6097 | q | |
6098 | } | |
6099 | /^X\/\(\/\/\)$/{ | |
6100 | s//\1/ | |
6101 | q | |
6102 | } | |
6103 | /^X\/\(\/\).*/{ | |
6104 | s//\1/ | |
6105 | q | |
6106 | } | |
6107 | s/.*/./; q'` | |
fa958513 | 6108 | |
d6efbf5a DJ |
6109 | # Avoid depending upon Character Ranges. |
6110 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6111 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6112 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6113 | as_cr_digits='0123456789' | |
6114 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
fa958513 | 6115 | |
5213506e RW |
6116 | ECHO_C= ECHO_N= ECHO_T= |
6117 | case `echo -n x` in #((((( | |
6118 | -n*) | |
6119 | case `echo 'xy\c'` in | |
6120 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
6121 | xy) ECHO_C='\c';; | |
6122 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
6123 | ECHO_T=' ';; | |
6124 | esac;; | |
6125 | *) | |
6126 | ECHO_N='-n';; | |
fa958513 DJ |
6127 | esac |
6128 | ||
5213506e RW |
6129 | rm -f conf$$ conf$$.exe conf$$.file |
6130 | if test -d conf$$.dir; then | |
6131 | rm -f conf$$.dir/conf$$.file | |
fa958513 | 6132 | else |
5213506e RW |
6133 | rm -f conf$$.dir |
6134 | mkdir conf$$.dir 2>/dev/null | |
fa958513 | 6135 | fi |
5213506e RW |
6136 | if (echo >conf$$.file) 2>/dev/null; then |
6137 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6efbf5a | 6138 | as_ln_s='ln -s' |
5213506e RW |
6139 | # ... but there are two gotchas: |
6140 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
6141 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22e05272 | 6142 | # In both cases, we have to default to `cp -pR'. |
5213506e | 6143 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
22e05272 | 6144 | as_ln_s='cp -pR' |
5213506e RW |
6145 | elif ln conf$$.file conf$$ 2>/dev/null; then |
6146 | as_ln_s=ln | |
6147 | else | |
22e05272 | 6148 | as_ln_s='cp -pR' |
d6efbf5a | 6149 | fi |
fa958513 | 6150 | else |
22e05272 | 6151 | as_ln_s='cp -pR' |
fa958513 | 6152 | fi |
5213506e RW |
6153 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
6154 | rmdir conf$$.dir 2>/dev/null | |
6155 | ||
6156 | ||
6157 | # as_fn_mkdir_p | |
6158 | # ------------- | |
6159 | # Create "$as_dir" as a directory, including parents if necessary. | |
6160 | as_fn_mkdir_p () | |
6161 | { | |
6162 | ||
6163 | case $as_dir in #( | |
6164 | -*) as_dir=./$as_dir;; | |
6165 | esac | |
6166 | test -d "$as_dir" || eval $as_mkdir_p || { | |
6167 | as_dirs= | |
6168 | while :; do | |
6169 | case $as_dir in #( | |
6170 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
6171 | *) as_qdir=$as_dir;; | |
6172 | esac | |
6173 | as_dirs="'$as_qdir' $as_dirs" | |
6174 | as_dir=`$as_dirname -- "$as_dir" || | |
6175 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
6176 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
6177 | X"$as_dir" : 'X\(//\)$' \| \ | |
6178 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
6179 | $as_echo X"$as_dir" | | |
6180 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6181 | s//\1/ | |
6182 | q | |
6183 | } | |
6184 | /^X\(\/\/\)[^/].*/{ | |
6185 | s//\1/ | |
6186 | q | |
6187 | } | |
6188 | /^X\(\/\/\)$/{ | |
6189 | s//\1/ | |
6190 | q | |
6191 | } | |
6192 | /^X\(\/\).*/{ | |
6193 | s//\1/ | |
6194 | q | |
6195 | } | |
6196 | s/.*/./; q'` | |
6197 | test -d "$as_dir" && break | |
6198 | done | |
6199 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
22e05272 | 6200 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
fa958513 | 6201 | |
5213506e RW |
6202 | |
6203 | } # as_fn_mkdir_p | |
fa958513 | 6204 | if mkdir -p . 2>/dev/null; then |
5213506e | 6205 | as_mkdir_p='mkdir -p "$as_dir"' |
fa958513 DJ |
6206 | else |
6207 | test -d ./-p && rmdir ./-p | |
6208 | as_mkdir_p=false | |
6209 | fi | |
6210 | ||
22e05272 JM |
6211 | |
6212 | # as_fn_executable_p FILE | |
6213 | # ----------------------- | |
6214 | # Test if FILE is an executable regular file. | |
6215 | as_fn_executable_p () | |
6216 | { | |
6217 | test -f "$1" && test -x "$1" | |
6218 | } # as_fn_executable_p | |
6219 | as_test_x='test -x' | |
6220 | as_executable_p=as_fn_executable_p | |
fa958513 DJ |
6221 | |
6222 | # Sed expression to map a string onto a valid CPP name. | |
6223 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
6224 | ||
6225 | # Sed expression to map a string onto a valid variable name. | |
6226 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6227 | ||
6228 | ||
fa958513 | 6229 | exec 6>&1 |
5213506e RW |
6230 | ## ----------------------------------- ## |
6231 | ## Main body of $CONFIG_STATUS script. ## | |
6232 | ## ----------------------------------- ## | |
6233 | _ASEOF | |
6234 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
6235 | ||
6236 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6237 | # Save the log message, to keep $0 and so on meaningful, and to | |
fa958513 | 6238 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
6239 | # values after options handling. |
6240 | ac_log=" | |
fa958513 | 6241 | This file was extended by GNU C Runtime Library $as_me 1.0, which was |
22e05272 | 6242 | generated by GNU Autoconf 2.69. Invocation command line was |
fa958513 DJ |
6243 | |
6244 | CONFIG_FILES = $CONFIG_FILES | |
6245 | CONFIG_HEADERS = $CONFIG_HEADERS | |
6246 | CONFIG_LINKS = $CONFIG_LINKS | |
6247 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
6248 | $ $0 $@ | |
6249 | ||
5213506e RW |
6250 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
6251 | " | |
6252 | ||
fa958513 DJ |
6253 | _ACEOF |
6254 | ||
5213506e RW |
6255 | case $ac_config_files in *" |
6256 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
6257 | esac | |
fa958513 | 6258 | |
aca06c90 RO |
6259 | case $ac_config_headers in *" |
6260 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
6261 | esac | |
d6efbf5a | 6262 | |
d6efbf5a | 6263 | |
5213506e RW |
6264 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6265 | # Files that config.status was made for. | |
6266 | config_files="$ac_config_files" | |
aca06c90 | 6267 | config_headers="$ac_config_headers" |
5213506e | 6268 | config_commands="$ac_config_commands" |
fa958513 | 6269 | |
5213506e | 6270 | _ACEOF |
d6efbf5a | 6271 | |
5213506e | 6272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fa958513 | 6273 | ac_cs_usage="\ |
5213506e RW |
6274 | \`$as_me' instantiates files and other configuration actions |
6275 | from templates according to the current configuration. Unless the files | |
6276 | and actions are specified as TAGs, all are instantiated by default. | |
fa958513 | 6277 | |
5213506e | 6278 | Usage: $0 [OPTION]... [TAG]... |
fa958513 DJ |
6279 | |
6280 | -h, --help print this help, then exit | |
5213506e | 6281 | -V, --version print version number and configuration settings, then exit |
22e05272 | 6282 | --config print configuration, then exit |
5213506e RW |
6283 | -q, --quiet, --silent |
6284 | do not print progress messages | |
fa958513 DJ |
6285 | -d, --debug don't remove temporary files |
6286 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
6287 | --file=FILE[:TEMPLATE] |
6288 | instantiate the configuration file FILE | |
aca06c90 RO |
6289 | --header=FILE[:TEMPLATE] |
6290 | instantiate the configuration header FILE | |
fa958513 DJ |
6291 | |
6292 | Configuration files: | |
6293 | $config_files | |
6294 | ||
aca06c90 RO |
6295 | Configuration headers: |
6296 | $config_headers | |
6297 | ||
fa958513 DJ |
6298 | Configuration commands: |
6299 | $config_commands | |
6300 | ||
5213506e RW |
6301 | Report bugs to the package provider. |
6302 | GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. | |
6303 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
d6efbf5a | 6304 | |
5213506e RW |
6305 | _ACEOF |
6306 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 6307 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
fa958513 DJ |
6308 | ac_cs_version="\\ |
6309 | GNU C Runtime Library config.status 1.0 | |
22e05272 JM |
6310 | configured by $0, generated by GNU Autoconf 2.69, |
6311 | with options \\"\$ac_cs_config\\" | |
fa958513 | 6312 | |
22e05272 | 6313 | Copyright (C) 2012 Free Software Foundation, Inc. |
fa958513 DJ |
6314 | This config.status script is free software; the Free Software Foundation |
6315 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
6316 | |
6317 | ac_pwd='$ac_pwd' | |
6318 | srcdir='$srcdir' | |
6319 | INSTALL='$INSTALL' | |
6320 | AWK='$AWK' | |
6321 | test -n "\$AWK" || AWK=awk | |
fa958513 DJ |
6322 | _ACEOF |
6323 | ||
5213506e RW |
6324 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6325 | # The default lists apply if the user does not specify any file. | |
fa958513 DJ |
6326 | ac_need_defaults=: |
6327 | while test $# != 0 | |
6328 | do | |
6329 | case $1 in | |
22e05272 | 6330 | --*=?*) |
5213506e RW |
6331 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
6332 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fa958513 DJ |
6333 | ac_shift=: |
6334 | ;; | |
22e05272 JM |
6335 | --*=) |
6336 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
6337 | ac_optarg= | |
6338 | ac_shift=: | |
6339 | ;; | |
5213506e | 6340 | *) |
fa958513 DJ |
6341 | ac_option=$1 |
6342 | ac_optarg=$2 | |
6343 | ac_shift=shift | |
6344 | ;; | |
fa958513 DJ |
6345 | esac |
6346 | ||
6347 | case $ac_option in | |
6348 | # Handling of the options. | |
fa958513 DJ |
6349 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6350 | ac_cs_recheck=: ;; | |
5213506e RW |
6351 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6352 | $as_echo "$ac_cs_version"; exit ;; | |
22e05272 JM |
6353 | --config | --confi | --conf | --con | --co | --c ) |
6354 | $as_echo "$ac_cs_config"; exit ;; | |
5213506e | 6355 | --debug | --debu | --deb | --de | --d | -d ) |
fa958513 DJ |
6356 | debug=: ;; |
6357 | --file | --fil | --fi | --f ) | |
6358 | $ac_shift | |
5213506e RW |
6359 | case $ac_optarg in |
6360 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
22e05272 | 6361 | '') as_fn_error $? "missing file argument" ;; |
5213506e RW |
6362 | esac |
6363 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
d6efbf5a | 6364 | ac_need_defaults=false;; |
aca06c90 RO |
6365 | --header | --heade | --head | --hea ) |
6366 | $ac_shift | |
6367 | case $ac_optarg in | |
6368 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
6369 | esac | |
6370 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
6371 | ac_need_defaults=false;; | |
6372 | --he | --h) | |
6373 | # Conflict between --help and --header | |
22e05272 | 6374 | as_fn_error $? "ambiguous option: \`$1' |
aca06c90 RO |
6375 | Try \`$0 --help' for more information.";; |
6376 | --help | --hel | -h ) | |
5213506e | 6377 | $as_echo "$ac_cs_usage"; exit ;; |
fa958513 DJ |
6378 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6379 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
6380 | ac_cs_silent=: ;; | |
6381 | ||
6382 | # This is an error. | |
22e05272 | 6383 | -*) as_fn_error $? "unrecognized option: \`$1' |
5213506e | 6384 | Try \`$0 --help' for more information." ;; |
fa958513 | 6385 | |
5213506e RW |
6386 | *) as_fn_append ac_config_targets " $1" |
6387 | ac_need_defaults=false ;; | |
fa958513 DJ |
6388 | |
6389 | esac | |
6390 | shift | |
6391 | done | |
6392 | ||
6393 | ac_configure_extra_args= | |
6394 | ||
6395 | if $ac_cs_silent; then | |
6396 | exec 6>/dev/null | |
6397 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
6398 | fi | |
6399 | ||
6400 | _ACEOF | |
5213506e | 6401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fa958513 | 6402 | if \$ac_cs_recheck; then |
22e05272 | 6403 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5213506e RW |
6404 | shift |
6405 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
6406 | CONFIG_SHELL='$SHELL' | |
6407 | export CONFIG_SHELL | |
6408 | exec "\$@" | |
fa958513 DJ |
6409 | fi |
6410 | ||
6411 | _ACEOF | |
5213506e RW |
6412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6413 | exec 5>>config.log | |
6414 | { | |
6415 | echo | |
6416 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
6417 | ## Running $as_me. ## | |
6418 | _ASBOX | |
6419 | $as_echo "$ac_log" | |
6420 | } >&5 | |
fa958513 | 6421 | |
5213506e RW |
6422 | _ACEOF |
6423 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fa958513 | 6424 | # |
5213506e | 6425 | # INIT-COMMANDS |
fa958513 | 6426 | # |
fa958513 DJ |
6427 | srcdir=${srcdir} |
6428 | host=${host} | |
fa958513 DJ |
6429 | with_target_subdir=${with_target_subdir} |
6430 | with_multisubdir=${with_multisubdir} | |
6431 | ac_configure_args="--enable-multilib ${ac_configure_args}" | |
6432 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
6433 | libgcc_topdir=${libgcc_topdir} | |
6434 | CC="${CC}" | |
6435 | ||
6436 | ||
6437 | _ACEOF | |
6438 | ||
5213506e | 6439 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14e8fc8b | 6440 | |
5213506e | 6441 | # Handling of arguments. |
fa958513 DJ |
6442 | for ac_config_target in $ac_config_targets |
6443 | do | |
5213506e | 6444 | case $ac_config_target in |
aca06c90 | 6445 | "auto-target.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-target.h:config.in" ;; |
5213506e RW |
6446 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
6447 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
6448 | ||
22e05272 | 6449 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
fa958513 DJ |
6450 | esac |
6451 | done | |
6452 | ||
5213506e | 6453 | |
fa958513 DJ |
6454 | # If the user did not use the arguments to specify the items to instantiate, |
6455 | # then the envvar interface is used. Set only those that are not. | |
6456 | # We use the long form for the default assignment because of an extremely | |
6457 | # bizarre bug on SunOS 4.1.3. | |
6458 | if $ac_need_defaults; then | |
6459 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
aca06c90 | 6460 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
fa958513 DJ |
6461 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
6462 | fi | |
6463 | ||
6464 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 6465 | # simply because there is no reason against having it here, and in addition, |
fa958513 | 6466 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
6467 | # Hook for its removal unless debugging. |
6468 | # Note that there is a small window in which the directory will not be cleaned: | |
6469 | # after its creation but before its name has been assigned to `$tmp'. | |
fa958513 DJ |
6470 | $debug || |
6471 | { | |
22e05272 | 6472 | tmp= ac_tmp= |
5213506e | 6473 | trap 'exit_status=$? |
22e05272 JM |
6474 | : "${ac_tmp:=$tmp}" |
6475 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
5213506e RW |
6476 | ' 0 |
6477 | trap 'as_fn_exit 1' 1 2 13 15 | |
fa958513 | 6478 | } |
fa958513 DJ |
6479 | # Create a (secure) tmp directory for tmp files. |
6480 | ||
6481 | { | |
5213506e | 6482 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
22e05272 | 6483 | test -d "$tmp" |
fa958513 DJ |
6484 | } || |
6485 | { | |
5213506e RW |
6486 | tmp=./conf$$-$RANDOM |
6487 | (umask 077 && mkdir "$tmp") | |
22e05272 JM |
6488 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
6489 | ac_tmp=$tmp | |
5213506e RW |
6490 | |
6491 | # Set up the scripts for CONFIG_FILES section. | |
6492 | # No need to generate them if there are no CONFIG_FILES. | |
6493 | # This happens for instance with `./config.status config.h'. | |
6494 | if test -n "$CONFIG_FILES"; then | |
6495 | ||
6496 | ||
6497 | ac_cr=`echo X | tr X '\015'` | |
6498 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
6499 | # But we know of no other shell where ac_cr would be empty at this | |
6500 | # point, so we can use a bashism as a fallback. | |
6501 | if test "x$ac_cr" = x; then | |
6502 | eval ac_cr=\$\'\\r\' | |
6503 | fi | |
6504 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
6505 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
22e05272 | 6506 | ac_cs_awk_cr='\\r' |
5213506e RW |
6507 | else |
6508 | ac_cs_awk_cr=$ac_cr | |
6509 | fi | |
6510 | ||
22e05272 | 6511 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
5213506e RW |
6512 | _ACEOF |
6513 | ||
6514 | ||
6515 | { | |
6516 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
6517 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
6518 | echo "_ACEOF" | |
6519 | } >conf$$subs.sh || | |
22e05272 JM |
6520 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
6521 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
5213506e RW |
6522 | ac_delim='%!_!# ' |
6523 | for ac_last_try in false false false false false :; do | |
6524 | . ./conf$$subs.sh || | |
22e05272 | 6525 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
6526 | |
6527 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
6528 | if test $ac_delim_n = $ac_delim_num; then | |
6529 | break | |
6530 | elif $ac_last_try; then | |
22e05272 | 6531 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5213506e RW |
6532 | else |
6533 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6534 | fi | |
6535 | done | |
6536 | rm -f conf$$subs.sh | |
6537 | ||
6538 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
22e05272 | 6539 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
5213506e RW |
6540 | _ACEOF |
6541 | sed -n ' | |
6542 | h | |
6543 | s/^/S["/; s/!.*/"]=/ | |
6544 | p | |
6545 | g | |
6546 | s/^[^!]*!// | |
6547 | :repl | |
6548 | t repl | |
6549 | s/'"$ac_delim"'$// | |
6550 | t delim | |
6551 | :nl | |
6552 | h | |
22e05272 | 6553 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
6554 | t more1 |
6555 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
6556 | p | |
6557 | n | |
6558 | b repl | |
6559 | :more1 | |
6560 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6561 | p | |
6562 | g | |
6563 | s/.\{148\}// | |
6564 | t nl | |
6565 | :delim | |
6566 | h | |
22e05272 | 6567 | s/\(.\{148\}\)..*/\1/ |
5213506e RW |
6568 | t more2 |
6569 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
6570 | p | |
6571 | b | |
6572 | :more2 | |
6573 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
6574 | p | |
6575 | g | |
6576 | s/.\{148\}// | |
6577 | t delim | |
6578 | ' <conf$$subs.awk | sed ' | |
6579 | /^[^""]/{ | |
6580 | N | |
6581 | s/\n// | |
6582 | } | |
6583 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
6584 | rm -f conf$$subs.awk | |
6585 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6586 | _ACAWK | |
22e05272 | 6587 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
5213506e RW |
6588 | for (key in S) S_is_set[key] = 1 |
6589 | FS = "\a" | |
6590 | ||
6591 | } | |
fa958513 | 6592 | { |
5213506e RW |
6593 | line = $ 0 |
6594 | nfields = split(line, field, "@") | |
6595 | substed = 0 | |
6596 | len = length(field[1]) | |
6597 | for (i = 2; i < nfields; i++) { | |
6598 | key = field[i] | |
6599 | keylen = length(key) | |
6600 | if (S_is_set[key]) { | |
6601 | value = S[key] | |
6602 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
6603 | len += length(value) + length(field[++i]) | |
6604 | substed = 1 | |
6605 | } else | |
6606 | len += 1 + keylen | |
6607 | } | |
6608 | ||
6609 | print line | |
fa958513 DJ |
6610 | } |
6611 | ||
5213506e RW |
6612 | _ACAWK |
6613 | _ACEOF | |
6614 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
6615 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
6616 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
6617 | else | |
6618 | cat | |
22e05272 JM |
6619 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
6620 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
d6efbf5a DJ |
6621 | _ACEOF |
6622 | ||
22e05272 JM |
6623 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
6624 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
5213506e RW |
6625 | # trailing colons and then remove the whole line if VPATH becomes empty |
6626 | # (actually we leave an empty line to preserve line numbers). | |
6627 | if test "x$srcdir" = x.; then | |
22e05272 JM |
6628 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
6629 | h | |
6630 | s/// | |
6631 | s/^/:/ | |
6632 | s/[ ]*$/:/ | |
6633 | s/:\$(srcdir):/:/g | |
6634 | s/:\${srcdir}:/:/g | |
6635 | s/:@srcdir@:/:/g | |
6636 | s/^:*// | |
5213506e | 6637 | s/:*$// |
22e05272 JM |
6638 | x |
6639 | s/\(=[ ]*\).*/\1/ | |
6640 | G | |
6641 | s/\n// | |
5213506e RW |
6642 | s/^[^=]*=[ ]*$// |
6643 | }' | |
6644 | fi | |
d6efbf5a | 6645 | |
5213506e RW |
6646 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6647 | fi # test -n "$CONFIG_FILES" | |
fa958513 | 6648 | |
aca06c90 RO |
6649 | # Set up the scripts for CONFIG_HEADERS section. |
6650 | # No need to generate them if there are no CONFIG_HEADERS. | |
6651 | # This happens for instance with `./config.status Makefile'. | |
6652 | if test -n "$CONFIG_HEADERS"; then | |
22e05272 | 6653 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
aca06c90 RO |
6654 | BEGIN { |
6655 | _ACEOF | |
6656 | ||
6657 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
6658 | # here-document in config.status, that substitutes the proper values into | |
6659 | # config.h.in to produce config.h. | |
6660 | ||
6661 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
6662 | # handling of long lines. | |
6663 | ac_delim='%!_!# ' | |
6664 | for ac_last_try in false false :; do | |
22e05272 JM |
6665 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
6666 | if test -z "$ac_tt"; then | |
aca06c90 RO |
6667 | break |
6668 | elif $ac_last_try; then | |
22e05272 | 6669 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
aca06c90 RO |
6670 | else |
6671 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
6672 | fi | |
6673 | done | |
fa958513 | 6674 | |
aca06c90 RO |
6675 | # For the awk script, D is an array of macro values keyed by name, |
6676 | # likewise P contains macro parameters if any. Preserve backslash | |
6677 | # newline sequences. | |
6678 | ||
6679 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
6680 | sed -n ' | |
6681 | s/.\{148\}/&'"$ac_delim"'/g | |
6682 | t rset | |
6683 | :rset | |
6684 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
6685 | t def | |
6686 | d | |
6687 | :def | |
6688 | s/\\$// | |
6689 | t bsnl | |
6690 | s/["\\]/\\&/g | |
6691 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6692 | D["\1"]=" \3"/p | |
6693 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
6694 | d | |
6695 | :bsnl | |
6696 | s/["\\]/\\&/g | |
6697 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
6698 | D["\1"]=" \3\\\\\\n"\\/p | |
6699 | t cont | |
6700 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
6701 | t cont | |
6702 | d | |
6703 | :cont | |
6704 | n | |
6705 | s/.\{148\}/&'"$ac_delim"'/g | |
6706 | t clear | |
6707 | :clear | |
6708 | s/\\$// | |
6709 | t bsnlc | |
6710 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
6711 | d | |
6712 | :bsnlc | |
6713 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
6714 | b cont | |
6715 | ' <confdefs.h | sed ' | |
6716 | s/'"$ac_delim"'/"\\\ | |
6717 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
6718 | ||
6719 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6720 | for (key in D) D_is_set[key] = 1 | |
6721 | FS = "\a" | |
6722 | } | |
6723 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
6724 | line = \$ 0 | |
6725 | split(line, arg, " ") | |
6726 | if (arg[1] == "#") { | |
6727 | defundef = arg[2] | |
6728 | mac1 = arg[3] | |
6729 | } else { | |
6730 | defundef = substr(arg[1], 2) | |
6731 | mac1 = arg[2] | |
6732 | } | |
6733 | split(mac1, mac2, "(") #) | |
6734 | macro = mac2[1] | |
6735 | prefix = substr(line, 1, index(line, defundef) - 1) | |
6736 | if (D_is_set[macro]) { | |
6737 | # Preserve the white space surrounding the "#". | |
6738 | print prefix "define", macro P[macro] D[macro] | |
6739 | next | |
6740 | } else { | |
6741 | # Replace #undef with comments. This is necessary, for example, | |
6742 | # in the case of _POSIX_SOURCE, which is predefined and required | |
6743 | # on some systems where configure will not decide to define it. | |
6744 | if (defundef == "undef") { | |
6745 | print "/*", prefix defundef, macro, "*/" | |
6746 | next | |
6747 | } | |
6748 | } | |
6749 | } | |
6750 | { print } | |
6751 | _ACAWK | |
6752 | _ACEOF | |
6753 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
22e05272 | 6754 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
aca06c90 RO |
6755 | fi # test -n "$CONFIG_HEADERS" |
6756 | ||
6757 | ||
7e02fd1b | 6758 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
5213506e RW |
6759 | shift |
6760 | for ac_tag | |
6761 | do | |
6762 | case $ac_tag in | |
6763 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
6764 | esac | |
6765 | case $ac_mode$ac_tag in | |
6766 | :[FHL]*:*);; | |
22e05272 | 6767 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5213506e RW |
6768 | :[FH]-) ac_tag=-:-;; |
6769 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
6770 | esac | |
6771 | ac_save_IFS=$IFS | |
6772 | IFS=: | |
6773 | set x $ac_tag | |
6774 | IFS=$ac_save_IFS | |
6775 | shift | |
6776 | ac_file=$1 | |
6777 | shift | |
fa958513 | 6778 | |
5213506e RW |
6779 | case $ac_mode in |
6780 | :L) ac_source=$1;; | |
6781 | :[FH]) | |
6782 | ac_file_inputs= | |
6783 | for ac_f | |
6784 | do | |
6785 | case $ac_f in | |
22e05272 | 6786 | -) ac_f="$ac_tmp/stdin";; |
5213506e RW |
6787 | *) # Look for the file first in the build tree, then in the source tree |
6788 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
6789 | # because $ac_f cannot contain `:'. | |
6790 | test -f "$ac_f" || | |
6791 | case $ac_f in | |
6792 | [\\/$]*) false;; | |
6793 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
6794 | esac || | |
22e05272 | 6795 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5213506e RW |
6796 | esac |
6797 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
6798 | as_fn_append ac_file_inputs " '$ac_f'" | |
6799 | done | |
6800 | ||
6801 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
6802 | # use $as_me), people would be surprised to read: | |
6803 | # /* config.h. Generated by config.status. */ | |
6804 | configure_input='Generated from '` | |
6805 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
6806 | `' by configure.' | |
6807 | if test x"$ac_file" != x-; then | |
6808 | configure_input="$ac_file. $configure_input" | |
6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
6810 | $as_echo "$as_me: creating $ac_file" >&6;} | |
d6efbf5a | 6811 | fi |
5213506e RW |
6812 | # Neutralize special characters interpreted by sed in replacement strings. |
6813 | case $configure_input in #( | |
6814 | *\&* | *\|* | *\\* ) | |
6815 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
6816 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
6817 | *) ac_sed_conf_input=$configure_input;; | |
6818 | esac | |
14e8fc8b | 6819 | |
5213506e | 6820 | case $ac_tag in |
22e05272 JM |
6821 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
6822 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
5213506e RW |
6823 | esac |
6824 | ;; | |
14e8fc8b PB |
6825 | esac |
6826 | ||
5213506e | 6827 | ac_dir=`$as_dirname -- "$ac_file" || |
fa958513 DJ |
6828 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6829 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
6830 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
6831 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
6832 | $as_echo X"$ac_file" | | |
6833 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
6834 | s//\1/ | |
6835 | q | |
6836 | } | |
6837 | /^X\(\/\/\)[^/].*/{ | |
6838 | s//\1/ | |
6839 | q | |
6840 | } | |
6841 | /^X\(\/\/\)$/{ | |
6842 | s//\1/ | |
6843 | q | |
6844 | } | |
6845 | /^X\(\/\).*/{ | |
6846 | s//\1/ | |
6847 | q | |
6848 | } | |
6849 | s/.*/./; q'` | |
6850 | as_dir="$ac_dir"; as_fn_mkdir_p | |
fa958513 DJ |
6851 | ac_builddir=. |
6852 | ||
5213506e RW |
6853 | case "$ac_dir" in |
6854 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6855 | *) | |
6856 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
6857 | # A ".." for each directory in $ac_dir_suffix. | |
6858 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
6859 | case $ac_top_builddir_sub in | |
6860 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
6861 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
6862 | esac ;; | |
6863 | esac | |
6864 | ac_abs_top_builddir=$ac_pwd | |
6865 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
6866 | # for backward compatibility: | |
6867 | ac_top_builddir=$ac_top_build_prefix | |
fa958513 DJ |
6868 | |
6869 | case $srcdir in | |
5213506e | 6870 | .) # We are building in place. |
fa958513 | 6871 | ac_srcdir=. |
5213506e RW |
6872 | ac_top_srcdir=$ac_top_builddir_sub |
6873 | ac_abs_top_srcdir=$ac_pwd ;; | |
6874 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fa958513 | 6875 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
6876 | ac_top_srcdir=$srcdir |
6877 | ac_abs_top_srcdir=$srcdir ;; | |
6878 | *) # Relative name. | |
6879 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
6880 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
6881 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fa958513 | 6882 | esac |
5213506e | 6883 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fa958513 | 6884 | |
fa958513 | 6885 | |
5213506e RW |
6886 | case $ac_mode in |
6887 | :F) | |
6888 | # | |
6889 | # CONFIG_FILE | |
6890 | # | |
fa958513 DJ |
6891 | |
6892 | case $INSTALL in | |
6893 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 6894 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fa958513 | 6895 | esac |
5213506e | 6896 | _ACEOF |
14e8fc8b | 6897 | |
5213506e RW |
6898 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6899 | # If the template does not know about datarootdir, expand it. | |
6900 | # FIXME: This hack should be removed a few years after 2.60. | |
6901 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
6902 | ac_sed_dataroot=' | |
6903 | /datarootdir/ { | |
6904 | p | |
6905 | q | |
6906 | } | |
6907 | /@datadir@/p | |
6908 | /@docdir@/p | |
6909 | /@infodir@/p | |
6910 | /@localedir@/p | |
6911 | /@mandir@/p' | |
6912 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
6913 | *datarootdir*) ac_datarootdir_seen=yes;; | |
6914 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6916 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
6917 | _ACEOF | |
6918 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6919 | ac_datarootdir_hack=' | |
6920 | s&@datadir@&$datadir&g | |
6921 | s&@docdir@&$docdir&g | |
6922 | s&@infodir@&$infodir&g | |
6923 | s&@localedir@&$localedir&g | |
6924 | s&@mandir@&$mandir&g | |
6925 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
6926 | esac | |
fa958513 | 6927 | _ACEOF |
5213506e RW |
6928 | |
6929 | # Neutralize VPATH when `$srcdir' = `.'. | |
6930 | # Shell code in configure.ac might set extrasub. | |
6931 | # FIXME: do we really want to maintain this feature? | |
6932 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6933 | ac_sed_extra="$ac_vpsub | |
fa958513 DJ |
6934 | $extrasub |
6935 | _ACEOF | |
5213506e | 6936 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fa958513 DJ |
6937 | :t |
6938 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
6939 | s|@configure_input@|$ac_sed_conf_input|;t t |
6940 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
6941 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
6942 | s&@srcdir@&$ac_srcdir&;t t | |
6943 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
6944 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
6945 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
6946 | s&@builddir@&$ac_builddir&;t t | |
6947 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
6948 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
6949 | s&@INSTALL@&$ac_INSTALL&;t t | |
6950 | $ac_datarootdir_hack | |
6951 | " | |
22e05272 JM |
6952 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
6953 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
5213506e RW |
6954 | |
6955 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
22e05272 JM |
6956 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
6957 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
6958 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
5213506e | 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 6960 | which seems to be undefined. Please make sure it is defined" >&5 |
5213506e | 6961 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
22e05272 | 6962 | which seems to be undefined. Please make sure it is defined" >&2;} |
5213506e | 6963 | |
22e05272 | 6964 | rm -f "$ac_tmp/stdin" |
5213506e | 6965 | case $ac_file in |
22e05272 JM |
6966 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
6967 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
5213506e | 6968 | esac \ |
22e05272 | 6969 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5213506e | 6970 | ;; |
aca06c90 RO |
6971 | :H) |
6972 | # | |
6973 | # CONFIG_HEADER | |
6974 | # | |
6975 | if test x"$ac_file" != x-; then | |
6976 | { | |
6977 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
6978 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
6979 | } >"$ac_tmp/config.h" \ | |
6980 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6981 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
aca06c90 RO |
6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
6983 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
6984 | else | |
6985 | rm -f "$ac_file" | |
22e05272 JM |
6986 | mv "$ac_tmp/config.h" "$ac_file" \ |
6987 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
aca06c90 RO |
6988 | fi |
6989 | else | |
6990 | $as_echo "/* $configure_input */" \ | |
22e05272 JM |
6991 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
6992 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
aca06c90 RO |
6993 | fi |
6994 | ;; | |
d6efbf5a | 6995 | |
5213506e RW |
6996 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
6997 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
6998 | ;; | |
6999 | esac | |
d6efbf5a DJ |
7000 | |
7001 | ||
5213506e RW |
7002 | case $ac_file$ac_mode in |
7003 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
fa958513 DJ |
7004 | if test -n "$CONFIG_FILES"; then |
7005 | # FIXME: We shouldn't need to set ac_file | |
7006 | ac_file=Makefile | |
7007 | . ${libgcc_topdir}/config-ml.in | |
7008 | fi ;; | |
5213506e | 7009 | |
fa958513 | 7010 | esac |
5213506e | 7011 | done # for ac_tag |
fa958513 | 7012 | |
fa958513 | 7013 | |
5213506e | 7014 | as_fn_exit 0 |
fa958513 | 7015 | _ACEOF |
fa958513 DJ |
7016 | ac_clean_files=$ac_clean_files_save |
7017 | ||
5213506e | 7018 | test $ac_write_fail = 0 || |
22e05272 | 7019 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5213506e | 7020 | |
fa958513 DJ |
7021 | |
7022 | # configure is writing to config.log, and then calls config.status. | |
7023 | # config.status does its own redirection, appending to config.log. | |
7024 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
7025 | # by configure, so config.status won't be able to write to it; its | |
7026 | # output is simply discarded. So we exec the FD to /dev/null, | |
7027 | # effectively closing config.log, so it can be properly (re)opened and | |
7028 | # appended to by config.status. When coming back to configure, we | |
7029 | # need to make the FD available again. | |
7030 | if test "$no_create" != yes; then | |
7031 | ac_cs_success=: | |
7032 | ac_config_status_args= | |
7033 | test "$silent" = yes && | |
7034 | ac_config_status_args="$ac_config_status_args --quiet" | |
7035 | exec 5>/dev/null | |
7036 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
7037 | exec 5>>config.log | |
7038 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
7039 | # would make configure fail if this is the last instruction. | |
22e05272 | 7040 | $ac_cs_success || as_fn_exit 1 |
5213506e RW |
7041 | fi |
7042 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
7044 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
fa958513 DJ |
7045 | fi |
7046 |