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