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