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