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