xref: /netbsd-src/external/gpl3/gdb.old/dist/sim/ppc/configure (revision 8b657b0747480f8989760d71343d6dd33f8d4cf9)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="Makefile.in"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624sim_termio
625sim_model_issue
626sim_default_model
627sim_model
628sim_monitor
629sim_float
630sim_timebase
631sim_hostbitsize
632sim_bitsize
633sim_igen_smp
634sim_smp
635sim_xor_endian
636sim_hw_obj
637sim_hw_src
638sim_icache
639sim_filter
640sim_jump
641sim_decode_mechanism
642sim_dup
643sim_switch
644sim_opcode
645sim_line_nr
646EGREP
647GREP
648CPP
649target_os
650target_vendor
651target_cpu
652target
653host_os
654host_vendor
655host_cpu
656host
657build_os
658build_vendor
659build_cpu
660build
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668INSTALL_DATA
669INSTALL_SCRIPT
670INSTALL_PROGRAM
671target_alias
672host_alias
673build_alias
674LIBS
675ECHO_T
676ECHO_N
677ECHO_C
678DEFS
679mandir
680localedir
681libdir
682psdir
683pdfdir
684dvidir
685htmldir
686infodir
687docdir
688oldincludedir
689includedir
690localstatedir
691sharedstatedir
692sysconfdir
693datadir
694datarootdir
695libexecdir
696sbindir
697bindir
698program_transform_name
699prefix
700exec_prefix
701PACKAGE_URL
702PACKAGE_BUGREPORT
703PACKAGE_STRING
704PACKAGE_VERSION
705PACKAGE_TARNAME
706PACKAGE_NAME
707PATH_SEPARATOR
708SHELL'
709ac_subst_files=''
710ac_user_opts='
711enable_option_checking
712enable_sim_bitsize
713enable_sim_decode_mechanism
714enable_sim_default_model
715enable_sim_duplicate
716enable_sim_filter
717enable_sim_float
718enable_sim_hardware
719enable_sim_icache
720enable_sim_jump
721enable_sim_line_nr
722enable_sim_model
723enable_sim_model_issue
724enable_sim_monitor
725enable_sim_opcode
726enable_sim_smp
727enable_sim_switch
728enable_sim_timebase
729enable_sim_xor_endian
730'
731      ac_precious_vars='build_alias
732host_alias
733target_alias
734CC
735CFLAGS
736LDFLAGS
737LIBS
738CPPFLAGS
739CPP'
740
741
742# Initialize some variables set by options.
743ac_init_help=
744ac_init_version=false
745ac_unrecognized_opts=
746ac_unrecognized_sep=
747# The variables have the same names as the options, with
748# dashes changed to underlines.
749cache_file=/dev/null
750exec_prefix=NONE
751no_create=
752no_recursion=
753prefix=NONE
754program_prefix=NONE
755program_suffix=NONE
756program_transform_name=s,x,x,
757silent=
758site=
759srcdir=
760verbose=
761x_includes=NONE
762x_libraries=NONE
763
764# Installation directory options.
765# These are left unexpanded so users can "make install exec_prefix=/foo"
766# and all the variables that are supposed to be based on exec_prefix
767# by default will actually change.
768# Use braces instead of parens because sh, perl, etc. also accept them.
769# (The list follows the same order as the GNU Coding Standards.)
770bindir='${exec_prefix}/bin'
771sbindir='${exec_prefix}/sbin'
772libexecdir='${exec_prefix}/libexec'
773datarootdir='${prefix}/share'
774datadir='${datarootdir}'
775sysconfdir='${prefix}/etc'
776sharedstatedir='${prefix}/com'
777localstatedir='${prefix}/var'
778includedir='${prefix}/include'
779oldincludedir='/usr/include'
780docdir='${datarootdir}/doc/${PACKAGE}'
781infodir='${datarootdir}/info'
782htmldir='${docdir}'
783dvidir='${docdir}'
784pdfdir='${docdir}'
785psdir='${docdir}'
786libdir='${exec_prefix}/lib'
787localedir='${datarootdir}/locale'
788mandir='${datarootdir}/man'
789
790ac_prev=
791ac_dashdash=
792for ac_option
793do
794  # If the previous option needs an argument, assign it.
795  if test -n "$ac_prev"; then
796    eval $ac_prev=\$ac_option
797    ac_prev=
798    continue
799  fi
800
801  case $ac_option in
802  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803  *=)   ac_optarg= ;;
804  *)    ac_optarg=yes ;;
805  esac
806
807  # Accept the important Cygnus configure options, so we can diagnose typos.
808
809  case $ac_dashdash$ac_option in
810  --)
811    ac_dashdash=yes ;;
812
813  -bindir | --bindir | --bindi | --bind | --bin | --bi)
814    ac_prev=bindir ;;
815  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816    bindir=$ac_optarg ;;
817
818  -build | --build | --buil | --bui | --bu)
819    ac_prev=build_alias ;;
820  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821    build_alias=$ac_optarg ;;
822
823  -cache-file | --cache-file | --cache-fil | --cache-fi \
824  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825    ac_prev=cache_file ;;
826  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828    cache_file=$ac_optarg ;;
829
830  --config-cache | -C)
831    cache_file=config.cache ;;
832
833  -datadir | --datadir | --datadi | --datad)
834    ac_prev=datadir ;;
835  -datadir=* | --datadir=* | --datadi=* | --datad=*)
836    datadir=$ac_optarg ;;
837
838  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839  | --dataroo | --dataro | --datar)
840    ac_prev=datarootdir ;;
841  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843    datarootdir=$ac_optarg ;;
844
845  -disable-* | --disable-*)
846    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847    # Reject names that are not valid shell variable names.
848    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849      as_fn_error $? "invalid feature name: $ac_useropt"
850    ac_useropt_orig=$ac_useropt
851    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852    case $ac_user_opts in
853      *"
854"enable_$ac_useropt"
855"*) ;;
856      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857	 ac_unrecognized_sep=', ';;
858    esac
859    eval enable_$ac_useropt=no ;;
860
861  -docdir | --docdir | --docdi | --doc | --do)
862    ac_prev=docdir ;;
863  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864    docdir=$ac_optarg ;;
865
866  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867    ac_prev=dvidir ;;
868  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869    dvidir=$ac_optarg ;;
870
871  -enable-* | --enable-*)
872    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873    # Reject names that are not valid shell variable names.
874    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875      as_fn_error $? "invalid feature name: $ac_useropt"
876    ac_useropt_orig=$ac_useropt
877    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878    case $ac_user_opts in
879      *"
880"enable_$ac_useropt"
881"*) ;;
882      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883	 ac_unrecognized_sep=', ';;
884    esac
885    eval enable_$ac_useropt=\$ac_optarg ;;
886
887  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889  | --exec | --exe | --ex)
890    ac_prev=exec_prefix ;;
891  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893  | --exec=* | --exe=* | --ex=*)
894    exec_prefix=$ac_optarg ;;
895
896  -gas | --gas | --ga | --g)
897    # Obsolete; use --with-gas.
898    with_gas=yes ;;
899
900  -help | --help | --hel | --he | -h)
901    ac_init_help=long ;;
902  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903    ac_init_help=recursive ;;
904  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905    ac_init_help=short ;;
906
907  -host | --host | --hos | --ho)
908    ac_prev=host_alias ;;
909  -host=* | --host=* | --hos=* | --ho=*)
910    host_alias=$ac_optarg ;;
911
912  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913    ac_prev=htmldir ;;
914  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915  | --ht=*)
916    htmldir=$ac_optarg ;;
917
918  -includedir | --includedir | --includedi | --included | --include \
919  | --includ | --inclu | --incl | --inc)
920    ac_prev=includedir ;;
921  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922  | --includ=* | --inclu=* | --incl=* | --inc=*)
923    includedir=$ac_optarg ;;
924
925  -infodir | --infodir | --infodi | --infod | --info | --inf)
926    ac_prev=infodir ;;
927  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928    infodir=$ac_optarg ;;
929
930  -libdir | --libdir | --libdi | --libd)
931    ac_prev=libdir ;;
932  -libdir=* | --libdir=* | --libdi=* | --libd=*)
933    libdir=$ac_optarg ;;
934
935  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936  | --libexe | --libex | --libe)
937    ac_prev=libexecdir ;;
938  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939  | --libexe=* | --libex=* | --libe=*)
940    libexecdir=$ac_optarg ;;
941
942  -localedir | --localedir | --localedi | --localed | --locale)
943    ac_prev=localedir ;;
944  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945    localedir=$ac_optarg ;;
946
947  -localstatedir | --localstatedir | --localstatedi | --localstated \
948  | --localstate | --localstat | --localsta | --localst | --locals)
949    ac_prev=localstatedir ;;
950  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952    localstatedir=$ac_optarg ;;
953
954  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955    ac_prev=mandir ;;
956  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957    mandir=$ac_optarg ;;
958
959  -nfp | --nfp | --nf)
960    # Obsolete; use --without-fp.
961    with_fp=no ;;
962
963  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964  | --no-cr | --no-c | -n)
965    no_create=yes ;;
966
967  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969    no_recursion=yes ;;
970
971  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973  | --oldin | --oldi | --old | --ol | --o)
974    ac_prev=oldincludedir ;;
975  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978    oldincludedir=$ac_optarg ;;
979
980  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981    ac_prev=prefix ;;
982  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983    prefix=$ac_optarg ;;
984
985  -program-prefix | --program-prefix | --program-prefi | --program-pref \
986  | --program-pre | --program-pr | --program-p)
987    ac_prev=program_prefix ;;
988  -program-prefix=* | --program-prefix=* | --program-prefi=* \
989  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990    program_prefix=$ac_optarg ;;
991
992  -program-suffix | --program-suffix | --program-suffi | --program-suff \
993  | --program-suf | --program-su | --program-s)
994    ac_prev=program_suffix ;;
995  -program-suffix=* | --program-suffix=* | --program-suffi=* \
996  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997    program_suffix=$ac_optarg ;;
998
999  -program-transform-name | --program-transform-name \
1000  | --program-transform-nam | --program-transform-na \
1001  | --program-transform-n | --program-transform- \
1002  | --program-transform | --program-transfor \
1003  | --program-transfo | --program-transf \
1004  | --program-trans | --program-tran \
1005  | --progr-tra | --program-tr | --program-t)
1006    ac_prev=program_transform_name ;;
1007  -program-transform-name=* | --program-transform-name=* \
1008  | --program-transform-nam=* | --program-transform-na=* \
1009  | --program-transform-n=* | --program-transform-=* \
1010  | --program-transform=* | --program-transfor=* \
1011  | --program-transfo=* | --program-transf=* \
1012  | --program-trans=* | --program-tran=* \
1013  | --progr-tra=* | --program-tr=* | --program-t=*)
1014    program_transform_name=$ac_optarg ;;
1015
1016  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017    ac_prev=pdfdir ;;
1018  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019    pdfdir=$ac_optarg ;;
1020
1021  -psdir | --psdir | --psdi | --psd | --ps)
1022    ac_prev=psdir ;;
1023  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024    psdir=$ac_optarg ;;
1025
1026  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027  | -silent | --silent | --silen | --sile | --sil)
1028    silent=yes ;;
1029
1030  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031    ac_prev=sbindir ;;
1032  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033  | --sbi=* | --sb=*)
1034    sbindir=$ac_optarg ;;
1035
1036  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038  | --sharedst | --shareds | --shared | --share | --shar \
1039  | --sha | --sh)
1040    ac_prev=sharedstatedir ;;
1041  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044  | --sha=* | --sh=*)
1045    sharedstatedir=$ac_optarg ;;
1046
1047  -site | --site | --sit)
1048    ac_prev=site ;;
1049  -site=* | --site=* | --sit=*)
1050    site=$ac_optarg ;;
1051
1052  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053    ac_prev=srcdir ;;
1054  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055    srcdir=$ac_optarg ;;
1056
1057  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058  | --syscon | --sysco | --sysc | --sys | --sy)
1059    ac_prev=sysconfdir ;;
1060  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062    sysconfdir=$ac_optarg ;;
1063
1064  -target | --target | --targe | --targ | --tar | --ta | --t)
1065    ac_prev=target_alias ;;
1066  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067    target_alias=$ac_optarg ;;
1068
1069  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070    verbose=yes ;;
1071
1072  -version | --version | --versio | --versi | --vers | -V)
1073    ac_init_version=: ;;
1074
1075  -with-* | --with-*)
1076    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079      as_fn_error $? "invalid package name: $ac_useropt"
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"with_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087	 ac_unrecognized_sep=', ';;
1088    esac
1089    eval with_$ac_useropt=\$ac_optarg ;;
1090
1091  -without-* | --without-*)
1092    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093    # Reject names that are not valid shell variable names.
1094    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095      as_fn_error $? "invalid package name: $ac_useropt"
1096    ac_useropt_orig=$ac_useropt
1097    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098    case $ac_user_opts in
1099      *"
1100"with_$ac_useropt"
1101"*) ;;
1102      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103	 ac_unrecognized_sep=', ';;
1104    esac
1105    eval with_$ac_useropt=no ;;
1106
1107  --x)
1108    # Obsolete; use --with-x.
1109    with_x=yes ;;
1110
1111  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112  | --x-incl | --x-inc | --x-in | --x-i)
1113    ac_prev=x_includes ;;
1114  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116    x_includes=$ac_optarg ;;
1117
1118  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120    ac_prev=x_libraries ;;
1121  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123    x_libraries=$ac_optarg ;;
1124
1125  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1126Try \`$0 --help' for more information"
1127    ;;
1128
1129  *=*)
1130    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131    # Reject names that are not valid shell variable names.
1132    case $ac_envvar in #(
1133      '' | [0-9]* | *[!_$as_cr_alnum]* )
1134      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1135    esac
1136    eval $ac_envvar=\$ac_optarg
1137    export $ac_envvar ;;
1138
1139  *)
1140    # FIXME: should be removed in autoconf 3.0.
1141    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1145    ;;
1146
1147  esac
1148done
1149
1150if test -n "$ac_prev"; then
1151  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152  as_fn_error $? "missing argument to $ac_option"
1153fi
1154
1155if test -n "$ac_unrecognized_opts"; then
1156  case $enable_option_checking in
1157    no) ;;
1158    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1159    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160  esac
1161fi
1162
1163# Check all directory arguments for consistency.
1164for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165		datadir sysconfdir sharedstatedir localstatedir includedir \
1166		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167		libdir localedir mandir
1168do
1169  eval ac_val=\$$ac_var
1170  # Remove trailing slashes.
1171  case $ac_val in
1172    */ )
1173      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174      eval $ac_var=\$ac_val;;
1175  esac
1176  # Be sure to have absolute directory names.
1177  case $ac_val in
1178    [\\/$]* | ?:[\\/]* )  continue;;
1179    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180  esac
1181  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1182done
1183
1184# There might be people who depend on the old broken behavior: `$host'
1185# used to hold the argument of --host etc.
1186# FIXME: To remove some day.
1187build=$build_alias
1188host=$host_alias
1189target=$target_alias
1190
1191# FIXME: To remove some day.
1192if test "x$host_alias" != x; then
1193  if test "x$build_alias" = x; then
1194    cross_compiling=maybe
1195  elif test "x$build_alias" != "x$host_alias"; then
1196    cross_compiling=yes
1197  fi
1198fi
1199
1200ac_tool_prefix=
1201test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202
1203test "$silent" = yes && exec 6>/dev/null
1204
1205
1206ac_pwd=`pwd` && test -n "$ac_pwd" &&
1207ac_ls_di=`ls -di .` &&
1208ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1209  as_fn_error $? "working directory cannot be determined"
1210test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211  as_fn_error $? "pwd does not report name of working directory"
1212
1213
1214# Find the source files, if location was not specified.
1215if test -z "$srcdir"; then
1216  ac_srcdir_defaulted=yes
1217  # Try the directory containing this script, then the parent directory.
1218  ac_confdir=`$as_dirname -- "$as_myself" ||
1219$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1220	 X"$as_myself" : 'X\(//\)[^/]' \| \
1221	 X"$as_myself" : 'X\(//\)$' \| \
1222	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1223$as_echo X"$as_myself" |
1224    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225	    s//\1/
1226	    q
1227	  }
1228	  /^X\(\/\/\)[^/].*/{
1229	    s//\1/
1230	    q
1231	  }
1232	  /^X\(\/\/\)$/{
1233	    s//\1/
1234	    q
1235	  }
1236	  /^X\(\/\).*/{
1237	    s//\1/
1238	    q
1239	  }
1240	  s/.*/./; q'`
1241  srcdir=$ac_confdir
1242  if test ! -r "$srcdir/$ac_unique_file"; then
1243    srcdir=..
1244  fi
1245else
1246  ac_srcdir_defaulted=no
1247fi
1248if test ! -r "$srcdir/$ac_unique_file"; then
1249  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1251fi
1252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253ac_abs_confdir=`(
1254	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255	pwd)`
1256# When building in place, set srcdir=.
1257if test "$ac_abs_confdir" = "$ac_pwd"; then
1258  srcdir=.
1259fi
1260# Remove unnecessary trailing slashes from srcdir.
1261# Double slashes in file names in object file debugging info
1262# mess up M-x gdb in Emacs.
1263case $srcdir in
1264*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265esac
1266for ac_var in $ac_precious_vars; do
1267  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268  eval ac_env_${ac_var}_value=\$${ac_var}
1269  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271done
1272
1273#
1274# Report the --help message.
1275#
1276if test "$ac_init_help" = "long"; then
1277  # Omit some internal or obsolete options to make the list less imposing.
1278  # This message is too long to be a string in the A/UX 3.1 sh.
1279  cat <<_ACEOF
1280\`configure' configures this package to adapt to many kinds of systems.
1281
1282Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285VAR=VALUE.  See below for descriptions of some of the useful variables.
1286
1287Defaults for the options are specified in brackets.
1288
1289Configuration:
1290  -h, --help              display this help and exit
1291      --help=short        display options specific to this package
1292      --help=recursive    display the short help of all the included packages
1293  -V, --version           display version information and exit
1294  -q, --quiet, --silent   do not print \`checking ...' messages
1295      --cache-file=FILE   cache test results in FILE [disabled]
1296  -C, --config-cache      alias for \`--cache-file=config.cache'
1297  -n, --no-create         do not create output files
1298      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1299
1300Installation directories:
1301  --prefix=PREFIX         install architecture-independent files in PREFIX
1302                          [$ac_default_prefix]
1303  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1304                          [PREFIX]
1305
1306By default, \`make install' will install all the files in
1307\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1308an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309for instance \`--prefix=\$HOME'.
1310
1311For better control, use the options below.
1312
1313Fine tuning of the installation directories:
1314  --bindir=DIR            user executables [EPREFIX/bin]
1315  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1316  --libexecdir=DIR        program executables [EPREFIX/libexec]
1317  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1318  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1319  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1320  --libdir=DIR            object code libraries [EPREFIX/lib]
1321  --includedir=DIR        C header files [PREFIX/include]
1322  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1323  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1324  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1325  --infodir=DIR           info documentation [DATAROOTDIR/info]
1326  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1327  --mandir=DIR            man documentation [DATAROOTDIR/man]
1328  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1329  --htmldir=DIR           html documentation [DOCDIR]
1330  --dvidir=DIR            dvi documentation [DOCDIR]
1331  --pdfdir=DIR            pdf documentation [DOCDIR]
1332  --psdir=DIR             ps documentation [DOCDIR]
1333_ACEOF
1334
1335  cat <<\_ACEOF
1336
1337System types:
1338  --build=BUILD     configure for building on BUILD [guessed]
1339  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1340  --target=TARGET   configure for building compilers for TARGET [HOST]
1341_ACEOF
1342fi
1343
1344if test -n "$ac_init_help"; then
1345
1346  cat <<\_ACEOF
1347
1348Optional Features:
1349  --disable-option-checking  ignore unrecognized --enable/--with options
1350  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1351  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1352  --enable-sim-bitsize=n		Specify target bitsize (32 or 64).
1353  --enable-sim-decode-mechanism=which		Specify the instruction decode mechanism.
1354  --enable-sim-default-model=which	Specify default PowerPC to model.
1355  --enable-sim-duplicate		Expand (duplicate) semantic functions.
1356  --enable-sim-filter=rule		Specify filter rules.
1357  --enable-sim-float			Specify whether the target has hard, soft, altivec or e500 floating point.
1358  --enable-sim-hardware=list		Specify the hardware to be included in the build.
1359  --enable-sim-icache=size		Specify instruction-decode cache size and type.
1360  --enable-sim-jump		Jump between semantic code (instead of call/return).
1361  --enable-sim-line-nr=opts		Generate extra CPP code that references source rather than generated code
1362  --enable-sim-model=which		Specify PowerPC to model.
1363  --enable-sim-model-issue		Specify whether to simulate model specific actions
1364  --enable-sim-monitor=mon		Specify whether to enable monitoring events.
1365  --enable-sim-opcode=which		Override default opcode lookup.
1366  --enable-sim-smp=n			Specify number of processors to configure for.
1367  --enable-sim-switch			Use a switch instead of a table for instruction call.
1368  --enable-sim-timebase			Specify whether the PPC timebase is supported.
1369  --enable-sim-xor-endian=n		Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1370
1371Some influential environment variables:
1372  CC          C compiler command
1373  CFLAGS      C compiler flags
1374  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1375              nonstandard directory <lib dir>
1376  LIBS        libraries to pass to the linker, e.g. -l<library>
1377  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378              you have headers in a nonstandard directory <include dir>
1379  CPP         C preprocessor
1380
1381Use these variables to override the choices made by `configure' or to help
1382it to find libraries and programs with nonstandard names/locations.
1383
1384Report bugs to the package provider.
1385_ACEOF
1386ac_status=$?
1387fi
1388
1389if test "$ac_init_help" = "recursive"; then
1390  # If there are subdirs, report their specific --help.
1391  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392    test -d "$ac_dir" ||
1393      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1394      continue
1395    ac_builddir=.
1396
1397case "$ac_dir" in
1398.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399*)
1400  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401  # A ".." for each directory in $ac_dir_suffix.
1402  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403  case $ac_top_builddir_sub in
1404  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1406  esac ;;
1407esac
1408ac_abs_top_builddir=$ac_pwd
1409ac_abs_builddir=$ac_pwd$ac_dir_suffix
1410# for backward compatibility:
1411ac_top_builddir=$ac_top_build_prefix
1412
1413case $srcdir in
1414  .)  # We are building in place.
1415    ac_srcdir=.
1416    ac_top_srcdir=$ac_top_builddir_sub
1417    ac_abs_top_srcdir=$ac_pwd ;;
1418  [\\/]* | ?:[\\/]* )  # Absolute name.
1419    ac_srcdir=$srcdir$ac_dir_suffix;
1420    ac_top_srcdir=$srcdir
1421    ac_abs_top_srcdir=$srcdir ;;
1422  *) # Relative name.
1423    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424    ac_top_srcdir=$ac_top_build_prefix$srcdir
1425    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426esac
1427ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428
1429    cd "$ac_dir" || { ac_status=$?; continue; }
1430    # Check for guested configure.
1431    if test -f "$ac_srcdir/configure.gnu"; then
1432      echo &&
1433      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434    elif test -f "$ac_srcdir/configure"; then
1435      echo &&
1436      $SHELL "$ac_srcdir/configure" --help=recursive
1437    else
1438      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439    fi || ac_status=$?
1440    cd "$ac_pwd" || { ac_status=$?; break; }
1441  done
1442fi
1443
1444test -n "$ac_init_help" && exit $ac_status
1445if $ac_init_version; then
1446  cat <<\_ACEOF
1447configure
1448generated by GNU Autoconf 2.69
1449
1450Copyright (C) 2012 Free Software Foundation, Inc.
1451This configure script is free software; the Free Software Foundation
1452gives unlimited permission to copy, distribute and modify it.
1453_ACEOF
1454  exit
1455fi
1456
1457## ------------------------ ##
1458## Autoconf initialization. ##
1459## ------------------------ ##
1460
1461# ac_fn_c_try_compile LINENO
1462# --------------------------
1463# Try to compile conftest.$ac_ext, and return whether this succeeded.
1464ac_fn_c_try_compile ()
1465{
1466  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467  rm -f conftest.$ac_objext
1468  if { { ac_try="$ac_compile"
1469case "(($ac_try" in
1470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471  *) ac_try_echo=$ac_try;;
1472esac
1473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474$as_echo "$ac_try_echo"; } >&5
1475  (eval "$ac_compile") 2>conftest.err
1476  ac_status=$?
1477  if test -s conftest.err; then
1478    grep -v '^ *+' conftest.err >conftest.er1
1479    cat conftest.er1 >&5
1480    mv -f conftest.er1 conftest.err
1481  fi
1482  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483  test $ac_status = 0; } && {
1484	 test -z "$ac_c_werror_flag" ||
1485	 test ! -s conftest.err
1486       } && test -s conftest.$ac_objext; then :
1487  ac_retval=0
1488else
1489  $as_echo "$as_me: failed program was:" >&5
1490sed 's/^/| /' conftest.$ac_ext >&5
1491
1492	ac_retval=1
1493fi
1494  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495  as_fn_set_status $ac_retval
1496
1497} # ac_fn_c_try_compile
1498
1499# ac_fn_c_try_run LINENO
1500# ----------------------
1501# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1502# that executables *can* be run.
1503ac_fn_c_try_run ()
1504{
1505  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506  if { { ac_try="$ac_link"
1507case "(($ac_try" in
1508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1509  *) ac_try_echo=$ac_try;;
1510esac
1511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1512$as_echo "$ac_try_echo"; } >&5
1513  (eval "$ac_link") 2>&5
1514  ac_status=$?
1515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1517  { { case "(($ac_try" in
1518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519  *) ac_try_echo=$ac_try;;
1520esac
1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522$as_echo "$ac_try_echo"; } >&5
1523  (eval "$ac_try") 2>&5
1524  ac_status=$?
1525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526  test $ac_status = 0; }; }; then :
1527  ac_retval=0
1528else
1529  $as_echo "$as_me: program exited with status $ac_status" >&5
1530       $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533       ac_retval=$ac_status
1534fi
1535  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1536  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537  as_fn_set_status $ac_retval
1538
1539} # ac_fn_c_try_run
1540
1541# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1542# -------------------------------------------
1543# Tests whether TYPE exists after having included INCLUDES, setting cache
1544# variable VAR accordingly.
1545ac_fn_c_check_type ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1549$as_echo_n "checking for $2... " >&6; }
1550if eval \${$3+:} false; then :
1551  $as_echo_n "(cached) " >&6
1552else
1553  eval "$3=no"
1554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1555/* end confdefs.h.  */
1556$4
1557int
1558main ()
1559{
1560if (sizeof ($2))
1561	 return 0;
1562  ;
1563  return 0;
1564}
1565_ACEOF
1566if ac_fn_c_try_compile "$LINENO"; then :
1567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568/* end confdefs.h.  */
1569$4
1570int
1571main ()
1572{
1573if (sizeof (($2)))
1574	    return 0;
1575  ;
1576  return 0;
1577}
1578_ACEOF
1579if ac_fn_c_try_compile "$LINENO"; then :
1580
1581else
1582  eval "$3=yes"
1583fi
1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1585fi
1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587fi
1588eval ac_res=\$$3
1589	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1590$as_echo "$ac_res" >&6; }
1591  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592
1593} # ac_fn_c_check_type
1594
1595# ac_fn_c_try_cpp LINENO
1596# ----------------------
1597# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_cpp ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  if { { ac_try="$ac_cpp conftest.$ac_ext"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } > conftest.i && {
1617	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618	 test ! -s conftest.err
1619       }; then :
1620  ac_retval=0
1621else
1622  $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625    ac_retval=1
1626fi
1627  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_c_try_cpp
1631
1632# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633# -------------------------------------------------------
1634# Tests whether HEADER exists and can be compiled using the include files in
1635# INCLUDES, setting the cache variable VAR accordingly.
1636ac_fn_c_check_header_compile ()
1637{
1638  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640$as_echo_n "checking for $2... " >&6; }
1641if eval \${$3+:} false; then :
1642  $as_echo_n "(cached) " >&6
1643else
1644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645/* end confdefs.h.  */
1646$4
1647#include <$2>
1648_ACEOF
1649if ac_fn_c_try_compile "$LINENO"; then :
1650  eval "$3=yes"
1651else
1652  eval "$3=no"
1653fi
1654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655fi
1656eval ac_res=\$$3
1657	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658$as_echo "$ac_res" >&6; }
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661} # ac_fn_c_check_header_compile
1662cat >config.log <<_ACEOF
1663This file contains any messages produced by compilers while
1664running configure, to aid debugging if configure makes a mistake.
1665
1666It was created by $as_me, which was
1667generated by GNU Autoconf 2.69.  Invocation command line was
1668
1669  $ $0 $@
1670
1671_ACEOF
1672exec 5>>config.log
1673{
1674cat <<_ASUNAME
1675## --------- ##
1676## Platform. ##
1677## --------- ##
1678
1679hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1680uname -m = `(uname -m) 2>/dev/null || echo unknown`
1681uname -r = `(uname -r) 2>/dev/null || echo unknown`
1682uname -s = `(uname -s) 2>/dev/null || echo unknown`
1683uname -v = `(uname -v) 2>/dev/null || echo unknown`
1684
1685/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1686/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1687
1688/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1689/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1690/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1691/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1692/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1693/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1694/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1695
1696_ASUNAME
1697
1698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699for as_dir in $PATH
1700do
1701  IFS=$as_save_IFS
1702  test -z "$as_dir" && as_dir=.
1703    $as_echo "PATH: $as_dir"
1704  done
1705IFS=$as_save_IFS
1706
1707} >&5
1708
1709cat >&5 <<_ACEOF
1710
1711
1712## ----------- ##
1713## Core tests. ##
1714## ----------- ##
1715
1716_ACEOF
1717
1718
1719# Keep a trace of the command line.
1720# Strip out --no-create and --no-recursion so they do not pile up.
1721# Strip out --silent because we don't want to record it for future runs.
1722# Also quote any args containing shell meta-characters.
1723# Make two passes to allow for proper duplicate-argument suppression.
1724ac_configure_args=
1725ac_configure_args0=
1726ac_configure_args1=
1727ac_must_keep_next=false
1728for ac_pass in 1 2
1729do
1730  for ac_arg
1731  do
1732    case $ac_arg in
1733    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1734    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735    | -silent | --silent | --silen | --sile | --sil)
1736      continue ;;
1737    *\'*)
1738      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1739    esac
1740    case $ac_pass in
1741    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1742    2)
1743      as_fn_append ac_configure_args1 " '$ac_arg'"
1744      if test $ac_must_keep_next = true; then
1745	ac_must_keep_next=false # Got value, back to normal.
1746      else
1747	case $ac_arg in
1748	  *=* | --config-cache | -C | -disable-* | --disable-* \
1749	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1750	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1751	  | -with-* | --with-* | -without-* | --without-* | --x)
1752	    case "$ac_configure_args0 " in
1753	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1754	    esac
1755	    ;;
1756	  -* ) ac_must_keep_next=true ;;
1757	esac
1758      fi
1759      as_fn_append ac_configure_args " '$ac_arg'"
1760      ;;
1761    esac
1762  done
1763done
1764{ ac_configure_args0=; unset ac_configure_args0;}
1765{ ac_configure_args1=; unset ac_configure_args1;}
1766
1767# When interrupted or exit'd, cleanup temporary files, and complete
1768# config.log.  We remove comments because anyway the quotes in there
1769# would cause problems or look ugly.
1770# WARNING: Use '\'' to represent an apostrophe within the trap.
1771# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1772trap 'exit_status=$?
1773  # Save into config.log some information that might help in debugging.
1774  {
1775    echo
1776
1777    $as_echo "## ---------------- ##
1778## Cache variables. ##
1779## ---------------- ##"
1780    echo
1781    # The following way of writing the cache mishandles newlines in values,
1782(
1783  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1784    eval ac_val=\$$ac_var
1785    case $ac_val in #(
1786    *${as_nl}*)
1787      case $ac_var in #(
1788      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1789$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1790      esac
1791      case $ac_var in #(
1792      _ | IFS | as_nl) ;; #(
1793      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1794      *) { eval $ac_var=; unset $ac_var;} ;;
1795      esac ;;
1796    esac
1797  done
1798  (set) 2>&1 |
1799    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1800    *${as_nl}ac_space=\ *)
1801      sed -n \
1802	"s/'\''/'\''\\\\'\'''\''/g;
1803	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1804      ;; #(
1805    *)
1806      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1807      ;;
1808    esac |
1809    sort
1810)
1811    echo
1812
1813    $as_echo "## ----------------- ##
1814## Output variables. ##
1815## ----------------- ##"
1816    echo
1817    for ac_var in $ac_subst_vars
1818    do
1819      eval ac_val=\$$ac_var
1820      case $ac_val in
1821      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822      esac
1823      $as_echo "$ac_var='\''$ac_val'\''"
1824    done | sort
1825    echo
1826
1827    if test -n "$ac_subst_files"; then
1828      $as_echo "## ------------------- ##
1829## File substitutions. ##
1830## ------------------- ##"
1831      echo
1832      for ac_var in $ac_subst_files
1833      do
1834	eval ac_val=\$$ac_var
1835	case $ac_val in
1836	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837	esac
1838	$as_echo "$ac_var='\''$ac_val'\''"
1839      done | sort
1840      echo
1841    fi
1842
1843    if test -s confdefs.h; then
1844      $as_echo "## ----------- ##
1845## confdefs.h. ##
1846## ----------- ##"
1847      echo
1848      cat confdefs.h
1849      echo
1850    fi
1851    test "$ac_signal" != 0 &&
1852      $as_echo "$as_me: caught signal $ac_signal"
1853    $as_echo "$as_me: exit $exit_status"
1854  } >&5
1855  rm -f core *.core core.conftest.* &&
1856    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857    exit $exit_status
1858' 0
1859for ac_signal in 1 2 13 15; do
1860  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1861done
1862ac_signal=0
1863
1864# confdefs.h avoids OS command line length limits that DEFS can exceed.
1865rm -f -r conftest* confdefs.h
1866
1867$as_echo "/* confdefs.h */" > confdefs.h
1868
1869# Predefined preprocessor variables.
1870
1871cat >>confdefs.h <<_ACEOF
1872#define PACKAGE_NAME "$PACKAGE_NAME"
1873_ACEOF
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877_ACEOF
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881_ACEOF
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_STRING "$PACKAGE_STRING"
1885_ACEOF
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889_ACEOF
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_URL "$PACKAGE_URL"
1893_ACEOF
1894
1895
1896# Let the site file select an alternate cache file if it wants to.
1897# Prefer an explicitly selected file to automatically selected ones.
1898ac_site_file1=NONE
1899ac_site_file2=NONE
1900if test -n "$CONFIG_SITE"; then
1901  # We do not want a PATH search for config.site.
1902  case $CONFIG_SITE in #((
1903    -*)  ac_site_file1=./$CONFIG_SITE;;
1904    */*) ac_site_file1=$CONFIG_SITE;;
1905    *)   ac_site_file1=./$CONFIG_SITE;;
1906  esac
1907elif test "x$prefix" != xNONE; then
1908  ac_site_file1=$prefix/share/config.site
1909  ac_site_file2=$prefix/etc/config.site
1910else
1911  ac_site_file1=$ac_default_prefix/share/config.site
1912  ac_site_file2=$ac_default_prefix/etc/config.site
1913fi
1914for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1915do
1916  test "x$ac_site_file" = xNONE && continue
1917  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1918    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1919$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1920    sed 's/^/| /' "$ac_site_file" >&5
1921    . "$ac_site_file" \
1922      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1924as_fn_error $? "failed to load site script $ac_site_file
1925See \`config.log' for more details" "$LINENO" 5; }
1926  fi
1927done
1928
1929if test -r "$cache_file"; then
1930  # Some versions of bash will fail to source /dev/null (special files
1931  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1932  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1934$as_echo "$as_me: loading cache $cache_file" >&6;}
1935    case $cache_file in
1936      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937      *)                      . "./$cache_file";;
1938    esac
1939  fi
1940else
1941  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1942$as_echo "$as_me: creating cache $cache_file" >&6;}
1943  >$cache_file
1944fi
1945
1946# Check that the precious variables saved in the cache have kept the same
1947# value.
1948ac_cache_corrupted=false
1949for ac_var in $ac_precious_vars; do
1950  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951  eval ac_new_set=\$ac_env_${ac_var}_set
1952  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953  eval ac_new_val=\$ac_env_${ac_var}_value
1954  case $ac_old_set,$ac_new_set in
1955    set,)
1956      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958      ac_cache_corrupted=: ;;
1959    ,set)
1960      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1961$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962      ac_cache_corrupted=: ;;
1963    ,);;
1964    *)
1965      if test "x$ac_old_val" != "x$ac_new_val"; then
1966	# differences in whitespace do not lead to failure.
1967	ac_old_val_w=`echo x $ac_old_val`
1968	ac_new_val_w=`echo x $ac_new_val`
1969	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1970	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1971$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1972	  ac_cache_corrupted=:
1973	else
1974	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1975$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1976	  eval $ac_var=\$ac_old_val
1977	fi
1978	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1979$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1980	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1981$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1982      fi;;
1983  esac
1984  # Pass precious variables to config.status.
1985  if test "$ac_new_set" = set; then
1986    case $ac_new_val in
1987    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1988    *) ac_arg=$ac_var=$ac_new_val ;;
1989    esac
1990    case " $ac_configure_args " in
1991      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1992      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1993    esac
1994  fi
1995done
1996if $ac_cache_corrupted; then
1997  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1999  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2000$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2002fi
2003## -------------------- ##
2004## Main body of script. ##
2005## -------------------- ##
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014
2015
2016ac_aux_dir=
2017for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018  if test -f "$ac_dir/install-sh"; then
2019    ac_aux_dir=$ac_dir
2020    ac_install_sh="$ac_aux_dir/install-sh -c"
2021    break
2022  elif test -f "$ac_dir/install.sh"; then
2023    ac_aux_dir=$ac_dir
2024    ac_install_sh="$ac_aux_dir/install.sh -c"
2025    break
2026  elif test -f "$ac_dir/shtool"; then
2027    ac_aux_dir=$ac_dir
2028    ac_install_sh="$ac_aux_dir/shtool install -c"
2029    break
2030  fi
2031done
2032if test -z "$ac_aux_dir"; then
2033  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2034fi
2035
2036# These three variables are undocumented and unsupported,
2037# and are intended to be withdrawn in a future Autoconf release.
2038# They can cause serious problems if a builder's source tree is in a directory
2039# whose full name contains unusual characters.
2040ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2041ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2042ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2043
2044
2045# Find a good install program.  We prefer a C program (faster),
2046# so one script is as good as another.  But avoid the broken or
2047# incompatible versions:
2048# SysV /etc/install, /usr/sbin/install
2049# SunOS /usr/etc/install
2050# IRIX /sbin/install
2051# AIX /bin/install
2052# AmigaOS /C/install, which installs bootblocks on floppy discs
2053# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2054# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2055# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2056# OS/2's system install, which has a completely different semantic
2057# ./install, which can be erroneously created by make from ./install.sh.
2058# Reject install programs that cannot install multiple files.
2059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2060$as_echo_n "checking for a BSD-compatible install... " >&6; }
2061if test -z "$INSTALL"; then
2062if ${ac_cv_path_install+:} false; then :
2063  $as_echo_n "(cached) " >&6
2064else
2065  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068  IFS=$as_save_IFS
2069  test -z "$as_dir" && as_dir=.
2070    # Account for people who put trailing slashes in PATH elements.
2071case $as_dir/ in #((
2072  ./ | .// | /[cC]/* | \
2073  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2074  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2075  /usr/ucb/* ) ;;
2076  *)
2077    # OSF1 and SCO ODT 3.0 have their own names for install.
2078    # Don't use installbsd from OSF since it installs stuff as root
2079    # by default.
2080    for ac_prog in ginstall scoinst install; do
2081      for ac_exec_ext in '' $ac_executable_extensions; do
2082	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2083	  if test $ac_prog = install &&
2084	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085	    # AIX install.  It has an incompatible calling convention.
2086	    :
2087	  elif test $ac_prog = install &&
2088	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2089	    # program-specific install script used by HP pwplus--don't use.
2090	    :
2091	  else
2092	    rm -rf conftest.one conftest.two conftest.dir
2093	    echo one > conftest.one
2094	    echo two > conftest.two
2095	    mkdir conftest.dir
2096	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2097	      test -s conftest.one && test -s conftest.two &&
2098	      test -s conftest.dir/conftest.one &&
2099	      test -s conftest.dir/conftest.two
2100	    then
2101	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2102	      break 3
2103	    fi
2104	  fi
2105	fi
2106      done
2107    done
2108    ;;
2109esac
2110
2111  done
2112IFS=$as_save_IFS
2113
2114rm -rf conftest.one conftest.two conftest.dir
2115
2116fi
2117  if test "${ac_cv_path_install+set}" = set; then
2118    INSTALL=$ac_cv_path_install
2119  else
2120    # As a last resort, use the slow shell script.  Don't cache a
2121    # value for INSTALL within a source directory, because that will
2122    # break other packages using the cache if that directory is
2123    # removed, or if the value is a relative name.
2124    INSTALL=$ac_install_sh
2125  fi
2126fi
2127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2128$as_echo "$INSTALL" >&6; }
2129
2130# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2131# It thinks the first close brace ends the variable substitution.
2132test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2133
2134test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2135
2136test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2137
2138ac_ext=c
2139ac_cpp='$CPP $CPPFLAGS'
2140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2142ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143if test -n "$ac_tool_prefix"; then
2144  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2145set dummy ${ac_tool_prefix}gcc; ac_word=$2
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2147$as_echo_n "checking for $ac_word... " >&6; }
2148if ${ac_cv_prog_CC+:} false; then :
2149  $as_echo_n "(cached) " >&6
2150else
2151  if test -n "$CC"; then
2152  ac_cv_prog_CC="$CC" # Let the user override the test.
2153else
2154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2155for as_dir in $PATH
2156do
2157  IFS=$as_save_IFS
2158  test -z "$as_dir" && as_dir=.
2159    for ac_exec_ext in '' $ac_executable_extensions; do
2160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2161    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2163    break 2
2164  fi
2165done
2166  done
2167IFS=$as_save_IFS
2168
2169fi
2170fi
2171CC=$ac_cv_prog_CC
2172if test -n "$CC"; then
2173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2174$as_echo "$CC" >&6; }
2175else
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2177$as_echo "no" >&6; }
2178fi
2179
2180
2181fi
2182if test -z "$ac_cv_prog_CC"; then
2183  ac_ct_CC=$CC
2184  # Extract the first word of "gcc", so it can be a program name with args.
2185set dummy gcc; ac_word=$2
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2187$as_echo_n "checking for $ac_word... " >&6; }
2188if ${ac_cv_prog_ac_ct_CC+:} false; then :
2189  $as_echo_n "(cached) " >&6
2190else
2191  if test -n "$ac_ct_CC"; then
2192  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193else
2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195for as_dir in $PATH
2196do
2197  IFS=$as_save_IFS
2198  test -z "$as_dir" && as_dir=.
2199    for ac_exec_ext in '' $ac_executable_extensions; do
2200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201    ac_cv_prog_ac_ct_CC="gcc"
2202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2203    break 2
2204  fi
2205done
2206  done
2207IFS=$as_save_IFS
2208
2209fi
2210fi
2211ac_ct_CC=$ac_cv_prog_ac_ct_CC
2212if test -n "$ac_ct_CC"; then
2213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2214$as_echo "$ac_ct_CC" >&6; }
2215else
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2217$as_echo "no" >&6; }
2218fi
2219
2220  if test "x$ac_ct_CC" = x; then
2221    CC=""
2222  else
2223    case $cross_compiling:$ac_tool_warned in
2224yes:)
2225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2227ac_tool_warned=yes ;;
2228esac
2229    CC=$ac_ct_CC
2230  fi
2231else
2232  CC="$ac_cv_prog_CC"
2233fi
2234
2235if test -z "$CC"; then
2236          if test -n "$ac_tool_prefix"; then
2237    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2238set dummy ${ac_tool_prefix}cc; ac_word=$2
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2240$as_echo_n "checking for $ac_word... " >&6; }
2241if ${ac_cv_prog_CC+:} false; then :
2242  $as_echo_n "(cached) " >&6
2243else
2244  if test -n "$CC"; then
2245  ac_cv_prog_CC="$CC" # Let the user override the test.
2246else
2247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248for as_dir in $PATH
2249do
2250  IFS=$as_save_IFS
2251  test -z "$as_dir" && as_dir=.
2252    for ac_exec_ext in '' $ac_executable_extensions; do
2253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2254    ac_cv_prog_CC="${ac_tool_prefix}cc"
2255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2256    break 2
2257  fi
2258done
2259  done
2260IFS=$as_save_IFS
2261
2262fi
2263fi
2264CC=$ac_cv_prog_CC
2265if test -n "$CC"; then
2266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2267$as_echo "$CC" >&6; }
2268else
2269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2270$as_echo "no" >&6; }
2271fi
2272
2273
2274  fi
2275fi
2276if test -z "$CC"; then
2277  # Extract the first word of "cc", so it can be a program name with args.
2278set dummy cc; ac_word=$2
2279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2280$as_echo_n "checking for $ac_word... " >&6; }
2281if ${ac_cv_prog_CC+:} false; then :
2282  $as_echo_n "(cached) " >&6
2283else
2284  if test -n "$CC"; then
2285  ac_cv_prog_CC="$CC" # Let the user override the test.
2286else
2287  ac_prog_rejected=no
2288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH
2290do
2291  IFS=$as_save_IFS
2292  test -z "$as_dir" && as_dir=.
2293    for ac_exec_ext in '' $ac_executable_extensions; do
2294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2296       ac_prog_rejected=yes
2297       continue
2298     fi
2299    ac_cv_prog_CC="cc"
2300    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2301    break 2
2302  fi
2303done
2304  done
2305IFS=$as_save_IFS
2306
2307if test $ac_prog_rejected = yes; then
2308  # We found a bogon in the path, so make sure we never use it.
2309  set dummy $ac_cv_prog_CC
2310  shift
2311  if test $# != 0; then
2312    # We chose a different compiler from the bogus one.
2313    # However, it has the same basename, so the bogon will be chosen
2314    # first if we set CC to just the basename; use the full file name.
2315    shift
2316    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2317  fi
2318fi
2319fi
2320fi
2321CC=$ac_cv_prog_CC
2322if test -n "$CC"; then
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2324$as_echo "$CC" >&6; }
2325else
2326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2327$as_echo "no" >&6; }
2328fi
2329
2330
2331fi
2332if test -z "$CC"; then
2333  if test -n "$ac_tool_prefix"; then
2334  for ac_prog in cl.exe
2335  do
2336    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2337set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2339$as_echo_n "checking for $ac_word... " >&6; }
2340if ${ac_cv_prog_CC+:} false; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  if test -n "$CC"; then
2344  ac_cv_prog_CC="$CC" # Let the user override the test.
2345else
2346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347for as_dir in $PATH
2348do
2349  IFS=$as_save_IFS
2350  test -z "$as_dir" && as_dir=.
2351    for ac_exec_ext in '' $ac_executable_extensions; do
2352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2355    break 2
2356  fi
2357done
2358  done
2359IFS=$as_save_IFS
2360
2361fi
2362fi
2363CC=$ac_cv_prog_CC
2364if test -n "$CC"; then
2365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2366$as_echo "$CC" >&6; }
2367else
2368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2369$as_echo "no" >&6; }
2370fi
2371
2372
2373    test -n "$CC" && break
2374  done
2375fi
2376if test -z "$CC"; then
2377  ac_ct_CC=$CC
2378  for ac_prog in cl.exe
2379do
2380  # Extract the first word of "$ac_prog", so it can be a program name with args.
2381set dummy $ac_prog; ac_word=$2
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383$as_echo_n "checking for $ac_word... " >&6; }
2384if ${ac_cv_prog_ac_ct_CC+:} false; then :
2385  $as_echo_n "(cached) " >&6
2386else
2387  if test -n "$ac_ct_CC"; then
2388  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2389else
2390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391for as_dir in $PATH
2392do
2393  IFS=$as_save_IFS
2394  test -z "$as_dir" && as_dir=.
2395    for ac_exec_ext in '' $ac_executable_extensions; do
2396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397    ac_cv_prog_ac_ct_CC="$ac_prog"
2398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399    break 2
2400  fi
2401done
2402  done
2403IFS=$as_save_IFS
2404
2405fi
2406fi
2407ac_ct_CC=$ac_cv_prog_ac_ct_CC
2408if test -n "$ac_ct_CC"; then
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2410$as_echo "$ac_ct_CC" >&6; }
2411else
2412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413$as_echo "no" >&6; }
2414fi
2415
2416
2417  test -n "$ac_ct_CC" && break
2418done
2419
2420  if test "x$ac_ct_CC" = x; then
2421    CC=""
2422  else
2423    case $cross_compiling:$ac_tool_warned in
2424yes:)
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2427ac_tool_warned=yes ;;
2428esac
2429    CC=$ac_ct_CC
2430  fi
2431fi
2432
2433fi
2434
2435
2436test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438as_fn_error $? "no acceptable C compiler found in \$PATH
2439See \`config.log' for more details" "$LINENO" 5; }
2440
2441# Provide some information about the compiler.
2442$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2443set X $ac_compile
2444ac_compiler=$2
2445for ac_option in --version -v -V -qversion; do
2446  { { ac_try="$ac_compiler $ac_option >&5"
2447case "(($ac_try" in
2448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449  *) ac_try_echo=$ac_try;;
2450esac
2451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452$as_echo "$ac_try_echo"; } >&5
2453  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2454  ac_status=$?
2455  if test -s conftest.err; then
2456    sed '10a\
2457... rest of stderr output deleted ...
2458         10q' conftest.err >conftest.er1
2459    cat conftest.er1 >&5
2460  fi
2461  rm -f conftest.er1 conftest.err
2462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2463  test $ac_status = 0; }
2464done
2465
2466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467/* end confdefs.h.  */
2468
2469int
2470main ()
2471{
2472
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477ac_clean_files_save=$ac_clean_files
2478ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2479# Try to create an executable without -o first, disregard a.out.
2480# It will help us diagnose broken compilers, and finding out an intuition
2481# of exeext.
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2483$as_echo_n "checking whether the C compiler works... " >&6; }
2484ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2485
2486# The possible output files:
2487ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2488
2489ac_rmfiles=
2490for ac_file in $ac_files
2491do
2492  case $ac_file in
2493    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2494    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2495  esac
2496done
2497rm -f $ac_rmfiles
2498
2499if { { ac_try="$ac_link_default"
2500case "(($ac_try" in
2501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2502  *) ac_try_echo=$ac_try;;
2503esac
2504eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2505$as_echo "$ac_try_echo"; } >&5
2506  (eval "$ac_link_default") 2>&5
2507  ac_status=$?
2508  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509  test $ac_status = 0; }; then :
2510  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2511# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2512# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2513# so that the user can short-circuit this test for compilers unknown to
2514# Autoconf.
2515for ac_file in $ac_files ''
2516do
2517  test -f "$ac_file" || continue
2518  case $ac_file in
2519    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2520	;;
2521    [ab].out )
2522	# We found the default executable, but exeext='' is most
2523	# certainly right.
2524	break;;
2525    *.* )
2526	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2527	then :; else
2528	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529	fi
2530	# We set ac_cv_exeext here because the later test for it is not
2531	# safe: cross compilers may not add the suffix if given an `-o'
2532	# argument, so we may need to know it at that point already.
2533	# Even if this section looks crufty: it has the advantage of
2534	# actually working.
2535	break;;
2536    * )
2537	break;;
2538  esac
2539done
2540test "$ac_cv_exeext" = no && ac_cv_exeext=
2541
2542else
2543  ac_file=''
2544fi
2545if test -z "$ac_file"; then :
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547$as_echo "no" >&6; }
2548$as_echo "$as_me: failed program was:" >&5
2549sed 's/^/| /' conftest.$ac_ext >&5
2550
2551{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2553as_fn_error 77 "C compiler cannot create executables
2554See \`config.log' for more details" "$LINENO" 5; }
2555else
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557$as_echo "yes" >&6; }
2558fi
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2560$as_echo_n "checking for C compiler default output file name... " >&6; }
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2562$as_echo "$ac_file" >&6; }
2563ac_exeext=$ac_cv_exeext
2564
2565rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2566ac_clean_files=$ac_clean_files_save
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2568$as_echo_n "checking for suffix of executables... " >&6; }
2569if { { ac_try="$ac_link"
2570case "(($ac_try" in
2571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572  *) ac_try_echo=$ac_try;;
2573esac
2574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575$as_echo "$ac_try_echo"; } >&5
2576  (eval "$ac_link") 2>&5
2577  ac_status=$?
2578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579  test $ac_status = 0; }; then :
2580  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2581# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2582# work properly (i.e., refer to `conftest.exe'), while it won't with
2583# `rm'.
2584for ac_file in conftest.exe conftest conftest.*; do
2585  test -f "$ac_file" || continue
2586  case $ac_file in
2587    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2588    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2589	  break;;
2590    * ) break;;
2591  esac
2592done
2593else
2594  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2597See \`config.log' for more details" "$LINENO" 5; }
2598fi
2599rm -f conftest conftest$ac_cv_exeext
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2601$as_echo "$ac_cv_exeext" >&6; }
2602
2603rm -f conftest.$ac_ext
2604EXEEXT=$ac_cv_exeext
2605ac_exeext=$EXEEXT
2606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607/* end confdefs.h.  */
2608#include <stdio.h>
2609int
2610main ()
2611{
2612FILE *f = fopen ("conftest.out", "w");
2613 return ferror (f) || fclose (f) != 0;
2614
2615  ;
2616  return 0;
2617}
2618_ACEOF
2619ac_clean_files="$ac_clean_files conftest.out"
2620# Check that the compiler produces executables we can run.  If not, either
2621# the compiler is broken, or we cross compile.
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2623$as_echo_n "checking whether we are cross compiling... " >&6; }
2624if test "$cross_compiling" != yes; then
2625  { { ac_try="$ac_link"
2626case "(($ac_try" in
2627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628  *) ac_try_echo=$ac_try;;
2629esac
2630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631$as_echo "$ac_try_echo"; } >&5
2632  (eval "$ac_link") 2>&5
2633  ac_status=$?
2634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635  test $ac_status = 0; }
2636  if { ac_try='./conftest$ac_cv_exeext'
2637  { { case "(($ac_try" in
2638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639  *) ac_try_echo=$ac_try;;
2640esac
2641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642$as_echo "$ac_try_echo"; } >&5
2643  (eval "$ac_try") 2>&5
2644  ac_status=$?
2645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646  test $ac_status = 0; }; }; then
2647    cross_compiling=no
2648  else
2649    if test "$cross_compiling" = maybe; then
2650	cross_compiling=yes
2651    else
2652	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654as_fn_error $? "cannot run C compiled programs.
2655If you meant to cross compile, use \`--host'.
2656See \`config.log' for more details" "$LINENO" 5; }
2657    fi
2658  fi
2659fi
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2661$as_echo "$cross_compiling" >&6; }
2662
2663rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2664ac_clean_files=$ac_clean_files_save
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2666$as_echo_n "checking for suffix of object files... " >&6; }
2667if ${ac_cv_objext+:} false; then :
2668  $as_echo_n "(cached) " >&6
2669else
2670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671/* end confdefs.h.  */
2672
2673int
2674main ()
2675{
2676
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681rm -f conftest.o conftest.obj
2682if { { ac_try="$ac_compile"
2683case "(($ac_try" in
2684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685  *) ac_try_echo=$ac_try;;
2686esac
2687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2688$as_echo "$ac_try_echo"; } >&5
2689  (eval "$ac_compile") 2>&5
2690  ac_status=$?
2691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692  test $ac_status = 0; }; then :
2693  for ac_file in conftest.o conftest.obj conftest.*; do
2694  test -f "$ac_file" || continue;
2695  case $ac_file in
2696    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2697    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698       break;;
2699  esac
2700done
2701else
2702  $as_echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2707as_fn_error $? "cannot compute suffix of object files: cannot compile
2708See \`config.log' for more details" "$LINENO" 5; }
2709fi
2710rm -f conftest.$ac_cv_objext conftest.$ac_ext
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2713$as_echo "$ac_cv_objext" >&6; }
2714OBJEXT=$ac_cv_objext
2715ac_objext=$OBJEXT
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2717$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2718if ${ac_cv_c_compiler_gnu+:} false; then :
2719  $as_echo_n "(cached) " >&6
2720else
2721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722/* end confdefs.h.  */
2723
2724int
2725main ()
2726{
2727#ifndef __GNUC__
2728       choke me
2729#endif
2730
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735if ac_fn_c_try_compile "$LINENO"; then :
2736  ac_compiler_gnu=yes
2737else
2738  ac_compiler_gnu=no
2739fi
2740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2745$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2746if test $ac_compiler_gnu = yes; then
2747  GCC=yes
2748else
2749  GCC=
2750fi
2751ac_test_CFLAGS=${CFLAGS+set}
2752ac_save_CFLAGS=$CFLAGS
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2754$as_echo_n "checking whether $CC accepts -g... " >&6; }
2755if ${ac_cv_prog_cc_g+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  ac_save_c_werror_flag=$ac_c_werror_flag
2759   ac_c_werror_flag=yes
2760   ac_cv_prog_cc_g=no
2761   CFLAGS="-g"
2762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763/* end confdefs.h.  */
2764
2765int
2766main ()
2767{
2768
2769  ;
2770  return 0;
2771}
2772_ACEOF
2773if ac_fn_c_try_compile "$LINENO"; then :
2774  ac_cv_prog_cc_g=yes
2775else
2776  CFLAGS=""
2777      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778/* end confdefs.h.  */
2779
2780int
2781main ()
2782{
2783
2784  ;
2785  return 0;
2786}
2787_ACEOF
2788if ac_fn_c_try_compile "$LINENO"; then :
2789
2790else
2791  ac_c_werror_flag=$ac_save_c_werror_flag
2792	 CFLAGS="-g"
2793	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794/* end confdefs.h.  */
2795
2796int
2797main ()
2798{
2799
2800  ;
2801  return 0;
2802}
2803_ACEOF
2804if ac_fn_c_try_compile "$LINENO"; then :
2805  ac_cv_prog_cc_g=yes
2806fi
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808fi
2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810fi
2811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812   ac_c_werror_flag=$ac_save_c_werror_flag
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2815$as_echo "$ac_cv_prog_cc_g" >&6; }
2816if test "$ac_test_CFLAGS" = set; then
2817  CFLAGS=$ac_save_CFLAGS
2818elif test $ac_cv_prog_cc_g = yes; then
2819  if test "$GCC" = yes; then
2820    CFLAGS="-g -O2"
2821  else
2822    CFLAGS="-g"
2823  fi
2824else
2825  if test "$GCC" = yes; then
2826    CFLAGS="-O2"
2827  else
2828    CFLAGS=
2829  fi
2830fi
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2832$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2833if ${ac_cv_prog_cc_c89+:} false; then :
2834  $as_echo_n "(cached) " >&6
2835else
2836  ac_cv_prog_cc_c89=no
2837ac_save_CC=$CC
2838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h.  */
2840#include <stdarg.h>
2841#include <stdio.h>
2842struct stat;
2843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2844struct buf { int x; };
2845FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846static char *e (p, i)
2847     char **p;
2848     int i;
2849{
2850  return p[i];
2851}
2852static char *f (char * (*g) (char **, int), char **p, ...)
2853{
2854  char *s;
2855  va_list v;
2856  va_start (v,p);
2857  s = g (p, va_arg (v,int));
2858  va_end (v);
2859  return s;
2860}
2861
2862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2863   function prototypes and stuff, but not '\xHH' hex character constants.
2864   These don't provoke an error unfortunately, instead are silently treated
2865   as 'x'.  The following induces an error, until -std is added to get
2866   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2867   array size at least.  It's necessary to write '\x00'==0 to get something
2868   that's true only with -std.  */
2869int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2870
2871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872   inside strings and character constants.  */
2873#define FOO(x) 'x'
2874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2875
2876int test (int i, double x);
2877struct s1 {int (*f) (int a);};
2878struct s2 {int (*f) (double a);};
2879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880int argc;
2881char **argv;
2882int
2883main ()
2884{
2885return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2892do
2893  CC="$ac_save_CC $ac_arg"
2894  if ac_fn_c_try_compile "$LINENO"; then :
2895  ac_cv_prog_cc_c89=$ac_arg
2896fi
2897rm -f core conftest.err conftest.$ac_objext
2898  test "x$ac_cv_prog_cc_c89" != "xno" && break
2899done
2900rm -f conftest.$ac_ext
2901CC=$ac_save_CC
2902
2903fi
2904# AC_CACHE_VAL
2905case "x$ac_cv_prog_cc_c89" in
2906  x)
2907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2908$as_echo "none needed" >&6; } ;;
2909  xno)
2910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2911$as_echo "unsupported" >&6; } ;;
2912  *)
2913    CC="$CC $ac_cv_prog_cc_c89"
2914    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2915$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2916esac
2917if test "x$ac_cv_prog_cc_c89" != xno; then :
2918
2919fi
2920
2921ac_ext=c
2922ac_cpp='$CPP $CPPFLAGS'
2923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927
2928# Make sure we can run config.sub.
2929$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2930  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2931
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2933$as_echo_n "checking build system type... " >&6; }
2934if ${ac_cv_build+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  ac_build_alias=$build_alias
2938test "x$ac_build_alias" = x &&
2939  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2940test "x$ac_build_alias" = x &&
2941  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2942ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2943  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2944
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2947$as_echo "$ac_cv_build" >&6; }
2948case $ac_cv_build in
2949*-*-*) ;;
2950*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2951esac
2952build=$ac_cv_build
2953ac_save_IFS=$IFS; IFS='-'
2954set x $ac_cv_build
2955shift
2956build_cpu=$1
2957build_vendor=$2
2958shift; shift
2959# Remember, the first character of IFS is used to create $*,
2960# except with old shells:
2961build_os=$*
2962IFS=$ac_save_IFS
2963case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2964
2965
2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2967$as_echo_n "checking host system type... " >&6; }
2968if ${ac_cv_host+:} false; then :
2969  $as_echo_n "(cached) " >&6
2970else
2971  if test "x$host_alias" = x; then
2972  ac_cv_host=$ac_cv_build
2973else
2974  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2975    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2976fi
2977
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2980$as_echo "$ac_cv_host" >&6; }
2981case $ac_cv_host in
2982*-*-*) ;;
2983*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2984esac
2985host=$ac_cv_host
2986ac_save_IFS=$IFS; IFS='-'
2987set x $ac_cv_host
2988shift
2989host_cpu=$1
2990host_vendor=$2
2991shift; shift
2992# Remember, the first character of IFS is used to create $*,
2993# except with old shells:
2994host_os=$*
2995IFS=$ac_save_IFS
2996case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2997
2998
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3000$as_echo_n "checking target system type... " >&6; }
3001if ${ac_cv_target+:} false; then :
3002  $as_echo_n "(cached) " >&6
3003else
3004  if test "x$target_alias" = x; then
3005  ac_cv_target=$ac_cv_host
3006else
3007  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3008    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3009fi
3010
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3013$as_echo "$ac_cv_target" >&6; }
3014case $ac_cv_target in
3015*-*-*) ;;
3016*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3017esac
3018target=$ac_cv_target
3019ac_save_IFS=$IFS; IFS='-'
3020set x $ac_cv_target
3021shift
3022target_cpu=$1
3023target_vendor=$2
3024shift; shift
3025# Remember, the first character of IFS is used to create $*,
3026# except with old shells:
3027target_os=$*
3028IFS=$ac_save_IFS
3029case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3030
3031
3032# The aliases save the names the user supplied, while $host etc.
3033# will get canonicalized.
3034test -n "$target_alias" &&
3035  test "$program_prefix$program_suffix$program_transform_name" = \
3036    NONENONEs,x,x, &&
3037  program_prefix=${target_alias}-
3038
3039
3040# Check whether --enable-sim-bitsize was given.
3041if test "${enable_sim_bitsize+set}" = set; then :
3042  enableval=$enable_sim_bitsize; case "${enableval}" in
3043  32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
3044  *)	 as_fn_error $? "\"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
3045esac
3046if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
3047  echo "Setting bitsize flags = $sim_bitsize" 6>&1
3048fi
3049else
3050  sim_bitsize=""
3051fi
3052
3053
3054# Check whether --enable-sim-decode-mechanism was given.
3055if test "${enable_sim_decode_mechanism+set}" = set; then :
3056  enableval=$enable_sim_decode_mechanism; case "${enableval}" in
3057  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
3058  array|switch|padded-switch|goto-switch)	sim_decode_mechanism="-T ${enableval}";;
3059  *)		as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3060		sim_decode_mechanism="switch";;
3061esac
3062if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
3063  echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
3064fi
3065else
3066  sim_decode_mechanism=""
3067if test x"$silent" != x"yes"; then
3068  echo "Setting decode mechanism flags = $sim_decode_mechanism"
3069fi
3070fi
3071
3072
3073# Check whether --enable-sim-default-model was given.
3074if test "${enable_sim_default_model+set}" = set; then :
3075  enableval=$enable_sim_default_model; case "${enableval}" in
3076  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
3077  *)		sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
3078esac
3079if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
3080  echo "Setting default-model flags = $sim_default_model" 6>&1
3081fi
3082else
3083  sim_default_model=""
3084fi
3085
3086
3087# Check whether --enable-sim-duplicate was given.
3088if test "${enable_sim_duplicate+set}" = set; then :
3089  enableval=$enable_sim_duplicate; case "${enableval}" in
3090  yes)	sim_dup="-E";;
3091  no)	sim_dup="";;
3092  *)	as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
3093esac
3094if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
3095  echo "Setting duplicate flags = $sim_dup" 6>&1
3096fi
3097else
3098  sim_dup="-E"
3099if test x"$silent" != x"yes"; then
3100  echo "Setting duplicate flags = $sim_dup" 6>&1
3101fi
3102fi
3103
3104
3105# Check whether --enable-sim-filter was given.
3106if test "${enable_sim_filter+set}" = set; then :
3107  enableval=$enable_sim_filter; case "${enableval}" in
3108  yes)	as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
3109  no)	sim_filter="";;
3110  *)	sim_filter="-F $enableval";;
3111esac
3112if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
3113  echo "Setting filter flags = $sim_filter" 6>&1
3114fi
3115else
3116  sim_filter="-F 32,f,o"
3117if test x"$silent" != x"yes"; then
3118  echo "Setting filter flags = $sim_filter" 6>&1
3119fi
3120fi
3121
3122
3123# Check whether --enable-sim-float was given.
3124if test "${enable_sim_float+set}" = set; then :
3125  enableval=$enable_sim_float; case "${enableval}" in
3126  yes | hard)	sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
3127  no | soft)	sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
3128  altivec)      sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3129  *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3130  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
3131esac
3132if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
3133  echo "Setting float flags = $sim_float" 6>&1
3134fi
3135else
3136
3137case "${target}" in
3138  *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
3139  *spe*|*simd*)	sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
3140  *) sim_float=""
3141esac
3142
3143fi
3144
3145
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
3147$as_echo_n "checking if union semun defined... " >&6; }
3148if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
3149  $as_echo_n "(cached) " >&6
3150else
3151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152/* end confdefs.h.  */
3153
3154#include <sys/types.h>
3155#include <sys/ipc.h>
3156#include <sys/sem.h>
3157int
3158main ()
3159{
3160union semun arg ;
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165if ac_fn_c_try_compile "$LINENO"; then :
3166  ac_cv_has_union_semun="yes"
3167else
3168  ac_cv_has_union_semun="no"
3169fi
3170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
3172$as_echo "$ac_cv_has_union_semun" >&6; }
3173
3174fi
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
3176$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
3177
3178
3179if test "$ac_cv_has_union_semun" = "yes"; then
3180  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3181$as_echo_n "checking whether System V semaphores are supported... " >&6; }
3182if ${ac_cv_sysv_sem+:} false; then :
3183  $as_echo_n "(cached) " >&6
3184else
3185
3186  if test "$cross_compiling" = yes; then :
3187  :
3188else
3189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190/* end confdefs.h.  */
3191
3192  #include <sys/types.h>
3193  #include <sys/ipc.h>
3194  #include <sys/sem.h>
3195  int main () {
3196    union semun arg ;
3197
3198    int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3199    if (id == -1)
3200      exit(1);
3201    arg.val = 0; /* avoid implicit type cast to union */
3202    if (semctl(id, 0, IPC_RMID, arg) == -1)
3203      exit(1);
3204    exit(0);
3205  }
3206
3207_ACEOF
3208if ac_fn_c_try_run "$LINENO"; then :
3209  ac_cv_sysv_sem="yes"
3210else
3211  ac_cv_sysv_sem="no"
3212fi
3213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3214  conftest.$ac_objext conftest.beam conftest.$ac_ext
3215fi
3216
3217
3218fi
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3220$as_echo "$ac_cv_sysv_sem" >&6; }
3221else  # semun is not defined
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
3223$as_echo_n "checking whether System V semaphores are supported... " >&6; }
3224if ${ac_cv_sysv_sem+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227
3228  if test "$cross_compiling" = yes; then :
3229  :
3230else
3231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232/* end confdefs.h.  */
3233
3234  #include <sys/types.h>
3235  #include <sys/ipc.h>
3236  #include <sys/sem.h>
3237  union semun {
3238    int val;
3239    struct semid_ds *buf;
3240    ushort *array;
3241  };
3242  int main () {
3243    union semun arg ;
3244
3245    int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
3246    if (id == -1)
3247      exit(1);
3248    arg.val = 0; /* avoid implicit type cast to union */
3249    if (semctl(id, 0, IPC_RMID, arg) == -1)
3250      exit(1);
3251    exit(0);
3252  }
3253
3254_ACEOF
3255if ac_fn_c_try_run "$LINENO"; then :
3256  ac_cv_sysv_sem="yes"
3257else
3258  ac_cv_sysv_sem="no"
3259fi
3260rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3261  conftest.$ac_objext conftest.beam conftest.$ac_ext
3262fi
3263
3264
3265fi
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
3267$as_echo "$ac_cv_sysv_sem" >&6; }
3268fi
3269
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
3271$as_echo_n "checking whether System V shared memory is supported... " >&6; }
3272if ${ac_cv_sysv_shm+:} false; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275
3276if test "$cross_compiling" = yes; then :
3277  :
3278else
3279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h.  */
3281
3282#include <sys/types.h>
3283#include <sys/ipc.h>
3284#include <sys/shm.h>
3285int main () {
3286  int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3287  if (id == -1)
3288    exit(1);
3289  if (shmctl(id, IPC_RMID, 0) == -1)
3290    exit(1);
3291  exit(0);
3292}
3293
3294_ACEOF
3295if ac_fn_c_try_run "$LINENO"; then :
3296  ac_cv_sysv_shm="yes"
3297else
3298  ac_cv_sysv_shm="no"
3299fi
3300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3301  conftest.$ac_objext conftest.beam conftest.$ac_ext
3302fi
3303
3304
3305fi
3306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
3307$as_echo "$ac_cv_sysv_shm" >&6; }
3308
3309if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3310  sim_sysv_ipc_hw=",sem,shm";
3311else
3312  sim_sysv_ipc_hw="";
3313fi
3314
3315if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
3316
3317$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
3318
3319fi
3320
3321
3322# Check whether --enable-sim-hardware was given.
3323if test "${enable_sim_hardware+set}" = set; then :
3324  enableval=$enable_sim_hardware; hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3325case "${enableval}" in
3326  yes)	;;
3327  no)	as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
3328  ,*)   hardware="${hardware}${enableval}";;
3329  *,)   hardware="${enableval}${hardware}";;
3330  *)	hardware="${enableval}"'';;
3331esac
3332sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3333sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3334if test x"$silent" != x"yes" && test x"$hardware" != x""; then
3335  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3336fi
3337else
3338  hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
3339sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
3340sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
3341if test x"$silent" != x"yes"; then
3342  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
3343fi
3344fi
3345
3346
3347# Check whether --enable-sim-icache was given.
3348if test "${enable_sim_icache+set}" = set; then :
3349  enableval=$enable_sim_icache; icache="-R"
3350 case "${enableval}" in
3351  yes)		icache="1024"; sim_icache="-I $icache";;
3352  no)		sim_icache="-R";;
3353  *) icache=1024
3354     sim_icache="-"
3355     for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
3356       case "$x" in
3357         define)	sim_icache="${sim_icache}R";;
3358         semantic)	sim_icache="${sim_icache}C";;
3359	 insn)		sim_icache="${sim_icache}S";;
3360	 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*)	icache=$x;;
3361         *)		as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
3362       esac
3363     done
3364     sim_icache="${sim_icache}I $icache";;
3365esac
3366if test x"$silent" != x"yes" && test x"$icache" != x""; then
3367  echo "Setting instruction cache size to $icache ($sim_icache)"
3368fi
3369else
3370  sim_icache="-CSRI 1024"
3371if test x"$silent" != x"yes"; then
3372  echo "Setting instruction cache size to 1024 ($sim_icache)"
3373fi
3374fi
3375
3376
3377# Check whether --enable-sim-jump was given.
3378if test "${enable_sim_jump+set}" = set; then :
3379  enableval=$enable_sim_jump; case "${enableval}" in
3380  yes)	sim_jump="-J";;
3381  no)	sim_jump="";;
3382  *)	as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
3383esac
3384if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
3385  echo "Setting jump flag = $sim_jump" 6>&1
3386fi
3387else
3388  sim_jump=""
3389if test x"$silent" != x"yes"; then
3390  echo "Setting jump flag = $sim_jump" 6>&1
3391fi
3392fi
3393
3394
3395# Check whether --enable-sim-line-nr was given.
3396if test "${enable_sim_line_nr+set}" = set; then :
3397  enableval=$enable_sim_line_nr; case "${enableval}" in
3398  yes)	sim_line_nr="";;
3399  no)	sim_line_nr="-L";;
3400  *)	as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
3401esac
3402if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
3403  echo "Setting warning flags = $sim_line_nr" 6>&1
3404fi
3405else
3406  sim_line_nr=""
3407fi
3408
3409
3410# Check whether --enable-sim-model was given.
3411if test "${enable_sim_model+set}" = set; then :
3412  enableval=$enable_sim_model; case "${enableval}" in
3413  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
3414  *)		sim_model="-DWITH_MODEL=${enableval}";;
3415esac
3416if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
3417  echo "Setting model flags = $sim_model" 6>&1
3418fi
3419else
3420  sim_model=""
3421fi
3422
3423
3424# Check whether --enable-sim-model-issue was given.
3425if test "${enable_sim_model_issue+set}" = set; then :
3426  enableval=$enable_sim_model_issue; case "${enableval}" in
3427  yes)	sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
3428  no)	sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
3429  *)	as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
3430esac
3431if test x"$silent" != x"yes"; then
3432  echo "Setting model-issue flags = $sim_model_issue" 6>&1
3433fi
3434else
3435  sim_model_issue=""
3436fi
3437
3438
3439# Check whether --enable-sim-monitor was given.
3440if test "${enable_sim_monitor+set}" = set; then :
3441  enableval=$enable_sim_monitor; case "${enableval}" in
3442  yes)		sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
3443  no)		sim_monitor="-DWITH_MON=0";;
3444  instruction)	sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
3445  memory)	sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
3446  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5;;
3447esac
3448if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
3449  echo "Setting monitor flags = $sim_monitor" 6>&1
3450fi
3451else
3452  sim_monitor=""
3453fi
3454
3455
3456# Check whether --enable-sim-opcode was given.
3457if test "${enable_sim_opcode+set}" = set; then :
3458  enableval=$enable_sim_opcode; case "${enableval}" in
3459  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
3460  *)		if test -f "${srcdir}/${enableval}"; then
3461		  sim_opcode="${enableval}"
3462		elif test -f "${srcdir}/dc-${enableval}"; then
3463		  sim_opcode="dc-${enableval}"
3464		else
3465		  as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
3466		  sim_opcode="dc-complex"
3467		fi;;
3468esac
3469if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
3470  echo "Setting opcode flags = $sim_opcode" 6>&1
3471fi
3472else
3473  sim_opcode="dc-complex"
3474if test x"$silent" != x"yes"; then
3475  echo "Setting opcode flags = $sim_opcode"
3476fi
3477fi
3478
3479
3480# Check whether --enable-sim-smp was given.
3481if test "${enable_sim_smp+set}" = set; then :
3482  enableval=$enable_sim_smp; case "${enableval}" in
3483  yes)	sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
3484  no)	sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
3485  *)	sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
3486esac
3487if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
3488  echo "Setting smp flags = $sim_smp" 6>&1
3489fi
3490else
3491  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
3492if test x"$silent" != x"yes"; then
3493  echo "Setting smp flags = $sim_smp" 6>&1
3494fi
3495fi
3496
3497
3498# Check whether --enable-sim-switch was given.
3499if test "${enable_sim_switch+set}" = set; then :
3500  enableval=$enable_sim_switch; case "${enableval}" in
3501  yes)	sim_switch="-s";;
3502  no)	sim_switch="";;
3503  *)	as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
3504esac
3505if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
3506  echo "Setting switch flags = $sim_switch" 6>&1
3507fi
3508else
3509  sim_switch="";
3510if test x"$silent" != x"yes"; then
3511  echo "Setting switch flags = $sim_switch" 6>&1
3512fi
3513fi
3514
3515
3516# Check whether --enable-sim-timebase was given.
3517if test "${enable_sim_timebase+set}" = set; then :
3518  enableval=$enable_sim_timebase; case "${enableval}" in
3519  yes)	sim_timebase="-DWITH_TIME_BASE=1";;
3520  no)	sim_timebase="-DWITH_TIME_BASE=0";;
3521  *)	as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
3522esac
3523if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
3524  echo "Setting timebase flags = $sim_timebase" 6>&1
3525fi
3526else
3527  sim_timebase=""
3528fi
3529
3530
3531# Check whether --enable-sim-xor-endian was given.
3532if test "${enable_sim_xor_endian+set}" = set; then :
3533  enableval=$enable_sim_xor_endian; case "${enableval}" in
3534  yes)	sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
3535  no)	sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
3536  *)	sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
3537esac
3538if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
3539  echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
3540fi
3541else
3542  sim_xor_endian=""
3543fi
3544
3545
3546ac_config_headers="$ac_config_headers config.h:config.in"
3547
3548
3549
3550sim_termio=""
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
3552$as_echo_n "checking for struct termios... " >&6; }
3553if ${ac_cv_termios_struct+:} false; then :
3554  $as_echo_n "(cached) " >&6
3555else
3556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557/* end confdefs.h.  */
3558#include <sys/types.h>
3559#include <sys/termios.h>
3560int
3561main ()
3562{
3563static struct termios x;
3564 x.c_iflag = 0;
3565 x.c_oflag = 0;
3566 x.c_cflag = 0;
3567 x.c_lflag = 0;
3568 x.c_cc[NCCS] = 0;
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573if ac_fn_c_try_compile "$LINENO"; then :
3574  ac_cv_termios_struct=yes
3575else
3576  ac_cv_termios_struct=no
3577fi
3578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579fi
3580
3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
3582$as_echo "$ac_cv_termios_struct" >&6; }
3583if test $ac_cv_termios_struct = yes; then
3584  sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
3585fi
3586
3587if test "$ac_cv_termios_struct" = "yes"; then
3588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
3589$as_echo_n "checking for c_line field in struct termios... " >&6; }
3590  if ${ac_cv_termios_cline+:} false; then :
3591  $as_echo_n "(cached) " >&6
3592else
3593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595#include <sys/types.h>
3596#include <sys/termios.h>
3597int
3598main ()
3599{
3600static struct termios x; x.c_line = 0;
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605if ac_fn_c_try_compile "$LINENO"; then :
3606  ac_cv_termios_cline=yes
3607else
3608  ac_cv_termios_cline=no
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612
3613
3614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
3615$as_echo "$ac_cv_termios_cline" >&6; }
3616  if test $ac_cv_termios_cline = yes; then
3617    sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
3618  fi
3619else
3620  ac_cv_termios_cline=no
3621fi
3622
3623if test "$ac_cv_termios_struct" != "yes"; then
3624  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
3625$as_echo_n "checking for struct termio... " >&6; }
3626  if ${ac_cv_termio_struct+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630/* end confdefs.h.  */
3631#include <sys/types.h>
3632#include <sys/termio.h>
3633int
3634main ()
3635{
3636static struct termio x;
3637 x.c_iflag = 0;
3638 x.c_oflag = 0;
3639 x.c_cflag = 0;
3640 x.c_lflag = 0;
3641 x.c_cc[NCC] = 0;
3642  ;
3643  return 0;
3644}
3645_ACEOF
3646if ac_fn_c_try_compile "$LINENO"; then :
3647  ac_cv_termio_struct=yes
3648else
3649  ac_cv_termio_struct=no
3650fi
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652fi
3653
3654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
3655$as_echo "$ac_cv_termio_struct" >&6; }
3656  if test $ac_cv_termio_struct = yes; then
3657    sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
3658  fi
3659else
3660  ac_cv_termio_struct=no
3661fi
3662
3663if test "$ac_cv_termio_struct" = "yes"; then
3664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
3665$as_echo_n "checking for c_line field in struct termio... " >&6; }
3666  if ${ac_cv_termio_cline+:} false; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671#include <sys/types.h>
3672#include <sys/termio.h>
3673int
3674main ()
3675{
3676static struct termio x; x.c_line = 0;
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681if ac_fn_c_try_compile "$LINENO"; then :
3682  ac_cv_termio_cline=yes
3683else
3684  ac_cv_termio_cline=no
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688
3689
3690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
3691$as_echo "$ac_cv_termio_cline" >&6; }
3692  if test $ac_cv_termio_cline = yes; then
3693    sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
3694  fi
3695else
3696  ac_cv_termio_cline=no
3697fi
3698
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
3700$as_echo_n "checking for struct statfs... " >&6; }
3701if ${ac_cv_struct_statfs+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h.  */
3706#include <sys/types.h>
3707#ifdef HAVE_SYS_PARAM_H
3708#include <sys/param.h>
3709#endif
3710#ifdef HAVE_SYS_MOUNT_H
3711#include <sys/mount.h>
3712#endif
3713#ifdef HAVE_SYS_VFS_H
3714#include <sys/vfs.h>
3715#endif
3716#ifdef HAVE_SYS_STATFS_H
3717#include <sys/statfs.h>
3718#endif
3719int
3720main ()
3721{
3722static struct statfs s;
3723  ;
3724  return 0;
3725}
3726_ACEOF
3727if ac_fn_c_try_compile "$LINENO"; then :
3728  ac_cv_struct_statfs=yes
3729else
3730  ac_cv_struct_statfs=no
3731fi
3732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733fi
3734
3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
3736$as_echo "$ac_cv_struct_statfs" >&6; }
3737if test $ac_cv_struct_statfs = yes; then
3738
3739$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
3740
3741fi
3742
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3749$as_echo_n "checking how to run the C preprocessor... " >&6; }
3750# On Suns, sometimes $CPP names a directory.
3751if test -n "$CPP" && test -d "$CPP"; then
3752  CPP=
3753fi
3754if test -z "$CPP"; then
3755  if ${ac_cv_prog_CPP+:} false; then :
3756  $as_echo_n "(cached) " >&6
3757else
3758      # Double quotes because CPP needs to be expanded
3759    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760    do
3761      ac_preproc_ok=false
3762for ac_c_preproc_warn_flag in '' yes
3763do
3764  # Use a header file that comes with gcc, so configuring glibc
3765  # with a fresh cross-compiler works.
3766  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767  # <limits.h> exists even on freestanding compilers.
3768  # On the NeXT, cc -E runs the code through the compiler's parser,
3769  # not just through cpp. "Syntax error" is here to catch this case.
3770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771/* end confdefs.h.  */
3772#ifdef __STDC__
3773# include <limits.h>
3774#else
3775# include <assert.h>
3776#endif
3777		     Syntax error
3778_ACEOF
3779if ac_fn_c_try_cpp "$LINENO"; then :
3780
3781else
3782  # Broken: fails on valid input.
3783continue
3784fi
3785rm -f conftest.err conftest.i conftest.$ac_ext
3786
3787  # OK, works on sane cases.  Now check whether nonexistent headers
3788  # can be detected and how.
3789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h.  */
3791#include <ac_nonexistent.h>
3792_ACEOF
3793if ac_fn_c_try_cpp "$LINENO"; then :
3794  # Broken: success on invalid input.
3795continue
3796else
3797  # Passes both tests.
3798ac_preproc_ok=:
3799break
3800fi
3801rm -f conftest.err conftest.i conftest.$ac_ext
3802
3803done
3804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805rm -f conftest.i conftest.err conftest.$ac_ext
3806if $ac_preproc_ok; then :
3807  break
3808fi
3809
3810    done
3811    ac_cv_prog_CPP=$CPP
3812
3813fi
3814  CPP=$ac_cv_prog_CPP
3815else
3816  ac_cv_prog_CPP=$CPP
3817fi
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3819$as_echo "$CPP" >&6; }
3820ac_preproc_ok=false
3821for ac_c_preproc_warn_flag in '' yes
3822do
3823  # Use a header file that comes with gcc, so configuring glibc
3824  # with a fresh cross-compiler works.
3825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3826  # <limits.h> exists even on freestanding compilers.
3827  # On the NeXT, cc -E runs the code through the compiler's parser,
3828  # not just through cpp. "Syntax error" is here to catch this case.
3829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h.  */
3831#ifdef __STDC__
3832# include <limits.h>
3833#else
3834# include <assert.h>
3835#endif
3836		     Syntax error
3837_ACEOF
3838if ac_fn_c_try_cpp "$LINENO"; then :
3839
3840else
3841  # Broken: fails on valid input.
3842continue
3843fi
3844rm -f conftest.err conftest.i conftest.$ac_ext
3845
3846  # OK, works on sane cases.  Now check whether nonexistent headers
3847  # can be detected and how.
3848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850#include <ac_nonexistent.h>
3851_ACEOF
3852if ac_fn_c_try_cpp "$LINENO"; then :
3853  # Broken: success on invalid input.
3854continue
3855else
3856  # Passes both tests.
3857ac_preproc_ok=:
3858break
3859fi
3860rm -f conftest.err conftest.i conftest.$ac_ext
3861
3862done
3863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3864rm -f conftest.i conftest.err conftest.$ac_ext
3865if $ac_preproc_ok; then :
3866
3867else
3868  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3871See \`config.log' for more details" "$LINENO" 5; }
3872fi
3873
3874ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
3879
3880
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3882$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3883if ${ac_cv_path_GREP+:} false; then :
3884  $as_echo_n "(cached) " >&6
3885else
3886  if test -z "$GREP"; then
3887  ac_path_GREP_found=false
3888  # Loop through the user's path and test for each of PROGNAME-LIST
3889  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891do
3892  IFS=$as_save_IFS
3893  test -z "$as_dir" && as_dir=.
3894    for ac_prog in grep ggrep; do
3895    for ac_exec_ext in '' $ac_executable_extensions; do
3896      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3897      as_fn_executable_p "$ac_path_GREP" || continue
3898# Check for GNU ac_path_GREP and select it if it is found.
3899  # Check for GNU $ac_path_GREP
3900case `"$ac_path_GREP" --version 2>&1` in
3901*GNU*)
3902  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3903*)
3904  ac_count=0
3905  $as_echo_n 0123456789 >"conftest.in"
3906  while :
3907  do
3908    cat "conftest.in" "conftest.in" >"conftest.tmp"
3909    mv "conftest.tmp" "conftest.in"
3910    cp "conftest.in" "conftest.nl"
3911    $as_echo 'GREP' >> "conftest.nl"
3912    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914    as_fn_arith $ac_count + 1 && ac_count=$as_val
3915    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3916      # Best one so far, save it but keep looking for a better one
3917      ac_cv_path_GREP="$ac_path_GREP"
3918      ac_path_GREP_max=$ac_count
3919    fi
3920    # 10*(2^10) chars as input seems more than enough
3921    test $ac_count -gt 10 && break
3922  done
3923  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924esac
3925
3926      $ac_path_GREP_found && break 3
3927    done
3928  done
3929  done
3930IFS=$as_save_IFS
3931  if test -z "$ac_cv_path_GREP"; then
3932    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3933  fi
3934else
3935  ac_cv_path_GREP=$GREP
3936fi
3937
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3940$as_echo "$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3942
3943
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3945$as_echo_n "checking for egrep... " >&6; }
3946if ${ac_cv_path_EGREP+:} false; then :
3947  $as_echo_n "(cached) " >&6
3948else
3949  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950   then ac_cv_path_EGREP="$GREP -E"
3951   else
3952     if test -z "$EGREP"; then
3953  ac_path_EGREP_found=false
3954  # Loop through the user's path and test for each of PROGNAME-LIST
3955  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960    for ac_prog in egrep; do
3961    for ac_exec_ext in '' $ac_executable_extensions; do
3962      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3963      as_fn_executable_p "$ac_path_EGREP" || continue
3964# Check for GNU ac_path_EGREP and select it if it is found.
3965  # Check for GNU $ac_path_EGREP
3966case `"$ac_path_EGREP" --version 2>&1` in
3967*GNU*)
3968  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3969*)
3970  ac_count=0
3971  $as_echo_n 0123456789 >"conftest.in"
3972  while :
3973  do
3974    cat "conftest.in" "conftest.in" >"conftest.tmp"
3975    mv "conftest.tmp" "conftest.in"
3976    cp "conftest.in" "conftest.nl"
3977    $as_echo 'EGREP' >> "conftest.nl"
3978    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3979    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3980    as_fn_arith $ac_count + 1 && ac_count=$as_val
3981    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3982      # Best one so far, save it but keep looking for a better one
3983      ac_cv_path_EGREP="$ac_path_EGREP"
3984      ac_path_EGREP_max=$ac_count
3985    fi
3986    # 10*(2^10) chars as input seems more than enough
3987    test $ac_count -gt 10 && break
3988  done
3989  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990esac
3991
3992      $ac_path_EGREP_found && break 3
3993    done
3994  done
3995  done
3996IFS=$as_save_IFS
3997  if test -z "$ac_cv_path_EGREP"; then
3998    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3999  fi
4000else
4001  ac_cv_path_EGREP=$EGREP
4002fi
4003
4004   fi
4005fi
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4007$as_echo "$ac_cv_path_EGREP" >&6; }
4008 EGREP="$ac_cv_path_EGREP"
4009
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4012$as_echo_n "checking for ANSI C header files... " >&6; }
4013if ${ac_cv_header_stdc+:} false; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h.  */
4018#include <stdlib.h>
4019#include <stdarg.h>
4020#include <string.h>
4021#include <float.h>
4022
4023int
4024main ()
4025{
4026
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031if ac_fn_c_try_compile "$LINENO"; then :
4032  ac_cv_header_stdc=yes
4033else
4034  ac_cv_header_stdc=no
4035fi
4036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037
4038if test $ac_cv_header_stdc = yes; then
4039  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h.  */
4042#include <string.h>
4043
4044_ACEOF
4045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4046  $EGREP "memchr" >/dev/null 2>&1; then :
4047
4048else
4049  ac_cv_header_stdc=no
4050fi
4051rm -f conftest*
4052
4053fi
4054
4055if test $ac_cv_header_stdc = yes; then
4056  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058/* end confdefs.h.  */
4059#include <stdlib.h>
4060
4061_ACEOF
4062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4063  $EGREP "free" >/dev/null 2>&1; then :
4064
4065else
4066  ac_cv_header_stdc=no
4067fi
4068rm -f conftest*
4069
4070fi
4071
4072if test $ac_cv_header_stdc = yes; then
4073  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4074  if test "$cross_compiling" = yes; then :
4075  :
4076else
4077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078/* end confdefs.h.  */
4079#include <ctype.h>
4080#include <stdlib.h>
4081#if ((' ' & 0x0FF) == 0x020)
4082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4084#else
4085# define ISLOWER(c) \
4086		   (('a' <= (c) && (c) <= 'i') \
4087		     || ('j' <= (c) && (c) <= 'r') \
4088		     || ('s' <= (c) && (c) <= 'z'))
4089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4090#endif
4091
4092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4093int
4094main ()
4095{
4096  int i;
4097  for (i = 0; i < 256; i++)
4098    if (XOR (islower (i), ISLOWER (i))
4099	|| toupper (i) != TOUPPER (i))
4100      return 2;
4101  return 0;
4102}
4103_ACEOF
4104if ac_fn_c_try_run "$LINENO"; then :
4105
4106else
4107  ac_cv_header_stdc=no
4108fi
4109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4110  conftest.$ac_objext conftest.beam conftest.$ac_ext
4111fi
4112
4113fi
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4116$as_echo "$ac_cv_header_stdc" >&6; }
4117if test $ac_cv_header_stdc = yes; then
4118
4119$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4120
4121fi
4122
4123# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4124for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4125		  inttypes.h stdint.h unistd.h
4126do :
4127  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4128ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4129"
4130if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4131  cat >>confdefs.h <<_ACEOF
4132#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4133_ACEOF
4134
4135fi
4136
4137done
4138
4139
4140ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
4141if test "x$ac_cv_type_long_long" = xyes; then :
4142
4143cat >>confdefs.h <<_ACEOF
4144#define HAVE_LONG_LONG 1
4145_ACEOF
4146
4147
4148fi
4149
4150
4151# Since we run commands on the build system, we have to create a
4152# separate config header for the build system if build != host.
4153if test x$host = x$build; then
4154  ac_config_commands="$ac_config_commands build-config.h"
4155
4156else
4157  tempdir=build.$$
4158  rm -rf $tempdir
4159  mkdir $tempdir
4160  cd $tempdir
4161  case ${srcdir} in
4162  /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
4163  *) realsrcdir=../${srcdir};;
4164  esac
4165  saved_CFLAGS="${CFLAGS}"
4166  # Put a plausible default for CC_FOR_BUILD in Makefile.
4167  if test "x$cross_compiling" = "xno"; then
4168    CC_FOR_BUILD='$(CC)'
4169  else
4170    CC_FOR_BUILD=gcc
4171  fi
4172  CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD-${CFLAGS}}" \
4173  LDFLAGS="${LDFLAGS_FOR_BUILD}" \
4174  ${realsrcdir}/configure \
4175    --enable-languages=${enable_languages-all} \
4176    --target=$target_alias --host=$build_alias --build=$build_alias
4177  CFLAGS="${saved_CFLAGS}"
4178  mv config.h ../build-config.h
4179  cd ..
4180  rm -rf $tempdir
4181fi
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206ac_config_files="$ac_config_files Makefile"
4207
4208ac_config_commands="$ac_config_commands default"
4209
4210cat >confcache <<\_ACEOF
4211# This file is a shell script that caches the results of configure
4212# tests run on this system so they can be shared between configure
4213# scripts and configure runs, see configure's option --config-cache.
4214# It is not useful on other systems.  If it contains results you don't
4215# want to keep, you may remove or edit it.
4216#
4217# config.status only pays attention to the cache file if you give it
4218# the --recheck option to rerun configure.
4219#
4220# `ac_cv_env_foo' variables (set or unset) will be overridden when
4221# loading this file, other *unset* `ac_cv_foo' will be assigned the
4222# following values.
4223
4224_ACEOF
4225
4226# The following way of writing the cache mishandles newlines in values,
4227# but we know of no workaround that is simple, portable, and efficient.
4228# So, we kill variables containing newlines.
4229# Ultrix sh set writes to stderr and can't be redirected directly,
4230# and sets the high bit in the cache file unless we assign to the vars.
4231(
4232  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4233    eval ac_val=\$$ac_var
4234    case $ac_val in #(
4235    *${as_nl}*)
4236      case $ac_var in #(
4237      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4238$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4239      esac
4240      case $ac_var in #(
4241      _ | IFS | as_nl) ;; #(
4242      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4243      *) { eval $ac_var=; unset $ac_var;} ;;
4244      esac ;;
4245    esac
4246  done
4247
4248  (set) 2>&1 |
4249    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4250    *${as_nl}ac_space=\ *)
4251      # `set' does not quote correctly, so add quotes: double-quote
4252      # substitution turns \\\\ into \\, and sed turns \\ into \.
4253      sed -n \
4254	"s/'/'\\\\''/g;
4255	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4256      ;; #(
4257    *)
4258      # `set' quotes correctly as required by POSIX, so do not add quotes.
4259      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4260      ;;
4261    esac |
4262    sort
4263) |
4264  sed '
4265     /^ac_cv_env_/b end
4266     t clear
4267     :clear
4268     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4269     t end
4270     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4271     :end' >>confcache
4272if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4273  if test -w "$cache_file"; then
4274    if test "x$cache_file" != "x/dev/null"; then
4275      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4276$as_echo "$as_me: updating cache $cache_file" >&6;}
4277      if test ! -f "$cache_file" || test -h "$cache_file"; then
4278	cat confcache >"$cache_file"
4279      else
4280        case $cache_file in #(
4281        */* | ?:*)
4282	  mv -f confcache "$cache_file"$$ &&
4283	  mv -f "$cache_file"$$ "$cache_file" ;; #(
4284        *)
4285	  mv -f confcache "$cache_file" ;;
4286	esac
4287      fi
4288    fi
4289  else
4290    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4291$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4292  fi
4293fi
4294rm -f confcache
4295
4296test "x$prefix" = xNONE && prefix=$ac_default_prefix
4297# Let make expand exec_prefix.
4298test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4299
4300DEFS=-DHAVE_CONFIG_H
4301
4302ac_libobjs=
4303ac_ltlibobjs=
4304U=
4305for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4306  # 1. Remove the extension, and $U if already installed.
4307  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4308  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4309  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4310  #    will be set to the directory where LIBOBJS objects are built.
4311  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4312  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4313done
4314LIBOBJS=$ac_libobjs
4315
4316LTLIBOBJS=$ac_ltlibobjs
4317
4318
4319
4320: "${CONFIG_STATUS=./config.status}"
4321ac_write_fail=0
4322ac_clean_files_save=$ac_clean_files
4323ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4325$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4326as_write_fail=0
4327cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4328#! $SHELL
4329# Generated by $as_me.
4330# Run this file to recreate the current configuration.
4331# Compiler output produced by configure, useful for debugging
4332# configure, is in config.log if it exists.
4333
4334debug=false
4335ac_cs_recheck=false
4336ac_cs_silent=false
4337
4338SHELL=\${CONFIG_SHELL-$SHELL}
4339export SHELL
4340_ASEOF
4341cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4342## -------------------- ##
4343## M4sh Initialization. ##
4344## -------------------- ##
4345
4346# Be more Bourne compatible
4347DUALCASE=1; export DUALCASE # for MKS sh
4348if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4349  emulate sh
4350  NULLCMD=:
4351  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4352  # is contrary to our usage.  Disable this feature.
4353  alias -g '${1+"$@"}'='"$@"'
4354  setopt NO_GLOB_SUBST
4355else
4356  case `(set -o) 2>/dev/null` in #(
4357  *posix*) :
4358    set -o posix ;; #(
4359  *) :
4360     ;;
4361esac
4362fi
4363
4364
4365as_nl='
4366'
4367export as_nl
4368# Printing a long string crashes Solaris 7 /usr/bin/printf.
4369as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4370as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4371as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4372# Prefer a ksh shell builtin over an external printf program on Solaris,
4373# but without wasting forks for bash or zsh.
4374if test -z "$BASH_VERSION$ZSH_VERSION" \
4375    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4376  as_echo='print -r --'
4377  as_echo_n='print -rn --'
4378elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4379  as_echo='printf %s\n'
4380  as_echo_n='printf %s'
4381else
4382  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4383    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4384    as_echo_n='/usr/ucb/echo -n'
4385  else
4386    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4387    as_echo_n_body='eval
4388      arg=$1;
4389      case $arg in #(
4390      *"$as_nl"*)
4391	expr "X$arg" : "X\\(.*\\)$as_nl";
4392	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4393      esac;
4394      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4395    '
4396    export as_echo_n_body
4397    as_echo_n='sh -c $as_echo_n_body as_echo'
4398  fi
4399  export as_echo_body
4400  as_echo='sh -c $as_echo_body as_echo'
4401fi
4402
4403# The user is always right.
4404if test "${PATH_SEPARATOR+set}" != set; then
4405  PATH_SEPARATOR=:
4406  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4407    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4408      PATH_SEPARATOR=';'
4409  }
4410fi
4411
4412
4413# IFS
4414# We need space, tab and new line, in precisely that order.  Quoting is
4415# there to prevent editors from complaining about space-tab.
4416# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4417# splitting by setting IFS to empty value.)
4418IFS=" ""	$as_nl"
4419
4420# Find who we are.  Look in the path if we contain no directory separator.
4421as_myself=
4422case $0 in #((
4423  *[\\/]* ) as_myself=$0 ;;
4424  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427  IFS=$as_save_IFS
4428  test -z "$as_dir" && as_dir=.
4429    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4430  done
4431IFS=$as_save_IFS
4432
4433     ;;
4434esac
4435# We did not find ourselves, most probably we were run as `sh COMMAND'
4436# in which case we are not to be found in the path.
4437if test "x$as_myself" = x; then
4438  as_myself=$0
4439fi
4440if test ! -f "$as_myself"; then
4441  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4442  exit 1
4443fi
4444
4445# Unset variables that we do not need and which cause bugs (e.g. in
4446# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4447# suppresses any "Segmentation fault" message there.  '((' could
4448# trigger a bug in pdksh 5.2.14.
4449for as_var in BASH_ENV ENV MAIL MAILPATH
4450do eval test x\${$as_var+set} = xset \
4451  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4452done
4453PS1='$ '
4454PS2='> '
4455PS4='+ '
4456
4457# NLS nuisances.
4458LC_ALL=C
4459export LC_ALL
4460LANGUAGE=C
4461export LANGUAGE
4462
4463# CDPATH.
4464(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4465
4466
4467# as_fn_error STATUS ERROR [LINENO LOG_FD]
4468# ----------------------------------------
4469# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4470# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4471# script with STATUS, using 1 if that was 0.
4472as_fn_error ()
4473{
4474  as_status=$1; test $as_status -eq 0 && as_status=1
4475  if test "$4"; then
4476    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4477    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4478  fi
4479  $as_echo "$as_me: error: $2" >&2
4480  as_fn_exit $as_status
4481} # as_fn_error
4482
4483
4484# as_fn_set_status STATUS
4485# -----------------------
4486# Set $? to STATUS, without forking.
4487as_fn_set_status ()
4488{
4489  return $1
4490} # as_fn_set_status
4491
4492# as_fn_exit STATUS
4493# -----------------
4494# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4495as_fn_exit ()
4496{
4497  set +e
4498  as_fn_set_status $1
4499  exit $1
4500} # as_fn_exit
4501
4502# as_fn_unset VAR
4503# ---------------
4504# Portably unset VAR.
4505as_fn_unset ()
4506{
4507  { eval $1=; unset $1;}
4508}
4509as_unset=as_fn_unset
4510# as_fn_append VAR VALUE
4511# ----------------------
4512# Append the text in VALUE to the end of the definition contained in VAR. Take
4513# advantage of any shell optimizations that allow amortized linear growth over
4514# repeated appends, instead of the typical quadratic growth present in naive
4515# implementations.
4516if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4517  eval 'as_fn_append ()
4518  {
4519    eval $1+=\$2
4520  }'
4521else
4522  as_fn_append ()
4523  {
4524    eval $1=\$$1\$2
4525  }
4526fi # as_fn_append
4527
4528# as_fn_arith ARG...
4529# ------------------
4530# Perform arithmetic evaluation on the ARGs, and store the result in the
4531# global $as_val. Take advantage of shells that can avoid forks. The arguments
4532# must be portable across $(()) and expr.
4533if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4534  eval 'as_fn_arith ()
4535  {
4536    as_val=$(( $* ))
4537  }'
4538else
4539  as_fn_arith ()
4540  {
4541    as_val=`expr "$@" || test $? -eq 1`
4542  }
4543fi # as_fn_arith
4544
4545
4546if expr a : '\(a\)' >/dev/null 2>&1 &&
4547   test "X`expr 00001 : '.*\(...\)'`" = X001; then
4548  as_expr=expr
4549else
4550  as_expr=false
4551fi
4552
4553if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4554  as_basename=basename
4555else
4556  as_basename=false
4557fi
4558
4559if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4560  as_dirname=dirname
4561else
4562  as_dirname=false
4563fi
4564
4565as_me=`$as_basename -- "$0" ||
4566$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4567	 X"$0" : 'X\(//\)$' \| \
4568	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4569$as_echo X/"$0" |
4570    sed '/^.*\/\([^/][^/]*\)\/*$/{
4571	    s//\1/
4572	    q
4573	  }
4574	  /^X\/\(\/\/\)$/{
4575	    s//\1/
4576	    q
4577	  }
4578	  /^X\/\(\/\).*/{
4579	    s//\1/
4580	    q
4581	  }
4582	  s/.*/./; q'`
4583
4584# Avoid depending upon Character Ranges.
4585as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4586as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4587as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4588as_cr_digits='0123456789'
4589as_cr_alnum=$as_cr_Letters$as_cr_digits
4590
4591ECHO_C= ECHO_N= ECHO_T=
4592case `echo -n x` in #(((((
4593-n*)
4594  case `echo 'xy\c'` in
4595  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
4596  xy)  ECHO_C='\c';;
4597  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
4598       ECHO_T='	';;
4599  esac;;
4600*)
4601  ECHO_N='-n';;
4602esac
4603
4604rm -f conf$$ conf$$.exe conf$$.file
4605if test -d conf$$.dir; then
4606  rm -f conf$$.dir/conf$$.file
4607else
4608  rm -f conf$$.dir
4609  mkdir conf$$.dir 2>/dev/null
4610fi
4611if (echo >conf$$.file) 2>/dev/null; then
4612  if ln -s conf$$.file conf$$ 2>/dev/null; then
4613    as_ln_s='ln -s'
4614    # ... but there are two gotchas:
4615    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4616    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4617    # In both cases, we have to default to `cp -pR'.
4618    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4619      as_ln_s='cp -pR'
4620  elif ln conf$$.file conf$$ 2>/dev/null; then
4621    as_ln_s=ln
4622  else
4623    as_ln_s='cp -pR'
4624  fi
4625else
4626  as_ln_s='cp -pR'
4627fi
4628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4629rmdir conf$$.dir 2>/dev/null
4630
4631
4632# as_fn_mkdir_p
4633# -------------
4634# Create "$as_dir" as a directory, including parents if necessary.
4635as_fn_mkdir_p ()
4636{
4637
4638  case $as_dir in #(
4639  -*) as_dir=./$as_dir;;
4640  esac
4641  test -d "$as_dir" || eval $as_mkdir_p || {
4642    as_dirs=
4643    while :; do
4644      case $as_dir in #(
4645      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4646      *) as_qdir=$as_dir;;
4647      esac
4648      as_dirs="'$as_qdir' $as_dirs"
4649      as_dir=`$as_dirname -- "$as_dir" ||
4650$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4651	 X"$as_dir" : 'X\(//\)[^/]' \| \
4652	 X"$as_dir" : 'X\(//\)$' \| \
4653	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4654$as_echo X"$as_dir" |
4655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4656	    s//\1/
4657	    q
4658	  }
4659	  /^X\(\/\/\)[^/].*/{
4660	    s//\1/
4661	    q
4662	  }
4663	  /^X\(\/\/\)$/{
4664	    s//\1/
4665	    q
4666	  }
4667	  /^X\(\/\).*/{
4668	    s//\1/
4669	    q
4670	  }
4671	  s/.*/./; q'`
4672      test -d "$as_dir" && break
4673    done
4674    test -z "$as_dirs" || eval "mkdir $as_dirs"
4675  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4676
4677
4678} # as_fn_mkdir_p
4679if mkdir -p . 2>/dev/null; then
4680  as_mkdir_p='mkdir -p "$as_dir"'
4681else
4682  test -d ./-p && rmdir ./-p
4683  as_mkdir_p=false
4684fi
4685
4686
4687# as_fn_executable_p FILE
4688# -----------------------
4689# Test if FILE is an executable regular file.
4690as_fn_executable_p ()
4691{
4692  test -f "$1" && test -x "$1"
4693} # as_fn_executable_p
4694as_test_x='test -x'
4695as_executable_p=as_fn_executable_p
4696
4697# Sed expression to map a string onto a valid CPP name.
4698as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4699
4700# Sed expression to map a string onto a valid variable name.
4701as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4702
4703
4704exec 6>&1
4705## ----------------------------------- ##
4706## Main body of $CONFIG_STATUS script. ##
4707## ----------------------------------- ##
4708_ASEOF
4709test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4710
4711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4712# Save the log message, to keep $0 and so on meaningful, and to
4713# report actual input values of CONFIG_FILES etc. instead of their
4714# values after options handling.
4715ac_log="
4716This file was extended by $as_me, which was
4717generated by GNU Autoconf 2.69.  Invocation command line was
4718
4719  CONFIG_FILES    = $CONFIG_FILES
4720  CONFIG_HEADERS  = $CONFIG_HEADERS
4721  CONFIG_LINKS    = $CONFIG_LINKS
4722  CONFIG_COMMANDS = $CONFIG_COMMANDS
4723  $ $0 $@
4724
4725on `(hostname || uname -n) 2>/dev/null | sed 1q`
4726"
4727
4728_ACEOF
4729
4730case $ac_config_files in *"
4731"*) set x $ac_config_files; shift; ac_config_files=$*;;
4732esac
4733
4734case $ac_config_headers in *"
4735"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4736esac
4737
4738
4739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4740# Files that config.status was made for.
4741config_files="$ac_config_files"
4742config_headers="$ac_config_headers"
4743config_commands="$ac_config_commands"
4744
4745_ACEOF
4746
4747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4748ac_cs_usage="\
4749\`$as_me' instantiates files and other configuration actions
4750from templates according to the current configuration.  Unless the files
4751and actions are specified as TAGs, all are instantiated by default.
4752
4753Usage: $0 [OPTION]... [TAG]...
4754
4755  -h, --help       print this help, then exit
4756  -V, --version    print version number and configuration settings, then exit
4757      --config     print configuration, then exit
4758  -q, --quiet, --silent
4759                   do not print progress messages
4760  -d, --debug      don't remove temporary files
4761      --recheck    update $as_me by reconfiguring in the same conditions
4762      --file=FILE[:TEMPLATE]
4763                   instantiate the configuration file FILE
4764      --header=FILE[:TEMPLATE]
4765                   instantiate the configuration header FILE
4766
4767Configuration files:
4768$config_files
4769
4770Configuration headers:
4771$config_headers
4772
4773Configuration commands:
4774$config_commands
4775
4776Report bugs to the package provider."
4777
4778_ACEOF
4779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4780ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4781ac_cs_version="\\
4782config.status
4783configured by $0, generated by GNU Autoconf 2.69,
4784  with options \\"\$ac_cs_config\\"
4785
4786Copyright (C) 2012 Free Software Foundation, Inc.
4787This config.status script is free software; the Free Software Foundation
4788gives unlimited permission to copy, distribute and modify it."
4789
4790ac_pwd='$ac_pwd'
4791srcdir='$srcdir'
4792INSTALL='$INSTALL'
4793test -n "\$AWK" || AWK=awk
4794_ACEOF
4795
4796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4797# The default lists apply if the user does not specify any file.
4798ac_need_defaults=:
4799while test $# != 0
4800do
4801  case $1 in
4802  --*=?*)
4803    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4804    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4805    ac_shift=:
4806    ;;
4807  --*=)
4808    ac_option=`expr "X$1" : 'X\([^=]*\)='`
4809    ac_optarg=
4810    ac_shift=:
4811    ;;
4812  *)
4813    ac_option=$1
4814    ac_optarg=$2
4815    ac_shift=shift
4816    ;;
4817  esac
4818
4819  case $ac_option in
4820  # Handling of the options.
4821  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4822    ac_cs_recheck=: ;;
4823  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4824    $as_echo "$ac_cs_version"; exit ;;
4825  --config | --confi | --conf | --con | --co | --c )
4826    $as_echo "$ac_cs_config"; exit ;;
4827  --debug | --debu | --deb | --de | --d | -d )
4828    debug=: ;;
4829  --file | --fil | --fi | --f )
4830    $ac_shift
4831    case $ac_optarg in
4832    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4833    '') as_fn_error $? "missing file argument" ;;
4834    esac
4835    as_fn_append CONFIG_FILES " '$ac_optarg'"
4836    ac_need_defaults=false;;
4837  --header | --heade | --head | --hea )
4838    $ac_shift
4839    case $ac_optarg in
4840    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4841    esac
4842    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4843    ac_need_defaults=false;;
4844  --he | --h)
4845    # Conflict between --help and --header
4846    as_fn_error $? "ambiguous option: \`$1'
4847Try \`$0 --help' for more information.";;
4848  --help | --hel | -h )
4849    $as_echo "$ac_cs_usage"; exit ;;
4850  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4851  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4852    ac_cs_silent=: ;;
4853
4854  # This is an error.
4855  -*) as_fn_error $? "unrecognized option: \`$1'
4856Try \`$0 --help' for more information." ;;
4857
4858  *) as_fn_append ac_config_targets " $1"
4859     ac_need_defaults=false ;;
4860
4861  esac
4862  shift
4863done
4864
4865ac_configure_extra_args=
4866
4867if $ac_cs_silent; then
4868  exec 6>/dev/null
4869  ac_configure_extra_args="$ac_configure_extra_args --silent"
4870fi
4871
4872_ACEOF
4873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4874if \$ac_cs_recheck; then
4875  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4876  shift
4877  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4878  CONFIG_SHELL='$SHELL'
4879  export CONFIG_SHELL
4880  exec "\$@"
4881fi
4882
4883_ACEOF
4884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4885exec 5>>config.log
4886{
4887  echo
4888  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4889## Running $as_me. ##
4890_ASBOX
4891  $as_echo "$ac_log"
4892} >&5
4893
4894_ACEOF
4895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4896_ACEOF
4897
4898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4899
4900# Handling of arguments.
4901for ac_config_target in $ac_config_targets
4902do
4903  case $ac_config_target in
4904    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
4905    "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
4906    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4907    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4908
4909  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4910  esac
4911done
4912
4913
4914# If the user did not use the arguments to specify the items to instantiate,
4915# then the envvar interface is used.  Set only those that are not.
4916# We use the long form for the default assignment because of an extremely
4917# bizarre bug on SunOS 4.1.3.
4918if $ac_need_defaults; then
4919  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4920  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4921  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4922fi
4923
4924# Have a temporary directory for convenience.  Make it in the build tree
4925# simply because there is no reason against having it here, and in addition,
4926# creating and moving files from /tmp can sometimes cause problems.
4927# Hook for its removal unless debugging.
4928# Note that there is a small window in which the directory will not be cleaned:
4929# after its creation but before its name has been assigned to `$tmp'.
4930$debug ||
4931{
4932  tmp= ac_tmp=
4933  trap 'exit_status=$?
4934  : "${ac_tmp:=$tmp}"
4935  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4936' 0
4937  trap 'as_fn_exit 1' 1 2 13 15
4938}
4939# Create a (secure) tmp directory for tmp files.
4940
4941{
4942  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4943  test -d "$tmp"
4944}  ||
4945{
4946  tmp=./conf$$-$RANDOM
4947  (umask 077 && mkdir "$tmp")
4948} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4949ac_tmp=$tmp
4950
4951# Set up the scripts for CONFIG_FILES section.
4952# No need to generate them if there are no CONFIG_FILES.
4953# This happens for instance with `./config.status config.h'.
4954if test -n "$CONFIG_FILES"; then
4955
4956
4957ac_cr=`echo X | tr X '\015'`
4958# On cygwin, bash can eat \r inside `` if the user requested igncr.
4959# But we know of no other shell where ac_cr would be empty at this
4960# point, so we can use a bashism as a fallback.
4961if test "x$ac_cr" = x; then
4962  eval ac_cr=\$\'\\r\'
4963fi
4964ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4965if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4966  ac_cs_awk_cr='\\r'
4967else
4968  ac_cs_awk_cr=$ac_cr
4969fi
4970
4971echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4972_ACEOF
4973
4974
4975{
4976  echo "cat >conf$$subs.awk <<_ACEOF" &&
4977  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4978  echo "_ACEOF"
4979} >conf$$subs.sh ||
4980  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4981ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4982ac_delim='%!_!# '
4983for ac_last_try in false false false false false :; do
4984  . ./conf$$subs.sh ||
4985    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4986
4987  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4988  if test $ac_delim_n = $ac_delim_num; then
4989    break
4990  elif $ac_last_try; then
4991    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4992  else
4993    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4994  fi
4995done
4996rm -f conf$$subs.sh
4997
4998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4999cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5000_ACEOF
5001sed -n '
5002h
5003s/^/S["/; s/!.*/"]=/
5004p
5005g
5006s/^[^!]*!//
5007:repl
5008t repl
5009s/'"$ac_delim"'$//
5010t delim
5011:nl
5012h
5013s/\(.\{148\}\)..*/\1/
5014t more1
5015s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5016p
5017n
5018b repl
5019:more1
5020s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5021p
5022g
5023s/.\{148\}//
5024t nl
5025:delim
5026h
5027s/\(.\{148\}\)..*/\1/
5028t more2
5029s/["\\]/\\&/g; s/^/"/; s/$/"/
5030p
5031b
5032:more2
5033s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5034p
5035g
5036s/.\{148\}//
5037t delim
5038' <conf$$subs.awk | sed '
5039/^[^""]/{
5040  N
5041  s/\n//
5042}
5043' >>$CONFIG_STATUS || ac_write_fail=1
5044rm -f conf$$subs.awk
5045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5046_ACAWK
5047cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5048  for (key in S) S_is_set[key] = 1
5049  FS = ""
5050
5051}
5052{
5053  line = $ 0
5054  nfields = split(line, field, "@")
5055  substed = 0
5056  len = length(field[1])
5057  for (i = 2; i < nfields; i++) {
5058    key = field[i]
5059    keylen = length(key)
5060    if (S_is_set[key]) {
5061      value = S[key]
5062      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5063      len += length(value) + length(field[++i])
5064      substed = 1
5065    } else
5066      len += 1 + keylen
5067  }
5068
5069  print line
5070}
5071
5072_ACAWK
5073_ACEOF
5074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5075if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5076  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5077else
5078  cat
5079fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5080  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5081_ACEOF
5082
5083# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5084# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5085# trailing colons and then remove the whole line if VPATH becomes empty
5086# (actually we leave an empty line to preserve line numbers).
5087if test "x$srcdir" = x.; then
5088  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
5089h
5090s///
5091s/^/:/
5092s/[	 ]*$/:/
5093s/:\$(srcdir):/:/g
5094s/:\${srcdir}:/:/g
5095s/:@srcdir@:/:/g
5096s/^:*//
5097s/:*$//
5098x
5099s/\(=[	 ]*\).*/\1/
5100G
5101s/\n//
5102s/^[^=]*=[	 ]*$//
5103}'
5104fi
5105
5106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5107fi # test -n "$CONFIG_FILES"
5108
5109# Set up the scripts for CONFIG_HEADERS section.
5110# No need to generate them if there are no CONFIG_HEADERS.
5111# This happens for instance with `./config.status Makefile'.
5112if test -n "$CONFIG_HEADERS"; then
5113cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5114BEGIN {
5115_ACEOF
5116
5117# Transform confdefs.h into an awk script `defines.awk', embedded as
5118# here-document in config.status, that substitutes the proper values into
5119# config.h.in to produce config.h.
5120
5121# Create a delimiter string that does not exist in confdefs.h, to ease
5122# handling of long lines.
5123ac_delim='%!_!# '
5124for ac_last_try in false false :; do
5125  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5126  if test -z "$ac_tt"; then
5127    break
5128  elif $ac_last_try; then
5129    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5130  else
5131    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5132  fi
5133done
5134
5135# For the awk script, D is an array of macro values keyed by name,
5136# likewise P contains macro parameters if any.  Preserve backslash
5137# newline sequences.
5138
5139ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5140sed -n '
5141s/.\{148\}/&'"$ac_delim"'/g
5142t rset
5143:rset
5144s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5145t def
5146d
5147:def
5148s/\\$//
5149t bsnl
5150s/["\\]/\\&/g
5151s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5152D["\1"]=" \3"/p
5153s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5154d
5155:bsnl
5156s/["\\]/\\&/g
5157s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5158D["\1"]=" \3\\\\\\n"\\/p
5159t cont
5160s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5161t cont
5162d
5163:cont
5164n
5165s/.\{148\}/&'"$ac_delim"'/g
5166t clear
5167:clear
5168s/\\$//
5169t bsnlc
5170s/["\\]/\\&/g; s/^/"/; s/$/"/p
5171d
5172:bsnlc
5173s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5174b cont
5175' <confdefs.h | sed '
5176s/'"$ac_delim"'/"\\\
5177"/g' >>$CONFIG_STATUS || ac_write_fail=1
5178
5179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5180  for (key in D) D_is_set[key] = 1
5181  FS = ""
5182}
5183/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5184  line = \$ 0
5185  split(line, arg, " ")
5186  if (arg[1] == "#") {
5187    defundef = arg[2]
5188    mac1 = arg[3]
5189  } else {
5190    defundef = substr(arg[1], 2)
5191    mac1 = arg[2]
5192  }
5193  split(mac1, mac2, "(") #)
5194  macro = mac2[1]
5195  prefix = substr(line, 1, index(line, defundef) - 1)
5196  if (D_is_set[macro]) {
5197    # Preserve the white space surrounding the "#".
5198    print prefix "define", macro P[macro] D[macro]
5199    next
5200  } else {
5201    # Replace #undef with comments.  This is necessary, for example,
5202    # in the case of _POSIX_SOURCE, which is predefined and required
5203    # on some systems where configure will not decide to define it.
5204    if (defundef == "undef") {
5205      print "/*", prefix defundef, macro, "*/"
5206      next
5207    }
5208  }
5209}
5210{ print }
5211_ACAWK
5212_ACEOF
5213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5214  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5215fi # test -n "$CONFIG_HEADERS"
5216
5217
5218eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5219shift
5220for ac_tag
5221do
5222  case $ac_tag in
5223  :[FHLC]) ac_mode=$ac_tag; continue;;
5224  esac
5225  case $ac_mode$ac_tag in
5226  :[FHL]*:*);;
5227  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5228  :[FH]-) ac_tag=-:-;;
5229  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5230  esac
5231  ac_save_IFS=$IFS
5232  IFS=:
5233  set x $ac_tag
5234  IFS=$ac_save_IFS
5235  shift
5236  ac_file=$1
5237  shift
5238
5239  case $ac_mode in
5240  :L) ac_source=$1;;
5241  :[FH])
5242    ac_file_inputs=
5243    for ac_f
5244    do
5245      case $ac_f in
5246      -) ac_f="$ac_tmp/stdin";;
5247      *) # Look for the file first in the build tree, then in the source tree
5248	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5249	 # because $ac_f cannot contain `:'.
5250	 test -f "$ac_f" ||
5251	   case $ac_f in
5252	   [\\/$]*) false;;
5253	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5254	   esac ||
5255	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5256      esac
5257      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5258      as_fn_append ac_file_inputs " '$ac_f'"
5259    done
5260
5261    # Let's still pretend it is `configure' which instantiates (i.e., don't
5262    # use $as_me), people would be surprised to read:
5263    #    /* config.h.  Generated by config.status.  */
5264    configure_input='Generated from '`
5265	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5266	`' by configure.'
5267    if test x"$ac_file" != x-; then
5268      configure_input="$ac_file.  $configure_input"
5269      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5270$as_echo "$as_me: creating $ac_file" >&6;}
5271    fi
5272    # Neutralize special characters interpreted by sed in replacement strings.
5273    case $configure_input in #(
5274    *\&* | *\|* | *\\* )
5275       ac_sed_conf_input=`$as_echo "$configure_input" |
5276       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5277    *) ac_sed_conf_input=$configure_input;;
5278    esac
5279
5280    case $ac_tag in
5281    *:-:* | *:-) cat >"$ac_tmp/stdin" \
5282      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5283    esac
5284    ;;
5285  esac
5286
5287  ac_dir=`$as_dirname -- "$ac_file" ||
5288$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5289	 X"$ac_file" : 'X\(//\)[^/]' \| \
5290	 X"$ac_file" : 'X\(//\)$' \| \
5291	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5292$as_echo X"$ac_file" |
5293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5294	    s//\1/
5295	    q
5296	  }
5297	  /^X\(\/\/\)[^/].*/{
5298	    s//\1/
5299	    q
5300	  }
5301	  /^X\(\/\/\)$/{
5302	    s//\1/
5303	    q
5304	  }
5305	  /^X\(\/\).*/{
5306	    s//\1/
5307	    q
5308	  }
5309	  s/.*/./; q'`
5310  as_dir="$ac_dir"; as_fn_mkdir_p
5311  ac_builddir=.
5312
5313case "$ac_dir" in
5314.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5315*)
5316  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5317  # A ".." for each directory in $ac_dir_suffix.
5318  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5319  case $ac_top_builddir_sub in
5320  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5321  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5322  esac ;;
5323esac
5324ac_abs_top_builddir=$ac_pwd
5325ac_abs_builddir=$ac_pwd$ac_dir_suffix
5326# for backward compatibility:
5327ac_top_builddir=$ac_top_build_prefix
5328
5329case $srcdir in
5330  .)  # We are building in place.
5331    ac_srcdir=.
5332    ac_top_srcdir=$ac_top_builddir_sub
5333    ac_abs_top_srcdir=$ac_pwd ;;
5334  [\\/]* | ?:[\\/]* )  # Absolute name.
5335    ac_srcdir=$srcdir$ac_dir_suffix;
5336    ac_top_srcdir=$srcdir
5337    ac_abs_top_srcdir=$srcdir ;;
5338  *) # Relative name.
5339    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5340    ac_top_srcdir=$ac_top_build_prefix$srcdir
5341    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5342esac
5343ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5344
5345
5346  case $ac_mode in
5347  :F)
5348  #
5349  # CONFIG_FILE
5350  #
5351
5352  case $INSTALL in
5353  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5354  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5355  esac
5356_ACEOF
5357
5358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5359# If the template does not know about datarootdir, expand it.
5360# FIXME: This hack should be removed a few years after 2.60.
5361ac_datarootdir_hack=; ac_datarootdir_seen=
5362ac_sed_dataroot='
5363/datarootdir/ {
5364  p
5365  q
5366}
5367/@datadir@/p
5368/@docdir@/p
5369/@infodir@/p
5370/@localedir@/p
5371/@mandir@/p'
5372case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5373*datarootdir*) ac_datarootdir_seen=yes;;
5374*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5375  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5376$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5377_ACEOF
5378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5379  ac_datarootdir_hack='
5380  s&@datadir@&$datadir&g
5381  s&@docdir@&$docdir&g
5382  s&@infodir@&$infodir&g
5383  s&@localedir@&$localedir&g
5384  s&@mandir@&$mandir&g
5385  s&\\\${datarootdir}&$datarootdir&g' ;;
5386esac
5387_ACEOF
5388
5389# Neutralize VPATH when `$srcdir' = `.'.
5390# Shell code in configure.ac might set extrasub.
5391# FIXME: do we really want to maintain this feature?
5392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5393ac_sed_extra="$ac_vpsub
5394$extrasub
5395_ACEOF
5396cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5397:t
5398/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5399s|@configure_input@|$ac_sed_conf_input|;t t
5400s&@top_builddir@&$ac_top_builddir_sub&;t t
5401s&@top_build_prefix@&$ac_top_build_prefix&;t t
5402s&@srcdir@&$ac_srcdir&;t t
5403s&@abs_srcdir@&$ac_abs_srcdir&;t t
5404s&@top_srcdir@&$ac_top_srcdir&;t t
5405s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5406s&@builddir@&$ac_builddir&;t t
5407s&@abs_builddir@&$ac_abs_builddir&;t t
5408s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5409s&@INSTALL@&$ac_INSTALL&;t t
5410$ac_datarootdir_hack
5411"
5412eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5413  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5414
5415test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5416  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5417  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
5418      "$ac_tmp/out"`; test -z "$ac_out"; } &&
5419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5420which seems to be undefined.  Please make sure it is defined" >&5
5421$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5422which seems to be undefined.  Please make sure it is defined" >&2;}
5423
5424  rm -f "$ac_tmp/stdin"
5425  case $ac_file in
5426  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5427  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5428  esac \
5429  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5430 ;;
5431  :H)
5432  #
5433  # CONFIG_HEADER
5434  #
5435  if test x"$ac_file" != x-; then
5436    {
5437      $as_echo "/* $configure_input  */" \
5438      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5439    } >"$ac_tmp/config.h" \
5440      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5441    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5442      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5443$as_echo "$as_me: $ac_file is unchanged" >&6;}
5444    else
5445      rm -f "$ac_file"
5446      mv "$ac_tmp/config.h" "$ac_file" \
5447	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
5448    fi
5449  else
5450    $as_echo "/* $configure_input  */" \
5451      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5452      || as_fn_error $? "could not create -" "$LINENO" 5
5453  fi
5454 ;;
5455
5456  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5457$as_echo "$as_me: executing $ac_file commands" >&6;}
5458 ;;
5459  esac
5460
5461
5462  case $ac_file$ac_mode in
5463    "build-config.h":C) cp config.h build-config.h ;;
5464    "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
5465
5466  esac
5467done # for ac_tag
5468
5469
5470as_fn_exit 0
5471_ACEOF
5472ac_clean_files=$ac_clean_files_save
5473
5474test $ac_write_fail = 0 ||
5475  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5476
5477
5478# configure is writing to config.log, and then calls config.status.
5479# config.status does its own redirection, appending to config.log.
5480# Unfortunately, on DOS this fails, as config.log is still kept open
5481# by configure, so config.status won't be able to write to it; its
5482# output is simply discarded.  So we exec the FD to /dev/null,
5483# effectively closing config.log, so it can be properly (re)opened and
5484# appended to by config.status.  When coming back to configure, we
5485# need to make the FD available again.
5486if test "$no_create" != yes; then
5487  ac_cs_success=:
5488  ac_config_status_args=
5489  test "$silent" = yes &&
5490    ac_config_status_args="$ac_config_status_args --quiet"
5491  exec 5>/dev/null
5492  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5493  exec 5>>config.log
5494  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5495  # would make configure fail if this is the last instruction.
5496  $ac_cs_success || as_fn_exit 1
5497fi
5498if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5499  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5500$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5501fi
5502
5503