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