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