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