]>
Commit | Line | Data |
---|---|---|
fa958513 DJ |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
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. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
fa958513 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" | |
172 | if (eval "$as_required") 2>/dev/null; then : | |
173 | as_have_required=yes | |
174 | else | |
175 | as_have_required=no | |
176 | fi | |
177 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
178 | ||
179 | else | |
180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
181 | as_found=false | |
182 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
fa958513 | 183 | do |
5213506e RW |
184 | IFS=$as_save_IFS |
185 | test -z "$as_dir" && as_dir=. | |
186 | as_found=: | |
187 | case $as_dir in #( | |
188 | /*) | |
189 | for as_base in sh bash ksh sh5; do | |
190 | # Try only shells that exist, to save several forks. | |
191 | as_shell=$as_dir/$as_base | |
192 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
193 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
194 | CONFIG_SHELL=$as_shell as_have_required=yes | |
195 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
196 | break 2 | |
197 | fi | |
198 | fi | |
199 | done;; | |
200 | esac | |
201 | as_found=false | |
202 | done | |
203 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
204 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
205 | CONFIG_SHELL=$SHELL as_have_required=yes | |
206 | fi; } | |
207 | IFS=$as_save_IFS | |
208 | ||
209 | ||
210 | if test "x$CONFIG_SHELL" != x; then : | |
211 | # We cannot yet assume a decent shell, so we have to provide a | |
212 | # neutralization value for shells without unset; and this also | |
213 | # works around shells that cannot unset nonexistent variables. | |
214 | BASH_ENV=/dev/null | |
215 | ENV=/dev/null | |
216 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
217 | export CONFIG_SHELL | |
218 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
219 | fi | |
220 | ||
221 | if test x$as_have_required = xno; then : | |
222 | $as_echo "$0: This script requires a shell more modern than all" | |
223 | $as_echo "$0: the shells that I found on your system." | |
224 | if test x${ZSH_VERSION+set} = xset ; then | |
225 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
226 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
fa958513 | 227 | else |
5213506e RW |
228 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
229 | $0: including any error possibly output before this | |
230 | $0: message. Then install a modern shell, or manually run | |
231 | $0: the script under such a shell if you do have one." | |
fa958513 | 232 | fi |
5213506e RW |
233 | exit 1 |
234 | fi | |
235 | fi | |
236 | fi | |
237 | SHELL=${CONFIG_SHELL-/bin/sh} | |
238 | export SHELL | |
239 | # Unset more variables known to interfere with behavior of common tools. | |
240 | CLICOLOR_FORCE= GREP_OPTIONS= | |
241 | unset CLICOLOR_FORCE GREP_OPTIONS | |
242 | ||
243 | ## --------------------- ## | |
244 | ## M4sh Shell Functions. ## | |
245 | ## --------------------- ## | |
246 | # as_fn_unset VAR | |
247 | # --------------- | |
248 | # Portably unset VAR. | |
249 | as_fn_unset () | |
250 | { | |
251 | { eval $1=; unset $1;} | |
252 | } | |
253 | as_unset=as_fn_unset | |
254 | ||
255 | # as_fn_set_status STATUS | |
256 | # ----------------------- | |
257 | # Set $? to STATUS, without forking. | |
258 | as_fn_set_status () | |
259 | { | |
260 | return $1 | |
261 | } # as_fn_set_status | |
262 | ||
263 | # as_fn_exit STATUS | |
264 | # ----------------- | |
265 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
266 | as_fn_exit () | |
267 | { | |
268 | set +e | |
269 | as_fn_set_status $1 | |
270 | exit $1 | |
271 | } # as_fn_exit | |
272 | ||
273 | # as_fn_mkdir_p | |
274 | # ------------- | |
275 | # Create "$as_dir" as a directory, including parents if necessary. | |
276 | as_fn_mkdir_p () | |
277 | { | |
278 | ||
279 | case $as_dir in #( | |
280 | -*) as_dir=./$as_dir;; | |
281 | esac | |
282 | test -d "$as_dir" || eval $as_mkdir_p || { | |
283 | as_dirs= | |
284 | while :; do | |
285 | case $as_dir in #( | |
286 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
287 | *) as_qdir=$as_dir;; | |
288 | esac | |
289 | as_dirs="'$as_qdir' $as_dirs" | |
290 | as_dir=`$as_dirname -- "$as_dir" || | |
291 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
292 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
293 | X"$as_dir" : 'X\(//\)$' \| \ | |
294 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
295 | $as_echo X"$as_dir" | | |
296 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
297 | s//\1/ | |
298 | q | |
299 | } | |
300 | /^X\(\/\/\)[^/].*/{ | |
301 | s//\1/ | |
302 | q | |
303 | } | |
304 | /^X\(\/\/\)$/{ | |
305 | s//\1/ | |
306 | q | |
307 | } | |
308 | /^X\(\/\).*/{ | |
309 | s//\1/ | |
310 | q | |
311 | } | |
312 | s/.*/./; q'` | |
313 | test -d "$as_dir" && break | |
314 | done | |
315 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
316 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
317 | ||
318 | ||
319 | } # as_fn_mkdir_p | |
320 | # as_fn_append VAR VALUE | |
321 | # ---------------------- | |
322 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
323 | # advantage of any shell optimizations that allow amortized linear growth over | |
324 | # repeated appends, instead of the typical quadratic growth present in naive | |
325 | # implementations. | |
326 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
327 | eval 'as_fn_append () | |
328 | { | |
329 | eval $1+=\$2 | |
330 | }' | |
331 | else | |
332 | as_fn_append () | |
333 | { | |
334 | eval $1=\$$1\$2 | |
335 | } | |
336 | fi # as_fn_append | |
337 | ||
338 | # as_fn_arith ARG... | |
339 | # ------------------ | |
340 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
341 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
342 | # must be portable across $(()) and expr. | |
343 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
344 | eval 'as_fn_arith () | |
345 | { | |
346 | as_val=$(( $* )) | |
347 | }' | |
348 | else | |
349 | as_fn_arith () | |
350 | { | |
351 | as_val=`expr "$@" || test $? -eq 1` | |
352 | } | |
353 | fi # as_fn_arith | |
354 | ||
355 | ||
356 | # as_fn_error ERROR [LINENO LOG_FD] | |
357 | # --------------------------------- | |
358 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
359 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
360 | # script with status $?, using 1 if that was 0. | |
361 | as_fn_error () | |
362 | { | |
363 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
364 | if test "$3"; then | |
365 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
366 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
367 | fi | |
368 | $as_echo "$as_me: error: $1" >&2 | |
369 | as_fn_exit $as_status | |
370 | } # as_fn_error | |
fa958513 | 371 | |
5213506e RW |
372 | if expr a : '\(a\)' >/dev/null 2>&1 && |
373 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fa958513 DJ |
374 | as_expr=expr |
375 | else | |
376 | as_expr=false | |
377 | fi | |
378 | ||
5213506e | 379 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fa958513 DJ |
380 | as_basename=basename |
381 | else | |
382 | as_basename=false | |
383 | fi | |
384 | ||
5213506e RW |
385 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
386 | as_dirname=dirname | |
387 | else | |
388 | as_dirname=false | |
389 | fi | |
fa958513 | 390 | |
5213506e | 391 | as_me=`$as_basename -- "$0" || |
fa958513 DJ |
392 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
393 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
394 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
395 | $as_echo X/"$0" | | |
396 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
397 | s//\1/ | |
398 | q | |
399 | } | |
400 | /^X\/\(\/\/\)$/{ | |
401 | s//\1/ | |
402 | q | |
403 | } | |
404 | /^X\/\(\/\).*/{ | |
405 | s//\1/ | |
406 | q | |
407 | } | |
408 | s/.*/./; q'` | |
fa958513 | 409 | |
d6efbf5a DJ |
410 | # Avoid depending upon Character Ranges. |
411 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
412 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
413 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
414 | as_cr_digits='0123456789' | |
415 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14e8fc8b | 416 | |
fa958513 | 417 | |
5213506e RW |
418 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
419 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
420 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
421 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
422 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
423 | sed -n ' | |
424 | p | |
425 | /[$]LINENO/= | |
426 | ' <$as_myself | | |
fa958513 | 427 | sed ' |
5213506e RW |
428 | s/[$]LINENO.*/&-/ |
429 | t lineno | |
430 | b | |
431 | :lineno | |
fa958513 | 432 | N |
5213506e RW |
433 | :loop |
434 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
fa958513 | 435 | t loop |
5213506e | 436 | s/-\n.*// |
fa958513 | 437 | ' >$as_me.lineno && |
5213506e RW |
438 | chmod +x "$as_me.lineno" || |
439 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
fa958513 DJ |
440 | |
441 | # Don't try to exec as it changes $[0], causing all sort of problems | |
442 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
443 | # original and so on. Autoconf is especially sensitive to this). |
444 | . "./$as_me.lineno" | |
fa958513 DJ |
445 | # Exit status is that of the last command. |
446 | exit | |
447 | } | |
448 | ||
5213506e RW |
449 | ECHO_C= ECHO_N= ECHO_T= |
450 | case `echo -n x` in #((((( | |
451 | -n*) | |
452 | case `echo 'xy\c'` in | |
453 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
454 | xy) ECHO_C='\c';; | |
455 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
456 | ECHO_T=' ';; | |
457 | esac;; | |
458 | *) | |
459 | ECHO_N='-n';; | |
fa958513 DJ |
460 | esac |
461 | ||
5213506e RW |
462 | rm -f conf$$ conf$$.exe conf$$.file |
463 | if test -d conf$$.dir; then | |
464 | rm -f conf$$.dir/conf$$.file | |
fa958513 | 465 | else |
5213506e RW |
466 | rm -f conf$$.dir |
467 | mkdir conf$$.dir 2>/dev/null | |
fa958513 | 468 | fi |
5213506e RW |
469 | if (echo >conf$$.file) 2>/dev/null; then |
470 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6efbf5a | 471 | as_ln_s='ln -s' |
5213506e RW |
472 | # ... but there are two gotchas: |
473 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
474 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
475 | # In both cases, we have to default to `cp -p'. | |
476 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
477 | as_ln_s='cp -p' | |
478 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
479 | as_ln_s=ln | |
480 | else | |
481 | as_ln_s='cp -p' | |
d6efbf5a | 482 | fi |
fa958513 DJ |
483 | else |
484 | as_ln_s='cp -p' | |
485 | fi | |
5213506e RW |
486 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
487 | rmdir conf$$.dir 2>/dev/null | |
fa958513 DJ |
488 | |
489 | if mkdir -p . 2>/dev/null; then | |
5213506e | 490 | as_mkdir_p='mkdir -p "$as_dir"' |
fa958513 DJ |
491 | else |
492 | test -d ./-p && rmdir ./-p | |
493 | as_mkdir_p=false | |
494 | fi | |
495 | ||
5213506e RW |
496 | if test -x / >/dev/null 2>&1; then |
497 | as_test_x='test -x' | |
498 | else | |
499 | if ls -dL / >/dev/null 2>&1; then | |
500 | as_ls_L_option=L | |
501 | else | |
502 | as_ls_L_option= | |
503 | fi | |
504 | as_test_x=' | |
505 | eval sh -c '\'' | |
506 | if test -d "$1"; then | |
507 | test -d "$1/."; | |
508 | else | |
509 | case $1 in #( | |
510 | -*)set "./$1";; | |
511 | esac; | |
512 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
513 | ???[sx]*):;;*)false;;esac;fi | |
514 | '\'' sh | |
515 | ' | |
516 | fi | |
517 | as_executable_p=$as_test_x | |
fa958513 DJ |
518 | |
519 | # Sed expression to map a string onto a valid CPP name. | |
520 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
521 | ||
522 | # Sed expression to map a string onto a valid variable name. | |
523 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
524 | ||
525 | ||
5213506e | 526 | exec 7<&0 </dev/null 6>&1 |
fa958513 DJ |
527 | |
528 | # Name of the host. | |
529 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
530 | # so uname gets run too. | |
531 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
532 | ||
fa958513 DJ |
533 | # |
534 | # Initializations. | |
535 | # | |
536 | ac_default_prefix=/usr/local | |
5213506e | 537 | ac_clean_files= |
fa958513 | 538 | ac_config_libobj_dir=. |
5213506e | 539 | LIBOBJS= |
fa958513 DJ |
540 | cross_compiling=no |
541 | subdirs= | |
542 | MFLAGS= | |
543 | MAKEFLAGS= | |
d6efbf5a | 544 | |
fa958513 DJ |
545 | # Identity of this package. |
546 | PACKAGE_NAME='GNU C Runtime Library' | |
547 | PACKAGE_TARNAME='libgcc' | |
548 | PACKAGE_VERSION='1.0' | |
549 | PACKAGE_STRING='GNU C Runtime Library 1.0' | |
550 | PACKAGE_BUGREPORT='' | |
5213506e | 551 | PACKAGE_URL='http://www.gnu.org/software/libgcc/' |
fa958513 DJ |
552 | |
553 | ac_unique_file="static-object.mk" | |
5213506e RW |
554 | ac_subst_vars='LTLIBOBJS |
555 | LIBOBJS | |
556 | asm_hidden_op | |
557 | extra_parts | |
558 | tmake_file | |
559 | set_have_cc_tls | |
560 | vis_hide | |
561 | fixed_point | |
562 | enable_decimal_float | |
563 | decimal_float | |
564 | CPP | |
565 | OBJEXT | |
566 | EXEEXT | |
567 | ac_ct_CC | |
568 | CPPFLAGS | |
569 | LDFLAGS | |
570 | CFLAGS | |
571 | CC | |
572 | LN_S | |
573 | STRIP | |
574 | RANLIB | |
575 | NM | |
576 | LIPO | |
577 | AR | |
578 | target_subdir | |
579 | host_subdir | |
580 | build_subdir | |
581 | build_libsubdir | |
582 | host_noncanonical | |
583 | host_os | |
584 | host_vendor | |
585 | host_cpu | |
586 | host | |
587 | build_os | |
588 | build_vendor | |
589 | build_cpu | |
590 | build | |
591 | AWK | |
592 | INSTALL_DATA | |
593 | INSTALL_SCRIPT | |
594 | INSTALL_PROGRAM | |
595 | MAINT | |
596 | slibdir | |
597 | enable_shared | |
598 | libgcc_topdir | |
599 | target_alias | |
600 | host_alias | |
601 | build_alias | |
602 | LIBS | |
603 | ECHO_T | |
604 | ECHO_N | |
605 | ECHO_C | |
606 | DEFS | |
607 | mandir | |
608 | localedir | |
609 | libdir | |
610 | psdir | |
611 | pdfdir | |
612 | dvidir | |
613 | htmldir | |
614 | infodir | |
615 | docdir | |
616 | oldincludedir | |
617 | includedir | |
618 | localstatedir | |
619 | sharedstatedir | |
620 | sysconfdir | |
621 | datadir | |
622 | datarootdir | |
623 | libexecdir | |
624 | sbindir | |
625 | bindir | |
626 | program_transform_name | |
627 | prefix | |
628 | exec_prefix | |
629 | PACKAGE_URL | |
630 | PACKAGE_BUGREPORT | |
631 | PACKAGE_STRING | |
632 | PACKAGE_VERSION | |
633 | PACKAGE_TARNAME | |
634 | PACKAGE_NAME | |
635 | PATH_SEPARATOR | |
636 | SHELL' | |
fa958513 | 637 | ac_subst_files='' |
5213506e RW |
638 | ac_user_opts=' |
639 | enable_option_checking | |
640 | with_target_subdir | |
641 | with_cross_host | |
642 | with_ld | |
643 | enable_shared | |
644 | enable_version_specific_runtime_libs | |
645 | with_slibdir | |
646 | enable_maintainer_mode | |
647 | with_build_libsubdir | |
648 | enable_decimal_float | |
649 | enable_tls | |
650 | ' | |
651 | ac_precious_vars='build_alias | |
652 | host_alias | |
653 | target_alias | |
654 | CC | |
655 | CFLAGS | |
656 | LDFLAGS | |
657 | LIBS | |
658 | CPPFLAGS | |
659 | CPP' | |
660 | ||
fa958513 DJ |
661 | |
662 | # Initialize some variables set by options. | |
663 | ac_init_help= | |
664 | ac_init_version=false | |
5213506e RW |
665 | ac_unrecognized_opts= |
666 | ac_unrecognized_sep= | |
fa958513 DJ |
667 | # The variables have the same names as the options, with |
668 | # dashes changed to underlines. | |
669 | cache_file=/dev/null | |
670 | exec_prefix=NONE | |
671 | no_create= | |
672 | no_recursion= | |
673 | prefix=NONE | |
674 | program_prefix=NONE | |
675 | program_suffix=NONE | |
676 | program_transform_name=s,x,x, | |
677 | silent= | |
678 | site= | |
679 | srcdir= | |
680 | verbose= | |
681 | x_includes=NONE | |
682 | x_libraries=NONE | |
683 | ||
684 | # Installation directory options. | |
685 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
686 | # and all the variables that are supposed to be based on exec_prefix | |
687 | # by default will actually change. | |
688 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 689 | # (The list follows the same order as the GNU Coding Standards.) |
fa958513 DJ |
690 | bindir='${exec_prefix}/bin' |
691 | sbindir='${exec_prefix}/sbin' | |
692 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
693 | datarootdir='${prefix}/share' |
694 | datadir='${datarootdir}' | |
fa958513 DJ |
695 | sysconfdir='${prefix}/etc' |
696 | sharedstatedir='${prefix}/com' | |
697 | localstatedir='${prefix}/var' | |
fa958513 DJ |
698 | includedir='${prefix}/include' |
699 | oldincludedir='/usr/include' | |
5213506e RW |
700 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
701 | infodir='${datarootdir}/info' | |
702 | htmldir='${docdir}' | |
703 | dvidir='${docdir}' | |
704 | pdfdir='${docdir}' | |
705 | psdir='${docdir}' | |
706 | libdir='${exec_prefix}/lib' | |
707 | localedir='${datarootdir}/locale' | |
708 | mandir='${datarootdir}/man' | |
fa958513 DJ |
709 | |
710 | ac_prev= | |
5213506e | 711 | ac_dashdash= |
fa958513 DJ |
712 | for ac_option |
713 | do | |
714 | # If the previous option needs an argument, assign it. | |
715 | if test -n "$ac_prev"; then | |
5213506e | 716 | eval $ac_prev=\$ac_option |
fa958513 DJ |
717 | ac_prev= |
718 | continue | |
719 | fi | |
720 | ||
5213506e RW |
721 | case $ac_option in |
722 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
723 | *) ac_optarg=yes ;; | |
724 | esac | |
fa958513 DJ |
725 | |
726 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
727 | ||
5213506e RW |
728 | case $ac_dashdash$ac_option in |
729 | --) | |
730 | ac_dashdash=yes ;; | |
fa958513 DJ |
731 | |
732 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
733 | ac_prev=bindir ;; | |
734 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
735 | bindir=$ac_optarg ;; | |
736 | ||
737 | -build | --build | --buil | --bui | --bu) | |
738 | ac_prev=build_alias ;; | |
739 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
740 | build_alias=$ac_optarg ;; | |
741 | ||
742 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
743 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
744 | ac_prev=cache_file ;; | |
745 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
746 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
747 | cache_file=$ac_optarg ;; | |
748 | ||
749 | --config-cache | -C) | |
750 | cache_file=config.cache ;; | |
751 | ||
5213506e | 752 | -datadir | --datadir | --datadi | --datad) |
fa958513 | 753 | ac_prev=datadir ;; |
5213506e | 754 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
fa958513 DJ |
755 | datadir=$ac_optarg ;; |
756 | ||
5213506e RW |
757 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
758 | | --dataroo | --dataro | --datar) | |
759 | ac_prev=datarootdir ;; | |
760 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
761 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
762 | datarootdir=$ac_optarg ;; | |
763 | ||
fa958513 | 764 | -disable-* | --disable-*) |
5213506e | 765 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
fa958513 | 766 | # Reject names that are not valid shell variable names. |
5213506e RW |
767 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
768 | as_fn_error "invalid feature name: $ac_useropt" | |
769 | ac_useropt_orig=$ac_useropt | |
770 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
771 | case $ac_user_opts in | |
772 | *" | |
773 | "enable_$ac_useropt" | |
774 | "*) ;; | |
775 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
776 | ac_unrecognized_sep=', ';; | |
777 | esac | |
778 | eval enable_$ac_useropt=no ;; | |
779 | ||
780 | -docdir | --docdir | --docdi | --doc | --do) | |
781 | ac_prev=docdir ;; | |
782 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
783 | docdir=$ac_optarg ;; | |
784 | ||
785 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
786 | ac_prev=dvidir ;; | |
787 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
788 | dvidir=$ac_optarg ;; | |
fa958513 DJ |
789 | |
790 | -enable-* | --enable-*) | |
5213506e | 791 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
fa958513 | 792 | # Reject names that are not valid shell variable names. |
5213506e RW |
793 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
794 | as_fn_error "invalid feature name: $ac_useropt" | |
795 | ac_useropt_orig=$ac_useropt | |
796 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
797 | case $ac_user_opts in | |
798 | *" | |
799 | "enable_$ac_useropt" | |
800 | "*) ;; | |
801 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
802 | ac_unrecognized_sep=', ';; | |
d6efbf5a | 803 | esac |
5213506e | 804 | eval enable_$ac_useropt=\$ac_optarg ;; |
fa958513 DJ |
805 | |
806 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
807 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
808 | | --exec | --exe | --ex) | |
809 | ac_prev=exec_prefix ;; | |
810 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
811 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
812 | | --exec=* | --exe=* | --ex=*) | |
813 | exec_prefix=$ac_optarg ;; | |
814 | ||
815 | -gas | --gas | --ga | --g) | |
816 | # Obsolete; use --with-gas. | |
817 | with_gas=yes ;; | |
818 | ||
819 | -help | --help | --hel | --he | -h) | |
820 | ac_init_help=long ;; | |
821 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
822 | ac_init_help=recursive ;; | |
823 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
824 | ac_init_help=short ;; | |
825 | ||
826 | -host | --host | --hos | --ho) | |
827 | ac_prev=host_alias ;; | |
828 | -host=* | --host=* | --hos=* | --ho=*) | |
829 | host_alias=$ac_optarg ;; | |
830 | ||
5213506e RW |
831 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
832 | ac_prev=htmldir ;; | |
833 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
834 | | --ht=*) | |
835 | htmldir=$ac_optarg ;; | |
836 | ||
fa958513 DJ |
837 | -includedir | --includedir | --includedi | --included | --include \ |
838 | | --includ | --inclu | --incl | --inc) | |
839 | ac_prev=includedir ;; | |
840 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
841 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
842 | includedir=$ac_optarg ;; | |
843 | ||
844 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
845 | ac_prev=infodir ;; | |
846 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
847 | infodir=$ac_optarg ;; | |
848 | ||
849 | -libdir | --libdir | --libdi | --libd) | |
850 | ac_prev=libdir ;; | |
851 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
852 | libdir=$ac_optarg ;; | |
853 | ||
854 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
855 | | --libexe | --libex | --libe) | |
856 | ac_prev=libexecdir ;; | |
857 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
858 | | --libexe=* | --libex=* | --libe=*) | |
859 | libexecdir=$ac_optarg ;; | |
860 | ||
5213506e RW |
861 | -localedir | --localedir | --localedi | --localed | --locale) |
862 | ac_prev=localedir ;; | |
863 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
864 | localedir=$ac_optarg ;; | |
865 | ||
fa958513 | 866 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 867 | | --localstate | --localstat | --localsta | --localst | --locals) |
fa958513 DJ |
868 | ac_prev=localstatedir ;; |
869 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 870 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
fa958513 DJ |
871 | localstatedir=$ac_optarg ;; |
872 | ||
873 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
874 | ac_prev=mandir ;; | |
875 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
876 | mandir=$ac_optarg ;; | |
877 | ||
878 | -nfp | --nfp | --nf) | |
879 | # Obsolete; use --without-fp. | |
880 | with_fp=no ;; | |
881 | ||
882 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
883 | | --no-cr | --no-c | -n) | |
884 | no_create=yes ;; | |
885 | ||
886 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
887 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
888 | no_recursion=yes ;; | |
889 | ||
890 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
891 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
892 | | --oldin | --oldi | --old | --ol | --o) | |
893 | ac_prev=oldincludedir ;; | |
894 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
895 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
896 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
897 | oldincludedir=$ac_optarg ;; | |
898 | ||
899 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
900 | ac_prev=prefix ;; | |
901 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
902 | prefix=$ac_optarg ;; | |
903 | ||
904 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
905 | | --program-pre | --program-pr | --program-p) | |
906 | ac_prev=program_prefix ;; | |
907 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
908 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
909 | program_prefix=$ac_optarg ;; | |
910 | ||
911 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
912 | | --program-suf | --program-su | --program-s) | |
913 | ac_prev=program_suffix ;; | |
914 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
915 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
916 | program_suffix=$ac_optarg ;; | |
917 | ||
918 | -program-transform-name | --program-transform-name \ | |
919 | | --program-transform-nam | --program-transform-na \ | |
920 | | --program-transform-n | --program-transform- \ | |
921 | | --program-transform | --program-transfor \ | |
922 | | --program-transfo | --program-transf \ | |
923 | | --program-trans | --program-tran \ | |
924 | | --progr-tra | --program-tr | --program-t) | |
925 | ac_prev=program_transform_name ;; | |
926 | -program-transform-name=* | --program-transform-name=* \ | |
927 | | --program-transform-nam=* | --program-transform-na=* \ | |
928 | | --program-transform-n=* | --program-transform-=* \ | |
929 | | --program-transform=* | --program-transfor=* \ | |
930 | | --program-transfo=* | --program-transf=* \ | |
931 | | --program-trans=* | --program-tran=* \ | |
932 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
933 | program_transform_name=$ac_optarg ;; | |
934 | ||
5213506e RW |
935 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
936 | ac_prev=pdfdir ;; | |
937 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
938 | pdfdir=$ac_optarg ;; | |
939 | ||
940 | -psdir | --psdir | --psdi | --psd | --ps) | |
941 | ac_prev=psdir ;; | |
942 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
943 | psdir=$ac_optarg ;; | |
944 | ||
fa958513 DJ |
945 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
946 | | -silent | --silent | --silen | --sile | --sil) | |
947 | silent=yes ;; | |
948 | ||
949 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
950 | ac_prev=sbindir ;; | |
951 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
952 | | --sbi=* | --sb=*) | |
953 | sbindir=$ac_optarg ;; | |
954 | ||
955 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
956 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
957 | | --sharedst | --shareds | --shared | --share | --shar \ | |
958 | | --sha | --sh) | |
959 | ac_prev=sharedstatedir ;; | |
960 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
961 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
962 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
963 | | --sha=* | --sh=*) | |
964 | sharedstatedir=$ac_optarg ;; | |
965 | ||
966 | -site | --site | --sit) | |
967 | ac_prev=site ;; | |
968 | -site=* | --site=* | --sit=*) | |
969 | site=$ac_optarg ;; | |
970 | ||
971 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
972 | ac_prev=srcdir ;; | |
973 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
974 | srcdir=$ac_optarg ;; | |
975 | ||
976 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
977 | | --syscon | --sysco | --sysc | --sys | --sy) | |
978 | ac_prev=sysconfdir ;; | |
979 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
980 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
981 | sysconfdir=$ac_optarg ;; | |
982 | ||
983 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
984 | ac_prev=target_alias ;; | |
985 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
986 | target_alias=$ac_optarg ;; | |
987 | ||
988 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
989 | verbose=yes ;; | |
990 | ||
991 | -version | --version | --versio | --versi | --vers | -V) | |
992 | ac_init_version=: ;; | |
993 | ||
994 | -with-* | --with-*) | |
5213506e | 995 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
fa958513 | 996 | # Reject names that are not valid shell variable names. |
5213506e RW |
997 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
998 | as_fn_error "invalid package name: $ac_useropt" | |
999 | ac_useropt_orig=$ac_useropt | |
1000 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1001 | case $ac_user_opts in | |
1002 | *" | |
1003 | "with_$ac_useropt" | |
1004 | "*) ;; | |
1005 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1006 | ac_unrecognized_sep=', ';; | |
d6efbf5a | 1007 | esac |
5213506e | 1008 | eval with_$ac_useropt=\$ac_optarg ;; |
fa958513 DJ |
1009 | |
1010 | -without-* | --without-*) | |
5213506e | 1011 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
fa958513 | 1012 | # Reject names that are not valid shell variable names. |
5213506e RW |
1013 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1014 | as_fn_error "invalid package name: $ac_useropt" | |
1015 | ac_useropt_orig=$ac_useropt | |
1016 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1017 | case $ac_user_opts in | |
1018 | *" | |
1019 | "with_$ac_useropt" | |
1020 | "*) ;; | |
1021 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1022 | ac_unrecognized_sep=', ';; | |
1023 | esac | |
1024 | eval with_$ac_useropt=no ;; | |
fa958513 DJ |
1025 | |
1026 | --x) | |
1027 | # Obsolete; use --with-x. | |
1028 | with_x=yes ;; | |
1029 | ||
1030 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1031 | | --x-incl | --x-inc | --x-in | --x-i) | |
1032 | ac_prev=x_includes ;; | |
1033 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1034 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1035 | x_includes=$ac_optarg ;; | |
1036 | ||
1037 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1038 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1039 | ac_prev=x_libraries ;; | |
1040 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1041 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1042 | x_libraries=$ac_optarg ;; | |
1043 | ||
5213506e RW |
1044 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1045 | Try \`$0 --help' for more information." | |
fa958513 DJ |
1046 | ;; |
1047 | ||
1048 | *=*) | |
1049 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1050 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1051 | case $ac_envvar in #( |
1052 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1053 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1054 | esac | |
1055 | eval $ac_envvar=\$ac_optarg | |
fa958513 DJ |
1056 | export $ac_envvar ;; |
1057 | ||
1058 | *) | |
1059 | # FIXME: should be removed in autoconf 3.0. | |
5213506e | 1060 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
fa958513 | 1061 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1062 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
fa958513 DJ |
1063 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1064 | ;; | |
1065 | ||
1066 | esac | |
1067 | done | |
1068 | ||
1069 | if test -n "$ac_prev"; then | |
1070 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
5213506e | 1071 | as_fn_error "missing argument to $ac_option" |
fa958513 DJ |
1072 | fi |
1073 | ||
5213506e RW |
1074 | if test -n "$ac_unrecognized_opts"; then |
1075 | case $enable_option_checking in | |
1076 | no) ;; | |
1077 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1078 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
d6efbf5a | 1079 | esac |
5213506e | 1080 | fi |
d6efbf5a | 1081 | |
5213506e RW |
1082 | # Check all directory arguments for consistency. |
1083 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1084 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1085 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1086 | libdir localedir mandir | |
d6efbf5a | 1087 | do |
5213506e RW |
1088 | eval ac_val=\$$ac_var |
1089 | # Remove trailing slashes. | |
1090 | case $ac_val in | |
1091 | */ ) | |
1092 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1093 | eval $ac_var=\$ac_val;; | |
1094 | esac | |
1095 | # Be sure to have absolute directory names. | |
d6efbf5a | 1096 | case $ac_val in |
5213506e RW |
1097 | [\\/$]* | ?:[\\/]* ) continue;; |
1098 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
fa958513 | 1099 | esac |
5213506e | 1100 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
fa958513 DJ |
1101 | done |
1102 | ||
1103 | # There might be people who depend on the old broken behavior: `$host' | |
1104 | # used to hold the argument of --host etc. | |
1105 | # FIXME: To remove some day. | |
1106 | build=$build_alias | |
1107 | host=$host_alias | |
1108 | target=$target_alias | |
1109 | ||
1110 | # FIXME: To remove some day. | |
1111 | if test "x$host_alias" != x; then | |
1112 | if test "x$build_alias" = x; then | |
1113 | cross_compiling=maybe | |
5213506e | 1114 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
fa958513 DJ |
1115 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1116 | elif test "x$build_alias" != "x$host_alias"; then | |
1117 | cross_compiling=yes | |
1118 | fi | |
1119 | fi | |
1120 | ||
1121 | ac_tool_prefix= | |
1122 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1123 | ||
1124 | test "$silent" = yes && exec 6>/dev/null | |
1125 | ||
1126 | ||
5213506e RW |
1127 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1128 | ac_ls_di=`ls -di .` && | |
1129 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1130 | as_fn_error "working directory cannot be determined" | |
1131 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1132 | as_fn_error "pwd does not report name of working directory" | |
1133 | ||
1134 | ||
fa958513 DJ |
1135 | # Find the source files, if location was not specified. |
1136 | if test -z "$srcdir"; then | |
1137 | ac_srcdir_defaulted=yes | |
5213506e RW |
1138 | # Try the directory containing this script, then the parent directory. |
1139 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1140 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1141 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1142 | X"$as_myself" : 'X\(//\)$' \| \ | |
1143 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1144 | $as_echo X"$as_myself" | | |
1145 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1146 | s//\1/ | |
1147 | q | |
1148 | } | |
1149 | /^X\(\/\/\)[^/].*/{ | |
1150 | s//\1/ | |
1151 | q | |
1152 | } | |
1153 | /^X\(\/\/\)$/{ | |
1154 | s//\1/ | |
1155 | q | |
1156 | } | |
1157 | /^X\(\/\).*/{ | |
1158 | s//\1/ | |
1159 | q | |
1160 | } | |
1161 | s/.*/./; q'` | |
fa958513 | 1162 | srcdir=$ac_confdir |
5213506e | 1163 | if test ! -r "$srcdir/$ac_unique_file"; then |
fa958513 DJ |
1164 | srcdir=.. |
1165 | fi | |
1166 | else | |
1167 | ac_srcdir_defaulted=no | |
1168 | fi | |
5213506e RW |
1169 | if test ! -r "$srcdir/$ac_unique_file"; then |
1170 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1171 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1172 | fi | |
1173 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1174 | ac_abs_confdir=`( | |
1175 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1176 | pwd)` | |
1177 | # When building in place, set srcdir=. | |
1178 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1179 | srcdir=. | |
1180 | fi | |
1181 | # Remove unnecessary trailing slashes from srcdir. | |
1182 | # Double slashes in file names in object file debugging info | |
1183 | # mess up M-x gdb in Emacs. | |
1184 | case $srcdir in | |
1185 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1186 | esac | |
1187 | for ac_var in $ac_precious_vars; do | |
1188 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1189 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1190 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1191 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1192 | done | |
14e8fc8b | 1193 | |
fa958513 DJ |
1194 | # |
1195 | # Report the --help message. | |
1196 | # | |
1197 | if test "$ac_init_help" = "long"; then | |
1198 | # Omit some internal or obsolete options to make the list less imposing. | |
1199 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1200 | cat <<_ACEOF | |
1201 | \`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems. | |
1202 | ||
1203 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1204 | ||
1205 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1206 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1207 | ||
1208 | Defaults for the options are specified in brackets. | |
1209 | ||
1210 | Configuration: | |
1211 | -h, --help display this help and exit | |
1212 | --help=short display options specific to this package | |
1213 | --help=recursive display the short help of all the included packages | |
1214 | -V, --version display version information and exit | |
1215 | -q, --quiet, --silent do not print \`checking...' messages | |
1216 | --cache-file=FILE cache test results in FILE [disabled] | |
1217 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1218 | -n, --no-create do not create output files | |
1219 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1220 | ||
fa958513 DJ |
1221 | Installation directories: |
1222 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1223 | [$ac_default_prefix] |
fa958513 | 1224 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1225 | [PREFIX] |
fa958513 DJ |
1226 | |
1227 | By default, \`make install' will install all the files in | |
1228 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1229 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1230 | for instance \`--prefix=\$HOME'. | |
1231 | ||
1232 | For better control, use the options below. | |
1233 | ||
1234 | Fine tuning of the installation directories: | |
5213506e RW |
1235 | --bindir=DIR user executables [EPREFIX/bin] |
1236 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1237 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1238 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1239 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1240 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1241 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1242 | --includedir=DIR C header files [PREFIX/include] | |
1243 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1244 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1245 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1246 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1247 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1248 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1249 | --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc] | |
1250 | --htmldir=DIR html documentation [DOCDIR] | |
1251 | --dvidir=DIR dvi documentation [DOCDIR] | |
1252 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1253 | --psdir=DIR ps documentation [DOCDIR] | |
fa958513 DJ |
1254 | _ACEOF |
1255 | ||
1256 | cat <<\_ACEOF | |
1257 | ||
1258 | System types: | |
1259 | --build=BUILD configure for building on BUILD [guessed] | |
1260 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1261 | _ACEOF | |
1262 | fi | |
1263 | ||
1264 | if test -n "$ac_init_help"; then | |
1265 | case $ac_init_help in | |
1266 | short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";; | |
1267 | esac | |
1268 | cat <<\_ACEOF | |
1269 | ||
1270 | Optional Features: | |
5213506e | 1271 | --disable-option-checking ignore unrecognized --enable/--with options |
fa958513 DJ |
1272 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1273 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1274 | --disable-shared don't provide a shared libgcc | |
d6efbf5a | 1275 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
6efbd53f RW |
1276 | --enable-maintainer-mode |
1277 | enable make rules and dependencies not useful (and | |
1278 | sometimes confusing) to the casual installer | |
79b87c74 MM |
1279 | --enable-decimal-float={no,yes,bid,dpd} |
1280 | enable decimal float extension to C. Selecting 'bid' | |
1281 | or 'dpd' choses which decimal floating point format | |
1282 | to use | |
6f461e76 | 1283 | --enable-tls Use thread-local storage [default=yes] |
fa958513 DJ |
1284 | |
1285 | Optional Packages: | |
1286 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1287 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1288 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1289 | --with-cross-host=HOST Configuring with a cross compiler | |
1290 | --with-ld arrange to use the specified ld (full pathname) | |
1291 | --with-slibdir=DIR shared libraries in DIR LIBDIR | |
14e8fc8b | 1292 | --with-build-libsubdir=DIR Directory where to find libraries for build system |
fa958513 DJ |
1293 | |
1294 | Some influential environment variables: | |
1295 | CC C compiler command | |
1296 | CFLAGS C compiler flags | |
1297 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1298 | nonstandard directory <lib dir> | |
5213506e RW |
1299 | LIBS libraries to pass to the linker, e.g. -l<library> |
1300 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1301 | you have headers in a nonstandard directory <include dir> | |
fa958513 DJ |
1302 | CPP C preprocessor |
1303 | ||
1304 | Use these variables to override the choices made by `configure' or to help | |
1305 | it to find libraries and programs with nonstandard names/locations. | |
1306 | ||
5213506e RW |
1307 | Report bugs to the package provider. |
1308 | GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. | |
1309 | General help using GNU software: <http://www.gnu.org/gethelp/>. | |
fa958513 | 1310 | _ACEOF |
5213506e | 1311 | ac_status=$? |
fa958513 DJ |
1312 | fi |
1313 | ||
1314 | if test "$ac_init_help" = "recursive"; then | |
1315 | # If there are subdirs, report their specific --help. | |
fa958513 | 1316 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1317 | test -d "$ac_dir" || |
1318 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1319 | continue | |
fa958513 DJ |
1320 | ac_builddir=. |
1321 | ||
5213506e RW |
1322 | case "$ac_dir" in |
1323 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1324 | *) | |
1325 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1326 | # A ".." for each directory in $ac_dir_suffix. | |
1327 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1328 | case $ac_top_builddir_sub in | |
1329 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1330 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1331 | esac ;; | |
1332 | esac | |
1333 | ac_abs_top_builddir=$ac_pwd | |
1334 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1335 | # for backward compatibility: | |
1336 | ac_top_builddir=$ac_top_build_prefix | |
fa958513 DJ |
1337 | |
1338 | case $srcdir in | |
5213506e | 1339 | .) # We are building in place. |
fa958513 | 1340 | ac_srcdir=. |
5213506e RW |
1341 | ac_top_srcdir=$ac_top_builddir_sub |
1342 | ac_abs_top_srcdir=$ac_pwd ;; | |
1343 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fa958513 | 1344 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1345 | ac_top_srcdir=$srcdir |
1346 | ac_abs_top_srcdir=$srcdir ;; | |
1347 | *) # Relative name. | |
1348 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1349 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1350 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fa958513 | 1351 | esac |
5213506e RW |
1352 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1353 | ||
1354 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1355 | # Check for guested configure. | |
1356 | if test -f "$ac_srcdir/configure.gnu"; then | |
1357 | echo && | |
1358 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1359 | elif test -f "$ac_srcdir/configure"; then | |
1360 | echo && | |
1361 | $SHELL "$ac_srcdir/configure" --help=recursive | |
fa958513 | 1362 | else |
5213506e RW |
1363 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1364 | fi || ac_status=$? | |
1365 | cd "$ac_pwd" || { ac_status=$?; break; } | |
fa958513 DJ |
1366 | done |
1367 | fi | |
1368 | ||
5213506e | 1369 | test -n "$ac_init_help" && exit $ac_status |
fa958513 DJ |
1370 | if $ac_init_version; then |
1371 | cat <<\_ACEOF | |
1372 | GNU C Runtime Library configure 1.0 | |
5213506e | 1373 | generated by GNU Autoconf 2.64 |
fa958513 | 1374 | |
5213506e | 1375 | Copyright (C) 2009 Free Software Foundation, Inc. |
fa958513 DJ |
1376 | This configure script is free software; the Free Software Foundation |
1377 | gives unlimited permission to copy, distribute and modify it. | |
1378 | _ACEOF | |
5213506e | 1379 | exit |
fa958513 | 1380 | fi |
5213506e RW |
1381 | |
1382 | ## ------------------------ ## | |
1383 | ## Autoconf initialization. ## | |
1384 | ## ------------------------ ## | |
1385 | ||
1386 | # ac_fn_c_try_compile LINENO | |
1387 | # -------------------------- | |
1388 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1389 | ac_fn_c_try_compile () | |
1390 | { | |
1391 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1392 | rm -f conftest.$ac_objext | |
1393 | if { { ac_try="$ac_compile" | |
1394 | case "(($ac_try" in | |
1395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1396 | *) ac_try_echo=$ac_try;; | |
1397 | esac | |
1398 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1399 | $as_echo "$ac_try_echo"; } >&5 | |
1400 | (eval "$ac_compile") 2>conftest.err | |
1401 | ac_status=$? | |
1402 | if test -s conftest.err; then | |
1403 | grep -v '^ *+' conftest.err >conftest.er1 | |
1404 | cat conftest.er1 >&5 | |
1405 | mv -f conftest.er1 conftest.err | |
1406 | fi | |
1407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1408 | test $ac_status = 0; } && { | |
1409 | test -z "$ac_c_werror_flag" || | |
1410 | test ! -s conftest.err | |
1411 | } && test -s conftest.$ac_objext; then : | |
1412 | ac_retval=0 | |
1413 | else | |
1414 | $as_echo "$as_me: failed program was:" >&5 | |
1415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1416 | ||
1417 | ac_retval=1 | |
1418 | fi | |
1419 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1420 | return $ac_retval | |
1421 | ||
1422 | } # ac_fn_c_try_compile | |
1423 | ||
1424 | # ac_fn_c_try_cpp LINENO | |
1425 | # ---------------------- | |
1426 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1427 | ac_fn_c_try_cpp () | |
1428 | { | |
1429 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1430 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1431 | case "(($ac_try" in | |
1432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1433 | *) ac_try_echo=$ac_try;; | |
1434 | esac | |
1435 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1436 | $as_echo "$ac_try_echo"; } >&5 | |
1437 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1438 | ac_status=$? | |
1439 | if test -s conftest.err; then | |
1440 | grep -v '^ *+' conftest.err >conftest.er1 | |
1441 | cat conftest.er1 >&5 | |
1442 | mv -f conftest.er1 conftest.err | |
1443 | fi | |
1444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1445 | test $ac_status = 0; } >/dev/null && { | |
1446 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1447 | test ! -s conftest.err | |
1448 | }; then : | |
1449 | ac_retval=0 | |
1450 | else | |
1451 | $as_echo "$as_me: failed program was:" >&5 | |
1452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1453 | ||
1454 | ac_retval=1 | |
1455 | fi | |
1456 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1457 | return $ac_retval | |
1458 | ||
1459 | } # ac_fn_c_try_cpp | |
1460 | cat >config.log <<_ACEOF | |
fa958513 DJ |
1461 | This file contains any messages produced by compilers while |
1462 | running configure, to aid debugging if configure makes a mistake. | |
1463 | ||
1464 | It was created by GNU C Runtime Library $as_me 1.0, which was | |
5213506e | 1465 | generated by GNU Autoconf 2.64. Invocation command line was |
fa958513 DJ |
1466 | |
1467 | $ $0 $@ | |
1468 | ||
1469 | _ACEOF | |
5213506e | 1470 | exec 5>>config.log |
fa958513 DJ |
1471 | { |
1472 | cat <<_ASUNAME | |
1473 | ## --------- ## | |
1474 | ## Platform. ## | |
1475 | ## --------- ## | |
1476 | ||
1477 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1478 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1479 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1480 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1481 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1482 | ||
1483 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1484 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1485 | ||
1486 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1487 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1488 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1489 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
fa958513 DJ |
1490 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1491 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1492 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1493 | ||
1494 | _ASUNAME | |
1495 | ||
1496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1497 | for as_dir in $PATH | |
1498 | do | |
1499 | IFS=$as_save_IFS | |
1500 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1501 | $as_echo "PATH: $as_dir" |
1502 | done | |
1503 | IFS=$as_save_IFS | |
fa958513 DJ |
1504 | |
1505 | } >&5 | |
1506 | ||
1507 | cat >&5 <<_ACEOF | |
1508 | ||
1509 | ||
1510 | ## ----------- ## | |
1511 | ## Core tests. ## | |
1512 | ## ----------- ## | |
1513 | ||
1514 | _ACEOF | |
1515 | ||
1516 | ||
1517 | # Keep a trace of the command line. | |
1518 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1519 | # Strip out --silent because we don't want to record it for future runs. | |
1520 | # Also quote any args containing shell meta-characters. | |
1521 | # Make two passes to allow for proper duplicate-argument suppression. | |
1522 | ac_configure_args= | |
1523 | ac_configure_args0= | |
1524 | ac_configure_args1= | |
fa958513 DJ |
1525 | ac_must_keep_next=false |
1526 | for ac_pass in 1 2 | |
1527 | do | |
1528 | for ac_arg | |
1529 | do | |
1530 | case $ac_arg in | |
1531 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1532 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1533 | | -silent | --silent | --silen | --sile | --sil) | |
1534 | continue ;; | |
5213506e RW |
1535 | *\'*) |
1536 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
fa958513 DJ |
1537 | esac |
1538 | case $ac_pass in | |
5213506e | 1539 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
fa958513 | 1540 | 2) |
5213506e | 1541 | as_fn_append ac_configure_args1 " '$ac_arg'" |
fa958513 DJ |
1542 | if test $ac_must_keep_next = true; then |
1543 | ac_must_keep_next=false # Got value, back to normal. | |
1544 | else | |
1545 | case $ac_arg in | |
1546 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1547 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1548 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1549 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1550 | case "$ac_configure_args0 " in | |
1551 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1552 | esac | |
1553 | ;; | |
1554 | -* ) ac_must_keep_next=true ;; | |
1555 | esac | |
1556 | fi | |
5213506e | 1557 | as_fn_append ac_configure_args " '$ac_arg'" |
fa958513 DJ |
1558 | ;; |
1559 | esac | |
1560 | done | |
1561 | done | |
5213506e RW |
1562 | { ac_configure_args0=; unset ac_configure_args0;} |
1563 | { ac_configure_args1=; unset ac_configure_args1;} | |
fa958513 DJ |
1564 | |
1565 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1566 | # config.log. We remove comments because anyway the quotes in there | |
1567 | # would cause problems or look ugly. | |
5213506e RW |
1568 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1569 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
fa958513 DJ |
1570 | trap 'exit_status=$? |
1571 | # Save into config.log some information that might help in debugging. | |
1572 | { | |
1573 | echo | |
1574 | ||
1575 | cat <<\_ASBOX | |
1576 | ## ---------------- ## | |
1577 | ## Cache variables. ## | |
1578 | ## ---------------- ## | |
1579 | _ASBOX | |
1580 | echo | |
1581 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1582 | ( |
1583 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1584 | eval ac_val=\$$ac_var | |
1585 | case $ac_val in #( | |
1586 | *${as_nl}*) | |
1587 | case $ac_var in #( | |
1588 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1589 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1590 | esac | |
1591 | case $ac_var in #( | |
1592 | _ | IFS | as_nl) ;; #( | |
1593 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1594 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1595 | esac ;; | |
1596 | esac | |
1597 | done | |
fa958513 | 1598 | (set) 2>&1 | |
5213506e RW |
1599 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1600 | *${as_nl}ac_space=\ *) | |
fa958513 | 1601 | sed -n \ |
5213506e RW |
1602 | "s/'\''/'\''\\\\'\'''\''/g; |
1603 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1604 | ;; #( | |
fa958513 | 1605 | *) |
5213506e | 1606 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fa958513 | 1607 | ;; |
5213506e RW |
1608 | esac | |
1609 | sort | |
1610 | ) | |
fa958513 DJ |
1611 | echo |
1612 | ||
1613 | cat <<\_ASBOX | |
1614 | ## ----------------- ## | |
1615 | ## Output variables. ## | |
1616 | ## ----------------- ## | |
1617 | _ASBOX | |
1618 | echo | |
1619 | for ac_var in $ac_subst_vars | |
1620 | do | |
5213506e RW |
1621 | eval ac_val=\$$ac_var |
1622 | case $ac_val in | |
1623 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1624 | esac | |
1625 | $as_echo "$ac_var='\''$ac_val'\''" | |
fa958513 DJ |
1626 | done | sort |
1627 | echo | |
1628 | ||
1629 | if test -n "$ac_subst_files"; then | |
1630 | cat <<\_ASBOX | |
5213506e RW |
1631 | ## ------------------- ## |
1632 | ## File substitutions. ## | |
1633 | ## ------------------- ## | |
fa958513 DJ |
1634 | _ASBOX |
1635 | echo | |
1636 | for ac_var in $ac_subst_files | |
1637 | do | |
5213506e RW |
1638 | eval ac_val=\$$ac_var |
1639 | case $ac_val in | |
1640 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1641 | esac | |
1642 | $as_echo "$ac_var='\''$ac_val'\''" | |
fa958513 DJ |
1643 | done | sort |
1644 | echo | |
1645 | fi | |
1646 | ||
1647 | if test -s confdefs.h; then | |
1648 | cat <<\_ASBOX | |
1649 | ## ----------- ## | |
1650 | ## confdefs.h. ## | |
1651 | ## ----------- ## | |
1652 | _ASBOX | |
1653 | echo | |
5213506e | 1654 | cat confdefs.h |
fa958513 DJ |
1655 | echo |
1656 | fi | |
1657 | test "$ac_signal" != 0 && | |
5213506e RW |
1658 | $as_echo "$as_me: caught signal $ac_signal" |
1659 | $as_echo "$as_me: exit $exit_status" | |
fa958513 | 1660 | } >&5 |
5213506e RW |
1661 | rm -f core *.core core.conftest.* && |
1662 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
fa958513 | 1663 | exit $exit_status |
5213506e | 1664 | ' 0 |
fa958513 | 1665 | for ac_signal in 1 2 13 15; do |
5213506e | 1666 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
fa958513 DJ |
1667 | done |
1668 | ac_signal=0 | |
1669 | ||
1670 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
1671 | rm -f -r conftest* confdefs.h |
1672 | ||
1673 | $as_echo "/* confdefs.h */" > confdefs.h | |
fa958513 DJ |
1674 | |
1675 | # Predefined preprocessor variables. | |
1676 | ||
1677 | cat >>confdefs.h <<_ACEOF | |
1678 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1679 | _ACEOF | |
1680 | ||
fa958513 DJ |
1681 | cat >>confdefs.h <<_ACEOF |
1682 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1683 | _ACEOF | |
1684 | ||
fa958513 DJ |
1685 | cat >>confdefs.h <<_ACEOF |
1686 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1687 | _ACEOF | |
1688 | ||
fa958513 DJ |
1689 | cat >>confdefs.h <<_ACEOF |
1690 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1691 | _ACEOF | |
1692 | ||
fa958513 DJ |
1693 | cat >>confdefs.h <<_ACEOF |
1694 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1695 | _ACEOF | |
1696 | ||
5213506e RW |
1697 | cat >>confdefs.h <<_ACEOF |
1698 | #define PACKAGE_URL "$PACKAGE_URL" | |
1699 | _ACEOF | |
1700 | ||
fa958513 DJ |
1701 | |
1702 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
1703 | # Prefer an explicitly selected file to automatically selected ones. |
1704 | ac_site_file1=NONE | |
1705 | ac_site_file2=NONE | |
1706 | if test -n "$CONFIG_SITE"; then | |
1707 | ac_site_file1=$CONFIG_SITE | |
1708 | elif test "x$prefix" != xNONE; then | |
1709 | ac_site_file1=$prefix/share/config.site | |
1710 | ac_site_file2=$prefix/etc/config.site | |
1711 | else | |
1712 | ac_site_file1=$ac_default_prefix/share/config.site | |
1713 | ac_site_file2=$ac_default_prefix/etc/config.site | |
fa958513 | 1714 | fi |
5213506e RW |
1715 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1716 | do | |
1717 | test "x$ac_site_file" = xNONE && continue | |
fa958513 | 1718 | if test -r "$ac_site_file"; then |
5213506e RW |
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1720 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
fa958513 DJ |
1721 | sed 's/^/| /' "$ac_site_file" >&5 |
1722 | . "$ac_site_file" | |
1723 | fi | |
1724 | done | |
1725 | ||
1726 | if test -r "$cache_file"; then | |
1727 | # Some versions of bash will fail to source /dev/null (special | |
1728 | # files actually), so we avoid doing that. | |
1729 | if test -f "$cache_file"; then | |
5213506e RW |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1731 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
fa958513 | 1732 | case $cache_file in |
5213506e RW |
1733 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1734 | *) . "./$cache_file";; | |
fa958513 DJ |
1735 | esac |
1736 | fi | |
1737 | else | |
5213506e RW |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1739 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
fa958513 DJ |
1740 | >$cache_file |
1741 | fi | |
1742 | ||
1743 | # Check that the precious variables saved in the cache have kept the same | |
1744 | # value. | |
1745 | ac_cache_corrupted=false | |
5213506e | 1746 | for ac_var in $ac_precious_vars; do |
fa958513 DJ |
1747 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1748 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
1749 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1750 | eval ac_new_val=\$ac_env_${ac_var}_value | |
fa958513 DJ |
1751 | case $ac_old_set,$ac_new_set in |
1752 | set,) | |
5213506e RW |
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1754 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
fa958513 DJ |
1755 | ac_cache_corrupted=: ;; |
1756 | ,set) | |
5213506e RW |
1757 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1758 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
fa958513 DJ |
1759 | ac_cache_corrupted=: ;; |
1760 | ,);; | |
1761 | *) | |
1762 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
1763 | # differences in whitespace do not lead to failure. |
1764 | ac_old_val_w=`echo x $ac_old_val` | |
1765 | ac_new_val_w=`echo x $ac_new_val` | |
1766 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1767 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1768 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1769 | ac_cache_corrupted=: | |
1770 | else | |
1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1772 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1773 | eval $ac_var=\$ac_old_val | |
1774 | fi | |
1775 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1776 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1778 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
fa958513 DJ |
1779 | fi;; |
1780 | esac | |
1781 | # Pass precious variables to config.status. | |
1782 | if test "$ac_new_set" = set; then | |
1783 | case $ac_new_val in | |
5213506e | 1784 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
fa958513 DJ |
1785 | *) ac_arg=$ac_var=$ac_new_val ;; |
1786 | esac | |
1787 | case " $ac_configure_args " in | |
1788 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 1789 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
fa958513 DJ |
1790 | esac |
1791 | fi | |
1792 | done | |
1793 | if $ac_cache_corrupted; then | |
5213506e RW |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1795 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1797 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1798 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
fa958513 | 1799 | fi |
5213506e RW |
1800 | ## -------------------- ## |
1801 | ## Main body of script. ## | |
1802 | ## -------------------- ## | |
fa958513 | 1803 | |
d6efbf5a DJ |
1804 | ac_ext=c |
1805 | ac_cpp='$CPP $CPPFLAGS' | |
1806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1809 | ||
fa958513 DJ |
1810 | |
1811 | ||
1812 | ||
1813 | ||
1814 | ||
1815 | ||
1816 | ||
5213506e RW |
1817 | # Check whether --with-target-subdir was given. |
1818 | if test "${with_target_subdir+set}" = set; then : | |
1819 | withval=$with_target_subdir; | |
1820 | fi | |
fa958513 DJ |
1821 | |
1822 | ||
5213506e RW |
1823 | # Check whether --with-cross-host was given. |
1824 | if test "${with_cross_host+set}" = set; then : | |
1825 | withval=$with_cross_host; | |
1826 | fi | |
fa958513 DJ |
1827 | |
1828 | ||
5213506e RW |
1829 | # Check whether --with-ld was given. |
1830 | if test "${with_ld+set}" = set; then : | |
1831 | withval=$with_ld; | |
1832 | fi | |
fa958513 DJ |
1833 | |
1834 | ||
fa958513 DJ |
1835 | if test "${srcdir}" = "."; then |
1836 | if test -n "${with_build_subdir}"; then | |
1837 | libgcc_topdir="${srcdir}/../.." | |
1838 | with_target_subdir= | |
1839 | elif test -z "${with_target_subdir}"; then | |
1840 | libgcc_topdir="${srcdir}/.." | |
1841 | else | |
1842 | if test "${with_target_subdir}" != "."; then | |
1843 | libgcc_topdir="${srcdir}/${with_multisrctop}../.." | |
1844 | else | |
1845 | libgcc_topdir="${srcdir}/${with_multisrctop}.." | |
1846 | fi | |
1847 | fi | |
1848 | else | |
1849 | libgcc_topdir="${srcdir}/.." | |
1850 | fi | |
1851 | ||
1852 | ac_aux_dir= | |
5213506e RW |
1853 | for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do |
1854 | for ac_t in install-sh install.sh shtool; do | |
1855 | if test -f "$ac_dir/$ac_t"; then | |
1856 | ac_aux_dir=$ac_dir | |
1857 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
1858 | break 2 | |
1859 | fi | |
1860 | done | |
fa958513 DJ |
1861 | done |
1862 | if test -z "$ac_aux_dir"; then | |
5213506e | 1863 | as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5 |
fa958513 | 1864 | fi |
5213506e RW |
1865 | |
1866 | # These three variables are undocumented and unsupported, | |
1867 | # and are intended to be withdrawn in a future Autoconf release. | |
1868 | # They can cause serious problems if a builder's source tree is in a directory | |
1869 | # whose full name contains unusual characters. | |
1870 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1871 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1872 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
fa958513 | 1873 | |
fa958513 | 1874 | |
d6efbf5a | 1875 | |
5213506e RW |
1876 | # Check whether --enable-shared was given. |
1877 | if test "${enable_shared+set}" = set; then : | |
1878 | enableval=$enable_shared; | |
fa958513 DJ |
1879 | case $enable_shared in |
1880 | yes | no) ;; | |
1881 | *) | |
1882 | enable_shared=no | |
1883 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
1884 | for pkg in $enableval; do | |
1885 | if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then | |
1886 | enable_shared=yes | |
1887 | fi | |
1888 | done | |
1889 | IFS="$ac_save_ifs" | |
1890 | ;; | |
1891 | esac | |
1892 | ||
1893 | else | |
1894 | enable_shared=yes | |
5213506e RW |
1895 | fi |
1896 | ||
d6efbf5a DJ |
1897 | |
1898 | ||
5213506e RW |
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 |
1900 | $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } | |
1901 | # Check whether --enable-version-specific-runtime-libs was given. | |
1902 | if test "${enable_version_specific_runtime_libs+set}" = set; then : | |
1903 | enableval=$enable_version_specific_runtime_libs; case "$enableval" in | |
d6efbf5a DJ |
1904 | yes) version_specific_libs=yes ;; |
1905 | no) version_specific_libs=no ;; | |
5213506e | 1906 | *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; |
d6efbf5a DJ |
1907 | esac |
1908 | else | |
1909 | version_specific_libs=no | |
5213506e RW |
1910 | fi |
1911 | ||
1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 | |
1913 | $as_echo "$version_specific_libs" >&6; } | |
fa958513 | 1914 | |
14e8fc8b | 1915 | |
5213506e RW |
1916 | # Check whether --with-slibdir was given. |
1917 | if test "${with_slibdir+set}" = set; then : | |
1918 | withval=$with_slibdir; slibdir="$with_slibdir" | |
fa958513 | 1919 | else |
d6efbf5a | 1920 | if test "${version_specific_libs}" = yes; then |
fa958513 | 1921 | slibdir='$(libsubdir)' |
d6efbf5a DJ |
1922 | elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then |
1923 | slibdir='$(exec_prefix)/$(host_noncanonical)/lib' | |
fa958513 DJ |
1924 | else |
1925 | slibdir='$(libdir)' | |
1926 | fi | |
5213506e RW |
1927 | fi |
1928 | ||
fa958513 DJ |
1929 | |
1930 | ||
6efbd53f RW |
1931 | # Command-line options. |
1932 | # Very limited version of AC_MAINTAINER_MODE. | |
5213506e RW |
1933 | # Check whether --enable-maintainer-mode was given. |
1934 | if test "${enable_maintainer_mode+set}" = set; then : | |
1935 | enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in | |
6efbd53f RW |
1936 | yes) MAINT='' ;; |
1937 | no) MAINT='#' ;; | |
5213506e | 1938 | *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;; |
6efbd53f RW |
1939 | esac |
1940 | maintainer_mode=${enableval} | |
1941 | else | |
1942 | MAINT='#' | |
5213506e RW |
1943 | fi |
1944 | ||
6efbd53f | 1945 | |
fa958513 DJ |
1946 | # Find a good install program. We prefer a C program (faster), |
1947 | # so one script is as good as another. But avoid the broken or | |
1948 | # incompatible versions: | |
1949 | # SysV /etc/install, /usr/sbin/install | |
1950 | # SunOS /usr/etc/install | |
1951 | # IRIX /sbin/install | |
1952 | # AIX /bin/install | |
1953 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1954 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1955 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1956 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1957 | # OS/2's system install, which has a completely different semantic | |
1958 | # ./install, which can be erroneously created by make from ./install.sh. | |
5213506e RW |
1959 | # Reject install programs that cannot install multiple files. |
1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
1961 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
fa958513 | 1962 | if test -z "$INSTALL"; then |
5213506e RW |
1963 | if test "${ac_cv_path_install+set}" = set; then : |
1964 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
1965 | else |
1966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1967 | for as_dir in $PATH | |
1968 | do | |
1969 | IFS=$as_save_IFS | |
1970 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1971 | # Account for people who put trailing slashes in PATH elements. |
1972 | case $as_dir/ in #(( | |
1973 | ./ | .// | /[cC]/* | \ | |
fa958513 | 1974 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 1975 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
fa958513 DJ |
1976 | /usr/ucb/* ) ;; |
1977 | *) | |
1978 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1979 | # Don't use installbsd from OSF since it installs stuff as root | |
1980 | # by default. | |
1981 | for ac_prog in ginstall scoinst install; do | |
1982 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 1983 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
fa958513 DJ |
1984 | if test $ac_prog = install && |
1985 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1986 | # AIX install. It has an incompatible calling convention. | |
1987 | : | |
1988 | elif test $ac_prog = install && | |
1989 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1990 | # program-specific install script used by HP pwplus--don't use. | |
1991 | : | |
1992 | else | |
5213506e RW |
1993 | rm -rf conftest.one conftest.two conftest.dir |
1994 | echo one > conftest.one | |
1995 | echo two > conftest.two | |
1996 | mkdir conftest.dir | |
1997 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1998 | test -s conftest.one && test -s conftest.two && | |
1999 | test -s conftest.dir/conftest.one && | |
2000 | test -s conftest.dir/conftest.two | |
2001 | then | |
2002 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2003 | break 3 | |
2004 | fi | |
fa958513 DJ |
2005 | fi |
2006 | fi | |
2007 | done | |
2008 | done | |
2009 | ;; | |
2010 | esac | |
fa958513 | 2011 | |
5213506e RW |
2012 | done |
2013 | IFS=$as_save_IFS | |
2014 | ||
2015 | rm -rf conftest.one conftest.two conftest.dir | |
fa958513 DJ |
2016 | |
2017 | fi | |
2018 | if test "${ac_cv_path_install+set}" = set; then | |
2019 | INSTALL=$ac_cv_path_install | |
2020 | else | |
5213506e RW |
2021 | # As a last resort, use the slow shell script. Don't cache a |
2022 | # value for INSTALL within a source directory, because that will | |
fa958513 | 2023 | # break other packages using the cache if that directory is |
5213506e | 2024 | # removed, or if the value is a relative name. |
fa958513 DJ |
2025 | INSTALL=$ac_install_sh |
2026 | fi | |
2027 | fi | |
5213506e RW |
2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2029 | $as_echo "$INSTALL" >&6; } | |
fa958513 DJ |
2030 | |
2031 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2032 | # It thinks the first close brace ends the variable substitution. | |
2033 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2034 | ||
2035 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2036 | ||
2037 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2038 | ||
2039 | ||
2040 | for ac_prog in gawk mawk nawk awk | |
2041 | do | |
2042 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2043 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2045 | $as_echo_n "checking for $ac_word... " >&6; } | |
2046 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2047 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2048 | else |
2049 | if test -n "$AWK"; then | |
2050 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2051 | else | |
2052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2053 | for as_dir in $PATH | |
2054 | do | |
2055 | IFS=$as_save_IFS | |
2056 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2057 | for ac_exec_ext in '' $ac_executable_extensions; do |
2058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2059 | ac_cv_prog_AWK="$ac_prog" |
5213506e | 2060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2061 | break 2 |
2062 | fi | |
2063 | done | |
5213506e RW |
2064 | done |
2065 | IFS=$as_save_IFS | |
fa958513 DJ |
2066 | |
2067 | fi | |
2068 | fi | |
2069 | AWK=$ac_cv_prog_AWK | |
2070 | if test -n "$AWK"; then | |
5213506e RW |
2071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
2072 | $as_echo "$AWK" >&6; } | |
fa958513 | 2073 | else |
5213506e RW |
2074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2075 | $as_echo "no" >&6; } | |
fa958513 DJ |
2076 | fi |
2077 | ||
5213506e | 2078 | |
fa958513 DJ |
2079 | test -n "$AWK" && break |
2080 | done | |
2081 | ||
2082 | # We need awk; bail out if it's missing. | |
2083 | case ${AWK} in | |
5213506e | 2084 | "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;; |
fa958513 DJ |
2085 | esac |
2086 | ||
2087 | # Make sure we can run config.sub. | |
5213506e RW |
2088 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2089 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
d6efbf5a | 2090 | |
5213506e RW |
2091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
2092 | $as_echo_n "checking build system type... " >&6; } | |
2093 | if test "${ac_cv_build+set}" = set; then : | |
2094 | $as_echo_n "(cached) " >&6 | |
2095 | else | |
2096 | ac_build_alias=$build_alias | |
2097 | test "x$ac_build_alias" = x && | |
2098 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2099 | test "x$ac_build_alias" = x && | |
2100 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2101 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2102 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2103 | ||
2104 | fi | |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2106 | $as_echo "$ac_cv_build" >&6; } | |
2107 | case $ac_cv_build in | |
2108 | *-*-*) ;; | |
2109 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2110 | esac | |
2111 | build=$ac_cv_build | |
2112 | ac_save_IFS=$IFS; IFS='-' | |
2113 | set x $ac_cv_build | |
2114 | shift | |
2115 | build_cpu=$1 | |
2116 | build_vendor=$2 | |
2117 | shift; shift | |
2118 | # Remember, the first character of IFS is used to create $*, | |
2119 | # except with old shells: | |
2120 | build_os=$* | |
2121 | IFS=$ac_save_IFS | |
2122 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2123 | ||
2124 | ||
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2126 | $as_echo_n "checking host system type... " >&6; } | |
2127 | if test "${ac_cv_host+set}" = set; then : | |
2128 | $as_echo_n "(cached) " >&6 | |
fa958513 | 2129 | else |
5213506e RW |
2130 | if test "x$host_alias" = x; then |
2131 | ac_cv_host=$ac_cv_build | |
2132 | else | |
2133 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2134 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2135 | fi | |
fa958513 DJ |
2136 | |
2137 | fi | |
5213506e RW |
2138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2139 | $as_echo "$ac_cv_host" >&6; } | |
2140 | case $ac_cv_host in | |
2141 | *-*-*) ;; | |
2142 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2143 | esac | |
fa958513 | 2144 | host=$ac_cv_host |
5213506e RW |
2145 | ac_save_IFS=$IFS; IFS='-' |
2146 | set x $ac_cv_host | |
2147 | shift | |
2148 | host_cpu=$1 | |
2149 | host_vendor=$2 | |
2150 | shift; shift | |
2151 | # Remember, the first character of IFS is used to create $*, | |
2152 | # except with old shells: | |
2153 | host_os=$* | |
2154 | IFS=$ac_save_IFS | |
2155 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
fa958513 DJ |
2156 | |
2157 | ||
2158 | case ${build_alias} in | |
2159 | "") build_noncanonical=${build} ;; | |
2160 | *) build_noncanonical=${build_alias} ;; | |
2161 | esac | |
2162 | ||
2163 | case ${host_alias} in | |
2164 | "") host_noncanonical=${build_noncanonical} ;; | |
2165 | *) host_noncanonical=${host_alias} ;; | |
2166 | esac | |
2167 | ||
2168 | ||
2169 | ||
14e8fc8b PB |
2170 | case ${target_alias} in |
2171 | "") target_noncanonical=${host_noncanonical} ;; | |
2172 | *) target_noncanonical=${target_alias} ;; | |
2173 | esac | |
2174 | ||
2175 | ||
2176 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to | |
2177 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2178 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2179 | # However, they still use the build modules, because the corresponding | |
2180 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2181 | # finishes. So: | |
2182 | # - build_subdir is where we find build modules, and never changes. | |
2183 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2184 | ||
2185 | # Prefix 'build-' so this never conflicts with target_subdir. | |
2186 | build_subdir="build-${build_noncanonical}" | |
2187 | ||
5213506e RW |
2188 | # Check whether --with-build-libsubdir was given. |
2189 | if test "${with_build_libsubdir+set}" = set; then : | |
2190 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
14e8fc8b PB |
2191 | else |
2192 | build_libsubdir="$build_subdir" | |
5213506e RW |
2193 | fi |
2194 | ||
14e8fc8b PB |
2195 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2196 | if ( test $srcdir = . && test -d gcc ) \ | |
2197 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2198 | host_subdir="host-${host_noncanonical}" | |
2199 | else | |
2200 | host_subdir=. | |
2201 | fi | |
2202 | # No prefix. | |
2203 | target_subdir=${target_noncanonical} | |
2204 | ||
fa958513 DJ |
2205 | |
2206 | if test -n "$ac_tool_prefix"; then | |
2207 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
2208 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5213506e RW |
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2210 | $as_echo_n "checking for $ac_word... " >&6; } | |
2211 | if test "${ac_cv_prog_AR+set}" = set; then : | |
2212 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2213 | else |
2214 | if test -n "$AR"; then | |
2215 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
2216 | else | |
2217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2218 | for as_dir in $PATH | |
2219 | do | |
2220 | IFS=$as_save_IFS | |
2221 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2222 | for ac_exec_ext in '' $ac_executable_extensions; do |
2223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2224 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5213506e | 2225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2226 | break 2 |
2227 | fi | |
2228 | done | |
5213506e RW |
2229 | done |
2230 | IFS=$as_save_IFS | |
fa958513 DJ |
2231 | |
2232 | fi | |
2233 | fi | |
2234 | AR=$ac_cv_prog_AR | |
2235 | if test -n "$AR"; then | |
5213506e RW |
2236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
2237 | $as_echo "$AR" >&6; } | |
fa958513 | 2238 | else |
5213506e RW |
2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2240 | $as_echo "no" >&6; } | |
fa958513 DJ |
2241 | fi |
2242 | ||
5213506e | 2243 | |
fa958513 DJ |
2244 | fi |
2245 | if test -z "$ac_cv_prog_AR"; then | |
2246 | ac_ct_AR=$AR | |
2247 | # Extract the first word of "ar", so it can be a program name with args. | |
2248 | set dummy ar; ac_word=$2 | |
5213506e RW |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2250 | $as_echo_n "checking for $ac_word... " >&6; } | |
2251 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
2252 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2253 | else |
2254 | if test -n "$ac_ct_AR"; then | |
2255 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
2256 | else | |
2257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2258 | for as_dir in $PATH | |
2259 | do | |
2260 | IFS=$as_save_IFS | |
2261 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2262 | for ac_exec_ext in '' $ac_executable_extensions; do |
2263 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2264 | ac_cv_prog_ac_ct_AR="ar" |
5213506e | 2265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2266 | break 2 |
2267 | fi | |
2268 | done | |
5213506e RW |
2269 | done |
2270 | IFS=$as_save_IFS | |
fa958513 DJ |
2271 | |
2272 | fi | |
2273 | fi | |
2274 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
2275 | if test -n "$ac_ct_AR"; then | |
5213506e RW |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
2277 | $as_echo "$ac_ct_AR" >&6; } | |
fa958513 | 2278 | else |
5213506e RW |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2280 | $as_echo "no" >&6; } | |
fa958513 DJ |
2281 | fi |
2282 | ||
5213506e RW |
2283 | if test "x$ac_ct_AR" = x; then |
2284 | AR="" | |
2285 | else | |
2286 | case $cross_compiling:$ac_tool_warned in | |
2287 | yes:) | |
2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2290 | ac_tool_warned=yes ;; | |
2291 | esac | |
2292 | AR=$ac_ct_AR | |
2293 | fi | |
fa958513 DJ |
2294 | else |
2295 | AR="$ac_cv_prog_AR" | |
2296 | fi | |
2297 | ||
2298 | if test -n "$ac_tool_prefix"; then | |
2299 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
2300 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
5213506e RW |
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2302 | $as_echo_n "checking for $ac_word... " >&6; } | |
2303 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
2304 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2305 | else |
2306 | if test -n "$LIPO"; then | |
2307 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
2308 | else | |
2309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 | for as_dir in $PATH | |
2311 | do | |
2312 | IFS=$as_save_IFS | |
2313 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2314 | for ac_exec_ext in '' $ac_executable_extensions; do |
2315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2316 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
5213506e | 2317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2318 | break 2 |
2319 | fi | |
2320 | done | |
5213506e RW |
2321 | done |
2322 | IFS=$as_save_IFS | |
fa958513 DJ |
2323 | |
2324 | fi | |
2325 | fi | |
2326 | LIPO=$ac_cv_prog_LIPO | |
2327 | if test -n "$LIPO"; then | |
5213506e RW |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
2329 | $as_echo "$LIPO" >&6; } | |
fa958513 | 2330 | else |
5213506e RW |
2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2332 | $as_echo "no" >&6; } | |
fa958513 DJ |
2333 | fi |
2334 | ||
5213506e | 2335 | |
fa958513 DJ |
2336 | fi |
2337 | if test -z "$ac_cv_prog_LIPO"; then | |
2338 | ac_ct_LIPO=$LIPO | |
2339 | # Extract the first word of "lipo", so it can be a program name with args. | |
2340 | set dummy lipo; ac_word=$2 | |
5213506e RW |
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2342 | $as_echo_n "checking for $ac_word... " >&6; } | |
2343 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
2344 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2345 | else |
2346 | if test -n "$ac_ct_LIPO"; then | |
2347 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
2348 | else | |
2349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2350 | for as_dir in $PATH | |
2351 | do | |
2352 | IFS=$as_save_IFS | |
2353 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2354 | for ac_exec_ext in '' $ac_executable_extensions; do |
2355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2356 | ac_cv_prog_ac_ct_LIPO="lipo" |
5213506e | 2357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2358 | break 2 |
2359 | fi | |
2360 | done | |
5213506e RW |
2361 | done |
2362 | IFS=$as_save_IFS | |
fa958513 | 2363 | |
fa958513 DJ |
2364 | fi |
2365 | fi | |
2366 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
2367 | if test -n "$ac_ct_LIPO"; then | |
5213506e RW |
2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
2369 | $as_echo "$ac_ct_LIPO" >&6; } | |
fa958513 | 2370 | else |
5213506e RW |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2372 | $as_echo "no" >&6; } | |
fa958513 DJ |
2373 | fi |
2374 | ||
5213506e RW |
2375 | if test "x$ac_ct_LIPO" = x; then |
2376 | LIPO=":" | |
2377 | else | |
2378 | case $cross_compiling:$ac_tool_warned in | |
2379 | yes:) | |
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2382 | ac_tool_warned=yes ;; | |
2383 | esac | |
2384 | LIPO=$ac_ct_LIPO | |
2385 | fi | |
fa958513 DJ |
2386 | else |
2387 | LIPO="$ac_cv_prog_LIPO" | |
2388 | fi | |
2389 | ||
2390 | if test -n "$ac_tool_prefix"; then | |
2391 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
2392 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
5213506e RW |
2393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2394 | $as_echo_n "checking for $ac_word... " >&6; } | |
2395 | if test "${ac_cv_prog_NM+set}" = set; then : | |
2396 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2397 | else |
2398 | if test -n "$NM"; then | |
2399 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
2400 | else | |
2401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2402 | for as_dir in $PATH | |
2403 | do | |
2404 | IFS=$as_save_IFS | |
2405 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2406 | for ac_exec_ext in '' $ac_executable_extensions; do |
2407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2408 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
5213506e | 2409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2410 | break 2 |
2411 | fi | |
2412 | done | |
5213506e RW |
2413 | done |
2414 | IFS=$as_save_IFS | |
fa958513 DJ |
2415 | |
2416 | fi | |
2417 | fi | |
2418 | NM=$ac_cv_prog_NM | |
2419 | if test -n "$NM"; then | |
5213506e RW |
2420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
2421 | $as_echo "$NM" >&6; } | |
fa958513 | 2422 | else |
5213506e RW |
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2424 | $as_echo "no" >&6; } | |
fa958513 DJ |
2425 | fi |
2426 | ||
5213506e | 2427 | |
fa958513 DJ |
2428 | fi |
2429 | if test -z "$ac_cv_prog_NM"; then | |
2430 | ac_ct_NM=$NM | |
2431 | # Extract the first word of "nm", so it can be a program name with args. | |
2432 | set dummy nm; ac_word=$2 | |
5213506e RW |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2434 | $as_echo_n "checking for $ac_word... " >&6; } | |
2435 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : | |
2436 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2437 | else |
2438 | if test -n "$ac_ct_NM"; then | |
2439 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
2440 | else | |
2441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2442 | for as_dir in $PATH | |
2443 | do | |
2444 | IFS=$as_save_IFS | |
2445 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
2447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2448 | ac_cv_prog_ac_ct_NM="nm" |
5213506e | 2449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2450 | break 2 |
2451 | fi | |
2452 | done | |
5213506e RW |
2453 | done |
2454 | IFS=$as_save_IFS | |
fa958513 DJ |
2455 | |
2456 | fi | |
2457 | fi | |
2458 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
2459 | if test -n "$ac_ct_NM"; then | |
5213506e RW |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
2461 | $as_echo "$ac_ct_NM" >&6; } | |
fa958513 | 2462 | else |
5213506e RW |
2463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2464 | $as_echo "no" >&6; } | |
fa958513 DJ |
2465 | fi |
2466 | ||
5213506e RW |
2467 | if test "x$ac_ct_NM" = x; then |
2468 | NM="" | |
2469 | else | |
2470 | case $cross_compiling:$ac_tool_warned in | |
2471 | yes:) | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2473 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2474 | ac_tool_warned=yes ;; | |
2475 | esac | |
2476 | NM=$ac_ct_NM | |
2477 | fi | |
fa958513 DJ |
2478 | else |
2479 | NM="$ac_cv_prog_NM" | |
2480 | fi | |
2481 | ||
2482 | if test -n "$ac_tool_prefix"; then | |
2483 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2484 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5213506e RW |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2486 | $as_echo_n "checking for $ac_word... " >&6; } | |
2487 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
2488 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2489 | else |
2490 | if test -n "$RANLIB"; then | |
2491 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2492 | else | |
2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2494 | for as_dir in $PATH | |
2495 | do | |
2496 | IFS=$as_save_IFS | |
2497 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2498 | for ac_exec_ext in '' $ac_executable_extensions; do |
2499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2500 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5213506e | 2501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2502 | break 2 |
2503 | fi | |
2504 | done | |
5213506e RW |
2505 | done |
2506 | IFS=$as_save_IFS | |
fa958513 DJ |
2507 | |
2508 | fi | |
2509 | fi | |
2510 | RANLIB=$ac_cv_prog_RANLIB | |
2511 | if test -n "$RANLIB"; then | |
5213506e RW |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
2513 | $as_echo "$RANLIB" >&6; } | |
fa958513 | 2514 | else |
5213506e RW |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2516 | $as_echo "no" >&6; } | |
fa958513 DJ |
2517 | fi |
2518 | ||
5213506e | 2519 | |
fa958513 DJ |
2520 | fi |
2521 | if test -z "$ac_cv_prog_RANLIB"; then | |
2522 | ac_ct_RANLIB=$RANLIB | |
2523 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2524 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2526 | $as_echo_n "checking for $ac_word... " >&6; } | |
2527 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
2528 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2529 | else |
2530 | if test -n "$ac_ct_RANLIB"; then | |
2531 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2532 | else | |
2533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2534 | for as_dir in $PATH | |
2535 | do | |
2536 | IFS=$as_save_IFS | |
2537 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2538 | for ac_exec_ext in '' $ac_executable_extensions; do |
2539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2540 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5213506e | 2541 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2542 | break 2 |
2543 | fi | |
2544 | done | |
5213506e RW |
2545 | done |
2546 | IFS=$as_save_IFS | |
fa958513 | 2547 | |
fa958513 DJ |
2548 | fi |
2549 | fi | |
2550 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2551 | if test -n "$ac_ct_RANLIB"; then | |
5213506e RW |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
2553 | $as_echo "$ac_ct_RANLIB" >&6; } | |
fa958513 | 2554 | else |
5213506e RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2556 | $as_echo "no" >&6; } | |
fa958513 DJ |
2557 | fi |
2558 | ||
5213506e RW |
2559 | if test "x$ac_ct_RANLIB" = x; then |
2560 | RANLIB=":" | |
2561 | else | |
2562 | case $cross_compiling:$ac_tool_warned in | |
2563 | yes:) | |
2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2565 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2566 | ac_tool_warned=yes ;; | |
2567 | esac | |
2568 | RANLIB=$ac_ct_RANLIB | |
2569 | fi | |
fa958513 DJ |
2570 | else |
2571 | RANLIB="$ac_cv_prog_RANLIB" | |
2572 | fi | |
2573 | ||
2574 | if test -n "$ac_tool_prefix"; then | |
2575 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2576 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5213506e RW |
2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2578 | $as_echo_n "checking for $ac_word... " >&6; } | |
2579 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2580 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2581 | else |
2582 | if test -n "$STRIP"; then | |
2583 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2584 | else | |
2585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2586 | for as_dir in $PATH | |
2587 | do | |
2588 | IFS=$as_save_IFS | |
2589 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2590 | for ac_exec_ext in '' $ac_executable_extensions; do |
2591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2592 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5213506e | 2593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2594 | break 2 |
2595 | fi | |
2596 | done | |
5213506e RW |
2597 | done |
2598 | IFS=$as_save_IFS | |
fa958513 DJ |
2599 | |
2600 | fi | |
2601 | fi | |
2602 | STRIP=$ac_cv_prog_STRIP | |
2603 | if test -n "$STRIP"; then | |
5213506e RW |
2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
2605 | $as_echo "$STRIP" >&6; } | |
fa958513 | 2606 | else |
5213506e RW |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2608 | $as_echo "no" >&6; } | |
fa958513 DJ |
2609 | fi |
2610 | ||
5213506e | 2611 | |
fa958513 DJ |
2612 | fi |
2613 | if test -z "$ac_cv_prog_STRIP"; then | |
2614 | ac_ct_STRIP=$STRIP | |
2615 | # Extract the first word of "strip", so it can be a program name with args. | |
2616 | set dummy strip; ac_word=$2 | |
5213506e RW |
2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2618 | $as_echo_n "checking for $ac_word... " >&6; } | |
2619 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2620 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2621 | else |
2622 | if test -n "$ac_ct_STRIP"; then | |
2623 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2624 | else | |
2625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2626 | for as_dir in $PATH | |
2627 | do | |
2628 | IFS=$as_save_IFS | |
2629 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2630 | for ac_exec_ext in '' $ac_executable_extensions; do |
2631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2632 | ac_cv_prog_ac_ct_STRIP="strip" |
5213506e | 2633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2634 | break 2 |
2635 | fi | |
2636 | done | |
5213506e RW |
2637 | done |
2638 | IFS=$as_save_IFS | |
fa958513 | 2639 | |
fa958513 DJ |
2640 | fi |
2641 | fi | |
2642 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2643 | if test -n "$ac_ct_STRIP"; then | |
5213506e RW |
2644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
2645 | $as_echo "$ac_ct_STRIP" >&6; } | |
fa958513 | 2646 | else |
5213506e RW |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2648 | $as_echo "no" >&6; } | |
fa958513 DJ |
2649 | fi |
2650 | ||
5213506e RW |
2651 | if test "x$ac_ct_STRIP" = x; then |
2652 | STRIP=":" | |
2653 | else | |
2654 | case $cross_compiling:$ac_tool_warned in | |
2655 | yes:) | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2657 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2658 | ac_tool_warned=yes ;; | |
2659 | esac | |
2660 | STRIP=$ac_ct_STRIP | |
2661 | fi | |
fa958513 DJ |
2662 | else |
2663 | STRIP="$ac_cv_prog_STRIP" | |
2664 | fi | |
2665 | ||
5213506e RW |
2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2667 | $as_echo_n "checking whether ln -s works... " >&6; } | |
fa958513 DJ |
2668 | LN_S=$as_ln_s |
2669 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2671 | $as_echo "yes" >&6; } | |
fa958513 | 2672 | else |
5213506e RW |
2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2674 | $as_echo "no, using $LN_S" >&6; } | |
fa958513 DJ |
2675 | fi |
2676 | ||
2677 | ||
2678 | ||
2679 | ac_ext=c | |
2680 | ac_cpp='$CPP $CPPFLAGS' | |
2681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2684 | if test -n "$ac_tool_prefix"; then | |
2685 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2686 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2688 | $as_echo_n "checking for $ac_word... " >&6; } | |
2689 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2690 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2691 | else |
2692 | if test -n "$CC"; then | |
2693 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2694 | else | |
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2696 | for as_dir in $PATH | |
2697 | do | |
2698 | IFS=$as_save_IFS | |
2699 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2700 | for ac_exec_ext in '' $ac_executable_extensions; do |
2701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2702 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 2703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2704 | break 2 |
2705 | fi | |
2706 | done | |
5213506e RW |
2707 | done |
2708 | IFS=$as_save_IFS | |
fa958513 DJ |
2709 | |
2710 | fi | |
2711 | fi | |
2712 | CC=$ac_cv_prog_CC | |
2713 | if test -n "$CC"; then | |
5213506e RW |
2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2715 | $as_echo "$CC" >&6; } | |
fa958513 | 2716 | else |
5213506e RW |
2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2718 | $as_echo "no" >&6; } | |
fa958513 DJ |
2719 | fi |
2720 | ||
5213506e | 2721 | |
fa958513 DJ |
2722 | fi |
2723 | if test -z "$ac_cv_prog_CC"; then | |
2724 | ac_ct_CC=$CC | |
2725 | # Extract the first word of "gcc", so it can be a program name with args. | |
2726 | set dummy gcc; ac_word=$2 | |
5213506e RW |
2727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2728 | $as_echo_n "checking for $ac_word... " >&6; } | |
2729 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2730 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2731 | else |
2732 | if test -n "$ac_ct_CC"; then | |
2733 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2734 | else | |
2735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2736 | for as_dir in $PATH | |
2737 | do | |
2738 | IFS=$as_save_IFS | |
2739 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2740 | for ac_exec_ext in '' $ac_executable_extensions; do |
2741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2742 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 2743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2744 | break 2 |
2745 | fi | |
2746 | done | |
5213506e RW |
2747 | done |
2748 | IFS=$as_save_IFS | |
fa958513 DJ |
2749 | |
2750 | fi | |
2751 | fi | |
2752 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2753 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2755 | $as_echo "$ac_ct_CC" >&6; } | |
fa958513 | 2756 | else |
5213506e RW |
2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2758 | $as_echo "no" >&6; } | |
fa958513 DJ |
2759 | fi |
2760 | ||
5213506e RW |
2761 | if test "x$ac_ct_CC" = x; then |
2762 | CC="" | |
2763 | else | |
2764 | case $cross_compiling:$ac_tool_warned in | |
2765 | yes:) | |
2766 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2767 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2768 | ac_tool_warned=yes ;; | |
2769 | esac | |
2770 | CC=$ac_ct_CC | |
2771 | fi | |
fa958513 DJ |
2772 | else |
2773 | CC="$ac_cv_prog_CC" | |
2774 | fi | |
2775 | ||
2776 | if test -z "$CC"; then | |
5213506e RW |
2777 | if test -n "$ac_tool_prefix"; then |
2778 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
fa958513 | 2779 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2781 | $as_echo_n "checking for $ac_word... " >&6; } | |
2782 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2783 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2784 | else |
2785 | if test -n "$CC"; then | |
2786 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2787 | else | |
2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2789 | for as_dir in $PATH | |
2790 | do | |
2791 | IFS=$as_save_IFS | |
2792 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2793 | for ac_exec_ext in '' $ac_executable_extensions; do |
2794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2795 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 2796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2797 | break 2 |
2798 | fi | |
2799 | done | |
5213506e RW |
2800 | done |
2801 | IFS=$as_save_IFS | |
fa958513 DJ |
2802 | |
2803 | fi | |
2804 | fi | |
2805 | CC=$ac_cv_prog_CC | |
2806 | if test -n "$CC"; then | |
5213506e RW |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2808 | $as_echo "$CC" >&6; } | |
d6efbf5a | 2809 | else |
5213506e RW |
2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2811 | $as_echo "no" >&6; } | |
d6efbf5a DJ |
2812 | fi |
2813 | ||
d6efbf5a | 2814 | |
5213506e | 2815 | fi |
fa958513 DJ |
2816 | fi |
2817 | if test -z "$CC"; then | |
2818 | # Extract the first word of "cc", so it can be a program name with args. | |
2819 | set dummy cc; ac_word=$2 | |
5213506e RW |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2821 | $as_echo_n "checking for $ac_word... " >&6; } | |
2822 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2823 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2824 | else |
2825 | if test -n "$CC"; then | |
2826 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2827 | else | |
2828 | ac_prog_rejected=no | |
2829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2830 | for as_dir in $PATH | |
2831 | do | |
2832 | IFS=$as_save_IFS | |
2833 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2834 | for ac_exec_ext in '' $ac_executable_extensions; do |
2835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 DJ |
2836 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2837 | ac_prog_rejected=yes | |
2838 | continue | |
2839 | fi | |
2840 | ac_cv_prog_CC="cc" | |
5213506e | 2841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2842 | break 2 |
2843 | fi | |
2844 | done | |
5213506e RW |
2845 | done |
2846 | IFS=$as_save_IFS | |
fa958513 DJ |
2847 | |
2848 | if test $ac_prog_rejected = yes; then | |
2849 | # We found a bogon in the path, so make sure we never use it. | |
2850 | set dummy $ac_cv_prog_CC | |
2851 | shift | |
2852 | if test $# != 0; then | |
2853 | # We chose a different compiler from the bogus one. | |
2854 | # However, it has the same basename, so the bogon will be chosen | |
2855 | # first if we set CC to just the basename; use the full file name. | |
2856 | shift | |
2857 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2858 | fi | |
2859 | fi | |
2860 | fi | |
2861 | fi | |
2862 | CC=$ac_cv_prog_CC | |
2863 | if test -n "$CC"; then | |
5213506e RW |
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2865 | $as_echo "$CC" >&6; } | |
fa958513 | 2866 | else |
5213506e RW |
2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2868 | $as_echo "no" >&6; } | |
fa958513 DJ |
2869 | fi |
2870 | ||
5213506e | 2871 | |
fa958513 DJ |
2872 | fi |
2873 | if test -z "$CC"; then | |
2874 | if test -n "$ac_tool_prefix"; then | |
5213506e | 2875 | for ac_prog in cl.exe |
fa958513 DJ |
2876 | do |
2877 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2878 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2880 | $as_echo_n "checking for $ac_word... " >&6; } | |
2881 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2882 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2883 | else |
2884 | if test -n "$CC"; then | |
2885 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2886 | else | |
2887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2888 | for as_dir in $PATH | |
2889 | do | |
2890 | IFS=$as_save_IFS | |
2891 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2892 | for ac_exec_ext in '' $ac_executable_extensions; do |
2893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2894 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 2895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2896 | break 2 |
2897 | fi | |
2898 | done | |
5213506e RW |
2899 | done |
2900 | IFS=$as_save_IFS | |
fa958513 DJ |
2901 | |
2902 | fi | |
2903 | fi | |
2904 | CC=$ac_cv_prog_CC | |
2905 | if test -n "$CC"; then | |
5213506e RW |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2907 | $as_echo "$CC" >&6; } | |
fa958513 | 2908 | else |
5213506e RW |
2909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2910 | $as_echo "no" >&6; } | |
fa958513 DJ |
2911 | fi |
2912 | ||
5213506e | 2913 | |
fa958513 DJ |
2914 | test -n "$CC" && break |
2915 | done | |
2916 | fi | |
2917 | if test -z "$CC"; then | |
2918 | ac_ct_CC=$CC | |
5213506e | 2919 | for ac_prog in cl.exe |
fa958513 DJ |
2920 | do |
2921 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2922 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2924 | $as_echo_n "checking for $ac_word... " >&6; } | |
2925 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2926 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
2927 | else |
2928 | if test -n "$ac_ct_CC"; then | |
2929 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2930 | else | |
2931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2932 | for as_dir in $PATH | |
2933 | do | |
2934 | IFS=$as_save_IFS | |
2935 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2936 | for ac_exec_ext in '' $ac_executable_extensions; do |
2937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
fa958513 | 2938 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 2939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
fa958513 DJ |
2940 | break 2 |
2941 | fi | |
2942 | done | |
5213506e RW |
2943 | done |
2944 | IFS=$as_save_IFS | |
fa958513 DJ |
2945 | |
2946 | fi | |
2947 | fi | |
2948 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2949 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2951 | $as_echo "$ac_ct_CC" >&6; } | |
fa958513 | 2952 | else |
5213506e RW |
2953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2954 | $as_echo "no" >&6; } | |
fa958513 DJ |
2955 | fi |
2956 | ||
5213506e | 2957 | |
fa958513 DJ |
2958 | test -n "$ac_ct_CC" && break |
2959 | done | |
2960 | ||
5213506e RW |
2961 | if test "x$ac_ct_CC" = x; then |
2962 | CC="" | |
2963 | else | |
2964 | case $cross_compiling:$ac_tool_warned in | |
2965 | yes:) | |
2966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2967 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2968 | ac_tool_warned=yes ;; | |
2969 | esac | |
2970 | CC=$ac_ct_CC | |
2971 | fi | |
fa958513 DJ |
2972 | fi |
2973 | ||
2974 | fi | |
2975 | ||
2976 | ||
5213506e RW |
2977 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2978 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2979 | as_fn_error "no acceptable C compiler found in \$PATH | |
2980 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 DJ |
2981 | |
2982 | # Provide some information about the compiler. | |
5213506e RW |
2983 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2984 | set X $ac_compile | |
2985 | ac_compiler=$2 | |
2986 | for ac_option in --version -v -V -qversion; do | |
2987 | { { ac_try="$ac_compiler $ac_option >&5" | |
2988 | case "(($ac_try" in | |
2989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2990 | *) ac_try_echo=$ac_try;; | |
2991 | esac | |
2992 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2993 | $as_echo "$ac_try_echo"; } >&5 | |
2994 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
fa958513 | 2995 | ac_status=$? |
5213506e RW |
2996 | if test -s conftest.err; then |
2997 | sed '10a\ | |
2998 | ... rest of stderr output deleted ... | |
2999 | 10q' conftest.err >conftest.er1 | |
3000 | cat conftest.er1 >&5 | |
3001 | rm -f conftest.er1 conftest.err | |
3002 | fi | |
3003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3004 | test $ac_status = 0; } | |
3005 | done | |
fa958513 | 3006 | |
5213506e | 3007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3008 | /* end confdefs.h. */ |
3009 | ||
3010 | int | |
3011 | main () | |
3012 | { | |
3013 | ||
3014 | ; | |
3015 | return 0; | |
3016 | } | |
3017 | _ACEOF | |
3018 | # FIXME: Cleanup? | |
5213506e | 3019 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
fa958513 DJ |
3020 | (eval $ac_link) 2>&5 |
3021 | ac_status=$? | |
5213506e RW |
3022 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3023 | test $ac_status = 0; }; then : | |
fa958513 DJ |
3024 | gcc_no_link=no |
3025 | else | |
3026 | gcc_no_link=yes | |
3027 | fi | |
fa958513 DJ |
3028 | if test x$gcc_no_link = xyes; then |
3029 | # Setting cross_compile will disable run tests; it will | |
3030 | # also disable AC_CHECK_FILE but that's generally | |
3031 | # correct if we can't link. | |
3032 | cross_compiling=yes | |
3033 | EXEEXT= | |
3034 | else | |
5213506e | 3035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3036 | /* end confdefs.h. */ |
3037 | ||
3038 | int | |
3039 | main () | |
3040 | { | |
3041 | ||
3042 | ; | |
3043 | return 0; | |
3044 | } | |
3045 | _ACEOF | |
3046 | ac_clean_files_save=$ac_clean_files | |
5213506e | 3047 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
fa958513 DJ |
3048 | # Try to create an executable without -o first, disregard a.out. |
3049 | # It will help us diagnose broken compilers, and finding out an intuition | |
3050 | # of exeext. | |
5213506e RW |
3051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3052 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3053 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3054 | ||
3055 | # The possible output files: | |
3056 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3057 | ||
3058 | ac_rmfiles= | |
3059 | for ac_file in $ac_files | |
3060 | do | |
3061 | case $ac_file in | |
3062 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3063 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3064 | esac | |
3065 | done | |
3066 | rm -f $ac_rmfiles | |
3067 | ||
3068 | if { { ac_try="$ac_link_default" | |
3069 | case "(($ac_try" in | |
3070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3071 | *) ac_try_echo=$ac_try;; | |
3072 | esac | |
3073 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3074 | $as_echo "$ac_try_echo"; } >&5 | |
3075 | (eval "$ac_link_default") 2>&5 | |
fa958513 | 3076 | ac_status=$? |
5213506e RW |
3077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3078 | test $ac_status = 0; }; then : | |
3079 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3080 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3081 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3082 | # so that the user can short-circuit this test for compilers unknown to | |
3083 | # Autoconf. | |
3084 | for ac_file in $ac_files '' | |
fa958513 DJ |
3085 | do |
3086 | test -f "$ac_file" || continue | |
3087 | case $ac_file in | |
5213506e | 3088 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
fa958513 DJ |
3089 | ;; |
3090 | [ab].out ) | |
3091 | # We found the default executable, but exeext='' is most | |
3092 | # certainly right. | |
3093 | break;; | |
3094 | *.* ) | |
5213506e RW |
3095 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3096 | then :; else | |
3097 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3098 | fi | |
3099 | # We set ac_cv_exeext here because the later test for it is not | |
3100 | # safe: cross compilers may not add the suffix if given an `-o' | |
3101 | # argument, so we may need to know it at that point already. | |
3102 | # Even if this section looks crufty: it has the advantage of | |
3103 | # actually working. | |
fa958513 DJ |
3104 | break;; |
3105 | * ) | |
3106 | break;; | |
3107 | esac | |
3108 | done | |
5213506e RW |
3109 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3110 | ||
fa958513 | 3111 | else |
5213506e RW |
3112 | ac_file='' |
3113 | fi | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3115 | $as_echo "$ac_file" >&6; } | |
3116 | if test -z "$ac_file"; then : | |
3117 | $as_echo "$as_me: failed program was:" >&5 | |
fa958513 DJ |
3118 | sed 's/^/| /' conftest.$ac_ext >&5 |
3119 | ||
5213506e RW |
3120 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3121 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3122 | { as_fn_set_status 77 | |
3123 | as_fn_error "C compiler cannot create executables | |
3124 | See \`config.log' for more details." "$LINENO" 5; }; } | |
fa958513 | 3125 | fi |
fa958513 | 3126 | ac_exeext=$ac_cv_exeext |
fa958513 | 3127 | |
5213506e | 3128 | # Check that the compiler produces executables we can run. If not, either |
fa958513 | 3129 | # the compiler is broken, or we cross compile. |
5213506e RW |
3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3131 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
fa958513 DJ |
3132 | # If not cross compiling, check that we can run a simple program. |
3133 | if test "$cross_compiling" != yes; then | |
3134 | if { ac_try='./$ac_file' | |
5213506e RW |
3135 | { { case "(($ac_try" in |
3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3137 | *) ac_try_echo=$ac_try;; | |
3138 | esac | |
3139 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3140 | $as_echo "$ac_try_echo"; } >&5 | |
3141 | (eval "$ac_try") 2>&5 | |
fa958513 | 3142 | ac_status=$? |
5213506e RW |
3143 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3144 | test $ac_status = 0; }; }; then | |
fa958513 DJ |
3145 | cross_compiling=no |
3146 | else | |
3147 | if test "$cross_compiling" = maybe; then | |
3148 | cross_compiling=yes | |
3149 | else | |
5213506e RW |
3150 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3152 | as_fn_error "cannot run C compiled programs. | |
fa958513 | 3153 | If you meant to cross compile, use \`--host'. |
5213506e | 3154 | See \`config.log' for more details." "$LINENO" 5; } |
fa958513 DJ |
3155 | fi |
3156 | fi | |
3157 | fi | |
5213506e RW |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3159 | $as_echo "yes" >&6; } | |
fa958513 | 3160 | |
5213506e | 3161 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
fa958513 | 3162 | ac_clean_files=$ac_clean_files_save |
5213506e | 3163 | # Check that the compiler produces executables we can run. If not, either |
fa958513 | 3164 | # the compiler is broken, or we cross compile. |
5213506e RW |
3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
3166 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3168 | $as_echo "$cross_compiling" >&6; } | |
3169 | ||
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3171 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3172 | if { { ac_try="$ac_link" | |
3173 | case "(($ac_try" in | |
3174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3175 | *) ac_try_echo=$ac_try;; | |
3176 | esac | |
3177 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3178 | $as_echo "$ac_try_echo"; } >&5 | |
3179 | (eval "$ac_link") 2>&5 | |
fa958513 | 3180 | ac_status=$? |
5213506e RW |
3181 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3182 | test $ac_status = 0; }; then : | |
fa958513 DJ |
3183 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3184 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3185 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3186 | # `rm'. | |
3187 | for ac_file in conftest.exe conftest conftest.*; do | |
3188 | test -f "$ac_file" || continue | |
3189 | case $ac_file in | |
5213506e | 3190 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
fa958513 | 3191 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
fa958513 DJ |
3192 | break;; |
3193 | * ) break;; | |
3194 | esac | |
3195 | done | |
3196 | else | |
5213506e RW |
3197 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3198 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3199 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
3200 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 | 3201 | fi |
fa958513 | 3202 | rm -f conftest$ac_cv_exeext |
5213506e RW |
3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3204 | $as_echo "$ac_cv_exeext" >&6; } | |
fa958513 DJ |
3205 | |
3206 | rm -f conftest.$ac_ext | |
3207 | EXEEXT=$ac_cv_exeext | |
3208 | ac_exeext=$EXEEXT | |
3209 | fi | |
5213506e RW |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3211 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3212 | if test "${ac_cv_objext+set}" = set; then : | |
3213 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3214 | else |
5213506e | 3215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3216 | /* end confdefs.h. */ |
3217 | ||
3218 | int | |
3219 | main () | |
3220 | { | |
3221 | ||
3222 | ; | |
3223 | return 0; | |
3224 | } | |
3225 | _ACEOF | |
3226 | rm -f conftest.o conftest.obj | |
5213506e RW |
3227 | if { { ac_try="$ac_compile" |
3228 | case "(($ac_try" in | |
3229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3230 | *) ac_try_echo=$ac_try;; | |
3231 | esac | |
3232 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3233 | $as_echo "$ac_try_echo"; } >&5 | |
3234 | (eval "$ac_compile") 2>&5 | |
fa958513 | 3235 | ac_status=$? |
5213506e RW |
3236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3237 | test $ac_status = 0; }; then : | |
3238 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3239 | test -f "$ac_file" || continue; | |
fa958513 | 3240 | case $ac_file in |
5213506e | 3241 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
fa958513 DJ |
3242 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3243 | break;; | |
3244 | esac | |
3245 | done | |
3246 | else | |
5213506e | 3247 | $as_echo "$as_me: failed program was:" >&5 |
fa958513 DJ |
3248 | sed 's/^/| /' conftest.$ac_ext >&5 |
3249 | ||
5213506e RW |
3250 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3252 | as_fn_error "cannot compute suffix of object files: cannot compile | |
3253 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 | 3254 | fi |
fa958513 DJ |
3255 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3256 | fi | |
5213506e RW |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3258 | $as_echo "$ac_cv_objext" >&6; } | |
fa958513 DJ |
3259 | OBJEXT=$ac_cv_objext |
3260 | ac_objext=$OBJEXT | |
5213506e RW |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3262 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3263 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3264 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3265 | else |
5213506e | 3266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3267 | /* end confdefs.h. */ |
3268 | ||
3269 | int | |
3270 | main () | |
3271 | { | |
3272 | #ifndef __GNUC__ | |
3273 | choke me | |
3274 | #endif | |
3275 | ||
3276 | ; | |
3277 | return 0; | |
3278 | } | |
3279 | _ACEOF | |
5213506e | 3280 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3281 | ac_compiler_gnu=yes |
3282 | else | |
5213506e | 3283 | ac_compiler_gnu=no |
fa958513 | 3284 | fi |
5213506e | 3285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 DJ |
3286 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3287 | ||
3288 | fi | |
5213506e RW |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3290 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3291 | if test $ac_compiler_gnu = yes; then | |
3292 | GCC=yes | |
3293 | else | |
3294 | GCC= | |
3295 | fi | |
fa958513 DJ |
3296 | ac_test_CFLAGS=${CFLAGS+set} |
3297 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
3298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3299 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3300 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3301 | $as_echo_n "(cached) " >&6 | |
3302 | else | |
3303 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3304 | ac_c_werror_flag=yes | |
3305 | ac_cv_prog_cc_g=no | |
3306 | CFLAGS="-g" | |
3307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
fa958513 DJ |
3308 | /* end confdefs.h. */ |
3309 | ||
3310 | int | |
3311 | main () | |
3312 | { | |
3313 | ||
3314 | ; | |
3315 | return 0; | |
3316 | } | |
3317 | _ACEOF | |
5213506e | 3318 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3319 | ac_cv_prog_cc_g=yes |
3320 | else | |
5213506e RW |
3321 | CFLAGS="" |
3322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3323 | /* end confdefs.h. */ | |
3324 | ||
3325 | int | |
3326 | main () | |
3327 | { | |
3328 | ||
3329 | ; | |
3330 | return 0; | |
3331 | } | |
3332 | _ACEOF | |
3333 | if ac_fn_c_try_compile "$LINENO"; then : | |
3334 | ||
3335 | else | |
3336 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3337 | CFLAGS="-g" | |
3338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3339 | /* end confdefs.h. */ | |
3340 | ||
3341 | int | |
3342 | main () | |
3343 | { | |
fa958513 | 3344 | |
5213506e RW |
3345 | ; |
3346 | return 0; | |
3347 | } | |
3348 | _ACEOF | |
3349 | if ac_fn_c_try_compile "$LINENO"; then : | |
3350 | ac_cv_prog_cc_g=yes | |
3351 | fi | |
3352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
fa958513 | 3353 | fi |
5213506e | 3354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 | 3355 | fi |
5213506e RW |
3356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3357 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3358 | fi | |
3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3360 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
fa958513 DJ |
3361 | if test "$ac_test_CFLAGS" = set; then |
3362 | CFLAGS=$ac_save_CFLAGS | |
3363 | elif test $ac_cv_prog_cc_g = yes; then | |
3364 | if test "$GCC" = yes; then | |
3365 | CFLAGS="-g -O2" | |
3366 | else | |
3367 | CFLAGS="-g" | |
3368 | fi | |
3369 | else | |
3370 | if test "$GCC" = yes; then | |
3371 | CFLAGS="-O2" | |
3372 | else | |
3373 | CFLAGS= | |
3374 | fi | |
3375 | fi | |
5213506e RW |
3376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3377 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3378 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3379 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3380 | else |
5213506e | 3381 | ac_cv_prog_cc_c89=no |
fa958513 | 3382 | ac_save_CC=$CC |
5213506e | 3383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3384 | /* end confdefs.h. */ |
3385 | #include <stdarg.h> | |
3386 | #include <stdio.h> | |
3387 | #include <sys/types.h> | |
3388 | #include <sys/stat.h> | |
3389 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3390 | struct buf { int x; }; | |
3391 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3392 | static char *e (p, i) | |
3393 | char **p; | |
3394 | int i; | |
3395 | { | |
3396 | return p[i]; | |
3397 | } | |
3398 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3399 | { | |
3400 | char *s; | |
3401 | va_list v; | |
3402 | va_start (v,p); | |
3403 | s = g (p, va_arg (v,int)); | |
3404 | va_end (v); | |
3405 | return s; | |
3406 | } | |
3407 | ||
3408 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3409 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3410 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 3411 | as 'x'. The following induces an error, until -std is added to get |
fa958513 DJ |
3412 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3413 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 3414 | that's true only with -std. */ |
fa958513 DJ |
3415 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3416 | ||
5213506e RW |
3417 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3418 | inside strings and character constants. */ | |
3419 | #define FOO(x) 'x' | |
3420 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3421 | ||
fa958513 DJ |
3422 | int test (int i, double x); |
3423 | struct s1 {int (*f) (int a);}; | |
3424 | struct s2 {int (*f) (double a);}; | |
3425 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3426 | int argc; | |
3427 | char **argv; | |
3428 | int | |
3429 | main () | |
3430 | { | |
3431 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3432 | ; | |
3433 | return 0; | |
3434 | } | |
3435 | _ACEOF | |
5213506e RW |
3436 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3437 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
fa958513 DJ |
3438 | do |
3439 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
3440 | if ac_fn_c_try_compile "$LINENO"; then : |
3441 | ac_cv_prog_cc_c89=$ac_arg | |
fa958513 | 3442 | fi |
5213506e RW |
3443 | rm -f core conftest.err conftest.$ac_objext |
3444 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
fa958513 | 3445 | done |
5213506e | 3446 | rm -f conftest.$ac_ext |
fa958513 DJ |
3447 | CC=$ac_save_CC |
3448 | ||
3449 | fi | |
5213506e RW |
3450 | # AC_CACHE_VAL |
3451 | case "x$ac_cv_prog_cc_c89" in | |
3452 | x) | |
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3454 | $as_echo "none needed" >&6; } ;; | |
3455 | xno) | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3457 | $as_echo "unsupported" >&6; } ;; | |
fa958513 | 3458 | *) |
5213506e RW |
3459 | CC="$CC $ac_cv_prog_cc_c89" |
3460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3461 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
fa958513 | 3462 | esac |
5213506e | 3463 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
fa958513 | 3464 | |
d6efbf5a | 3465 | fi |
d6efbf5a | 3466 | |
fa958513 DJ |
3467 | ac_ext=c |
3468 | ac_cpp='$CPP $CPPFLAGS' | |
3469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3472 | ||
3473 | ac_ext=c | |
3474 | ac_cpp='$CPP $CPPFLAGS' | |
3475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5213506e RW |
3478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
3479 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
fa958513 DJ |
3480 | # On Suns, sometimes $CPP names a directory. |
3481 | if test -n "$CPP" && test -d "$CPP"; then | |
3482 | CPP= | |
3483 | fi | |
3484 | if test -z "$CPP"; then | |
5213506e RW |
3485 | if test "${ac_cv_prog_CPP+set}" = set; then : |
3486 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3487 | else |
3488 | # Double quotes because CPP needs to be expanded | |
3489 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3490 | do | |
3491 | ac_preproc_ok=false | |
3492 | for ac_c_preproc_warn_flag in '' yes | |
3493 | do | |
3494 | # Use a header file that comes with gcc, so configuring glibc | |
3495 | # with a fresh cross-compiler works. | |
3496 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3497 | # <limits.h> exists even on freestanding compilers. | |
3498 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3499 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3501 | /* end confdefs.h. */ |
3502 | #ifdef __STDC__ | |
3503 | # include <limits.h> | |
3504 | #else | |
3505 | # include <assert.h> | |
3506 | #endif | |
3507 | Syntax error | |
3508 | _ACEOF | |
5213506e | 3509 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 | 3510 | |
5213506e | 3511 | else |
fa958513 DJ |
3512 | # Broken: fails on valid input. |
3513 | continue | |
3514 | fi | |
3515 | rm -f conftest.err conftest.$ac_ext | |
3516 | ||
5213506e | 3517 | # OK, works on sane cases. Now check whether nonexistent headers |
fa958513 | 3518 | # can be detected and how. |
5213506e | 3519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3520 | /* end confdefs.h. */ |
3521 | #include <ac_nonexistent.h> | |
3522 | _ACEOF | |
5213506e | 3523 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 DJ |
3524 | # Broken: success on invalid input. |
3525 | continue | |
3526 | else | |
fa958513 DJ |
3527 | # Passes both tests. |
3528 | ac_preproc_ok=: | |
3529 | break | |
3530 | fi | |
3531 | rm -f conftest.err conftest.$ac_ext | |
3532 | ||
3533 | done | |
3534 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3535 | rm -f conftest.err conftest.$ac_ext | |
5213506e | 3536 | if $ac_preproc_ok; then : |
fa958513 DJ |
3537 | break |
3538 | fi | |
3539 | ||
3540 | done | |
3541 | ac_cv_prog_CPP=$CPP | |
3542 | ||
3543 | fi | |
3544 | CPP=$ac_cv_prog_CPP | |
3545 | else | |
3546 | ac_cv_prog_CPP=$CPP | |
3547 | fi | |
5213506e RW |
3548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3549 | $as_echo "$CPP" >&6; } | |
fa958513 DJ |
3550 | ac_preproc_ok=false |
3551 | for ac_c_preproc_warn_flag in '' yes | |
3552 | do | |
3553 | # Use a header file that comes with gcc, so configuring glibc | |
3554 | # with a fresh cross-compiler works. | |
3555 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3556 | # <limits.h> exists even on freestanding compilers. | |
3557 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3558 | # not just through cpp. "Syntax error" is here to catch this case. | |
5213506e | 3559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3560 | /* end confdefs.h. */ |
3561 | #ifdef __STDC__ | |
3562 | # include <limits.h> | |
3563 | #else | |
3564 | # include <assert.h> | |
3565 | #endif | |
3566 | Syntax error | |
3567 | _ACEOF | |
5213506e | 3568 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 | 3569 | |
5213506e | 3570 | else |
fa958513 DJ |
3571 | # Broken: fails on valid input. |
3572 | continue | |
3573 | fi | |
3574 | rm -f conftest.err conftest.$ac_ext | |
3575 | ||
5213506e | 3576 | # OK, works on sane cases. Now check whether nonexistent headers |
fa958513 | 3577 | # can be detected and how. |
5213506e | 3578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fa958513 DJ |
3579 | /* end confdefs.h. */ |
3580 | #include <ac_nonexistent.h> | |
3581 | _ACEOF | |
5213506e | 3582 | if ac_fn_c_try_cpp "$LINENO"; then : |
fa958513 DJ |
3583 | # Broken: success on invalid input. |
3584 | continue | |
3585 | else | |
fa958513 DJ |
3586 | # Passes both tests. |
3587 | ac_preproc_ok=: | |
3588 | break | |
3589 | fi | |
3590 | rm -f conftest.err conftest.$ac_ext | |
3591 | ||
3592 | done | |
3593 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3594 | rm -f conftest.err conftest.$ac_ext | |
5213506e RW |
3595 | if $ac_preproc_ok; then : |
3596 | ||
fa958513 | 3597 | else |
5213506e RW |
3598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3600 | as_fn_error "C preprocessor \"$CPP\" fails sanity check | |
3601 | See \`config.log' for more details." "$LINENO" 5; } | |
fa958513 DJ |
3602 | fi |
3603 | ||
3604 | ac_ext=c | |
3605 | ac_cpp='$CPP $CPPFLAGS' | |
3606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3609 | ||
3610 | ||
3611 | ac_c_preproc_warn_flag=yes | |
3612 | ||
3613 | # Check for decimal float support. | |
3614 | ||
5213506e RW |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5 |
3616 | $as_echo_n "checking whether decimal floating point is supported... " >&6; } | |
3617 | if test "${libgcc_cv_dfp+set}" = set; then : | |
3618 | $as_echo_n "(cached) " >&6 | |
fa958513 | 3619 | else |
5213506e RW |
3620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3621 | /* end confdefs.h. */ | |
fa958513 DJ |
3622 | _Decimal32 x; |
3623 | _ACEOF | |
5213506e | 3624 | if ac_fn_c_try_compile "$LINENO"; then : |
fa958513 DJ |
3625 | libgcc_cv_dfp=yes |
3626 | else | |
5213506e | 3627 | libgcc_cv_dfp=no |
fa958513 | 3628 | fi |
5213506e | 3629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fa958513 | 3630 | fi |
5213506e RW |
3631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5 |
3632 | $as_echo "$libgcc_cv_dfp" >&6; } | |
fa958513 DJ |
3633 | decimal_float=$libgcc_cv_dfp |
3634 | ||
3635 | ||
5213506e RW |
3636 | # Check whether --enable-decimal-float was given. |
3637 | if test "${enable_decimal_float+set}" = set; then : | |
3638 | enableval=$enable_decimal_float; | |
79b87c74 MM |
3639 | case $enable_decimal_float in |
3640 | yes | no | bid | dpd) ;; | |
5213506e RW |
3641 | *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float. |
3642 | Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;; | |
79b87c74 MM |
3643 | esac |
3644 | ||
3645 | else | |
3646 | ||
96fccd0d | 3647 | case $host in |
79b87c74 MM |
3648 | powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*) |
3649 | enable_decimal_float=yes | |
3650 | ;; | |
3651 | *) | |
3652 | enable_decimal_float=no | |
3653 | ;; | |
3654 | esac | |
3655 | ||
5213506e RW |
3656 | fi |
3657 | ||
79b87c74 MM |
3658 | |
3659 | # x86's use BID format instead of DPD | |
3660 | if test x$enable_decimal_float = xyes; then | |
96fccd0d | 3661 | case $host in |
79b87c74 MM |
3662 | i?86*-*-linux* | x86_64*-*-linux*) |
3663 | enable_decimal_float=bid | |
3664 | ;; | |
3665 | *) | |
3666 | enable_decimal_float=dpd | |
3667 | ;; | |
3668 | esac | |
3669 | fi | |
3670 | ||
3671 | ||
8d2a9e0e | 3672 | # Check for fixed-point support. |
5213506e RW |
3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5 |
3674 | $as_echo_n "checking whether fixed-point is supported... " >&6; } | |
3675 | if test "${libgcc_cv_fixed_point+set}" = set; then : | |
3676 | $as_echo_n "(cached) " >&6 | |
8d2a9e0e | 3677 | else |
5213506e RW |
3678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3679 | /* end confdefs.h. */ | |
8d2a9e0e CF |
3680 | _Sat _Fract x; |
3681 | _ACEOF | |
5213506e | 3682 | if ac_fn_c_try_compile "$LINENO"; then : |
8d2a9e0e CF |
3683 | libgcc_cv_fixed_point=yes |
3684 | else | |
5213506e | 3685 | libgcc_cv_fixed_point=no |
8d2a9e0e | 3686 | fi |
5213506e | 3687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8d2a9e0e | 3688 | fi |
5213506e RW |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5 |
3690 | $as_echo "$libgcc_cv_fixed_point" >&6; } | |
8d2a9e0e CF |
3691 | fixed_point=$libgcc_cv_fixed_point |
3692 | ||
3693 | ||
ff473280 L |
3694 | # Check 32bit or 64bit for x86. |
3695 | case ${host} in | |
3696 | i?86*-*-* | x86_64*-*-*) | |
3697 | cat > conftest.c <<EOF | |
3698 | #ifdef __x86_64__ | |
3699 | host_address=64 | |
3700 | #else | |
3701 | host_address=32 | |
3702 | #endif | |
3703 | EOF | |
3704 | eval `${CC-cc} -E conftest.c | grep host_address=` | |
3705 | rm -f conftest.c | |
3706 | ;; | |
3707 | esac | |
3708 | ||
fa958513 DJ |
3709 | # Collect host-machine-specific information. |
3710 | . ${srcdir}/config.host | |
3711 | ||
19523300 RO |
3712 | # Check if Solaris/x86 linker supports ZERO terminator unwind entries. |
3713 | # This is after config.host so we can augment tmake_file. | |
3714 | # Link with -nostartfiles -nodefaultlibs since neither are present while | |
3715 | # building libgcc. | |
3716 | case ${host} in | |
3717 | i?86-*-solaris2.1[0-9]*) | |
3718 | cat > conftest.s <<EOF | |
3719 | .section .eh_frame,"a",@unwind | |
3720 | .zero 4 | |
3721 | .section .jcr,"aw",@progbits | |
3722 | .zero 8 | |
3723 | EOF | |
3724 | if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5' | |
5213506e | 3725 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
19523300 RO |
3726 | (eval $ac_try) 2>&5 |
3727 | ac_status=$? | |
5213506e RW |
3728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3729 | test $ac_status = 0; }; }; then | |
19523300 RO |
3730 | # configure expects config files in libgcc/config, so need a relative |
3731 | # path here. | |
3732 | tmake_file="${tmake_file} ../../gcc/config/i386/t-crtstuff" | |
3733 | fi | |
3734 | ;; | |
3735 | esac | |
3736 | ||
fa958513 DJ |
3737 | # Check for visibility support. This is after config.host so that |
3738 | # we can check for asm_hidden_op. | |
5213506e RW |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5 |
3740 | $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; } | |
3741 | if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then : | |
3742 | $as_echo_n "(cached) " >&6 | |
fa958513 DJ |
3743 | else |
3744 | ||
3745 | echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c | |
3746 | libgcc_cv_hidden_visibility_attribute=no | |
3747 | if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' | |
5213506e | 3748 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
fa958513 DJ |
3749 | (eval $ac_try) 2>&5 |
3750 | ac_status=$? | |
5213506e RW |
3751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3752 | test $ac_status = 0; }; }; then | |
fa958513 DJ |
3753 | if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then |
3754 | libgcc_cv_hidden_visibility_attribute=yes | |
3755 | fi | |
3756 | fi | |
3757 | rm -f conftest.* | |
3758 | ||
3759 | fi | |
5213506e RW |
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5 |
3761 | $as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; } | |
fa958513 DJ |
3762 | |
3763 | if test $libgcc_cv_hidden_visibility_attribute = yes; then | |
3764 | vis_hide='-fvisibility=hidden -DHIDE_EXPORTS' | |
3765 | else | |
3766 | vis_hide= | |
3767 | fi | |
3768 | ||
3769 | ||
6f461e76 L |
3770 | # See if we have thread-local storage. We can only test assembler |
3771 | # sicne link-time and run-time tests require the newly built | |
3772 | # gcc, which can't be used to build executable due to that libgcc | |
3773 | # is yet to be built here. | |
3774 | ||
5213506e RW |
3775 | # Check whether --enable-tls was given. |
3776 | if test "${enable_tls+set}" = set; then : | |
3777 | enableval=$enable_tls; | |
6f461e76 L |
3778 | case "$enableval" in |
3779 | yes|no) ;; | |
5213506e | 3780 | *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; |
6f461e76 L |
3781 | esac |
3782 | ||
3783 | else | |
3784 | enable_tls=yes | |
5213506e | 3785 | fi |
6f461e76 | 3786 | |
5213506e RW |
3787 | |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5 | |
3789 | $as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; } | |
3790 | if test "${gcc_cv_have_cc_tls+set}" = set; then : | |
3791 | $as_echo_n "(cached) " >&6 | |
6f461e76 L |
3792 | else |
3793 | ||
5213506e RW |
3794 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3795 | /* end confdefs.h. */ | |
6f461e76 L |
3796 | __thread int a; int b; int main() { return a = b; } |
3797 | _ACEOF | |
5213506e | 3798 | if ac_fn_c_try_compile "$LINENO"; then : |
b4e9c2c6 | 3799 | gcc_cv_have_cc_tls=yes |
6f461e76 | 3800 | else |
5213506e | 3801 | gcc_cv_have_cc_tls=no |
6f461e76 | 3802 | fi |
5213506e | 3803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6f461e76 L |
3804 | |
3805 | fi | |
5213506e RW |
3806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5 |
3807 | $as_echo "$gcc_cv_have_cc_tls" >&6; } | |
22867d02 | 3808 | set_have_cc_tls= |
b4e9c2c6 | 3809 | if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then |
6f461e76 L |
3810 | set_have_cc_tls="-DHAVE_CC_TLS" |
3811 | fi | |
3812 | ||
3813 | ||
fa958513 DJ |
3814 | # Conditionalize the makefile for this target machine. |
3815 | tmake_file_= | |
3816 | for f in ${tmake_file} | |
3817 | do | |
3818 | if test -f ${srcdir}/config/$f | |
3819 | then | |
3820 | tmake_file_="${tmake_file_} \$(srcdir)/config/$f" | |
3821 | fi | |
3822 | done | |
3823 | tmake_file="${tmake_file_}" | |
3824 | ||
3825 | ||
3826 | # Substitute configuration variables | |
3827 | ||
3828 | ||
3829 | ||
3830 | # We need multilib support. | |
5213506e | 3831 | ac_config_files="$ac_config_files Makefile" |
fa958513 | 3832 | |
5213506e | 3833 | ac_config_commands="$ac_config_commands default" |
fa958513 DJ |
3834 | |
3835 | cat >confcache <<\_ACEOF | |
3836 | # This file is a shell script that caches the results of configure | |
3837 | # tests run on this system so they can be shared between configure | |
3838 | # scripts and configure runs, see configure's option --config-cache. | |
3839 | # It is not useful on other systems. If it contains results you don't | |
3840 | # want to keep, you may remove or edit it. | |
3841 | # | |
3842 | # config.status only pays attention to the cache file if you give it | |
3843 | # the --recheck option to rerun configure. | |
3844 | # | |
3845 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3846 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3847 | # following values. | |
3848 | ||
3849 | _ACEOF | |
3850 | ||
3851 | # The following way of writing the cache mishandles newlines in values, | |
3852 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 3853 | # So, we kill variables containing newlines. |
fa958513 DJ |
3854 | # Ultrix sh set writes to stderr and can't be redirected directly, |
3855 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
3856 | ( |
3857 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3858 | eval ac_val=\$$ac_var | |
3859 | case $ac_val in #( | |
3860 | *${as_nl}*) | |
3861 | case $ac_var in #( | |
3862 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3863 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3864 | esac | |
3865 | case $ac_var in #( | |
3866 | _ | IFS | as_nl) ;; #( | |
3867 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3868 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3869 | esac ;; | |
3870 | esac | |
3871 | done | |
3872 | ||
fa958513 | 3873 | (set) 2>&1 | |
5213506e RW |
3874 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
3875 | *${as_nl}ac_space=\ *) | |
3876 | # `set' does not quote correctly, so add quotes: double-quote | |
3877 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
fa958513 DJ |
3878 | sed -n \ |
3879 | "s/'/'\\\\''/g; | |
3880 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 3881 | ;; #( |
fa958513 DJ |
3882 | *) |
3883 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 3884 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
fa958513 | 3885 | ;; |
5213506e RW |
3886 | esac | |
3887 | sort | |
3888 | ) | | |
fa958513 | 3889 | sed ' |
5213506e | 3890 | /^ac_cv_env_/b end |
fa958513 | 3891 | t clear |
5213506e | 3892 | :clear |
fa958513 DJ |
3893 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
3894 | t end | |
5213506e RW |
3895 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
3896 | :end' >>confcache | |
3897 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3898 | if test -w "$cache_file"; then | |
3899 | test "x$cache_file" != "x/dev/null" && | |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
3901 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
fa958513 DJ |
3902 | cat confcache >$cache_file |
3903 | else | |
5213506e RW |
3904 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
3905 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
fa958513 DJ |
3906 | fi |
3907 | fi | |
3908 | rm -f confcache | |
3909 | ||
3910 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3911 | # Let make expand exec_prefix. | |
3912 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3913 | ||
fa958513 DJ |
3914 | # Transform confdefs.h into DEFS. |
3915 | # Protect against shell expansion while executing Makefile rules. | |
3916 | # Protect against Makefile macro expansion. | |
3917 | # | |
3918 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 3919 | # take arguments), then branch to the quote section. Otherwise, |
fa958513 | 3920 | # look for a macro that doesn't take arguments. |
5213506e RW |
3921 | ac_script=' |
3922 | :mline | |
3923 | /\\$/{ | |
3924 | N | |
3925 | s,\\\n,, | |
3926 | b mline | |
3927 | } | |
fa958513 | 3928 | t clear |
5213506e RW |
3929 | :clear |
3930 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
fa958513 | 3931 | t quote |
5213506e | 3932 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
fa958513 | 3933 | t quote |
5213506e RW |
3934 | b any |
3935 | :quote | |
3936 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
3937 | s/\[/\\&/g | |
3938 | s/\]/\\&/g | |
3939 | s/\$/$$/g | |
3940 | H | |
3941 | :any | |
3942 | ${ | |
3943 | g | |
3944 | s/^\n// | |
3945 | s/\n/ /g | |
3946 | p | |
3947 | } | |
3948 | ' | |
3949 | DEFS=`sed -n "$ac_script" confdefs.h` | |
fa958513 DJ |
3950 | |
3951 | ||
3952 | ac_libobjs= | |
3953 | ac_ltlibobjs= | |
3954 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3955 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
3956 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3957 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3958 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3959 | # will be set to the directory where LIBOBJS objects are built. | |
3960 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3961 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
fa958513 DJ |
3962 | done |
3963 | LIBOBJS=$ac_libobjs | |
3964 | ||
3965 | LTLIBOBJS=$ac_ltlibobjs | |
3966 | ||
3967 | ||
3968 | ||
3969 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 3970 | ac_write_fail=0 |
fa958513 DJ |
3971 | ac_clean_files_save=$ac_clean_files |
3972 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
3974 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3975 | as_write_fail=0 | |
3976 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
fa958513 DJ |
3977 | #! $SHELL |
3978 | # Generated by $as_me. | |
3979 | # Run this file to recreate the current configuration. | |
3980 | # Compiler output produced by configure, useful for debugging | |
3981 | # configure, is in config.log if it exists. | |
3982 | ||
3983 | debug=false | |
3984 | ac_cs_recheck=false | |
3985 | ac_cs_silent=false | |
fa958513 | 3986 | |
5213506e RW |
3987 | SHELL=\${CONFIG_SHELL-$SHELL} |
3988 | export SHELL | |
3989 | _ASEOF | |
3990 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3991 | ## -------------------- ## | |
3992 | ## M4sh Initialization. ## | |
3993 | ## -------------------- ## | |
3994 | ||
3995 | # Be more Bourne compatible | |
3996 | DUALCASE=1; export DUALCASE # for MKS sh | |
3997 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
fa958513 DJ |
3998 | emulate sh |
3999 | NULLCMD=: | |
5213506e | 4000 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
fa958513 DJ |
4001 | # is contrary to our usage. Disable this feature. |
4002 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
4003 | setopt NO_GLOB_SUBST |
4004 | else | |
4005 | case `(set -o) 2>/dev/null` in #( | |
4006 | *posix*) : | |
4007 | set -o posix ;; #( | |
4008 | *) : | |
4009 | ;; | |
4010 | esac | |
fa958513 | 4011 | fi |
fa958513 | 4012 | |
5213506e RW |
4013 | |
4014 | as_nl=' | |
4015 | ' | |
4016 | export as_nl | |
4017 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
4018 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4019 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
4020 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
4021 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
4022 | # but without wasting forks for bash or zsh. | |
4023 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
4024 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4025 | as_echo='print -r --' | |
4026 | as_echo_n='print -rn --' | |
4027 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
4028 | as_echo='printf %s\n' | |
4029 | as_echo_n='printf %s' | |
fa958513 | 4030 | else |
5213506e RW |
4031 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
4032 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
4033 | as_echo_n='/usr/ucb/echo -n' | |
4034 | else | |
4035 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
4036 | as_echo_n_body='eval | |
4037 | arg=$1; | |
4038 | case $arg in #( | |
4039 | *"$as_nl"*) | |
4040 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
4041 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
4042 | esac; | |
4043 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
4044 | ' | |
4045 | export as_echo_n_body | |
4046 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
4047 | fi | |
4048 | export as_echo_body | |
4049 | as_echo='sh -c $as_echo_body as_echo' | |
4050 | fi | |
4051 | ||
4052 | # The user is always right. | |
4053 | if test "${PATH_SEPARATOR+set}" != set; then | |
4054 | PATH_SEPARATOR=: | |
4055 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
4056 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
4057 | PATH_SEPARATOR=';' | |
4058 | } | |
fa958513 DJ |
4059 | fi |
4060 | ||
4061 | ||
5213506e RW |
4062 | # IFS |
4063 | # We need space, tab and new line, in precisely that order. Quoting is | |
4064 | # there to prevent editors from complaining about space-tab. | |
4065 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
4066 | # splitting by setting IFS to empty value.) | |
4067 | IFS=" "" $as_nl" | |
4068 | ||
4069 | # Find who we are. Look in the path if we contain no directory separator. | |
4070 | case $0 in #(( | |
4071 | *[\\/]* ) as_myself=$0 ;; | |
4072 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4073 | for as_dir in $PATH | |
4074 | do | |
4075 | IFS=$as_save_IFS | |
4076 | test -z "$as_dir" && as_dir=. | |
4077 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
4078 | done | |
4079 | IFS=$as_save_IFS | |
4080 | ||
4081 | ;; | |
4082 | esac | |
4083 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
4084 | # in which case we are not to be found in the path. | |
4085 | if test "x$as_myself" = x; then | |
4086 | as_myself=$0 | |
4087 | fi | |
4088 | if test ! -f "$as_myself"; then | |
4089 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
4090 | exit 1 | |
4091 | fi | |
4092 | ||
4093 | # Unset variables that we do not need and which cause bugs (e.g. in | |
4094 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
4095 | # suppresses any "Segmentation fault" message there. '((' could | |
4096 | # trigger a bug in pdksh 5.2.14. | |
4097 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
4098 | do eval test x\${$as_var+set} = xset \ | |
4099 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
4100 | done | |
fa958513 DJ |
4101 | PS1='$ ' |
4102 | PS2='> ' | |
4103 | PS4='+ ' | |
4104 | ||
4105 | # NLS nuisances. | |
5213506e RW |
4106 | LC_ALL=C |
4107 | export LC_ALL | |
4108 | LANGUAGE=C | |
4109 | export LANGUAGE | |
4110 | ||
4111 | # CDPATH. | |
4112 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
4113 | ||
4114 | ||
4115 | # as_fn_error ERROR [LINENO LOG_FD] | |
4116 | # --------------------------------- | |
4117 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
4118 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
4119 | # script with status $?, using 1 if that was 0. | |
4120 | as_fn_error () | |
4121 | { | |
4122 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
4123 | if test "$3"; then | |
4124 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
4125 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
fa958513 | 4126 | fi |
5213506e RW |
4127 | $as_echo "$as_me: error: $1" >&2 |
4128 | as_fn_exit $as_status | |
4129 | } # as_fn_error | |
4130 | ||
fa958513 | 4131 | |
5213506e RW |
4132 | # as_fn_set_status STATUS |
4133 | # ----------------------- | |
4134 | # Set $? to STATUS, without forking. | |
4135 | as_fn_set_status () | |
4136 | { | |
4137 | return $1 | |
4138 | } # as_fn_set_status | |
4139 | ||
4140 | # as_fn_exit STATUS | |
4141 | # ----------------- | |
4142 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
4143 | as_fn_exit () | |
4144 | { | |
4145 | set +e | |
4146 | as_fn_set_status $1 | |
4147 | exit $1 | |
4148 | } # as_fn_exit | |
4149 | ||
4150 | # as_fn_unset VAR | |
4151 | # --------------- | |
4152 | # Portably unset VAR. | |
4153 | as_fn_unset () | |
4154 | { | |
4155 | { eval $1=; unset $1;} | |
4156 | } | |
4157 | as_unset=as_fn_unset | |
4158 | # as_fn_append VAR VALUE | |
4159 | # ---------------------- | |
4160 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
4161 | # advantage of any shell optimizations that allow amortized linear growth over | |
4162 | # repeated appends, instead of the typical quadratic growth present in naive | |
4163 | # implementations. | |
4164 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
4165 | eval 'as_fn_append () | |
4166 | { | |
4167 | eval $1+=\$2 | |
4168 | }' | |
4169 | else | |
4170 | as_fn_append () | |
4171 | { | |
4172 | eval $1=\$$1\$2 | |
4173 | } | |
4174 | fi # as_fn_append | |
4175 | ||
4176 | # as_fn_arith ARG... | |
4177 | # ------------------ | |
4178 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
4179 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
4180 | # must be portable across $(()) and expr. | |
4181 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
4182 | eval 'as_fn_arith () | |
4183 | { | |
4184 | as_val=$(( $* )) | |
4185 | }' | |
4186 | else | |
4187 | as_fn_arith () | |
4188 | { | |
4189 | as_val=`expr "$@" || test $? -eq 1` | |
4190 | } | |
4191 | fi # as_fn_arith | |
4192 | ||
4193 | ||
4194 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
4195 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
fa958513 DJ |
4196 | as_expr=expr |
4197 | else | |
4198 | as_expr=false | |
4199 | fi | |
4200 | ||
5213506e | 4201 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
fa958513 DJ |
4202 | as_basename=basename |
4203 | else | |
4204 | as_basename=false | |
4205 | fi | |
4206 | ||
5213506e RW |
4207 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
4208 | as_dirname=dirname | |
4209 | else | |
4210 | as_dirname=false | |
4211 | fi | |
fa958513 | 4212 | |
5213506e | 4213 | as_me=`$as_basename -- "$0" || |
fa958513 DJ |
4214 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4215 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
4216 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4217 | $as_echo X/"$0" | | |
4218 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
4219 | s//\1/ | |
4220 | q | |
4221 | } | |
4222 | /^X\/\(\/\/\)$/{ | |
4223 | s//\1/ | |
4224 | q | |
4225 | } | |
4226 | /^X\/\(\/\).*/{ | |
4227 | s//\1/ | |
4228 | q | |
4229 | } | |
4230 | s/.*/./; q'` | |
fa958513 | 4231 | |
d6efbf5a DJ |
4232 | # Avoid depending upon Character Ranges. |
4233 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
4234 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
4235 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
4236 | as_cr_digits='0123456789' | |
4237 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
fa958513 | 4238 | |
5213506e RW |
4239 | ECHO_C= ECHO_N= ECHO_T= |
4240 | case `echo -n x` in #((((( | |
4241 | -n*) | |
4242 | case `echo 'xy\c'` in | |
4243 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
4244 | xy) ECHO_C='\c';; | |
4245 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
4246 | ECHO_T=' ';; | |
4247 | esac;; | |
4248 | *) | |
4249 | ECHO_N='-n';; | |
fa958513 DJ |
4250 | esac |
4251 | ||
5213506e RW |
4252 | rm -f conf$$ conf$$.exe conf$$.file |
4253 | if test -d conf$$.dir; then | |
4254 | rm -f conf$$.dir/conf$$.file | |
fa958513 | 4255 | else |
5213506e RW |
4256 | rm -f conf$$.dir |
4257 | mkdir conf$$.dir 2>/dev/null | |
fa958513 | 4258 | fi |
5213506e RW |
4259 | if (echo >conf$$.file) 2>/dev/null; then |
4260 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
d6efbf5a | 4261 | as_ln_s='ln -s' |
5213506e RW |
4262 | # ... but there are two gotchas: |
4263 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
4264 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
4265 | # In both cases, we have to default to `cp -p'. | |
4266 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
4267 | as_ln_s='cp -p' | |
4268 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
4269 | as_ln_s=ln | |
4270 | else | |
4271 | as_ln_s='cp -p' | |
d6efbf5a | 4272 | fi |
fa958513 DJ |
4273 | else |
4274 | as_ln_s='cp -p' | |
4275 | fi | |
5213506e RW |
4276 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
4277 | rmdir conf$$.dir 2>/dev/null | |
4278 | ||
4279 | ||
4280 | # as_fn_mkdir_p | |
4281 | # ------------- | |
4282 | # Create "$as_dir" as a directory, including parents if necessary. | |
4283 | as_fn_mkdir_p () | |
4284 | { | |
4285 | ||
4286 | case $as_dir in #( | |
4287 | -*) as_dir=./$as_dir;; | |
4288 | esac | |
4289 | test -d "$as_dir" || eval $as_mkdir_p || { | |
4290 | as_dirs= | |
4291 | while :; do | |
4292 | case $as_dir in #( | |
4293 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4294 | *) as_qdir=$as_dir;; | |
4295 | esac | |
4296 | as_dirs="'$as_qdir' $as_dirs" | |
4297 | as_dir=`$as_dirname -- "$as_dir" || | |
4298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4299 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4300 | X"$as_dir" : 'X\(//\)$' \| \ | |
4301 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4302 | $as_echo X"$as_dir" | | |
4303 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4304 | s//\1/ | |
4305 | q | |
4306 | } | |
4307 | /^X\(\/\/\)[^/].*/{ | |
4308 | s//\1/ | |
4309 | q | |
4310 | } | |
4311 | /^X\(\/\/\)$/{ | |
4312 | s//\1/ | |
4313 | q | |
4314 | } | |
4315 | /^X\(\/\).*/{ | |
4316 | s//\1/ | |
4317 | q | |
4318 | } | |
4319 | s/.*/./; q'` | |
4320 | test -d "$as_dir" && break | |
4321 | done | |
4322 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4323 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
fa958513 | 4324 | |
5213506e RW |
4325 | |
4326 | } # as_fn_mkdir_p | |
fa958513 | 4327 | if mkdir -p . 2>/dev/null; then |
5213506e | 4328 | as_mkdir_p='mkdir -p "$as_dir"' |
fa958513 DJ |
4329 | else |
4330 | test -d ./-p && rmdir ./-p | |
4331 | as_mkdir_p=false | |
4332 | fi | |
4333 | ||
5213506e RW |
4334 | if test -x / >/dev/null 2>&1; then |
4335 | as_test_x='test -x' | |
4336 | else | |
4337 | if ls -dL / >/dev/null 2>&1; then | |
4338 | as_ls_L_option=L | |
4339 | else | |
4340 | as_ls_L_option= | |
4341 | fi | |
4342 | as_test_x=' | |
4343 | eval sh -c '\'' | |
4344 | if test -d "$1"; then | |
4345 | test -d "$1/."; | |
4346 | else | |
4347 | case $1 in #( | |
4348 | -*)set "./$1";; | |
4349 | esac; | |
4350 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
4351 | ???[sx]*):;;*)false;;esac;fi | |
4352 | '\'' sh | |
4353 | ' | |
4354 | fi | |
4355 | as_executable_p=$as_test_x | |
fa958513 DJ |
4356 | |
4357 | # Sed expression to map a string onto a valid CPP name. | |
4358 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
4359 | ||
4360 | # Sed expression to map a string onto a valid variable name. | |
4361 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
4362 | ||
4363 | ||
fa958513 | 4364 | exec 6>&1 |
5213506e RW |
4365 | ## ----------------------------------- ## |
4366 | ## Main body of $CONFIG_STATUS script. ## | |
4367 | ## ----------------------------------- ## | |
4368 | _ASEOF | |
4369 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
4370 | ||
4371 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4372 | # Save the log message, to keep $0 and so on meaningful, and to | |
fa958513 | 4373 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
4374 | # values after options handling. |
4375 | ac_log=" | |
fa958513 | 4376 | This file was extended by GNU C Runtime Library $as_me 1.0, which was |
5213506e | 4377 | generated by GNU Autoconf 2.64. Invocation command line was |
fa958513 DJ |
4378 | |
4379 | CONFIG_FILES = $CONFIG_FILES | |
4380 | CONFIG_HEADERS = $CONFIG_HEADERS | |
4381 | CONFIG_LINKS = $CONFIG_LINKS | |
4382 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
4383 | $ $0 $@ | |
4384 | ||
5213506e RW |
4385 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
4386 | " | |
4387 | ||
fa958513 DJ |
4388 | _ACEOF |
4389 | ||
5213506e RW |
4390 | case $ac_config_files in *" |
4391 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4392 | esac | |
fa958513 | 4393 | |
d6efbf5a | 4394 | |
d6efbf5a | 4395 | |
5213506e RW |
4396 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4397 | # Files that config.status was made for. | |
4398 | config_files="$ac_config_files" | |
4399 | config_commands="$ac_config_commands" | |
fa958513 | 4400 | |
5213506e | 4401 | _ACEOF |
d6efbf5a | 4402 | |
5213506e | 4403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fa958513 | 4404 | ac_cs_usage="\ |
5213506e RW |
4405 | \`$as_me' instantiates files and other configuration actions |
4406 | from templates according to the current configuration. Unless the files | |
4407 | and actions are specified as TAGs, all are instantiated by default. | |
fa958513 | 4408 | |
5213506e | 4409 | Usage: $0 [OPTION]... [TAG]... |
fa958513 DJ |
4410 | |
4411 | -h, --help print this help, then exit | |
5213506e RW |
4412 | -V, --version print version number and configuration settings, then exit |
4413 | -q, --quiet, --silent | |
4414 | do not print progress messages | |
fa958513 DJ |
4415 | -d, --debug don't remove temporary files |
4416 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
4417 | --file=FILE[:TEMPLATE] |
4418 | instantiate the configuration file FILE | |
fa958513 DJ |
4419 | |
4420 | Configuration files: | |
4421 | $config_files | |
4422 | ||
4423 | Configuration commands: | |
4424 | $config_commands | |
4425 | ||
5213506e RW |
4426 | Report bugs to the package provider. |
4427 | GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>. | |
4428 | General help using GNU software: <http://www.gnu.org/gethelp/>." | |
d6efbf5a | 4429 | |
5213506e RW |
4430 | _ACEOF |
4431 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fa958513 DJ |
4432 | ac_cs_version="\\ |
4433 | GNU C Runtime Library config.status 1.0 | |
5213506e RW |
4434 | configured by $0, generated by GNU Autoconf 2.64, |
4435 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
fa958513 | 4436 | |
5213506e | 4437 | Copyright (C) 2009 Free Software Foundation, Inc. |
fa958513 DJ |
4438 | This config.status script is free software; the Free Software Foundation |
4439 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
4440 | |
4441 | ac_pwd='$ac_pwd' | |
4442 | srcdir='$srcdir' | |
4443 | INSTALL='$INSTALL' | |
4444 | AWK='$AWK' | |
4445 | test -n "\$AWK" || AWK=awk | |
fa958513 DJ |
4446 | _ACEOF |
4447 | ||
5213506e RW |
4448 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4449 | # The default lists apply if the user does not specify any file. | |
fa958513 DJ |
4450 | ac_need_defaults=: |
4451 | while test $# != 0 | |
4452 | do | |
4453 | case $1 in | |
4454 | --*=*) | |
5213506e RW |
4455 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
4456 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
fa958513 DJ |
4457 | ac_shift=: |
4458 | ;; | |
5213506e | 4459 | *) |
fa958513 DJ |
4460 | ac_option=$1 |
4461 | ac_optarg=$2 | |
4462 | ac_shift=shift | |
4463 | ;; | |
fa958513 DJ |
4464 | esac |
4465 | ||
4466 | case $ac_option in | |
4467 | # Handling of the options. | |
fa958513 DJ |
4468 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4469 | ac_cs_recheck=: ;; | |
5213506e RW |
4470 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4471 | $as_echo "$ac_cs_version"; exit ;; | |
4472 | --debug | --debu | --deb | --de | --d | -d ) | |
fa958513 DJ |
4473 | debug=: ;; |
4474 | --file | --fil | --fi | --f ) | |
4475 | $ac_shift | |
5213506e RW |
4476 | case $ac_optarg in |
4477 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4478 | esac | |
4479 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
d6efbf5a | 4480 | ac_need_defaults=false;; |
5213506e RW |
4481 | --he | --h | --help | --hel | -h ) |
4482 | $as_echo "$ac_cs_usage"; exit ;; | |
fa958513 DJ |
4483 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
4484 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4485 | ac_cs_silent=: ;; | |
4486 | ||
4487 | # This is an error. | |
5213506e RW |
4488 | -*) as_fn_error "unrecognized option: \`$1' |
4489 | Try \`$0 --help' for more information." ;; | |
fa958513 | 4490 | |
5213506e RW |
4491 | *) as_fn_append ac_config_targets " $1" |
4492 | ac_need_defaults=false ;; | |
fa958513 DJ |
4493 | |
4494 | esac | |
4495 | shift | |
4496 | done | |
4497 | ||
4498 | ac_configure_extra_args= | |
4499 | ||
4500 | if $ac_cs_silent; then | |
4501 | exec 6>/dev/null | |
4502 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4503 | fi | |
4504 | ||
4505 | _ACEOF | |
5213506e | 4506 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
fa958513 | 4507 | if \$ac_cs_recheck; then |
5213506e RW |
4508 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
4509 | shift | |
4510 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4511 | CONFIG_SHELL='$SHELL' | |
4512 | export CONFIG_SHELL | |
4513 | exec "\$@" | |
fa958513 DJ |
4514 | fi |
4515 | ||
4516 | _ACEOF | |
5213506e RW |
4517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4518 | exec 5>>config.log | |
4519 | { | |
4520 | echo | |
4521 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4522 | ## Running $as_me. ## | |
4523 | _ASBOX | |
4524 | $as_echo "$ac_log" | |
4525 | } >&5 | |
fa958513 | 4526 | |
5213506e RW |
4527 | _ACEOF |
4528 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
fa958513 | 4529 | # |
5213506e | 4530 | # INIT-COMMANDS |
fa958513 | 4531 | # |
fa958513 DJ |
4532 | srcdir=${srcdir} |
4533 | host=${host} | |
fa958513 DJ |
4534 | with_target_subdir=${with_target_subdir} |
4535 | with_multisubdir=${with_multisubdir} | |
4536 | ac_configure_args="--enable-multilib ${ac_configure_args}" | |
4537 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
4538 | libgcc_topdir=${libgcc_topdir} | |
4539 | CC="${CC}" | |
4540 | ||
4541 | ||
4542 | _ACEOF | |
4543 | ||
5213506e | 4544 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14e8fc8b | 4545 | |
5213506e | 4546 | # Handling of arguments. |
fa958513 DJ |
4547 | for ac_config_target in $ac_config_targets |
4548 | do | |
5213506e RW |
4549 | case $ac_config_target in |
4550 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
4551 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
4552 | ||
4553 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
fa958513 DJ |
4554 | esac |
4555 | done | |
4556 | ||
5213506e | 4557 | |
fa958513 DJ |
4558 | # If the user did not use the arguments to specify the items to instantiate, |
4559 | # then the envvar interface is used. Set only those that are not. | |
4560 | # We use the long form for the default assignment because of an extremely | |
4561 | # bizarre bug on SunOS 4.1.3. | |
4562 | if $ac_need_defaults; then | |
4563 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4564 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
4565 | fi | |
4566 | ||
4567 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 4568 | # simply because there is no reason against having it here, and in addition, |
fa958513 | 4569 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
4570 | # Hook for its removal unless debugging. |
4571 | # Note that there is a small window in which the directory will not be cleaned: | |
4572 | # after its creation but before its name has been assigned to `$tmp'. | |
fa958513 DJ |
4573 | $debug || |
4574 | { | |
5213506e RW |
4575 | tmp= |
4576 | trap 'exit_status=$? | |
4577 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
4578 | ' 0 | |
4579 | trap 'as_fn_exit 1' 1 2 13 15 | |
fa958513 | 4580 | } |
fa958513 DJ |
4581 | # Create a (secure) tmp directory for tmp files. |
4582 | ||
4583 | { | |
5213506e | 4584 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
fa958513 DJ |
4585 | test -n "$tmp" && test -d "$tmp" |
4586 | } || | |
4587 | { | |
5213506e RW |
4588 | tmp=./conf$$-$RANDOM |
4589 | (umask 077 && mkdir "$tmp") | |
4590 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
4591 | ||
4592 | # Set up the scripts for CONFIG_FILES section. | |
4593 | # No need to generate them if there are no CONFIG_FILES. | |
4594 | # This happens for instance with `./config.status config.h'. | |
4595 | if test -n "$CONFIG_FILES"; then | |
4596 | ||
4597 | ||
4598 | ac_cr=`echo X | tr X '\015'` | |
4599 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
4600 | # But we know of no other shell where ac_cr would be empty at this | |
4601 | # point, so we can use a bashism as a fallback. | |
4602 | if test "x$ac_cr" = x; then | |
4603 | eval ac_cr=\$\'\\r\' | |
4604 | fi | |
4605 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4606 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4607 | ac_cs_awk_cr='\r' | |
4608 | else | |
4609 | ac_cs_awk_cr=$ac_cr | |
4610 | fi | |
4611 | ||
4612 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
4613 | _ACEOF | |
4614 | ||
4615 | ||
4616 | { | |
4617 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4618 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4619 | echo "_ACEOF" | |
4620 | } >conf$$subs.sh || | |
4621 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4622 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
4623 | ac_delim='%!_!# ' | |
4624 | for ac_last_try in false false false false false :; do | |
4625 | . ./conf$$subs.sh || | |
4626 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4627 | ||
4628 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4629 | if test $ac_delim_n = $ac_delim_num; then | |
4630 | break | |
4631 | elif $ac_last_try; then | |
4632 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
4633 | else | |
4634 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4635 | fi | |
4636 | done | |
4637 | rm -f conf$$subs.sh | |
4638 | ||
4639 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4640 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
4641 | _ACEOF | |
4642 | sed -n ' | |
4643 | h | |
4644 | s/^/S["/; s/!.*/"]=/ | |
4645 | p | |
4646 | g | |
4647 | s/^[^!]*!// | |
4648 | :repl | |
4649 | t repl | |
4650 | s/'"$ac_delim"'$// | |
4651 | t delim | |
4652 | :nl | |
4653 | h | |
4654 | s/\(.\{148\}\).*/\1/ | |
4655 | t more1 | |
4656 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4657 | p | |
4658 | n | |
4659 | b repl | |
4660 | :more1 | |
4661 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4662 | p | |
4663 | g | |
4664 | s/.\{148\}// | |
4665 | t nl | |
4666 | :delim | |
4667 | h | |
4668 | s/\(.\{148\}\).*/\1/ | |
4669 | t more2 | |
4670 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4671 | p | |
4672 | b | |
4673 | :more2 | |
4674 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4675 | p | |
4676 | g | |
4677 | s/.\{148\}// | |
4678 | t delim | |
4679 | ' <conf$$subs.awk | sed ' | |
4680 | /^[^""]/{ | |
4681 | N | |
4682 | s/\n// | |
4683 | } | |
4684 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4685 | rm -f conf$$subs.awk | |
4686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4687 | _ACAWK | |
4688 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
4689 | for (key in S) S_is_set[key] = 1 | |
4690 | FS = "\a" | |
4691 | ||
4692 | } | |
fa958513 | 4693 | { |
5213506e RW |
4694 | line = $ 0 |
4695 | nfields = split(line, field, "@") | |
4696 | substed = 0 | |
4697 | len = length(field[1]) | |
4698 | for (i = 2; i < nfields; i++) { | |
4699 | key = field[i] | |
4700 | keylen = length(key) | |
4701 | if (S_is_set[key]) { | |
4702 | value = S[key] | |
4703 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4704 | len += length(value) + length(field[++i]) | |
4705 | substed = 1 | |
4706 | } else | |
4707 | len += 1 + keylen | |
4708 | } | |
4709 | ||
4710 | print line | |
fa958513 DJ |
4711 | } |
4712 | ||
5213506e RW |
4713 | _ACAWK |
4714 | _ACEOF | |
4715 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4716 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4717 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4718 | else | |
4719 | cat | |
4720 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
4721 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
d6efbf5a DJ |
4722 | _ACEOF |
4723 | ||
5213506e RW |
4724 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
4725 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4726 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4727 | # (actually we leave an empty line to preserve line numbers). | |
4728 | if test "x$srcdir" = x.; then | |
4729 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4730 | s/:*\$(srcdir):*/:/ | |
4731 | s/:*\${srcdir}:*/:/ | |
4732 | s/:*@srcdir@:*/:/ | |
4733 | s/^\([^=]*=[ ]*\):*/\1/ | |
4734 | s/:*$// | |
4735 | s/^[^=]*=[ ]*$// | |
4736 | }' | |
4737 | fi | |
d6efbf5a | 4738 | |
5213506e RW |
4739 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4740 | fi # test -n "$CONFIG_FILES" | |
fa958513 | 4741 | |
fa958513 | 4742 | |
5213506e RW |
4743 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
4744 | shift | |
4745 | for ac_tag | |
4746 | do | |
4747 | case $ac_tag in | |
4748 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4749 | esac | |
4750 | case $ac_mode$ac_tag in | |
4751 | :[FHL]*:*);; | |
4752 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
4753 | :[FH]-) ac_tag=-:-;; | |
4754 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4755 | esac | |
4756 | ac_save_IFS=$IFS | |
4757 | IFS=: | |
4758 | set x $ac_tag | |
4759 | IFS=$ac_save_IFS | |
4760 | shift | |
4761 | ac_file=$1 | |
4762 | shift | |
fa958513 | 4763 | |
5213506e RW |
4764 | case $ac_mode in |
4765 | :L) ac_source=$1;; | |
4766 | :[FH]) | |
4767 | ac_file_inputs= | |
4768 | for ac_f | |
4769 | do | |
4770 | case $ac_f in | |
4771 | -) ac_f="$tmp/stdin";; | |
4772 | *) # Look for the file first in the build tree, then in the source tree | |
4773 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
4774 | # because $ac_f cannot contain `:'. | |
4775 | test -f "$ac_f" || | |
4776 | case $ac_f in | |
4777 | [\\/$]*) false;; | |
4778 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4779 | esac || | |
4780 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
4781 | esac | |
4782 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
4783 | as_fn_append ac_file_inputs " '$ac_f'" | |
4784 | done | |
4785 | ||
4786 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4787 | # use $as_me), people would be surprised to read: | |
4788 | # /* config.h. Generated by config.status. */ | |
4789 | configure_input='Generated from '` | |
4790 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
4791 | `' by configure.' | |
4792 | if test x"$ac_file" != x-; then | |
4793 | configure_input="$ac_file. $configure_input" | |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
4795 | $as_echo "$as_me: creating $ac_file" >&6;} | |
d6efbf5a | 4796 | fi |
5213506e RW |
4797 | # Neutralize special characters interpreted by sed in replacement strings. |
4798 | case $configure_input in #( | |
4799 | *\&* | *\|* | *\\* ) | |
4800 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
4801 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
4802 | *) ac_sed_conf_input=$configure_input;; | |
4803 | esac | |
14e8fc8b | 4804 | |
5213506e RW |
4805 | case $ac_tag in |
4806 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
4807 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
4808 | esac | |
4809 | ;; | |
14e8fc8b PB |
4810 | esac |
4811 | ||
5213506e | 4812 | ac_dir=`$as_dirname -- "$ac_file" || |
fa958513 DJ |
4813 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4814 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4815 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
4816 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
4817 | $as_echo X"$ac_file" | | |
4818 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4819 | s//\1/ | |
4820 | q | |
4821 | } | |
4822 | /^X\(\/\/\)[^/].*/{ | |
4823 | s//\1/ | |
4824 | q | |
4825 | } | |
4826 | /^X\(\/\/\)$/{ | |
4827 | s//\1/ | |
4828 | q | |
4829 | } | |
4830 | /^X\(\/\).*/{ | |
4831 | s//\1/ | |
4832 | q | |
4833 | } | |
4834 | s/.*/./; q'` | |
4835 | as_dir="$ac_dir"; as_fn_mkdir_p | |
fa958513 DJ |
4836 | ac_builddir=. |
4837 | ||
5213506e RW |
4838 | case "$ac_dir" in |
4839 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4840 | *) | |
4841 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4842 | # A ".." for each directory in $ac_dir_suffix. | |
4843 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4844 | case $ac_top_builddir_sub in | |
4845 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4846 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4847 | esac ;; | |
4848 | esac | |
4849 | ac_abs_top_builddir=$ac_pwd | |
4850 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4851 | # for backward compatibility: | |
4852 | ac_top_builddir=$ac_top_build_prefix | |
fa958513 DJ |
4853 | |
4854 | case $srcdir in | |
5213506e | 4855 | .) # We are building in place. |
fa958513 | 4856 | ac_srcdir=. |
5213506e RW |
4857 | ac_top_srcdir=$ac_top_builddir_sub |
4858 | ac_abs_top_srcdir=$ac_pwd ;; | |
4859 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
fa958513 | 4860 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
4861 | ac_top_srcdir=$srcdir |
4862 | ac_abs_top_srcdir=$srcdir ;; | |
4863 | *) # Relative name. | |
4864 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
4865 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
4866 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
fa958513 | 4867 | esac |
5213506e | 4868 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
fa958513 | 4869 | |
fa958513 | 4870 | |
5213506e RW |
4871 | case $ac_mode in |
4872 | :F) | |
4873 | # | |
4874 | # CONFIG_FILE | |
4875 | # | |
fa958513 DJ |
4876 | |
4877 | case $INSTALL in | |
4878 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 4879 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
fa958513 | 4880 | esac |
5213506e | 4881 | _ACEOF |
14e8fc8b | 4882 | |
5213506e RW |
4883 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
4884 | # If the template does not know about datarootdir, expand it. | |
4885 | # FIXME: This hack should be removed a few years after 2.60. | |
4886 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
4887 | ac_sed_dataroot=' | |
4888 | /datarootdir/ { | |
4889 | p | |
4890 | q | |
4891 | } | |
4892 | /@datadir@/p | |
4893 | /@docdir@/p | |
4894 | /@infodir@/p | |
4895 | /@localedir@/p | |
4896 | /@mandir@/p' | |
4897 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
4898 | *datarootdir*) ac_datarootdir_seen=yes;; | |
4899 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4901 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4902 | _ACEOF | |
4903 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4904 | ac_datarootdir_hack=' | |
4905 | s&@datadir@&$datadir&g | |
4906 | s&@docdir@&$docdir&g | |
4907 | s&@infodir@&$infodir&g | |
4908 | s&@localedir@&$localedir&g | |
4909 | s&@mandir@&$mandir&g | |
4910 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
4911 | esac | |
fa958513 | 4912 | _ACEOF |
5213506e RW |
4913 | |
4914 | # Neutralize VPATH when `$srcdir' = `.'. | |
4915 | # Shell code in configure.ac might set extrasub. | |
4916 | # FIXME: do we really want to maintain this feature? | |
4917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4918 | ac_sed_extra="$ac_vpsub | |
fa958513 DJ |
4919 | $extrasub |
4920 | _ACEOF | |
5213506e | 4921 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
fa958513 DJ |
4922 | :t |
4923 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
4924 | s|@configure_input@|$ac_sed_conf_input|;t t |
4925 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4926 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
4927 | s&@srcdir@&$ac_srcdir&;t t | |
4928 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4929 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
4930 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
4931 | s&@builddir@&$ac_builddir&;t t | |
4932 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
4933 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
4934 | s&@INSTALL@&$ac_INSTALL&;t t | |
4935 | $ac_datarootdir_hack | |
4936 | " | |
4937 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
4938 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4939 | ||
4940 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4941 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
4942 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4944 | which seems to be undefined. Please make sure it is defined." >&5 | |
4945 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4946 | which seems to be undefined. Please make sure it is defined." >&2;} | |
4947 | ||
4948 | rm -f "$tmp/stdin" | |
4949 | case $ac_file in | |
4950 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
4951 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
4952 | esac \ | |
4953 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
4954 | ;; | |
d6efbf5a | 4955 | |
d6efbf5a | 4956 | |
5213506e RW |
4957 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
4958 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
4959 | ;; | |
4960 | esac | |
d6efbf5a DJ |
4961 | |
4962 | ||
5213506e RW |
4963 | case $ac_file$ac_mode in |
4964 | "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
fa958513 DJ |
4965 | if test -n "$CONFIG_FILES"; then |
4966 | # FIXME: We shouldn't need to set ac_file | |
4967 | ac_file=Makefile | |
4968 | . ${libgcc_topdir}/config-ml.in | |
4969 | fi ;; | |
5213506e | 4970 | |
fa958513 | 4971 | esac |
5213506e | 4972 | done # for ac_tag |
fa958513 | 4973 | |
fa958513 | 4974 | |
5213506e | 4975 | as_fn_exit 0 |
fa958513 | 4976 | _ACEOF |
fa958513 DJ |
4977 | ac_clean_files=$ac_clean_files_save |
4978 | ||
5213506e RW |
4979 | test $ac_write_fail = 0 || |
4980 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
4981 | ||
fa958513 DJ |
4982 | |
4983 | # configure is writing to config.log, and then calls config.status. | |
4984 | # config.status does its own redirection, appending to config.log. | |
4985 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4986 | # by configure, so config.status won't be able to write to it; its | |
4987 | # output is simply discarded. So we exec the FD to /dev/null, | |
4988 | # effectively closing config.log, so it can be properly (re)opened and | |
4989 | # appended to by config.status. When coming back to configure, we | |
4990 | # need to make the FD available again. | |
4991 | if test "$no_create" != yes; then | |
4992 | ac_cs_success=: | |
4993 | ac_config_status_args= | |
4994 | test "$silent" = yes && | |
4995 | ac_config_status_args="$ac_config_status_args --quiet" | |
4996 | exec 5>/dev/null | |
4997 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4998 | exec 5>>config.log | |
4999 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5000 | # would make configure fail if this is the last instruction. | |
5213506e RW |
5001 | $ac_cs_success || as_fn_exit $? |
5002 | fi | |
5003 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5005 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
fa958513 DJ |
5006 | fi |
5007 |