]>
Commit | Line | Data |
---|---|---|
ef016f83 MF |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
d0ac1c44 SM |
3 | # Generated by GNU Autoconf 2.69. |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
ef016f83 | 7 | # |
ef016f83 MF |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
ef016f83 MF |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
ef016f83 MF |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
ef016f83 MF |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
d3562f83 | 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
ef016f83 MF |
199 | if (eval "$as_required") 2>/dev/null; then : |
200 | as_have_required=yes | |
201 | else | |
202 | as_have_required=no | |
203 | fi | |
204 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
205 | ||
206 | else | |
207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
208 | as_found=false | |
209 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
210 | do | |
211 | IFS=$as_save_IFS | |
212 | test -z "$as_dir" && as_dir=. | |
213 | as_found=: | |
214 | case $as_dir in #( | |
215 | /*) | |
216 | for as_base in sh bash ksh sh5; do | |
217 | # Try only shells that exist, to save several forks. | |
218 | as_shell=$as_dir/$as_base | |
219 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
220 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
221 | CONFIG_SHELL=$as_shell as_have_required=yes | |
222 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
223 | break 2 | |
224 | fi | |
225 | fi | |
226 | done;; | |
227 | esac | |
228 | as_found=false | |
229 | done | |
230 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$SHELL as_have_required=yes | |
233 | fi; } | |
234 | IFS=$as_save_IFS | |
235 | ||
236 | ||
237 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
238 | export CONFIG_SHELL |
239 | # We cannot yet assume a decent shell, so we have to provide a | |
240 | # neutralization value for shells without unset; and this also | |
241 | # works around shells that cannot unset nonexistent variables. | |
242 | # Preserve -v and -x to the replacement shell. | |
243 | BASH_ENV=/dev/null | |
244 | ENV=/dev/null | |
245 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
246 | case $- in # (((( | |
247 | *v*x* | *x*v* ) as_opts=-vx ;; | |
248 | *v* ) as_opts=-v ;; | |
249 | *x* ) as_opts=-x ;; | |
250 | * ) as_opts= ;; | |
251 | esac | |
252 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
253 | # Admittedly, this is quite paranoid, since all the known shells bail | |
254 | # out after a failed `exec'. | |
255 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
256 | exit 255 | |
ef016f83 MF |
257 | fi |
258 | ||
259 | if test x$as_have_required = xno; then : | |
260 | $as_echo "$0: This script requires a shell more modern than all" | |
261 | $as_echo "$0: the shells that I found on your system." | |
262 | if test x${ZSH_VERSION+set} = xset ; then | |
263 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
264 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
265 | else | |
266 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
267 | $0: including any error possibly output before this | |
268 | $0: message. Then install a modern shell, or manually run | |
269 | $0: the script under such a shell if you do have one." | |
270 | fi | |
271 | exit 1 | |
272 | fi | |
273 | fi | |
274 | fi | |
275 | SHELL=${CONFIG_SHELL-/bin/sh} | |
276 | export SHELL | |
277 | # Unset more variables known to interfere with behavior of common tools. | |
278 | CLICOLOR_FORCE= GREP_OPTIONS= | |
279 | unset CLICOLOR_FORCE GREP_OPTIONS | |
280 | ||
281 | ## --------------------- ## | |
282 | ## M4sh Shell Functions. ## | |
283 | ## --------------------- ## | |
284 | # as_fn_unset VAR | |
285 | # --------------- | |
286 | # Portably unset VAR. | |
287 | as_fn_unset () | |
288 | { | |
289 | { eval $1=; unset $1;} | |
290 | } | |
291 | as_unset=as_fn_unset | |
292 | ||
293 | # as_fn_set_status STATUS | |
294 | # ----------------------- | |
295 | # Set $? to STATUS, without forking. | |
296 | as_fn_set_status () | |
297 | { | |
298 | return $1 | |
299 | } # as_fn_set_status | |
300 | ||
301 | # as_fn_exit STATUS | |
302 | # ----------------- | |
303 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
304 | as_fn_exit () | |
305 | { | |
306 | set +e | |
307 | as_fn_set_status $1 | |
308 | exit $1 | |
309 | } # as_fn_exit | |
310 | ||
311 | # as_fn_mkdir_p | |
312 | # ------------- | |
313 | # Create "$as_dir" as a directory, including parents if necessary. | |
314 | as_fn_mkdir_p () | |
315 | { | |
316 | ||
317 | case $as_dir in #( | |
318 | -*) as_dir=./$as_dir;; | |
319 | esac | |
320 | test -d "$as_dir" || eval $as_mkdir_p || { | |
321 | as_dirs= | |
322 | while :; do | |
323 | case $as_dir in #( | |
324 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
325 | *) as_qdir=$as_dir;; | |
326 | esac | |
327 | as_dirs="'$as_qdir' $as_dirs" | |
328 | as_dir=`$as_dirname -- "$as_dir" || | |
329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
330 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
331 | X"$as_dir" : 'X\(//\)$' \| \ | |
332 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
333 | $as_echo X"$as_dir" | | |
334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
335 | s//\1/ | |
336 | q | |
337 | } | |
338 | /^X\(\/\/\)[^/].*/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)$/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\).*/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | s/.*/./; q'` | |
351 | test -d "$as_dir" && break | |
352 | done | |
353 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 354 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
ef016f83 MF |
355 | |
356 | ||
357 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
358 | |
359 | # as_fn_executable_p FILE | |
360 | # ----------------------- | |
361 | # Test if FILE is an executable regular file. | |
362 | as_fn_executable_p () | |
363 | { | |
364 | test -f "$1" && test -x "$1" | |
365 | } # as_fn_executable_p | |
ef016f83 MF |
366 | # as_fn_append VAR VALUE |
367 | # ---------------------- | |
368 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
369 | # advantage of any shell optimizations that allow amortized linear growth over | |
370 | # repeated appends, instead of the typical quadratic growth present in naive | |
371 | # implementations. | |
372 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
373 | eval 'as_fn_append () | |
374 | { | |
375 | eval $1+=\$2 | |
376 | }' | |
377 | else | |
378 | as_fn_append () | |
379 | { | |
380 | eval $1=\$$1\$2 | |
381 | } | |
382 | fi # as_fn_append | |
383 | ||
384 | # as_fn_arith ARG... | |
385 | # ------------------ | |
386 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
387 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
388 | # must be portable across $(()) and expr. | |
389 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
390 | eval 'as_fn_arith () | |
391 | { | |
392 | as_val=$(( $* )) | |
393 | }' | |
394 | else | |
395 | as_fn_arith () | |
396 | { | |
397 | as_val=`expr "$@" || test $? -eq 1` | |
398 | } | |
399 | fi # as_fn_arith | |
400 | ||
401 | ||
d0ac1c44 SM |
402 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
403 | # ---------------------------------------- | |
ef016f83 MF |
404 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
405 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 406 | # script with STATUS, using 1 if that was 0. |
ef016f83 MF |
407 | as_fn_error () |
408 | { | |
d0ac1c44 SM |
409 | as_status=$1; test $as_status -eq 0 && as_status=1 |
410 | if test "$4"; then | |
411 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
412 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
ef016f83 | 413 | fi |
d0ac1c44 | 414 | $as_echo "$as_me: error: $2" >&2 |
ef016f83 MF |
415 | as_fn_exit $as_status |
416 | } # as_fn_error | |
417 | ||
418 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
419 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
420 | as_expr=expr | |
421 | else | |
422 | as_expr=false | |
423 | fi | |
424 | ||
425 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
426 | as_basename=basename | |
427 | else | |
428 | as_basename=false | |
429 | fi | |
430 | ||
431 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
432 | as_dirname=dirname | |
433 | else | |
434 | as_dirname=false | |
435 | fi | |
436 | ||
437 | as_me=`$as_basename -- "$0" || | |
438 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
439 | X"$0" : 'X\(//\)$' \| \ | |
440 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
441 | $as_echo X/"$0" | | |
442 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
443 | s//\1/ | |
444 | q | |
445 | } | |
446 | /^X\/\(\/\/\)$/{ | |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\).*/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | s/.*/./; q'` | |
455 | ||
456 | # Avoid depending upon Character Ranges. | |
457 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
458 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
459 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
460 | as_cr_digits='0123456789' | |
461 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
462 | ||
463 | ||
464 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
465 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
466 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
467 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
468 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
469 | sed -n ' | |
470 | p | |
471 | /[$]LINENO/= | |
472 | ' <$as_myself | | |
473 | sed ' | |
474 | s/[$]LINENO.*/&-/ | |
475 | t lineno | |
476 | b | |
477 | :lineno | |
478 | N | |
479 | :loop | |
480 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
481 | t loop | |
482 | s/-\n.*// | |
483 | ' >$as_me.lineno && | |
484 | chmod +x "$as_me.lineno" || | |
485 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
486 | ||
d0ac1c44 SM |
487 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
488 | # already done that, so ensure we don't try to do so again and fall | |
489 | # in an infinite loop. This has already happened in practice. | |
490 | _as_can_reexec=no; export _as_can_reexec | |
ef016f83 MF |
491 | # Don't try to exec as it changes $[0], causing all sort of problems |
492 | # (the dirname of $[0] is not the place where we might find the | |
493 | # original and so on. Autoconf is especially sensitive to this). | |
494 | . "./$as_me.lineno" | |
495 | # Exit status is that of the last command. | |
496 | exit | |
497 | } | |
498 | ||
499 | ECHO_C= ECHO_N= ECHO_T= | |
500 | case `echo -n x` in #((((( | |
501 | -n*) | |
502 | case `echo 'xy\c'` in | |
503 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
504 | xy) ECHO_C='\c';; | |
505 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
506 | ECHO_T=' ';; | |
507 | esac;; | |
508 | *) | |
509 | ECHO_N='-n';; | |
510 | esac | |
511 | ||
512 | rm -f conf$$ conf$$.exe conf$$.file | |
513 | if test -d conf$$.dir; then | |
514 | rm -f conf$$.dir/conf$$.file | |
515 | else | |
516 | rm -f conf$$.dir | |
517 | mkdir conf$$.dir 2>/dev/null | |
518 | fi | |
519 | if (echo >conf$$.file) 2>/dev/null; then | |
520 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
521 | as_ln_s='ln -s' | |
522 | # ... but there are two gotchas: | |
523 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
524 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 525 | # In both cases, we have to default to `cp -pR'. |
ef016f83 | 526 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 527 | as_ln_s='cp -pR' |
ef016f83 MF |
528 | elif ln conf$$.file conf$$ 2>/dev/null; then |
529 | as_ln_s=ln | |
530 | else | |
d0ac1c44 | 531 | as_ln_s='cp -pR' |
ef016f83 MF |
532 | fi |
533 | else | |
d0ac1c44 | 534 | as_ln_s='cp -pR' |
ef016f83 MF |
535 | fi |
536 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
537 | rmdir conf$$.dir 2>/dev/null | |
538 | ||
539 | if mkdir -p . 2>/dev/null; then | |
540 | as_mkdir_p='mkdir -p "$as_dir"' | |
541 | else | |
542 | test -d ./-p && rmdir ./-p | |
543 | as_mkdir_p=false | |
544 | fi | |
545 | ||
d0ac1c44 SM |
546 | as_test_x='test -x' |
547 | as_executable_p=as_fn_executable_p | |
ef016f83 MF |
548 | |
549 | # Sed expression to map a string onto a valid CPP name. | |
550 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | # Sed expression to map a string onto a valid variable name. | |
553 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
554 | ||
555 | ||
d0ac1c44 SM |
556 | test -n "$DJDIR" || exec 7<&0 </dev/null |
557 | exec 6>&1 | |
ef016f83 MF |
558 | |
559 | # Name of the host. | |
d0ac1c44 | 560 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
ef016f83 MF |
561 | # so uname gets run too. |
562 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
563 | ||
564 | # | |
565 | # Initializations. | |
566 | # | |
567 | ac_default_prefix=/usr/local | |
568 | ac_clean_files= | |
569 | ac_config_libobj_dir=. | |
570 | LIBOBJS= | |
571 | cross_compiling=no | |
572 | subdirs= | |
573 | MFLAGS= | |
574 | MAKEFLAGS= | |
575 | ||
576 | # Identity of this package. | |
577 | PACKAGE_NAME= | |
578 | PACKAGE_TARNAME= | |
579 | PACKAGE_VERSION= | |
580 | PACKAGE_STRING= | |
581 | PACKAGE_BUGREPORT= | |
582 | PACKAGE_URL= | |
583 | ||
584 | ac_unique_file="Makefile.in" | |
ef016f83 MF |
585 | ac_subst_vars='LTLIBOBJS |
586 | LIBOBJS | |
760b3e8b MF |
587 | sim_reserved_bits |
588 | sim_scache | |
589 | sim_float | |
590 | sim_bitsize | |
ef016f83 | 591 | cgen_breaks |
bc56166f MF |
592 | OBJEXT |
593 | EXEEXT | |
594 | ac_ct_CC | |
595 | CPPFLAGS | |
596 | LDFLAGS | |
597 | CFLAGS | |
598 | CC | |
ef016f83 MF |
599 | SDL_LIBS |
600 | SDL_CFLAGS | |
5798d69f SM |
601 | PKG_CONFIG_LIBDIR |
602 | PKG_CONFIG_PATH | |
603 | PKG_CONFIG | |
ef016f83 MF |
604 | target_alias |
605 | host_alias | |
606 | build_alias | |
607 | LIBS | |
608 | ECHO_T | |
609 | ECHO_N | |
610 | ECHO_C | |
611 | DEFS | |
612 | mandir | |
613 | localedir | |
614 | libdir | |
615 | psdir | |
616 | pdfdir | |
617 | dvidir | |
618 | htmldir | |
619 | infodir | |
620 | docdir | |
621 | oldincludedir | |
622 | includedir | |
623 | localstatedir | |
624 | sharedstatedir | |
625 | sysconfdir | |
626 | datadir | |
627 | datarootdir | |
628 | libexecdir | |
629 | sbindir | |
630 | bindir | |
631 | program_transform_name | |
632 | prefix | |
633 | exec_prefix | |
634 | PACKAGE_URL | |
635 | PACKAGE_BUGREPORT | |
636 | PACKAGE_STRING | |
637 | PACKAGE_VERSION | |
638 | PACKAGE_TARNAME | |
639 | PACKAGE_NAME | |
640 | PATH_SEPARATOR | |
136da8cd | 641 | SHELL |
136da8cd MF |
642 | sim_hw |
643 | sim_hw_objs | |
644 | sim_hw_cflags | |
ba307cdd | 645 | sim_default_model' |
ef016f83 MF |
646 | ac_subst_files='' |
647 | ac_user_opts=' | |
648 | enable_option_checking | |
ef016f83 | 649 | enable_sim_default_model |
82e6d6bf | 650 | enable_sim_hardware |
ef016f83 MF |
651 | ' |
652 | ac_precious_vars='build_alias | |
653 | host_alias | |
654 | target_alias | |
5798d69f SM |
655 | PKG_CONFIG |
656 | PKG_CONFIG_PATH | |
657 | PKG_CONFIG_LIBDIR | |
658 | SDL_CFLAGS | |
bc56166f MF |
659 | SDL_LIBS |
660 | CC | |
661 | CFLAGS | |
662 | LDFLAGS | |
663 | LIBS | |
664 | CPPFLAGS' | |
ef016f83 MF |
665 | |
666 | ||
667 | # Initialize some variables set by options. | |
668 | ac_init_help= | |
669 | ac_init_version=false | |
670 | ac_unrecognized_opts= | |
671 | ac_unrecognized_sep= | |
672 | # The variables have the same names as the options, with | |
673 | # dashes changed to underlines. | |
674 | cache_file=/dev/null | |
675 | exec_prefix=NONE | |
676 | no_create= | |
677 | no_recursion= | |
678 | prefix=NONE | |
679 | program_prefix=NONE | |
680 | program_suffix=NONE | |
681 | program_transform_name=s,x,x, | |
682 | silent= | |
683 | site= | |
684 | srcdir= | |
685 | verbose= | |
686 | x_includes=NONE | |
687 | x_libraries=NONE | |
688 | ||
689 | # Installation directory options. | |
690 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
691 | # and all the variables that are supposed to be based on exec_prefix | |
692 | # by default will actually change. | |
693 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
694 | # (The list follows the same order as the GNU Coding Standards.) | |
695 | bindir='${exec_prefix}/bin' | |
696 | sbindir='${exec_prefix}/sbin' | |
697 | libexecdir='${exec_prefix}/libexec' | |
698 | datarootdir='${prefix}/share' | |
699 | datadir='${datarootdir}' | |
700 | sysconfdir='${prefix}/etc' | |
701 | sharedstatedir='${prefix}/com' | |
702 | localstatedir='${prefix}/var' | |
703 | includedir='${prefix}/include' | |
704 | oldincludedir='/usr/include' | |
705 | docdir='${datarootdir}/doc/${PACKAGE}' | |
706 | infodir='${datarootdir}/info' | |
707 | htmldir='${docdir}' | |
708 | dvidir='${docdir}' | |
709 | pdfdir='${docdir}' | |
710 | psdir='${docdir}' | |
711 | libdir='${exec_prefix}/lib' | |
712 | localedir='${datarootdir}/locale' | |
713 | mandir='${datarootdir}/man' | |
714 | ||
715 | ac_prev= | |
716 | ac_dashdash= | |
717 | for ac_option | |
718 | do | |
719 | # If the previous option needs an argument, assign it. | |
720 | if test -n "$ac_prev"; then | |
721 | eval $ac_prev=\$ac_option | |
722 | ac_prev= | |
723 | continue | |
724 | fi | |
725 | ||
726 | case $ac_option in | |
d0ac1c44 SM |
727 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
728 | *=) ac_optarg= ;; | |
729 | *) ac_optarg=yes ;; | |
ef016f83 MF |
730 | esac |
731 | ||
732 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
733 | ||
734 | case $ac_dashdash$ac_option in | |
735 | --) | |
736 | ac_dashdash=yes ;; | |
737 | ||
738 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
739 | ac_prev=bindir ;; | |
740 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
741 | bindir=$ac_optarg ;; | |
742 | ||
743 | -build | --build | --buil | --bui | --bu) | |
744 | ac_prev=build_alias ;; | |
745 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
746 | build_alias=$ac_optarg ;; | |
747 | ||
748 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
749 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
750 | ac_prev=cache_file ;; | |
751 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
752 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
753 | cache_file=$ac_optarg ;; | |
754 | ||
755 | --config-cache | -C) | |
756 | cache_file=config.cache ;; | |
757 | ||
758 | -datadir | --datadir | --datadi | --datad) | |
759 | ac_prev=datadir ;; | |
760 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
761 | datadir=$ac_optarg ;; | |
762 | ||
763 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
764 | | --dataroo | --dataro | --datar) | |
765 | ac_prev=datarootdir ;; | |
766 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
767 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
768 | datarootdir=$ac_optarg ;; | |
769 | ||
770 | -disable-* | --disable-*) | |
771 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
772 | # Reject names that are not valid shell variable names. | |
773 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 774 | as_fn_error $? "invalid feature name: $ac_useropt" |
ef016f83 MF |
775 | ac_useropt_orig=$ac_useropt |
776 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
777 | case $ac_user_opts in | |
778 | *" | |
779 | "enable_$ac_useropt" | |
780 | "*) ;; | |
781 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
782 | ac_unrecognized_sep=', ';; | |
783 | esac | |
784 | eval enable_$ac_useropt=no ;; | |
785 | ||
786 | -docdir | --docdir | --docdi | --doc | --do) | |
787 | ac_prev=docdir ;; | |
788 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
789 | docdir=$ac_optarg ;; | |
790 | ||
791 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
792 | ac_prev=dvidir ;; | |
793 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
794 | dvidir=$ac_optarg ;; | |
795 | ||
796 | -enable-* | --enable-*) | |
797 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
798 | # Reject names that are not valid shell variable names. | |
799 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 800 | as_fn_error $? "invalid feature name: $ac_useropt" |
ef016f83 MF |
801 | ac_useropt_orig=$ac_useropt |
802 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
803 | case $ac_user_opts in | |
804 | *" | |
805 | "enable_$ac_useropt" | |
806 | "*) ;; | |
807 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
808 | ac_unrecognized_sep=', ';; | |
809 | esac | |
810 | eval enable_$ac_useropt=\$ac_optarg ;; | |
811 | ||
812 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
813 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
814 | | --exec | --exe | --ex) | |
815 | ac_prev=exec_prefix ;; | |
816 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
817 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
818 | | --exec=* | --exe=* | --ex=*) | |
819 | exec_prefix=$ac_optarg ;; | |
820 | ||
821 | -gas | --gas | --ga | --g) | |
822 | # Obsolete; use --with-gas. | |
823 | with_gas=yes ;; | |
824 | ||
825 | -help | --help | --hel | --he | -h) | |
826 | ac_init_help=long ;; | |
827 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
828 | ac_init_help=recursive ;; | |
829 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
830 | ac_init_help=short ;; | |
831 | ||
832 | -host | --host | --hos | --ho) | |
833 | ac_prev=host_alias ;; | |
834 | -host=* | --host=* | --hos=* | --ho=*) | |
835 | host_alias=$ac_optarg ;; | |
836 | ||
837 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
838 | ac_prev=htmldir ;; | |
839 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
840 | | --ht=*) | |
841 | htmldir=$ac_optarg ;; | |
842 | ||
843 | -includedir | --includedir | --includedi | --included | --include \ | |
844 | | --includ | --inclu | --incl | --inc) | |
845 | ac_prev=includedir ;; | |
846 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
847 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
848 | includedir=$ac_optarg ;; | |
849 | ||
850 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
851 | ac_prev=infodir ;; | |
852 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
853 | infodir=$ac_optarg ;; | |
854 | ||
855 | -libdir | --libdir | --libdi | --libd) | |
856 | ac_prev=libdir ;; | |
857 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
858 | libdir=$ac_optarg ;; | |
859 | ||
860 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
861 | | --libexe | --libex | --libe) | |
862 | ac_prev=libexecdir ;; | |
863 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
864 | | --libexe=* | --libex=* | --libe=*) | |
865 | libexecdir=$ac_optarg ;; | |
866 | ||
867 | -localedir | --localedir | --localedi | --localed | --locale) | |
868 | ac_prev=localedir ;; | |
869 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
870 | localedir=$ac_optarg ;; | |
871 | ||
872 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
873 | | --localstate | --localstat | --localsta | --localst | --locals) | |
874 | ac_prev=localstatedir ;; | |
875 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
876 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
877 | localstatedir=$ac_optarg ;; | |
878 | ||
879 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
880 | ac_prev=mandir ;; | |
881 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
882 | mandir=$ac_optarg ;; | |
883 | ||
884 | -nfp | --nfp | --nf) | |
885 | # Obsolete; use --without-fp. | |
886 | with_fp=no ;; | |
887 | ||
888 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
889 | | --no-cr | --no-c | -n) | |
890 | no_create=yes ;; | |
891 | ||
892 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
893 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
894 | no_recursion=yes ;; | |
895 | ||
896 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
897 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
898 | | --oldin | --oldi | --old | --ol | --o) | |
899 | ac_prev=oldincludedir ;; | |
900 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
901 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
902 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
903 | oldincludedir=$ac_optarg ;; | |
904 | ||
905 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
906 | ac_prev=prefix ;; | |
907 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
908 | prefix=$ac_optarg ;; | |
909 | ||
910 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
911 | | --program-pre | --program-pr | --program-p) | |
912 | ac_prev=program_prefix ;; | |
913 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
914 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
915 | program_prefix=$ac_optarg ;; | |
916 | ||
917 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
918 | | --program-suf | --program-su | --program-s) | |
919 | ac_prev=program_suffix ;; | |
920 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
921 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
922 | program_suffix=$ac_optarg ;; | |
923 | ||
924 | -program-transform-name | --program-transform-name \ | |
925 | | --program-transform-nam | --program-transform-na \ | |
926 | | --program-transform-n | --program-transform- \ | |
927 | | --program-transform | --program-transfor \ | |
928 | | --program-transfo | --program-transf \ | |
929 | | --program-trans | --program-tran \ | |
930 | | --progr-tra | --program-tr | --program-t) | |
931 | ac_prev=program_transform_name ;; | |
932 | -program-transform-name=* | --program-transform-name=* \ | |
933 | | --program-transform-nam=* | --program-transform-na=* \ | |
934 | | --program-transform-n=* | --program-transform-=* \ | |
935 | | --program-transform=* | --program-transfor=* \ | |
936 | | --program-transfo=* | --program-transf=* \ | |
937 | | --program-trans=* | --program-tran=* \ | |
938 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
939 | program_transform_name=$ac_optarg ;; | |
940 | ||
941 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
942 | ac_prev=pdfdir ;; | |
943 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
944 | pdfdir=$ac_optarg ;; | |
945 | ||
946 | -psdir | --psdir | --psdi | --psd | --ps) | |
947 | ac_prev=psdir ;; | |
948 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
949 | psdir=$ac_optarg ;; | |
950 | ||
951 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
952 | | -silent | --silent | --silen | --sile | --sil) | |
953 | silent=yes ;; | |
954 | ||
955 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
956 | ac_prev=sbindir ;; | |
957 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
958 | | --sbi=* | --sb=*) | |
959 | sbindir=$ac_optarg ;; | |
960 | ||
961 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
962 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
963 | | --sharedst | --shareds | --shared | --share | --shar \ | |
964 | | --sha | --sh) | |
965 | ac_prev=sharedstatedir ;; | |
966 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
967 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
968 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
969 | | --sha=* | --sh=*) | |
970 | sharedstatedir=$ac_optarg ;; | |
971 | ||
972 | -site | --site | --sit) | |
973 | ac_prev=site ;; | |
974 | -site=* | --site=* | --sit=*) | |
975 | site=$ac_optarg ;; | |
976 | ||
977 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
978 | ac_prev=srcdir ;; | |
979 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
980 | srcdir=$ac_optarg ;; | |
981 | ||
982 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
983 | | --syscon | --sysco | --sysc | --sys | --sy) | |
984 | ac_prev=sysconfdir ;; | |
985 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
986 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
987 | sysconfdir=$ac_optarg ;; | |
988 | ||
989 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
990 | ac_prev=target_alias ;; | |
991 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
992 | target_alias=$ac_optarg ;; | |
993 | ||
994 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
995 | verbose=yes ;; | |
996 | ||
997 | -version | --version | --versio | --versi | --vers | -V) | |
998 | ac_init_version=: ;; | |
999 | ||
1000 | -with-* | --with-*) | |
1001 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1002 | # Reject names that are not valid shell variable names. | |
1003 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 1004 | as_fn_error $? "invalid package name: $ac_useropt" |
ef016f83 MF |
1005 | ac_useropt_orig=$ac_useropt |
1006 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1007 | case $ac_user_opts in | |
1008 | *" | |
1009 | "with_$ac_useropt" | |
1010 | "*) ;; | |
1011 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1012 | ac_unrecognized_sep=', ';; | |
1013 | esac | |
1014 | eval with_$ac_useropt=\$ac_optarg ;; | |
1015 | ||
1016 | -without-* | --without-*) | |
1017 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1018 | # Reject names that are not valid shell variable names. | |
1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
d0ac1c44 | 1020 | as_fn_error $? "invalid package name: $ac_useropt" |
ef016f83 MF |
1021 | ac_useropt_orig=$ac_useropt |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "with_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
1029 | esac | |
1030 | eval with_$ac_useropt=no ;; | |
1031 | ||
1032 | --x) | |
1033 | # Obsolete; use --with-x. | |
1034 | with_x=yes ;; | |
1035 | ||
1036 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1037 | | --x-incl | --x-inc | --x-in | --x-i) | |
1038 | ac_prev=x_includes ;; | |
1039 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1040 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1041 | x_includes=$ac_optarg ;; | |
1042 | ||
1043 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1044 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1045 | ac_prev=x_libraries ;; | |
1046 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1047 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1048 | x_libraries=$ac_optarg ;; | |
1049 | ||
d0ac1c44 SM |
1050 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1051 | Try \`$0 --help' for more information" | |
ef016f83 MF |
1052 | ;; |
1053 | ||
1054 | *=*) | |
1055 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1056 | # Reject names that are not valid shell variable names. | |
1057 | case $ac_envvar in #( | |
1058 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1059 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
ef016f83 MF |
1060 | esac |
1061 | eval $ac_envvar=\$ac_optarg | |
1062 | export $ac_envvar ;; | |
1063 | ||
1064 | *) | |
1065 | # FIXME: should be removed in autoconf 3.0. | |
1066 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1067 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1068 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
d0ac1c44 | 1069 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
ef016f83 MF |
1070 | ;; |
1071 | ||
1072 | esac | |
1073 | done | |
1074 | ||
1075 | if test -n "$ac_prev"; then | |
1076 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
d0ac1c44 | 1077 | as_fn_error $? "missing argument to $ac_option" |
ef016f83 MF |
1078 | fi |
1079 | ||
1080 | if test -n "$ac_unrecognized_opts"; then | |
1081 | case $enable_option_checking in | |
1082 | no) ;; | |
d0ac1c44 | 1083 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
ef016f83 MF |
1084 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1085 | esac | |
1086 | fi | |
1087 | ||
1088 | # Check all directory arguments for consistency. | |
1089 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1090 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1091 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1092 | libdir localedir mandir | |
1093 | do | |
1094 | eval ac_val=\$$ac_var | |
1095 | # Remove trailing slashes. | |
1096 | case $ac_val in | |
1097 | */ ) | |
1098 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1099 | eval $ac_var=\$ac_val;; | |
1100 | esac | |
1101 | # Be sure to have absolute directory names. | |
1102 | case $ac_val in | |
1103 | [\\/$]* | ?:[\\/]* ) continue;; | |
1104 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1105 | esac | |
d0ac1c44 | 1106 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
ef016f83 MF |
1107 | done |
1108 | ||
1109 | # There might be people who depend on the old broken behavior: `$host' | |
1110 | # used to hold the argument of --host etc. | |
1111 | # FIXME: To remove some day. | |
1112 | build=$build_alias | |
1113 | host=$host_alias | |
1114 | target=$target_alias | |
1115 | ||
1116 | # FIXME: To remove some day. | |
1117 | if test "x$host_alias" != x; then | |
1118 | if test "x$build_alias" = x; then | |
1119 | cross_compiling=maybe | |
ef016f83 MF |
1120 | elif test "x$build_alias" != "x$host_alias"; then |
1121 | cross_compiling=yes | |
1122 | fi | |
1123 | fi | |
1124 | ||
1125 | ac_tool_prefix= | |
1126 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1127 | ||
1128 | test "$silent" = yes && exec 6>/dev/null | |
1129 | ||
1130 | ||
1131 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1132 | ac_ls_di=`ls -di .` && | |
1133 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1134 | as_fn_error $? "working directory cannot be determined" |
ef016f83 | 1135 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1136 | as_fn_error $? "pwd does not report name of working directory" |
ef016f83 MF |
1137 | |
1138 | ||
1139 | # Find the source files, if location was not specified. | |
1140 | if test -z "$srcdir"; then | |
1141 | ac_srcdir_defaulted=yes | |
1142 | # Try the directory containing this script, then the parent directory. | |
1143 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1144 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1145 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1146 | X"$as_myself" : 'X\(//\)$' \| \ | |
1147 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1148 | $as_echo X"$as_myself" | | |
1149 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1150 | s//\1/ | |
1151 | q | |
1152 | } | |
1153 | /^X\(\/\/\)[^/].*/{ | |
1154 | s//\1/ | |
1155 | q | |
1156 | } | |
1157 | /^X\(\/\/\)$/{ | |
1158 | s//\1/ | |
1159 | q | |
1160 | } | |
1161 | /^X\(\/\).*/{ | |
1162 | s//\1/ | |
1163 | q | |
1164 | } | |
1165 | s/.*/./; q'` | |
1166 | srcdir=$ac_confdir | |
1167 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1168 | srcdir=.. | |
1169 | fi | |
1170 | else | |
1171 | ac_srcdir_defaulted=no | |
1172 | fi | |
1173 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1174 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1175 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
ef016f83 MF |
1176 | fi |
1177 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1178 | ac_abs_confdir=`( | |
d0ac1c44 | 1179 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
ef016f83 MF |
1180 | pwd)` |
1181 | # When building in place, set srcdir=. | |
1182 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1183 | srcdir=. | |
1184 | fi | |
1185 | # Remove unnecessary trailing slashes from srcdir. | |
1186 | # Double slashes in file names in object file debugging info | |
1187 | # mess up M-x gdb in Emacs. | |
1188 | case $srcdir in | |
1189 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1190 | esac | |
1191 | for ac_var in $ac_precious_vars; do | |
1192 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1193 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1194 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1195 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1196 | done | |
1197 | ||
1198 | # | |
1199 | # Report the --help message. | |
1200 | # | |
1201 | if test "$ac_init_help" = "long"; then | |
1202 | # Omit some internal or obsolete options to make the list less imposing. | |
1203 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1204 | cat <<_ACEOF | |
1205 | \`configure' configures this package to adapt to many kinds of systems. | |
1206 | ||
1207 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1208 | ||
1209 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1210 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1211 | ||
1212 | Defaults for the options are specified in brackets. | |
1213 | ||
1214 | Configuration: | |
1215 | -h, --help display this help and exit | |
1216 | --help=short display options specific to this package | |
1217 | --help=recursive display the short help of all the included packages | |
1218 | -V, --version display version information and exit | |
d0ac1c44 | 1219 | -q, --quiet, --silent do not print \`checking ...' messages |
ef016f83 MF |
1220 | --cache-file=FILE cache test results in FILE [disabled] |
1221 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1222 | -n, --no-create do not create output files | |
1223 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1224 | ||
1225 | Installation directories: | |
1226 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1227 | [$ac_default_prefix] | |
1228 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1229 | [PREFIX] | |
1230 | ||
1231 | By default, \`make install' will install all the files in | |
1232 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1233 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1234 | for instance \`--prefix=\$HOME'. | |
1235 | ||
1236 | For better control, use the options below. | |
1237 | ||
1238 | Fine tuning of the installation directories: | |
1239 | --bindir=DIR user executables [EPREFIX/bin] | |
1240 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1241 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1242 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1243 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1244 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1245 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1246 | --includedir=DIR C header files [PREFIX/include] | |
1247 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1248 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1249 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1250 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1251 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1252 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1253 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1254 | --htmldir=DIR html documentation [DOCDIR] | |
1255 | --dvidir=DIR dvi documentation [DOCDIR] | |
1256 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1257 | --psdir=DIR ps documentation [DOCDIR] | |
1258 | _ACEOF | |
1259 | ||
1260 | cat <<\_ACEOF | |
ef016f83 MF |
1261 | _ACEOF |
1262 | fi | |
1263 | ||
1264 | if test -n "$ac_init_help"; then | |
1265 | ||
1266 | cat <<\_ACEOF | |
1267 | ||
1268 | Optional Features: | |
1269 | --disable-option-checking ignore unrecognized --enable/--with options | |
1270 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1271 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
8d0978fb MF |
1272 | --enable-sim-default-model=model |
1273 | Specify default model to simulate | |
82e6d6bf MF |
1274 | --enable-sim-hardware=LIST |
1275 | Specify the hardware to be included in the build. | |
ef016f83 | 1276 | |
ef016f83 | 1277 | Some influential environment variables: |
5798d69f SM |
1278 | PKG_CONFIG path to pkg-config utility |
1279 | PKG_CONFIG_PATH | |
1280 | directories to add to pkg-config's search path | |
1281 | PKG_CONFIG_LIBDIR | |
1282 | path overriding pkg-config's built-in search path | |
1283 | SDL_CFLAGS C compiler flags for SDL, overriding pkg-config | |
1284 | SDL_LIBS linker flags for SDL, overriding pkg-config | |
bc56166f MF |
1285 | CC C compiler command |
1286 | CFLAGS C compiler flags | |
1287 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1288 | nonstandard directory <lib dir> | |
1289 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1290 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1291 | you have headers in a nonstandard directory <include dir> | |
ef016f83 MF |
1292 | |
1293 | Use these variables to override the choices made by `configure' or to help | |
1294 | it to find libraries and programs with nonstandard names/locations. | |
1295 | ||
1296 | Report bugs to the package provider. | |
1297 | _ACEOF | |
1298 | ac_status=$? | |
1299 | fi | |
1300 | ||
1301 | if test "$ac_init_help" = "recursive"; then | |
1302 | # If there are subdirs, report their specific --help. | |
1303 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1304 | test -d "$ac_dir" || | |
1305 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1306 | continue | |
1307 | ac_builddir=. | |
1308 | ||
1309 | case "$ac_dir" in | |
1310 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1311 | *) | |
1312 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1313 | # A ".." for each directory in $ac_dir_suffix. | |
1314 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1315 | case $ac_top_builddir_sub in | |
1316 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1317 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1318 | esac ;; | |
1319 | esac | |
1320 | ac_abs_top_builddir=$ac_pwd | |
1321 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1322 | # for backward compatibility: | |
1323 | ac_top_builddir=$ac_top_build_prefix | |
1324 | ||
1325 | case $srcdir in | |
1326 | .) # We are building in place. | |
1327 | ac_srcdir=. | |
1328 | ac_top_srcdir=$ac_top_builddir_sub | |
1329 | ac_abs_top_srcdir=$ac_pwd ;; | |
1330 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1331 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1332 | ac_top_srcdir=$srcdir | |
1333 | ac_abs_top_srcdir=$srcdir ;; | |
1334 | *) # Relative name. | |
1335 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1336 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1337 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1338 | esac | |
1339 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1340 | ||
1341 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1342 | # Check for guested configure. | |
1343 | if test -f "$ac_srcdir/configure.gnu"; then | |
1344 | echo && | |
1345 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1346 | elif test -f "$ac_srcdir/configure"; then | |
1347 | echo && | |
1348 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1349 | else | |
1350 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1351 | fi || ac_status=$? | |
1352 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1353 | done | |
1354 | fi | |
1355 | ||
1356 | test -n "$ac_init_help" && exit $ac_status | |
1357 | if $ac_init_version; then | |
1358 | cat <<\_ACEOF | |
1359 | configure | |
d0ac1c44 | 1360 | generated by GNU Autoconf 2.69 |
ef016f83 | 1361 | |
d0ac1c44 | 1362 | Copyright (C) 2012 Free Software Foundation, Inc. |
ef016f83 MF |
1363 | This configure script is free software; the Free Software Foundation |
1364 | gives unlimited permission to copy, distribute and modify it. | |
1365 | _ACEOF | |
1366 | exit | |
1367 | fi | |
1368 | ||
1369 | ## ------------------------ ## | |
1370 | ## Autoconf initialization. ## | |
1371 | ## ------------------------ ## | |
1372 | ||
1373 | # ac_fn_c_try_compile LINENO | |
1374 | # -------------------------- | |
1375 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1376 | ac_fn_c_try_compile () | |
1377 | { | |
1378 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1379 | rm -f conftest.$ac_objext | |
1380 | if { { ac_try="$ac_compile" | |
1381 | case "(($ac_try" in | |
1382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1383 | *) ac_try_echo=$ac_try;; | |
1384 | esac | |
1385 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1386 | $as_echo "$ac_try_echo"; } >&5 | |
1387 | (eval "$ac_compile") 2>conftest.err | |
1388 | ac_status=$? | |
1389 | if test -s conftest.err; then | |
1390 | grep -v '^ *+' conftest.err >conftest.er1 | |
1391 | cat conftest.er1 >&5 | |
1392 | mv -f conftest.er1 conftest.err | |
1393 | fi | |
1394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1395 | test $ac_status = 0; } && { | |
1396 | test -z "$ac_c_werror_flag" || | |
1397 | test ! -s conftest.err | |
1398 | } && test -s conftest.$ac_objext; then : | |
1399 | ac_retval=0 | |
1400 | else | |
1401 | $as_echo "$as_me: failed program was:" >&5 | |
1402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1403 | ||
1404 | ac_retval=1 | |
1405 | fi | |
d0ac1c44 SM |
1406 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1407 | as_fn_set_status $ac_retval | |
ef016f83 MF |
1408 | |
1409 | } # ac_fn_c_try_compile | |
1410 | ||
ef016f83 MF |
1411 | # ac_fn_c_try_link LINENO |
1412 | # ----------------------- | |
1413 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1414 | ac_fn_c_try_link () | |
1415 | { | |
1416 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1418 | if { { ac_try="$ac_link" | |
1419 | case "(($ac_try" in | |
1420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1421 | *) ac_try_echo=$ac_try;; | |
1422 | esac | |
1423 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1424 | $as_echo "$ac_try_echo"; } >&5 | |
1425 | (eval "$ac_link") 2>conftest.err | |
1426 | ac_status=$? | |
1427 | if test -s conftest.err; then | |
1428 | grep -v '^ *+' conftest.err >conftest.er1 | |
1429 | cat conftest.er1 >&5 | |
1430 | mv -f conftest.er1 conftest.err | |
1431 | fi | |
1432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1433 | test $ac_status = 0; } && { | |
1434 | test -z "$ac_c_werror_flag" || | |
1435 | test ! -s conftest.err | |
1436 | } && test -s conftest$ac_exeext && { | |
1437 | test "$cross_compiling" = yes || | |
d0ac1c44 | 1438 | test -x conftest$ac_exeext |
ef016f83 MF |
1439 | }; then : |
1440 | ac_retval=0 | |
1441 | else | |
1442 | $as_echo "$as_me: failed program was:" >&5 | |
1443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1444 | ||
1445 | ac_retval=1 | |
1446 | fi | |
1447 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1448 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1449 | # interfere with the next link command; also delete a directory that is | |
1450 | # left behind by Apple's compiler. We do this before executing the actions. | |
1451 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1452 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1453 | as_fn_set_status $ac_retval | |
ef016f83 MF |
1454 | |
1455 | } # ac_fn_c_try_link | |
ef016f83 MF |
1456 | cat >config.log <<_ACEOF |
1457 | This file contains any messages produced by compilers while | |
1458 | running configure, to aid debugging if configure makes a mistake. | |
1459 | ||
1460 | It was created by $as_me, which was | |
d0ac1c44 | 1461 | generated by GNU Autoconf 2.69. Invocation command line was |
ef016f83 MF |
1462 | |
1463 | $ $0 $@ | |
1464 | ||
1465 | _ACEOF | |
1466 | exec 5>>config.log | |
1467 | { | |
1468 | cat <<_ASUNAME | |
1469 | ## --------- ## | |
1470 | ## Platform. ## | |
1471 | ## --------- ## | |
1472 | ||
1473 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1474 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1475 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1476 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1477 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1478 | ||
1479 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1480 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1481 | ||
1482 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1483 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1484 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1485 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1486 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1487 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1488 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1489 | ||
1490 | _ASUNAME | |
1491 | ||
1492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1493 | for as_dir in $PATH | |
1494 | do | |
1495 | IFS=$as_save_IFS | |
1496 | test -z "$as_dir" && as_dir=. | |
1497 | $as_echo "PATH: $as_dir" | |
1498 | done | |
1499 | IFS=$as_save_IFS | |
1500 | ||
1501 | } >&5 | |
1502 | ||
1503 | cat >&5 <<_ACEOF | |
1504 | ||
1505 | ||
1506 | ## ----------- ## | |
1507 | ## Core tests. ## | |
1508 | ## ----------- ## | |
1509 | ||
1510 | _ACEOF | |
1511 | ||
1512 | ||
1513 | # Keep a trace of the command line. | |
1514 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1515 | # Strip out --silent because we don't want to record it for future runs. | |
1516 | # Also quote any args containing shell meta-characters. | |
1517 | # Make two passes to allow for proper duplicate-argument suppression. | |
1518 | ac_configure_args= | |
1519 | ac_configure_args0= | |
1520 | ac_configure_args1= | |
1521 | ac_must_keep_next=false | |
1522 | for ac_pass in 1 2 | |
1523 | do | |
1524 | for ac_arg | |
1525 | do | |
1526 | case $ac_arg in | |
1527 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1528 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1529 | | -silent | --silent | --silen | --sile | --sil) | |
1530 | continue ;; | |
1531 | *\'*) | |
1532 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1533 | esac | |
1534 | case $ac_pass in | |
1535 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1536 | 2) | |
1537 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1538 | if test $ac_must_keep_next = true; then | |
1539 | ac_must_keep_next=false # Got value, back to normal. | |
1540 | else | |
1541 | case $ac_arg in | |
1542 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1543 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1544 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1545 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1546 | case "$ac_configure_args0 " in | |
1547 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1548 | esac | |
1549 | ;; | |
1550 | -* ) ac_must_keep_next=true ;; | |
1551 | esac | |
1552 | fi | |
1553 | as_fn_append ac_configure_args " '$ac_arg'" | |
1554 | ;; | |
1555 | esac | |
1556 | done | |
1557 | done | |
1558 | { ac_configure_args0=; unset ac_configure_args0;} | |
1559 | { ac_configure_args1=; unset ac_configure_args1;} | |
1560 | ||
1561 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1562 | # config.log. We remove comments because anyway the quotes in there | |
1563 | # would cause problems or look ugly. | |
1564 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1565 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1566 | trap 'exit_status=$? | |
1567 | # Save into config.log some information that might help in debugging. | |
1568 | { | |
1569 | echo | |
1570 | ||
d0ac1c44 | 1571 | $as_echo "## ---------------- ## |
ef016f83 | 1572 | ## Cache variables. ## |
d0ac1c44 | 1573 | ## ---------------- ##" |
ef016f83 MF |
1574 | echo |
1575 | # The following way of writing the cache mishandles newlines in values, | |
1576 | ( | |
1577 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1578 | eval ac_val=\$$ac_var | |
1579 | case $ac_val in #( | |
1580 | *${as_nl}*) | |
1581 | case $ac_var in #( | |
1582 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1583 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1584 | esac | |
1585 | case $ac_var in #( | |
1586 | _ | IFS | as_nl) ;; #( | |
1587 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1588 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1589 | esac ;; | |
1590 | esac | |
1591 | done | |
1592 | (set) 2>&1 | | |
1593 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1594 | *${as_nl}ac_space=\ *) | |
1595 | sed -n \ | |
1596 | "s/'\''/'\''\\\\'\'''\''/g; | |
1597 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1598 | ;; #( | |
1599 | *) | |
1600 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1601 | ;; | |
1602 | esac | | |
1603 | sort | |
1604 | ) | |
1605 | echo | |
1606 | ||
d0ac1c44 | 1607 | $as_echo "## ----------------- ## |
ef016f83 | 1608 | ## Output variables. ## |
d0ac1c44 | 1609 | ## ----------------- ##" |
ef016f83 MF |
1610 | echo |
1611 | for ac_var in $ac_subst_vars | |
1612 | do | |
1613 | eval ac_val=\$$ac_var | |
1614 | case $ac_val in | |
1615 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1616 | esac | |
1617 | $as_echo "$ac_var='\''$ac_val'\''" | |
1618 | done | sort | |
1619 | echo | |
1620 | ||
1621 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 1622 | $as_echo "## ------------------- ## |
ef016f83 | 1623 | ## File substitutions. ## |
d0ac1c44 | 1624 | ## ------------------- ##" |
ef016f83 MF |
1625 | echo |
1626 | for ac_var in $ac_subst_files | |
1627 | do | |
1628 | eval ac_val=\$$ac_var | |
1629 | case $ac_val in | |
1630 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1631 | esac | |
1632 | $as_echo "$ac_var='\''$ac_val'\''" | |
1633 | done | sort | |
1634 | echo | |
1635 | fi | |
1636 | ||
1637 | if test -s confdefs.h; then | |
d0ac1c44 | 1638 | $as_echo "## ----------- ## |
ef016f83 | 1639 | ## confdefs.h. ## |
d0ac1c44 | 1640 | ## ----------- ##" |
ef016f83 MF |
1641 | echo |
1642 | cat confdefs.h | |
1643 | echo | |
1644 | fi | |
1645 | test "$ac_signal" != 0 && | |
1646 | $as_echo "$as_me: caught signal $ac_signal" | |
1647 | $as_echo "$as_me: exit $exit_status" | |
1648 | } >&5 | |
1649 | rm -f core *.core core.conftest.* && | |
1650 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1651 | exit $exit_status | |
1652 | ' 0 | |
1653 | for ac_signal in 1 2 13 15; do | |
1654 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
1655 | done | |
1656 | ac_signal=0 | |
1657 | ||
1658 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1659 | rm -f -r conftest* confdefs.h | |
1660 | ||
1661 | $as_echo "/* confdefs.h */" > confdefs.h | |
1662 | ||
1663 | # Predefined preprocessor variables. | |
1664 | ||
1665 | cat >>confdefs.h <<_ACEOF | |
1666 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1667 | _ACEOF | |
1668 | ||
1669 | cat >>confdefs.h <<_ACEOF | |
1670 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1671 | _ACEOF | |
1672 | ||
1673 | cat >>confdefs.h <<_ACEOF | |
1674 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1675 | _ACEOF | |
1676 | ||
1677 | cat >>confdefs.h <<_ACEOF | |
1678 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1679 | _ACEOF | |
1680 | ||
1681 | cat >>confdefs.h <<_ACEOF | |
1682 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1683 | _ACEOF | |
1684 | ||
1685 | cat >>confdefs.h <<_ACEOF | |
1686 | #define PACKAGE_URL "$PACKAGE_URL" | |
1687 | _ACEOF | |
1688 | ||
1689 | ||
1690 | # Let the site file select an alternate cache file if it wants to. | |
1691 | # Prefer an explicitly selected file to automatically selected ones. | |
1692 | ac_site_file1=NONE | |
1693 | ac_site_file2=NONE | |
1694 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
1695 | # We do not want a PATH search for config.site. |
1696 | case $CONFIG_SITE in #(( | |
1697 | -*) ac_site_file1=./$CONFIG_SITE;; | |
1698 | */*) ac_site_file1=$CONFIG_SITE;; | |
1699 | *) ac_site_file1=./$CONFIG_SITE;; | |
1700 | esac | |
ef016f83 MF |
1701 | elif test "x$prefix" != xNONE; then |
1702 | ac_site_file1=$prefix/share/config.site | |
1703 | ac_site_file2=$prefix/etc/config.site | |
1704 | else | |
1705 | ac_site_file1=$ac_default_prefix/share/config.site | |
1706 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1707 | fi | |
1708 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1709 | do | |
1710 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 1711 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
ef016f83 MF |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1713 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1714 | sed 's/^/| /' "$ac_site_file" >&5 | |
d0ac1c44 SM |
1715 | . "$ac_site_file" \ |
1716 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1717 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1718 | as_fn_error $? "failed to load site script $ac_site_file | |
1719 | See \`config.log' for more details" "$LINENO" 5; } | |
ef016f83 MF |
1720 | fi |
1721 | done | |
1722 | ||
1723 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
1724 | # Some versions of bash will fail to source /dev/null (special files |
1725 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
1726 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
ef016f83 MF |
1727 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1728 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1729 | case $cache_file in | |
1730 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1731 | *) . "./$cache_file";; | |
1732 | esac | |
1733 | fi | |
1734 | else | |
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
1736 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1737 | >$cache_file | |
1738 | fi | |
1739 | ||
1740 | # Check that the precious variables saved in the cache have kept the same | |
1741 | # value. | |
1742 | ac_cache_corrupted=false | |
1743 | for ac_var in $ac_precious_vars; do | |
1744 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1745 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1746 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1747 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1748 | case $ac_old_set,$ac_new_set in | |
1749 | set,) | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1751 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1752 | ac_cache_corrupted=: ;; | |
1753 | ,set) | |
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
1755 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1756 | ac_cache_corrupted=: ;; | |
1757 | ,);; | |
1758 | *) | |
1759 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1760 | # differences in whitespace do not lead to failure. | |
1761 | ac_old_val_w=`echo x $ac_old_val` | |
1762 | ac_new_val_w=`echo x $ac_new_val` | |
1763 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
1765 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1766 | ac_cache_corrupted=: | |
1767 | else | |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1769 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1770 | eval $ac_var=\$ac_old_val | |
1771 | fi | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
1773 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
1775 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1776 | fi;; | |
1777 | esac | |
1778 | # Pass precious variables to config.status. | |
1779 | if test "$ac_new_set" = set; then | |
1780 | case $ac_new_val in | |
1781 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1782 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1783 | esac | |
1784 | case " $ac_configure_args " in | |
1785 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1786 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
1787 | esac | |
1788 | fi | |
1789 | done | |
1790 | if $ac_cache_corrupted; then | |
1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
1792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
1794 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 1795 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
ef016f83 MF |
1796 | fi |
1797 | ## -------------------- ## | |
1798 | ## Main body of script. ## | |
1799 | ## -------------------- ## | |
1800 | ||
1801 | ac_ext=c | |
1802 | ac_cpp='$CPP $CPPFLAGS' | |
1803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1806 | ||
1807 | ||
6bb11ab3 L |
1808 | |
1809 | ||
1810 | ||
1811 | ||
1812 | ||
bc56166f MF |
1813 | default_sim_default_model="bf537" |
1814 | # Check whether --enable-sim-default-model was given. | |
1815 | if test "${enable_sim_default_model+set}" = set; then : | |
1816 | enableval=$enable_sim_default_model; case "${enableval}" in | |
1817 | yes|no) as_fn_error $? "\"Missing argument to --enable-sim-default-model\"" "$LINENO" 5;; | |
1818 | *) sim_default_model="-DWITH_DEFAULT_MODEL='\"${enableval}\"'";; | |
1819 | esac | |
1820 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
1821 | echo "Setting default model = $sim_default_model" 6>&1 | |
6bb11ab3 | 1822 | fi |
6bb11ab3 | 1823 | else |
bc56166f | 1824 | sim_default_model="-DWITH_DEFAULT_MODEL='\"${default_sim_default_model}\"'" |
6bb11ab3 L |
1825 | fi |
1826 | ||
1827 | ||
bc56166f MF |
1828 | |
1829 | hardware="cfi core pal glue \ | |
1830 | bfin_cec \ | |
1831 | bfin_ctimer \ | |
1832 | bfin_dma \ | |
1833 | bfin_dmac \ | |
1834 | bfin_ebiu_amc \ | |
1835 | bfin_ebiu_ddrc \ | |
1836 | bfin_ebiu_sdc \ | |
1837 | bfin_emac \ | |
1838 | bfin_eppi \ | |
1839 | bfin_evt \ | |
1840 | bfin_gpio \ | |
1841 | bfin_gpio2 \ | |
1842 | bfin_gptimer \ | |
1843 | bfin_jtag \ | |
1844 | bfin_mmu \ | |
1845 | bfin_nfc \ | |
1846 | bfin_otp \ | |
1847 | bfin_pfmon \ | |
1848 | bfin_pint \ | |
1849 | bfin_pll \ | |
1850 | bfin_ppi \ | |
1851 | bfin_rtc \ | |
1852 | bfin_sic \ | |
1853 | bfin_spi \ | |
1854 | bfin_trace \ | |
1855 | bfin_twi \ | |
1856 | bfin_uart \ | |
1857 | bfin_uart2 \ | |
1858 | bfin_wdog \ | |
1859 | bfin_wp \ | |
1860 | eth_phy \ | |
1861 | " | |
1862 | sim_hw_cflags="-DWITH_HW=1" | |
1863 | sim_hw="$hardware" | |
1864 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`" | |
1865 | ||
1866 | # Check whether --enable-sim-hardware was given. | |
1867 | if test "${enable_sim_hardware+set}" = set; then : | |
1868 | enableval=$enable_sim_hardware; | |
1869 | else | |
1870 | enable_sim_hardware="yes" | |
6bb11ab3 | 1871 | fi |
bc56166f MF |
1872 | |
1873 | case ${enable_sim_hardware} in | |
1874 | yes|no) ;; | |
1875 | ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";; | |
1876 | *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";; | |
1877 | *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';; | |
1878 | esac | |
1879 | ||
1880 | if test "$enable_sim_hardware" = no; then | |
1881 | sim_hw_objs= | |
1882 | sim_hw_cflags="-DWITH_HW=0" | |
1883 | sim_hw= | |
1884 | else | |
1885 | sim_hw_cflags="-DWITH_HW=1" | |
1886 | # remove duplicates | |
1887 | sim_hw="" | |
1888 | sim_hw_objs="\$(SIM_COMMON_HW_OBJS)" | |
1889 | for i in $hardware ; do | |
1890 | case " $sim_hw " in | |
1891 | *" $i "*) ;; | |
1892 | *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";; | |
1893 | esac | |
1894 | done | |
1895 | # mingw does not support sockser | |
1896 | case ${host} in | |
1897 | *mingw*) ;; | |
1898 | *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device | |
1899 | # that you instatiate. Instead, other code will call into it directly. | |
1900 | # At some point, we should convert it over. | |
1901 | sim_hw_objs="$sim_hw_objs dv-sockser.o" | |
1902 | sim_hw_cflags="$sim_hw_cflags -DHAVE_DV_SOCKSER" | |
1903 | ;; | |
1904 | esac | |
1905 | if test x"$silent" != x"yes"; then | |
1906 | echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs" | |
1907 | fi | |
1908 | fi | |
1909 | ||
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
1919 | if test -n "$ac_tool_prefix"; then | |
1920 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
1921 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
6bb11ab3 L |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1923 | $as_echo_n "checking for $ac_word... " >&6; } | |
bc56166f | 1924 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
6bb11ab3 L |
1925 | $as_echo_n "(cached) " >&6 |
1926 | else | |
bc56166f MF |
1927 | case $PKG_CONFIG in |
1928 | [\\/]* | ?:[\\/]*) | |
1929 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
1930 | ;; | |
1931 | *) | |
1932 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bb11ab3 L |
1933 | for as_dir in $PATH |
1934 | do | |
1935 | IFS=$as_save_IFS | |
1936 | test -z "$as_dir" && as_dir=. | |
1937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 1938 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bc56166f | 1939 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6bb11ab3 L |
1940 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1941 | break 2 | |
1942 | fi | |
1943 | done | |
1944 | done | |
1945 | IFS=$as_save_IFS | |
1946 | ||
bc56166f MF |
1947 | ;; |
1948 | esac | |
6bb11ab3 | 1949 | fi |
bc56166f MF |
1950 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
1951 | if test -n "$PKG_CONFIG"; then | |
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
1953 | $as_echo "$PKG_CONFIG" >&6; } | |
6bb11ab3 L |
1954 | else |
1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1956 | $as_echo "no" >&6; } | |
1957 | fi | |
1958 | ||
1959 | ||
6bb11ab3 | 1960 | fi |
bc56166f MF |
1961 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
1962 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
1963 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
1964 | set dummy pkg-config; ac_word=$2 | |
6bb11ab3 L |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
1966 | $as_echo_n "checking for $ac_word... " >&6; } | |
bc56166f | 1967 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
6bb11ab3 L |
1968 | $as_echo_n "(cached) " >&6 |
1969 | else | |
bc56166f MF |
1970 | case $ac_pt_PKG_CONFIG in |
1971 | [\\/]* | ?:[\\/]*) | |
1972 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
1973 | ;; | |
1974 | *) | |
1975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bb11ab3 L |
1976 | for as_dir in $PATH |
1977 | do | |
1978 | IFS=$as_save_IFS | |
1979 | test -z "$as_dir" && as_dir=. | |
1980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 1981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bc56166f | 1982 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6bb11ab3 L |
1983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1984 | break 2 | |
1985 | fi | |
1986 | done | |
1987 | done | |
1988 | IFS=$as_save_IFS | |
1989 | ||
bc56166f MF |
1990 | ;; |
1991 | esac | |
6bb11ab3 | 1992 | fi |
bc56166f MF |
1993 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
1994 | if test -n "$ac_pt_PKG_CONFIG"; then | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
1996 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
6bb11ab3 L |
1997 | else |
1998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
1999 | $as_echo "no" >&6; } | |
2000 | fi | |
2001 | ||
bc56166f MF |
2002 | if test "x$ac_pt_PKG_CONFIG" = x; then |
2003 | PKG_CONFIG="" | |
6bb11ab3 L |
2004 | else |
2005 | case $cross_compiling:$ac_tool_warned in | |
2006 | yes:) | |
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2009 | ac_tool_warned=yes ;; | |
2010 | esac | |
bc56166f | 2011 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
6bb11ab3 | 2012 | fi |
bc56166f MF |
2013 | else |
2014 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
6bb11ab3 L |
2015 | fi |
2016 | ||
2017 | fi | |
bc56166f MF |
2018 | if test -n "$PKG_CONFIG"; then |
2019 | _pkg_min_version=0.9.0 | |
2020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
2021 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
2022 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
2023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2024 | $as_echo "yes" >&6; } | |
2025 | else | |
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2027 | $as_echo "no" >&6; } | |
2028 | PKG_CONFIG="" | |
6bb11ab3 | 2029 | fi |
bc56166f MF |
2030 | fi |
2031 | ac_ext=c | |
2032 | ac_cpp='$CPP $CPPFLAGS' | |
2033 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2034 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2035 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2036 | if test -n "$ac_tool_prefix"; then | |
2037 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2038 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2040 | $as_echo_n "checking for $ac_word... " >&6; } | |
2041 | if ${ac_cv_prog_CC+:} false; then : | |
2042 | $as_echo_n "(cached) " >&6 | |
2043 | else | |
2044 | if test -n "$CC"; then | |
2045 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2046 | else | |
2047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2048 | for as_dir in $PATH | |
2049 | do | |
2050 | IFS=$as_save_IFS | |
2051 | test -z "$as_dir" && as_dir=. | |
2052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2053 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2054 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2056 | break 2 | |
2057 | fi | |
6bb11ab3 | 2058 | done |
bc56166f MF |
2059 | done |
2060 | IFS=$as_save_IFS | |
6bb11ab3 | 2061 | |
6bb11ab3 | 2062 | fi |
6bb11ab3 | 2063 | fi |
bc56166f MF |
2064 | CC=$ac_cv_prog_CC |
2065 | if test -n "$CC"; then | |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2067 | $as_echo "$CC" >&6; } | |
6bb11ab3 | 2068 | else |
bc56166f MF |
2069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2070 | $as_echo "no" >&6; } | |
6bb11ab3 | 2071 | fi |
6bb11ab3 | 2072 | |
d0ac1c44 | 2073 | |
d0ac1c44 | 2074 | fi |
bc56166f MF |
2075 | if test -z "$ac_cv_prog_CC"; then |
2076 | ac_ct_CC=$CC | |
2077 | # Extract the first word of "gcc", so it can be a program name with args. | |
2078 | set dummy gcc; ac_word=$2 | |
2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2080 | $as_echo_n "checking for $ac_word... " >&6; } | |
2081 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
6bb11ab3 L |
2082 | $as_echo_n "(cached) " >&6 |
2083 | else | |
bc56166f MF |
2084 | if test -n "$ac_ct_CC"; then |
2085 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
6bb11ab3 | 2086 | else |
bc56166f MF |
2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2088 | for as_dir in $PATH | |
2089 | do | |
2090 | IFS=$as_save_IFS | |
2091 | test -z "$as_dir" && as_dir=. | |
2092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2093 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2094 | ac_cv_prog_ac_ct_CC="gcc" | |
2095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2096 | break 2 | |
2097 | fi | |
2098 | done | |
2099 | done | |
2100 | IFS=$as_save_IFS | |
6bb11ab3 | 2101 | |
6bb11ab3 | 2102 | fi |
6bb11ab3 | 2103 | fi |
bc56166f MF |
2104 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2105 | if test -n "$ac_ct_CC"; then | |
2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2107 | $as_echo "$ac_ct_CC" >&6; } | |
6bb11ab3 | 2108 | else |
bc56166f MF |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2110 | $as_echo "no" >&6; } | |
6bb11ab3 | 2111 | fi |
6bb11ab3 | 2112 | |
bc56166f MF |
2113 | if test "x$ac_ct_CC" = x; then |
2114 | CC="" | |
2115 | else | |
2116 | case $cross_compiling:$ac_tool_warned in | |
2117 | yes:) | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2119 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2120 | ac_tool_warned=yes ;; | |
2121 | esac | |
2122 | CC=$ac_ct_CC | |
2123 | fi | |
6bb11ab3 | 2124 | else |
bc56166f | 2125 | CC="$ac_cv_prog_CC" |
6bb11ab3 | 2126 | fi |
bc56166f MF |
2127 | |
2128 | if test -z "$CC"; then | |
2129 | if test -n "$ac_tool_prefix"; then | |
2130 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2131 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2133 | $as_echo_n "checking for $ac_word... " >&6; } | |
2134 | if ${ac_cv_prog_CC+:} false; then : | |
6bb11ab3 L |
2135 | $as_echo_n "(cached) " >&6 |
2136 | else | |
bc56166f MF |
2137 | if test -n "$CC"; then |
2138 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6bb11ab3 | 2139 | else |
bc56166f MF |
2140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2141 | for as_dir in $PATH | |
2142 | do | |
2143 | IFS=$as_save_IFS | |
2144 | test -z "$as_dir" && as_dir=. | |
2145 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2147 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2149 | break 2 | |
2150 | fi | |
2151 | done | |
2152 | done | |
2153 | IFS=$as_save_IFS | |
6bb11ab3 | 2154 | |
bc56166f MF |
2155 | fi |
2156 | fi | |
2157 | CC=$ac_cv_prog_CC | |
2158 | if test -n "$CC"; then | |
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2160 | $as_echo "$CC" >&6; } | |
6bb11ab3 | 2161 | else |
bc56166f MF |
2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2163 | $as_echo "no" >&6; } | |
2164 | fi | |
6bb11ab3 | 2165 | |
6bb11ab3 | 2166 | |
bc56166f | 2167 | fi |
6bb11ab3 | 2168 | fi |
bc56166f MF |
2169 | if test -z "$CC"; then |
2170 | # Extract the first word of "cc", so it can be a program name with args. | |
2171 | set dummy cc; ac_word=$2 | |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2173 | $as_echo_n "checking for $ac_word... " >&6; } | |
2174 | if ${ac_cv_prog_CC+:} false; then : | |
2175 | $as_echo_n "(cached) " >&6 | |
2176 | else | |
2177 | if test -n "$CC"; then | |
2178 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2179 | else | |
2180 | ac_prog_rejected=no | |
2181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2182 | for as_dir in $PATH | |
2183 | do | |
2184 | IFS=$as_save_IFS | |
2185 | test -z "$as_dir" && as_dir=. | |
2186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2188 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2189 | ac_prog_rejected=yes | |
2190 | continue | |
2191 | fi | |
2192 | ac_cv_prog_CC="cc" | |
2193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2194 | break 2 | |
2195 | fi | |
2196 | done | |
2197 | done | |
2198 | IFS=$as_save_IFS | |
2199 | ||
2200 | if test $ac_prog_rejected = yes; then | |
2201 | # We found a bogon in the path, so make sure we never use it. | |
2202 | set dummy $ac_cv_prog_CC | |
2203 | shift | |
2204 | if test $# != 0; then | |
2205 | # We chose a different compiler from the bogus one. | |
2206 | # However, it has the same basename, so the bogon will be chosen | |
2207 | # first if we set CC to just the basename; use the full file name. | |
2208 | shift | |
2209 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2210 | fi | |
6bb11ab3 | 2211 | fi |
6bb11ab3 | 2212 | fi |
6bb11ab3 | 2213 | fi |
bc56166f MF |
2214 | CC=$ac_cv_prog_CC |
2215 | if test -n "$CC"; then | |
2216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2217 | $as_echo "$CC" >&6; } | |
6bb11ab3 | 2218 | else |
bc56166f MF |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2220 | $as_echo "no" >&6; } | |
6bb11ab3 | 2221 | fi |
6bb11ab3 | 2222 | |
6bb11ab3 | 2223 | |
6bb11ab3 | 2224 | fi |
bc56166f MF |
2225 | if test -z "$CC"; then |
2226 | if test -n "$ac_tool_prefix"; then | |
2227 | for ac_prog in cl.exe | |
2228 | do | |
2229 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2230 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2232 | $as_echo_n "checking for $ac_word... " >&6; } | |
2233 | if ${ac_cv_prog_CC+:} false; then : | |
2234 | $as_echo_n "(cached) " >&6 | |
2235 | else | |
2236 | if test -n "$CC"; then | |
2237 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2238 | else | |
2239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2240 | for as_dir in $PATH | |
2241 | do | |
2242 | IFS=$as_save_IFS | |
2243 | test -z "$as_dir" && as_dir=. | |
2244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2245 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2246 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2248 | break 2 | |
2249 | fi | |
6bb11ab3 | 2250 | done |
bc56166f MF |
2251 | done |
2252 | IFS=$as_save_IFS | |
6bb11ab3 L |
2253 | |
2254 | fi | |
bc56166f MF |
2255 | fi |
2256 | CC=$ac_cv_prog_CC | |
2257 | if test -n "$CC"; then | |
2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2259 | $as_echo "$CC" >&6; } | |
2260 | else | |
2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2262 | $as_echo "no" >&6; } | |
6bb11ab3 L |
2263 | fi |
2264 | ||
6bb11ab3 | 2265 | |
bc56166f MF |
2266 | test -n "$CC" && break |
2267 | done | |
ebe9564b | 2268 | fi |
bc56166f MF |
2269 | if test -z "$CC"; then |
2270 | ac_ct_CC=$CC | |
2271 | for ac_prog in cl.exe | |
2272 | do | |
2273 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2274 | set dummy $ac_prog; ac_word=$2 | |
2275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2276 | $as_echo_n "checking for $ac_word... " >&6; } | |
2277 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
d3562f83 | 2278 | $as_echo_n "(cached) " >&6 |
6bb11ab3 | 2279 | else |
bc56166f MF |
2280 | if test -n "$ac_ct_CC"; then |
2281 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2282 | else | |
2283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6bb11ab3 L |
2284 | for as_dir in $PATH |
2285 | do | |
2286 | IFS=$as_save_IFS | |
2287 | test -z "$as_dir" && as_dir=. | |
bc56166f MF |
2288 | for ac_exec_ext in '' $ac_executable_extensions; do |
2289 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2290 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2292 | break 2 | |
2293 | fi | |
2294 | done | |
6bb11ab3 L |
2295 | done |
2296 | IFS=$as_save_IFS | |
2297 | ||
6bb11ab3 | 2298 | fi |
6bb11ab3 | 2299 | fi |
bc56166f MF |
2300 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2301 | if test -n "$ac_ct_CC"; then | |
2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2303 | $as_echo "$ac_ct_CC" >&6; } | |
6bb11ab3 | 2304 | else |
bc56166f MF |
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2306 | $as_echo "no" >&6; } | |
6bb11ab3 | 2307 | fi |
6bb11ab3 | 2308 | |
6bb11ab3 | 2309 | |
bc56166f MF |
2310 | test -n "$ac_ct_CC" && break |
2311 | done | |
6bb11ab3 | 2312 | |
bc56166f MF |
2313 | if test "x$ac_ct_CC" = x; then |
2314 | CC="" | |
2315 | else | |
2316 | case $cross_compiling:$ac_tool_warned in | |
2317 | yes:) | |
2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2320 | ac_tool_warned=yes ;; | |
2321 | esac | |
2322 | CC=$ac_ct_CC | |
2323 | fi | |
2324 | fi | |
6bb11ab3 | 2325 | |
bc56166f | 2326 | fi |
6bb11ab3 L |
2327 | |
2328 | ||
bc56166f MF |
2329 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2331 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2332 | See \`config.log' for more details" "$LINENO" 5; } | |
6bb11ab3 | 2333 | |
bc56166f MF |
2334 | # Provide some information about the compiler. |
2335 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2336 | set X $ac_compile | |
2337 | ac_compiler=$2 | |
2338 | for ac_option in --version -v -V -qversion; do | |
2339 | { { ac_try="$ac_compiler $ac_option >&5" | |
2340 | case "(($ac_try" in | |
2341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2342 | *) ac_try_echo=$ac_try;; | |
2343 | esac | |
2344 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2345 | $as_echo "$ac_try_echo"; } >&5 | |
2346 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2347 | ac_status=$? | |
2348 | if test -s conftest.err; then | |
2349 | sed '10a\ | |
2350 | ... rest of stderr output deleted ... | |
2351 | 10q' conftest.err >conftest.er1 | |
2352 | cat conftest.er1 >&5 | |
b5689863 | 2353 | fi |
bc56166f MF |
2354 | rm -f conftest.er1 conftest.err |
2355 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2356 | test $ac_status = 0; } | |
2357 | done | |
6bb11ab3 | 2358 | |
bc56166f MF |
2359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2360 | /* end confdefs.h. */ | |
6bb11ab3 | 2361 | |
bc56166f MF |
2362 | int |
2363 | main () | |
2364 | { | |
6bb11ab3 | 2365 | |
bc56166f MF |
2366 | ; |
2367 | return 0; | |
2368 | } | |
2369 | _ACEOF | |
2370 | ac_clean_files_save=$ac_clean_files | |
2371 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2372 | # Try to create an executable without -o first, disregard a.out. | |
2373 | # It will help us diagnose broken compilers, and finding out an intuition | |
2374 | # of exeext. | |
2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2376 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2377 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
6bb11ab3 | 2378 | |
bc56166f MF |
2379 | # The possible output files: |
2380 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
6bb11ab3 | 2381 | |
bc56166f MF |
2382 | ac_rmfiles= |
2383 | for ac_file in $ac_files | |
2384 | do | |
2385 | case $ac_file in | |
2386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2387 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2388 | esac | |
2389 | done | |
2390 | rm -f $ac_rmfiles | |
6bb11ab3 | 2391 | |
bc56166f MF |
2392 | if { { ac_try="$ac_link_default" |
2393 | case "(($ac_try" in | |
2394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2395 | *) ac_try_echo=$ac_try;; | |
2396 | esac | |
2397 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2398 | $as_echo "$ac_try_echo"; } >&5 | |
2399 | (eval "$ac_link_default") 2>&5 | |
2400 | ac_status=$? | |
2401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2402 | test $ac_status = 0; }; then : | |
2403 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2404 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2405 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2406 | # so that the user can short-circuit this test for compilers unknown to | |
2407 | # Autoconf. | |
2408 | for ac_file in $ac_files '' | |
2409 | do | |
2410 | test -f "$ac_file" || continue | |
2411 | case $ac_file in | |
2412 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2413 | ;; | |
2414 | [ab].out ) | |
2415 | # We found the default executable, but exeext='' is most | |
2416 | # certainly right. | |
2417 | break;; | |
2418 | *.* ) | |
2419 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2420 | then :; else | |
2421 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2422 | fi | |
2423 | # We set ac_cv_exeext here because the later test for it is not | |
2424 | # safe: cross compilers may not add the suffix if given an `-o' | |
2425 | # argument, so we may need to know it at that point already. | |
2426 | # Even if this section looks crufty: it has the advantage of | |
2427 | # actually working. | |
2428 | break;; | |
2429 | * ) | |
2430 | break;; | |
2431 | esac | |
2432 | done | |
2433 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2434 | ||
2435 | else | |
2436 | ac_file='' | |
6bb11ab3 | 2437 | fi |
bc56166f | 2438 | if test -z "$ac_file"; then : |
6bb11ab3 L |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2440 | $as_echo "no" >&6; } | |
bc56166f MF |
2441 | $as_echo "$as_me: failed program was:" >&5 |
2442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2443 | ||
2444 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2445 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2446 | as_fn_error 77 "C compiler cannot create executables | |
2447 | See \`config.log' for more details" "$LINENO" 5; } | |
b5689863 MF |
2448 | else |
2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2450 | $as_echo "yes" >&6; } | |
bc56166f MF |
2451 | fi |
2452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2453 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2455 | $as_echo "$ac_file" >&6; } | |
2456 | ac_exeext=$ac_cv_exeext | |
6bb11ab3 | 2457 | |
bc56166f MF |
2458 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2459 | ac_clean_files=$ac_clean_files_save | |
2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2461 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2462 | if { { ac_try="$ac_link" | |
2463 | case "(($ac_try" in | |
2464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2465 | *) ac_try_echo=$ac_try;; | |
2466 | esac | |
2467 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2468 | $as_echo "$ac_try_echo"; } >&5 | |
2469 | (eval "$ac_link") 2>&5 | |
2470 | ac_status=$? | |
2471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2472 | test $ac_status = 0; }; then : | |
2473 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2474 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2475 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2476 | # `rm'. | |
2477 | for ac_file in conftest.exe conftest conftest.*; do | |
2478 | test -f "$ac_file" || continue | |
2479 | case $ac_file in | |
2480 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2481 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2482 | break;; | |
2483 | * ) break;; | |
2484 | esac | |
2485 | done | |
2486 | else | |
2487 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2488 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2489 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2490 | See \`config.log' for more details" "$LINENO" 5; } | |
2491 | fi | |
2492 | rm -f conftest conftest$ac_cv_exeext | |
2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2494 | $as_echo "$ac_cv_exeext" >&6; } | |
6bb11ab3 | 2495 | |
bc56166f MF |
2496 | rm -f conftest.$ac_ext |
2497 | EXEEXT=$ac_cv_exeext | |
2498 | ac_exeext=$EXEEXT | |
2499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2500 | /* end confdefs.h. */ | |
2501 | #include <stdio.h> | |
2502 | int | |
2503 | main () | |
2504 | { | |
2505 | FILE *f = fopen ("conftest.out", "w"); | |
2506 | return ferror (f) || fclose (f) != 0; | |
6bb11ab3 | 2507 | |
bc56166f MF |
2508 | ; |
2509 | return 0; | |
2510 | } | |
2511 | _ACEOF | |
2512 | ac_clean_files="$ac_clean_files conftest.out" | |
2513 | # Check that the compiler produces executables we can run. If not, either | |
2514 | # the compiler is broken, or we cross compile. | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2516 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2517 | if test "$cross_compiling" != yes; then | |
2518 | { { ac_try="$ac_link" | |
2519 | case "(($ac_try" in | |
2520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2521 | *) ac_try_echo=$ac_try;; | |
2522 | esac | |
2523 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2524 | $as_echo "$ac_try_echo"; } >&5 | |
2525 | (eval "$ac_link") 2>&5 | |
2526 | ac_status=$? | |
2527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2528 | test $ac_status = 0; } | |
2529 | if { ac_try='./conftest$ac_cv_exeext' | |
2530 | { { case "(($ac_try" in | |
2531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2532 | *) ac_try_echo=$ac_try;; | |
2533 | esac | |
2534 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2535 | $as_echo "$ac_try_echo"; } >&5 | |
2536 | (eval "$ac_try") 2>&5 | |
2537 | ac_status=$? | |
2538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2539 | test $ac_status = 0; }; }; then | |
2540 | cross_compiling=no | |
2541 | else | |
2542 | if test "$cross_compiling" = maybe; then | |
2543 | cross_compiling=yes | |
6bb11ab3 | 2544 | else |
bc56166f MF |
2545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2547 | as_fn_error $? "cannot run C compiled programs. | |
2548 | If you meant to cross compile, use \`--host'. | |
2549 | See \`config.log' for more details" "$LINENO" 5; } | |
b5689863 | 2550 | fi |
bc56166f | 2551 | fi |
ef016f83 | 2552 | fi |
bc56166f MF |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2554 | $as_echo "$cross_compiling" >&6; } | |
31e6ad7d | 2555 | |
bc56166f MF |
2556 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2557 | ac_clean_files=$ac_clean_files_save | |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2559 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2560 | if ${ac_cv_objext+:} false; then : | |
2561 | $as_echo_n "(cached) " >&6 | |
ef016f83 | 2562 | else |
bc56166f MF |
2563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2564 | /* end confdefs.h. */ | |
ef016f83 | 2565 | |
bc56166f MF |
2566 | int |
2567 | main () | |
2568 | { | |
ef016f83 | 2569 | |
bc56166f MF |
2570 | ; |
2571 | return 0; | |
2572 | } | |
2573 | _ACEOF | |
2574 | rm -f conftest.o conftest.obj | |
2575 | if { { ac_try="$ac_compile" | |
2576 | case "(($ac_try" in | |
2577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2578 | *) ac_try_echo=$ac_try;; | |
347fe5bb | 2579 | esac |
bc56166f MF |
2580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2581 | $as_echo "$ac_try_echo"; } >&5 | |
2582 | (eval "$ac_compile") 2>&5 | |
2583 | ac_status=$? | |
2584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2585 | test $ac_status = 0; }; then : | |
2586 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2587 | test -f "$ac_file" || continue; | |
2588 | case $ac_file in | |
2589 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2590 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2591 | break;; | |
2592 | esac | |
2593 | done | |
2594 | else | |
2595 | $as_echo "$as_me: failed program was:" >&5 | |
2596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ef016f83 | 2597 | |
bc56166f MF |
2598 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2599 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2600 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2601 | See \`config.log' for more details" "$LINENO" 5; } | |
ef016f83 | 2602 | fi |
bc56166f | 2603 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
ef016f83 | 2604 | fi |
bc56166f MF |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2606 | $as_echo "$ac_cv_objext" >&6; } | |
2607 | OBJEXT=$ac_cv_objext | |
2608 | ac_objext=$OBJEXT | |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2610 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2611 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2612 | $as_echo_n "(cached) " >&6 | |
2613 | else | |
2614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2615 | /* end confdefs.h. */ | |
ef016f83 | 2616 | |
bc56166f MF |
2617 | int |
2618 | main () | |
2619 | { | |
2620 | #ifndef __GNUC__ | |
2621 | choke me | |
2622 | #endif | |
ef016f83 | 2623 | |
bc56166f MF |
2624 | ; |
2625 | return 0; | |
2626 | } | |
2627 | _ACEOF | |
2628 | if ac_fn_c_try_compile "$LINENO"; then : | |
2629 | ac_compiler_gnu=yes | |
30452bbe | 2630 | else |
bc56166f | 2631 | ac_compiler_gnu=no |
1517bd27 | 2632 | fi |
bc56166f MF |
2633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2634 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1517bd27 | 2635 | |
bc56166f MF |
2636 | fi |
2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
2638 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2639 | if test $ac_compiler_gnu = yes; then | |
2640 | GCC=yes | |
ef016f83 | 2641 | else |
bc56166f | 2642 | GCC= |
1517bd27 | 2643 | fi |
bc56166f MF |
2644 | ac_test_CFLAGS=${CFLAGS+set} |
2645 | ac_save_CFLAGS=$CFLAGS | |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2647 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2648 | if ${ac_cv_prog_cc_g+:} false; then : | |
2649 | $as_echo_n "(cached) " >&6 | |
2650 | else | |
2651 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2652 | ac_c_werror_flag=yes | |
2653 | ac_cv_prog_cc_g=no | |
2654 | CFLAGS="-g" | |
2655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2656 | /* end confdefs.h. */ | |
4399a56b | 2657 | |
bc56166f MF |
2658 | int |
2659 | main () | |
2660 | { | |
ef016f83 | 2661 | |
bc56166f MF |
2662 | ; |
2663 | return 0; | |
2664 | } | |
2665 | _ACEOF | |
2666 | if ac_fn_c_try_compile "$LINENO"; then : | |
2667 | ac_cv_prog_cc_g=yes | |
2668 | else | |
2669 | CFLAGS="" | |
2670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2671 | /* end confdefs.h. */ | |
ef016f83 | 2672 | |
bc56166f MF |
2673 | int |
2674 | main () | |
2675 | { | |
37e9f182 | 2676 | |
bc56166f MF |
2677 | ; |
2678 | return 0; | |
2679 | } | |
2680 | _ACEOF | |
2681 | if ac_fn_c_try_compile "$LINENO"; then : | |
37e9f182 | 2682 | |
bc56166f MF |
2683 | else |
2684 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2685 | CFLAGS="-g" | |
2686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2687 | /* end confdefs.h. */ | |
37e9f182 | 2688 | |
bc56166f MF |
2689 | int |
2690 | main () | |
2691 | { | |
37e9f182 | 2692 | |
bc56166f MF |
2693 | ; |
2694 | return 0; | |
2695 | } | |
2696 | _ACEOF | |
2697 | if ac_fn_c_try_compile "$LINENO"; then : | |
2698 | ac_cv_prog_cc_g=yes | |
2699 | fi | |
2700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2701 | fi | |
2702 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2703 | fi | |
2704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2705 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2706 | fi | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
2708 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
2709 | if test "$ac_test_CFLAGS" = set; then | |
2710 | CFLAGS=$ac_save_CFLAGS | |
2711 | elif test $ac_cv_prog_cc_g = yes; then | |
2712 | if test "$GCC" = yes; then | |
2713 | CFLAGS="-g -O2" | |
2714 | else | |
2715 | CFLAGS="-g" | |
2716 | fi | |
5798d69f | 2717 | else |
bc56166f MF |
2718 | if test "$GCC" = yes; then |
2719 | CFLAGS="-O2" | |
2720 | else | |
2721 | CFLAGS= | |
5798d69f | 2722 | fi |
5798d69f | 2723 | fi |
bc56166f MF |
2724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2725 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
2726 | if ${ac_cv_prog_cc_c89+:} false; then : | |
2727 | $as_echo_n "(cached) " >&6 | |
5798d69f | 2728 | else |
bc56166f MF |
2729 | ac_cv_prog_cc_c89=no |
2730 | ac_save_CC=$CC | |
2731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2732 | /* end confdefs.h. */ | |
2733 | #include <stdarg.h> | |
2734 | #include <stdio.h> | |
2735 | struct stat; | |
2736 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2737 | struct buf { int x; }; | |
2738 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2739 | static char *e (p, i) | |
2740 | char **p; | |
2741 | int i; | |
2742 | { | |
2743 | return p[i]; | |
2744 | } | |
2745 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2746 | { | |
2747 | char *s; | |
2748 | va_list v; | |
2749 | va_start (v,p); | |
2750 | s = g (p, va_arg (v,int)); | |
2751 | va_end (v); | |
2752 | return s; | |
2753 | } | |
5798d69f | 2754 | |
bc56166f MF |
2755 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2756 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2757 | These don't provoke an error unfortunately, instead are silently treated | |
2758 | as 'x'. The following induces an error, until -std is added to get | |
2759 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2760 | array size at least. It's necessary to write '\x00'==0 to get something | |
2761 | that's true only with -std. */ | |
2762 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
5798d69f | 2763 | |
bc56166f MF |
2764 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2765 | inside strings and character constants. */ | |
2766 | #define FOO(x) 'x' | |
2767 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2768 | ||
2769 | int test (int i, double x); | |
2770 | struct s1 {int (*f) (int a);}; | |
2771 | struct s2 {int (*f) (double a);}; | |
2772 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2773 | int argc; | |
2774 | char **argv; | |
2775 | int | |
2776 | main () | |
2777 | { | |
2778 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2779 | ; | |
2780 | return 0; | |
2781 | } | |
2782 | _ACEOF | |
2783 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
2784 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
5798d69f | 2785 | do |
bc56166f MF |
2786 | CC="$ac_save_CC $ac_arg" |
2787 | if ac_fn_c_try_compile "$LINENO"; then : | |
2788 | ac_cv_prog_cc_c89=$ac_arg | |
2789 | fi | |
2790 | rm -f core conftest.err conftest.$ac_objext | |
2791 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5798d69f | 2792 | done |
bc56166f MF |
2793 | rm -f conftest.$ac_ext |
2794 | CC=$ac_save_CC | |
5798d69f | 2795 | |
5798d69f | 2796 | fi |
bc56166f MF |
2797 | # AC_CACHE_VAL |
2798 | case "x$ac_cv_prog_cc_c89" in | |
2799 | x) | |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
2801 | $as_echo "none needed" >&6; } ;; | |
2802 | xno) | |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
2804 | $as_echo "unsupported" >&6; } ;; | |
2805 | *) | |
2806 | CC="$CC $ac_cv_prog_cc_c89" | |
2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
2808 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
5798d69f | 2809 | esac |
bc56166f | 2810 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
5798d69f SM |
2811 | |
2812 | fi | |
bc56166f MF |
2813 | |
2814 | ac_ext=c | |
2815 | ac_cpp='$CPP $CPPFLAGS' | |
2816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2819 | ||
5798d69f | 2820 | |
d3562f83 | 2821 | |
5798d69f SM |
2822 | pkg_failed=no |
2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdl" >&5 | |
2824 | $as_echo_n "checking for sdl... " >&6; } | |
2825 | ||
2826 | if test -n "$SDL_CFLAGS"; then | |
2827 | pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" | |
2828 | elif test -n "$PKG_CONFIG"; then | |
2829 | if test -n "$PKG_CONFIG" && \ | |
2830 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
2831 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
2832 | ac_status=$? | |
2833 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2834 | test $ac_status = 0; }; then | |
2835 | pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null` | |
2836 | test "x$?" != "x0" && pkg_failed=yes | |
2837 | else | |
2838 | pkg_failed=yes | |
2839 | fi | |
2840 | else | |
2841 | pkg_failed=untried | |
2842 | fi | |
2843 | if test -n "$SDL_LIBS"; then | |
2844 | pkg_cv_SDL_LIBS="$SDL_LIBS" | |
2845 | elif test -n "$PKG_CONFIG"; then | |
2846 | if test -n "$PKG_CONFIG" && \ | |
2847 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5 | |
2848 | ($PKG_CONFIG --exists --print-errors "sdl") 2>&5 | |
2849 | ac_status=$? | |
2850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2851 | test $ac_status = 0; }; then | |
2852 | pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null` | |
2853 | test "x$?" != "x0" && pkg_failed=yes | |
2854 | else | |
2855 | pkg_failed=yes | |
2856 | fi | |
2857 | else | |
2858 | pkg_failed=untried | |
2859 | fi | |
2860 | ||
2861 | if test $pkg_failed = no; then | |
2862 | pkg_save_LDFLAGS="$LDFLAGS" | |
2863 | LDFLAGS="$LDFLAGS $pkg_cv_SDL_LIBS" | |
2864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2865 | /* end confdefs.h. */ | |
2866 | ||
2867 | int | |
2868 | main () | |
2869 | { | |
2870 | ||
2871 | ; | |
2872 | return 0; | |
2873 | } | |
2874 | _ACEOF | |
2875 | if ac_fn_c_try_link "$LINENO"; then : | |
2876 | ||
2877 | else | |
2878 | pkg_failed=yes | |
2879 | fi | |
2880 | rm -f core conftest.err conftest.$ac_objext \ | |
2881 | conftest$ac_exeext conftest.$ac_ext | |
2882 | LDFLAGS=$pkg_save_LDFLAGS | |
2883 | fi | |
2884 | ||
2885 | ||
2886 | ||
2887 | if test $pkg_failed = yes; then | |
2888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2889 | $as_echo "no" >&6; } | |
2890 | ||
2891 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
2892 | _pkg_short_errors_supported=yes | |
2893 | else | |
2894 | _pkg_short_errors_supported=no | |
2895 | fi | |
2896 | if test $_pkg_short_errors_supported = yes; then | |
2897 | SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1` | |
2898 | else | |
2899 | SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1` | |
2900 | fi | |
2901 | # Put the nasty error message in config.log where it belongs | |
2902 | echo "$SDL_PKG_ERRORS" >&5 | |
2903 | ||
2904 | : | |
2905 | elif test $pkg_failed = untried; then | |
2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2907 | $as_echo "no" >&6; } | |
2908 | : | |
2909 | else | |
2910 | SDL_CFLAGS=$pkg_cv_SDL_CFLAGS | |
2911 | SDL_LIBS=$pkg_cv_SDL_LIBS | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2913 | $as_echo "yes" >&6; } | |
2914 | ||
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
2916 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
2917 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
2918 | $as_echo_n "(cached) " >&6 | |
2919 | else | |
2920 | ac_check_lib_save_LIBS=$LIBS | |
2921 | LIBS="-ldl $LIBS" | |
2922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2923 | /* end confdefs.h. */ | |
2924 | ||
2925 | /* Override any GCC internal prototype to avoid an error. | |
2926 | Use char because int might match the return type of a GCC | |
2927 | builtin and then its argument prototype would still apply. */ | |
2928 | #ifdef __cplusplus | |
2929 | extern "C" | |
2930 | #endif | |
2931 | char dlopen (); | |
2932 | int | |
2933 | main () | |
2934 | { | |
2935 | return dlopen (); | |
2936 | ; | |
2937 | return 0; | |
2938 | } | |
2939 | _ACEOF | |
2940 | if ac_fn_c_try_link "$LINENO"; then : | |
2941 | ac_cv_lib_dl_dlopen=yes | |
2942 | else | |
2943 | ac_cv_lib_dl_dlopen=no | |
2944 | fi | |
2945 | rm -f core conftest.err conftest.$ac_objext \ | |
2946 | conftest$ac_exeext conftest.$ac_ext | |
2947 | LIBS=$ac_check_lib_save_LIBS | |
2948 | fi | |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
2950 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
2951 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
2952 | ||
ef016f83 MF |
2953 | SDL_CFLAGS="${SDL_CFLAGS} -DHAVE_SDL" |
2954 | SDL_LIBS="-ldl" | |
5798d69f SM |
2955 | |
2956 | else | |
2957 | SDL_CFLAGS= SDL_LIBS= | |
2958 | fi | |
2959 | ||
2960 | ||
2961 | fi | |
ef016f83 MF |
2962 | |
2963 | ||
2964 | ||
2965 | ||
ef016f83 MF |
2966 | cgen_breaks="" |
2967 | if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then | |
2968 | cgen_breaks="break cgen_rtx_error"; | |
2969 | fi | |
2970 | ||
2971 | ac_config_files="$ac_config_files Makefile.sim:Makefile.in" | |
2972 | ||
2973 | ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in" | |
2974 | ||
2975 | ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in" | |
2976 | ||
2977 | ac_config_commands="$ac_config_commands Makefile" | |
2978 | ||
2979 | ac_config_commands="$ac_config_commands stamp-h" | |
2980 | ||
760b3e8b MF |
2981 | |
2982 | ||
2983 | ||
2984 | ||
2985 | ||
2986 | ||
2987 | ||
2988 | ||
2989 | ||
2990 | ||
ef016f83 MF |
2991 | cat >confcache <<\_ACEOF |
2992 | # This file is a shell script that caches the results of configure | |
2993 | # tests run on this system so they can be shared between configure | |
2994 | # scripts and configure runs, see configure's option --config-cache. | |
2995 | # It is not useful on other systems. If it contains results you don't | |
2996 | # want to keep, you may remove or edit it. | |
2997 | # | |
2998 | # config.status only pays attention to the cache file if you give it | |
2999 | # the --recheck option to rerun configure. | |
3000 | # | |
3001 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3002 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3003 | # following values. | |
3004 | ||
3005 | _ACEOF | |
3006 | ||
3007 | # The following way of writing the cache mishandles newlines in values, | |
3008 | # but we know of no workaround that is simple, portable, and efficient. | |
3009 | # So, we kill variables containing newlines. | |
3010 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3011 | # and sets the high bit in the cache file unless we assign to the vars. | |
3012 | ( | |
3013 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3014 | eval ac_val=\$$ac_var | |
3015 | case $ac_val in #( | |
3016 | *${as_nl}*) | |
3017 | case $ac_var in #( | |
3018 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3019 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3020 | esac | |
3021 | case $ac_var in #( | |
3022 | _ | IFS | as_nl) ;; #( | |
3023 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3024 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3025 | esac ;; | |
3026 | esac | |
3027 | done | |
3028 | ||
3029 | (set) 2>&1 | | |
3030 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3031 | *${as_nl}ac_space=\ *) | |
3032 | # `set' does not quote correctly, so add quotes: double-quote | |
3033 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
3034 | sed -n \ | |
3035 | "s/'/'\\\\''/g; | |
3036 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3037 | ;; #( | |
3038 | *) | |
3039 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3040 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3041 | ;; | |
3042 | esac | | |
3043 | sort | |
3044 | ) | | |
3045 | sed ' | |
3046 | /^ac_cv_env_/b end | |
3047 | t clear | |
3048 | :clear | |
3049 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3050 | t end | |
3051 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3052 | :end' >>confcache | |
3053 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3054 | if test -w "$cache_file"; then | |
d0ac1c44 | 3055 | if test "x$cache_file" != "x/dev/null"; then |
ef016f83 MF |
3056 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
3057 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
3058 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
3059 | cat confcache >"$cache_file" | |
3060 | else | |
3061 | case $cache_file in #( | |
3062 | */* | ?:*) | |
3063 | mv -f confcache "$cache_file"$$ && | |
3064 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
3065 | *) | |
3066 | mv -f confcache "$cache_file" ;; | |
3067 | esac | |
3068 | fi | |
3069 | fi | |
ef016f83 MF |
3070 | else |
3071 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
3072 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3073 | fi | |
3074 | fi | |
3075 | rm -f confcache | |
3076 | ||
3077 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3078 | # Let make expand exec_prefix. | |
3079 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3080 | ||
52d37d2c MF |
3081 | # Transform confdefs.h into DEFS. |
3082 | # Protect against shell expansion while executing Makefile rules. | |
3083 | # Protect against Makefile macro expansion. | |
3084 | # | |
3085 | # If the first sed substitution is executed (which looks for macros that | |
3086 | # take arguments), then branch to the quote section. Otherwise, | |
3087 | # look for a macro that doesn't take arguments. | |
3088 | ac_script=' | |
3089 | :mline | |
3090 | /\\$/{ | |
3091 | N | |
3092 | s,\\\n,, | |
3093 | b mline | |
3094 | } | |
3095 | t clear | |
3096 | :clear | |
3097 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
3098 | t quote | |
3099 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
3100 | t quote | |
3101 | b any | |
3102 | :quote | |
3103 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
3104 | s/\[/\\&/g | |
3105 | s/\]/\\&/g | |
3106 | s/\$/$$/g | |
3107 | H | |
3108 | :any | |
3109 | ${ | |
3110 | g | |
3111 | s/^\n// | |
3112 | s/\n/ /g | |
3113 | p | |
3114 | } | |
3115 | ' | |
3116 | DEFS=`sed -n "$ac_script" confdefs.h` | |
3117 | ||
ef016f83 MF |
3118 | |
3119 | ac_libobjs= | |
3120 | ac_ltlibobjs= | |
d0ac1c44 | 3121 | U= |
ef016f83 MF |
3122 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
3123 | # 1. Remove the extension, and $U if already installed. | |
3124 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3125 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3126 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3127 | # will be set to the directory where LIBOBJS objects are built. | |
3128 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3129 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
3130 | done | |
3131 | LIBOBJS=$ac_libobjs | |
3132 | ||
3133 | LTLIBOBJS=$ac_ltlibobjs | |
3134 | ||
3135 | ||
3136 | ||
d0ac1c44 | 3137 | : "${CONFIG_STATUS=./config.status}" |
ef016f83 MF |
3138 | ac_write_fail=0 |
3139 | ac_clean_files_save=$ac_clean_files | |
3140 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3141 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
3142 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3143 | as_write_fail=0 | |
3144 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
3145 | #! $SHELL | |
3146 | # Generated by $as_me. | |
3147 | # Run this file to recreate the current configuration. | |
3148 | # Compiler output produced by configure, useful for debugging | |
3149 | # configure, is in config.log if it exists. | |
3150 | ||
3151 | debug=false | |
3152 | ac_cs_recheck=false | |
3153 | ac_cs_silent=false | |
3154 | ||
3155 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3156 | export SHELL | |
3157 | _ASEOF | |
3158 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
3159 | ## -------------------- ## | |
3160 | ## M4sh Initialization. ## | |
3161 | ## -------------------- ## | |
3162 | ||
3163 | # Be more Bourne compatible | |
3164 | DUALCASE=1; export DUALCASE # for MKS sh | |
3165 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
3166 | emulate sh | |
3167 | NULLCMD=: | |
3168 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
3169 | # is contrary to our usage. Disable this feature. | |
3170 | alias -g '${1+"$@"}'='"$@"' | |
3171 | setopt NO_GLOB_SUBST | |
3172 | else | |
3173 | case `(set -o) 2>/dev/null` in #( | |
3174 | *posix*) : | |
3175 | set -o posix ;; #( | |
3176 | *) : | |
3177 | ;; | |
3178 | esac | |
3179 | fi | |
3180 | ||
3181 | ||
3182 | as_nl=' | |
3183 | ' | |
3184 | export as_nl | |
3185 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
3186 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3187 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
3188 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
3189 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
3190 | # but without wasting forks for bash or zsh. | |
3191 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
3192 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3193 | as_echo='print -r --' | |
3194 | as_echo_n='print -rn --' | |
3195 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3196 | as_echo='printf %s\n' | |
3197 | as_echo_n='printf %s' | |
3198 | else | |
3199 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
3200 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
3201 | as_echo_n='/usr/ucb/echo -n' | |
3202 | else | |
3203 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
3204 | as_echo_n_body='eval | |
3205 | arg=$1; | |
3206 | case $arg in #( | |
3207 | *"$as_nl"*) | |
3208 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
3209 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
3210 | esac; | |
3211 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
3212 | ' | |
3213 | export as_echo_n_body | |
3214 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
3215 | fi | |
3216 | export as_echo_body | |
3217 | as_echo='sh -c $as_echo_body as_echo' | |
3218 | fi | |
3219 | ||
3220 | # The user is always right. | |
3221 | if test "${PATH_SEPARATOR+set}" != set; then | |
3222 | PATH_SEPARATOR=: | |
3223 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
3224 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
3225 | PATH_SEPARATOR=';' | |
3226 | } | |
3227 | fi | |
3228 | ||
3229 | ||
3230 | # IFS | |
3231 | # We need space, tab and new line, in precisely that order. Quoting is | |
3232 | # there to prevent editors from complaining about space-tab. | |
3233 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3234 | # splitting by setting IFS to empty value.) | |
3235 | IFS=" "" $as_nl" | |
3236 | ||
3237 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 3238 | as_myself= |
ef016f83 MF |
3239 | case $0 in #(( |
3240 | *[\\/]* ) as_myself=$0 ;; | |
3241 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3242 | for as_dir in $PATH | |
3243 | do | |
3244 | IFS=$as_save_IFS | |
3245 | test -z "$as_dir" && as_dir=. | |
3246 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3247 | done | |
3248 | IFS=$as_save_IFS | |
3249 | ||
3250 | ;; | |
3251 | esac | |
3252 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3253 | # in which case we are not to be found in the path. | |
3254 | if test "x$as_myself" = x; then | |
3255 | as_myself=$0 | |
3256 | fi | |
3257 | if test ! -f "$as_myself"; then | |
3258 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3259 | exit 1 | |
3260 | fi | |
3261 | ||
3262 | # Unset variables that we do not need and which cause bugs (e.g. in | |
3263 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
3264 | # suppresses any "Segmentation fault" message there. '((' could | |
3265 | # trigger a bug in pdksh 5.2.14. | |
3266 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
3267 | do eval test x\${$as_var+set} = xset \ | |
3268 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
3269 | done | |
3270 | PS1='$ ' | |
3271 | PS2='> ' | |
3272 | PS4='+ ' | |
3273 | ||
3274 | # NLS nuisances. | |
3275 | LC_ALL=C | |
3276 | export LC_ALL | |
3277 | LANGUAGE=C | |
3278 | export LANGUAGE | |
3279 | ||
3280 | # CDPATH. | |
3281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
3282 | ||
3283 | ||
d0ac1c44 SM |
3284 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
3285 | # ---------------------------------------- | |
ef016f83 MF |
3286 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
3287 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 3288 | # script with STATUS, using 1 if that was 0. |
ef016f83 MF |
3289 | as_fn_error () |
3290 | { | |
d0ac1c44 SM |
3291 | as_status=$1; test $as_status -eq 0 && as_status=1 |
3292 | if test "$4"; then | |
3293 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3294 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
ef016f83 | 3295 | fi |
d0ac1c44 | 3296 | $as_echo "$as_me: error: $2" >&2 |
ef016f83 MF |
3297 | as_fn_exit $as_status |
3298 | } # as_fn_error | |
3299 | ||
3300 | ||
3301 | # as_fn_set_status STATUS | |
3302 | # ----------------------- | |
3303 | # Set $? to STATUS, without forking. | |
3304 | as_fn_set_status () | |
3305 | { | |
3306 | return $1 | |
3307 | } # as_fn_set_status | |
3308 | ||
3309 | # as_fn_exit STATUS | |
3310 | # ----------------- | |
3311 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
3312 | as_fn_exit () | |
3313 | { | |
3314 | set +e | |
3315 | as_fn_set_status $1 | |
3316 | exit $1 | |
3317 | } # as_fn_exit | |
3318 | ||
3319 | # as_fn_unset VAR | |
3320 | # --------------- | |
3321 | # Portably unset VAR. | |
3322 | as_fn_unset () | |
3323 | { | |
3324 | { eval $1=; unset $1;} | |
3325 | } | |
3326 | as_unset=as_fn_unset | |
3327 | # as_fn_append VAR VALUE | |
3328 | # ---------------------- | |
3329 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
3330 | # advantage of any shell optimizations that allow amortized linear growth over | |
3331 | # repeated appends, instead of the typical quadratic growth present in naive | |
3332 | # implementations. | |
3333 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
3334 | eval 'as_fn_append () | |
3335 | { | |
3336 | eval $1+=\$2 | |
3337 | }' | |
3338 | else | |
3339 | as_fn_append () | |
3340 | { | |
3341 | eval $1=\$$1\$2 | |
3342 | } | |
3343 | fi # as_fn_append | |
3344 | ||
3345 | # as_fn_arith ARG... | |
3346 | # ------------------ | |
3347 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
3348 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
3349 | # must be portable across $(()) and expr. | |
3350 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
3351 | eval 'as_fn_arith () | |
3352 | { | |
3353 | as_val=$(( $* )) | |
3354 | }' | |
3355 | else | |
3356 | as_fn_arith () | |
3357 | { | |
3358 | as_val=`expr "$@" || test $? -eq 1` | |
3359 | } | |
3360 | fi # as_fn_arith | |
3361 | ||
3362 | ||
3363 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3364 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3365 | as_expr=expr | |
3366 | else | |
3367 | as_expr=false | |
3368 | fi | |
3369 | ||
3370 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
3371 | as_basename=basename | |
3372 | else | |
3373 | as_basename=false | |
3374 | fi | |
3375 | ||
3376 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3377 | as_dirname=dirname | |
3378 | else | |
3379 | as_dirname=false | |
3380 | fi | |
3381 | ||
3382 | as_me=`$as_basename -- "$0" || | |
3383 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3384 | X"$0" : 'X\(//\)$' \| \ | |
3385 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
3386 | $as_echo X/"$0" | | |
3387 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3388 | s//\1/ | |
3389 | q | |
3390 | } | |
3391 | /^X\/\(\/\/\)$/{ | |
3392 | s//\1/ | |
3393 | q | |
3394 | } | |
3395 | /^X\/\(\/\).*/{ | |
3396 | s//\1/ | |
3397 | q | |
3398 | } | |
3399 | s/.*/./; q'` | |
3400 | ||
3401 | # Avoid depending upon Character Ranges. | |
3402 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3403 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3404 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3405 | as_cr_digits='0123456789' | |
3406 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3407 | ||
3408 | ECHO_C= ECHO_N= ECHO_T= | |
3409 | case `echo -n x` in #((((( | |
3410 | -n*) | |
3411 | case `echo 'xy\c'` in | |
3412 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3413 | xy) ECHO_C='\c';; | |
3414 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
3415 | ECHO_T=' ';; | |
3416 | esac;; | |
3417 | *) | |
3418 | ECHO_N='-n';; | |
3419 | esac | |
3420 | ||
3421 | rm -f conf$$ conf$$.exe conf$$.file | |
3422 | if test -d conf$$.dir; then | |
3423 | rm -f conf$$.dir/conf$$.file | |
3424 | else | |
3425 | rm -f conf$$.dir | |
3426 | mkdir conf$$.dir 2>/dev/null | |
3427 | fi | |
3428 | if (echo >conf$$.file) 2>/dev/null; then | |
3429 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3430 | as_ln_s='ln -s' | |
3431 | # ... but there are two gotchas: | |
3432 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3433 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 3434 | # In both cases, we have to default to `cp -pR'. |
ef016f83 | 3435 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 3436 | as_ln_s='cp -pR' |
ef016f83 MF |
3437 | elif ln conf$$.file conf$$ 2>/dev/null; then |
3438 | as_ln_s=ln | |
3439 | else | |
d0ac1c44 | 3440 | as_ln_s='cp -pR' |
ef016f83 MF |
3441 | fi |
3442 | else | |
d0ac1c44 | 3443 | as_ln_s='cp -pR' |
ef016f83 MF |
3444 | fi |
3445 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
3446 | rmdir conf$$.dir 2>/dev/null | |
3447 | ||
3448 | ||
3449 | # as_fn_mkdir_p | |
3450 | # ------------- | |
3451 | # Create "$as_dir" as a directory, including parents if necessary. | |
3452 | as_fn_mkdir_p () | |
3453 | { | |
3454 | ||
3455 | case $as_dir in #( | |
3456 | -*) as_dir=./$as_dir;; | |
3457 | esac | |
3458 | test -d "$as_dir" || eval $as_mkdir_p || { | |
3459 | as_dirs= | |
3460 | while :; do | |
3461 | case $as_dir in #( | |
3462 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
3463 | *) as_qdir=$as_dir;; | |
3464 | esac | |
3465 | as_dirs="'$as_qdir' $as_dirs" | |
3466 | as_dir=`$as_dirname -- "$as_dir" || | |
3467 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3468 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3469 | X"$as_dir" : 'X\(//\)$' \| \ | |
3470 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
3471 | $as_echo X"$as_dir" | | |
3472 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3473 | s//\1/ | |
3474 | q | |
3475 | } | |
3476 | /^X\(\/\/\)[^/].*/{ | |
3477 | s//\1/ | |
3478 | q | |
3479 | } | |
3480 | /^X\(\/\/\)$/{ | |
3481 | s//\1/ | |
3482 | q | |
3483 | } | |
3484 | /^X\(\/\).*/{ | |
3485 | s//\1/ | |
3486 | q | |
3487 | } | |
3488 | s/.*/./; q'` | |
3489 | test -d "$as_dir" && break | |
3490 | done | |
3491 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 3492 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
ef016f83 MF |
3493 | |
3494 | ||
3495 | } # as_fn_mkdir_p | |
3496 | if mkdir -p . 2>/dev/null; then | |
3497 | as_mkdir_p='mkdir -p "$as_dir"' | |
3498 | else | |
3499 | test -d ./-p && rmdir ./-p | |
3500 | as_mkdir_p=false | |
3501 | fi | |
3502 | ||
d0ac1c44 SM |
3503 | |
3504 | # as_fn_executable_p FILE | |
3505 | # ----------------------- | |
3506 | # Test if FILE is an executable regular file. | |
3507 | as_fn_executable_p () | |
3508 | { | |
3509 | test -f "$1" && test -x "$1" | |
3510 | } # as_fn_executable_p | |
3511 | as_test_x='test -x' | |
3512 | as_executable_p=as_fn_executable_p | |
ef016f83 MF |
3513 | |
3514 | # Sed expression to map a string onto a valid CPP name. | |
3515 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3516 | ||
3517 | # Sed expression to map a string onto a valid variable name. | |
3518 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3519 | ||
3520 | ||
3521 | exec 6>&1 | |
3522 | ## ----------------------------------- ## | |
3523 | ## Main body of $CONFIG_STATUS script. ## | |
3524 | ## ----------------------------------- ## | |
3525 | _ASEOF | |
3526 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
3527 | ||
3528 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3529 | # Save the log message, to keep $0 and so on meaningful, and to | |
3530 | # report actual input values of CONFIG_FILES etc. instead of their | |
3531 | # values after options handling. | |
3532 | ac_log=" | |
3533 | This file was extended by $as_me, which was | |
d0ac1c44 | 3534 | generated by GNU Autoconf 2.69. Invocation command line was |
ef016f83 MF |
3535 | |
3536 | CONFIG_FILES = $CONFIG_FILES | |
3537 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3538 | CONFIG_LINKS = $CONFIG_LINKS | |
3539 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3540 | $ $0 $@ | |
3541 | ||
3542 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3543 | " | |
3544 | ||
3545 | _ACEOF | |
3546 | ||
3547 | case $ac_config_files in *" | |
3548 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
3549 | esac | |
3550 | ||
ef016f83 MF |
3551 | |
3552 | ||
3553 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3554 | # Files that config.status was made for. | |
3555 | config_files="$ac_config_files" | |
ef016f83 MF |
3556 | config_commands="$ac_config_commands" |
3557 | ||
3558 | _ACEOF | |
3559 | ||
3560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3561 | ac_cs_usage="\ | |
3562 | \`$as_me' instantiates files and other configuration actions | |
3563 | from templates according to the current configuration. Unless the files | |
3564 | and actions are specified as TAGs, all are instantiated by default. | |
3565 | ||
3566 | Usage: $0 [OPTION]... [TAG]... | |
3567 | ||
3568 | -h, --help print this help, then exit | |
3569 | -V, --version print version number and configuration settings, then exit | |
d0ac1c44 | 3570 | --config print configuration, then exit |
ef016f83 MF |
3571 | -q, --quiet, --silent |
3572 | do not print progress messages | |
3573 | -d, --debug don't remove temporary files | |
3574 | --recheck update $as_me by reconfiguring in the same conditions | |
3575 | --file=FILE[:TEMPLATE] | |
3576 | instantiate the configuration file FILE | |
ef016f83 MF |
3577 | |
3578 | Configuration files: | |
3579 | $config_files | |
3580 | ||
ef016f83 MF |
3581 | Configuration commands: |
3582 | $config_commands | |
3583 | ||
3584 | Report bugs to the package provider." | |
3585 | ||
3586 | _ACEOF | |
3587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 3588 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
ef016f83 MF |
3589 | ac_cs_version="\\ |
3590 | config.status | |
d0ac1c44 SM |
3591 | configured by $0, generated by GNU Autoconf 2.69, |
3592 | with options \\"\$ac_cs_config\\" | |
ef016f83 | 3593 | |
d0ac1c44 | 3594 | Copyright (C) 2012 Free Software Foundation, Inc. |
ef016f83 MF |
3595 | This config.status script is free software; the Free Software Foundation |
3596 | gives unlimited permission to copy, distribute and modify it." | |
3597 | ||
3598 | ac_pwd='$ac_pwd' | |
3599 | srcdir='$srcdir' | |
ef016f83 MF |
3600 | test -n "\$AWK" || AWK=awk |
3601 | _ACEOF | |
3602 | ||
3603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3604 | # The default lists apply if the user does not specify any file. | |
3605 | ac_need_defaults=: | |
3606 | while test $# != 0 | |
3607 | do | |
3608 | case $1 in | |
d0ac1c44 | 3609 | --*=?*) |
ef016f83 MF |
3610 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
3611 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
3612 | ac_shift=: | |
3613 | ;; | |
d0ac1c44 SM |
3614 | --*=) |
3615 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
3616 | ac_optarg= | |
3617 | ac_shift=: | |
3618 | ;; | |
ef016f83 MF |
3619 | *) |
3620 | ac_option=$1 | |
3621 | ac_optarg=$2 | |
3622 | ac_shift=shift | |
3623 | ;; | |
3624 | esac | |
3625 | ||
3626 | case $ac_option in | |
3627 | # Handling of the options. | |
3628 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3629 | ac_cs_recheck=: ;; | |
3630 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
3631 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
3632 | --config | --confi | --conf | --con | --co | --c ) |
3633 | $as_echo "$ac_cs_config"; exit ;; | |
ef016f83 MF |
3634 | --debug | --debu | --deb | --de | --d | -d ) |
3635 | debug=: ;; | |
3636 | --file | --fil | --fi | --f ) | |
3637 | $ac_shift | |
3638 | case $ac_optarg in | |
3639 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 3640 | '') as_fn_error $? "missing file argument" ;; |
ef016f83 MF |
3641 | esac |
3642 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
3643 | ac_need_defaults=false;; | |
52d37d2c | 3644 | --he | --h | --help | --hel | -h ) |
ef016f83 MF |
3645 | $as_echo "$ac_cs_usage"; exit ;; |
3646 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3647 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
3648 | ac_cs_silent=: ;; | |
3649 | ||
3650 | # This is an error. | |
d0ac1c44 | 3651 | -*) as_fn_error $? "unrecognized option: \`$1' |
ef016f83 MF |
3652 | Try \`$0 --help' for more information." ;; |
3653 | ||
3654 | *) as_fn_append ac_config_targets " $1" | |
3655 | ac_need_defaults=false ;; | |
3656 | ||
3657 | esac | |
3658 | shift | |
3659 | done | |
3660 | ||
3661 | ac_configure_extra_args= | |
3662 | ||
3663 | if $ac_cs_silent; then | |
3664 | exec 6>/dev/null | |
3665 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
3666 | fi | |
3667 | ||
3668 | _ACEOF | |
3669 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3670 | if \$ac_cs_recheck; then | |
d0ac1c44 | 3671 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
ef016f83 MF |
3672 | shift |
3673 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
3674 | CONFIG_SHELL='$SHELL' | |
3675 | export CONFIG_SHELL | |
3676 | exec "\$@" | |
3677 | fi | |
3678 | ||
3679 | _ACEOF | |
3680 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3681 | exec 5>>config.log | |
3682 | { | |
3683 | echo | |
3684 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3685 | ## Running $as_me. ## | |
3686 | _ASBOX | |
3687 | $as_echo "$ac_log" | |
3688 | } >&5 | |
3689 | ||
3690 | _ACEOF | |
3691 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3692 | _ACEOF | |
3693 | ||
3694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3695 | ||
3696 | # Handling of arguments. | |
3697 | for ac_config_target in $ac_config_targets | |
3698 | do | |
3699 | case $ac_config_target in | |
ef016f83 MF |
3700 | "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;; |
3701 | "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;; | |
3702 | ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;; | |
3703 | "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;; | |
3704 | "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;; | |
3705 | ||
d0ac1c44 | 3706 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
ef016f83 MF |
3707 | esac |
3708 | done | |
3709 | ||
3710 | ||
3711 | # If the user did not use the arguments to specify the items to instantiate, | |
3712 | # then the envvar interface is used. Set only those that are not. | |
3713 | # We use the long form for the default assignment because of an extremely | |
3714 | # bizarre bug on SunOS 4.1.3. | |
3715 | if $ac_need_defaults; then | |
3716 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
ef016f83 MF |
3717 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
3718 | fi | |
3719 | ||
3720 | # Have a temporary directory for convenience. Make it in the build tree | |
3721 | # simply because there is no reason against having it here, and in addition, | |
3722 | # creating and moving files from /tmp can sometimes cause problems. | |
3723 | # Hook for its removal unless debugging. | |
3724 | # Note that there is a small window in which the directory will not be cleaned: | |
3725 | # after its creation but before its name has been assigned to `$tmp'. | |
3726 | $debug || | |
3727 | { | |
d0ac1c44 | 3728 | tmp= ac_tmp= |
ef016f83 | 3729 | trap 'exit_status=$? |
d0ac1c44 SM |
3730 | : "${ac_tmp:=$tmp}" |
3731 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
ef016f83 MF |
3732 | ' 0 |
3733 | trap 'as_fn_exit 1' 1 2 13 15 | |
3734 | } | |
3735 | # Create a (secure) tmp directory for tmp files. | |
3736 | ||
3737 | { | |
3738 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
d0ac1c44 | 3739 | test -d "$tmp" |
ef016f83 MF |
3740 | } || |
3741 | { | |
3742 | tmp=./conf$$-$RANDOM | |
3743 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
3744 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
3745 | ac_tmp=$tmp | |
ef016f83 MF |
3746 | |
3747 | # Set up the scripts for CONFIG_FILES section. | |
3748 | # No need to generate them if there are no CONFIG_FILES. | |
3749 | # This happens for instance with `./config.status config.h'. | |
3750 | if test -n "$CONFIG_FILES"; then | |
3751 | ||
3752 | ||
3753 | ac_cr=`echo X | tr X '\015'` | |
3754 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
3755 | # But we know of no other shell where ac_cr would be empty at this | |
3756 | # point, so we can use a bashism as a fallback. | |
3757 | if test "x$ac_cr" = x; then | |
3758 | eval ac_cr=\$\'\\r\' | |
3759 | fi | |
3760 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
3761 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 3762 | ac_cs_awk_cr='\\r' |
ef016f83 MF |
3763 | else |
3764 | ac_cs_awk_cr=$ac_cr | |
3765 | fi | |
3766 | ||
d0ac1c44 | 3767 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
ef016f83 MF |
3768 | _ACEOF |
3769 | ||
3770 | ||
3771 | { | |
3772 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
3773 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
3774 | echo "_ACEOF" | |
3775 | } >conf$$subs.sh || | |
d0ac1c44 SM |
3776 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
3777 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
ef016f83 MF |
3778 | ac_delim='%!_!# ' |
3779 | for ac_last_try in false false false false false :; do | |
3780 | . ./conf$$subs.sh || | |
d0ac1c44 | 3781 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ef016f83 MF |
3782 | |
3783 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
3784 | if test $ac_delim_n = $ac_delim_num; then | |
3785 | break | |
3786 | elif $ac_last_try; then | |
d0ac1c44 | 3787 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
ef016f83 MF |
3788 | else |
3789 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
3790 | fi | |
3791 | done | |
3792 | rm -f conf$$subs.sh | |
3793 | ||
3794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 3795 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
ef016f83 MF |
3796 | _ACEOF |
3797 | sed -n ' | |
3798 | h | |
3799 | s/^/S["/; s/!.*/"]=/ | |
3800 | p | |
3801 | g | |
3802 | s/^[^!]*!// | |
3803 | :repl | |
3804 | t repl | |
3805 | s/'"$ac_delim"'$// | |
3806 | t delim | |
3807 | :nl | |
3808 | h | |
d0ac1c44 | 3809 | s/\(.\{148\}\)..*/\1/ |
ef016f83 MF |
3810 | t more1 |
3811 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
3812 | p | |
3813 | n | |
3814 | b repl | |
3815 | :more1 | |
3816 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3817 | p | |
3818 | g | |
3819 | s/.\{148\}// | |
3820 | t nl | |
3821 | :delim | |
3822 | h | |
d0ac1c44 | 3823 | s/\(.\{148\}\)..*/\1/ |
ef016f83 MF |
3824 | t more2 |
3825 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
3826 | p | |
3827 | b | |
3828 | :more2 | |
3829 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
3830 | p | |
3831 | g | |
3832 | s/.\{148\}// | |
3833 | t delim | |
3834 | ' <conf$$subs.awk | sed ' | |
3835 | /^[^""]/{ | |
3836 | N | |
3837 | s/\n// | |
3838 | } | |
3839 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
3840 | rm -f conf$$subs.awk | |
3841 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3842 | _ACAWK | |
d0ac1c44 | 3843 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
ef016f83 MF |
3844 | for (key in S) S_is_set[key] = 1 |
3845 | FS = "\a" | |
3846 | ||
3847 | } | |
3848 | { | |
3849 | line = $ 0 | |
3850 | nfields = split(line, field, "@") | |
3851 | substed = 0 | |
3852 | len = length(field[1]) | |
3853 | for (i = 2; i < nfields; i++) { | |
3854 | key = field[i] | |
3855 | keylen = length(key) | |
3856 | if (S_is_set[key]) { | |
3857 | value = S[key] | |
3858 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
3859 | len += length(value) + length(field[++i]) | |
3860 | substed = 1 | |
3861 | } else | |
3862 | len += 1 + keylen | |
3863 | } | |
3864 | ||
3865 | print line | |
3866 | } | |
3867 | ||
3868 | _ACAWK | |
3869 | _ACEOF | |
3870 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3871 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
3872 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
3873 | else | |
3874 | cat | |
d0ac1c44 SM |
3875 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
3876 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
ef016f83 MF |
3877 | _ACEOF |
3878 | ||
d0ac1c44 SM |
3879 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
3880 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
ef016f83 MF |
3881 | # trailing colons and then remove the whole line if VPATH becomes empty |
3882 | # (actually we leave an empty line to preserve line numbers). | |
3883 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
3884 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
3885 | h | |
3886 | s/// | |
3887 | s/^/:/ | |
3888 | s/[ ]*$/:/ | |
3889 | s/:\$(srcdir):/:/g | |
3890 | s/:\${srcdir}:/:/g | |
3891 | s/:@srcdir@:/:/g | |
3892 | s/^:*// | |
ef016f83 | 3893 | s/:*$// |
d0ac1c44 SM |
3894 | x |
3895 | s/\(=[ ]*\).*/\1/ | |
3896 | G | |
3897 | s/\n// | |
ef016f83 MF |
3898 | s/^[^=]*=[ ]*$// |
3899 | }' | |
3900 | fi | |
3901 | ||
3902 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3903 | fi # test -n "$CONFIG_FILES" | |
3904 | ||
ef016f83 | 3905 | |
52d37d2c | 3906 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
ef016f83 MF |
3907 | shift |
3908 | for ac_tag | |
3909 | do | |
3910 | case $ac_tag in | |
3911 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
3912 | esac | |
3913 | case $ac_mode$ac_tag in | |
3914 | :[FHL]*:*);; | |
d0ac1c44 | 3915 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
ef016f83 MF |
3916 | :[FH]-) ac_tag=-:-;; |
3917 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
3918 | esac | |
3919 | ac_save_IFS=$IFS | |
3920 | IFS=: | |
3921 | set x $ac_tag | |
3922 | IFS=$ac_save_IFS | |
3923 | shift | |
3924 | ac_file=$1 | |
3925 | shift | |
3926 | ||
3927 | case $ac_mode in | |
3928 | :L) ac_source=$1;; | |
3929 | :[FH]) | |
3930 | ac_file_inputs= | |
3931 | for ac_f | |
3932 | do | |
3933 | case $ac_f in | |
d0ac1c44 | 3934 | -) ac_f="$ac_tmp/stdin";; |
ef016f83 MF |
3935 | *) # Look for the file first in the build tree, then in the source tree |
3936 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
3937 | # because $ac_f cannot contain `:'. | |
3938 | test -f "$ac_f" || | |
3939 | case $ac_f in | |
3940 | [\\/$]*) false;; | |
3941 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
3942 | esac || | |
d0ac1c44 | 3943 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
ef016f83 MF |
3944 | esac |
3945 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
3946 | as_fn_append ac_file_inputs " '$ac_f'" | |
3947 | done | |
3948 | ||
3949 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3950 | # use $as_me), people would be surprised to read: | |
3951 | # /* config.h. Generated by config.status. */ | |
3952 | configure_input='Generated from '` | |
3953 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
3954 | `' by configure.' | |
3955 | if test x"$ac_file" != x-; then | |
3956 | configure_input="$ac_file. $configure_input" | |
3957 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
3958 | $as_echo "$as_me: creating $ac_file" >&6;} | |
3959 | fi | |
3960 | # Neutralize special characters interpreted by sed in replacement strings. | |
3961 | case $configure_input in #( | |
3962 | *\&* | *\|* | *\\* ) | |
3963 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
3964 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
3965 | *) ac_sed_conf_input=$configure_input;; | |
3966 | esac | |
3967 | ||
3968 | case $ac_tag in | |
d0ac1c44 SM |
3969 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
3970 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
ef016f83 MF |
3971 | esac |
3972 | ;; | |
3973 | esac | |
3974 | ||
3975 | ac_dir=`$as_dirname -- "$ac_file" || | |
3976 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3977 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3978 | X"$ac_file" : 'X\(//\)$' \| \ | |
3979 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
3980 | $as_echo X"$ac_file" | | |
3981 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
3982 | s//\1/ | |
3983 | q | |
3984 | } | |
3985 | /^X\(\/\/\)[^/].*/{ | |
3986 | s//\1/ | |
3987 | q | |
3988 | } | |
3989 | /^X\(\/\/\)$/{ | |
3990 | s//\1/ | |
3991 | q | |
3992 | } | |
3993 | /^X\(\/\).*/{ | |
3994 | s//\1/ | |
3995 | q | |
3996 | } | |
3997 | s/.*/./; q'` | |
3998 | as_dir="$ac_dir"; as_fn_mkdir_p | |
3999 | ac_builddir=. | |
4000 | ||
4001 | case "$ac_dir" in | |
4002 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4003 | *) | |
4004 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4005 | # A ".." for each directory in $ac_dir_suffix. | |
4006 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4007 | case $ac_top_builddir_sub in | |
4008 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4009 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4010 | esac ;; | |
4011 | esac | |
4012 | ac_abs_top_builddir=$ac_pwd | |
4013 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4014 | # for backward compatibility: | |
4015 | ac_top_builddir=$ac_top_build_prefix | |
4016 | ||
4017 | case $srcdir in | |
4018 | .) # We are building in place. | |
4019 | ac_srcdir=. | |
4020 | ac_top_srcdir=$ac_top_builddir_sub | |
4021 | ac_abs_top_srcdir=$ac_pwd ;; | |
4022 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4023 | ac_srcdir=$srcdir$ac_dir_suffix; | |
4024 | ac_top_srcdir=$srcdir | |
4025 | ac_abs_top_srcdir=$srcdir ;; | |
4026 | *) # Relative name. | |
4027 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
4028 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
4029 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4030 | esac | |
4031 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
4032 | ||
4033 | ||
4034 | case $ac_mode in | |
4035 | :F) | |
4036 | # | |
4037 | # CONFIG_FILE | |
4038 | # | |
4039 | ||
ef016f83 MF |
4040 | _ACEOF |
4041 | ||
4042 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4043 | # If the template does not know about datarootdir, expand it. | |
4044 | # FIXME: This hack should be removed a few years after 2.60. | |
4045 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
4046 | ac_sed_dataroot=' | |
4047 | /datarootdir/ { | |
4048 | p | |
4049 | q | |
4050 | } | |
4051 | /@datadir@/p | |
4052 | /@docdir@/p | |
4053 | /@infodir@/p | |
4054 | /@localedir@/p | |
4055 | /@mandir@/p' | |
4056 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
4057 | *datarootdir*) ac_datarootdir_seen=yes;; | |
4058 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4060 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4061 | _ACEOF | |
4062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4063 | ac_datarootdir_hack=' | |
4064 | s&@datadir@&$datadir&g | |
4065 | s&@docdir@&$docdir&g | |
4066 | s&@infodir@&$infodir&g | |
4067 | s&@localedir@&$localedir&g | |
4068 | s&@mandir@&$mandir&g | |
4069 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
4070 | esac | |
4071 | _ACEOF | |
4072 | ||
4073 | # Neutralize VPATH when `$srcdir' = `.'. | |
4074 | # Shell code in configure.ac might set extrasub. | |
4075 | # FIXME: do we really want to maintain this feature? | |
4076 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4077 | ac_sed_extra="$ac_vpsub | |
4078 | $extrasub | |
4079 | _ACEOF | |
4080 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4081 | :t | |
4082 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4083 | s|@configure_input@|$ac_sed_conf_input|;t t | |
4084 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4085 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
4086 | s&@srcdir@&$ac_srcdir&;t t | |
4087 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4088 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
4089 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
4090 | s&@builddir@&$ac_builddir&;t t | |
4091 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
4092 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
ef016f83 MF |
4093 | $ac_datarootdir_hack |
4094 | " | |
d0ac1c44 SM |
4095 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
4096 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
ef016f83 MF |
4097 | |
4098 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
4099 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
4100 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
4101 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
ef016f83 | 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 4103 | which seems to be undefined. Please make sure it is defined" >&5 |
ef016f83 | 4104 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 4105 | which seems to be undefined. Please make sure it is defined" >&2;} |
ef016f83 | 4106 | |
d0ac1c44 | 4107 | rm -f "$ac_tmp/stdin" |
ef016f83 | 4108 | case $ac_file in |
d0ac1c44 SM |
4109 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
4110 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
ef016f83 | 4111 | esac \ |
d0ac1c44 | 4112 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
ef016f83 | 4113 | ;; |
52d37d2c | 4114 | |
ef016f83 | 4115 | |
ef016f83 MF |
4116 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
4117 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
4118 | ;; | |
4119 | esac | |
4120 | ||
4121 | ||
4122 | case $ac_file$ac_mode in | |
4123 | "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..." | |
4124 | rm -f Makesim1.tmp Makesim2.tmp Makefile | |
4125 | sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp | |
4126 | sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp | |
4127 | sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \ | |
4128 | -e '/^## COMMON_POST_/ r Makesim2.tmp' \ | |
4129 | <Makefile.sim >Makefile | |
4130 | rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp | |
4131 | ;; | |
4132 | "stamp-h":C) echo > stamp-h ;; | |
4133 | ||
4134 | esac | |
4135 | done # for ac_tag | |
4136 | ||
4137 | ||
4138 | as_fn_exit 0 | |
4139 | _ACEOF | |
4140 | ac_clean_files=$ac_clean_files_save | |
4141 | ||
4142 | test $ac_write_fail = 0 || | |
d0ac1c44 | 4143 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
ef016f83 MF |
4144 | |
4145 | ||
4146 | # configure is writing to config.log, and then calls config.status. | |
4147 | # config.status does its own redirection, appending to config.log. | |
4148 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4149 | # by configure, so config.status won't be able to write to it; its | |
4150 | # output is simply discarded. So we exec the FD to /dev/null, | |
4151 | # effectively closing config.log, so it can be properly (re)opened and | |
4152 | # appended to by config.status. When coming back to configure, we | |
4153 | # need to make the FD available again. | |
4154 | if test "$no_create" != yes; then | |
4155 | ac_cs_success=: | |
4156 | ac_config_status_args= | |
4157 | test "$silent" = yes && | |
4158 | ac_config_status_args="$ac_config_status_args --quiet" | |
4159 | exec 5>/dev/null | |
4160 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4161 | exec 5>>config.log | |
4162 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4163 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 4164 | $ac_cs_success || as_fn_exit 1 |
ef016f83 MF |
4165 | fi |
4166 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
4168 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
4169 | fi | |
4170 | ||
4171 |