]>
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'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | test \$(( 1 + 1 )) = 2 || exit 1" | |
200 | if (eval "$as_required") 2>/dev/null; then : | |
201 | as_have_required=yes | |
202 | else | |
203 | as_have_required=no | |
204 | fi | |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
206 | ||
207 | else | |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
209 | as_found=false | |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
b7026657 | 211 | do |
81ecdfbb RW |
212 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. | |
214 | as_found=: | |
215 | case $as_dir in #( | |
216 | /*) | |
217 | for as_base in sh bash ksh sh5; do | |
218 | # Try only shells that exist, to save several forks. | |
219 | as_shell=$as_dir/$as_base | |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
222 | CONFIG_SHELL=$as_shell as_have_required=yes | |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | break 2 | |
225 | fi | |
226 | fi | |
227 | done;; | |
228 | esac | |
229 | as_found=false | |
230 | done | |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
233 | CONFIG_SHELL=$SHELL as_have_required=yes | |
234 | fi; } | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
239 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a | |
241 | # neutralization value for shells without unset; and this also | |
242 | # works around shells that cannot unset nonexistent variables. | |
243 | # Preserve -v and -x to the replacement shell. | |
244 | BASH_ENV=/dev/null | |
245 | ENV=/dev/null | |
246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
247 | case $- in # (((( | |
248 | *v*x* | *x*v* ) as_opts=-vx ;; | |
249 | *v* ) as_opts=-v ;; | |
250 | *x* ) as_opts=-x ;; | |
251 | * ) as_opts= ;; | |
252 | esac | |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
254 | # Admittedly, this is quite paranoid, since all the known shells bail | |
255 | # out after a failed `exec'. | |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
257 | exit 255 | |
81ecdfbb RW |
258 | fi |
259 | ||
260 | if test x$as_have_required = xno; then : | |
261 | $as_echo "$0: This script requires a shell more modern than all" | |
262 | $as_echo "$0: the shells that I found on your system." | |
263 | if test x${ZSH_VERSION+set} = xset ; then | |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
b7026657 | 266 | else |
81ecdfbb RW |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this | |
269 | $0: message. Then install a modern shell, or manually run | |
270 | $0: the script under such a shell if you do have one." | |
b7026657 | 271 | fi |
81ecdfbb RW |
272 | exit 1 |
273 | fi | |
274 | fi | |
275 | fi | |
276 | SHELL=${CONFIG_SHELL-/bin/sh} | |
277 | export SHELL | |
278 | # Unset more variables known to interfere with behavior of common tools. | |
279 | CLICOLOR_FORCE= GREP_OPTIONS= | |
280 | unset CLICOLOR_FORCE GREP_OPTIONS | |
281 | ||
282 | ## --------------------- ## | |
283 | ## M4sh Shell Functions. ## | |
284 | ## --------------------- ## | |
285 | # as_fn_unset VAR | |
286 | # --------------- | |
287 | # Portably unset VAR. | |
288 | as_fn_unset () | |
289 | { | |
290 | { eval $1=; unset $1;} | |
291 | } | |
292 | as_unset=as_fn_unset | |
293 | ||
294 | # as_fn_set_status STATUS | |
295 | # ----------------------- | |
296 | # Set $? to STATUS, without forking. | |
297 | as_fn_set_status () | |
298 | { | |
299 | return $1 | |
300 | } # as_fn_set_status | |
301 | ||
302 | # as_fn_exit STATUS | |
303 | # ----------------- | |
304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
305 | as_fn_exit () | |
306 | { | |
307 | set +e | |
308 | as_fn_set_status $1 | |
309 | exit $1 | |
310 | } # as_fn_exit | |
311 | ||
312 | # as_fn_mkdir_p | |
313 | # ------------- | |
314 | # Create "$as_dir" as a directory, including parents if necessary. | |
315 | as_fn_mkdir_p () | |
316 | { | |
317 | ||
318 | case $as_dir in #( | |
319 | -*) as_dir=./$as_dir;; | |
320 | esac | |
321 | test -d "$as_dir" || eval $as_mkdir_p || { | |
322 | as_dirs= | |
323 | while :; do | |
324 | case $as_dir in #( | |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
326 | *) as_qdir=$as_dir;; | |
327 | esac | |
328 | as_dirs="'$as_qdir' $as_dirs" | |
329 | as_dir=`$as_dirname -- "$as_dir" || | |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
332 | X"$as_dir" : 'X\(//\)$' \| \ | |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
334 | $as_echo X"$as_dir" | | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
336 | s//\1/ | |
337 | q | |
338 | } | |
339 | /^X\(\/\/\)[^/].*/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\).*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | s/.*/./; q'` | |
352 | test -d "$as_dir" && break | |
353 | done | |
354 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
356 | |
357 | ||
358 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
359 | |
360 | # as_fn_executable_p FILE | |
361 | # ----------------------- | |
362 | # Test if FILE is an executable regular file. | |
363 | as_fn_executable_p () | |
364 | { | |
365 | test -f "$1" && test -x "$1" | |
366 | } # as_fn_executable_p | |
81ecdfbb RW |
367 | # as_fn_append VAR VALUE |
368 | # ---------------------- | |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
370 | # advantage of any shell optimizations that allow amortized linear growth over | |
371 | # repeated appends, instead of the typical quadratic growth present in naive | |
372 | # implementations. | |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
374 | eval 'as_fn_append () | |
375 | { | |
376 | eval $1+=\$2 | |
377 | }' | |
378 | else | |
379 | as_fn_append () | |
380 | { | |
381 | eval $1=\$$1\$2 | |
382 | } | |
383 | fi # as_fn_append | |
384 | ||
385 | # as_fn_arith ARG... | |
386 | # ------------------ | |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
389 | # must be portable across $(()) and expr. | |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
391 | eval 'as_fn_arith () | |
392 | { | |
393 | as_val=$(( $* )) | |
394 | }' | |
395 | else | |
396 | as_fn_arith () | |
397 | { | |
398 | as_val=`expr "$@" || test $? -eq 1` | |
399 | } | |
400 | fi # as_fn_arith | |
401 | ||
c906108c | 402 | |
d0ac1c44 SM |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- | |
81ecdfbb RW |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 407 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
408 | as_fn_error () |
409 | { | |
d0ac1c44 SM |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then | |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 414 | fi |
d0ac1c44 | 415 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
416 | as_fn_exit $as_status |
417 | } # as_fn_error | |
418 | ||
419 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
421 | as_expr=expr |
422 | else | |
423 | as_expr=false | |
424 | fi | |
c906108c | 425 | |
81ecdfbb | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
427 | as_basename=basename |
428 | else | |
429 | as_basename=false | |
430 | fi | |
c906108c | 431 | |
81ecdfbb RW |
432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 | as_dirname=dirname | |
434 | else | |
435 | as_dirname=false | |
436 | fi | |
c906108c | 437 | |
81ecdfbb | 438 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
444 | s//\1/ | |
445 | q | |
446 | } | |
447 | /^X\/\(\/\/\)$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\).*/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | s/.*/./; q'` | |
c906108c | 456 | |
b7026657 AC |
457 | # Avoid depending upon Character Ranges. |
458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
461 | as_cr_digits='0123456789' | |
462 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
c906108c | 463 | |
c906108c | 464 | |
81ecdfbb RW |
465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
470 | sed -n ' | |
471 | p | |
472 | /[$]LINENO/= | |
473 | ' <$as_myself | | |
b7026657 | 474 | sed ' |
81ecdfbb RW |
475 | s/[$]LINENO.*/&-/ |
476 | t lineno | |
477 | b | |
478 | :lineno | |
b7026657 | 479 | N |
81ecdfbb RW |
480 | :loop |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
b7026657 | 482 | t loop |
81ecdfbb | 483 | s/-\n.*// |
b7026657 | 484 | ' >$as_me.lineno && |
81ecdfbb RW |
485 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
b7026657 | 487 | |
d0ac1c44 SM |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall | |
490 | # in an infinite loop. This has already happened in practice. | |
491 | _as_can_reexec=no; export _as_can_reexec | |
b7026657 AC |
492 | # Don't try to exec as it changes $[0], causing all sort of problems |
493 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
494 | # original and so on. Autoconf is especially sensitive to this). |
495 | . "./$as_me.lineno" | |
b7026657 AC |
496 | # Exit status is that of the last command. |
497 | exit | |
498 | } | |
c906108c | 499 | |
81ecdfbb RW |
500 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( | |
502 | -n*) | |
503 | case `echo 'xy\c'` in | |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
505 | xy) ECHO_C='\c';; | |
506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
507 | ECHO_T=' ';; | |
508 | esac;; | |
509 | *) | |
510 | ECHO_N='-n';; | |
b7026657 | 511 | esac |
c906108c | 512 | |
81ecdfbb RW |
513 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then | |
515 | rm -f conf$$.dir/conf$$.file | |
b7026657 | 516 | else |
81ecdfbb RW |
517 | rm -f conf$$.dir |
518 | mkdir conf$$.dir 2>/dev/null | |
b7026657 | 519 | fi |
81ecdfbb RW |
520 | if (echo >conf$$.file) 2>/dev/null; then |
521 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 522 | as_ln_s='ln -s' |
81ecdfbb RW |
523 | # ... but there are two gotchas: |
524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 526 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 528 | as_ln_s='cp -pR' |
81ecdfbb RW |
529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
530 | as_ln_s=ln | |
531 | else | |
d0ac1c44 | 532 | as_ln_s='cp -pR' |
b7026657 | 533 | fi |
b7026657 | 534 | else |
d0ac1c44 | 535 | as_ln_s='cp -pR' |
b7026657 | 536 | fi |
81ecdfbb RW |
537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 | rmdir conf$$.dir 2>/dev/null | |
c906108c | 539 | |
b7026657 | 540 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
542 | else |
543 | test -d ./-p && rmdir ./-p | |
544 | as_mkdir_p=false | |
545 | fi | |
c906108c | 546 | |
d0ac1c44 SM |
547 | as_test_x='test -x' |
548 | as_executable_p=as_fn_executable_p | |
c906108c | 549 | |
b7026657 AC |
550 | # Sed expression to map a string onto a valid CPP name. |
551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 552 | |
b7026657 AC |
553 | # Sed expression to map a string onto a valid variable name. |
554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c SS |
555 | |
556 | ||
d0ac1c44 SM |
557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
558 | exec 6>&1 | |
c906108c | 559 | |
b7026657 | 560 | # Name of the host. |
d0ac1c44 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
b7026657 AC |
562 | # so uname gets run too. |
563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
c906108c | 564 | |
c906108c | 565 | # |
b7026657 | 566 | # Initializations. |
c906108c | 567 | # |
b7026657 | 568 | ac_default_prefix=/usr/local |
81ecdfbb | 569 | ac_clean_files= |
b7026657 | 570 | ac_config_libobj_dir=. |
81ecdfbb | 571 | LIBOBJS= |
b7026657 AC |
572 | cross_compiling=no |
573 | subdirs= | |
574 | MFLAGS= | |
575 | MAKEFLAGS= | |
b7026657 AC |
576 | |
577 | # Identity of this package. | |
578 | PACKAGE_NAME= | |
579 | PACKAGE_TARNAME= | |
580 | PACKAGE_VERSION= | |
581 | PACKAGE_STRING= | |
582 | PACKAGE_BUGREPORT= | |
81ecdfbb | 583 | PACKAGE_URL= |
b7026657 AC |
584 | |
585 | ac_unique_file="Makefile.in" | |
586 | # Factoring default headers for most tests. | |
587 | ac_includes_default="\ | |
588 | #include <stdio.h> | |
81ecdfbb | 589 | #ifdef HAVE_SYS_TYPES_H |
b7026657 AC |
590 | # include <sys/types.h> |
591 | #endif | |
81ecdfbb | 592 | #ifdef HAVE_SYS_STAT_H |
b7026657 AC |
593 | # include <sys/stat.h> |
594 | #endif | |
81ecdfbb | 595 | #ifdef STDC_HEADERS |
b7026657 AC |
596 | # include <stdlib.h> |
597 | # include <stddef.h> | |
598 | #else | |
81ecdfbb | 599 | # ifdef HAVE_STDLIB_H |
b7026657 AC |
600 | # include <stdlib.h> |
601 | # endif | |
602 | #endif | |
81ecdfbb RW |
603 | #ifdef HAVE_STRING_H |
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
b7026657 AC |
605 | # include <memory.h> |
606 | # endif | |
607 | # include <string.h> | |
608 | #endif | |
81ecdfbb | 609 | #ifdef HAVE_STRINGS_H |
b7026657 AC |
610 | # include <strings.h> |
611 | #endif | |
81ecdfbb | 612 | #ifdef HAVE_INTTYPES_H |
b7026657 | 613 | # include <inttypes.h> |
b7026657 | 614 | #endif |
81ecdfbb RW |
615 | #ifdef HAVE_STDINT_H |
616 | # include <stdint.h> | |
617 | #endif | |
618 | #ifdef HAVE_UNISTD_H | |
b7026657 AC |
619 | # include <unistd.h> |
620 | #endif" | |
c906108c | 621 | |
81ecdfbb | 622 | ac_subst_vars='LTLIBOBJS |
a48ff3ef | 623 | LIBOBJS |
81ecdfbb RW |
624 | sim_fpu |
625 | sim_fpu_cflags | |
626 | sim_targ_vals | |
627 | sim_callback | |
628 | sim_devzero | |
629 | sim_termio | |
81ecdfbb | 630 | sim_model_issue |
136da8cd | 631 | sim_default_model |
81ecdfbb RW |
632 | sim_model |
633 | sim_monitor | |
634 | sim_reserved | |
136da8cd | 635 | sim_float |
81ecdfbb | 636 | sim_timebase |
81ecdfbb | 637 | sim_hostbitsize |
136da8cd | 638 | sim_bitsize |
81ecdfbb | 639 | sim_igen_smp |
ce39bd38 | 640 | sim_smp |
ce39bd38 | 641 | sim_xor_endian |
136da8cd | 642 | sim_inline |
81ecdfbb RW |
643 | sim_pk_obj |
644 | sim_pk_src | |
645 | sim_hw_obj | |
646 | sim_hw_src | |
647 | sim_icache | |
648 | sim_filter | |
649 | sim_jump | |
650 | sim_decode_mechanism | |
651 | sim_dup | |
652 | sim_switch | |
653 | sim_opcode | |
654 | sim_config | |
655 | sim_line_nr | |
656 | sim_warnings | |
81ecdfbb RW |
657 | RANLIB |
658 | AR | |
81ecdfbb RW |
659 | CFLAGS_FOR_BUILD |
660 | CC_FOR_BUILD | |
430456e3 MF |
661 | EGREP |
662 | GREP | |
663 | CPP | |
aadc9410 MF |
664 | zlibinc |
665 | zlibdir | |
81ecdfbb RW |
666 | target_os |
667 | target_vendor | |
668 | target_cpu | |
669 | target | |
670 | host_os | |
671 | host_vendor | |
672 | host_cpu | |
673 | host | |
674 | build_os | |
675 | build_vendor | |
676 | build_cpu | |
677 | build | |
be2bc30f | 678 | WERROR_CFLAGS |
81ecdfbb RW |
679 | CATOBJEXT |
680 | GENCAT | |
681 | INSTOBJEXT | |
682 | DATADIRNAME | |
683 | CATALOGS | |
684 | POSUB | |
685 | GMSGFMT | |
686 | XGETTEXT | |
687 | INCINTL | |
688 | LIBINTL_DEP | |
689 | LIBINTL | |
690 | USE_NLS | |
691 | OBJEXT | |
692 | EXEEXT | |
693 | ac_ct_CC | |
694 | CPPFLAGS | |
695 | LDFLAGS | |
696 | CFLAGS | |
697 | CC | |
698 | INSTALL_DATA | |
699 | INSTALL_SCRIPT | |
700 | INSTALL_PROGRAM | |
701 | target_alias | |
702 | host_alias | |
703 | build_alias | |
704 | LIBS | |
705 | ECHO_T | |
706 | ECHO_N | |
707 | ECHO_C | |
708 | DEFS | |
709 | mandir | |
710 | localedir | |
711 | libdir | |
712 | psdir | |
713 | pdfdir | |
714 | dvidir | |
715 | htmldir | |
716 | infodir | |
717 | docdir | |
718 | oldincludedir | |
719 | includedir | |
720 | localstatedir | |
721 | sharedstatedir | |
722 | sysconfdir | |
723 | datadir | |
724 | datarootdir | |
725 | libexecdir | |
726 | sbindir | |
727 | bindir | |
728 | program_transform_name | |
729 | prefix | |
730 | exec_prefix | |
731 | PACKAGE_URL | |
732 | PACKAGE_BUGREPORT | |
733 | PACKAGE_STRING | |
734 | PACKAGE_VERSION | |
735 | PACKAGE_TARNAME | |
736 | PACKAGE_NAME | |
737 | PATH_SEPARATOR | |
6ffe910a | 738 | SHELL' |
b7026657 | 739 | ac_subst_files='' |
81ecdfbb RW |
740 | ac_user_opts=' |
741 | enable_option_checking | |
81ecdfbb | 742 | enable_sim_bitsize |
81ecdfbb RW |
743 | enable_sim_config |
744 | enable_sim_decode_mechanism | |
745 | enable_sim_default_model | |
746 | enable_sim_duplicate | |
81ecdfbb RW |
747 | enable_sim_filter |
748 | enable_sim_float | |
749 | enable_sim_hardware | |
750 | enable_sim_hostbitsize | |
81ecdfbb RW |
751 | enable_sim_icache |
752 | enable_sim_inline | |
753 | enable_sim_jump | |
754 | enable_sim_line_nr | |
755 | enable_sim_model | |
756 | enable_sim_model_issue | |
757 | enable_sim_monitor | |
758 | enable_sim_opcode | |
759 | enable_sim_packages | |
81ecdfbb RW |
760 | enable_sim_reserved_bits |
761 | enable_sim_smp | |
81ecdfbb RW |
762 | enable_sim_switch |
763 | enable_sim_timebase | |
be2bc30f | 764 | enable_werror |
81ecdfbb RW |
765 | enable_sim_warnings |
766 | enable_sim_xor_endian | |
aadc9410 | 767 | with_system_zlib |
2974be62 | 768 | enable_plugins |
81ecdfbb RW |
769 | ' |
770 | ac_precious_vars='build_alias | |
771 | host_alias | |
772 | target_alias | |
773 | CC | |
774 | CFLAGS | |
775 | LDFLAGS | |
776 | LIBS | |
777 | CPPFLAGS | |
778 | CPP' | |
779 | ||
c906108c SS |
780 | |
781 | # Initialize some variables set by options. | |
b7026657 AC |
782 | ac_init_help= |
783 | ac_init_version=false | |
81ecdfbb RW |
784 | ac_unrecognized_opts= |
785 | ac_unrecognized_sep= | |
c906108c SS |
786 | # The variables have the same names as the options, with |
787 | # dashes changed to underlines. | |
b7026657 | 788 | cache_file=/dev/null |
c906108c | 789 | exec_prefix=NONE |
c906108c | 790 | no_create= |
c906108c SS |
791 | no_recursion= |
792 | prefix=NONE | |
793 | program_prefix=NONE | |
794 | program_suffix=NONE | |
795 | program_transform_name=s,x,x, | |
796 | silent= | |
797 | site= | |
798 | srcdir= | |
c906108c SS |
799 | verbose= |
800 | x_includes=NONE | |
801 | x_libraries=NONE | |
b7026657 AC |
802 | |
803 | # Installation directory options. | |
804 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
805 | # and all the variables that are supposed to be based on exec_prefix | |
806 | # by default will actually change. | |
807 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 808 | # (The list follows the same order as the GNU Coding Standards.) |
c906108c SS |
809 | bindir='${exec_prefix}/bin' |
810 | sbindir='${exec_prefix}/sbin' | |
811 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
812 | datarootdir='${prefix}/share' |
813 | datadir='${datarootdir}' | |
c906108c SS |
814 | sysconfdir='${prefix}/etc' |
815 | sharedstatedir='${prefix}/com' | |
816 | localstatedir='${prefix}/var' | |
c906108c SS |
817 | includedir='${prefix}/include' |
818 | oldincludedir='/usr/include' | |
81ecdfbb RW |
819 | docdir='${datarootdir}/doc/${PACKAGE}' |
820 | infodir='${datarootdir}/info' | |
821 | htmldir='${docdir}' | |
822 | dvidir='${docdir}' | |
823 | pdfdir='${docdir}' | |
824 | psdir='${docdir}' | |
825 | libdir='${exec_prefix}/lib' | |
826 | localedir='${datarootdir}/locale' | |
827 | mandir='${datarootdir}/man' | |
c906108c | 828 | |
c906108c | 829 | ac_prev= |
81ecdfbb | 830 | ac_dashdash= |
c906108c SS |
831 | for ac_option |
832 | do | |
c906108c SS |
833 | # If the previous option needs an argument, assign it. |
834 | if test -n "$ac_prev"; then | |
81ecdfbb | 835 | eval $ac_prev=\$ac_option |
c906108c SS |
836 | ac_prev= |
837 | continue | |
838 | fi | |
839 | ||
81ecdfbb | 840 | case $ac_option in |
d0ac1c44 SM |
841 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
842 | *=) ac_optarg= ;; | |
843 | *) ac_optarg=yes ;; | |
81ecdfbb | 844 | esac |
c906108c SS |
845 | |
846 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
847 | ||
81ecdfbb RW |
848 | case $ac_dashdash$ac_option in |
849 | --) | |
850 | ac_dashdash=yes ;; | |
c906108c SS |
851 | |
852 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
853 | ac_prev=bindir ;; | |
854 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 855 | bindir=$ac_optarg ;; |
c906108c SS |
856 | |
857 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 858 | ac_prev=build_alias ;; |
c906108c | 859 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 860 | build_alias=$ac_optarg ;; |
c906108c SS |
861 | |
862 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
863 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
864 | ac_prev=cache_file ;; | |
865 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
866 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
867 | cache_file=$ac_optarg ;; |
868 | ||
869 | --config-cache | -C) | |
870 | cache_file=config.cache ;; | |
c906108c | 871 | |
81ecdfbb | 872 | -datadir | --datadir | --datadi | --datad) |
c906108c | 873 | ac_prev=datadir ;; |
81ecdfbb | 874 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
b7026657 | 875 | datadir=$ac_optarg ;; |
c906108c | 876 | |
81ecdfbb RW |
877 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
878 | | --dataroo | --dataro | --datar) | |
879 | ac_prev=datarootdir ;; | |
880 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
881 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
882 | datarootdir=$ac_optarg ;; | |
883 | ||
c906108c | 884 | -disable-* | --disable-*) |
81ecdfbb | 885 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 886 | # Reject names that are not valid shell variable names. |
81ecdfbb | 887 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 888 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
889 | ac_useropt_orig=$ac_useropt |
890 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
891 | case $ac_user_opts in | |
892 | *" | |
893 | "enable_$ac_useropt" | |
894 | "*) ;; | |
895 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
896 | ac_unrecognized_sep=', ';; | |
897 | esac | |
898 | eval enable_$ac_useropt=no ;; | |
899 | ||
900 | -docdir | --docdir | --docdi | --doc | --do) | |
901 | ac_prev=docdir ;; | |
902 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
903 | docdir=$ac_optarg ;; | |
904 | ||
905 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
906 | ac_prev=dvidir ;; | |
907 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
908 | dvidir=$ac_optarg ;; | |
c906108c SS |
909 | |
910 | -enable-* | --enable-*) | |
81ecdfbb | 911 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 912 | # Reject names that are not valid shell variable names. |
81ecdfbb | 913 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 914 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
915 | ac_useropt_orig=$ac_useropt |
916 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
917 | case $ac_user_opts in | |
918 | *" | |
919 | "enable_$ac_useropt" | |
920 | "*) ;; | |
921 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
922 | ac_unrecognized_sep=', ';; | |
c906108c | 923 | esac |
81ecdfbb | 924 | eval enable_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
925 | |
926 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
927 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
928 | | --exec | --exe | --ex) | |
929 | ac_prev=exec_prefix ;; | |
930 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
931 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
932 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 933 | exec_prefix=$ac_optarg ;; |
c906108c SS |
934 | |
935 | -gas | --gas | --ga | --g) | |
936 | # Obsolete; use --with-gas. | |
937 | with_gas=yes ;; | |
938 | ||
b7026657 AC |
939 | -help | --help | --hel | --he | -h) |
940 | ac_init_help=long ;; | |
941 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
942 | ac_init_help=recursive ;; | |
943 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
944 | ac_init_help=short ;; | |
c906108c SS |
945 | |
946 | -host | --host | --hos | --ho) | |
b7026657 | 947 | ac_prev=host_alias ;; |
c906108c | 948 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 949 | host_alias=$ac_optarg ;; |
c906108c | 950 | |
81ecdfbb RW |
951 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
952 | ac_prev=htmldir ;; | |
953 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
954 | | --ht=*) | |
955 | htmldir=$ac_optarg ;; | |
956 | ||
c906108c SS |
957 | -includedir | --includedir | --includedi | --included | --include \ |
958 | | --includ | --inclu | --incl | --inc) | |
959 | ac_prev=includedir ;; | |
960 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
961 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 962 | includedir=$ac_optarg ;; |
c906108c SS |
963 | |
964 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
965 | ac_prev=infodir ;; | |
966 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 967 | infodir=$ac_optarg ;; |
c906108c SS |
968 | |
969 | -libdir | --libdir | --libdi | --libd) | |
970 | ac_prev=libdir ;; | |
971 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 972 | libdir=$ac_optarg ;; |
c906108c SS |
973 | |
974 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
975 | | --libexe | --libex | --libe) | |
976 | ac_prev=libexecdir ;; | |
977 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
978 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 979 | libexecdir=$ac_optarg ;; |
c906108c | 980 | |
81ecdfbb RW |
981 | -localedir | --localedir | --localedi | --localed | --locale) |
982 | ac_prev=localedir ;; | |
983 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
984 | localedir=$ac_optarg ;; | |
985 | ||
c906108c | 986 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 987 | | --localstate | --localstat | --localsta | --localst | --locals) |
c906108c SS |
988 | ac_prev=localstatedir ;; |
989 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 990 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
b7026657 | 991 | localstatedir=$ac_optarg ;; |
c906108c SS |
992 | |
993 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
994 | ac_prev=mandir ;; | |
995 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 996 | mandir=$ac_optarg ;; |
c906108c SS |
997 | |
998 | -nfp | --nfp | --nf) | |
999 | # Obsolete; use --without-fp. | |
1000 | with_fp=no ;; | |
1001 | ||
1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 1003 | | --no-cr | --no-c | -n) |
c906108c SS |
1004 | no_create=yes ;; |
1005 | ||
1006 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1007 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1008 | no_recursion=yes ;; | |
1009 | ||
1010 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1011 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1012 | | --oldin | --oldi | --old | --ol | --o) | |
1013 | ac_prev=oldincludedir ;; | |
1014 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1015 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1016 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 1017 | oldincludedir=$ac_optarg ;; |
c906108c SS |
1018 | |
1019 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1020 | ac_prev=prefix ;; | |
1021 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 1022 | prefix=$ac_optarg ;; |
c906108c SS |
1023 | |
1024 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1025 | | --program-pre | --program-pr | --program-p) | |
1026 | ac_prev=program_prefix ;; | |
1027 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1028 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 1029 | program_prefix=$ac_optarg ;; |
c906108c SS |
1030 | |
1031 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1032 | | --program-suf | --program-su | --program-s) | |
1033 | ac_prev=program_suffix ;; | |
1034 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1035 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 1036 | program_suffix=$ac_optarg ;; |
c906108c SS |
1037 | |
1038 | -program-transform-name | --program-transform-name \ | |
1039 | | --program-transform-nam | --program-transform-na \ | |
1040 | | --program-transform-n | --program-transform- \ | |
1041 | | --program-transform | --program-transfor \ | |
1042 | | --program-transfo | --program-transf \ | |
1043 | | --program-trans | --program-tran \ | |
1044 | | --progr-tra | --program-tr | --program-t) | |
1045 | ac_prev=program_transform_name ;; | |
1046 | -program-transform-name=* | --program-transform-name=* \ | |
1047 | | --program-transform-nam=* | --program-transform-na=* \ | |
1048 | | --program-transform-n=* | --program-transform-=* \ | |
1049 | | --program-transform=* | --program-transfor=* \ | |
1050 | | --program-transfo=* | --program-transf=* \ | |
1051 | | --program-trans=* | --program-tran=* \ | |
1052 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 1053 | program_transform_name=$ac_optarg ;; |
c906108c | 1054 | |
81ecdfbb RW |
1055 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1056 | ac_prev=pdfdir ;; | |
1057 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1058 | pdfdir=$ac_optarg ;; | |
1059 | ||
1060 | -psdir | --psdir | --psdi | --psd | --ps) | |
1061 | ac_prev=psdir ;; | |
1062 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1063 | psdir=$ac_optarg ;; | |
1064 | ||
c906108c SS |
1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1066 | | -silent | --silent | --silen | --sile | --sil) | |
1067 | silent=yes ;; | |
1068 | ||
1069 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1070 | ac_prev=sbindir ;; | |
1071 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1072 | | --sbi=* | --sb=*) | |
b7026657 | 1073 | sbindir=$ac_optarg ;; |
c906108c SS |
1074 | |
1075 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1076 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1077 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1078 | | --sha | --sh) | |
1079 | ac_prev=sharedstatedir ;; | |
1080 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1081 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1082 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1083 | | --sha=* | --sh=*) | |
b7026657 | 1084 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
1085 | |
1086 | -site | --site | --sit) | |
1087 | ac_prev=site ;; | |
1088 | -site=* | --site=* | --sit=*) | |
b7026657 | 1089 | site=$ac_optarg ;; |
eb2d80b4 | 1090 | |
c906108c SS |
1091 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1092 | ac_prev=srcdir ;; | |
1093 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 1094 | srcdir=$ac_optarg ;; |
c906108c SS |
1095 | |
1096 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1097 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1098 | ac_prev=sysconfdir ;; | |
1099 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1100 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 1101 | sysconfdir=$ac_optarg ;; |
c906108c SS |
1102 | |
1103 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 1104 | ac_prev=target_alias ;; |
c906108c | 1105 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 1106 | target_alias=$ac_optarg ;; |
c906108c SS |
1107 | |
1108 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1109 | verbose=yes ;; | |
1110 | ||
b7026657 AC |
1111 | -version | --version | --versio | --versi | --vers | -V) |
1112 | ac_init_version=: ;; | |
c906108c SS |
1113 | |
1114 | -with-* | --with-*) | |
81ecdfbb | 1115 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 1116 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1117 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1118 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1119 | ac_useropt_orig=$ac_useropt |
1120 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1121 | case $ac_user_opts in | |
1122 | *" | |
1123 | "with_$ac_useropt" | |
1124 | "*) ;; | |
1125 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1126 | ac_unrecognized_sep=', ';; | |
c906108c | 1127 | esac |
81ecdfbb | 1128 | eval with_$ac_useropt=\$ac_optarg ;; |
c906108c SS |
1129 | |
1130 | -without-* | --without-*) | |
81ecdfbb | 1131 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 1132 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1133 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1134 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1135 | ac_useropt_orig=$ac_useropt |
1136 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1137 | case $ac_user_opts in | |
1138 | *" | |
1139 | "with_$ac_useropt" | |
1140 | "*) ;; | |
1141 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1142 | ac_unrecognized_sep=', ';; | |
1143 | esac | |
1144 | eval with_$ac_useropt=no ;; | |
c906108c SS |
1145 | |
1146 | --x) | |
1147 | # Obsolete; use --with-x. | |
1148 | with_x=yes ;; | |
1149 | ||
1150 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1151 | | --x-incl | --x-inc | --x-in | --x-i) | |
1152 | ac_prev=x_includes ;; | |
1153 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1154 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 1155 | x_includes=$ac_optarg ;; |
c906108c SS |
1156 | |
1157 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1158 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1159 | ac_prev=x_libraries ;; | |
1160 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1161 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 1162 | x_libraries=$ac_optarg ;; |
c906108c | 1163 | |
d0ac1c44 SM |
1164 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1165 | Try \`$0 --help' for more information" | |
c906108c SS |
1166 | ;; |
1167 | ||
b7026657 AC |
1168 | *=*) |
1169 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1170 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1171 | case $ac_envvar in #( |
1172 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1173 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1174 | esac |
1175 | eval $ac_envvar=\$ac_optarg | |
b7026657 AC |
1176 | export $ac_envvar ;; |
1177 | ||
c906108c | 1178 | *) |
b7026657 | 1179 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1180 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
b7026657 | 1181 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1182 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1183 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
c906108c SS |
1184 | ;; |
1185 | ||
1186 | esac | |
1187 | done | |
1188 | ||
1189 | if test -n "$ac_prev"; then | |
b7026657 | 1190 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1191 | as_fn_error $? "missing argument to $ac_option" |
c906108c | 1192 | fi |
c906108c | 1193 | |
81ecdfbb RW |
1194 | if test -n "$ac_unrecognized_opts"; then |
1195 | case $enable_option_checking in | |
1196 | no) ;; | |
d0ac1c44 | 1197 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1198 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
b7026657 | 1199 | esac |
81ecdfbb | 1200 | fi |
c906108c | 1201 | |
81ecdfbb RW |
1202 | # Check all directory arguments for consistency. |
1203 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1204 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1205 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1206 | libdir localedir mandir | |
c906108c | 1207 | do |
81ecdfbb RW |
1208 | eval ac_val=\$$ac_var |
1209 | # Remove trailing slashes. | |
1210 | case $ac_val in | |
1211 | */ ) | |
1212 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1213 | eval $ac_var=\$ac_val;; | |
1214 | esac | |
1215 | # Be sure to have absolute directory names. | |
b7026657 | 1216 | case $ac_val in |
81ecdfbb RW |
1217 | [\\/$]* | ?:[\\/]* ) continue;; |
1218 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
c906108c | 1219 | esac |
d0ac1c44 | 1220 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
c906108c SS |
1221 | done |
1222 | ||
b7026657 AC |
1223 | # There might be people who depend on the old broken behavior: `$host' |
1224 | # used to hold the argument of --host etc. | |
1225 | # FIXME: To remove some day. | |
1226 | build=$build_alias | |
1227 | host=$host_alias | |
1228 | target=$target_alias | |
1229 | ||
1230 | # FIXME: To remove some day. | |
1231 | if test "x$host_alias" != x; then | |
1232 | if test "x$build_alias" = x; then | |
1233 | cross_compiling=maybe | |
b7026657 AC |
1234 | elif test "x$build_alias" != "x$host_alias"; then |
1235 | cross_compiling=yes | |
1236 | fi | |
1237 | fi | |
c906108c | 1238 | |
b7026657 AC |
1239 | ac_tool_prefix= |
1240 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1241 | ||
1242 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 1243 | |
c906108c | 1244 | |
81ecdfbb RW |
1245 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1246 | ac_ls_di=`ls -di .` && | |
1247 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1248 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1249 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1250 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1251 | |
1252 | ||
c906108c SS |
1253 | # Find the source files, if location was not specified. |
1254 | if test -z "$srcdir"; then | |
1255 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1256 | # Try the directory containing this script, then the parent directory. |
1257 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1258 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1259 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1260 | X"$as_myself" : 'X\(//\)$' \| \ | |
1261 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1262 | $as_echo X"$as_myself" | | |
1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1264 | s//\1/ | |
1265 | q | |
1266 | } | |
1267 | /^X\(\/\/\)[^/].*/{ | |
1268 | s//\1/ | |
1269 | q | |
1270 | } | |
1271 | /^X\(\/\/\)$/{ | |
1272 | s//\1/ | |
1273 | q | |
1274 | } | |
1275 | /^X\(\/\).*/{ | |
1276 | s//\1/ | |
1277 | q | |
1278 | } | |
1279 | s/.*/./; q'` | |
c906108c | 1280 | srcdir=$ac_confdir |
81ecdfbb | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
c906108c SS |
1282 | srcdir=.. |
1283 | fi | |
1284 | else | |
1285 | ac_srcdir_defaulted=no | |
1286 | fi | |
81ecdfbb RW |
1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1289 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1290 | fi |
1291 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1292 | ac_abs_confdir=`( | |
d0ac1c44 | 1293 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1294 | pwd)` |
1295 | # When building in place, set srcdir=. | |
1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1297 | srcdir=. | |
1298 | fi | |
1299 | # Remove unnecessary trailing slashes from srcdir. | |
1300 | # Double slashes in file names in object file debugging info | |
1301 | # mess up M-x gdb in Emacs. | |
1302 | case $srcdir in | |
1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1304 | esac | |
1305 | for ac_var in $ac_precious_vars; do | |
1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1307 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1310 | done | |
c906108c | 1311 | |
b7026657 AC |
1312 | # |
1313 | # Report the --help message. | |
1314 | # | |
1315 | if test "$ac_init_help" = "long"; then | |
1316 | # Omit some internal or obsolete options to make the list less imposing. | |
1317 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1318 | cat <<_ACEOF | |
1319 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 1320 | |
b7026657 | 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 1322 | |
b7026657 AC |
1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1324 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 1325 | |
b7026657 | 1326 | Defaults for the options are specified in brackets. |
c906108c | 1327 | |
b7026657 AC |
1328 | Configuration: |
1329 | -h, --help display this help and exit | |
1330 | --help=short display options specific to this package | |
1331 | --help=recursive display the short help of all the included packages | |
1332 | -V, --version display version information and exit | |
d0ac1c44 | 1333 | -q, --quiet, --silent do not print \`checking ...' messages |
b7026657 AC |
1334 | --cache-file=FILE cache test results in FILE [disabled] |
1335 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1336 | -n, --no-create do not create output files | |
1337 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1338 | ||
b7026657 AC |
1339 | Installation directories: |
1340 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1341 | [$ac_default_prefix] |
b7026657 | 1342 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1343 | [PREFIX] |
c906108c | 1344 | |
b7026657 AC |
1345 | By default, \`make install' will install all the files in |
1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1348 | for instance \`--prefix=\$HOME'. | |
c906108c | 1349 | |
b7026657 | 1350 | For better control, use the options below. |
c906108c | 1351 | |
b7026657 | 1352 | Fine tuning of the installation directories: |
81ecdfbb RW |
1353 | --bindir=DIR user executables [EPREFIX/bin] |
1354 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1355 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1356 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1357 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1358 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1359 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1360 | --includedir=DIR C header files [PREFIX/include] | |
1361 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1362 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1363 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1364 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1365 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1366 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1367 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1368 | --htmldir=DIR html documentation [DOCDIR] | |
1369 | --dvidir=DIR dvi documentation [DOCDIR] | |
1370 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1371 | --psdir=DIR ps documentation [DOCDIR] | |
b7026657 AC |
1372 | _ACEOF |
1373 | ||
1374 | cat <<\_ACEOF | |
1375 | ||
1376 | Program names: | |
1377 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1378 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1379 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1380 | ||
1381 | System types: | |
1382 | --build=BUILD configure for building on BUILD [guessed] | |
1383 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1384 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1385 | _ACEOF | |
c906108c | 1386 | fi |
c906108c | 1387 | |
b7026657 | 1388 | if test -n "$ac_init_help"; then |
c906108c | 1389 | |
b7026657 | 1390 | cat <<\_ACEOF |
cd0fc7c3 | 1391 | |
b7026657 | 1392 | Optional Features: |
81ecdfbb | 1393 | --disable-option-checking ignore unrecognized --enable/--with options |
b7026657 AC |
1394 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1395 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b7026657 | 1396 | --enable-sim-bitsize=n Specify target bitsize (32 or 64). |
b7026657 AC |
1397 | --enable-sim-config=file Override default config file |
1398 | --enable-sim-decode-mechanism=which Specify the instruction decode mechanism. | |
1399 | --enable-sim-default-model=which Specify default PowerPC to model. | |
1400 | --enable-sim-duplicate Expand (duplicate) semantic functions. | |
b7026657 AC |
1401 | --enable-sim-filter=rule Specify filter rules. |
1402 | --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point. | |
1403 | --enable-sim-hardware=list Specify the hardware to be included in the build. | |
1404 | --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64). | |
b7026657 AC |
1405 | --enable-sim-icache=size Specify instruction-decode cache size and type. |
1406 | --enable-sim-inline=inlines Specify which functions should be inlined. | |
1407 | --enable-sim-jump Jump between semantic code (instead of call/return). | |
1408 | --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code | |
1409 | --enable-sim-model=which Specify PowerPC to model. | |
1410 | --enable-sim-model-issue Specify whether to simulate model specific actions | |
1411 | --enable-sim-monitor=mon Specify whether to enable monitoring events. | |
1412 | --enable-sim-opcode=which Override default opcode lookup. | |
1413 | --enable-sim-packages=list Specify the packages to be included in the build. | |
b7026657 AC |
1414 | --enable-sim-reserved-bits Specify whether to check reserved bits in instruction. |
1415 | --enable-sim-smp=n Specify number of processors to configure for. | |
b7026657 AC |
1416 | --enable-sim-switch Use a switch instead of a table for instruction call. |
1417 | --enable-sim-timebase Specify whether the PPC timebase is supported. | |
be2bc30f | 1418 | --enable-werror treat compile warnings as errors |
b7026657 AC |
1419 | --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o |
1420 | --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8). | |
2974be62 | 1421 | --enable-plugins Enable support for plugins |
b7026657 | 1422 | |
6efef468 JM |
1423 | Optional Packages: |
1424 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1425 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
aadc9410 | 1426 | --with-system-zlib use installed libz |
6efef468 | 1427 | |
b7026657 AC |
1428 | Some influential environment variables: |
1429 | CC C compiler command | |
1430 | CFLAGS C compiler flags | |
1431 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1432 | nonstandard directory <lib dir> | |
81ecdfbb | 1433 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1434 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1435 | you have headers in a nonstandard directory <include dir> |
b7026657 AC |
1436 | CPP C preprocessor |
1437 | ||
1438 | Use these variables to override the choices made by `configure' or to help | |
1439 | it to find libraries and programs with nonstandard names/locations. | |
1440 | ||
81ecdfbb | 1441 | Report bugs to the package provider. |
b7026657 | 1442 | _ACEOF |
81ecdfbb | 1443 | ac_status=$? |
b7026657 AC |
1444 | fi |
1445 | ||
1446 | if test "$ac_init_help" = "recursive"; then | |
1447 | # If there are subdirs, report their specific --help. | |
b7026657 | 1448 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1449 | test -d "$ac_dir" || |
1450 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1451 | continue | |
b7026657 AC |
1452 | ac_builddir=. |
1453 | ||
81ecdfbb RW |
1454 | case "$ac_dir" in |
1455 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1456 | *) | |
1457 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1458 | # A ".." for each directory in $ac_dir_suffix. | |
1459 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1460 | case $ac_top_builddir_sub in | |
1461 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1462 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1463 | esac ;; | |
1464 | esac | |
1465 | ac_abs_top_builddir=$ac_pwd | |
1466 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1467 | # for backward compatibility: | |
1468 | ac_top_builddir=$ac_top_build_prefix | |
b7026657 AC |
1469 | |
1470 | case $srcdir in | |
81ecdfbb | 1471 | .) # We are building in place. |
b7026657 | 1472 | ac_srcdir=. |
81ecdfbb RW |
1473 | ac_top_srcdir=$ac_top_builddir_sub |
1474 | ac_abs_top_srcdir=$ac_pwd ;; | |
1475 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 1476 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1477 | ac_top_srcdir=$srcdir |
1478 | ac_abs_top_srcdir=$srcdir ;; | |
1479 | *) # Relative name. | |
1480 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1481 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1482 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 1483 | esac |
81ecdfbb RW |
1484 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1485 | ||
1486 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1487 | # Check for guested configure. | |
1488 | if test -f "$ac_srcdir/configure.gnu"; then | |
1489 | echo && | |
1490 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1491 | elif test -f "$ac_srcdir/configure"; then | |
1492 | echo && | |
1493 | $SHELL "$ac_srcdir/configure" --help=recursive | |
b7026657 | 1494 | else |
81ecdfbb RW |
1495 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1496 | fi || ac_status=$? | |
1497 | cd "$ac_pwd" || { ac_status=$?; break; } | |
b7026657 AC |
1498 | done |
1499 | fi | |
1500 | ||
81ecdfbb | 1501 | test -n "$ac_init_help" && exit $ac_status |
b7026657 AC |
1502 | if $ac_init_version; then |
1503 | cat <<\_ACEOF | |
81ecdfbb | 1504 | configure |
d0ac1c44 | 1505 | generated by GNU Autoconf 2.69 |
b7026657 | 1506 | |
d0ac1c44 | 1507 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
1508 | This configure script is free software; the Free Software Foundation |
1509 | gives unlimited permission to copy, distribute and modify it. | |
1510 | _ACEOF | |
81ecdfbb | 1511 | exit |
b7026657 | 1512 | fi |
b7026657 | 1513 | |
81ecdfbb RW |
1514 | ## ------------------------ ## |
1515 | ## Autoconf initialization. ## | |
1516 | ## ------------------------ ## | |
b7026657 | 1517 | |
81ecdfbb RW |
1518 | # ac_fn_c_try_compile LINENO |
1519 | # -------------------------- | |
1520 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1521 | ac_fn_c_try_compile () | |
b7026657 | 1522 | { |
81ecdfbb RW |
1523 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1524 | rm -f conftest.$ac_objext | |
1525 | if { { ac_try="$ac_compile" | |
1526 | case "(($ac_try" in | |
1527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1528 | *) ac_try_echo=$ac_try;; | |
1529 | esac | |
1530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1531 | $as_echo "$ac_try_echo"; } >&5 | |
1532 | (eval "$ac_compile") 2>conftest.err | |
1533 | ac_status=$? | |
1534 | if test -s conftest.err; then | |
1535 | grep -v '^ *+' conftest.err >conftest.er1 | |
1536 | cat conftest.er1 >&5 | |
1537 | mv -f conftest.er1 conftest.err | |
1538 | fi | |
1539 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1540 | test $ac_status = 0; } && { | |
1541 | test -z "$ac_c_werror_flag" || | |
1542 | test ! -s conftest.err | |
1543 | } && test -s conftest.$ac_objext; then : | |
1544 | ac_retval=0 | |
1545 | else | |
1546 | $as_echo "$as_me: failed program was:" >&5 | |
1547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1548 | |
81ecdfbb RW |
1549 | ac_retval=1 |
1550 | fi | |
d0ac1c44 SM |
1551 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1552 | as_fn_set_status $ac_retval | |
b7026657 | 1553 | |
81ecdfbb | 1554 | } # ac_fn_c_try_compile |
b7026657 | 1555 | |
81ecdfbb RW |
1556 | # ac_fn_c_try_run LINENO |
1557 | # ---------------------- | |
1558 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1559 | # that executables *can* be run. | |
1560 | ac_fn_c_try_run () | |
1561 | { | |
1562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1563 | if { { ac_try="$ac_link" | |
1564 | case "(($ac_try" in | |
1565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1566 | *) ac_try_echo=$ac_try;; | |
1567 | esac | |
1568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1569 | $as_echo "$ac_try_echo"; } >&5 | |
1570 | (eval "$ac_link") 2>&5 | |
1571 | ac_status=$? | |
1572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1573 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1574 | { { case "(($ac_try" in | |
1575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1576 | *) ac_try_echo=$ac_try;; | |
1577 | esac | |
1578 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1579 | $as_echo "$ac_try_echo"; } >&5 | |
1580 | (eval "$ac_try") 2>&5 | |
1581 | ac_status=$? | |
1582 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1583 | test $ac_status = 0; }; }; then : | |
1584 | ac_retval=0 | |
1585 | else | |
1586 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1587 | $as_echo "$as_me: failed program was:" >&5 | |
1588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 1589 | |
81ecdfbb RW |
1590 | ac_retval=$ac_status |
1591 | fi | |
1592 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1593 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1594 | as_fn_set_status $ac_retval | |
b7026657 | 1595 | |
81ecdfbb | 1596 | } # ac_fn_c_try_run |
b7026657 | 1597 | |
430456e3 MF |
1598 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1599 | # ------------------------------------------------------- | |
1600 | # Tests whether HEADER exists and can be compiled using the include files in | |
1601 | # INCLUDES, setting the cache variable VAR accordingly. | |
1602 | ac_fn_c_check_header_compile () | |
1603 | { | |
1604 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1606 | $as_echo_n "checking for $2... " >&6; } | |
1607 | if eval \${$3+:} false; then : | |
1608 | $as_echo_n "(cached) " >&6 | |
1609 | else | |
1610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1611 | /* end confdefs.h. */ | |
1612 | $4 | |
1613 | #include <$2> | |
1614 | _ACEOF | |
1615 | if ac_fn_c_try_compile "$LINENO"; then : | |
1616 | eval "$3=yes" | |
1617 | else | |
1618 | eval "$3=no" | |
1619 | fi | |
1620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1621 | fi | |
1622 | eval ac_res=\$$3 | |
1623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1624 | $as_echo "$ac_res" >&6; } | |
1625 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1626 | ||
1627 | } # ac_fn_c_check_header_compile | |
1628 | ||
81ecdfbb RW |
1629 | # ac_fn_c_try_cpp LINENO |
1630 | # ---------------------- | |
1631 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1632 | ac_fn_c_try_cpp () | |
1633 | { | |
1634 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1635 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1636 | case "(($ac_try" in | |
1637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1638 | *) ac_try_echo=$ac_try;; | |
1639 | esac | |
1640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1641 | $as_echo "$ac_try_echo"; } >&5 | |
1642 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1643 | ac_status=$? | |
1644 | if test -s conftest.err; then | |
1645 | grep -v '^ *+' conftest.err >conftest.er1 | |
1646 | cat conftest.er1 >&5 | |
1647 | mv -f conftest.er1 conftest.err | |
1648 | fi | |
1649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1650 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1651 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1652 | test ! -s conftest.err | |
1653 | }; then : | |
1654 | ac_retval=0 | |
1655 | else | |
1656 | $as_echo "$as_me: failed program was:" >&5 | |
1657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1658 | ||
1659 | ac_retval=1 | |
1660 | fi | |
d0ac1c44 SM |
1661 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1662 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1663 | |
1664 | } # ac_fn_c_try_cpp | |
1665 | ||
81ecdfbb RW |
1666 | # ac_fn_c_try_link LINENO |
1667 | # ----------------------- | |
1668 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1669 | ac_fn_c_try_link () | |
1670 | { | |
1671 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1673 | if { { ac_try="$ac_link" | |
1674 | case "(($ac_try" in | |
1675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1676 | *) ac_try_echo=$ac_try;; | |
1677 | esac | |
1678 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1679 | $as_echo "$ac_try_echo"; } >&5 | |
1680 | (eval "$ac_link") 2>conftest.err | |
1681 | ac_status=$? | |
1682 | if test -s conftest.err; then | |
1683 | grep -v '^ *+' conftest.err >conftest.er1 | |
1684 | cat conftest.er1 >&5 | |
1685 | mv -f conftest.er1 conftest.err | |
1686 | fi | |
1687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1688 | test $ac_status = 0; } && { | |
1689 | test -z "$ac_c_werror_flag" || | |
1690 | test ! -s conftest.err | |
1691 | } && test -s conftest$ac_exeext && { | |
1692 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1693 | test -x conftest$ac_exeext |
81ecdfbb RW |
1694 | }; then : |
1695 | ac_retval=0 | |
1696 | else | |
1697 | $as_echo "$as_me: failed program was:" >&5 | |
1698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1699 | ||
1700 | ac_retval=1 | |
1701 | fi | |
1702 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1703 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1704 | # interfere with the next link command; also delete a directory that is | |
1705 | # left behind by Apple's compiler. We do this before executing the actions. | |
1706 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1707 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1708 | as_fn_set_status $ac_retval | |
81ecdfbb RW |
1709 | |
1710 | } # ac_fn_c_try_link | |
1711 | ||
81ecdfbb RW |
1712 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
1713 | # ------------------------------------------- | |
1714 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1715 | # variable VAR accordingly. | |
1716 | ac_fn_c_check_type () | |
1717 | { | |
1718 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1720 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1721 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1722 | $as_echo_n "(cached) " >&6 |
1723 | else | |
1724 | eval "$3=no" | |
1725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1726 | /* end confdefs.h. */ | |
1727 | $4 | |
1728 | int | |
1729 | main () | |
1730 | { | |
1731 | if (sizeof ($2)) | |
1732 | return 0; | |
1733 | ; | |
1734 | return 0; | |
1735 | } | |
1736 | _ACEOF | |
1737 | if ac_fn_c_try_compile "$LINENO"; then : | |
1738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1739 | /* end confdefs.h. */ | |
1740 | $4 | |
1741 | int | |
1742 | main () | |
1743 | { | |
1744 | if (sizeof (($2))) | |
1745 | return 0; | |
1746 | ; | |
1747 | return 0; | |
1748 | } | |
1749 | _ACEOF | |
1750 | if ac_fn_c_try_compile "$LINENO"; then : | |
1751 | ||
1752 | else | |
1753 | eval "$3=yes" | |
1754 | fi | |
1755 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1756 | fi | |
1757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1758 | fi | |
1759 | eval ac_res=\$$3 | |
1760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1761 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1762 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
81ecdfbb RW |
1763 | |
1764 | } # ac_fn_c_check_type | |
81ecdfbb RW |
1765 | cat >config.log <<_ACEOF |
1766 | This file contains any messages produced by compilers while | |
1767 | running configure, to aid debugging if configure makes a mistake. | |
1768 | ||
1769 | It was created by $as_me, which was | |
d0ac1c44 | 1770 | generated by GNU Autoconf 2.69. Invocation command line was |
81ecdfbb RW |
1771 | |
1772 | $ $0 $@ | |
1773 | ||
1774 | _ACEOF | |
1775 | exec 5>>config.log | |
1776 | { | |
1777 | cat <<_ASUNAME | |
1778 | ## --------- ## | |
1779 | ## Platform. ## | |
1780 | ## --------- ## | |
1781 | ||
1782 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1783 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1784 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1785 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1786 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1787 | ||
1788 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1789 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1790 | ||
1791 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1792 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1793 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1794 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1795 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1796 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1797 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1798 | ||
1799 | _ASUNAME | |
1800 | ||
1801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1802 | for as_dir in $PATH | |
1803 | do | |
1804 | IFS=$as_save_IFS | |
1805 | test -z "$as_dir" && as_dir=. | |
1806 | $as_echo "PATH: $as_dir" | |
1807 | done | |
1808 | IFS=$as_save_IFS | |
1809 | ||
1810 | } >&5 | |
1811 | ||
1812 | cat >&5 <<_ACEOF | |
b7026657 AC |
1813 | |
1814 | ||
1815 | ## ----------- ## | |
1816 | ## Core tests. ## | |
1817 | ## ----------- ## | |
1818 | ||
1819 | _ACEOF | |
1820 | ||
1821 | ||
1822 | # Keep a trace of the command line. | |
1823 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1824 | # Strip out --silent because we don't want to record it for future runs. | |
1825 | # Also quote any args containing shell meta-characters. | |
1826 | # Make two passes to allow for proper duplicate-argument suppression. | |
1827 | ac_configure_args= | |
1828 | ac_configure_args0= | |
1829 | ac_configure_args1= | |
b7026657 AC |
1830 | ac_must_keep_next=false |
1831 | for ac_pass in 1 2 | |
1832 | do | |
1833 | for ac_arg | |
1834 | do | |
1835 | case $ac_arg in | |
1836 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1837 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1838 | | -silent | --silent | --silen | --sile | --sil) | |
1839 | continue ;; | |
81ecdfbb RW |
1840 | *\'*) |
1841 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b7026657 AC |
1842 | esac |
1843 | case $ac_pass in | |
81ecdfbb | 1844 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
b7026657 | 1845 | 2) |
81ecdfbb | 1846 | as_fn_append ac_configure_args1 " '$ac_arg'" |
b7026657 AC |
1847 | if test $ac_must_keep_next = true; then |
1848 | ac_must_keep_next=false # Got value, back to normal. | |
1849 | else | |
1850 | case $ac_arg in | |
1851 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1852 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1853 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1854 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1855 | case "$ac_configure_args0 " in | |
1856 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1857 | esac | |
1858 | ;; | |
1859 | -* ) ac_must_keep_next=true ;; | |
1860 | esac | |
1861 | fi | |
81ecdfbb | 1862 | as_fn_append ac_configure_args " '$ac_arg'" |
b7026657 AC |
1863 | ;; |
1864 | esac | |
1865 | done | |
1866 | done | |
81ecdfbb RW |
1867 | { ac_configure_args0=; unset ac_configure_args0;} |
1868 | { ac_configure_args1=; unset ac_configure_args1;} | |
b7026657 AC |
1869 | |
1870 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1871 | # config.log. We remove comments because anyway the quotes in there | |
1872 | # would cause problems or look ugly. | |
81ecdfbb RW |
1873 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1874 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
b7026657 AC |
1875 | trap 'exit_status=$? |
1876 | # Save into config.log some information that might help in debugging. | |
1877 | { | |
1878 | echo | |
1879 | ||
d0ac1c44 | 1880 | $as_echo "## ---------------- ## |
b7026657 | 1881 | ## Cache variables. ## |
d0ac1c44 | 1882 | ## ---------------- ##" |
b7026657 AC |
1883 | echo |
1884 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1885 | ( |
1886 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1887 | eval ac_val=\$$ac_var | |
1888 | case $ac_val in #( | |
1889 | *${as_nl}*) | |
1890 | case $ac_var in #( | |
1891 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1892 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1893 | esac | |
1894 | case $ac_var in #( | |
1895 | _ | IFS | as_nl) ;; #( | |
1896 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1897 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1898 | esac ;; | |
1899 | esac | |
1900 | done | |
b7026657 | 1901 | (set) 2>&1 | |
81ecdfbb RW |
1902 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1903 | *${as_nl}ac_space=\ *) | |
b7026657 | 1904 | sed -n \ |
81ecdfbb RW |
1905 | "s/'\''/'\''\\\\'\'''\''/g; |
1906 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1907 | ;; #( | |
b7026657 | 1908 | *) |
81ecdfbb | 1909 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 1910 | ;; |
81ecdfbb RW |
1911 | esac | |
1912 | sort | |
1913 | ) | |
b7026657 AC |
1914 | echo |
1915 | ||
d0ac1c44 | 1916 | $as_echo "## ----------------- ## |
b7026657 | 1917 | ## Output variables. ## |
d0ac1c44 | 1918 | ## ----------------- ##" |
b7026657 AC |
1919 | echo |
1920 | for ac_var in $ac_subst_vars | |
1921 | do | |
81ecdfbb RW |
1922 | eval ac_val=\$$ac_var |
1923 | case $ac_val in | |
1924 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1925 | esac | |
1926 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
1927 | done | sort |
1928 | echo | |
1929 | ||
1930 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 1931 | $as_echo "## ------------------- ## |
81ecdfbb | 1932 | ## File substitutions. ## |
d0ac1c44 | 1933 | ## ------------------- ##" |
b7026657 AC |
1934 | echo |
1935 | for ac_var in $ac_subst_files | |
1936 | do | |
81ecdfbb RW |
1937 | eval ac_val=\$$ac_var |
1938 | case $ac_val in | |
1939 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1940 | esac | |
1941 | $as_echo "$ac_var='\''$ac_val'\''" | |
b7026657 AC |
1942 | done | sort |
1943 | echo | |
1944 | fi | |
1945 | ||
1946 | if test -s confdefs.h; then | |
d0ac1c44 | 1947 | $as_echo "## ----------- ## |
b7026657 | 1948 | ## confdefs.h. ## |
d0ac1c44 | 1949 | ## ----------- ##" |
b7026657 | 1950 | echo |
81ecdfbb | 1951 | cat confdefs.h |
b7026657 AC |
1952 | echo |
1953 | fi | |
1954 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
1955 | $as_echo "$as_me: caught signal $ac_signal" |
1956 | $as_echo "$as_me: exit $exit_status" | |
b7026657 | 1957 | } >&5 |
81ecdfbb RW |
1958 | rm -f core *.core core.conftest.* && |
1959 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
b7026657 | 1960 | exit $exit_status |
81ecdfbb | 1961 | ' 0 |
b7026657 | 1962 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 1963 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
b7026657 AC |
1964 | done |
1965 | ac_signal=0 | |
1966 | ||
1967 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
1968 | rm -f -r conftest* confdefs.h |
1969 | ||
1970 | $as_echo "/* confdefs.h */" > confdefs.h | |
b7026657 AC |
1971 | |
1972 | # Predefined preprocessor variables. | |
1973 | ||
1974 | cat >>confdefs.h <<_ACEOF | |
1975 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1976 | _ACEOF | |
1977 | ||
b7026657 AC |
1978 | cat >>confdefs.h <<_ACEOF |
1979 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1980 | _ACEOF | |
1981 | ||
b7026657 AC |
1982 | cat >>confdefs.h <<_ACEOF |
1983 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1984 | _ACEOF | |
1985 | ||
b7026657 AC |
1986 | cat >>confdefs.h <<_ACEOF |
1987 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1988 | _ACEOF | |
1989 | ||
b7026657 AC |
1990 | cat >>confdefs.h <<_ACEOF |
1991 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1992 | _ACEOF | |
1993 | ||
81ecdfbb RW |
1994 | cat >>confdefs.h <<_ACEOF |
1995 | #define PACKAGE_URL "$PACKAGE_URL" | |
1996 | _ACEOF | |
1997 | ||
b7026657 AC |
1998 | |
1999 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2000 | # Prefer an explicitly selected file to automatically selected ones. |
2001 | ac_site_file1=NONE | |
2002 | ac_site_file2=NONE | |
2003 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2004 | # We do not want a PATH search for config.site. |
2005 | case $CONFIG_SITE in #(( | |
2006 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2007 | */*) ac_site_file1=$CONFIG_SITE;; | |
2008 | *) ac_site_file1=./$CONFIG_SITE;; | |
2009 | esac | |
81ecdfbb RW |
2010 | elif test "x$prefix" != xNONE; then |
2011 | ac_site_file1=$prefix/share/config.site | |
2012 | ac_site_file2=$prefix/etc/config.site | |
2013 | else | |
2014 | ac_site_file1=$ac_default_prefix/share/config.site | |
2015 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2016 | fi | |
2017 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2018 | do | |
2019 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2020 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2021 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2022 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
b7026657 | 2023 | sed 's/^/| /' "$ac_site_file" >&5 |
d0ac1c44 SM |
2024 | . "$ac_site_file" \ |
2025 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2026 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2027 | as_fn_error $? "failed to load site script $ac_site_file | |
2028 | See \`config.log' for more details" "$LINENO" 5; } | |
b7026657 AC |
2029 | fi |
2030 | done | |
2031 | ||
2032 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2033 | # Some versions of bash will fail to source /dev/null (special files |
2034 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2035 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2037 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
b7026657 | 2038 | case $cache_file in |
81ecdfbb RW |
2039 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2040 | *) . "./$cache_file";; | |
b7026657 AC |
2041 | esac |
2042 | fi | |
2043 | else | |
81ecdfbb RW |
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2045 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
b7026657 AC |
2046 | >$cache_file |
2047 | fi | |
2048 | ||
2049 | # Check that the precious variables saved in the cache have kept the same | |
2050 | # value. | |
2051 | ac_cache_corrupted=false | |
81ecdfbb | 2052 | for ac_var in $ac_precious_vars; do |
b7026657 AC |
2053 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2054 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2055 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2056 | eval ac_new_val=\$ac_env_${ac_var}_value | |
b7026657 AC |
2057 | case $ac_old_set,$ac_new_set in |
2058 | set,) | |
81ecdfbb RW |
2059 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2060 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
b7026657 AC |
2061 | ac_cache_corrupted=: ;; |
2062 | ,set) | |
81ecdfbb RW |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2064 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
b7026657 AC |
2065 | ac_cache_corrupted=: ;; |
2066 | ,);; | |
2067 | *) | |
2068 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2069 | # differences in whitespace do not lead to failure. |
2070 | ac_old_val_w=`echo x $ac_old_val` | |
2071 | ac_new_val_w=`echo x $ac_new_val` | |
2072 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2073 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2074 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2075 | ac_cache_corrupted=: | |
2076 | else | |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2078 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2079 | eval $ac_var=\$ac_old_val | |
2080 | fi | |
2081 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2082 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2083 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2084 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
b7026657 AC |
2085 | fi;; |
2086 | esac | |
2087 | # Pass precious variables to config.status. | |
2088 | if test "$ac_new_set" = set; then | |
2089 | case $ac_new_val in | |
81ecdfbb | 2090 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
b7026657 AC |
2091 | *) ac_arg=$ac_var=$ac_new_val ;; |
2092 | esac | |
2093 | case " $ac_configure_args " in | |
2094 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2095 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
b7026657 AC |
2096 | esac |
2097 | fi | |
2098 | done | |
2099 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2101 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2103 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2104 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
b7026657 | 2105 | fi |
81ecdfbb RW |
2106 | ## -------------------- ## |
2107 | ## Main body of script. ## | |
2108 | ## -------------------- ## | |
b7026657 AC |
2109 | |
2110 | ac_ext=c | |
2111 | ac_cpp='$CPP $CPPFLAGS' | |
2112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b7026657 | 2115 | |
b7026657 AC |
2116 | |
2117 | ||
2118 | ||
2119 | ac_aux_dir= | |
81ecdfbb | 2120 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
d0ac1c44 SM |
2121 | if test -f "$ac_dir/install-sh"; then |
2122 | ac_aux_dir=$ac_dir | |
2123 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2124 | break | |
2125 | elif test -f "$ac_dir/install.sh"; then | |
2126 | ac_aux_dir=$ac_dir | |
2127 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2128 | break | |
2129 | elif test -f "$ac_dir/shtool"; then | |
2130 | ac_aux_dir=$ac_dir | |
2131 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2132 | break | |
2133 | fi | |
b7026657 AC |
2134 | done |
2135 | if test -z "$ac_aux_dir"; then | |
d0ac1c44 | 2136 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
b7026657 | 2137 | fi |
81ecdfbb RW |
2138 | |
2139 | # These three variables are undocumented and unsupported, | |
2140 | # and are intended to be withdrawn in a future Autoconf release. | |
2141 | # They can cause serious problems if a builder's source tree is in a directory | |
2142 | # whose full name contains unusual characters. | |
2143 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2144 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2145 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2146 | ||
b7026657 AC |
2147 | |
2148 | # Find a good install program. We prefer a C program (faster), | |
2149 | # so one script is as good as another. But avoid the broken or | |
2150 | # incompatible versions: | |
2151 | # SysV /etc/install, /usr/sbin/install | |
2152 | # SunOS /usr/etc/install | |
2153 | # IRIX /sbin/install | |
2154 | # AIX /bin/install | |
2155 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2156 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2157 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2158 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2159 | # OS/2's system install, which has a completely different semantic | |
2160 | # ./install, which can be erroneously created by make from ./install.sh. | |
81ecdfbb RW |
2161 | # Reject install programs that cannot install multiple files. |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2163 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
b7026657 | 2164 | if test -z "$INSTALL"; then |
d0ac1c44 | 2165 | if ${ac_cv_path_install+:} false; then : |
81ecdfbb | 2166 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
2167 | else |
2168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2169 | for as_dir in $PATH | |
2170 | do | |
2171 | IFS=$as_save_IFS | |
2172 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2173 | # Account for people who put trailing slashes in PATH elements. |
2174 | case $as_dir/ in #(( | |
2175 | ./ | .// | /[cC]/* | \ | |
b7026657 | 2176 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2177 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
b7026657 AC |
2178 | /usr/ucb/* ) ;; |
2179 | *) | |
2180 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2181 | # Don't use installbsd from OSF since it installs stuff as root | |
2182 | # by default. | |
2183 | for ac_prog in ginstall scoinst install; do | |
2184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2185 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
b7026657 AC |
2186 | if test $ac_prog = install && |
2187 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2188 | # AIX install. It has an incompatible calling convention. | |
2189 | : | |
2190 | elif test $ac_prog = install && | |
2191 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2192 | # program-specific install script used by HP pwplus--don't use. | |
2193 | : | |
2194 | else | |
81ecdfbb RW |
2195 | rm -rf conftest.one conftest.two conftest.dir |
2196 | echo one > conftest.one | |
2197 | echo two > conftest.two | |
2198 | mkdir conftest.dir | |
2199 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2200 | test -s conftest.one && test -s conftest.two && | |
2201 | test -s conftest.dir/conftest.one && | |
2202 | test -s conftest.dir/conftest.two | |
2203 | then | |
2204 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2205 | break 3 | |
2206 | fi | |
b7026657 AC |
2207 | fi |
2208 | fi | |
2209 | done | |
2210 | done | |
2211 | ;; | |
2212 | esac | |
b7026657 | 2213 | |
81ecdfbb RW |
2214 | done |
2215 | IFS=$as_save_IFS | |
2216 | ||
2217 | rm -rf conftest.one conftest.two conftest.dir | |
b7026657 AC |
2218 | |
2219 | fi | |
2220 | if test "${ac_cv_path_install+set}" = set; then | |
2221 | INSTALL=$ac_cv_path_install | |
2222 | else | |
81ecdfbb RW |
2223 | # As a last resort, use the slow shell script. Don't cache a |
2224 | # value for INSTALL within a source directory, because that will | |
b7026657 | 2225 | # break other packages using the cache if that directory is |
81ecdfbb | 2226 | # removed, or if the value is a relative name. |
b7026657 AC |
2227 | INSTALL=$ac_install_sh |
2228 | fi | |
2229 | fi | |
81ecdfbb RW |
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2231 | $as_echo "$INSTALL" >&6; } | |
b7026657 AC |
2232 | |
2233 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2234 | # It thinks the first close brace ends the variable substitution. | |
2235 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2236 | ||
2237 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2238 | ||
2239 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2240 | ||
2241 | ac_ext=c | |
2242 | ac_cpp='$CPP $CPPFLAGS' | |
2243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2246 | if test -n "$ac_tool_prefix"; then | |
2247 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2248 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
2249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2250 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2251 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2252 | $as_echo_n "(cached) " >&6 |
c906108c SS |
2253 | else |
2254 | if test -n "$CC"; then | |
2255 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2256 | else | |
b7026657 AC |
2257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2258 | for as_dir in $PATH | |
2259 | do | |
2260 | IFS=$as_save_IFS | |
2261 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2262 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 2264 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 2265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
2266 | break 2 |
2267 | fi | |
2268 | done | |
81ecdfbb RW |
2269 | done |
2270 | IFS=$as_save_IFS | |
b7026657 | 2271 | |
c906108c SS |
2272 | fi |
2273 | fi | |
b7026657 | 2274 | CC=$ac_cv_prog_CC |
c906108c | 2275 | if test -n "$CC"; then |
81ecdfbb RW |
2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2277 | $as_echo "$CC" >&6; } | |
b7026657 | 2278 | else |
81ecdfbb RW |
2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2280 | $as_echo "no" >&6; } | |
b7026657 AC |
2281 | fi |
2282 | ||
81ecdfbb | 2283 | |
b7026657 AC |
2284 | fi |
2285 | if test -z "$ac_cv_prog_CC"; then | |
2286 | ac_ct_CC=$CC | |
2287 | # Extract the first word of "gcc", so it can be a program name with args. | |
2288 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2290 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2291 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2292 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
2293 | else |
2294 | if test -n "$ac_ct_CC"; then | |
2295 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2296 | else | |
2297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2298 | for as_dir in $PATH | |
2299 | do | |
2300 | IFS=$as_save_IFS | |
2301 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2302 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2303 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 2304 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 2305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
2306 | break 2 |
2307 | fi | |
2308 | done | |
81ecdfbb RW |
2309 | done |
2310 | IFS=$as_save_IFS | |
b7026657 AC |
2311 | |
2312 | fi | |
2313 | fi | |
2314 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2315 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2317 | $as_echo "$ac_ct_CC" >&6; } | |
c906108c | 2318 | else |
81ecdfbb RW |
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2320 | $as_echo "no" >&6; } | |
b7026657 AC |
2321 | fi |
2322 | ||
81ecdfbb RW |
2323 | if test "x$ac_ct_CC" = x; then |
2324 | CC="" | |
2325 | else | |
2326 | case $cross_compiling:$ac_tool_warned in | |
2327 | yes:) | |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2329 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2330 | ac_tool_warned=yes ;; | |
2331 | esac | |
2332 | CC=$ac_ct_CC | |
2333 | fi | |
b7026657 AC |
2334 | else |
2335 | CC="$ac_cv_prog_CC" | |
c906108c SS |
2336 | fi |
2337 | ||
2338 | if test -z "$CC"; then | |
81ecdfbb RW |
2339 | if test -n "$ac_tool_prefix"; then |
2340 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
b7026657 | 2341 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2343 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2344 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2345 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
2346 | else |
2347 | if test -n "$CC"; then | |
2348 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2349 | else | |
2350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2351 | for as_dir in $PATH | |
2352 | do | |
2353 | IFS=$as_save_IFS | |
2354 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2355 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2356 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 2357 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 2358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
2359 | break 2 |
2360 | fi | |
2361 | done | |
81ecdfbb RW |
2362 | done |
2363 | IFS=$as_save_IFS | |
b7026657 AC |
2364 | |
2365 | fi | |
2366 | fi | |
2367 | CC=$ac_cv_prog_CC | |
2368 | if test -n "$CC"; then | |
81ecdfbb RW |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2370 | $as_echo "$CC" >&6; } | |
b7026657 | 2371 | else |
81ecdfbb RW |
2372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2373 | $as_echo "no" >&6; } | |
b7026657 AC |
2374 | fi |
2375 | ||
b7026657 | 2376 | |
81ecdfbb | 2377 | fi |
b7026657 AC |
2378 | fi |
2379 | if test -z "$CC"; then | |
2380 | # Extract the first word of "cc", so it can be a program name with args. | |
2381 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2383 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2384 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2385 | $as_echo_n "(cached) " >&6 |
c906108c SS |
2386 | else |
2387 | if test -n "$CC"; then | |
2388 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2389 | else | |
c906108c | 2390 | ac_prog_rejected=no |
b7026657 AC |
2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2392 | for as_dir in $PATH | |
2393 | do | |
2394 | IFS=$as_save_IFS | |
2395 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2396 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2397 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 AC |
2398 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2399 | ac_prog_rejected=yes | |
2400 | continue | |
2401 | fi | |
2402 | ac_cv_prog_CC="cc" | |
81ecdfbb | 2403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
2404 | break 2 |
2405 | fi | |
2406 | done | |
81ecdfbb RW |
2407 | done |
2408 | IFS=$as_save_IFS | |
b7026657 | 2409 | |
c906108c SS |
2410 | if test $ac_prog_rejected = yes; then |
2411 | # We found a bogon in the path, so make sure we never use it. | |
2412 | set dummy $ac_cv_prog_CC | |
2413 | shift | |
b7026657 | 2414 | if test $# != 0; then |
c906108c SS |
2415 | # We chose a different compiler from the bogus one. |
2416 | # However, it has the same basename, so the bogon will be chosen | |
2417 | # first if we set CC to just the basename; use the full file name. | |
2418 | shift | |
b7026657 | 2419 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
2420 | fi |
2421 | fi | |
2422 | fi | |
2423 | fi | |
b7026657 | 2424 | CC=$ac_cv_prog_CC |
c906108c | 2425 | if test -n "$CC"; then |
81ecdfbb RW |
2426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2427 | $as_echo "$CC" >&6; } | |
c906108c | 2428 | else |
81ecdfbb RW |
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2430 | $as_echo "no" >&6; } | |
c906108c SS |
2431 | fi |
2432 | ||
81ecdfbb | 2433 | |
b7026657 AC |
2434 | fi |
2435 | if test -z "$CC"; then | |
2436 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 2437 | for ac_prog in cl.exe |
b7026657 AC |
2438 | do |
2439 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2440 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
2441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2442 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2443 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 2444 | $as_echo_n "(cached) " >&6 |
c906108c SS |
2445 | else |
2446 | if test -n "$CC"; then | |
2447 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2448 | else | |
b7026657 AC |
2449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2450 | for as_dir in $PATH | |
2451 | do | |
2452 | IFS=$as_save_IFS | |
2453 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2454 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 2456 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 2457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
2458 | break 2 |
2459 | fi | |
2460 | done | |
81ecdfbb RW |
2461 | done |
2462 | IFS=$as_save_IFS | |
b7026657 AC |
2463 | |
2464 | fi | |
2465 | fi | |
2466 | CC=$ac_cv_prog_CC | |
2467 | if test -n "$CC"; then | |
81ecdfbb RW |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2469 | $as_echo "$CC" >&6; } | |
b7026657 | 2470 | else |
81ecdfbb RW |
2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2472 | $as_echo "no" >&6; } | |
b7026657 AC |
2473 | fi |
2474 | ||
81ecdfbb | 2475 | |
b7026657 AC |
2476 | test -n "$CC" && break |
2477 | done | |
2478 | fi | |
2479 | if test -z "$CC"; then | |
2480 | ac_ct_CC=$CC | |
81ecdfbb | 2481 | for ac_prog in cl.exe |
b7026657 AC |
2482 | do |
2483 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2484 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
2485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2486 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2487 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 2488 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
2489 | else |
2490 | if test -n "$ac_ct_CC"; then | |
2491 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2492 | else | |
2493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2494 | for as_dir in $PATH | |
2495 | do | |
2496 | IFS=$as_save_IFS | |
2497 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 2498 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 2499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 2500 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 2501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
2502 | break 2 |
2503 | fi | |
2504 | done | |
81ecdfbb RW |
2505 | done |
2506 | IFS=$as_save_IFS | |
b7026657 AC |
2507 | |
2508 | fi | |
2509 | fi | |
2510 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2511 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
2512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2513 | $as_echo "$ac_ct_CC" >&6; } | |
b7026657 | 2514 | else |
81ecdfbb RW |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2516 | $as_echo "no" >&6; } | |
b7026657 AC |
2517 | fi |
2518 | ||
81ecdfbb | 2519 | |
b7026657 AC |
2520 | test -n "$ac_ct_CC" && break |
2521 | done | |
2522 | ||
81ecdfbb RW |
2523 | if test "x$ac_ct_CC" = x; then |
2524 | CC="" | |
2525 | else | |
2526 | case $cross_compiling:$ac_tool_warned in | |
2527 | yes:) | |
2528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2529 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2530 | ac_tool_warned=yes ;; | |
2531 | esac | |
2532 | CC=$ac_ct_CC | |
2533 | fi | |
b7026657 AC |
2534 | fi |
2535 | ||
2536 | fi | |
2537 | ||
2538 | ||
81ecdfbb RW |
2539 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2541 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2542 | See \`config.log' for more details" "$LINENO" 5; } | |
b7026657 AC |
2543 | |
2544 | # Provide some information about the compiler. | |
81ecdfbb RW |
2545 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2546 | set X $ac_compile | |
2547 | ac_compiler=$2 | |
2548 | for ac_option in --version -v -V -qversion; do | |
2549 | { { ac_try="$ac_compiler $ac_option >&5" | |
2550 | case "(($ac_try" in | |
2551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2552 | *) ac_try_echo=$ac_try;; | |
2553 | esac | |
2554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2555 | $as_echo "$ac_try_echo"; } >&5 | |
2556 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
b7026657 | 2557 | ac_status=$? |
81ecdfbb RW |
2558 | if test -s conftest.err; then |
2559 | sed '10a\ | |
2560 | ... rest of stderr output deleted ... | |
2561 | 10q' conftest.err >conftest.er1 | |
2562 | cat conftest.er1 >&5 | |
81ecdfbb | 2563 | fi |
d0ac1c44 | 2564 | rm -f conftest.er1 conftest.err |
81ecdfbb RW |
2565 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2566 | test $ac_status = 0; } | |
2567 | done | |
b7026657 | 2568 | |
81ecdfbb | 2569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
2570 | /* end confdefs.h. */ |
2571 | ||
2572 | int | |
2573 | main () | |
2574 | { | |
2575 | ||
2576 | ; | |
2577 | return 0; | |
2578 | } | |
2579 | _ACEOF | |
2580 | ac_clean_files_save=$ac_clean_files | |
d0ac1c44 | 2581 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
b7026657 AC |
2582 | # Try to create an executable without -o first, disregard a.out. |
2583 | # It will help us diagnose broken compilers, and finding out an intuition | |
2584 | # of exeext. | |
d0ac1c44 SM |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2586 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
81ecdfbb RW |
2587 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2588 | ||
2589 | # The possible output files: | |
2590 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2591 | ||
2592 | ac_rmfiles= | |
2593 | for ac_file in $ac_files | |
2594 | do | |
2595 | case $ac_file in | |
2596 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2597 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2598 | esac | |
2599 | done | |
2600 | rm -f $ac_rmfiles | |
2601 | ||
2602 | if { { ac_try="$ac_link_default" | |
2603 | case "(($ac_try" in | |
2604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2605 | *) ac_try_echo=$ac_try;; | |
2606 | esac | |
2607 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2608 | $as_echo "$ac_try_echo"; } >&5 | |
2609 | (eval "$ac_link_default") 2>&5 | |
2610 | ac_status=$? | |
2611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2612 | test $ac_status = 0; }; then : | |
2613 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2614 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2615 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2616 | # so that the user can short-circuit this test for compilers unknown to | |
2617 | # Autoconf. | |
2618 | for ac_file in $ac_files '' | |
b7026657 AC |
2619 | do |
2620 | test -f "$ac_file" || continue | |
2621 | case $ac_file in | |
81ecdfbb | 2622 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
b7026657 AC |
2623 | ;; |
2624 | [ab].out ) | |
2625 | # We found the default executable, but exeext='' is most | |
2626 | # certainly right. | |
2627 | break;; | |
2628 | *.* ) | |
81ecdfbb RW |
2629 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2630 | then :; else | |
2631 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2632 | fi | |
2633 | # We set ac_cv_exeext here because the later test for it is not | |
2634 | # safe: cross compilers may not add the suffix if given an `-o' | |
2635 | # argument, so we may need to know it at that point already. | |
2636 | # Even if this section looks crufty: it has the advantage of | |
2637 | # actually working. | |
b7026657 AC |
2638 | break;; |
2639 | * ) | |
2640 | break;; | |
2641 | esac | |
2642 | done | |
81ecdfbb RW |
2643 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2644 | ||
b7026657 | 2645 | else |
81ecdfbb RW |
2646 | ac_file='' |
2647 | fi | |
81ecdfbb | 2648 | if test -z "$ac_file"; then : |
d0ac1c44 SM |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2650 | $as_echo "no" >&6; } | |
2651 | $as_echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
2652 | sed 's/^/| /' conftest.$ac_ext >&5 |
2653 | ||
81ecdfbb RW |
2654 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2655 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2656 | as_fn_error 77 "C compiler cannot create executables |
2657 | See \`config.log' for more details" "$LINENO" 5; } | |
2658 | else | |
2659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2660 | $as_echo "yes" >&6; } | |
b7026657 | 2661 | fi |
d0ac1c44 SM |
2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2663 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2665 | $as_echo "$ac_file" >&6; } | |
b7026657 | 2666 | ac_exeext=$ac_cv_exeext |
b7026657 | 2667 | |
d0ac1c44 | 2668 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
b7026657 | 2669 | ac_clean_files=$ac_clean_files_save |
81ecdfbb RW |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2671 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2672 | if { { ac_try="$ac_link" | |
2673 | case "(($ac_try" in | |
2674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2675 | *) ac_try_echo=$ac_try;; | |
2676 | esac | |
2677 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2678 | $as_echo "$ac_try_echo"; } >&5 | |
2679 | (eval "$ac_link") 2>&5 | |
b7026657 | 2680 | ac_status=$? |
81ecdfbb RW |
2681 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2682 | test $ac_status = 0; }; then : | |
b7026657 AC |
2683 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2684 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2685 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2686 | # `rm'. | |
2687 | for ac_file in conftest.exe conftest conftest.*; do | |
2688 | test -f "$ac_file" || continue | |
2689 | case $ac_file in | |
81ecdfbb | 2690 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
b7026657 | 2691 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
b7026657 AC |
2692 | break;; |
2693 | * ) break;; | |
2694 | esac | |
2695 | done | |
c906108c | 2696 | else |
81ecdfbb RW |
2697 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2698 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2699 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2700 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 2701 | fi |
d0ac1c44 | 2702 | rm -f conftest conftest$ac_cv_exeext |
81ecdfbb RW |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2704 | $as_echo "$ac_cv_exeext" >&6; } | |
c906108c | 2705 | |
b7026657 AC |
2706 | rm -f conftest.$ac_ext |
2707 | EXEEXT=$ac_cv_exeext | |
2708 | ac_exeext=$EXEEXT | |
d0ac1c44 SM |
2709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2710 | /* end confdefs.h. */ | |
2711 | #include <stdio.h> | |
2712 | int | |
2713 | main () | |
2714 | { | |
2715 | FILE *f = fopen ("conftest.out", "w"); | |
2716 | return ferror (f) || fclose (f) != 0; | |
2717 | ||
2718 | ; | |
2719 | return 0; | |
2720 | } | |
2721 | _ACEOF | |
2722 | ac_clean_files="$ac_clean_files conftest.out" | |
2723 | # Check that the compiler produces executables we can run. If not, either | |
2724 | # the compiler is broken, or we cross compile. | |
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2726 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2727 | if test "$cross_compiling" != yes; then | |
2728 | { { ac_try="$ac_link" | |
2729 | case "(($ac_try" in | |
2730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2731 | *) ac_try_echo=$ac_try;; | |
2732 | esac | |
2733 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2734 | $as_echo "$ac_try_echo"; } >&5 | |
2735 | (eval "$ac_link") 2>&5 | |
2736 | ac_status=$? | |
2737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2738 | test $ac_status = 0; } | |
2739 | if { ac_try='./conftest$ac_cv_exeext' | |
2740 | { { case "(($ac_try" in | |
2741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2742 | *) ac_try_echo=$ac_try;; | |
2743 | esac | |
2744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2745 | $as_echo "$ac_try_echo"; } >&5 | |
2746 | (eval "$ac_try") 2>&5 | |
2747 | ac_status=$? | |
2748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2749 | test $ac_status = 0; }; }; then | |
2750 | cross_compiling=no | |
2751 | else | |
2752 | if test "$cross_compiling" = maybe; then | |
2753 | cross_compiling=yes | |
2754 | else | |
2755 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2756 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2757 | as_fn_error $? "cannot run C compiled programs. | |
2758 | If you meant to cross compile, use \`--host'. | |
2759 | See \`config.log' for more details" "$LINENO" 5; } | |
2760 | fi | |
2761 | fi | |
2762 | fi | |
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2764 | $as_echo "$cross_compiling" >&6; } | |
2765 | ||
2766 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2767 | ac_clean_files=$ac_clean_files_save | |
81ecdfbb RW |
2768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2769 | $as_echo_n "checking for suffix of object files... " >&6; } | |
d0ac1c44 | 2770 | if ${ac_cv_objext+:} false; then : |
81ecdfbb | 2771 | $as_echo_n "(cached) " >&6 |
b7026657 | 2772 | else |
81ecdfbb | 2773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
2774 | /* end confdefs.h. */ |
2775 | ||
2776 | int | |
2777 | main () | |
2778 | { | |
2779 | ||
2780 | ; | |
2781 | return 0; | |
2782 | } | |
2783 | _ACEOF | |
2784 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
2785 | if { { ac_try="$ac_compile" |
2786 | case "(($ac_try" in | |
2787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2788 | *) ac_try_echo=$ac_try;; | |
2789 | esac | |
2790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2791 | $as_echo "$ac_try_echo"; } >&5 | |
2792 | (eval "$ac_compile") 2>&5 | |
2793 | ac_status=$? | |
2794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2795 | test $ac_status = 0; }; then : | |
2796 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2797 | test -f "$ac_file" || continue; | |
b7026657 | 2798 | case $ac_file in |
81ecdfbb | 2799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
b7026657 AC |
2800 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2801 | break;; | |
2802 | esac | |
2803 | done | |
c906108c | 2804 | else |
81ecdfbb | 2805 | $as_echo "$as_me: failed program was:" >&5 |
b7026657 | 2806 | sed 's/^/| /' conftest.$ac_ext >&5 |
c906108c | 2807 | |
81ecdfbb RW |
2808 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2809 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
2810 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2811 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 2812 | fi |
b7026657 AC |
2813 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2814 | fi | |
81ecdfbb RW |
2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2816 | $as_echo "$ac_cv_objext" >&6; } | |
b7026657 AC |
2817 | OBJEXT=$ac_cv_objext |
2818 | ac_objext=$OBJEXT | |
81ecdfbb RW |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2820 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 2821 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 2822 | $as_echo_n "(cached) " >&6 |
c906108c | 2823 | else |
81ecdfbb | 2824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
2825 | /* end confdefs.h. */ |
2826 | ||
2827 | int | |
2828 | main () | |
2829 | { | |
2830 | #ifndef __GNUC__ | |
2831 | choke me | |
c906108c | 2832 | #endif |
c906108c | 2833 | |
b7026657 AC |
2834 | ; |
2835 | return 0; | |
2836 | } | |
2837 | _ACEOF | |
81ecdfbb | 2838 | if ac_fn_c_try_compile "$LINENO"; then : |
b7026657 AC |
2839 | ac_compiler_gnu=yes |
2840 | else | |
81ecdfbb | 2841 | ac_compiler_gnu=no |
b7026657 | 2842 | fi |
81ecdfbb | 2843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 AC |
2844 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2845 | ||
2846 | fi | |
81ecdfbb RW |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2848 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2849 | if test $ac_compiler_gnu = yes; then | |
2850 | GCC=yes | |
2851 | else | |
2852 | GCC= | |
2853 | fi | |
b7026657 AC |
2854 | ac_test_CFLAGS=${CFLAGS+set} |
2855 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2857 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 2858 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
2859 | $as_echo_n "(cached) " >&6 |
2860 | else | |
2861 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2862 | ac_c_werror_flag=yes | |
2863 | ac_cv_prog_cc_g=no | |
2864 | CFLAGS="-g" | |
2865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b7026657 | 2866 | /* end confdefs.h. */ |
c906108c | 2867 | |
b7026657 AC |
2868 | int |
2869 | main () | |
2870 | { | |
c906108c | 2871 | |
b7026657 AC |
2872 | ; |
2873 | return 0; | |
2874 | } | |
2875 | _ACEOF | |
81ecdfbb | 2876 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
2877 | ac_cv_prog_cc_g=yes |
2878 | else | |
81ecdfbb RW |
2879 | CFLAGS="" |
2880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2881 | /* end confdefs.h. */ | |
2882 | ||
2883 | int | |
2884 | main () | |
2885 | { | |
2886 | ||
2887 | ; | |
2888 | return 0; | |
2889 | } | |
2890 | _ACEOF | |
2891 | if ac_fn_c_try_compile "$LINENO"; then : | |
2892 | ||
2893 | else | |
2894 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2895 | CFLAGS="-g" | |
2896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2897 | /* end confdefs.h. */ | |
2898 | ||
2899 | int | |
2900 | main () | |
2901 | { | |
c906108c | 2902 | |
81ecdfbb RW |
2903 | ; |
2904 | return 0; | |
2905 | } | |
2906 | _ACEOF | |
2907 | if ac_fn_c_try_compile "$LINENO"; then : | |
2908 | ac_cv_prog_cc_g=yes | |
2909 | fi | |
2910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2911 | fi | |
2912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 2913 | fi |
81ecdfbb RW |
2914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2915 | ac_c_werror_flag=$ac_save_c_werror_flag | |
b7026657 | 2916 | fi |
81ecdfbb RW |
2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2918 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
c906108c | 2919 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 2920 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2921 | elif test $ac_cv_prog_cc_g = yes; then |
2922 | if test "$GCC" = yes; then | |
2923 | CFLAGS="-g -O2" | |
2924 | else | |
2925 | CFLAGS="-g" | |
2926 | fi | |
2927 | else | |
2928 | if test "$GCC" = yes; then | |
2929 | CFLAGS="-O2" | |
2930 | else | |
2931 | CFLAGS= | |
2932 | fi | |
2933 | fi | |
81ecdfbb RW |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2935 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 2936 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 2937 | $as_echo_n "(cached) " >&6 |
b7026657 | 2938 | else |
81ecdfbb | 2939 | ac_cv_prog_cc_c89=no |
b7026657 | 2940 | ac_save_CC=$CC |
81ecdfbb | 2941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 AC |
2942 | /* end confdefs.h. */ |
2943 | #include <stdarg.h> | |
2944 | #include <stdio.h> | |
d0ac1c44 | 2945 | struct stat; |
b7026657 AC |
2946 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2947 | struct buf { int x; }; | |
2948 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2949 | static char *e (p, i) | |
2950 | char **p; | |
2951 | int i; | |
2952 | { | |
2953 | return p[i]; | |
2954 | } | |
2955 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2956 | { | |
2957 | char *s; | |
2958 | va_list v; | |
2959 | va_start (v,p); | |
2960 | s = g (p, va_arg (v,int)); | |
2961 | va_end (v); | |
2962 | return s; | |
2963 | } | |
c906108c | 2964 | |
b7026657 AC |
2965 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2966 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2967 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 2968 | as 'x'. The following induces an error, until -std is added to get |
b7026657 AC |
2969 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2970 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 2971 | that's true only with -std. */ |
b7026657 AC |
2972 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2973 | ||
81ecdfbb RW |
2974 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2975 | inside strings and character constants. */ | |
2976 | #define FOO(x) 'x' | |
2977 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2978 | ||
b7026657 AC |
2979 | int test (int i, double x); |
2980 | struct s1 {int (*f) (int a);}; | |
2981 | struct s2 {int (*f) (double a);}; | |
2982 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2983 | int argc; | |
2984 | char **argv; | |
2985 | int | |
2986 | main () | |
2987 | { | |
2988 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2989 | ; | |
2990 | return 0; | |
2991 | } | |
2992 | _ACEOF | |
81ecdfbb RW |
2993 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2994 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
b7026657 AC |
2995 | do |
2996 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
2997 | if ac_fn_c_try_compile "$LINENO"; then : |
2998 | ac_cv_prog_cc_c89=$ac_arg | |
b7026657 | 2999 | fi |
81ecdfbb RW |
3000 | rm -f core conftest.err conftest.$ac_objext |
3001 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
b7026657 | 3002 | done |
81ecdfbb | 3003 | rm -f conftest.$ac_ext |
b7026657 | 3004 | CC=$ac_save_CC |
c906108c | 3005 | |
c906108c | 3006 | fi |
81ecdfbb RW |
3007 | # AC_CACHE_VAL |
3008 | case "x$ac_cv_prog_cc_c89" in | |
3009 | x) | |
3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3011 | $as_echo "none needed" >&6; } ;; | |
3012 | xno) | |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3014 | $as_echo "unsupported" >&6; } ;; | |
b7026657 | 3015 | *) |
81ecdfbb RW |
3016 | CC="$CC $ac_cv_prog_cc_c89" |
3017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3018 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
b7026657 | 3019 | esac |
81ecdfbb | 3020 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
b7026657 | 3021 | |
c906108c | 3022 | fi |
b7026657 | 3023 | |
b7026657 AC |
3024 | ac_ext=c |
3025 | ac_cpp='$CPP $CPPFLAGS' | |
3026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3029 | ||
3030 | ||
3031 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
3032 | if test "x$cross_compiling" = "xno"; then | |
3033 | CC_FOR_BUILD='$(CC)' | |
c906108c | 3034 | else |
b7026657 | 3035 | CC_FOR_BUILD=gcc |
c906108c | 3036 | fi |
4b164edf | 3037 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} |
c906108c | 3038 | |
b7026657 | 3039 | ALL_LINGUAS= |
20e95c23 DJ |
3040 | # If we haven't got the data from the intl directory, |
3041 | # assume NLS is disabled. | |
3042 | USE_NLS=no | |
3043 | LIBINTL= | |
3044 | LIBINTL_DEP= | |
3045 | INCINTL= | |
3046 | XGETTEXT= | |
3047 | GMSGFMT= | |
3048 | POSUB= | |
e85e3205 | 3049 | |
29035cbe NH |
3050 | if test -f ../../intl/config.intl; then |
3051 | . ../../intl/config.intl | |
20e95c23 | 3052 | fi |
81ecdfbb RW |
3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
3054 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
20e95c23 | 3055 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3057 | $as_echo "no" >&6; } | |
c906108c | 3058 | else |
81ecdfbb RW |
3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3060 | $as_echo "yes" >&6; } | |
c906108c | 3061 | |
81ecdfbb | 3062 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
20e95c23 DJ |
3063 | |
3064 | ||
81ecdfbb RW |
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
3066 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
20e95c23 DJ |
3067 | # Look for .po and .gmo files in the source directory. |
3068 | CATALOGS= | |
3069 | XLINGUAS= | |
3070 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
3071 | # If there aren't any .gmo files the shell will give us the | |
3072 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
3073 | # weeded out. | |
3074 | case "$cat" in *\**) | |
3075 | continue;; | |
3076 | esac | |
3077 | # The quadruple backslash is collapsed to a double backslash | |
3078 | # by the backticks, then collapsed again by the double quotes, | |
3079 | # leaving us with one backslash in the sed expression (right | |
3080 | # before the dot that mustn't act as a wildcard). | |
3081 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
3082 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
3083 | # The user is allowed to set LINGUAS to a list of languages to | |
3084 | # install catalogs for. If it's empty that means "all of them." | |
3085 | if test "x$LINGUAS" = x; then | |
3086 | CATALOGS="$CATALOGS $cat" | |
3087 | XLINGUAS="$XLINGUAS $lang" | |
3088 | else | |
3089 | case "$LINGUAS" in *$lang*) | |
3090 | CATALOGS="$CATALOGS $cat" | |
3091 | XLINGUAS="$XLINGUAS $lang" | |
3092 | ;; | |
3093 | esac | |
3094 | fi | |
3095 | done | |
3096 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
3098 | $as_echo "$LINGUAS" >&6; } | |
20e95c23 DJ |
3099 | |
3100 | ||
3101 | DATADIRNAME=share | |
3102 | ||
3103 | INSTOBJEXT=.mo | |
3104 | ||
3105 | GENCAT=gencat | |
3106 | ||
3107 | CATOBJEXT=.gmo | |
b7026657 | 3108 | |
c906108c | 3109 | fi |
20e95c23 DJ |
3110 | |
3111 | ||
81ecdfbb RW |
3112 | # Check whether --enable-sim-bitsize was given. |
3113 | if test "${enable_sim_bitsize+set}" = set; then : | |
3114 | enableval=$enable_sim_bitsize; case "${enableval}" in | |
20e95c23 | 3115 | 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";; |
d0ac1c44 | 3116 | *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";; |
20e95c23 DJ |
3117 | esac |
3118 | if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then | |
3119 | echo "Setting bitsize flags = $sim_bitsize" 6>&1 | |
c906108c | 3120 | fi |
b7026657 | 3121 | else |
20e95c23 | 3122 | sim_bitsize="" |
81ecdfbb | 3123 | fi |
20e95c23 | 3124 | |
81ecdfbb | 3125 | |
81ecdfbb RW |
3126 | # Check whether --enable-sim-config was given. |
3127 | if test "${enable_sim_config+set}" = set; then : | |
3128 | enableval=$enable_sim_config; case "${enableval}" in | |
d0ac1c44 | 3129 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;; |
20e95c23 DJ |
3130 | *) if test -f "${srcdir}/${enableval}"; then |
3131 | sim_config="${enableval}"; | |
3132 | elif test -f "${srcdir}/${enableval}-config.h"; then | |
3133 | sim_config="${enableval}-config.h" | |
3134 | else | |
d0ac1c44 | 3135 | as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5; |
20e95c23 DJ |
3136 | sim_config=std-config.h |
3137 | fi;; | |
3138 | esac | |
3139 | if test x"$silent" != x"yes" && test x"$sim_config" != x""; then | |
3140 | echo "Setting config flags = $sim_config" 6>&1 | |
b7026657 | 3141 | fi |
b7026657 | 3142 | else |
20e95c23 DJ |
3143 | sim_config="std-config.h" |
3144 | if test x"$silent" != x"yes"; then | |
3145 | echo "Setting config flags = $sim_config" 6>&1 | |
b7026657 | 3146 | fi |
81ecdfbb RW |
3147 | fi |
3148 | ||
c906108c | 3149 | |
81ecdfbb RW |
3150 | # Check whether --enable-sim-decode-mechanism was given. |
3151 | if test "${enable_sim_decode_mechanism+set}" = set; then : | |
3152 | enableval=$enable_sim_decode_mechanism; case "${enableval}" in | |
d0ac1c44 | 3153 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;; |
20e95c23 | 3154 | array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";; |
d0ac1c44 | 3155 | *) as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5; |
20e95c23 DJ |
3156 | sim_decode_mechanism="switch";; |
3157 | esac | |
3158 | if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then | |
3159 | echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1 | |
3160 | fi | |
b7026657 | 3161 | else |
20e95c23 DJ |
3162 | sim_decode_mechanism="" |
3163 | if test x"$silent" != x"yes"; then | |
3164 | echo "Setting decode mechanism flags = $sim_decode_mechanism" | |
b7026657 | 3165 | fi |
81ecdfbb RW |
3166 | fi |
3167 | ||
b7026657 | 3168 | |
81ecdfbb RW |
3169 | # Check whether --enable-sim-default-model was given. |
3170 | if test "${enable_sim_default_model+set}" = set; then : | |
3171 | enableval=$enable_sim_default_model; case "${enableval}" in | |
d0ac1c44 | 3172 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;; |
20e95c23 DJ |
3173 | *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";; |
3174 | esac | |
3175 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
3176 | echo "Setting default-model flags = $sim_default_model" 6>&1 | |
3177 | fi | |
3178 | else | |
3179 | sim_default_model="" | |
81ecdfbb RW |
3180 | fi |
3181 | ||
b7026657 | 3182 | |
81ecdfbb RW |
3183 | # Check whether --enable-sim-duplicate was given. |
3184 | if test "${enable_sim_duplicate+set}" = set; then : | |
3185 | enableval=$enable_sim_duplicate; case "${enableval}" in | |
20e95c23 DJ |
3186 | yes) sim_dup="-E";; |
3187 | no) sim_dup="";; | |
d0ac1c44 | 3188 | *) as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";; |
20e95c23 DJ |
3189 | esac |
3190 | if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then | |
3191 | echo "Setting duplicate flags = $sim_dup" 6>&1 | |
3192 | fi | |
b7026657 | 3193 | else |
20e95c23 DJ |
3194 | sim_dup="-E" |
3195 | if test x"$silent" != x"yes"; then | |
3196 | echo "Setting duplicate flags = $sim_dup" 6>&1 | |
3197 | fi | |
81ecdfbb RW |
3198 | fi |
3199 | ||
20e95c23 | 3200 | |
81ecdfbb RW |
3201 | # Check whether --enable-sim-filter was given. |
3202 | if test "${enable_sim_filter+set}" = set; then : | |
3203 | enableval=$enable_sim_filter; case "${enableval}" in | |
d0ac1c44 | 3204 | yes) as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";; |
20e95c23 DJ |
3205 | no) sim_filter="";; |
3206 | *) sim_filter="-F $enableval";; | |
3207 | esac | |
3208 | if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then | |
3209 | echo "Setting filter flags = $sim_filter" 6>&1 | |
3210 | fi | |
3211 | else | |
3212 | sim_filter="-F 32,f,o" | |
3213 | if test x"$silent" != x"yes"; then | |
3214 | echo "Setting filter flags = $sim_filter" 6>&1 | |
3215 | fi | |
81ecdfbb | 3216 | fi |
20e95c23 | 3217 | |
81ecdfbb RW |
3218 | |
3219 | # Check whether --enable-sim-float was given. | |
3220 | if test "${enable_sim_float+set}" = set; then : | |
3221 | enableval=$enable_sim_float; case "${enableval}" in | |
20e95c23 DJ |
3222 | yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; |
3223 | no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; | |
3224 | altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;; | |
3225 | *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;; | |
d0ac1c44 | 3226 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";; |
20e95c23 DJ |
3227 | esac |
3228 | if test x"$silent" != x"yes" && test x"$sim_float" != x""; then | |
3229 | echo "Setting float flags = $sim_float" 6>&1 | |
3230 | fi | |
3231 | else | |
3232 | ||
3233 | case "${target}" in | |
3234 | *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;; | |
3235 | *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;; | |
3236 | *) sim_float="" | |
3237 | esac | |
3238 | ||
81ecdfbb RW |
3239 | fi |
3240 | ||
20e95c23 | 3241 | |
81ecdfbb RW |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5 |
3243 | $as_echo_n "checking if union semun defined... " >&6; } | |
d0ac1c44 | 3244 | if ${ac_cv_HAS_UNION_SEMUN+:} false; then : |
81ecdfbb | 3245 | $as_echo_n "(cached) " >&6 |
00a0b122 | 3246 | else |
81ecdfbb | 3247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
3248 | /* end confdefs.h. */ |
3249 | ||
3250 | #include <sys/types.h> | |
3251 | #include <sys/ipc.h> | |
3252 | #include <sys/sem.h> | |
3253 | int | |
3254 | main () | |
3255 | { | |
3256 | union semun arg ; | |
3257 | ; | |
3258 | return 0; | |
3259 | } | |
3260 | _ACEOF | |
81ecdfbb | 3261 | if ac_fn_c_try_compile "$LINENO"; then : |
00a0b122 JS |
3262 | ac_cv_has_union_semun="yes" |
3263 | else | |
81ecdfbb | 3264 | ac_cv_has_union_semun="no" |
00a0b122 | 3265 | fi |
81ecdfbb RW |
3266 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5 | |
3268 | $as_echo "$ac_cv_has_union_semun" >&6; } | |
00a0b122 JS |
3269 | |
3270 | fi | |
81ecdfbb RW |
3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5 |
3272 | $as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; } | |
00a0b122 JS |
3273 | |
3274 | ||
3275 | if test "$ac_cv_has_union_semun" = "yes"; then | |
81ecdfbb RW |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5 |
3277 | $as_echo_n "checking whether System V semaphores are supported... " >&6; } | |
d0ac1c44 | 3278 | if ${ac_cv_sysv_sem+:} false; then : |
81ecdfbb | 3279 | $as_echo_n "(cached) " >&6 |
00a0b122 JS |
3280 | else |
3281 | ||
81ecdfbb | 3282 | if test "$cross_compiling" = yes; then : |
00a0b122 JS |
3283 | : |
3284 | else | |
81ecdfbb | 3285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
3286 | /* end confdefs.h. */ |
3287 | ||
3288 | #include <sys/types.h> | |
3289 | #include <sys/ipc.h> | |
3290 | #include <sys/sem.h> | |
3291 | int main () { | |
3292 | union semun arg ; | |
3293 | ||
3294 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); | |
3295 | if (id == -1) | |
3296 | exit(1); | |
3297 | arg.val = 0; /* avoid implicit type cast to union */ | |
3298 | if (semctl(id, 0, IPC_RMID, arg) == -1) | |
3299 | exit(1); | |
3300 | exit(0); | |
3301 | } | |
3302 | ||
3303 | _ACEOF | |
81ecdfbb | 3304 | if ac_fn_c_try_run "$LINENO"; then : |
00a0b122 JS |
3305 | ac_cv_sysv_sem="yes" |
3306 | else | |
81ecdfbb | 3307 | ac_cv_sysv_sem="no" |
00a0b122 | 3308 | fi |
81ecdfbb RW |
3309 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3310 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
00a0b122 JS |
3311 | fi |
3312 | ||
81ecdfbb | 3313 | |
00a0b122 | 3314 | fi |
81ecdfbb RW |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5 |
3316 | $as_echo "$ac_cv_sysv_sem" >&6; } | |
00a0b122 | 3317 | else # semun is not defined |
81ecdfbb RW |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5 |
3319 | $as_echo_n "checking whether System V semaphores are supported... " >&6; } | |
d0ac1c44 | 3320 | if ${ac_cv_sysv_sem+:} false; then : |
81ecdfbb | 3321 | $as_echo_n "(cached) " >&6 |
00a0b122 JS |
3322 | else |
3323 | ||
81ecdfbb | 3324 | if test "$cross_compiling" = yes; then : |
00a0b122 JS |
3325 | : |
3326 | else | |
81ecdfbb | 3327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
3328 | /* end confdefs.h. */ |
3329 | ||
3330 | #include <sys/types.h> | |
3331 | #include <sys/ipc.h> | |
3332 | #include <sys/sem.h> | |
3333 | union semun { | |
3334 | int val; | |
3335 | struct semid_ds *buf; | |
3336 | ushort *array; | |
3337 | }; | |
3338 | int main () { | |
3339 | union semun arg ; | |
3340 | ||
3341 | int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400); | |
3342 | if (id == -1) | |
3343 | exit(1); | |
3344 | arg.val = 0; /* avoid implicit type cast to union */ | |
3345 | if (semctl(id, 0, IPC_RMID, arg) == -1) | |
3346 | exit(1); | |
3347 | exit(0); | |
3348 | } | |
3349 | ||
3350 | _ACEOF | |
81ecdfbb | 3351 | if ac_fn_c_try_run "$LINENO"; then : |
00a0b122 JS |
3352 | ac_cv_sysv_sem="yes" |
3353 | else | |
81ecdfbb | 3354 | ac_cv_sysv_sem="no" |
00a0b122 | 3355 | fi |
81ecdfbb RW |
3356 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3357 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
00a0b122 JS |
3358 | fi |
3359 | ||
81ecdfbb | 3360 | |
00a0b122 | 3361 | fi |
81ecdfbb RW |
3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5 |
3363 | $as_echo "$ac_cv_sysv_sem" >&6; } | |
00a0b122 JS |
3364 | fi |
3365 | ||
81ecdfbb RW |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5 |
3367 | $as_echo_n "checking whether System V shared memory is supported... " >&6; } | |
d0ac1c44 | 3368 | if ${ac_cv_sysv_shm+:} false; then : |
81ecdfbb | 3369 | $as_echo_n "(cached) " >&6 |
00a0b122 JS |
3370 | else |
3371 | ||
81ecdfbb | 3372 | if test "$cross_compiling" = yes; then : |
00a0b122 JS |
3373 | : |
3374 | else | |
81ecdfbb | 3375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00a0b122 JS |
3376 | /* end confdefs.h. */ |
3377 | ||
3378 | #include <sys/types.h> | |
3379 | #include <sys/ipc.h> | |
3380 | #include <sys/shm.h> | |
3381 | int main () { | |
3382 | int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400); | |
3383 | if (id == -1) | |
3384 | exit(1); | |
3385 | if (shmctl(id, IPC_RMID, 0) == -1) | |
3386 | exit(1); | |
3387 | exit(0); | |
3388 | } | |
3389 | ||
3390 | _ACEOF | |
81ecdfbb | 3391 | if ac_fn_c_try_run "$LINENO"; then : |
00a0b122 JS |
3392 | ac_cv_sysv_shm="yes" |
3393 | else | |
81ecdfbb | 3394 | ac_cv_sysv_shm="no" |
00a0b122 | 3395 | fi |
81ecdfbb RW |
3396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
3397 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
00a0b122 JS |
3398 | fi |
3399 | ||
81ecdfbb | 3400 | |
00a0b122 | 3401 | fi |
81ecdfbb RW |
3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5 |
3403 | $as_echo "$ac_cv_sysv_shm" >&6; } | |
00a0b122 JS |
3404 | |
3405 | if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then | |
3406 | sim_sysv_ipc_hw=",sem,shm"; | |
3407 | else | |
3408 | sim_sysv_ipc_hw=""; | |
3409 | fi | |
3410 | ||
3411 | if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then | |
bf0275b1 DE |
3412 | |
3413 | $as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h | |
3414 | ||
00a0b122 JS |
3415 | fi |
3416 | ||
3417 | ||
81ecdfbb RW |
3418 | # Check whether --enable-sim-hardware was given. |
3419 | if test "${enable_sim_hardware+set}" = set; then : | |
3420 | enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}" | |
20e95c23 DJ |
3421 | case "${enableval}" in |
3422 | yes) ;; | |
d0ac1c44 | 3423 | no) as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";; |
20e95c23 DJ |
3424 | ,*) hardware="${hardware}${enableval}";; |
3425 | *,) hardware="${enableval}${hardware}";; | |
3426 | *) hardware="${enableval}"'';; | |
3427 | esac | |
3428 | sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` | |
3429 | sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'` | |
3430 | if test x"$silent" != x"yes" && test x"$hardware" != x""; then | |
3431 | echo "Setting hardware to $sim_hw_src, $sim_hw_obj" | |
3432 | fi | |
3433 | else | |
00a0b122 | 3434 | hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}" |
20e95c23 DJ |
3435 | sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` |
3436 | sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'` | |
3437 | if test x"$silent" != x"yes"; then | |
3438 | echo "Setting hardware to $sim_hw_src, $sim_hw_obj" | |
3439 | fi | |
81ecdfbb RW |
3440 | fi |
3441 | ||
3442 | # Check whether --enable-sim-hostbitsize was given. | |
3443 | if test "${enable_sim_hostbitsize+set}" = set; then : | |
3444 | enableval=$enable_sim_hostbitsize; case "${enableval}" in | |
20e95c23 | 3445 | 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";; |
d0ac1c44 | 3446 | *) as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";; |
20e95c23 DJ |
3447 | esac |
3448 | if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then | |
3449 | echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1 | |
3450 | fi | |
3451 | else | |
3452 | sim_hostbitsize="" | |
20e95c23 | 3453 | fi |
b7026657 | 3454 | |
20e95c23 | 3455 | |
430456e3 MF |
3456 | # Check whether --enable-sim-icache was given. |
3457 | if test "${enable_sim_icache+set}" = set; then : | |
3458 | enableval=$enable_sim_icache; icache="-R" | |
3459 | case "${enableval}" in | |
3460 | yes) icache="1024"; sim_icache="-I $icache";; | |
3461 | no) sim_icache="-R";; | |
3462 | *) icache=1024 | |
3463 | sim_icache="-" | |
3464 | for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do | |
3465 | case "$x" in | |
3466 | define) sim_icache="${sim_icache}R";; | |
3467 | semantic) sim_icache="${sim_icache}C";; | |
3468 | insn) sim_icache="${sim_icache}S";; | |
3469 | 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;; | |
3470 | *) as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";; | |
3471 | esac | |
3472 | done | |
3473 | sim_icache="${sim_icache}I $icache";; | |
3474 | esac | |
3475 | if test x"$silent" != x"yes" && test x"$icache" != x""; then | |
3476 | echo "Setting instruction cache size to $icache ($sim_icache)" | |
20e95c23 | 3477 | fi |
c906108c | 3478 | else |
430456e3 MF |
3479 | sim_icache="-CSRI 1024" |
3480 | if test x"$silent" != x"yes"; then | |
3481 | echo "Setting instruction cache size to 1024 ($sim_icache)" | |
3482 | fi | |
3483 | fi | |
3484 | ||
b7026657 | 3485 | |
430456e3 MF |
3486 | # Check whether --enable-sim-inline was given. |
3487 | if test "${enable_sim_inline+set}" = set; then : | |
3488 | enableval=$enable_sim_inline; sim_inline="" | |
3489 | case "$enableval" in | |
3490 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
3491 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
3492 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";; | |
3493 | 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";; | |
3494 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
3495 | new_flag="" | |
3496 | case "$x" in | |
3497 | *_INLINE=*) new_flag="-D$x";; | |
3498 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
3499 | *_INLINE) new_flag="-D$x=ALL_INLINE";; | |
3500 | *) new_flag="-D$x""_INLINE=ALL_INLINE";; | |
3501 | esac | |
3502 | if test x"$sim_inline" = x""; then | |
3503 | sim_inline="$new_flag" | |
3504 | else | |
3505 | sim_inline="$sim_inline $new_flag" | |
3506 | fi | |
3507 | done;; | |
3508 | esac | |
3509 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
3510 | echo "Setting inline flags = $sim_inline" 6>&1 | |
3511 | fi | |
81ecdfbb | 3512 | else |
430456e3 MF |
3513 | if test x"$GCC" != ""; then |
3514 | sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS" | |
3515 | if test x"$silent" != x"yes"; then | |
3516 | echo "Setting inline flags = $sim_inline" 6>&1 | |
3517 | fi | |
3518 | else | |
3519 | sim_inline="" | |
3520 | fi | |
b7026657 | 3521 | fi |
b7026657 | 3522 | |
430456e3 MF |
3523 | |
3524 | # Check whether --enable-sim-jump was given. | |
3525 | if test "${enable_sim_jump+set}" = set; then : | |
3526 | enableval=$enable_sim_jump; case "${enableval}" in | |
3527 | yes) sim_jump="-J";; | |
3528 | no) sim_jump="";; | |
3529 | *) as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";; | |
3530 | esac | |
3531 | if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then | |
3532 | echo "Setting jump flag = $sim_jump" 6>&1 | |
3533 | fi | |
20e95c23 | 3534 | else |
430456e3 MF |
3535 | sim_jump="" |
3536 | if test x"$silent" != x"yes"; then | |
3537 | echo "Setting jump flag = $sim_jump" 6>&1 | |
20e95c23 | 3538 | fi |
35689115 | 3539 | fi |
35689115 | 3540 | |
35689115 | 3541 | |
430456e3 MF |
3542 | # Check whether --enable-sim-line-nr was given. |
3543 | if test "${enable_sim_line_nr+set}" = set; then : | |
3544 | enableval=$enable_sim_line_nr; case "${enableval}" in | |
3545 | yes) sim_line_nr="";; | |
3546 | no) sim_line_nr="-L";; | |
3547 | *) as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";; | |
3548 | esac | |
3549 | if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then | |
3550 | echo "Setting warning flags = $sim_line_nr" 6>&1 | |
35689115 | 3551 | fi |
81ecdfbb | 3552 | else |
430456e3 | 3553 | sim_line_nr="" |
35689115 | 3554 | fi |
35689115 | 3555 | |
430456e3 MF |
3556 | |
3557 | # Check whether --enable-sim-model was given. | |
3558 | if test "${enable_sim_model+set}" = set; then : | |
3559 | enableval=$enable_sim_model; case "${enableval}" in | |
3560 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;; | |
3561 | *) sim_model="-DWITH_MODEL=${enableval}";; | |
3562 | esac | |
3563 | if test x"$silent" != x"yes" && test x"$sim_model" != x""; then | |
3564 | echo "Setting model flags = $sim_model" 6>&1 | |
3565 | fi | |
81ecdfbb | 3566 | else |
430456e3 | 3567 | sim_model="" |
35689115 | 3568 | fi |
35689115 | 3569 | |
430456e3 MF |
3570 | |
3571 | # Check whether --enable-sim-model-issue was given. | |
3572 | if test "${enable_sim_model_issue+set}" = set; then : | |
3573 | enableval=$enable_sim_model_issue; case "${enableval}" in | |
3574 | yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";; | |
3575 | no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";; | |
3576 | *) as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";; | |
3577 | esac | |
3578 | if test x"$silent" != x"yes"; then | |
3579 | echo "Setting model-issue flags = $sim_model_issue" 6>&1 | |
3580 | fi | |
35689115 | 3581 | else |
430456e3 | 3582 | sim_model_issue="" |
35689115 | 3583 | fi |
35689115 | 3584 | |
35689115 | 3585 | |
430456e3 MF |
3586 | # Check whether --enable-sim-monitor was given. |
3587 | if test "${enable_sim_monitor+set}" = set; then : | |
3588 | enableval=$enable_sim_monitor; case "${enableval}" in | |
3589 | yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";; | |
3590 | no) sim_monitor="-DWITH_MON=0";; | |
3591 | instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";; | |
3592 | memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";; | |
3593 | *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;; | |
3594 | esac | |
3595 | if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then | |
3596 | echo "Setting monitor flags = $sim_monitor" 6>&1 | |
3597 | fi | |
35689115 | 3598 | else |
430456e3 | 3599 | sim_monitor="" |
35689115 | 3600 | fi |
35689115 | 3601 | |
35689115 | 3602 | |
430456e3 MF |
3603 | # Check whether --enable-sim-opcode was given. |
3604 | if test "${enable_sim_opcode+set}" = set; then : | |
3605 | enableval=$enable_sim_opcode; case "${enableval}" in | |
3606 | yes|no) as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;; | |
3607 | *) if test -f "${srcdir}/${enableval}"; then | |
3608 | sim_opcode="${enableval}" | |
3609 | elif test -f "${srcdir}/dc-${enableval}"; then | |
3610 | sim_opcode="dc-${enableval}" | |
3611 | else | |
3612 | as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5; | |
3613 | sim_opcode="dc-complex" | |
3614 | fi;; | |
81ecdfbb | 3615 | esac |
430456e3 MF |
3616 | if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then |
3617 | echo "Setting opcode flags = $sim_opcode" 6>&1 | |
3618 | fi | |
81ecdfbb | 3619 | else |
430456e3 MF |
3620 | sim_opcode="dc-complex" |
3621 | if test x"$silent" != x"yes"; then | |
3622 | echo "Setting opcode flags = $sim_opcode" | |
35689115 | 3623 | fi |
81ecdfbb | 3624 | fi |
35689115 | 3625 | |
35689115 | 3626 | |
430456e3 MF |
3627 | # Check whether --enable-sim-packages was given. |
3628 | if test "${enable_sim_packages+set}" = set; then : | |
3629 | enableval=$enable_sim_packages; packages=disklabel | |
3630 | case "${enableval}" in | |
3631 | yes) ;; | |
3632 | no) as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";; | |
3633 | ,*) packages="${packages}${enableval}";; | |
3634 | *,) packages="${enableval}${packages}";; | |
3635 | *) packages="${enableval}"'';; | |
35689115 | 3636 | esac |
430456e3 MF |
3637 | sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'` |
3638 | sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'` | |
3639 | if test x"$silent" != x"yes" && test x"$packages" != x""; then | |
3640 | echo "Setting packages to $sim_pk_src, $sim_pk_obj" | |
3641 | fi | |
81ecdfbb | 3642 | else |
430456e3 MF |
3643 | packages=disklabel |
3644 | sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'` | |
3645 | sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'` | |
3646 | if test x"$silent" != x"yes"; then | |
3647 | echo "Setting packages to $sim_pk_src, $sim_pk_obj" | |
81ecdfbb | 3648 | fi |
81ecdfbb | 3649 | fi |
35689115 HPN |
3650 | |
3651 | ||
430456e3 MF |
3652 | # Check whether --enable-sim-reserved-bits was given. |
3653 | if test "${enable_sim_reserved_bits+set}" = set; then : | |
3654 | enableval=$enable_sim_reserved_bits; case "${enableval}" in | |
3655 | yes) sim_reserved="-DWITH_RESERVED_BITS=1";; | |
3656 | no) sim_reserved="-DWITH_RESERVED_BITS=0";; | |
3657 | *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";; | |
3658 | esac | |
3659 | if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then | |
3660 | echo "Setting reserved flags = $sim_reserved" 6>&1 | |
3661 | fi | |
81ecdfbb | 3662 | else |
430456e3 MF |
3663 | sim_reserved="" |
3664 | fi | |
c906108c | 3665 | |
81ecdfbb | 3666 | |
430456e3 MF |
3667 | # Check whether --enable-sim-smp was given. |
3668 | if test "${enable_sim_smp+set}" = set; then : | |
3669 | enableval=$enable_sim_smp; case "${enableval}" in | |
3670 | yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";; | |
3671 | no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";; | |
3672 | *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";; | |
3673 | esac | |
3674 | if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then | |
3675 | echo "Setting smp flags = $sim_smp" 6>&1 | |
3676 | fi | |
b7026657 | 3677 | else |
430456e3 MF |
3678 | sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5" |
3679 | if test x"$silent" != x"yes"; then | |
3680 | echo "Setting smp flags = $sim_smp" 6>&1 | |
3681 | fi | |
81ecdfbb | 3682 | fi |
81ecdfbb | 3683 | |
b7026657 | 3684 | |
430456e3 MF |
3685 | # Check whether --enable-sim-switch was given. |
3686 | if test "${enable_sim_switch+set}" = set; then : | |
3687 | enableval=$enable_sim_switch; case "${enableval}" in | |
3688 | yes) sim_switch="-s";; | |
3689 | no) sim_switch="";; | |
3690 | *) as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";; | |
3691 | esac | |
3692 | if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then | |
3693 | echo "Setting switch flags = $sim_switch" 6>&1 | |
3694 | fi | |
81ecdfbb | 3695 | else |
430456e3 MF |
3696 | sim_switch=""; |
3697 | if test x"$silent" != x"yes"; then | |
3698 | echo "Setting switch flags = $sim_switch" 6>&1 | |
b7026657 | 3699 | fi |
81ecdfbb | 3700 | fi |
b7026657 | 3701 | |
c906108c | 3702 | |
430456e3 MF |
3703 | # Check whether --enable-sim-timebase was given. |
3704 | if test "${enable_sim_timebase+set}" = set; then : | |
3705 | enableval=$enable_sim_timebase; case "${enableval}" in | |
3706 | yes) sim_timebase="-DWITH_TIME_BASE=1";; | |
3707 | no) sim_timebase="-DWITH_TIME_BASE=0";; | |
3708 | *) as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";; | |
3709 | esac | |
3710 | if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then | |
3711 | echo "Setting timebase flags = $sim_timebase" 6>&1 | |
81ecdfbb | 3712 | fi |
b7026657 | 3713 | else |
430456e3 MF |
3714 | sim_timebase="" |
3715 | fi | |
b7026657 | 3716 | |
b7026657 | 3717 | |
430456e3 MF |
3718 | # Check whether --enable-werror was given. |
3719 | if test "${enable_werror+set}" = set; then : | |
3720 | enableval=$enable_werror; case "${enableval}" in | |
3721 | yes | y) ERROR_ON_WARNING="yes" ;; | |
3722 | no | n) ERROR_ON_WARNING="no" ;; | |
3723 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; | |
3724 | esac | |
b7026657 | 3725 | fi |
81ecdfbb | 3726 | |
430456e3 MF |
3727 | # Enable -Werror by default when using gcc |
3728 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
3729 | ERROR_ON_WARNING=yes | |
b7026657 | 3730 | fi |
430456e3 MF |
3731 | WERROR_CFLAGS="" |
3732 | if test "${ERROR_ON_WARNING}" = yes ; then | |
3733 | WERROR_CFLAGS="-Werror" | |
b7026657 | 3734 | fi |
430456e3 MF |
3735 | case "${host}" in |
3736 | *-*-mingw32*) WERROR_CFLAGS="$WERROR_CFLAGS -Wno-format" ;; | |
3737 | esac | |
b7026657 | 3738 | |
b7026657 | 3739 | |
430456e3 MF |
3740 | # Check whether --enable-sim-warnings was given. |
3741 | if test "${enable_sim_warnings+set}" = set; then : | |
3742 | enableval=$enable_sim_warnings; case "${enableval}" in | |
3743 | yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";; | |
3744 | no) sim_warnings="-w";; | |
3745 | *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
3746 | esac | |
3747 | if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then | |
3748 | echo "Setting warning flags = $sim_warnings" 6>&1 | |
81ecdfbb | 3749 | fi |
430456e3 MF |
3750 | else |
3751 | sim_warnings="" | |
c906108c SS |
3752 | fi |
3753 | ||
b7026657 | 3754 | |
430456e3 MF |
3755 | # Check whether --enable-sim-xor-endian was given. |
3756 | if test "${enable_sim_xor_endian+set}" = set; then : | |
3757 | enableval=$enable_sim_xor_endian; case "${enableval}" in | |
3758 | yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";; | |
3759 | no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";; | |
3760 | *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";; | |
81ecdfbb | 3761 | esac |
430456e3 MF |
3762 | if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then |
3763 | echo "Setting xor-endian flag = $sim_xor_endian" 6>&1 | |
81ecdfbb RW |
3764 | fi |
3765 | else | |
430456e3 MF |
3766 | sim_xor_endian="" |
3767 | fi | |
b7026657 | 3768 | |
430456e3 MF |
3769 | |
3770 | # Make sure we can run config.sub. | |
3771 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3772 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
3773 | ||
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3775 | $as_echo_n "checking build system type... " >&6; } | |
3776 | if ${ac_cv_build+:} false; then : | |
81ecdfbb | 3777 | $as_echo_n "(cached) " >&6 |
b7026657 | 3778 | else |
430456e3 MF |
3779 | ac_build_alias=$build_alias |
3780 | test "x$ac_build_alias" = x && | |
3781 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3782 | test "x$ac_build_alias" = x && | |
3783 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3784 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3785 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
81ecdfbb | 3786 | |
81ecdfbb | 3787 | fi |
430456e3 MF |
3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3789 | $as_echo "$ac_cv_build" >&6; } | |
3790 | case $ac_cv_build in | |
3791 | *-*-*) ;; | |
3792 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3793 | esac | |
3794 | build=$ac_cv_build | |
3795 | ac_save_IFS=$IFS; IFS='-' | |
3796 | set x $ac_cv_build | |
3797 | shift | |
3798 | build_cpu=$1 | |
3799 | build_vendor=$2 | |
3800 | shift; shift | |
3801 | # Remember, the first character of IFS is used to create $*, | |
3802 | # except with old shells: | |
3803 | build_os=$* | |
3804 | IFS=$ac_save_IFS | |
3805 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
81ecdfbb | 3806 | |
81ecdfbb | 3807 | |
430456e3 MF |
3808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3809 | $as_echo_n "checking host system type... " >&6; } | |
3810 | if ${ac_cv_host+:} false; then : | |
3811 | $as_echo_n "(cached) " >&6 | |
b7026657 | 3812 | else |
430456e3 MF |
3813 | if test "x$host_alias" = x; then |
3814 | ac_cv_host=$ac_cv_build | |
3815 | else | |
3816 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3817 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c906108c | 3818 | fi |
b7026657 | 3819 | |
430456e3 MF |
3820 | fi |
3821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3822 | $as_echo "$ac_cv_host" >&6; } | |
3823 | case $ac_cv_host in | |
3824 | *-*-*) ;; | |
3825 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3826 | esac | |
3827 | host=$ac_cv_host | |
3828 | ac_save_IFS=$IFS; IFS='-' | |
3829 | set x $ac_cv_host | |
3830 | shift | |
3831 | host_cpu=$1 | |
3832 | host_vendor=$2 | |
3833 | shift; shift | |
3834 | # Remember, the first character of IFS is used to create $*, | |
3835 | # except with old shells: | |
3836 | host_os=$* | |
3837 | IFS=$ac_save_IFS | |
3838 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
b7026657 | 3839 | |
81ecdfbb | 3840 | |
430456e3 MF |
3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3842 | $as_echo_n "checking target system type... " >&6; } | |
3843 | if ${ac_cv_target+:} false; then : | |
3844 | $as_echo_n "(cached) " >&6 | |
c906108c | 3845 | else |
430456e3 MF |
3846 | if test "x$target_alias" = x; then |
3847 | ac_cv_target=$ac_cv_host | |
3848 | else | |
3849 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
3850 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
c906108c | 3851 | fi |
b7026657 | 3852 | |
81ecdfbb | 3853 | fi |
430456e3 MF |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3855 | $as_echo "$ac_cv_target" >&6; } | |
3856 | case $ac_cv_target in | |
3857 | *-*-*) ;; | |
3858 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
3859 | esac | |
3860 | target=$ac_cv_target | |
3861 | ac_save_IFS=$IFS; IFS='-' | |
3862 | set x $ac_cv_target | |
3863 | shift | |
3864 | target_cpu=$1 | |
3865 | target_vendor=$2 | |
3866 | shift; shift | |
3867 | # Remember, the first character of IFS is used to create $*, | |
3868 | # except with old shells: | |
3869 | target_os=$* | |
3870 | IFS=$ac_save_IFS | |
3871 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
81ecdfbb | 3872 | |
81ecdfbb | 3873 | |
430456e3 MF |
3874 | # The aliases save the names the user supplied, while $host etc. |
3875 | # will get canonicalized. | |
3876 | test -n "$target_alias" && | |
3877 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3878 | NONENONEs,x,x, && | |
3879 | program_prefix=${target_alias}- | |
81ecdfbb | 3880 | |
430456e3 MF |
3881 | test "$program_prefix" != NONE && |
3882 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3883 | # Use a double $ so make ignores it. | |
3884 | test "$program_suffix" != NONE && | |
3885 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3886 | # Double any \ or $. | |
3887 | # By default was `s,x,x', remove it if useless. | |
3888 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3889 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
81ecdfbb | 3890 | |
b7026657 | 3891 | |
430456e3 MF |
3892 | # BFD conditionally uses zlib, so we must link it in if libbfd does, by |
3893 | # using the same condition. | |
81ecdfbb | 3894 | |
430456e3 MF |
3895 | # Use the system's zlib library. |
3896 | zlibdir="-L\$(top_builddir)/../zlib" | |
3897 | zlibinc="-I\$(top_srcdir)/../zlib" | |
3898 | ||
3899 | # Check whether --with-system-zlib was given. | |
3900 | if test "${with_system_zlib+set}" = set; then : | |
3901 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then | |
3902 | zlibdir= | |
3903 | zlibinc= | |
81ecdfbb | 3904 | fi |
430456e3 | 3905 | |
81ecdfbb RW |
3906 | fi |
3907 | ||
3908 | ||
b7026657 AC |
3909 | |
3910 | ||
430456e3 MF |
3911 | |
3912 | # BFD uses libdl when when plugins enabled. | |
3913 | ac_ext=c | |
3914 | ac_cpp='$CPP $CPPFLAGS' | |
3915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3919 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3920 | # On Suns, sometimes $CPP names a directory. | |
3921 | if test -n "$CPP" && test -d "$CPP"; then | |
3922 | CPP= | |
b7026657 | 3923 | fi |
430456e3 MF |
3924 | if test -z "$CPP"; then |
3925 | if ${ac_cv_prog_CPP+:} false; then : | |
3926 | $as_echo_n "(cached) " >&6 | |
c906108c | 3927 | else |
430456e3 MF |
3928 | # Double quotes because CPP needs to be expanded |
3929 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3930 | do | |
3931 | ac_preproc_ok=false | |
3932 | for ac_c_preproc_warn_flag in '' yes | |
3933 | do | |
3934 | # Use a header file that comes with gcc, so configuring glibc | |
3935 | # with a fresh cross-compiler works. | |
3936 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3937 | # <limits.h> exists even on freestanding compilers. | |
3938 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3939 | # not just through cpp. "Syntax error" is here to catch this case. | |
3940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3941 | /* end confdefs.h. */ | |
3942 | #ifdef __STDC__ | |
3943 | # include <limits.h> | |
3944 | #else | |
3945 | # include <assert.h> | |
3946 | #endif | |
3947 | Syntax error | |
3948 | _ACEOF | |
3949 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3950 | ||
c906108c | 3951 | else |
430456e3 MF |
3952 | # Broken: fails on valid input. |
3953 | continue | |
c906108c | 3954 | fi |
430456e3 | 3955 | rm -f conftest.err conftest.i conftest.$ac_ext |
b7026657 | 3956 | |
430456e3 MF |
3957 | # OK, works on sane cases. Now check whether nonexistent headers |
3958 | # can be detected and how. | |
3959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3960 | /* end confdefs.h. */ | |
3961 | #include <ac_nonexistent.h> | |
3962 | _ACEOF | |
3963 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3964 | # Broken: success on invalid input. | |
3965 | continue | |
c906108c | 3966 | else |
430456e3 MF |
3967 | # Passes both tests. |
3968 | ac_preproc_ok=: | |
3969 | break | |
c906108c | 3970 | fi |
430456e3 | 3971 | rm -f conftest.err conftest.i conftest.$ac_ext |
c906108c | 3972 | |
430456e3 MF |
3973 | done |
3974 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3975 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3976 | if $ac_preproc_ok; then : | |
3977 | break | |
81ecdfbb | 3978 | fi |
b7026657 | 3979 | |
430456e3 MF |
3980 | done |
3981 | ac_cv_prog_CPP=$CPP | |
c906108c | 3982 | |
81ecdfbb | 3983 | fi |
430456e3 | 3984 | CPP=$ac_cv_prog_CPP |
c906108c | 3985 | else |
430456e3 | 3986 | ac_cv_prog_CPP=$CPP |
81ecdfbb | 3987 | fi |
430456e3 MF |
3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
3989 | $as_echo "$CPP" >&6; } | |
3990 | ac_preproc_ok=false | |
3991 | for ac_c_preproc_warn_flag in '' yes | |
3992 | do | |
3993 | # Use a header file that comes with gcc, so configuring glibc | |
3994 | # with a fresh cross-compiler works. | |
3995 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3996 | # <limits.h> exists even on freestanding compilers. | |
3997 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3998 | # not just through cpp. "Syntax error" is here to catch this case. | |
3999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4000 | /* end confdefs.h. */ | |
4001 | #ifdef __STDC__ | |
4002 | # include <limits.h> | |
4003 | #else | |
4004 | # include <assert.h> | |
4005 | #endif | |
4006 | Syntax error | |
4007 | _ACEOF | |
4008 | if ac_fn_c_try_cpp "$LINENO"; then : | |
81ecdfbb | 4009 | |
c906108c | 4010 | else |
430456e3 MF |
4011 | # Broken: fails on valid input. |
4012 | continue | |
c906108c | 4013 | fi |
430456e3 | 4014 | rm -f conftest.err conftest.i conftest.$ac_ext |
c906108c | 4015 | |
430456e3 MF |
4016 | # OK, works on sane cases. Now check whether nonexistent headers |
4017 | # can be detected and how. | |
4018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4019 | /* end confdefs.h. */ | |
4020 | #include <ac_nonexistent.h> | |
4021 | _ACEOF | |
4022 | if ac_fn_c_try_cpp "$LINENO"; then : | |
4023 | # Broken: success on invalid input. | |
4024 | continue | |
81ecdfbb | 4025 | else |
430456e3 MF |
4026 | # Passes both tests. |
4027 | ac_preproc_ok=: | |
4028 | break | |
c906108c | 4029 | fi |
430456e3 | 4030 | rm -f conftest.err conftest.i conftest.$ac_ext |
c906108c | 4031 | |
430456e3 MF |
4032 | done |
4033 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4034 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4035 | if $ac_preproc_ok; then : | |
c906108c | 4036 | |
c906108c | 4037 | else |
430456e3 MF |
4038 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4039 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4040 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
4041 | See \`config.log' for more details" "$LINENO" 5; } | |
c906108c | 4042 | fi |
b7026657 | 4043 | |
430456e3 MF |
4044 | ac_ext=c |
4045 | ac_cpp='$CPP $CPPFLAGS' | |
4046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4049 | |
4050 | ||
430456e3 MF |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4052 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4053 | if ${ac_cv_path_GREP+:} false; then : | |
4054 | $as_echo_n "(cached) " >&6 | |
b7026657 | 4055 | else |
430456e3 MF |
4056 | if test -z "$GREP"; then |
4057 | ac_path_GREP_found=false | |
4058 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4060 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4061 | do | |
4062 | IFS=$as_save_IFS | |
4063 | test -z "$as_dir" && as_dir=. | |
4064 | for ac_prog in grep ggrep; do | |
4065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4066 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4067 | as_fn_executable_p "$ac_path_GREP" || continue | |
4068 | # Check for GNU ac_path_GREP and select it if it is found. | |
4069 | # Check for GNU $ac_path_GREP | |
4070 | case `"$ac_path_GREP" --version 2>&1` in | |
4071 | *GNU*) | |
4072 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4073 | *) | |
4074 | ac_count=0 | |
4075 | $as_echo_n 0123456789 >"conftest.in" | |
4076 | while : | |
4077 | do | |
4078 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4079 | mv "conftest.tmp" "conftest.in" | |
4080 | cp "conftest.in" "conftest.nl" | |
4081 | $as_echo 'GREP' >> "conftest.nl" | |
4082 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4083 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4084 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4085 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4086 | # Best one so far, save it but keep looking for a better one | |
4087 | ac_cv_path_GREP="$ac_path_GREP" | |
4088 | ac_path_GREP_max=$ac_count | |
4089 | fi | |
4090 | # 10*(2^10) chars as input seems more than enough | |
4091 | test $ac_count -gt 10 && break | |
4092 | done | |
4093 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
81ecdfbb | 4094 | esac |
c906108c | 4095 | |
430456e3 MF |
4096 | $ac_path_GREP_found && break 3 |
4097 | done | |
4098 | done | |
4099 | done | |
4100 | IFS=$as_save_IFS | |
4101 | if test -z "$ac_cv_path_GREP"; then | |
4102 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4103 | fi | |
c906108c | 4104 | else |
430456e3 | 4105 | ac_cv_path_GREP=$GREP |
c906108c | 4106 | fi |
81ecdfbb | 4107 | |
be2bc30f | 4108 | fi |
430456e3 MF |
4109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
4110 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4111 | GREP="$ac_cv_path_GREP" | |
be2bc30f | 4112 | |
430456e3 MF |
4113 | |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4115 | $as_echo_n "checking for egrep... " >&6; } | |
4116 | if ${ac_cv_path_EGREP+:} false; then : | |
4117 | $as_echo_n "(cached) " >&6 | |
4118 | else | |
4119 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4120 | then ac_cv_path_EGREP="$GREP -E" | |
4121 | else | |
4122 | if test -z "$EGREP"; then | |
4123 | ac_path_EGREP_found=false | |
4124 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4126 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4127 | do | |
4128 | IFS=$as_save_IFS | |
4129 | test -z "$as_dir" && as_dir=. | |
4130 | for ac_prog in egrep; do | |
4131 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4132 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4133 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4134 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4135 | # Check for GNU $ac_path_EGREP | |
4136 | case `"$ac_path_EGREP" --version 2>&1` in | |
4137 | *GNU*) | |
4138 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4139 | *) | |
4140 | ac_count=0 | |
4141 | $as_echo_n 0123456789 >"conftest.in" | |
4142 | while : | |
4143 | do | |
4144 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4145 | mv "conftest.tmp" "conftest.in" | |
4146 | cp "conftest.in" "conftest.nl" | |
4147 | $as_echo 'EGREP' >> "conftest.nl" | |
4148 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4149 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4150 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4151 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4152 | # Best one so far, save it but keep looking for a better one | |
4153 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4154 | ac_path_EGREP_max=$ac_count | |
4155 | fi | |
4156 | # 10*(2^10) chars as input seems more than enough | |
4157 | test $ac_count -gt 10 && break | |
4158 | done | |
4159 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
c5b349e1 | 4160 | esac |
be2bc30f | 4161 | |
430456e3 MF |
4162 | $ac_path_EGREP_found && break 3 |
4163 | done | |
4164 | done | |
4165 | done | |
4166 | IFS=$as_save_IFS | |
4167 | if test -z "$ac_cv_path_EGREP"; then | |
4168 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4169 | fi | |
c906108c | 4170 | else |
430456e3 | 4171 | ac_cv_path_EGREP=$EGREP |
81ecdfbb | 4172 | fi |
b7026657 | 4173 | |
430456e3 | 4174 | fi |
c906108c | 4175 | fi |
430456e3 MF |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4177 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4178 | EGREP="$ac_cv_path_EGREP" | |
c906108c | 4179 | |
b7026657 | 4180 | |
430456e3 MF |
4181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4182 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4183 | if ${ac_cv_header_stdc+:} false; then : | |
81ecdfbb RW |
4184 | $as_echo_n "(cached) " >&6 |
4185 | else | |
430456e3 MF |
4186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4187 | /* end confdefs.h. */ | |
4188 | #include <stdlib.h> | |
4189 | #include <stdarg.h> | |
4190 | #include <string.h> | |
4191 | #include <float.h> | |
4192 | ||
4193 | int | |
4194 | main () | |
4195 | { | |
81ecdfbb | 4196 | |
430456e3 MF |
4197 | ; |
4198 | return 0; | |
4199 | } | |
4200 | _ACEOF | |
4201 | if ac_fn_c_try_compile "$LINENO"; then : | |
4202 | ac_cv_header_stdc=yes | |
4203 | else | |
4204 | ac_cv_header_stdc=no | |
81ecdfbb | 4205 | fi |
430456e3 MF |
4206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4207 | ||
4208 | if test $ac_cv_header_stdc = yes; then | |
4209 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4211 | /* end confdefs.h. */ | |
4212 | #include <string.h> | |
b7026657 | 4213 | |
430456e3 MF |
4214 | _ACEOF |
4215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4216 | $EGREP "memchr" >/dev/null 2>&1; then : | |
b7026657 | 4217 | |
81ecdfbb | 4218 | else |
430456e3 | 4219 | ac_cv_header_stdc=no |
81ecdfbb | 4220 | fi |
430456e3 | 4221 | rm -f conftest* |
b7026657 | 4222 | |
81ecdfbb | 4223 | fi |
b7026657 | 4224 | |
430456e3 MF |
4225 | if test $ac_cv_header_stdc = yes; then |
4226 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4228 | /* end confdefs.h. */ | |
4229 | #include <stdlib.h> | |
4230 | ||
4231 | _ACEOF | |
4232 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4233 | $EGREP "free" >/dev/null 2>&1; then : | |
b7026657 | 4234 | |
81ecdfbb | 4235 | else |
430456e3 | 4236 | ac_cv_header_stdc=no |
81ecdfbb | 4237 | fi |
430456e3 | 4238 | rm -f conftest* |
b7026657 | 4239 | |
81ecdfbb | 4240 | fi |
b7026657 | 4241 | |
430456e3 MF |
4242 | if test $ac_cv_header_stdc = yes; then |
4243 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4244 | if test "$cross_compiling" = yes; then : | |
4245 | : | |
4246 | else | |
4247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4248 | /* end confdefs.h. */ | |
4249 | #include <ctype.h> | |
4250 | #include <stdlib.h> | |
4251 | #if ((' ' & 0x0FF) == 0x020) | |
4252 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4253 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4254 | #else | |
4255 | # define ISLOWER(c) \ | |
4256 | (('a' <= (c) && (c) <= 'i') \ | |
4257 | || ('j' <= (c) && (c) <= 'r') \ | |
4258 | || ('s' <= (c) && (c) <= 'z')) | |
4259 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4260 | #endif | |
b7026657 | 4261 | |
430456e3 MF |
4262 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4263 | int | |
4264 | main () | |
4265 | { | |
4266 | int i; | |
4267 | for (i = 0; i < 256; i++) | |
4268 | if (XOR (islower (i), ISLOWER (i)) | |
4269 | || toupper (i) != TOUPPER (i)) | |
4270 | return 2; | |
4271 | return 0; | |
4272 | } | |
4273 | _ACEOF | |
4274 | if ac_fn_c_try_run "$LINENO"; then : | |
b7026657 | 4275 | |
430456e3 MF |
4276 | else |
4277 | ac_cv_header_stdc=no | |
4278 | fi | |
4279 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4280 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4281 | fi | |
5912fadd | 4282 | |
430456e3 MF |
4283 | fi |
4284 | fi | |
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4286 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4287 | if test $ac_cv_header_stdc = yes; then | |
5912fadd | 4288 | |
430456e3 | 4289 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
b7026657 | 4290 | |
81ecdfbb | 4291 | fi |
b7026657 | 4292 | |
430456e3 MF |
4293 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4294 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4295 | inttypes.h stdint.h unistd.h | |
4296 | do : | |
4297 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4298 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4299 | " | |
4300 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4301 | cat >>confdefs.h <<_ACEOF | |
4302 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4303 | _ACEOF | |
b7026657 | 4304 | |
430456e3 | 4305 | fi |
b7026657 | 4306 | |
430456e3 | 4307 | done |
5912fadd | 4308 | |
b7026657 | 4309 | |
2974be62 AM |
4310 | |
4311 | maybe_plugins=no | |
4312 | for ac_header in dlfcn.h | |
4313 | do : | |
4314 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
4315 | " | |
d0ac1c44 | 4316 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
2974be62 AM |
4317 | cat >>confdefs.h <<_ACEOF |
4318 | #define HAVE_DLFCN_H 1 | |
4319 | _ACEOF | |
4320 | maybe_plugins=yes | |
4321 | fi | |
4322 | ||
4323 | done | |
4324 | ||
4325 | for ac_header in windows.h | |
4326 | do : | |
4327 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
4328 | " | |
d0ac1c44 | 4329 | if test "x$ac_cv_header_windows_h" = xyes; then : |
2974be62 AM |
4330 | cat >>confdefs.h <<_ACEOF |
4331 | #define HAVE_WINDOWS_H 1 | |
4332 | _ACEOF | |
4333 | maybe_plugins=yes | |
4334 | fi | |
4335 | ||
4336 | done | |
4337 | ||
4338 | ||
4339 | # Check whether --enable-plugins was given. | |
4340 | if test "${enable_plugins+set}" = set; then : | |
4341 | enableval=$enable_plugins; case "${enableval}" in | |
4342 | no) plugins=no ;; | |
4343 | *) plugins=yes | |
4344 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 4345 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
2974be62 AM |
4346 | fi ;; |
4347 | esac | |
4348 | else | |
4349 | plugins=$maybe_plugins | |
4350 | ||
4351 | fi | |
4352 | ||
4353 | if test "$plugins" = "yes"; then | |
37f980dc SM |
4354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
4355 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 4356 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
4357 | $as_echo_n "(cached) " >&6 |
4358 | else | |
4359 | ac_func_search_save_LIBS=$LIBS | |
4360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4361 | /* end confdefs.h. */ | |
4362 | ||
4363 | /* Override any GCC internal prototype to avoid an error. | |
4364 | Use char because int might match the return type of a GCC | |
4365 | builtin and then its argument prototype would still apply. */ | |
4366 | #ifdef __cplusplus | |
4367 | extern "C" | |
4368 | #endif | |
37f980dc | 4369 | char dlsym (); |
2974be62 AM |
4370 | int |
4371 | main () | |
4372 | { | |
37f980dc | 4373 | return dlsym (); |
2974be62 AM |
4374 | ; |
4375 | return 0; | |
4376 | } | |
4377 | _ACEOF | |
4378 | for ac_lib in '' dl; do | |
4379 | if test -z "$ac_lib"; then | |
4380 | ac_res="none required" | |
4381 | else | |
4382 | ac_res=-l$ac_lib | |
4383 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4384 | fi | |
4385 | if ac_fn_c_try_link "$LINENO"; then : | |
37f980dc | 4386 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
4387 | fi |
4388 | rm -f core conftest.err conftest.$ac_objext \ | |
4389 | conftest$ac_exeext | |
d0ac1c44 | 4390 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
4391 | break |
4392 | fi | |
4393 | done | |
d0ac1c44 | 4394 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
4395 | |
4396 | else | |
37f980dc | 4397 | ac_cv_search_dlsym=no |
2974be62 AM |
4398 | fi |
4399 | rm conftest.$ac_ext | |
4400 | LIBS=$ac_func_search_save_LIBS | |
4401 | fi | |
37f980dc SM |
4402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
4403 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
4404 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
4405 | if test "$ac_res" != no; then : |
4406 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4407 | ||
4408 | fi | |
4409 | ||
4410 | fi | |
4411 | ||
4412 | ||
81ecdfbb RW |
4413 | case ${host} in |
4414 | *mingw32*) | |
b7026657 | 4415 | |
81ecdfbb | 4416 | $as_echo "#define USE_WIN32API 1" >>confdefs.h |
b7026657 | 4417 | |
81ecdfbb RW |
4418 | ;; |
4419 | esac | |
b7026657 | 4420 | |
81ecdfbb | 4421 | ac_config_headers="$ac_config_headers config.h:config.in" |
b7026657 AC |
4422 | |
4423 | ||
c906108c SS |
4424 | |
4425 | sim_termio="" | |
81ecdfbb RW |
4426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5 |
4427 | $as_echo_n "checking for struct termios... " >&6; } | |
d0ac1c44 | 4428 | if ${ac_cv_termios_struct+:} false; then : |
81ecdfbb | 4429 | $as_echo_n "(cached) " >&6 |
b7026657 | 4430 | else |
81ecdfbb | 4431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4432 | /* end confdefs.h. */ |
c906108c SS |
4433 | #include <sys/types.h> |
4434 | #include <sys/termios.h> | |
b7026657 AC |
4435 | int |
4436 | main () | |
4437 | { | |
c906108c SS |
4438 | static struct termios x; |
4439 | x.c_iflag = 0; | |
4440 | x.c_oflag = 0; | |
4441 | x.c_cflag = 0; | |
4442 | x.c_lflag = 0; | |
4443 | x.c_cc[NCCS] = 0; | |
b7026657 AC |
4444 | ; |
4445 | return 0; | |
4446 | } | |
4447 | _ACEOF | |
81ecdfbb | 4448 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4449 | ac_cv_termios_struct=yes |
4450 | else | |
81ecdfbb | 4451 | ac_cv_termios_struct=no |
c906108c | 4452 | fi |
81ecdfbb | 4453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
4454 | fi |
4455 | ||
81ecdfbb RW |
4456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5 |
4457 | $as_echo "$ac_cv_termios_struct" >&6; } | |
c906108c SS |
4458 | if test $ac_cv_termios_struct = yes; then |
4459 | sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE" | |
4460 | fi | |
4461 | ||
4462 | if test "$ac_cv_termios_struct" = "yes"; then | |
81ecdfbb RW |
4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5 |
4464 | $as_echo_n "checking for c_line field in struct termios... " >&6; } | |
d0ac1c44 | 4465 | if ${ac_cv_termios_cline+:} false; then : |
81ecdfbb | 4466 | $as_echo_n "(cached) " >&6 |
b7026657 | 4467 | else |
81ecdfbb | 4468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4469 | /* end confdefs.h. */ |
c906108c SS |
4470 | #include <sys/types.h> |
4471 | #include <sys/termios.h> | |
b7026657 AC |
4472 | int |
4473 | main () | |
4474 | { | |
c906108c | 4475 | static struct termios x; x.c_line = 0; |
b7026657 AC |
4476 | ; |
4477 | return 0; | |
4478 | } | |
4479 | _ACEOF | |
81ecdfbb | 4480 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4481 | ac_cv_termios_cline=yes |
4482 | else | |
81ecdfbb | 4483 | ac_cv_termios_cline=no |
c906108c | 4484 | fi |
81ecdfbb | 4485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
4486 | fi |
4487 | ||
4488 | ||
81ecdfbb RW |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5 |
4490 | $as_echo "$ac_cv_termios_cline" >&6; } | |
c906108c SS |
4491 | if test $ac_cv_termios_cline = yes; then |
4492 | sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE" | |
4493 | fi | |
4494 | else | |
4495 | ac_cv_termios_cline=no | |
4496 | fi | |
4497 | ||
4498 | if test "$ac_cv_termios_struct" != "yes"; then | |
81ecdfbb RW |
4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5 |
4500 | $as_echo_n "checking for struct termio... " >&6; } | |
d0ac1c44 | 4501 | if ${ac_cv_termio_struct+:} false; then : |
81ecdfbb | 4502 | $as_echo_n "(cached) " >&6 |
b7026657 | 4503 | else |
81ecdfbb | 4504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4505 | /* end confdefs.h. */ |
c906108c SS |
4506 | #include <sys/types.h> |
4507 | #include <sys/termio.h> | |
b7026657 AC |
4508 | int |
4509 | main () | |
4510 | { | |
c906108c SS |
4511 | static struct termio x; |
4512 | x.c_iflag = 0; | |
4513 | x.c_oflag = 0; | |
4514 | x.c_cflag = 0; | |
4515 | x.c_lflag = 0; | |
4516 | x.c_cc[NCC] = 0; | |
b7026657 AC |
4517 | ; |
4518 | return 0; | |
4519 | } | |
4520 | _ACEOF | |
81ecdfbb | 4521 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4522 | ac_cv_termio_struct=yes |
4523 | else | |
81ecdfbb | 4524 | ac_cv_termio_struct=no |
c906108c | 4525 | fi |
81ecdfbb | 4526 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
4527 | fi |
4528 | ||
81ecdfbb RW |
4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5 |
4530 | $as_echo "$ac_cv_termio_struct" >&6; } | |
c906108c SS |
4531 | if test $ac_cv_termio_struct = yes; then |
4532 | sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE" | |
4533 | fi | |
4534 | else | |
4535 | ac_cv_termio_struct=no | |
4536 | fi | |
4537 | ||
4538 | if test "$ac_cv_termio_struct" = "yes"; then | |
81ecdfbb RW |
4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5 |
4540 | $as_echo_n "checking for c_line field in struct termio... " >&6; } | |
d0ac1c44 | 4541 | if ${ac_cv_termio_cline+:} false; then : |
81ecdfbb | 4542 | $as_echo_n "(cached) " >&6 |
b7026657 | 4543 | else |
81ecdfbb | 4544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4545 | /* end confdefs.h. */ |
c906108c SS |
4546 | #include <sys/types.h> |
4547 | #include <sys/termio.h> | |
b7026657 AC |
4548 | int |
4549 | main () | |
4550 | { | |
c906108c | 4551 | static struct termio x; x.c_line = 0; |
b7026657 AC |
4552 | ; |
4553 | return 0; | |
4554 | } | |
4555 | _ACEOF | |
81ecdfbb | 4556 | if ac_fn_c_try_compile "$LINENO"; then : |
c906108c SS |
4557 | ac_cv_termio_cline=yes |
4558 | else | |
81ecdfbb | 4559 | ac_cv_termio_cline=no |
c906108c | 4560 | fi |
81ecdfbb | 4561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
4562 | fi |
4563 | ||
4564 | ||
81ecdfbb RW |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5 |
4566 | $as_echo "$ac_cv_termio_cline" >&6; } | |
c906108c SS |
4567 | if test $ac_cv_termio_cline = yes; then |
4568 | sim_termio="$sim_termio -DHAVE_TERMIO_CLINE" | |
4569 | fi | |
4570 | else | |
4571 | ac_cv_termio_cline=no | |
4572 | fi | |
4573 | ||
81ecdfbb RW |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5 |
4575 | $as_echo_n "checking for struct statfs... " >&6; } | |
d0ac1c44 | 4576 | if ${ac_cv_struct_statfs+:} false; then : |
81ecdfbb | 4577 | $as_echo_n "(cached) " >&6 |
1f362c96 | 4578 | else |
81ecdfbb | 4579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4580 | /* end confdefs.h. */ |
1f362c96 AC |
4581 | #include <sys/types.h> |
4582 | #ifdef HAVE_SYS_PARAM_H | |
4583 | #include <sys/param.h> | |
4584 | #endif | |
4585 | #ifdef HAVE_SYS_MOUNT_H | |
4586 | #include <sys/mount.h> | |
4587 | #endif | |
4588 | #ifdef HAVE_SYS_VFS_H | |
4589 | #include <sys/vfs.h> | |
4590 | #endif | |
4591 | #ifdef HAVE_SYS_STATFS_H | |
4592 | #include <sys/statfs.h> | |
4593 | #endif | |
b7026657 AC |
4594 | int |
4595 | main () | |
4596 | { | |
1f362c96 | 4597 | static struct statfs s; |
b7026657 AC |
4598 | ; |
4599 | return 0; | |
4600 | } | |
4601 | _ACEOF | |
81ecdfbb | 4602 | if ac_fn_c_try_compile "$LINENO"; then : |
1f362c96 AC |
4603 | ac_cv_struct_statfs=yes |
4604 | else | |
81ecdfbb | 4605 | ac_cv_struct_statfs=no |
1f362c96 | 4606 | fi |
81ecdfbb | 4607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1f362c96 AC |
4608 | fi |
4609 | ||
81ecdfbb RW |
4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5 |
4611 | $as_echo "$ac_cv_struct_statfs" >&6; } | |
1f362c96 | 4612 | if test $ac_cv_struct_statfs = yes; then |
b7026657 | 4613 | |
81ecdfbb | 4614 | $as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h |
1f362c96 AC |
4615 | |
4616 | fi | |
4617 | ||
81ecdfbb | 4618 | ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
d0ac1c44 | 4619 | if test "x$ac_cv_type_long_long" = xyes; then : |
30e66173 MI |
4620 | |
4621 | cat >>confdefs.h <<_ACEOF | |
4622 | #define HAVE_LONG_LONG 1 | |
4623 | _ACEOF | |
4624 | ||
4625 | ||
4626 | fi | |
4627 | ||
4628 | ||
c906108c | 4629 | sim_devzero="" |
81ecdfbb RW |
4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5 |
4631 | $as_echo_n "checking for /dev/zero... " >&6; } | |
d0ac1c44 | 4632 | if ${ac_cv_devzero+:} false; then : |
81ecdfbb | 4633 | $as_echo_n "(cached) " >&6 |
c906108c | 4634 | else |
81ecdfbb | 4635 | if test "$cross_compiling" = yes; then : |
c906108c SS |
4636 | ac_cv_devzero=no |
4637 | else | |
81ecdfbb | 4638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b7026657 | 4639 | /* end confdefs.h. */ |
c906108c SS |
4640 | #include <fcntl.h> |
4641 | main () { | |
4642 | char buf[2048]; | |
4643 | int i; | |
4644 | int fd = open ("/dev/zero", O_RDONLY); | |
4645 | if (fd < 0) | |
4646 | return 1; | |
4647 | for (i = 0; i < sizeof (buf); i++) | |
4648 | buf[i] = 1; | |
4649 | if (read (fd, buf, sizeof (buf)) != sizeof (buf)) | |
4650 | return 1; | |
4651 | for (i = 0; i < sizeof (buf); i++) | |
4652 | if (buf[i]) | |
4653 | return 1; | |
4654 | return 0; | |
4655 | } | |
b7026657 | 4656 | _ACEOF |
81ecdfbb | 4657 | if ac_fn_c_try_run "$LINENO"; then : |
c906108c SS |
4658 | ac_cv_devzero=yes |
4659 | else | |
81ecdfbb | 4660 | ac_cv_devzero=no |
c906108c | 4661 | fi |
81ecdfbb RW |
4662 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4663 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c906108c | 4664 | fi |
81ecdfbb | 4665 | |
c906108c SS |
4666 | fi |
4667 | ||
81ecdfbb RW |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5 |
4669 | $as_echo "$ac_cv_devzero" >&6; } | |
c906108c SS |
4670 | if test $ac_cv_devzero = yes; then |
4671 | sim_devzero="-DHAVE_DEVZERO" | |
4672 | else | |
4673 | sim_devzero="" | |
4674 | fi | |
4675 | ||
81ecdfbb RW |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5 |
4677 | $as_echo_n "checking for common simulator directory... " >&6; } | |
c906108c | 4678 | if test -f "${srcdir}/../common/callback.c"; then |
81ecdfbb RW |
4679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4680 | $as_echo "yes" >&6; } | |
c906108c SS |
4681 | sim_callback="callback.o targ-map.o" |
4682 | sim_targ_vals="targ-vals.h targ-map.c targ-vals.def" | |
4683 | else | |
81ecdfbb RW |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4685 | $as_echo "no" >&6; } | |
c906108c SS |
4686 | sim_callback="" |
4687 | sim_targ_vals="" | |
4688 | fi | |
4689 | ||
81ecdfbb RW |
4690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5 |
4691 | $as_echo_n "checking for common simulator directory fpu implementation... " >&6; } | |
d29d5195 | 4692 | if test -f "${srcdir}/../common/sim-fpu.c"; then |
81ecdfbb RW |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4694 | $as_echo "yes" >&6; } | |
3e5e53f9 | 4695 | sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common" |
3a11ea24 | 4696 | sim_fpu="sim-fpu.o" |
d29d5195 | 4697 | else |
81ecdfbb RW |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4699 | $as_echo "no" >&6; } | |
d29d5195 | 4700 | sim_fpu_cflags= |
b7026657 | 4701 | sim_fpu= |
c906108c | 4702 | fi |
cd0fc7c3 | 4703 | |
68a3e151 NF |
4704 | # Since we run commands on the build system, we have to create a |
4705 | # separate config header for the build system if build != host. | |
4706 | if test x$host = x$build; then | |
4707 | ac_config_commands="$ac_config_commands build-config.h" | |
4708 | ||
4709 | else | |
4710 | tempdir=build.$$ | |
4711 | rm -rf $tempdir | |
4712 | mkdir $tempdir | |
4713 | cd $tempdir | |
4714 | case ${srcdir} in | |
4715 | /* | A-Za-z:\\/* ) realsrcdir=${srcdir};; | |
4716 | *) realsrcdir=../${srcdir};; | |
4717 | esac | |
4718 | saved_CFLAGS="${CFLAGS}" | |
4719 | CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \ | |
4720 | LDFLAGS="${LDFLAGS_FOR_BUILD}" \ | |
4721 | ${realsrcdir}/configure \ | |
4722 | --enable-languages=${enable_languages-all} \ | |
4723 | --target=$target_alias --host=$build_alias --build=$build_alias | |
4724 | CFLAGS="${saved_CFLAGS}" | |
4725 | mv config.h ../build-config.h | |
4726 | cd .. | |
4727 | rm -rf $tempdir | |
4728 | fi | |
4729 | ||
c906108c SS |
4730 | |
4731 | ||
4732 | ||
c906108c SS |
4733 | AR=${AR-ar} |
4734 | ||
b7026657 AC |
4735 | if test -n "$ac_tool_prefix"; then |
4736 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4737 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4739 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4740 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 4741 | $as_echo_n "(cached) " >&6 |
c906108c SS |
4742 | else |
4743 | if test -n "$RANLIB"; then | |
4744 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4745 | else | |
b7026657 AC |
4746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4747 | for as_dir in $PATH | |
4748 | do | |
4749 | IFS=$as_save_IFS | |
4750 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4751 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4752 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4753 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 4754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4755 | break 2 |
4756 | fi | |
4757 | done | |
81ecdfbb RW |
4758 | done |
4759 | IFS=$as_save_IFS | |
b7026657 | 4760 | |
c906108c SS |
4761 | fi |
4762 | fi | |
b7026657 | 4763 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 4764 | if test -n "$RANLIB"; then |
81ecdfbb RW |
4765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
4766 | $as_echo "$RANLIB" >&6; } | |
b7026657 | 4767 | else |
81ecdfbb RW |
4768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4769 | $as_echo "no" >&6; } | |
b7026657 AC |
4770 | fi |
4771 | ||
81ecdfbb | 4772 | |
b7026657 AC |
4773 | fi |
4774 | if test -z "$ac_cv_prog_RANLIB"; then | |
4775 | ac_ct_RANLIB=$RANLIB | |
4776 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4777 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4779 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 4780 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 4781 | $as_echo_n "(cached) " >&6 |
b7026657 AC |
4782 | else |
4783 | if test -n "$ac_ct_RANLIB"; then | |
4784 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4785 | else | |
4786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4787 | for as_dir in $PATH | |
4788 | do | |
4789 | IFS=$as_save_IFS | |
4790 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 4791 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 4792 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b7026657 | 4793 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 4794 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b7026657 AC |
4795 | break 2 |
4796 | fi | |
4797 | done | |
81ecdfbb RW |
4798 | done |
4799 | IFS=$as_save_IFS | |
b7026657 | 4800 | |
b7026657 AC |
4801 | fi |
4802 | fi | |
4803 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4804 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
4806 | $as_echo "$ac_ct_RANLIB" >&6; } | |
b7026657 | 4807 | else |
81ecdfbb RW |
4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4809 | $as_echo "no" >&6; } | |
b7026657 AC |
4810 | fi |
4811 | ||
81ecdfbb RW |
4812 | if test "x$ac_ct_RANLIB" = x; then |
4813 | RANLIB=":" | |
4814 | else | |
4815 | case $cross_compiling:$ac_tool_warned in | |
4816 | yes:) | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4818 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4819 | ac_tool_warned=yes ;; | |
4820 | esac | |
4821 | RANLIB=$ac_ct_RANLIB | |
4822 | fi | |
c906108c | 4823 | else |
b7026657 | 4824 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
4825 | fi |
4826 | ||
4827 | ||
4828 | ||
4829 | ||
4830 | ||
4831 | ||
4832 | ||
4833 | ||
4834 | ||
4835 | ||
4836 | ||
4837 | ||
4838 | ||
4839 | ||
4840 | ||
4841 | ||
4842 | ||
4843 | ||
4844 | ||
4845 | ||
4846 | ||
4847 | ||
4848 | ||
4849 | ||
4850 | ||
4851 | ||
4852 | ||
4853 | ||
4854 | ||
4855 | ||
4856 | ||
4857 | ||
4858 | ||
c906108c SS |
4859 | |
4860 | ||
81ecdfbb RW |
4861 | ac_config_files="$ac_config_files Makefile" |
4862 | ||
4863 | ac_config_commands="$ac_config_commands default" | |
4864 | ||
b7026657 | 4865 | cat >confcache <<\_ACEOF |
c906108c SS |
4866 | # This file is a shell script that caches the results of configure |
4867 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
4868 | # scripts and configure runs, see configure's option --config-cache. |
4869 | # It is not useful on other systems. If it contains results you don't | |
4870 | # want to keep, you may remove or edit it. | |
c906108c | 4871 | # |
b7026657 AC |
4872 | # config.status only pays attention to the cache file if you give it |
4873 | # the --recheck option to rerun configure. | |
c906108c | 4874 | # |
b7026657 AC |
4875 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4876 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4877 | # following values. | |
4878 | ||
4879 | _ACEOF | |
4880 | ||
c906108c SS |
4881 | # The following way of writing the cache mishandles newlines in values, |
4882 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 4883 | # So, we kill variables containing newlines. |
c906108c SS |
4884 | # Ultrix sh set writes to stderr and can't be redirected directly, |
4885 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
4886 | ( |
4887 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
4888 | eval ac_val=\$$ac_var | |
4889 | case $ac_val in #( | |
4890 | *${as_nl}*) | |
4891 | case $ac_var in #( | |
4892 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
4893 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
4894 | esac | |
4895 | case $ac_var in #( | |
4896 | _ | IFS | as_nl) ;; #( | |
4897 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
4898 | *) { eval $ac_var=; unset $ac_var;} ;; | |
4899 | esac ;; | |
4900 | esac | |
4901 | done | |
4902 | ||
b7026657 | 4903 | (set) 2>&1 | |
81ecdfbb RW |
4904 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4905 | *${as_nl}ac_space=\ *) | |
4906 | # `set' does not quote correctly, so add quotes: double-quote | |
4907 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
b7026657 AC |
4908 | sed -n \ |
4909 | "s/'/'\\\\''/g; | |
4910 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 4911 | ;; #( |
b7026657 AC |
4912 | *) |
4913 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 4914 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
b7026657 | 4915 | ;; |
81ecdfbb RW |
4916 | esac | |
4917 | sort | |
4918 | ) | | |
b7026657 | 4919 | sed ' |
81ecdfbb | 4920 | /^ac_cv_env_/b end |
b7026657 | 4921 | t clear |
81ecdfbb | 4922 | :clear |
b7026657 AC |
4923 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4924 | t end | |
81ecdfbb RW |
4925 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4926 | :end' >>confcache | |
4927 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
4928 | if test -w "$cache_file"; then | |
d0ac1c44 | 4929 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4931 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
4932 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
4933 | cat confcache >"$cache_file" | |
4934 | else | |
4935 | case $cache_file in #( | |
4936 | */* | ?:*) | |
4937 | mv -f confcache "$cache_file"$$ && | |
4938 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
4939 | *) | |
4940 | mv -f confcache "$cache_file" ;; | |
4941 | esac | |
4942 | fi | |
4943 | fi | |
c906108c | 4944 | else |
81ecdfbb RW |
4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4946 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
c906108c SS |
4947 | fi |
4948 | fi | |
4949 | rm -f confcache | |
4950 | ||
c906108c SS |
4951 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4952 | # Let make expand exec_prefix. | |
4953 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4954 | ||
c906108c SS |
4955 | DEFS=-DHAVE_CONFIG_H |
4956 | ||
b7026657 AC |
4957 | ac_libobjs= |
4958 | ac_ltlibobjs= | |
d0ac1c44 | 4959 | U= |
b7026657 AC |
4960 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4961 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
4962 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4963 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
4964 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
4965 | # will be set to the directory where LIBOBJS objects are built. | |
4966 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
4967 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
b7026657 AC |
4968 | done |
4969 | LIBOBJS=$ac_libobjs | |
c906108c | 4970 | |
b7026657 AC |
4971 | LTLIBOBJS=$ac_ltlibobjs |
4972 | ||
4973 | ||
4974 | ||
d0ac1c44 | 4975 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 4976 | ac_write_fail=0 |
b7026657 AC |
4977 | ac_clean_files_save=$ac_clean_files |
4978 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4980 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
4981 | as_write_fail=0 | |
4982 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
b7026657 AC |
4983 | #! $SHELL |
4984 | # Generated by $as_me. | |
c906108c | 4985 | # Run this file to recreate the current configuration. |
c906108c | 4986 | # Compiler output produced by configure, useful for debugging |
b7026657 | 4987 | # configure, is in config.log if it exists. |
c906108c | 4988 | |
b7026657 AC |
4989 | debug=false |
4990 | ac_cs_recheck=false | |
4991 | ac_cs_silent=false | |
b7026657 | 4992 | |
81ecdfbb RW |
4993 | SHELL=\${CONFIG_SHELL-$SHELL} |
4994 | export SHELL | |
4995 | _ASEOF | |
4996 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
4997 | ## -------------------- ## | |
4998 | ## M4sh Initialization. ## | |
4999 | ## -------------------- ## | |
5000 | ||
5001 | # Be more Bourne compatible | |
5002 | DUALCASE=1; export DUALCASE # for MKS sh | |
5003 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
b7026657 AC |
5004 | emulate sh |
5005 | NULLCMD=: | |
81ecdfbb | 5006 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
b7026657 AC |
5007 | # is contrary to our usage. Disable this feature. |
5008 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
5009 | setopt NO_GLOB_SUBST |
5010 | else | |
5011 | case `(set -o) 2>/dev/null` in #( | |
5012 | *posix*) : | |
5013 | set -o posix ;; #( | |
5014 | *) : | |
5015 | ;; | |
5016 | esac | |
b7026657 | 5017 | fi |
b7026657 | 5018 | |
81ecdfbb RW |
5019 | |
5020 | as_nl=' | |
5021 | ' | |
5022 | export as_nl | |
5023 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
5024 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5025 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
5026 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
5027 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
5028 | # but without wasting forks for bash or zsh. | |
5029 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
5030 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5031 | as_echo='print -r --' | |
5032 | as_echo_n='print -rn --' | |
5033 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
5034 | as_echo='printf %s\n' | |
5035 | as_echo_n='printf %s' | |
5036 | else | |
5037 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
5038 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
5039 | as_echo_n='/usr/ucb/echo -n' | |
5040 | else | |
5041 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
5042 | as_echo_n_body='eval | |
5043 | arg=$1; | |
5044 | case $arg in #( | |
5045 | *"$as_nl"*) | |
5046 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
5047 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
5048 | esac; | |
5049 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
5050 | ' | |
5051 | export as_echo_n_body | |
5052 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
5053 | fi | |
5054 | export as_echo_body | |
5055 | as_echo='sh -c $as_echo_body as_echo' | |
b7026657 AC |
5056 | fi |
5057 | ||
81ecdfbb RW |
5058 | # The user is always right. |
5059 | if test "${PATH_SEPARATOR+set}" != set; then | |
5060 | PATH_SEPARATOR=: | |
5061 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
5062 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
5063 | PATH_SEPARATOR=';' | |
5064 | } | |
5065 | fi | |
5066 | ||
5067 | ||
5068 | # IFS | |
5069 | # We need space, tab and new line, in precisely that order. Quoting is | |
5070 | # there to prevent editors from complaining about space-tab. | |
5071 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
5072 | # splitting by setting IFS to empty value.) | |
5073 | IFS=" "" $as_nl" | |
5074 | ||
5075 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 5076 | as_myself= |
81ecdfbb RW |
5077 | case $0 in #(( |
5078 | *[\\/]* ) as_myself=$0 ;; | |
5079 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5080 | for as_dir in $PATH | |
5081 | do | |
5082 | IFS=$as_save_IFS | |
5083 | test -z "$as_dir" && as_dir=. | |
5084 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
5085 | done | |
5086 | IFS=$as_save_IFS | |
b7026657 | 5087 | |
81ecdfbb RW |
5088 | ;; |
5089 | esac | |
5090 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
5091 | # in which case we are not to be found in the path. | |
5092 | if test "x$as_myself" = x; then | |
5093 | as_myself=$0 | |
5094 | fi | |
5095 | if test ! -f "$as_myself"; then | |
5096 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
5097 | exit 1 | |
5098 | fi | |
5099 | ||
5100 | # Unset variables that we do not need and which cause bugs (e.g. in | |
5101 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
5102 | # suppresses any "Segmentation fault" message there. '((' could | |
5103 | # trigger a bug in pdksh 5.2.14. | |
5104 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
5105 | do eval test x\${$as_var+set} = xset \ | |
5106 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
5107 | done | |
b7026657 AC |
5108 | PS1='$ ' |
5109 | PS2='> ' | |
5110 | PS4='+ ' | |
5111 | ||
5112 | # NLS nuisances. | |
81ecdfbb RW |
5113 | LC_ALL=C |
5114 | export LC_ALL | |
5115 | LANGUAGE=C | |
5116 | export LANGUAGE | |
5117 | ||
5118 | # CDPATH. | |
5119 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
5120 | ||
5121 | ||
d0ac1c44 SM |
5122 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
5123 | # ---------------------------------------- | |
81ecdfbb RW |
5124 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
5125 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 5126 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
5127 | as_fn_error () |
5128 | { | |
d0ac1c44 SM |
5129 | as_status=$1; test $as_status -eq 0 && as_status=1 |
5130 | if test "$4"; then | |
5131 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
5132 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
b7026657 | 5133 | fi |
d0ac1c44 | 5134 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
5135 | as_fn_exit $as_status |
5136 | } # as_fn_error | |
5137 | ||
c906108c | 5138 | |
81ecdfbb RW |
5139 | # as_fn_set_status STATUS |
5140 | # ----------------------- | |
5141 | # Set $? to STATUS, without forking. | |
5142 | as_fn_set_status () | |
5143 | { | |
5144 | return $1 | |
5145 | } # as_fn_set_status | |
5146 | ||
5147 | # as_fn_exit STATUS | |
5148 | # ----------------- | |
5149 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
5150 | as_fn_exit () | |
5151 | { | |
5152 | set +e | |
5153 | as_fn_set_status $1 | |
5154 | exit $1 | |
5155 | } # as_fn_exit | |
5156 | ||
5157 | # as_fn_unset VAR | |
5158 | # --------------- | |
5159 | # Portably unset VAR. | |
5160 | as_fn_unset () | |
5161 | { | |
5162 | { eval $1=; unset $1;} | |
5163 | } | |
5164 | as_unset=as_fn_unset | |
5165 | # as_fn_append VAR VALUE | |
5166 | # ---------------------- | |
5167 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
5168 | # advantage of any shell optimizations that allow amortized linear growth over | |
5169 | # repeated appends, instead of the typical quadratic growth present in naive | |
5170 | # implementations. | |
5171 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
5172 | eval 'as_fn_append () | |
5173 | { | |
5174 | eval $1+=\$2 | |
5175 | }' | |
5176 | else | |
5177 | as_fn_append () | |
5178 | { | |
5179 | eval $1=\$$1\$2 | |
5180 | } | |
5181 | fi # as_fn_append | |
5182 | ||
5183 | # as_fn_arith ARG... | |
5184 | # ------------------ | |
5185 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
5186 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
5187 | # must be portable across $(()) and expr. | |
5188 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
5189 | eval 'as_fn_arith () | |
5190 | { | |
5191 | as_val=$(( $* )) | |
5192 | }' | |
5193 | else | |
5194 | as_fn_arith () | |
5195 | { | |
5196 | as_val=`expr "$@" || test $? -eq 1` | |
5197 | } | |
5198 | fi # as_fn_arith | |
5199 | ||
5200 | ||
5201 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
5202 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
b7026657 AC |
5203 | as_expr=expr |
5204 | else | |
5205 | as_expr=false | |
5206 | fi | |
c906108c | 5207 | |
81ecdfbb | 5208 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
b7026657 AC |
5209 | as_basename=basename |
5210 | else | |
5211 | as_basename=false | |
5212 | fi | |
c906108c | 5213 | |
81ecdfbb RW |
5214 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
5215 | as_dirname=dirname | |
5216 | else | |
5217 | as_dirname=false | |
5218 | fi | |
c906108c | 5219 | |
81ecdfbb | 5220 | as_me=`$as_basename -- "$0" || |
b7026657 AC |
5221 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5222 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
5223 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5224 | $as_echo X/"$0" | | |
5225 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
5226 | s//\1/ | |
5227 | q | |
5228 | } | |
5229 | /^X\/\(\/\/\)$/{ | |
5230 | s//\1/ | |
5231 | q | |
5232 | } | |
5233 | /^X\/\(\/\).*/{ | |
5234 | s//\1/ | |
5235 | q | |
5236 | } | |
5237 | s/.*/./; q'` | |
b7026657 | 5238 | |
b7026657 AC |
5239 | # Avoid depending upon Character Ranges. |
5240 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
5241 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
5242 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
5243 | as_cr_digits='0123456789' | |
5244 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
5245 | ||
81ecdfbb RW |
5246 | ECHO_C= ECHO_N= ECHO_T= |
5247 | case `echo -n x` in #((((( | |
5248 | -n*) | |
5249 | case `echo 'xy\c'` in | |
5250 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
5251 | xy) ECHO_C='\c';; | |
5252 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
5253 | ECHO_T=' ';; | |
5254 | esac;; | |
5255 | *) | |
5256 | ECHO_N='-n';; | |
b7026657 AC |
5257 | esac |
5258 | ||
b7026657 | 5259 | rm -f conf$$ conf$$.exe conf$$.file |
81ecdfbb RW |
5260 | if test -d conf$$.dir; then |
5261 | rm -f conf$$.dir/conf$$.file | |
5262 | else | |
5263 | rm -f conf$$.dir | |
5264 | mkdir conf$$.dir 2>/dev/null | |
5265 | fi | |
5266 | if (echo >conf$$.file) 2>/dev/null; then | |
5267 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b7026657 | 5268 | as_ln_s='ln -s' |
81ecdfbb RW |
5269 | # ... but there are two gotchas: |
5270 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
5271 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 5272 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 5273 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 5274 | as_ln_s='cp -pR' |
81ecdfbb RW |
5275 | elif ln conf$$.file conf$$ 2>/dev/null; then |
5276 | as_ln_s=ln | |
5277 | else | |
d0ac1c44 | 5278 | as_ln_s='cp -pR' |
c906108c | 5279 | fi |
b7026657 | 5280 | else |
d0ac1c44 | 5281 | as_ln_s='cp -pR' |
b7026657 | 5282 | fi |
81ecdfbb RW |
5283 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
5284 | rmdir conf$$.dir 2>/dev/null | |
5285 | ||
5286 | ||
5287 | # as_fn_mkdir_p | |
5288 | # ------------- | |
5289 | # Create "$as_dir" as a directory, including parents if necessary. | |
5290 | as_fn_mkdir_p () | |
5291 | { | |
5292 | ||
5293 | case $as_dir in #( | |
5294 | -*) as_dir=./$as_dir;; | |
5295 | esac | |
5296 | test -d "$as_dir" || eval $as_mkdir_p || { | |
5297 | as_dirs= | |
5298 | while :; do | |
5299 | case $as_dir in #( | |
5300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
5301 | *) as_qdir=$as_dir;; | |
5302 | esac | |
5303 | as_dirs="'$as_qdir' $as_dirs" | |
5304 | as_dir=`$as_dirname -- "$as_dir" || | |
5305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
5306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
5307 | X"$as_dir" : 'X\(//\)$' \| \ | |
5308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
5309 | $as_echo X"$as_dir" | | |
5310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5311 | s//\1/ | |
5312 | q | |
5313 | } | |
5314 | /^X\(\/\/\)[^/].*/{ | |
5315 | s//\1/ | |
5316 | q | |
5317 | } | |
5318 | /^X\(\/\/\)$/{ | |
5319 | s//\1/ | |
5320 | q | |
5321 | } | |
5322 | /^X\(\/\).*/{ | |
5323 | s//\1/ | |
5324 | q | |
5325 | } | |
5326 | s/.*/./; q'` | |
5327 | test -d "$as_dir" && break | |
5328 | done | |
5329 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 5330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
b7026657 | 5331 | |
81ecdfbb RW |
5332 | |
5333 | } # as_fn_mkdir_p | |
b7026657 | 5334 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 5335 | as_mkdir_p='mkdir -p "$as_dir"' |
b7026657 AC |
5336 | else |
5337 | test -d ./-p && rmdir ./-p | |
5338 | as_mkdir_p=false | |
5339 | fi | |
5340 | ||
d0ac1c44 SM |
5341 | |
5342 | # as_fn_executable_p FILE | |
5343 | # ----------------------- | |
5344 | # Test if FILE is an executable regular file. | |
5345 | as_fn_executable_p () | |
5346 | { | |
5347 | test -f "$1" && test -x "$1" | |
5348 | } # as_fn_executable_p | |
5349 | as_test_x='test -x' | |
5350 | as_executable_p=as_fn_executable_p | |
b7026657 AC |
5351 | |
5352 | # Sed expression to map a string onto a valid CPP name. | |
5353 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
5354 | ||
5355 | # Sed expression to map a string onto a valid variable name. | |
5356 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
5357 | ||
5358 | ||
b7026657 | 5359 | exec 6>&1 |
81ecdfbb RW |
5360 | ## ----------------------------------- ## |
5361 | ## Main body of $CONFIG_STATUS script. ## | |
5362 | ## ----------------------------------- ## | |
5363 | _ASEOF | |
5364 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
5365 | ||
5366 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5367 | # Save the log message, to keep $0 and so on meaningful, and to | |
b7026657 | 5368 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
5369 | # values after options handling. |
5370 | ac_log=" | |
b7026657 | 5371 | This file was extended by $as_me, which was |
d0ac1c44 | 5372 | generated by GNU Autoconf 2.69. Invocation command line was |
b7026657 AC |
5373 | |
5374 | CONFIG_FILES = $CONFIG_FILES | |
5375 | CONFIG_HEADERS = $CONFIG_HEADERS | |
5376 | CONFIG_LINKS = $CONFIG_LINKS | |
5377 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
5378 | $ $0 $@ | |
5379 | ||
81ecdfbb RW |
5380 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
5381 | " | |
5382 | ||
b7026657 AC |
5383 | _ACEOF |
5384 | ||
81ecdfbb RW |
5385 | case $ac_config_files in *" |
5386 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
5387 | esac | |
b7026657 | 5388 | |
81ecdfbb RW |
5389 | case $ac_config_headers in *" |
5390 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
5391 | esac | |
b7026657 | 5392 | |
b7026657 | 5393 | |
81ecdfbb RW |
5394 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5395 | # Files that config.status was made for. | |
5396 | config_files="$ac_config_files" | |
5397 | config_headers="$ac_config_headers" | |
5398 | config_commands="$ac_config_commands" | |
b7026657 | 5399 | |
81ecdfbb | 5400 | _ACEOF |
b7026657 | 5401 | |
81ecdfbb | 5402 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 5403 | ac_cs_usage="\ |
81ecdfbb RW |
5404 | \`$as_me' instantiates files and other configuration actions |
5405 | from templates according to the current configuration. Unless the files | |
5406 | and actions are specified as TAGs, all are instantiated by default. | |
b7026657 | 5407 | |
81ecdfbb | 5408 | Usage: $0 [OPTION]... [TAG]... |
b7026657 AC |
5409 | |
5410 | -h, --help print this help, then exit | |
81ecdfbb | 5411 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 5412 | --config print configuration, then exit |
81ecdfbb RW |
5413 | -q, --quiet, --silent |
5414 | do not print progress messages | |
b7026657 AC |
5415 | -d, --debug don't remove temporary files |
5416 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
5417 | --file=FILE[:TEMPLATE] |
5418 | instantiate the configuration file FILE | |
5419 | --header=FILE[:TEMPLATE] | |
5420 | instantiate the configuration header FILE | |
b7026657 AC |
5421 | |
5422 | Configuration files: | |
5423 | $config_files | |
5424 | ||
5425 | Configuration headers: | |
5426 | $config_headers | |
5427 | ||
5428 | Configuration commands: | |
5429 | $config_commands | |
5430 | ||
81ecdfbb | 5431 | Report bugs to the package provider." |
b7026657 | 5432 | |
81ecdfbb RW |
5433 | _ACEOF |
5434 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 5435 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
b7026657 AC |
5436 | ac_cs_version="\\ |
5437 | config.status | |
d0ac1c44 SM |
5438 | configured by $0, generated by GNU Autoconf 2.69, |
5439 | with options \\"\$ac_cs_config\\" | |
b7026657 | 5440 | |
d0ac1c44 | 5441 | Copyright (C) 2012 Free Software Foundation, Inc. |
b7026657 AC |
5442 | This config.status script is free software; the Free Software Foundation |
5443 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
5444 | |
5445 | ac_pwd='$ac_pwd' | |
5446 | srcdir='$srcdir' | |
5447 | INSTALL='$INSTALL' | |
5448 | test -n "\$AWK" || AWK=awk | |
b7026657 AC |
5449 | _ACEOF |
5450 | ||
81ecdfbb RW |
5451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5452 | # The default lists apply if the user does not specify any file. | |
b7026657 AC |
5453 | ac_need_defaults=: |
5454 | while test $# != 0 | |
5455 | do | |
5456 | case $1 in | |
d0ac1c44 | 5457 | --*=?*) |
81ecdfbb RW |
5458 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
5459 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
b7026657 AC |
5460 | ac_shift=: |
5461 | ;; | |
d0ac1c44 SM |
5462 | --*=) |
5463 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
5464 | ac_optarg= | |
5465 | ac_shift=: | |
5466 | ;; | |
81ecdfbb | 5467 | *) |
b7026657 AC |
5468 | ac_option=$1 |
5469 | ac_optarg=$2 | |
5470 | ac_shift=shift | |
5471 | ;; | |
b7026657 AC |
5472 | esac |
5473 | ||
5474 | case $ac_option in | |
5475 | # Handling of the options. | |
b7026657 AC |
5476 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5477 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
5478 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
5479 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
5480 | --config | --confi | --conf | --con | --co | --c ) |
5481 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 5482 | --debug | --debu | --deb | --de | --d | -d ) |
b7026657 AC |
5483 | debug=: ;; |
5484 | --file | --fil | --fi | --f ) | |
5485 | $ac_shift | |
81ecdfbb RW |
5486 | case $ac_optarg in |
5487 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 5488 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
5489 | esac |
5490 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
b7026657 AC |
5491 | ac_need_defaults=false;; |
5492 | --header | --heade | --head | --hea ) | |
5493 | $ac_shift | |
81ecdfbb RW |
5494 | case $ac_optarg in |
5495 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
5496 | esac | |
5497 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
b7026657 | 5498 | ac_need_defaults=false;; |
81ecdfbb RW |
5499 | --he | --h) |
5500 | # Conflict between --help and --header | |
d0ac1c44 | 5501 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
5502 | Try \`$0 --help' for more information.";; |
5503 | --help | --hel | -h ) | |
5504 | $as_echo "$ac_cs_usage"; exit ;; | |
b7026657 AC |
5505 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5506 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
5507 | ac_cs_silent=: ;; | |
5508 | ||
5509 | # This is an error. | |
d0ac1c44 | 5510 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 5511 | Try \`$0 --help' for more information." ;; |
b7026657 | 5512 | |
81ecdfbb RW |
5513 | *) as_fn_append ac_config_targets " $1" |
5514 | ac_need_defaults=false ;; | |
b7026657 AC |
5515 | |
5516 | esac | |
5517 | shift | |
c906108c | 5518 | done |
b7026657 AC |
5519 | |
5520 | ac_configure_extra_args= | |
5521 | ||
5522 | if $ac_cs_silent; then | |
5523 | exec 6>/dev/null | |
5524 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
5525 | fi | |
5526 | ||
5527 | _ACEOF | |
81ecdfbb | 5528 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b7026657 | 5529 | if \$ac_cs_recheck; then |
d0ac1c44 | 5530 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
5531 | shift |
5532 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
5533 | CONFIG_SHELL='$SHELL' | |
5534 | export CONFIG_SHELL | |
5535 | exec "\$@" | |
c906108c | 5536 | fi |
c906108c | 5537 | |
b7026657 | 5538 | _ACEOF |
81ecdfbb RW |
5539 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5540 | exec 5>>config.log | |
5541 | { | |
5542 | echo | |
5543 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
5544 | ## Running $as_me. ## | |
5545 | _ASBOX | |
5546 | $as_echo "$ac_log" | |
5547 | } >&5 | |
c906108c | 5548 | |
81ecdfbb RW |
5549 | _ACEOF |
5550 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5551 | _ACEOF | |
b7026657 | 5552 | |
81ecdfbb | 5553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 | 5554 | |
81ecdfbb | 5555 | # Handling of arguments. |
b7026657 AC |
5556 | for ac_config_target in $ac_config_targets |
5557 | do | |
81ecdfbb RW |
5558 | case $ac_config_target in |
5559 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
68a3e151 | 5560 | "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;; |
81ecdfbb RW |
5561 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
5562 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
5563 | ||
d0ac1c44 | 5564 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
c906108c | 5565 | esac |
b7026657 | 5566 | done |
c906108c | 5567 | |
81ecdfbb | 5568 | |
b7026657 AC |
5569 | # If the user did not use the arguments to specify the items to instantiate, |
5570 | # then the envvar interface is used. Set only those that are not. | |
5571 | # We use the long form for the default assignment because of an extremely | |
5572 | # bizarre bug on SunOS 4.1.3. | |
5573 | if $ac_need_defaults; then | |
5574 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
5575 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
5576 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
5577 | fi | |
5578 | ||
5579 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 5580 | # simply because there is no reason against having it here, and in addition, |
b7026657 | 5581 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
5582 | # Hook for its removal unless debugging. |
5583 | # Note that there is a small window in which the directory will not be cleaned: | |
5584 | # after its creation but before its name has been assigned to `$tmp'. | |
b7026657 AC |
5585 | $debug || |
5586 | { | |
d0ac1c44 | 5587 | tmp= ac_tmp= |
81ecdfbb | 5588 | trap 'exit_status=$? |
d0ac1c44 SM |
5589 | : "${ac_tmp:=$tmp}" |
5590 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
5591 | ' 0 |
5592 | trap 'as_fn_exit 1' 1 2 13 15 | |
b7026657 | 5593 | } |
b7026657 AC |
5594 | # Create a (secure) tmp directory for tmp files. |
5595 | ||
5596 | { | |
81ecdfbb | 5597 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 5598 | test -d "$tmp" |
b7026657 AC |
5599 | } || |
5600 | { | |
81ecdfbb RW |
5601 | tmp=./conf$$-$RANDOM |
5602 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
5603 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
5604 | ac_tmp=$tmp | |
81ecdfbb RW |
5605 | |
5606 | # Set up the scripts for CONFIG_FILES section. | |
5607 | # No need to generate them if there are no CONFIG_FILES. | |
5608 | # This happens for instance with `./config.status config.h'. | |
5609 | if test -n "$CONFIG_FILES"; then | |
5610 | ||
5611 | ||
5612 | ac_cr=`echo X | tr X '\015'` | |
5613 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
5614 | # But we know of no other shell where ac_cr would be empty at this | |
5615 | # point, so we can use a bashism as a fallback. | |
5616 | if test "x$ac_cr" = x; then | |
5617 | eval ac_cr=\$\'\\r\' | |
5618 | fi | |
5619 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
5620 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 5621 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
5622 | else |
5623 | ac_cs_awk_cr=$ac_cr | |
5624 | fi | |
5625 | ||
d0ac1c44 | 5626 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
5627 | _ACEOF |
5628 | ||
5629 | ||
b7026657 | 5630 | { |
81ecdfbb RW |
5631 | echo "cat >conf$$subs.awk <<_ACEOF" && |
5632 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
5633 | echo "_ACEOF" | |
5634 | } >conf$$subs.sh || | |
d0ac1c44 SM |
5635 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
5636 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
5637 | ac_delim='%!_!# ' |
5638 | for ac_last_try in false false false false false :; do | |
5639 | . ./conf$$subs.sh || | |
d0ac1c44 | 5640 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
5641 | |
5642 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
5643 | if test $ac_delim_n = $ac_delim_num; then | |
5644 | break | |
5645 | elif $ac_last_try; then | |
d0ac1c44 | 5646 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
5647 | else |
5648 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
5649 | fi | |
5650 | done | |
5651 | rm -f conf$$subs.sh | |
5652 | ||
5653 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 5654 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
5655 | _ACEOF |
5656 | sed -n ' | |
5657 | h | |
5658 | s/^/S["/; s/!.*/"]=/ | |
5659 | p | |
5660 | g | |
5661 | s/^[^!]*!// | |
5662 | :repl | |
5663 | t repl | |
5664 | s/'"$ac_delim"'$// | |
5665 | t delim | |
5666 | :nl | |
5667 | h | |
d0ac1c44 | 5668 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
5669 | t more1 |
5670 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
5671 | p | |
5672 | n | |
5673 | b repl | |
5674 | :more1 | |
5675 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5676 | p | |
5677 | g | |
5678 | s/.\{148\}// | |
5679 | t nl | |
5680 | :delim | |
5681 | h | |
d0ac1c44 | 5682 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
5683 | t more2 |
5684 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
5685 | p | |
5686 | b | |
5687 | :more2 | |
5688 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
5689 | p | |
5690 | g | |
5691 | s/.\{148\}// | |
5692 | t delim | |
5693 | ' <conf$$subs.awk | sed ' | |
5694 | /^[^""]/{ | |
5695 | N | |
5696 | s/\n// | |
b7026657 | 5697 | } |
81ecdfbb RW |
5698 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
5699 | rm -f conf$$subs.awk | |
5700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5701 | _ACAWK | |
d0ac1c44 | 5702 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
5703 | for (key in S) S_is_set[key] = 1 |
5704 | FS = "\a" | |
b7026657 | 5705 | |
81ecdfbb RW |
5706 | } |
5707 | { | |
5708 | line = $ 0 | |
5709 | nfields = split(line, field, "@") | |
5710 | substed = 0 | |
5711 | len = length(field[1]) | |
5712 | for (i = 2; i < nfields; i++) { | |
5713 | key = field[i] | |
5714 | keylen = length(key) | |
5715 | if (S_is_set[key]) { | |
5716 | value = S[key] | |
5717 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
5718 | len += length(value) + length(field[++i]) | |
5719 | substed = 1 | |
5720 | } else | |
5721 | len += 1 + keylen | |
5722 | } | |
b7026657 | 5723 | |
81ecdfbb RW |
5724 | print line |
5725 | } | |
b7026657 | 5726 | |
81ecdfbb RW |
5727 | _ACAWK |
5728 | _ACEOF | |
5729 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
5730 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
5731 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
5732 | else | |
5733 | cat | |
d0ac1c44 SM |
5734 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
5735 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
81ecdfbb RW |
5736 | _ACEOF |
5737 | ||
d0ac1c44 SM |
5738 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
5739 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
5740 | # trailing colons and then remove the whole line if VPATH becomes empty |
5741 | # (actually we leave an empty line to preserve line numbers). | |
5742 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
5743 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
5744 | h | |
5745 | s/// | |
5746 | s/^/:/ | |
5747 | s/[ ]*$/:/ | |
5748 | s/:\$(srcdir):/:/g | |
5749 | s/:\${srcdir}:/:/g | |
5750 | s/:@srcdir@:/:/g | |
5751 | s/^:*// | |
81ecdfbb | 5752 | s/:*$// |
d0ac1c44 SM |
5753 | x |
5754 | s/\(=[ ]*\).*/\1/ | |
5755 | G | |
5756 | s/\n// | |
81ecdfbb RW |
5757 | s/^[^=]*=[ ]*$// |
5758 | }' | |
5759 | fi | |
b7026657 | 5760 | |
81ecdfbb RW |
5761 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5762 | fi # test -n "$CONFIG_FILES" | |
b7026657 | 5763 | |
81ecdfbb RW |
5764 | # Set up the scripts for CONFIG_HEADERS section. |
5765 | # No need to generate them if there are no CONFIG_HEADERS. | |
5766 | # This happens for instance with `./config.status Makefile'. | |
5767 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 5768 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb | 5769 | BEGIN { |
b7026657 AC |
5770 | _ACEOF |
5771 | ||
81ecdfbb RW |
5772 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
5773 | # here-document in config.status, that substitutes the proper values into | |
5774 | # config.h.in to produce config.h. | |
5775 | ||
5776 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
5777 | # handling of long lines. | |
5778 | ac_delim='%!_!# ' | |
5779 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
5780 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
5781 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
5782 | break |
5783 | elif $ac_last_try; then | |
d0ac1c44 | 5784 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
5785 | else |
5786 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
c906108c | 5787 | fi |
81ecdfbb | 5788 | done |
c906108c | 5789 | |
81ecdfbb RW |
5790 | # For the awk script, D is an array of macro values keyed by name, |
5791 | # likewise P contains macro parameters if any. Preserve backslash | |
5792 | # newline sequences. | |
5793 | ||
5794 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
5795 | sed -n ' | |
5796 | s/.\{148\}/&'"$ac_delim"'/g | |
5797 | t rset | |
5798 | :rset | |
5799 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
5800 | t def | |
5801 | d | |
5802 | :def | |
5803 | s/\\$// | |
5804 | t bsnl | |
5805 | s/["\\]/\\&/g | |
5806 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5807 | D["\1"]=" \3"/p | |
5808 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
5809 | d | |
5810 | :bsnl | |
5811 | s/["\\]/\\&/g | |
5812 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
5813 | D["\1"]=" \3\\\\\\n"\\/p | |
5814 | t cont | |
5815 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
5816 | t cont | |
5817 | d | |
5818 | :cont | |
5819 | n | |
5820 | s/.\{148\}/&'"$ac_delim"'/g | |
5821 | t clear | |
5822 | :clear | |
5823 | s/\\$// | |
5824 | t bsnlc | |
5825 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
5826 | d | |
5827 | :bsnlc | |
5828 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
5829 | b cont | |
5830 | ' <confdefs.h | sed ' | |
5831 | s/'"$ac_delim"'/"\\\ | |
5832 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
5833 | ||
5834 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
5835 | for (key in D) D_is_set[key] = 1 | |
5836 | FS = "\a" | |
5837 | } | |
5838 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
5839 | line = \$ 0 | |
5840 | split(line, arg, " ") | |
5841 | if (arg[1] == "#") { | |
5842 | defundef = arg[2] | |
5843 | mac1 = arg[3] | |
5844 | } else { | |
5845 | defundef = substr(arg[1], 2) | |
5846 | mac1 = arg[2] | |
5847 | } | |
5848 | split(mac1, mac2, "(") #) | |
5849 | macro = mac2[1] | |
5850 | prefix = substr(line, 1, index(line, defundef) - 1) | |
5851 | if (D_is_set[macro]) { | |
5852 | # Preserve the white space surrounding the "#". | |
5853 | print prefix "define", macro P[macro] D[macro] | |
5854 | next | |
5855 | } else { | |
5856 | # Replace #undef with comments. This is necessary, for example, | |
5857 | # in the case of _POSIX_SOURCE, which is predefined and required | |
5858 | # on some systems where configure will not decide to define it. | |
5859 | if (defundef == "undef") { | |
5860 | print "/*", prefix defundef, macro, "*/" | |
5861 | next | |
5862 | } | |
5863 | } | |
5864 | } | |
5865 | { print } | |
5866 | _ACAWK | |
b7026657 | 5867 | _ACEOF |
81ecdfbb | 5868 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 5869 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb RW |
5870 | fi # test -n "$CONFIG_HEADERS" |
5871 | ||
5872 | ||
5873 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
5874 | shift | |
5875 | for ac_tag | |
5876 | do | |
5877 | case $ac_tag in | |
5878 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
5879 | esac | |
5880 | case $ac_mode$ac_tag in | |
5881 | :[FHL]*:*);; | |
d0ac1c44 | 5882 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
5883 | :[FH]-) ac_tag=-:-;; |
5884 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
5885 | esac | |
5886 | ac_save_IFS=$IFS | |
5887 | IFS=: | |
5888 | set x $ac_tag | |
5889 | IFS=$ac_save_IFS | |
5890 | shift | |
5891 | ac_file=$1 | |
5892 | shift | |
5893 | ||
5894 | case $ac_mode in | |
5895 | :L) ac_source=$1;; | |
5896 | :[FH]) | |
5897 | ac_file_inputs= | |
5898 | for ac_f | |
5899 | do | |
5900 | case $ac_f in | |
d0ac1c44 | 5901 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
5902 | *) # Look for the file first in the build tree, then in the source tree |
5903 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
5904 | # because $ac_f cannot contain `:'. | |
5905 | test -f "$ac_f" || | |
5906 | case $ac_f in | |
5907 | [\\/$]*) false;; | |
5908 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
5909 | esac || | |
d0ac1c44 | 5910 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
5911 | esac |
5912 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
5913 | as_fn_append ac_file_inputs " '$ac_f'" | |
5914 | done | |
5915 | ||
5916 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
5917 | # use $as_me), people would be surprised to read: | |
5918 | # /* config.h. Generated by config.status. */ | |
5919 | configure_input='Generated from '` | |
5920 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
5921 | `' by configure.' | |
5922 | if test x"$ac_file" != x-; then | |
5923 | configure_input="$ac_file. $configure_input" | |
5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
5925 | $as_echo "$as_me: creating $ac_file" >&6;} | |
5926 | fi | |
5927 | # Neutralize special characters interpreted by sed in replacement strings. | |
5928 | case $configure_input in #( | |
5929 | *\&* | *\|* | *\\* ) | |
5930 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
5931 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
5932 | *) ac_sed_conf_input=$configure_input;; | |
5933 | esac | |
5934 | ||
5935 | case $ac_tag in | |
d0ac1c44 SM |
5936 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5937 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
5938 | esac |
5939 | ;; | |
c906108c SS |
5940 | esac |
5941 | ||
81ecdfbb | 5942 | ac_dir=`$as_dirname -- "$ac_file" || |
b7026657 AC |
5943 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5944 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
5945 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
5946 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5947 | $as_echo X"$ac_file" | | |
5948 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
5949 | s//\1/ | |
5950 | q | |
5951 | } | |
5952 | /^X\(\/\/\)[^/].*/{ | |
5953 | s//\1/ | |
5954 | q | |
5955 | } | |
5956 | /^X\(\/\/\)$/{ | |
5957 | s//\1/ | |
5958 | q | |
5959 | } | |
5960 | /^X\(\/\).*/{ | |
5961 | s//\1/ | |
5962 | q | |
5963 | } | |
5964 | s/.*/./; q'` | |
5965 | as_dir="$ac_dir"; as_fn_mkdir_p | |
b7026657 AC |
5966 | ac_builddir=. |
5967 | ||
81ecdfbb RW |
5968 | case "$ac_dir" in |
5969 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5970 | *) | |
5971 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
5972 | # A ".." for each directory in $ac_dir_suffix. | |
5973 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
5974 | case $ac_top_builddir_sub in | |
5975 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
5976 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
5977 | esac ;; | |
5978 | esac | |
5979 | ac_abs_top_builddir=$ac_pwd | |
5980 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
5981 | # for backward compatibility: | |
5982 | ac_top_builddir=$ac_top_build_prefix | |
c906108c | 5983 | |
b7026657 | 5984 | case $srcdir in |
81ecdfbb | 5985 | .) # We are building in place. |
b7026657 | 5986 | ac_srcdir=. |
81ecdfbb RW |
5987 | ac_top_srcdir=$ac_top_builddir_sub |
5988 | ac_abs_top_srcdir=$ac_pwd ;; | |
5989 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
b7026657 | 5990 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
5991 | ac_top_srcdir=$srcdir |
5992 | ac_abs_top_srcdir=$srcdir ;; | |
5993 | *) # Relative name. | |
5994 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
5995 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
5996 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
b7026657 | 5997 | esac |
81ecdfbb | 5998 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
b7026657 | 5999 | |
b7026657 | 6000 | |
81ecdfbb RW |
6001 | case $ac_mode in |
6002 | :F) | |
6003 | # | |
6004 | # CONFIG_FILE | |
6005 | # | |
b7026657 AC |
6006 | |
6007 | case $INSTALL in | |
6008 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 6009 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
c906108c | 6010 | esac |
81ecdfbb | 6011 | _ACEOF |
c906108c | 6012 | |
81ecdfbb RW |
6013 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
6014 | # If the template does not know about datarootdir, expand it. | |
6015 | # FIXME: This hack should be removed a few years after 2.60. | |
6016 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
6017 | ac_sed_dataroot=' | |
6018 | /datarootdir/ { | |
6019 | p | |
6020 | q | |
6021 | } | |
6022 | /@datadir@/p | |
6023 | /@docdir@/p | |
6024 | /@infodir@/p | |
6025 | /@localedir@/p | |
6026 | /@mandir@/p' | |
6027 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
6028 | *datarootdir*) ac_datarootdir_seen=yes;; | |
6029 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
6031 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
6032 | _ACEOF | |
6033 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6034 | ac_datarootdir_hack=' | |
6035 | s&@datadir@&$datadir&g | |
6036 | s&@docdir@&$docdir&g | |
6037 | s&@infodir@&$infodir&g | |
6038 | s&@localedir@&$localedir&g | |
6039 | s&@mandir@&$mandir&g | |
6040 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
6041 | esac | |
b7026657 | 6042 | _ACEOF |
81ecdfbb RW |
6043 | |
6044 | # Neutralize VPATH when `$srcdir' = `.'. | |
6045 | # Shell code in configure.ac might set extrasub. | |
6046 | # FIXME: do we really want to maintain this feature? | |
6047 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6048 | ac_sed_extra="$ac_vpsub | |
b7026657 AC |
6049 | $extrasub |
6050 | _ACEOF | |
81ecdfbb | 6051 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
b7026657 AC |
6052 | :t |
6053 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
6054 | s|@configure_input@|$ac_sed_conf_input|;t t |
6055 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
6056 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
6057 | s&@srcdir@&$ac_srcdir&;t t | |
6058 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
6059 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
6060 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
6061 | s&@builddir@&$ac_builddir&;t t | |
6062 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
6063 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
6064 | s&@INSTALL@&$ac_INSTALL&;t t | |
6065 | $ac_datarootdir_hack | |
6066 | " | |
d0ac1c44 SM |
6067 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
6068 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
6069 | |
6070 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
6071 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
6072 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
6073 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 6075 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 6076 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 6077 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 6078 | |
d0ac1c44 | 6079 | rm -f "$ac_tmp/stdin" |
b7026657 | 6080 | case $ac_file in |
d0ac1c44 SM |
6081 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
6082 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 6083 | esac \ |
d0ac1c44 | 6084 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
6085 | ;; |
6086 | :H) | |
6087 | # | |
6088 | # CONFIG_HEADER | |
6089 | # | |
b7026657 | 6090 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
6091 | { |
6092 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
6093 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
6094 | } >"$ac_tmp/config.h" \ | |
6095 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
6096 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
6098 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
b7026657 | 6099 | else |
81ecdfbb | 6100 | rm -f "$ac_file" |
d0ac1c44 SM |
6101 | mv "$ac_tmp/config.h" "$ac_file" \ |
6102 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
c906108c | 6103 | fi |
b7026657 | 6104 | else |
81ecdfbb | 6105 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
6106 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
6107 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
c906108c | 6108 | fi |
81ecdfbb | 6109 | ;; |
b7026657 | 6110 | |
81ecdfbb RW |
6111 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
6112 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
6113 | ;; | |
6114 | esac | |
b7026657 | 6115 | |
b7026657 | 6116 | |
81ecdfbb | 6117 | case $ac_file$ac_mode in |
68a3e151 | 6118 | "build-config.h":C) cp config.h build-config.h ;; |
81ecdfbb | 6119 | "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;; |
c906108c | 6120 | |
b7026657 | 6121 | esac |
81ecdfbb | 6122 | done # for ac_tag |
c906108c | 6123 | |
b7026657 | 6124 | |
81ecdfbb | 6125 | as_fn_exit 0 |
b7026657 | 6126 | _ACEOF |
b7026657 AC |
6127 | ac_clean_files=$ac_clean_files_save |
6128 | ||
81ecdfbb | 6129 | test $ac_write_fail = 0 || |
d0ac1c44 | 6130 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 6131 | |
b7026657 AC |
6132 | |
6133 | # configure is writing to config.log, and then calls config.status. | |
6134 | # config.status does its own redirection, appending to config.log. | |
6135 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
6136 | # by configure, so config.status won't be able to write to it; its | |
6137 | # output is simply discarded. So we exec the FD to /dev/null, | |
6138 | # effectively closing config.log, so it can be properly (re)opened and | |
6139 | # appended to by config.status. When coming back to configure, we | |
6140 | # need to make the FD available again. | |
6141 | if test "$no_create" != yes; then | |
6142 | ac_cs_success=: | |
6143 | ac_config_status_args= | |
6144 | test "$silent" = yes && | |
6145 | ac_config_status_args="$ac_config_status_args --quiet" | |
6146 | exec 5>/dev/null | |
6147 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
6148 | exec 5>>config.log | |
6149 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
6150 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 6151 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
6152 | fi |
6153 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
6154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
6155 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
b7026657 | 6156 | fi |
c906108c | 6157 |