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