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