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
623sim_fpu
624sim_fpu_cflags
625sim_targ_vals
626sim_callback
627sim_devzero
628sim_termio
629sim_model_issue
630sim_model
631sim_monitor
632sim_reserved
633sim_timebase
634sim_hostbitsize
635sim_igen_smp
636sim_smp
637sim_hostendian
638sim_xor_endian
639sim_pk_obj
640sim_pk_src
641sim_hw_obj
642sim_hw_src
643sim_icache
644sim_filter
645sim_jump
646sim_decode_mechanism
647sim_dup
648sim_switch
649sim_opcode
650sim_config
651sim_line_nr
652sim_warnings
653RANLIB
654AR
655HDEFINES
656CFLAGS_FOR_BUILD
657CC_FOR_BUILD
658LIBOBJS
659zlibinc
660zlibdir
661target_os
662target_vendor
663target_cpu
664target
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673REPORT_BUGS_TEXI
674REPORT_BUGS_TO
675PKGVERSION
676EGREP
677GREP
678CPP
679CATOBJEXT
680GENCAT
681INSTOBJEXT
682DATADIRNAME
683CATALOGS
684POSUB
685GMSGFMT
686XGETTEXT
687INCINTL
688LIBINTL_DEP
689LIBINTL
690USE_NLS
691OBJEXT
692EXEEXT
693ac_ct_CC
694CPPFLAGS
695LDFLAGS
696CFLAGS
697CC
698INSTALL_DATA
699INSTALL_SCRIPT
700INSTALL_PROGRAM
701WERROR_CFLAGS
702WARN_CFLAGS
703sim_reserved_bits
704sim_inline
705sim_hw
706sim_hw_objs
707sim_hw_cflags
708sim_default_model
709sim_scache
710sim_float
711sim_endian
712sim_bitsize
713sim_alignment
714target_alias
715host_alias
716build_alias
717LIBS
718ECHO_T
719ECHO_N
720ECHO_C
721DEFS
722mandir
723localedir
724libdir
725psdir
726pdfdir
727dvidir
728htmldir
729infodir
730docdir
731oldincludedir
732includedir
733localstatedir
734sharedstatedir
735sysconfdir
736datadir
737datarootdir
738libexecdir
739sbindir
740bindir
741program_transform_name
742prefix
743exec_prefix
744PACKAGE_URL
745PACKAGE_BUGREPORT
746PACKAGE_STRING
747PACKAGE_VERSION
748PACKAGE_TARNAME
749PACKAGE_NAME
750PATH_SEPARATOR
751SHELL'
752ac_subst_files=''
753ac_user_opts='
754enable_option_checking
755enable_sim_alignment
756enable_sim_assert
757enable_sim_bitsize
758enable_sim_config
759enable_sim_decode_mechanism
760enable_sim_default_model
761enable_sim_duplicate
762enable_sim_endian
763enable_sim_env
764enable_sim_filter
765enable_sim_float
766enable_sim_hardware
767enable_sim_hostbitsize
768enable_sim_hostendian
769enable_sim_icache
770enable_sim_inline
771enable_sim_jump
772enable_sim_line_nr
773enable_sim_model
774enable_sim_model_issue
775enable_sim_monitor
776enable_sim_opcode
777enable_sim_packages
778enable_sim_reserved_bits
779enable_sim_smp
780enable_sim_stdio
781enable_sim_switch
782enable_sim_timebase
783enable_sim_trace
784enable_sim_warnings
785enable_sim_xor_endian
786with_pkgversion
787with_bugurl
788with_system_zlib
789enable_plugins
790'
791      ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797LIBS
798CPPFLAGS
799CPP'
800
801
802# Initialize some variables set by options.
803ac_init_help=
804ac_init_version=false
805ac_unrecognized_opts=
806ac_unrecognized_sep=
807# The variables have the same names as the options, with
808# dashes changed to underlines.
809cache_file=/dev/null
810exec_prefix=NONE
811no_create=
812no_recursion=
813prefix=NONE
814program_prefix=NONE
815program_suffix=NONE
816program_transform_name=s,x,x,
817silent=
818site=
819srcdir=
820verbose=
821x_includes=NONE
822x_libraries=NONE
823
824# Installation directory options.
825# These are left unexpanded so users can "make install exec_prefix=/foo"
826# and all the variables that are supposed to be based on exec_prefix
827# by default will actually change.
828# Use braces instead of parens because sh, perl, etc. also accept them.
829# (The list follows the same order as the GNU Coding Standards.)
830bindir='${exec_prefix}/bin'
831sbindir='${exec_prefix}/sbin'
832libexecdir='${exec_prefix}/libexec'
833datarootdir='${prefix}/share'
834datadir='${datarootdir}'
835sysconfdir='${prefix}/etc'
836sharedstatedir='${prefix}/com'
837localstatedir='${prefix}/var'
838includedir='${prefix}/include'
839oldincludedir='/usr/include'
840docdir='${datarootdir}/doc/${PACKAGE}'
841infodir='${datarootdir}/info'
842htmldir='${docdir}'
843dvidir='${docdir}'
844pdfdir='${docdir}'
845psdir='${docdir}'
846libdir='${exec_prefix}/lib'
847localedir='${datarootdir}/locale'
848mandir='${datarootdir}/man'
849
850ac_prev=
851ac_dashdash=
852for ac_option
853do
854  # If the previous option needs an argument, assign it.
855  if test -n "$ac_prev"; then
856    eval $ac_prev=\$ac_option
857    ac_prev=
858    continue
859  fi
860
861  case $ac_option in
862  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863  *=)   ac_optarg= ;;
864  *)    ac_optarg=yes ;;
865  esac
866
867  # Accept the important Cygnus configure options, so we can diagnose typos.
868
869  case $ac_dashdash$ac_option in
870  --)
871    ac_dashdash=yes ;;
872
873  -bindir | --bindir | --bindi | --bind | --bin | --bi)
874    ac_prev=bindir ;;
875  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876    bindir=$ac_optarg ;;
877
878  -build | --build | --buil | --bui | --bu)
879    ac_prev=build_alias ;;
880  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881    build_alias=$ac_optarg ;;
882
883  -cache-file | --cache-file | --cache-fil | --cache-fi \
884  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885    ac_prev=cache_file ;;
886  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888    cache_file=$ac_optarg ;;
889
890  --config-cache | -C)
891    cache_file=config.cache ;;
892
893  -datadir | --datadir | --datadi | --datad)
894    ac_prev=datadir ;;
895  -datadir=* | --datadir=* | --datadi=* | --datad=*)
896    datadir=$ac_optarg ;;
897
898  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899  | --dataroo | --dataro | --datar)
900    ac_prev=datarootdir ;;
901  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903    datarootdir=$ac_optarg ;;
904
905  -disable-* | --disable-*)
906    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907    # Reject names that are not valid shell variable names.
908    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909      as_fn_error $? "invalid feature name: $ac_useropt"
910    ac_useropt_orig=$ac_useropt
911    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912    case $ac_user_opts in
913      *"
914"enable_$ac_useropt"
915"*) ;;
916      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917	 ac_unrecognized_sep=', ';;
918    esac
919    eval enable_$ac_useropt=no ;;
920
921  -docdir | --docdir | --docdi | --doc | --do)
922    ac_prev=docdir ;;
923  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924    docdir=$ac_optarg ;;
925
926  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927    ac_prev=dvidir ;;
928  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929    dvidir=$ac_optarg ;;
930
931  -enable-* | --enable-*)
932    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933    # Reject names that are not valid shell variable names.
934    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935      as_fn_error $? "invalid feature name: $ac_useropt"
936    ac_useropt_orig=$ac_useropt
937    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938    case $ac_user_opts in
939      *"
940"enable_$ac_useropt"
941"*) ;;
942      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943	 ac_unrecognized_sep=', ';;
944    esac
945    eval enable_$ac_useropt=\$ac_optarg ;;
946
947  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949  | --exec | --exe | --ex)
950    ac_prev=exec_prefix ;;
951  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953  | --exec=* | --exe=* | --ex=*)
954    exec_prefix=$ac_optarg ;;
955
956  -gas | --gas | --ga | --g)
957    # Obsolete; use --with-gas.
958    with_gas=yes ;;
959
960  -help | --help | --hel | --he | -h)
961    ac_init_help=long ;;
962  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963    ac_init_help=recursive ;;
964  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965    ac_init_help=short ;;
966
967  -host | --host | --hos | --ho)
968    ac_prev=host_alias ;;
969  -host=* | --host=* | --hos=* | --ho=*)
970    host_alias=$ac_optarg ;;
971
972  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973    ac_prev=htmldir ;;
974  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975  | --ht=*)
976    htmldir=$ac_optarg ;;
977
978  -includedir | --includedir | --includedi | --included | --include \
979  | --includ | --inclu | --incl | --inc)
980    ac_prev=includedir ;;
981  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982  | --includ=* | --inclu=* | --incl=* | --inc=*)
983    includedir=$ac_optarg ;;
984
985  -infodir | --infodir | --infodi | --infod | --info | --inf)
986    ac_prev=infodir ;;
987  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988    infodir=$ac_optarg ;;
989
990  -libdir | --libdir | --libdi | --libd)
991    ac_prev=libdir ;;
992  -libdir=* | --libdir=* | --libdi=* | --libd=*)
993    libdir=$ac_optarg ;;
994
995  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996  | --libexe | --libex | --libe)
997    ac_prev=libexecdir ;;
998  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999  | --libexe=* | --libex=* | --libe=*)
1000    libexecdir=$ac_optarg ;;
1001
1002  -localedir | --localedir | --localedi | --localed | --locale)
1003    ac_prev=localedir ;;
1004  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005    localedir=$ac_optarg ;;
1006
1007  -localstatedir | --localstatedir | --localstatedi | --localstated \
1008  | --localstate | --localstat | --localsta | --localst | --locals)
1009    ac_prev=localstatedir ;;
1010  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012    localstatedir=$ac_optarg ;;
1013
1014  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015    ac_prev=mandir ;;
1016  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017    mandir=$ac_optarg ;;
1018
1019  -nfp | --nfp | --nf)
1020    # Obsolete; use --without-fp.
1021    with_fp=no ;;
1022
1023  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024  | --no-cr | --no-c | -n)
1025    no_create=yes ;;
1026
1027  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029    no_recursion=yes ;;
1030
1031  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033  | --oldin | --oldi | --old | --ol | --o)
1034    ac_prev=oldincludedir ;;
1035  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038    oldincludedir=$ac_optarg ;;
1039
1040  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041    ac_prev=prefix ;;
1042  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043    prefix=$ac_optarg ;;
1044
1045  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046  | --program-pre | --program-pr | --program-p)
1047    ac_prev=program_prefix ;;
1048  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050    program_prefix=$ac_optarg ;;
1051
1052  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053  | --program-suf | --program-su | --program-s)
1054    ac_prev=program_suffix ;;
1055  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057    program_suffix=$ac_optarg ;;
1058
1059  -program-transform-name | --program-transform-name \
1060  | --program-transform-nam | --program-transform-na \
1061  | --program-transform-n | --program-transform- \
1062  | --program-transform | --program-transfor \
1063  | --program-transfo | --program-transf \
1064  | --program-trans | --program-tran \
1065  | --progr-tra | --program-tr | --program-t)
1066    ac_prev=program_transform_name ;;
1067  -program-transform-name=* | --program-transform-name=* \
1068  | --program-transform-nam=* | --program-transform-na=* \
1069  | --program-transform-n=* | --program-transform-=* \
1070  | --program-transform=* | --program-transfor=* \
1071  | --program-transfo=* | --program-transf=* \
1072  | --program-trans=* | --program-tran=* \
1073  | --progr-tra=* | --program-tr=* | --program-t=*)
1074    program_transform_name=$ac_optarg ;;
1075
1076  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077    ac_prev=pdfdir ;;
1078  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079    pdfdir=$ac_optarg ;;
1080
1081  -psdir | --psdir | --psdi | --psd | --ps)
1082    ac_prev=psdir ;;
1083  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084    psdir=$ac_optarg ;;
1085
1086  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087  | -silent | --silent | --silen | --sile | --sil)
1088    silent=yes ;;
1089
1090  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091    ac_prev=sbindir ;;
1092  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093  | --sbi=* | --sb=*)
1094    sbindir=$ac_optarg ;;
1095
1096  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098  | --sharedst | --shareds | --shared | --share | --shar \
1099  | --sha | --sh)
1100    ac_prev=sharedstatedir ;;
1101  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104  | --sha=* | --sh=*)
1105    sharedstatedir=$ac_optarg ;;
1106
1107  -site | --site | --sit)
1108    ac_prev=site ;;
1109  -site=* | --site=* | --sit=*)
1110    site=$ac_optarg ;;
1111
1112  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113    ac_prev=srcdir ;;
1114  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115    srcdir=$ac_optarg ;;
1116
1117  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118  | --syscon | --sysco | --sysc | --sys | --sy)
1119    ac_prev=sysconfdir ;;
1120  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122    sysconfdir=$ac_optarg ;;
1123
1124  -target | --target | --targe | --targ | --tar | --ta | --t)
1125    ac_prev=target_alias ;;
1126  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127    target_alias=$ac_optarg ;;
1128
1129  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130    verbose=yes ;;
1131
1132  -version | --version | --versio | --versi | --vers | -V)
1133    ac_init_version=: ;;
1134
1135  -with-* | --with-*)
1136    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137    # Reject names that are not valid shell variable names.
1138    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139      as_fn_error $? "invalid package name: $ac_useropt"
1140    ac_useropt_orig=$ac_useropt
1141    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142    case $ac_user_opts in
1143      *"
1144"with_$ac_useropt"
1145"*) ;;
1146      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147	 ac_unrecognized_sep=', ';;
1148    esac
1149    eval with_$ac_useropt=\$ac_optarg ;;
1150
1151  -without-* | --without-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=no ;;
1166
1167  --x)
1168    # Obsolete; use --with-x.
1169    with_x=yes ;;
1170
1171  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172  | --x-incl | --x-inc | --x-in | --x-i)
1173    ac_prev=x_includes ;;
1174  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176    x_includes=$ac_optarg ;;
1177
1178  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180    ac_prev=x_libraries ;;
1181  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183    x_libraries=$ac_optarg ;;
1184
1185  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186Try \`$0 --help' for more information"
1187    ;;
1188
1189  *=*)
1190    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191    # Reject names that are not valid shell variable names.
1192    case $ac_envvar in #(
1193      '' | [0-9]* | *[!_$as_cr_alnum]* )
1194      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195    esac
1196    eval $ac_envvar=\$ac_optarg
1197    export $ac_envvar ;;
1198
1199  *)
1200    # FIXME: should be removed in autoconf 3.0.
1201    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205    ;;
1206
1207  esac
1208done
1209
1210if test -n "$ac_prev"; then
1211  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212  as_fn_error $? "missing argument to $ac_option"
1213fi
1214
1215if test -n "$ac_unrecognized_opts"; then
1216  case $enable_option_checking in
1217    no) ;;
1218    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220  esac
1221fi
1222
1223# Check all directory arguments for consistency.
1224for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225		datadir sysconfdir sharedstatedir localstatedir includedir \
1226		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227		libdir localedir mandir
1228do
1229  eval ac_val=\$$ac_var
1230  # Remove trailing slashes.
1231  case $ac_val in
1232    */ )
1233      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234      eval $ac_var=\$ac_val;;
1235  esac
1236  # Be sure to have absolute directory names.
1237  case $ac_val in
1238    [\\/$]* | ?:[\\/]* )  continue;;
1239    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240  esac
1241  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242done
1243
1244# There might be people who depend on the old broken behavior: `$host'
1245# used to hold the argument of --host etc.
1246# FIXME: To remove some day.
1247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
1251# FIXME: To remove some day.
1252if test "x$host_alias" != x; then
1253  if test "x$build_alias" = x; then
1254    cross_compiling=maybe
1255  elif test "x$build_alias" != "x$host_alias"; then
1256    cross_compiling=yes
1257  fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269  as_fn_error $? "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271  as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276  ac_srcdir_defaulted=yes
1277  # Try the directory containing this script, then the parent directory.
1278  ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280	 X"$as_myself" : 'X\(//\)[^/]' \| \
1281	 X"$as_myself" : 'X\(//\)$' \| \
1282	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\/\)[^/].*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  /^X\(\/\/\)$/{
1293	    s//\1/
1294	    q
1295	  }
1296	  /^X\(\/\).*/{
1297	    s//\1/
1298	    q
1299	  }
1300	  s/.*/./; q'`
1301  srcdir=$ac_confdir
1302  if test ! -r "$srcdir/$ac_unique_file"; then
1303    srcdir=..
1304  fi
1305else
1306  ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315	pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318  srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_env_${ac_var}_value=\$${ac_var}
1329  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337  # Omit some internal or obsolete options to make the list less imposing.
1338  # This message is too long to be a string in the A/UX 3.1 sh.
1339  cat <<_ACEOF
1340\`configure' configures this package to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE.  See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350  -h, --help              display this help and exit
1351      --help=short        display options specific to this package
1352      --help=recursive    display the short help of all the included packages
1353  -V, --version           display version information and exit
1354  -q, --quiet, --silent   do not print \`checking ...' messages
1355      --cache-file=FILE   cache test results in FILE [disabled]
1356  -C, --config-cache      alias for \`--cache-file=config.cache'
1357  -n, --no-create         do not create output files
1358      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1359
1360Installation directories:
1361  --prefix=PREFIX         install architecture-independent files in PREFIX
1362                          [$ac_default_prefix]
1363  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1364                          [PREFIX]
1365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374  --bindir=DIR            user executables [EPREFIX/bin]
1375  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1376  --libexecdir=DIR        program executables [EPREFIX/libexec]
1377  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1378  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1379  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1380  --libdir=DIR            object code libraries [EPREFIX/lib]
1381  --includedir=DIR        C header files [PREFIX/include]
1382  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1383  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1384  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1385  --infodir=DIR           info documentation [DATAROOTDIR/info]
1386  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1387  --mandir=DIR            man documentation [DATAROOTDIR/man]
1388  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1389  --htmldir=DIR           html documentation [DOCDIR]
1390  --dvidir=DIR            dvi documentation [DOCDIR]
1391  --pdfdir=DIR            pdf documentation [DOCDIR]
1392  --psdir=DIR             ps documentation [DOCDIR]
1393_ACEOF
1394
1395  cat <<\_ACEOF
1396
1397Program names:
1398  --program-prefix=PREFIX            prepend PREFIX to installed program names
1399  --program-suffix=SUFFIX            append SUFFIX to installed program names
1400  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1401
1402System types:
1403  --build=BUILD     configure for building on BUILD [guessed]
1404  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1405  --target=TARGET   configure for building compilers for TARGET [HOST]
1406_ACEOF
1407fi
1408
1409if test -n "$ac_init_help"; then
1410
1411  cat <<\_ACEOF
1412
1413Optional Features:
1414  --disable-option-checking  ignore unrecognized --enable/--with options
1415  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1416  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1417  --enable-sim-alignment=align		Specify strict or nonstrict alignment.
1418  --enable-sim-assert			Specify whether to perform random assertions.
1419  --enable-sim-bitsize=n		Specify target bitsize (32 or 64).
1420  --enable-sim-config=file		Override default config file
1421  --enable-sim-decode-mechanism=which		Specify the instruction decode mechanism.
1422  --enable-sim-default-model=which	Specify default PowerPC to model.
1423  --enable-sim-duplicate		Expand (duplicate) semantic functions.
1424  --enable-sim-endian=endian		Specify target byte endian orientation.
1425  --enable-sim-env=env			Specify target environment (operating, virtual, user).
1426  --enable-sim-filter=rule		Specify filter rules.
1427  --enable-sim-float			Specify whether the target has hard, soft, altivec or e500 floating point.
1428  --enable-sim-hardware=list		Specify the hardware to be included in the build.
1429  --enable-sim-hostbitsize=32|64	Specify host bitsize (32 or 64).
1430  --enable-sim-hostendian=end		Specify host byte endian orientation.
1431  --enable-sim-icache=size		Specify instruction-decode cache size and type.
1432  --enable-sim-inline=inlines		Specify which functions should be inlined.
1433  --enable-sim-jump		Jump between semantic code (instead of call/return).
1434  --enable-sim-line-nr=opts		Generate extra CPP code that references source rather than generated code
1435  --enable-sim-model=which		Specify PowerPC to model.
1436  --enable-sim-model-issue		Specify whether to simulate model specific actions
1437  --enable-sim-monitor=mon		Specify whether to enable monitoring events.
1438  --enable-sim-opcode=which		Override default opcode lookup.
1439  --enable-sim-packages=list		Specify the packages to be included in the build.
1440  --enable-sim-reserved-bits		Specify whether to check reserved bits in instruction.
1441  --enable-sim-smp=n			Specify number of processors to configure for.
1442  --enable-sim-stdio			Specify whether to use stdio for console input/output.
1443  --enable-sim-switch			Use a switch instead of a table for instruction call.
1444  --enable-sim-timebase			Specify whether the PPC timebase is supported.
1445  --enable-sim-trace			Specify whether tracing is supported.
1446  --enable-sim-warnings=opts		Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o
1447  --enable-sim-xor-endian=n		Specify number bytes involved in PowerPC XOR bi-endian mode (default 8).
1448  --enable-plugins        Enable support for plugins
1449
1450Optional Packages:
1451  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453  --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1454  --with-bugurl=URL       Direct users to URL to report a bug
1455  --with-system-zlib      use installed libz
1456
1457Some influential environment variables:
1458  CC          C compiler command
1459  CFLAGS      C compiler flags
1460  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1461              nonstandard directory <lib dir>
1462  LIBS        libraries to pass to the linker, e.g. -l<library>
1463  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1464              you have headers in a nonstandard directory <include dir>
1465  CPP         C preprocessor
1466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to the package provider.
1471_ACEOF
1472ac_status=$?
1473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476  # If there are subdirs, report their specific --help.
1477  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478    test -d "$ac_dir" ||
1479      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480      continue
1481    ac_builddir=.
1482
1483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
1486  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487  # A ".." for each directory in $ac_dir_suffix.
1488  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489  case $ac_top_builddir_sub in
1490  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492  esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
1498
1499case $srcdir in
1500  .)  # We are building in place.
1501    ac_srcdir=.
1502    ac_top_srcdir=$ac_top_builddir_sub
1503    ac_abs_top_srcdir=$ac_pwd ;;
1504  [\\/]* | ?:[\\/]* )  # Absolute name.
1505    ac_srcdir=$srcdir$ac_dir_suffix;
1506    ac_top_srcdir=$srcdir
1507    ac_abs_top_srcdir=$srcdir ;;
1508  *) # Relative name.
1509    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510    ac_top_srcdir=$ac_top_build_prefix$srcdir
1511    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512esac
1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515    cd "$ac_dir" || { ac_status=$?; continue; }
1516    # Check for guested configure.
1517    if test -f "$ac_srcdir/configure.gnu"; then
1518      echo &&
1519      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520    elif test -f "$ac_srcdir/configure"; then
1521      echo &&
1522      $SHELL "$ac_srcdir/configure" --help=recursive
1523    else
1524      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525    fi || ac_status=$?
1526    cd "$ac_pwd" || { ac_status=$?; break; }
1527  done
1528fi
1529
1530test -n "$ac_init_help" && exit $ac_status
1531if $ac_init_version; then
1532  cat <<\_ACEOF
1533configure
1534generated by GNU Autoconf 2.69
1535
1536Copyright (C) 2012 Free Software Foundation, Inc.
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539_ACEOF
1540  exit
1541fi
1542
1543## ------------------------ ##
1544## Autoconf initialization. ##
1545## ------------------------ ##
1546
1547# ac_fn_c_try_compile LINENO
1548# --------------------------
1549# Try to compile conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_compile ()
1551{
1552  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553  rm -f conftest.$ac_objext
1554  if { { ac_try="$ac_compile"
1555case "(($ac_try" in
1556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557  *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561  (eval "$ac_compile") 2>conftest.err
1562  ac_status=$?
1563  if test -s conftest.err; then
1564    grep -v '^ *+' conftest.err >conftest.er1
1565    cat conftest.er1 >&5
1566    mv -f conftest.er1 conftest.err
1567  fi
1568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569  test $ac_status = 0; } && {
1570	 test -z "$ac_c_werror_flag" ||
1571	 test ! -s conftest.err
1572       } && test -s conftest.$ac_objext; then :
1573  ac_retval=0
1574else
1575  $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578	ac_retval=1
1579fi
1580  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581  as_fn_set_status $ac_retval
1582
1583} # ac_fn_c_try_compile
1584
1585# ac_fn_c_try_run LINENO
1586# ----------------------
1587# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1588# that executables *can* be run.
1589ac_fn_c_try_run ()
1590{
1591  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592  if { { ac_try="$ac_link"
1593case "(($ac_try" in
1594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595  *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599  (eval "$ac_link") 2>&5
1600  ac_status=$?
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1603  { { case "(($ac_try" in
1604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605  *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609  (eval "$ac_try") 2>&5
1610  ac_status=$?
1611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612  test $ac_status = 0; }; }; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: program exited with status $ac_status" >&5
1616       $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619       ac_retval=$ac_status
1620fi
1621  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623  as_fn_set_status $ac_retval
1624
1625} # ac_fn_c_try_run
1626
1627# ac_fn_c_try_cpp LINENO
1628# ----------------------
1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_cpp ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  if { { ac_try="$ac_cpp conftest.$ac_ext"
1634case "(($ac_try" in
1635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636  *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641  ac_status=$?
1642  if test -s conftest.err; then
1643    grep -v '^ *+' conftest.err >conftest.er1
1644    cat conftest.er1 >&5
1645    mv -f conftest.er1 conftest.err
1646  fi
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } > conftest.i && {
1649	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650	 test ! -s conftest.err
1651       }; then :
1652  ac_retval=0
1653else
1654  $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657    ac_retval=1
1658fi
1659  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660  as_fn_set_status $ac_retval
1661
1662} # ac_fn_c_try_cpp
1663
1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1665# -------------------------------------------------------
1666# Tests whether HEADER exists and can be compiled using the include files in
1667# INCLUDES, setting the cache variable VAR accordingly.
1668ac_fn_c_check_header_compile ()
1669{
1670  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1672$as_echo_n "checking for $2... " >&6; }
1673if eval \${$3+:} false; then :
1674  $as_echo_n "(cached) " >&6
1675else
1676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1677/* end confdefs.h.  */
1678$4
1679#include <$2>
1680_ACEOF
1681if ac_fn_c_try_compile "$LINENO"; then :
1682  eval "$3=yes"
1683else
1684  eval "$3=no"
1685fi
1686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1687fi
1688eval ac_res=\$$3
1689	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1690$as_echo "$ac_res" >&6; }
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692
1693} # ac_fn_c_check_header_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
1699{
1700  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701  rm -f conftest.$ac_objext conftest$ac_exeext
1702  if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705  *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709  (eval "$ac_link") 2>conftest.err
1710  ac_status=$?
1711  if test -s conftest.err; then
1712    grep -v '^ *+' conftest.err >conftest.er1
1713    cat conftest.er1 >&5
1714    mv -f conftest.er1 conftest.err
1715  fi
1716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717  test $ac_status = 0; } && {
1718	 test -z "$ac_c_werror_flag" ||
1719	 test ! -s conftest.err
1720       } && test -s conftest$ac_exeext && {
1721	 test "$cross_compiling" = yes ||
1722	 test -x conftest$ac_exeext
1723       }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729	ac_retval=1
1730fi
1731  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733  # interfere with the next link command; also delete a directory that is
1734  # left behind by Apple's compiler.  We do this before executing the actions.
1735  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737  as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_link
1740
1741# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1742# ----------------------------------------------------
1743# Tries to find if the field MEMBER exists in type AGGR, after including
1744# INCLUDES, setting cache variable VAR accordingly.
1745ac_fn_c_check_member ()
1746{
1747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1749$as_echo_n "checking for $2.$3... " >&6; }
1750if eval \${$4+:} false; then :
1751  $as_echo_n "(cached) " >&6
1752else
1753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755$5
1756int
1757main ()
1758{
1759static $2 ac_aggr;
1760if (ac_aggr.$3)
1761return 0;
1762  ;
1763  return 0;
1764}
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$4=yes"
1768else
1769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h.  */
1771$5
1772int
1773main ()
1774{
1775static $2 ac_aggr;
1776if (sizeof ac_aggr.$3)
1777return 0;
1778  ;
1779  return 0;
1780}
1781_ACEOF
1782if ac_fn_c_try_compile "$LINENO"; then :
1783  eval "$4=yes"
1784else
1785  eval "$4=no"
1786fi
1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788fi
1789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790fi
1791eval ac_res=\$$4
1792	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793$as_echo "$ac_res" >&6; }
1794  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796} # ac_fn_c_check_member
1797
1798# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1799# ---------------------------------------------
1800# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1801# accordingly.
1802ac_fn_c_check_decl ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  as_decl_name=`echo $2|sed 's/ *(.*//'`
1806  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1808$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1809if eval \${$3+:} false; then :
1810  $as_echo_n "(cached) " >&6
1811else
1812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h.  */
1814$4
1815int
1816main ()
1817{
1818#ifndef $as_decl_name
1819#ifdef __cplusplus
1820  (void) $as_decl_use;
1821#else
1822  (void) $as_decl_name;
1823#endif
1824#endif
1825
1826  ;
1827  return 0;
1828}
1829_ACEOF
1830if ac_fn_c_try_compile "$LINENO"; then :
1831  eval "$3=yes"
1832else
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836fi
1837eval ac_res=\$$3
1838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_c_check_decl
1843
1844# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1845# -------------------------------------------
1846# Tests whether TYPE exists after having included INCLUDES, setting cache
1847# variable VAR accordingly.
1848ac_fn_c_check_type ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855else
1856  eval "$3=no"
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860int
1861main ()
1862{
1863if (sizeof ($2))
1864	 return 0;
1865  ;
1866  return 0;
1867}
1868_ACEOF
1869if ac_fn_c_try_compile "$LINENO"; then :
1870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h.  */
1872$4
1873int
1874main ()
1875{
1876if (sizeof (($2)))
1877	    return 0;
1878  ;
1879  return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883
1884else
1885  eval "$3=yes"
1886fi
1887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896} # ac_fn_c_check_type
1897
1898# ac_fn_c_check_func LINENO FUNC VAR
1899# ----------------------------------
1900# Tests whether FUNC exists, setting the cache variable VAR accordingly
1901ac_fn_c_check_func ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if eval \${$3+:} false; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1912   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1913#define $2 innocuous_$2
1914
1915/* System header to define __stub macros and hopefully few prototypes,
1916    which can conflict with char $2 (); below.
1917    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1918    <limits.h> exists even on freestanding compilers.  */
1919
1920#ifdef __STDC__
1921# include <limits.h>
1922#else
1923# include <assert.h>
1924#endif
1925
1926#undef $2
1927
1928/* Override any GCC internal prototype to avoid an error.
1929   Use char because int might match the return type of a GCC
1930   builtin and then its argument prototype would still apply.  */
1931#ifdef __cplusplus
1932extern "C"
1933#endif
1934char $2 ();
1935/* The GNU C library defines this for functions which it implements
1936    to always fail with ENOSYS.  Some functions are actually named
1937    something starting with __ and the normal name is an alias.  */
1938#if defined __stub_$2 || defined __stub___$2
1939choke me
1940#endif
1941
1942int
1943main ()
1944{
1945return $2 ();
1946  ;
1947  return 0;
1948}
1949_ACEOF
1950if ac_fn_c_try_link "$LINENO"; then :
1951  eval "$3=yes"
1952else
1953  eval "$3=no"
1954fi
1955rm -f core conftest.err conftest.$ac_objext \
1956    conftest$ac_exeext conftest.$ac_ext
1957fi
1958eval ac_res=\$$3
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962
1963} # ac_fn_c_check_func
1964
1965# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966# -------------------------------------------------------
1967# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968# the include files in INCLUDES and setting the cache variable VAR
1969# accordingly.
1970ac_fn_c_check_header_mongrel ()
1971{
1972  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973  if eval \${$3+:} false; then :
1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval \${$3+:} false; then :
1977  $as_echo_n "(cached) " >&6
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982else
1983  # Is the header compilable?
1984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985$as_echo_n "checking $2 usability... " >&6; }
1986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h.  */
1988$4
1989#include <$2>
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992  ac_header_compiler=yes
1993else
1994  ac_header_compiler=no
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998$as_echo "$ac_header_compiler" >&6; }
1999
2000# Is the header present?
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002$as_echo_n "checking $2 presence... " >&6; }
2003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h.  */
2005#include <$2>
2006_ACEOF
2007if ac_fn_c_try_cpp "$LINENO"; then :
2008  ac_header_preproc=yes
2009else
2010  ac_header_preproc=no
2011fi
2012rm -f conftest.err conftest.i conftest.$ac_ext
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014$as_echo "$ac_header_preproc" >&6; }
2015
2016# So?  What about this header?
2017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018  yes:no: )
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023    ;;
2024  no:yes:* )
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2028$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2032$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2033    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035    ;;
2036esac
2037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038$as_echo_n "checking for $2... " >&6; }
2039if eval \${$3+:} false; then :
2040  $as_echo_n "(cached) " >&6
2041else
2042  eval "$3=\$ac_header_compiler"
2043fi
2044eval ac_res=\$$3
2045	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047fi
2048  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050} # ac_fn_c_check_header_mongrel
2051cat >config.log <<_ACEOF
2052This file contains any messages produced by compilers while
2053running configure, to aid debugging if configure makes a mistake.
2054
2055It was created by $as_me, which was
2056generated by GNU Autoconf 2.69.  Invocation command line was
2057
2058  $ $0 $@
2059
2060_ACEOF
2061exec 5>>config.log
2062{
2063cat <<_ASUNAME
2064## --------- ##
2065## Platform. ##
2066## --------- ##
2067
2068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2069uname -m = `(uname -m) 2>/dev/null || echo unknown`
2070uname -r = `(uname -r) 2>/dev/null || echo unknown`
2071uname -s = `(uname -s) 2>/dev/null || echo unknown`
2072uname -v = `(uname -v) 2>/dev/null || echo unknown`
2073
2074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2075/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2076
2077/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2078/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2080/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2081/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2082/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2083/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2084
2085_ASUNAME
2086
2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088for as_dir in $PATH
2089do
2090  IFS=$as_save_IFS
2091  test -z "$as_dir" && as_dir=.
2092    $as_echo "PATH: $as_dir"
2093  done
2094IFS=$as_save_IFS
2095
2096} >&5
2097
2098cat >&5 <<_ACEOF
2099
2100
2101## ----------- ##
2102## Core tests. ##
2103## ----------- ##
2104
2105_ACEOF
2106
2107
2108# Keep a trace of the command line.
2109# Strip out --no-create and --no-recursion so they do not pile up.
2110# Strip out --silent because we don't want to record it for future runs.
2111# Also quote any args containing shell meta-characters.
2112# Make two passes to allow for proper duplicate-argument suppression.
2113ac_configure_args=
2114ac_configure_args0=
2115ac_configure_args1=
2116ac_must_keep_next=false
2117for ac_pass in 1 2
2118do
2119  for ac_arg
2120  do
2121    case $ac_arg in
2122    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124    | -silent | --silent | --silen | --sile | --sil)
2125      continue ;;
2126    *\'*)
2127      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128    esac
2129    case $ac_pass in
2130    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131    2)
2132      as_fn_append ac_configure_args1 " '$ac_arg'"
2133      if test $ac_must_keep_next = true; then
2134	ac_must_keep_next=false # Got value, back to normal.
2135      else
2136	case $ac_arg in
2137	  *=* | --config-cache | -C | -disable-* | --disable-* \
2138	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140	  | -with-* | --with-* | -without-* | --without-* | --x)
2141	    case "$ac_configure_args0 " in
2142	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143	    esac
2144	    ;;
2145	  -* ) ac_must_keep_next=true ;;
2146	esac
2147      fi
2148      as_fn_append ac_configure_args " '$ac_arg'"
2149      ;;
2150    esac
2151  done
2152done
2153{ ac_configure_args0=; unset ac_configure_args0;}
2154{ ac_configure_args1=; unset ac_configure_args1;}
2155
2156# When interrupted or exit'd, cleanup temporary files, and complete
2157# config.log.  We remove comments because anyway the quotes in there
2158# would cause problems or look ugly.
2159# WARNING: Use '\'' to represent an apostrophe within the trap.
2160# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161trap 'exit_status=$?
2162  # Save into config.log some information that might help in debugging.
2163  {
2164    echo
2165
2166    $as_echo "## ---------------- ##
2167## Cache variables. ##
2168## ---------------- ##"
2169    echo
2170    # The following way of writing the cache mishandles newlines in values,
2171(
2172  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2173    eval ac_val=\$$ac_var
2174    case $ac_val in #(
2175    *${as_nl}*)
2176      case $ac_var in #(
2177      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2178$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2179      esac
2180      case $ac_var in #(
2181      _ | IFS | as_nl) ;; #(
2182      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2183      *) { eval $ac_var=; unset $ac_var;} ;;
2184      esac ;;
2185    esac
2186  done
2187  (set) 2>&1 |
2188    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2189    *${as_nl}ac_space=\ *)
2190      sed -n \
2191	"s/'\''/'\''\\\\'\'''\''/g;
2192	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2193      ;; #(
2194    *)
2195      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2196      ;;
2197    esac |
2198    sort
2199)
2200    echo
2201
2202    $as_echo "## ----------------- ##
2203## Output variables. ##
2204## ----------------- ##"
2205    echo
2206    for ac_var in $ac_subst_vars
2207    do
2208      eval ac_val=\$$ac_var
2209      case $ac_val in
2210      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211      esac
2212      $as_echo "$ac_var='\''$ac_val'\''"
2213    done | sort
2214    echo
2215
2216    if test -n "$ac_subst_files"; then
2217      $as_echo "## ------------------- ##
2218## File substitutions. ##
2219## ------------------- ##"
2220      echo
2221      for ac_var in $ac_subst_files
2222      do
2223	eval ac_val=\$$ac_var
2224	case $ac_val in
2225	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226	esac
2227	$as_echo "$ac_var='\''$ac_val'\''"
2228      done | sort
2229      echo
2230    fi
2231
2232    if test -s confdefs.h; then
2233      $as_echo "## ----------- ##
2234## confdefs.h. ##
2235## ----------- ##"
2236      echo
2237      cat confdefs.h
2238      echo
2239    fi
2240    test "$ac_signal" != 0 &&
2241      $as_echo "$as_me: caught signal $ac_signal"
2242    $as_echo "$as_me: exit $exit_status"
2243  } >&5
2244  rm -f core *.core core.conftest.* &&
2245    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2246    exit $exit_status
2247' 0
2248for ac_signal in 1 2 13 15; do
2249  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2250done
2251ac_signal=0
2252
2253# confdefs.h avoids OS command line length limits that DEFS can exceed.
2254rm -f -r conftest* confdefs.h
2255
2256$as_echo "/* confdefs.h */" > confdefs.h
2257
2258# Predefined preprocessor variables.
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_NAME "$PACKAGE_NAME"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_VERSION "$PACKAGE_VERSION"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_STRING "$PACKAGE_STRING"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_URL "$PACKAGE_URL"
2282_ACEOF
2283
2284
2285# Let the site file select an alternate cache file if it wants to.
2286# Prefer an explicitly selected file to automatically selected ones.
2287ac_site_file1=NONE
2288ac_site_file2=NONE
2289if test -n "$CONFIG_SITE"; then
2290  # We do not want a PATH search for config.site.
2291  case $CONFIG_SITE in #((
2292    -*)  ac_site_file1=./$CONFIG_SITE;;
2293    */*) ac_site_file1=$CONFIG_SITE;;
2294    *)   ac_site_file1=./$CONFIG_SITE;;
2295  esac
2296elif test "x$prefix" != xNONE; then
2297  ac_site_file1=$prefix/share/config.site
2298  ac_site_file2=$prefix/etc/config.site
2299else
2300  ac_site_file1=$ac_default_prefix/share/config.site
2301  ac_site_file2=$ac_default_prefix/etc/config.site
2302fi
2303for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2304do
2305  test "x$ac_site_file" = xNONE && continue
2306  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2307    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2308$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2309    sed 's/^/| /' "$ac_site_file" >&5
2310    . "$ac_site_file" \
2311      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313as_fn_error $? "failed to load site script $ac_site_file
2314See \`config.log' for more details" "$LINENO" 5; }
2315  fi
2316done
2317
2318if test -r "$cache_file"; then
2319  # Some versions of bash will fail to source /dev/null (special files
2320  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2321  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2322    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2323$as_echo "$as_me: loading cache $cache_file" >&6;}
2324    case $cache_file in
2325      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2326      *)                      . "./$cache_file";;
2327    esac
2328  fi
2329else
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2331$as_echo "$as_me: creating cache $cache_file" >&6;}
2332  >$cache_file
2333fi
2334
2335# Check that the precious variables saved in the cache have kept the same
2336# value.
2337ac_cache_corrupted=false
2338for ac_var in $ac_precious_vars; do
2339  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340  eval ac_new_set=\$ac_env_${ac_var}_set
2341  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342  eval ac_new_val=\$ac_env_${ac_var}_value
2343  case $ac_old_set,$ac_new_set in
2344    set,)
2345      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347      ac_cache_corrupted=: ;;
2348    ,set)
2349      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351      ac_cache_corrupted=: ;;
2352    ,);;
2353    *)
2354      if test "x$ac_old_val" != "x$ac_new_val"; then
2355	# differences in whitespace do not lead to failure.
2356	ac_old_val_w=`echo x $ac_old_val`
2357	ac_new_val_w=`echo x $ac_new_val`
2358	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361	  ac_cache_corrupted=:
2362	else
2363	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365	  eval $ac_var=\$ac_old_val
2366	fi
2367	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2368$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2369	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2370$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2371      fi;;
2372  esac
2373  # Pass precious variables to config.status.
2374  if test "$ac_new_set" = set; then
2375    case $ac_new_val in
2376    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377    *) ac_arg=$ac_var=$ac_new_val ;;
2378    esac
2379    case " $ac_configure_args " in
2380      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2381      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2382    esac
2383  fi
2384done
2385if $ac_cache_corrupted; then
2386  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391fi
2392## -------------------- ##
2393## Main body of script. ##
2394## -------------------- ##
2395
2396ac_ext=c
2397ac_cpp='$CPP $CPPFLAGS'
2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401
2402
2403# This file contains common code used by all simulators.
2404#
2405# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2406# directory.  It is intended to be invoked before any target specific stuff.
2407# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2408# It is intended to be invoked last.
2409#
2410# The simulator's configure.ac should look like:
2411#
2412# dnl Process this file with autoconf to produce a configure script.
2413# AC_PREREQ(2.64)dnl
2414# AC_INIT(Makefile.in)
2415# sinclude(../common/aclocal.m4)
2416#
2417# SIM_AC_COMMON
2418#
2419# ... target specific stuff ...
2420#
2421# SIM_AC_OUTPUT
2422
2423# Include global overrides and fixes for Autoconf.
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2460#
2461#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2462#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2463#   Written by Gordon Matzigkeit, 1996
2464#
2465# This file is free software; the Free Software Foundation gives
2466# unlimited permission to copy and/or distribute it, with or without
2467# modifications, as long as this notice is preserved.
2468
2469
2470
2471# serial 56 LT_INIT
2472
2473
2474# LT_PREREQ(VERSION)
2475# ------------------
2476# Complain and exit if this libtool version is less that VERSION.
2477
2478
2479
2480# _LT_CHECK_BUILDDIR
2481# ------------------
2482# Complain if the absolute build directory name contains unusual characters
2483
2484
2485
2486# LT_INIT([OPTIONS])
2487# ------------------
2488# LT_INIT
2489
2490# Old names:
2491# This is what autoupdate's m4 run will expand.  It fires
2492# the warning (with _au_warn_XXX), outputs it into the
2493# updated configure.ac (with AC_DIAGNOSE), and then outputs
2494# the replacement expansion.
2495
2496
2497# This is an auxiliary macro that is also run when
2498# autoupdate runs m4.  It simply calls m4_warning, but
2499# we need a wrapper so that each warning is emitted only
2500# once.  We break the quoting in m4_warning's argument in
2501# order to expand this macro's arguments, not AU_DEFUN's.
2502
2503
2504# Finally, this is the expansion that is picked up by
2505# autoconf.  It tells the user to run autoupdate, and
2506# then outputs the replacement expansion.  We do not care
2507# about autoupdate's warning because that contains
2508# information on what to do *after* running autoupdate.
2509
2510# This is what autoupdate's m4 run will expand.  It fires
2511# the warning (with _au_warn_XXX), outputs it into the
2512# updated configure.ac (with AC_DIAGNOSE), and then outputs
2513# the replacement expansion.
2514
2515
2516# This is an auxiliary macro that is also run when
2517# autoupdate runs m4.  It simply calls m4_warning, but
2518# we need a wrapper so that each warning is emitted only
2519# once.  We break the quoting in m4_warning's argument in
2520# order to expand this macro's arguments, not AU_DEFUN's.
2521
2522
2523# Finally, this is the expansion that is picked up by
2524# autoconf.  It tells the user to run autoupdate, and
2525# then outputs the replacement expansion.  We do not care
2526# about autoupdate's warning because that contains
2527# information on what to do *after* running autoupdate.
2528
2529
2530
2531# _LT_CC_BASENAME(CC)
2532# -------------------
2533# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2534
2535
2536
2537# _LT_FILEUTILS_DEFAULTS
2538# ----------------------
2539# It is okay to use these file commands and assume they have been set
2540# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2541# _LT_FILEUTILS_DEFAULTS
2542
2543
2544# _LT_SETUP
2545# ---------
2546# _LT_SETUP
2547
2548
2549# _LT_PREPARE_SED_QUOTE_VARS
2550# --------------------------
2551# Define a few sed substitution that help us do robust quoting.
2552
2553
2554# _LT_PROG_LTMAIN
2555# ---------------
2556# Note that this code is called both from `configure', and `config.status'
2557# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
2558# `config.status' has no value for ac_aux_dir unless we are using Automake,
2559# so we pass a copy along to make sure it has a sensible value anyway.
2560# _LT_PROG_LTMAIN
2561
2562
2563## ------------------------------------- ##
2564## Accumulate code for creating libtool. ##
2565## ------------------------------------- ##
2566
2567# So that we can recreate a full libtool script including additional
2568# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2569# in macros and then make a single call at the end using the `libtool'
2570# label.
2571
2572
2573# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2574# ----------------------------------------
2575# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2576
2577
2578# Initialize.
2579
2580
2581
2582# _LT_CONFIG_LIBTOOL([COMMANDS])
2583# ------------------------------
2584# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2585
2586
2587# Initialize.
2588
2589
2590
2591# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2592# -----------------------------------------------------
2593
2594
2595
2596# _LT_FORMAT_COMMENT([COMMENT])
2597# -----------------------------
2598# Add leading comment marks to the start of each line, and a trailing
2599# full-stop to the whole comment if one is not present already.
2600
2601
2602
2603
2604## ------------------------ ##
2605## FIXME: Eliminate VARNAME ##
2606## ------------------------ ##
2607
2608
2609# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2610# -------------------------------------------------------------------
2611# CONFIGNAME is the name given to the value in the libtool script.
2612# VARNAME is the (base) name used in the configure script.
2613# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2614# VARNAME.  Any other value will be used directly.
2615
2616
2617
2618# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2619# --------------------------------------------------------
2620
2621
2622
2623# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2624# ------------------------------------------------
2625
2626
2627
2628# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2629# ---------------------------------------------------------
2630
2631
2632
2633# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2634# --------------------------------------------------
2635
2636
2637
2638# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2639# ---------------------------------------------------
2640
2641
2642
2643# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2644# ---------------------------------------------------
2645
2646
2647
2648
2649# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2650# ------------------------------------------------
2651
2652
2653
2654
2655# _LT_CONFIG_STATUS_DECLARE([VARNAME])
2656# ------------------------------------
2657# Quote a variable value, and forward it to `config.status' so that its
2658# declaration there will have the same value as in `configure'.  VARNAME
2659# must have a single quote delimited value for this to work.
2660
2661
2662
2663# _LT_CONFIG_STATUS_DECLARATIONS
2664# ------------------------------
2665# We delimit libtool config variables with single quotes, so when
2666# we write them to config.status, we have to be sure to quote all
2667# embedded single quotes properly.  In configure, this macro expands
2668# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2669#
2670#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2671
2672
2673
2674# _LT_LIBTOOL_TAGS
2675# ----------------
2676# Output comment and list of tags supported by the script
2677
2678
2679
2680# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2681# -----------------------------------
2682# Extract the dictionary values for VARNAME (optionally with TAG) and
2683# expand to a commented shell variable setting:
2684#
2685#    # Some comment about what VAR is for.
2686#    visible_name=$lt_internal_name
2687
2688
2689
2690# _LT_LIBTOOL_CONFIG_VARS
2691# -----------------------
2692# Produce commented declarations of non-tagged libtool config variables
2693# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2694# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
2695# section) are produced by _LT_LIBTOOL_TAG_VARS.
2696
2697
2698
2699# _LT_LIBTOOL_TAG_VARS(TAG)
2700# -------------------------
2701
2702
2703
2704# _LT_TAGVAR(VARNAME, [TAGNAME])
2705# ------------------------------
2706
2707
2708
2709# _LT_CONFIG_COMMANDS
2710# -------------------
2711# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
2712# variables for single and double quote escaping we saved from calls
2713# to _LT_DECL, we can put quote escaped variables declarations
2714# into `config.status', and then the shell code to quote escape them in
2715# for loops in `config.status'.  Finally, any additional code accumulated
2716# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2717#_LT_CONFIG_COMMANDS
2718
2719
2720# Initialize.
2721
2722
2723# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2724# ------------------------------------
2725# Generate a child script FILE with all initialization necessary to
2726# reuse the environment learned by the parent script, and make the
2727# file executable.  If COMMENT is supplied, it is inserted after the
2728# `#!' sequence but before initialization text begins.  After this
2729# macro, additional text can be appended to FILE to form the body of
2730# the child script.  The macro ends with non-zero status if the
2731# file could not be fully written (such as if the disk is full).
2732# _LT_GENERATED_FILE_INIT
2733
2734# LT_OUTPUT
2735# ---------
2736# This macro allows early generation of the libtool script (before
2737# AC_OUTPUT is called), incase it is used in configure for compilation
2738# tests.
2739# LT_OUTPUT
2740
2741
2742# _LT_CONFIG(TAG)
2743# ---------------
2744# If TAG is the built-in tag, create an initial libtool script with a
2745# default configuration from the untagged config vars.  Otherwise add code
2746# to config.status for appending the configuration named by TAG from the
2747# matching tagged config vars.
2748# _LT_CONFIG
2749
2750
2751# LT_SUPPORTED_TAG(TAG)
2752# ---------------------
2753# Trace this macro to discover what tags are supported by the libtool
2754# --tag option, using:
2755#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
2756
2757
2758
2759# C support is built-in for now
2760
2761
2762
2763
2764# LT_LANG(LANG)
2765# -------------
2766# Enable libtool support for the given language if not already enabled.
2767# LT_LANG
2768
2769
2770# _LT_LANG(LANGNAME)
2771# ------------------
2772# _LT_LANG
2773
2774
2775# _LT_LANG_DEFAULT_CONFIG
2776# -----------------------
2777# _LT_LANG_DEFAULT_CONFIG
2778
2779# Obsolete macros:
2780# This is what autoupdate's m4 run will expand.  It fires
2781# the warning (with _au_warn_XXX), outputs it into the
2782# updated configure.ac (with AC_DIAGNOSE), and then outputs
2783# the replacement expansion.
2784
2785
2786# This is an auxiliary macro that is also run when
2787# autoupdate runs m4.  It simply calls m4_warning, but
2788# we need a wrapper so that each warning is emitted only
2789# once.  We break the quoting in m4_warning's argument in
2790# order to expand this macro's arguments, not AU_DEFUN's.
2791
2792
2793# Finally, this is the expansion that is picked up by
2794# autoconf.  It tells the user to run autoupdate, and
2795# then outputs the replacement expansion.  We do not care
2796# about autoupdate's warning because that contains
2797# information on what to do *after* running autoupdate.
2798
2799# This is what autoupdate's m4 run will expand.  It fires
2800# the warning (with _au_warn_XXX), outputs it into the
2801# updated configure.ac (with AC_DIAGNOSE), and then outputs
2802# the replacement expansion.
2803
2804
2805# This is an auxiliary macro that is also run when
2806# autoupdate runs m4.  It simply calls m4_warning, but
2807# we need a wrapper so that each warning is emitted only
2808# once.  We break the quoting in m4_warning's argument in
2809# order to expand this macro's arguments, not AU_DEFUN's.
2810
2811
2812# Finally, this is the expansion that is picked up by
2813# autoconf.  It tells the user to run autoupdate, and
2814# then outputs the replacement expansion.  We do not care
2815# about autoupdate's warning because that contains
2816# information on what to do *after* running autoupdate.
2817
2818# This is what autoupdate's m4 run will expand.  It fires
2819# the warning (with _au_warn_XXX), outputs it into the
2820# updated configure.ac (with AC_DIAGNOSE), and then outputs
2821# the replacement expansion.
2822
2823
2824# This is an auxiliary macro that is also run when
2825# autoupdate runs m4.  It simply calls m4_warning, but
2826# we need a wrapper so that each warning is emitted only
2827# once.  We break the quoting in m4_warning's argument in
2828# order to expand this macro's arguments, not AU_DEFUN's.
2829
2830
2831# Finally, this is the expansion that is picked up by
2832# autoconf.  It tells the user to run autoupdate, and
2833# then outputs the replacement expansion.  We do not care
2834# about autoupdate's warning because that contains
2835# information on what to do *after* running autoupdate.
2836
2837# This is what autoupdate's m4 run will expand.  It fires
2838# the warning (with _au_warn_XXX), outputs it into the
2839# updated configure.ac (with AC_DIAGNOSE), and then outputs
2840# the replacement expansion.
2841
2842
2843# This is an auxiliary macro that is also run when
2844# autoupdate runs m4.  It simply calls m4_warning, but
2845# we need a wrapper so that each warning is emitted only
2846# once.  We break the quoting in m4_warning's argument in
2847# order to expand this macro's arguments, not AU_DEFUN's.
2848
2849
2850# Finally, this is the expansion that is picked up by
2851# autoconf.  It tells the user to run autoupdate, and
2852# then outputs the replacement expansion.  We do not care
2853# about autoupdate's warning because that contains
2854# information on what to do *after* running autoupdate.
2855
2856# This is what autoupdate's m4 run will expand.  It fires
2857# the warning (with _au_warn_XXX), outputs it into the
2858# updated configure.ac (with AC_DIAGNOSE), and then outputs
2859# the replacement expansion.
2860
2861
2862# This is an auxiliary macro that is also run when
2863# autoupdate runs m4.  It simply calls m4_warning, but
2864# we need a wrapper so that each warning is emitted only
2865# once.  We break the quoting in m4_warning's argument in
2866# order to expand this macro's arguments, not AU_DEFUN's.
2867
2868
2869# Finally, this is the expansion that is picked up by
2870# autoconf.  It tells the user to run autoupdate, and
2871# then outputs the replacement expansion.  We do not care
2872# about autoupdate's warning because that contains
2873# information on what to do *after* running autoupdate.
2874
2875
2876
2877# _LT_TAG_COMPILER
2878# ----------------
2879# _LT_TAG_COMPILER
2880
2881
2882# _LT_COMPILER_BOILERPLATE
2883# ------------------------
2884# Check for compiler boilerplate output or warnings with
2885# the simple compiler test code.
2886# _LT_COMPILER_BOILERPLATE
2887
2888
2889# _LT_LINKER_BOILERPLATE
2890# ----------------------
2891# Check for linker boilerplate output or warnings with
2892# the simple link test code.
2893# _LT_LINKER_BOILERPLATE
2894
2895# _LT_REQUIRED_DARWIN_CHECKS
2896# -------------------------
2897
2898
2899
2900# _LT_DARWIN_LINKER_FEATURES
2901# --------------------------
2902# Checks for linker and compiler features on darwin
2903
2904
2905# _LT_SYS_MODULE_PATH_AIX
2906# -----------------------
2907# Links a minimal program and checks the executable
2908# for the system default hardcoded library path. In most cases,
2909# this is /usr/lib:/lib, but when the MPI compilers are used
2910# the location of the communication and MPI libs are included too.
2911# If we don't find anything, use the default library path according
2912# to the aix ld manual.
2913# _LT_SYS_MODULE_PATH_AIX
2914
2915
2916# _LT_SHELL_INIT(ARG)
2917# -------------------
2918# _LT_SHELL_INIT
2919
2920
2921
2922# _LT_PROG_ECHO_BACKSLASH
2923# -----------------------
2924# Find how we can fake an echo command that does not interpret backslash.
2925# In particular, with Autoconf 2.60 or later we add some code to the start
2926# of the generated configure script which will find a shell with a builtin
2927# printf (which we can use as an echo command).
2928# _LT_PROG_ECHO_BACKSLASH
2929
2930
2931# _LT_ENABLE_LOCK
2932# ---------------
2933# _LT_ENABLE_LOCK
2934
2935
2936# _LT_CMD_OLD_ARCHIVE
2937# -------------------
2938# _LT_CMD_OLD_ARCHIVE
2939
2940
2941# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2942#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2943# ----------------------------------------------------------------
2944# Check whether the given compiler option works
2945# _LT_COMPILER_OPTION
2946
2947# Old name:
2948# This is what autoupdate's m4 run will expand.  It fires
2949# the warning (with _au_warn_XXX), outputs it into the
2950# updated configure.ac (with AC_DIAGNOSE), and then outputs
2951# the replacement expansion.
2952
2953
2954# This is an auxiliary macro that is also run when
2955# autoupdate runs m4.  It simply calls m4_warning, but
2956# we need a wrapper so that each warning is emitted only
2957# once.  We break the quoting in m4_warning's argument in
2958# order to expand this macro's arguments, not AU_DEFUN's.
2959
2960
2961# Finally, this is the expansion that is picked up by
2962# autoconf.  It tells the user to run autoupdate, and
2963# then outputs the replacement expansion.  We do not care
2964# about autoupdate's warning because that contains
2965# information on what to do *after* running autoupdate.
2966
2967
2968
2969# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2970#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2971# ----------------------------------------------------
2972# Check whether the given linker option works
2973# _LT_LINKER_OPTION
2974
2975# Old name:
2976# This is what autoupdate's m4 run will expand.  It fires
2977# the warning (with _au_warn_XXX), outputs it into the
2978# updated configure.ac (with AC_DIAGNOSE), and then outputs
2979# the replacement expansion.
2980
2981
2982# This is an auxiliary macro that is also run when
2983# autoupdate runs m4.  It simply calls m4_warning, but
2984# we need a wrapper so that each warning is emitted only
2985# once.  We break the quoting in m4_warning's argument in
2986# order to expand this macro's arguments, not AU_DEFUN's.
2987
2988
2989# Finally, this is the expansion that is picked up by
2990# autoconf.  It tells the user to run autoupdate, and
2991# then outputs the replacement expansion.  We do not care
2992# about autoupdate's warning because that contains
2993# information on what to do *after* running autoupdate.
2994
2995
2996
2997# LT_CMD_MAX_LEN
2998#---------------
2999# LT_CMD_MAX_LEN
3000
3001# Old name:
3002# This is what autoupdate's m4 run will expand.  It fires
3003# the warning (with _au_warn_XXX), outputs it into the
3004# updated configure.ac (with AC_DIAGNOSE), and then outputs
3005# the replacement expansion.
3006
3007
3008# This is an auxiliary macro that is also run when
3009# autoupdate runs m4.  It simply calls m4_warning, but
3010# we need a wrapper so that each warning is emitted only
3011# once.  We break the quoting in m4_warning's argument in
3012# order to expand this macro's arguments, not AU_DEFUN's.
3013
3014
3015# Finally, this is the expansion that is picked up by
3016# autoconf.  It tells the user to run autoupdate, and
3017# then outputs the replacement expansion.  We do not care
3018# about autoupdate's warning because that contains
3019# information on what to do *after* running autoupdate.
3020
3021
3022
3023# _LT_HEADER_DLFCN
3024# ----------------
3025# _LT_HEADER_DLFCN
3026
3027
3028# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3029#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3030# ----------------------------------------------------------------
3031# _LT_TRY_DLOPEN_SELF
3032
3033
3034# LT_SYS_DLOPEN_SELF
3035# ------------------
3036# LT_SYS_DLOPEN_SELF
3037
3038# Old name:
3039# This is what autoupdate's m4 run will expand.  It fires
3040# the warning (with _au_warn_XXX), outputs it into the
3041# updated configure.ac (with AC_DIAGNOSE), and then outputs
3042# the replacement expansion.
3043
3044
3045# This is an auxiliary macro that is also run when
3046# autoupdate runs m4.  It simply calls m4_warning, but
3047# we need a wrapper so that each warning is emitted only
3048# once.  We break the quoting in m4_warning's argument in
3049# order to expand this macro's arguments, not AU_DEFUN's.
3050
3051
3052# Finally, this is the expansion that is picked up by
3053# autoconf.  It tells the user to run autoupdate, and
3054# then outputs the replacement expansion.  We do not care
3055# about autoupdate's warning because that contains
3056# information on what to do *after* running autoupdate.
3057
3058
3059
3060# _LT_COMPILER_C_O([TAGNAME])
3061# ---------------------------
3062# Check to see if options -c and -o are simultaneously supported by compiler.
3063# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3064# _LT_COMPILER_C_O
3065
3066
3067# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3068# ----------------------------------
3069# Check to see if we can do hard links to lock some files if needed
3070# _LT_COMPILER_FILE_LOCKS
3071
3072
3073# _LT_CHECK_OBJDIR
3074# ----------------
3075# _LT_CHECK_OBJDIR
3076
3077
3078# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3079# --------------------------------------
3080# Check hardcoding attributes.
3081# _LT_LINKER_HARDCODE_LIBPATH
3082
3083
3084# _LT_CMD_STRIPLIB
3085# ----------------
3086# _LT_CMD_STRIPLIB
3087
3088
3089# _LT_SYS_DYNAMIC_LINKER([TAG])
3090# -----------------------------
3091# PORTME Fill in your ld.so characteristics
3092# _LT_SYS_DYNAMIC_LINKER
3093
3094
3095# _LT_PATH_TOOL_PREFIX(TOOL)
3096# --------------------------
3097# find a file program which can recognize shared library
3098# _LT_PATH_TOOL_PREFIX
3099
3100# Old name:
3101# This is what autoupdate's m4 run will expand.  It fires
3102# the warning (with _au_warn_XXX), outputs it into the
3103# updated configure.ac (with AC_DIAGNOSE), and then outputs
3104# the replacement expansion.
3105
3106
3107# This is an auxiliary macro that is also run when
3108# autoupdate runs m4.  It simply calls m4_warning, but
3109# we need a wrapper so that each warning is emitted only
3110# once.  We break the quoting in m4_warning's argument in
3111# order to expand this macro's arguments, not AU_DEFUN's.
3112
3113
3114# Finally, this is the expansion that is picked up by
3115# autoconf.  It tells the user to run autoupdate, and
3116# then outputs the replacement expansion.  We do not care
3117# about autoupdate's warning because that contains
3118# information on what to do *after* running autoupdate.
3119
3120
3121
3122# _LT_PATH_MAGIC
3123# --------------
3124# find a file program which can recognize a shared library
3125# _LT_PATH_MAGIC
3126
3127
3128# LT_PATH_LD
3129# ----------
3130# find the pathname to the GNU or non-GNU linker
3131# LT_PATH_LD
3132
3133# Old names:
3134# This is what autoupdate's m4 run will expand.  It fires
3135# the warning (with _au_warn_XXX), outputs it into the
3136# updated configure.ac (with AC_DIAGNOSE), and then outputs
3137# the replacement expansion.
3138
3139
3140# This is an auxiliary macro that is also run when
3141# autoupdate runs m4.  It simply calls m4_warning, but
3142# we need a wrapper so that each warning is emitted only
3143# once.  We break the quoting in m4_warning's argument in
3144# order to expand this macro's arguments, not AU_DEFUN's.
3145
3146
3147# Finally, this is the expansion that is picked up by
3148# autoconf.  It tells the user to run autoupdate, and
3149# then outputs the replacement expansion.  We do not care
3150# about autoupdate's warning because that contains
3151# information on what to do *after* running autoupdate.
3152
3153# This is what autoupdate's m4 run will expand.  It fires
3154# the warning (with _au_warn_XXX), outputs it into the
3155# updated configure.ac (with AC_DIAGNOSE), and then outputs
3156# the replacement expansion.
3157
3158
3159# This is an auxiliary macro that is also run when
3160# autoupdate runs m4.  It simply calls m4_warning, but
3161# we need a wrapper so that each warning is emitted only
3162# once.  We break the quoting in m4_warning's argument in
3163# order to expand this macro's arguments, not AU_DEFUN's.
3164
3165
3166# Finally, this is the expansion that is picked up by
3167# autoconf.  It tells the user to run autoupdate, and
3168# then outputs the replacement expansion.  We do not care
3169# about autoupdate's warning because that contains
3170# information on what to do *after* running autoupdate.
3171
3172
3173
3174# _LT_PATH_LD_GNU
3175#- --------------
3176# _LT_PATH_LD_GNU
3177
3178
3179# _LT_CMD_RELOAD
3180# --------------
3181# find reload flag for linker
3182#   -- PORTME Some linkers may need a different reload flag.
3183# _LT_CMD_RELOAD
3184
3185
3186# _LT_CHECK_MAGIC_METHOD
3187# ----------------------
3188# how to check for library dependencies
3189#  -- PORTME fill in with the dynamic library characteristics
3190# _LT_CHECK_MAGIC_METHOD
3191
3192
3193# LT_PATH_NM
3194# ----------
3195# find the pathname to a BSD- or MS-compatible name lister
3196# LT_PATH_NM
3197
3198# Old names:
3199# This is what autoupdate's m4 run will expand.  It fires
3200# the warning (with _au_warn_XXX), outputs it into the
3201# updated configure.ac (with AC_DIAGNOSE), and then outputs
3202# the replacement expansion.
3203
3204
3205# This is an auxiliary macro that is also run when
3206# autoupdate runs m4.  It simply calls m4_warning, but
3207# we need a wrapper so that each warning is emitted only
3208# once.  We break the quoting in m4_warning's argument in
3209# order to expand this macro's arguments, not AU_DEFUN's.
3210
3211
3212# Finally, this is the expansion that is picked up by
3213# autoconf.  It tells the user to run autoupdate, and
3214# then outputs the replacement expansion.  We do not care
3215# about autoupdate's warning because that contains
3216# information on what to do *after* running autoupdate.
3217
3218# This is what autoupdate's m4 run will expand.  It fires
3219# the warning (with _au_warn_XXX), outputs it into the
3220# updated configure.ac (with AC_DIAGNOSE), and then outputs
3221# the replacement expansion.
3222
3223
3224# This is an auxiliary macro that is also run when
3225# autoupdate runs m4.  It simply calls m4_warning, but
3226# we need a wrapper so that each warning is emitted only
3227# once.  We break the quoting in m4_warning's argument in
3228# order to expand this macro's arguments, not AU_DEFUN's.
3229
3230
3231# Finally, this is the expansion that is picked up by
3232# autoconf.  It tells the user to run autoupdate, and
3233# then outputs the replacement expansion.  We do not care
3234# about autoupdate's warning because that contains
3235# information on what to do *after* running autoupdate.
3236
3237
3238
3239# LT_LIB_M
3240# --------
3241# check for math library
3242# LT_LIB_M
3243
3244# Old name:
3245# This is what autoupdate's m4 run will expand.  It fires
3246# the warning (with _au_warn_XXX), outputs it into the
3247# updated configure.ac (with AC_DIAGNOSE), and then outputs
3248# the replacement expansion.
3249
3250
3251# This is an auxiliary macro that is also run when
3252# autoupdate runs m4.  It simply calls m4_warning, but
3253# we need a wrapper so that each warning is emitted only
3254# once.  We break the quoting in m4_warning's argument in
3255# order to expand this macro's arguments, not AU_DEFUN's.
3256
3257
3258# Finally, this is the expansion that is picked up by
3259# autoconf.  It tells the user to run autoupdate, and
3260# then outputs the replacement expansion.  We do not care
3261# about autoupdate's warning because that contains
3262# information on what to do *after* running autoupdate.
3263
3264
3265
3266# _LT_COMPILER_NO_RTTI([TAGNAME])
3267# -------------------------------
3268# _LT_COMPILER_NO_RTTI
3269
3270
3271# _LT_CMD_GLOBAL_SYMBOLS
3272# ----------------------
3273 # _LT_CMD_GLOBAL_SYMBOLS
3274
3275
3276# _LT_COMPILER_PIC([TAGNAME])
3277# ---------------------------
3278# _LT_COMPILER_PIC
3279
3280
3281# _LT_LINKER_SHLIBS([TAGNAME])
3282# ----------------------------
3283# See if the linker supports building shared libraries.
3284# _LT_LINKER_SHLIBS
3285
3286
3287# _LT_LANG_C_CONFIG([TAG])
3288# ------------------------
3289# Ensure that the configuration variables for a C compiler are suitably
3290# defined.  These variables are subsequently used by _LT_CONFIG to write
3291# the compiler configuration to `libtool'.
3292# _LT_LANG_C_CONFIG
3293
3294
3295# _LT_LANG_CXX_CONFIG([TAG])
3296# --------------------------
3297# Ensure that the configuration variables for a C++ compiler are suitably
3298# defined.  These variables are subsequently used by _LT_CONFIG to write
3299# the compiler configuration to `libtool'.
3300# _LT_LANG_CXX_CONFIG
3301
3302
3303# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
3304# ---------------------------------
3305# Figure out "hidden" library dependencies from verbose
3306# compiler output when linking a shared library.
3307# Parse the compiler output and extract the necessary
3308# objects, libraries and library flags.
3309# _LT_SYS_HIDDEN_LIBDEPS
3310
3311
3312# _LT_LANG_F77_CONFIG([TAG])
3313# --------------------------
3314# Ensure that the configuration variables for a Fortran 77 compiler are
3315# suitably defined.  These variables are subsequently used by _LT_CONFIG
3316# to write the compiler configuration to `libtool'.
3317# _LT_LANG_F77_CONFIG
3318
3319
3320# _LT_LANG_FC_CONFIG([TAG])
3321# -------------------------
3322# Ensure that the configuration variables for a Fortran compiler are
3323# suitably defined.  These variables are subsequently used by _LT_CONFIG
3324# to write the compiler configuration to `libtool'.
3325# _LT_LANG_FC_CONFIG
3326
3327
3328# _LT_LANG_GCJ_CONFIG([TAG])
3329# --------------------------
3330# Ensure that the configuration variables for the GNU Java Compiler compiler
3331# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3332# to write the compiler configuration to `libtool'.
3333# _LT_LANG_GCJ_CONFIG
3334
3335
3336# _LT_LANG_RC_CONFIG([TAG])
3337# -------------------------
3338# Ensure that the configuration variables for the Windows resource compiler
3339# are suitably defined.  These variables are subsequently used by _LT_CONFIG
3340# to write the compiler configuration to `libtool'.
3341# _LT_LANG_RC_CONFIG
3342
3343
3344# LT_PROG_GCJ
3345# -----------
3346
3347
3348# Old name:
3349# This is what autoupdate's m4 run will expand.  It fires
3350# the warning (with _au_warn_XXX), outputs it into the
3351# updated configure.ac (with AC_DIAGNOSE), and then outputs
3352# the replacement expansion.
3353
3354
3355# This is an auxiliary macro that is also run when
3356# autoupdate runs m4.  It simply calls m4_warning, but
3357# we need a wrapper so that each warning is emitted only
3358# once.  We break the quoting in m4_warning's argument in
3359# order to expand this macro's arguments, not AU_DEFUN's.
3360
3361
3362# Finally, this is the expansion that is picked up by
3363# autoconf.  It tells the user to run autoupdate, and
3364# then outputs the replacement expansion.  We do not care
3365# about autoupdate's warning because that contains
3366# information on what to do *after* running autoupdate.
3367
3368
3369
3370# LT_PROG_RC
3371# ----------
3372
3373
3374# Old name:
3375# This is what autoupdate's m4 run will expand.  It fires
3376# the warning (with _au_warn_XXX), outputs it into the
3377# updated configure.ac (with AC_DIAGNOSE), and then outputs
3378# the replacement expansion.
3379
3380
3381# This is an auxiliary macro that is also run when
3382# autoupdate runs m4.  It simply calls m4_warning, but
3383# we need a wrapper so that each warning is emitted only
3384# once.  We break the quoting in m4_warning's argument in
3385# order to expand this macro's arguments, not AU_DEFUN's.
3386
3387
3388# Finally, this is the expansion that is picked up by
3389# autoconf.  It tells the user to run autoupdate, and
3390# then outputs the replacement expansion.  We do not care
3391# about autoupdate's warning because that contains
3392# information on what to do *after* running autoupdate.
3393
3394
3395
3396# _LT_DECL_EGREP
3397# --------------
3398# If we don't have a new enough Autoconf to choose the best grep
3399# available, choose the one first in the user's PATH.
3400
3401
3402
3403# _LT_DECL_OBJDUMP
3404# --------------
3405# If we don't have a new enough Autoconf to choose the best objdump
3406# available, choose the one first in the user's PATH.
3407
3408
3409
3410# _LT_DECL_SED
3411# ------------
3412# Check for a fully-functional sed program, that truncates
3413# as few characters as possible.  Prefer GNU sed if found.
3414# _LT_DECL_SED
3415
3416#m4_ifndef
3417
3418# Old name:
3419# This is what autoupdate's m4 run will expand.  It fires
3420# the warning (with _au_warn_XXX), outputs it into the
3421# updated configure.ac (with AC_DIAGNOSE), and then outputs
3422# the replacement expansion.
3423
3424
3425# This is an auxiliary macro that is also run when
3426# autoupdate runs m4.  It simply calls m4_warning, but
3427# we need a wrapper so that each warning is emitted only
3428# once.  We break the quoting in m4_warning's argument in
3429# order to expand this macro's arguments, not AU_DEFUN's.
3430
3431
3432# Finally, this is the expansion that is picked up by
3433# autoconf.  It tells the user to run autoupdate, and
3434# then outputs the replacement expansion.  We do not care
3435# about autoupdate's warning because that contains
3436# information on what to do *after* running autoupdate.
3437
3438
3439
3440# _LT_CHECK_SHELL_FEATURES
3441# ------------------------
3442# Find out whether the shell is Bourne or XSI compatible,
3443# or has some other useful features.
3444# _LT_CHECK_SHELL_FEATURES
3445
3446
3447# _LT_PROG_XSI_SHELLFNS
3448# ---------------------
3449# Bourne and XSI compatible variants of some useful shell functions.
3450
3451
3452# Helper functions for option handling.                    -*- Autoconf -*-
3453#
3454#   Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3455#   Inc.
3456#   Written by Gary V. Vaughan, 2004
3457#
3458# This file is free software; the Free Software Foundation gives
3459# unlimited permission to copy and/or distribute it, with or without
3460# modifications, as long as this notice is preserved.
3461
3462# serial 6 ltoptions.m4
3463
3464# This is to help aclocal find these macros, as it can't see m4_define.
3465
3466
3467
3468# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3469# ------------------------------------------
3470
3471
3472
3473# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3474# ---------------------------------------
3475# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3476# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
3477# saved as a flag.
3478
3479
3480
3481# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3482# ------------------------------------------------------------
3483# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3484
3485
3486
3487# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3488# -------------------------------------------------------
3489# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3490# are set.
3491
3492
3493
3494# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3495# ----------------------------------------
3496# OPTION-LIST is a space-separated list of Libtool options associated
3497# with MACRO-NAME.  If any OPTION has a matching handler declared with
3498# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3499# the unknown option and exit.
3500# _LT_SET_OPTIONS
3501
3502
3503## --------------------------------- ##
3504## Macros to handle LT_INIT options. ##
3505## --------------------------------- ##
3506
3507# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3508# -----------------------------------------
3509
3510
3511
3512# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3513# -----------------------------------------------
3514# LT_OPTION_DEFINE
3515
3516
3517# dlopen
3518# ------
3519
3520
3521# This is what autoupdate's m4 run will expand.  It fires
3522# the warning (with _au_warn_XXX), outputs it into the
3523# updated configure.ac (with AC_DIAGNOSE), and then outputs
3524# the replacement expansion.
3525
3526
3527# This is an auxiliary macro that is also run when
3528# autoupdate runs m4.  It simply calls m4_warning, but
3529# we need a wrapper so that each warning is emitted only
3530# once.  We break the quoting in m4_warning's argument in
3531# order to expand this macro's arguments, not AU_DEFUN's.
3532
3533
3534# Finally, this is the expansion that is picked up by
3535# autoconf.  It tells the user to run autoupdate, and
3536# then outputs the replacement expansion.  We do not care
3537# about autoupdate's warning because that contains
3538# information on what to do *after* running autoupdate.
3539
3540
3541
3542
3543# win32-dll
3544# ---------
3545# Declare package support for building win32 dll's.
3546# win32-dll
3547
3548# This is what autoupdate's m4 run will expand.  It fires
3549# the warning (with _au_warn_XXX), outputs it into the
3550# updated configure.ac (with AC_DIAGNOSE), and then outputs
3551# the replacement expansion.
3552
3553
3554# This is an auxiliary macro that is also run when
3555# autoupdate runs m4.  It simply calls m4_warning, but
3556# we need a wrapper so that each warning is emitted only
3557# once.  We break the quoting in m4_warning's argument in
3558# order to expand this macro's arguments, not AU_DEFUN's.
3559
3560
3561# Finally, this is the expansion that is picked up by
3562# autoconf.  It tells the user to run autoupdate, and
3563# then outputs the replacement expansion.  We do not care
3564# about autoupdate's warning because that contains
3565# information on what to do *after* running autoupdate.
3566
3567
3568
3569
3570# _LT_ENABLE_SHARED([DEFAULT])
3571# ----------------------------
3572# implement the --enable-shared flag, and supports the `shared' and
3573# `disable-shared' LT_INIT options.
3574# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3575# _LT_ENABLE_SHARED
3576
3577
3578
3579
3580# Old names:
3581
3582
3583
3584
3585# This is what autoupdate's m4 run will expand.  It fires
3586# the warning (with _au_warn_XXX), outputs it into the
3587# updated configure.ac (with AC_DIAGNOSE), and then outputs
3588# the replacement expansion.
3589
3590
3591# This is an auxiliary macro that is also run when
3592# autoupdate runs m4.  It simply calls m4_warning, but
3593# we need a wrapper so that each warning is emitted only
3594# once.  We break the quoting in m4_warning's argument in
3595# order to expand this macro's arguments, not AU_DEFUN's.
3596
3597
3598# Finally, this is the expansion that is picked up by
3599# autoconf.  It tells the user to run autoupdate, and
3600# then outputs the replacement expansion.  We do not care
3601# about autoupdate's warning because that contains
3602# information on what to do *after* running autoupdate.
3603
3604# This is what autoupdate's m4 run will expand.  It fires
3605# the warning (with _au_warn_XXX), outputs it into the
3606# updated configure.ac (with AC_DIAGNOSE), and then outputs
3607# the replacement expansion.
3608
3609
3610# This is an auxiliary macro that is also run when
3611# autoupdate runs m4.  It simply calls m4_warning, but
3612# we need a wrapper so that each warning is emitted only
3613# once.  We break the quoting in m4_warning's argument in
3614# order to expand this macro's arguments, not AU_DEFUN's.
3615
3616
3617# Finally, this is the expansion that is picked up by
3618# autoconf.  It tells the user to run autoupdate, and
3619# then outputs the replacement expansion.  We do not care
3620# about autoupdate's warning because that contains
3621# information on what to do *after* running autoupdate.
3622
3623
3624
3625
3626
3627# _LT_ENABLE_STATIC([DEFAULT])
3628# ----------------------------
3629# implement the --enable-static flag, and support the `static' and
3630# `disable-static' LT_INIT options.
3631# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3632# _LT_ENABLE_STATIC
3633
3634
3635
3636
3637# Old names:
3638
3639
3640
3641
3642# This is what autoupdate's m4 run will expand.  It fires
3643# the warning (with _au_warn_XXX), outputs it into the
3644# updated configure.ac (with AC_DIAGNOSE), and then outputs
3645# the replacement expansion.
3646
3647
3648# This is an auxiliary macro that is also run when
3649# autoupdate runs m4.  It simply calls m4_warning, but
3650# we need a wrapper so that each warning is emitted only
3651# once.  We break the quoting in m4_warning's argument in
3652# order to expand this macro's arguments, not AU_DEFUN's.
3653
3654
3655# Finally, this is the expansion that is picked up by
3656# autoconf.  It tells the user to run autoupdate, and
3657# then outputs the replacement expansion.  We do not care
3658# about autoupdate's warning because that contains
3659# information on what to do *after* running autoupdate.
3660
3661# This is what autoupdate's m4 run will expand.  It fires
3662# the warning (with _au_warn_XXX), outputs it into the
3663# updated configure.ac (with AC_DIAGNOSE), and then outputs
3664# the replacement expansion.
3665
3666
3667# This is an auxiliary macro that is also run when
3668# autoupdate runs m4.  It simply calls m4_warning, but
3669# we need a wrapper so that each warning is emitted only
3670# once.  We break the quoting in m4_warning's argument in
3671# order to expand this macro's arguments, not AU_DEFUN's.
3672
3673
3674# Finally, this is the expansion that is picked up by
3675# autoconf.  It tells the user to run autoupdate, and
3676# then outputs the replacement expansion.  We do not care
3677# about autoupdate's warning because that contains
3678# information on what to do *after* running autoupdate.
3679
3680
3681
3682
3683
3684# _LT_ENABLE_FAST_INSTALL([DEFAULT])
3685# ----------------------------------
3686# implement the --enable-fast-install flag, and support the `fast-install'
3687# and `disable-fast-install' LT_INIT options.
3688# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3689# _LT_ENABLE_FAST_INSTALL
3690
3691
3692
3693
3694# Old names:
3695# This is what autoupdate's m4 run will expand.  It fires
3696# the warning (with _au_warn_XXX), outputs it into the
3697# updated configure.ac (with AC_DIAGNOSE), and then outputs
3698# the replacement expansion.
3699
3700
3701# This is an auxiliary macro that is also run when
3702# autoupdate runs m4.  It simply calls m4_warning, but
3703# we need a wrapper so that each warning is emitted only
3704# once.  We break the quoting in m4_warning's argument in
3705# order to expand this macro's arguments, not AU_DEFUN's.
3706
3707
3708# Finally, this is the expansion that is picked up by
3709# autoconf.  It tells the user to run autoupdate, and
3710# then outputs the replacement expansion.  We do not care
3711# about autoupdate's warning because that contains
3712# information on what to do *after* running autoupdate.
3713
3714
3715# This is what autoupdate's m4 run will expand.  It fires
3716# the warning (with _au_warn_XXX), outputs it into the
3717# updated configure.ac (with AC_DIAGNOSE), and then outputs
3718# the replacement expansion.
3719
3720
3721# This is an auxiliary macro that is also run when
3722# autoupdate runs m4.  It simply calls m4_warning, but
3723# we need a wrapper so that each warning is emitted only
3724# once.  We break the quoting in m4_warning's argument in
3725# order to expand this macro's arguments, not AU_DEFUN's.
3726
3727
3728# Finally, this is the expansion that is picked up by
3729# autoconf.  It tells the user to run autoupdate, and
3730# then outputs the replacement expansion.  We do not care
3731# about autoupdate's warning because that contains
3732# information on what to do *after* running autoupdate.
3733
3734
3735
3736
3737# _LT_WITH_PIC([MODE])
3738# --------------------
3739# implement the --with-pic flag, and support the `pic-only' and `no-pic'
3740# LT_INIT options.
3741# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3742# _LT_WITH_PIC
3743
3744
3745
3746
3747# Old name:
3748# This is what autoupdate's m4 run will expand.  It fires
3749# the warning (with _au_warn_XXX), outputs it into the
3750# updated configure.ac (with AC_DIAGNOSE), and then outputs
3751# the replacement expansion.
3752
3753
3754# This is an auxiliary macro that is also run when
3755# autoupdate runs m4.  It simply calls m4_warning, but
3756# we need a wrapper so that each warning is emitted only
3757# once.  We break the quoting in m4_warning's argument in
3758# order to expand this macro's arguments, not AU_DEFUN's.
3759
3760
3761# Finally, this is the expansion that is picked up by
3762# autoconf.  It tells the user to run autoupdate, and
3763# then outputs the replacement expansion.  We do not care
3764# about autoupdate's warning because that contains
3765# information on what to do *after* running autoupdate.
3766
3767
3768
3769## ----------------- ##
3770## LTDL_INIT Options ##
3771## ----------------- ##
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
3783#
3784# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3785# Written by Gary V. Vaughan, 2004
3786#
3787# This file is free software; the Free Software Foundation gives
3788# unlimited permission to copy and/or distribute it, with or without
3789# modifications, as long as this notice is preserved.
3790
3791# serial 6 ltsugar.m4
3792
3793# This is to help aclocal find these macros, as it can't see m4_define.
3794
3795
3796
3797# lt_join(SEP, ARG1, [ARG2...])
3798# -----------------------------
3799# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3800# associated separator.
3801# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3802# versions in m4sugar had bugs.
3803
3804
3805
3806
3807# lt_car(LIST)
3808# lt_cdr(LIST)
3809# ------------
3810# Manipulate m4 lists.
3811# These macros are necessary as long as will still need to support
3812# Autoconf-2.59 which quotes differently.
3813
3814
3815
3816
3817
3818# lt_append(MACRO-NAME, STRING, [SEPARATOR])
3819# ------------------------------------------
3820# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3821# Note that neither SEPARATOR nor STRING are expanded; they are appended
3822# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3823# No SEPARATOR is output if MACRO-NAME was previously undefined (different
3824# than defined and empty).
3825#
3826# This macro is needed until we can rely on Autoconf 2.62, since earlier
3827# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3828
3829
3830
3831
3832# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3833# ----------------------------------------------------------
3834# Produce a SEP delimited list of all paired combinations of elements of
3835# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
3836# has the form PREFIXmINFIXSUFFIXn.
3837# Needed until we can rely on m4_combine added in Autoconf 2.62.
3838
3839
3840
3841# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3842# -----------------------------------------------------------------------
3843# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3844# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3845
3846
3847
3848# lt_dict_add(DICT, KEY, VALUE)
3849# -----------------------------
3850
3851
3852
3853# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3854# --------------------------------------------
3855
3856
3857
3858# lt_dict_fetch(DICT, KEY, [SUBKEY])
3859# ----------------------------------
3860
3861
3862
3863# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3864# -----------------------------------------------------------------
3865
3866
3867
3868# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3869# --------------------------------------------------------------
3870
3871
3872# ltversion.m4 -- version numbers			-*- Autoconf -*-
3873#
3874#   Copyright (C) 2004 Free Software Foundation, Inc.
3875#   Written by Scott James Remnant, 2004
3876#
3877# This file is free software; the Free Software Foundation gives
3878# unlimited permission to copy and/or distribute it, with or without
3879# modifications, as long as this notice is preserved.
3880
3881# Generated from ltversion.in.
3882
3883# serial 3134 ltversion.m4
3884# This file is part of GNU Libtool
3885
3886
3887
3888
3889
3890
3891# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
3892#
3893#   Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3894#   Written by Scott James Remnant, 2004.
3895#
3896# This file is free software; the Free Software Foundation gives
3897# unlimited permission to copy and/or distribute it, with or without
3898# modifications, as long as this notice is preserved.
3899
3900# serial 4 lt~obsolete.m4
3901
3902# These exist entirely to fool aclocal when bootstrapping libtool.
3903#
3904# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3905# which have later been changed to m4_define as they aren't part of the
3906# exported API, or moved to Autoconf or Automake where they belong.
3907#
3908# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
3909# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3910# using a macro with the same name in our local m4/libtool.m4 it'll
3911# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3912# and doesn't know about Autoconf macros at all.)
3913#
3914# So we provide this file, which has a silly filename so it's always
3915# included after everything else.  This provides aclocal with the
3916# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3917# because those macros already exist, or will be overwritten later.
3918# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3919#
3920# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3921# Yes, that means every name once taken will need to remain here until
3922# we give up compatibility with versions before 1.7, at which point
3923# we need to keep only those names which we still refer to.
3924
3925# This is to help aclocal find these macros, as it can't see m4_define.
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990##                                                          -*- Autoconf -*-
3991
3992# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3993# Free Software Foundation, Inc.
3994#
3995# This file is free software; the Free Software Foundation
3996# gives unlimited permission to copy and/or distribute it,
3997# with or without modifications, as long as this notice is preserved.
3998
3999# serial 8
4000
4001# Based on depend.m4 from automake 1.9, modified for standalone use in
4002# an environment where GNU make is required.
4003
4004# ZW_PROG_COMPILER_DEPENDENCIES
4005# -----------------------------
4006# Variant of _AM_DEPENDENCIES which just does the dependency probe and
4007# sets fooDEPMODE accordingly.  Cache-variable compatible with
4008# original; not side-effect compatible.  As the users of this macro
4009# may require accurate dependencies for correct builds, it does *not*
4010# honor --disable-dependency-checking, and failure to detect a usable
4011# method is an error.  depcomp is assumed to be located in
4012# $ac_aux_dir.
4013#
4014# FIXME: Should use the Autoconf 2.5x language-selection mechanism.
4015
4016
4017
4018# AM_SET_DEPDIR
4019# -------------
4020# Choose a directory name for dependency files.
4021
4022
4023# ZW_CREATE_DEPDIR
4024# ----------------
4025# As AM_SET_DEPDIR, but also create the directory at config.status time.
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092# intl sister-directory configuration rules.
4093#
4094
4095# The idea behind this macro is that there's no need to repeat all the
4096# autoconf probes done by the intl directory - it's already done them
4097# for us.  In fact, there's no need even to look at the cache for the
4098# answers.  All we need to do is nab a few pieces of information.
4099# The intl directory is set up to make this easy, by generating a
4100# small file which can be sourced as a shell script; then we produce
4101# the necessary substitutions and definitions for this directory.
4102
4103
4104
4105# Autoconf M4 include file defining utility macros for complex Canadian
4106# cross builds.
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116####
4117# _NCN_TOOL_PREFIXES:  Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
4118# or AC_INIT.
4119# These demand that AC_CANONICAL_SYSTEM be called beforehand.
4120
4121####
4122# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4123# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
4124
4125
4126####
4127# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
4128# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
4129
4130
4131
4132# Backported from Autoconf 2.5x; can go away when and if
4133# we switch.  Put the OS path separator in $PATH_SEPARATOR.
4134
4135
4136
4137
4138
4139
4140
4141
4142# ACX_HAVE_GCC_FOR_TARGET
4143# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
4144
4145
4146# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
4147# Searching for installed target binutils.  We need to take extra care,
4148# else we may find the wrong assembler, linker, etc., and lose.
4149#
4150# First try --with-build-time-tools, if specified.
4151#
4152# For build != host, we ask the installed GCC for the name of the tool it
4153# uses, and accept it if it is an absolute path.  This is because the
4154# only good choice for a compiler is the same GCC version that is being
4155# installed (or we couldn't make target libraries), and we assume that
4156# on the host system we'll have not only the same GCC version, but also
4157# the same binutils version.
4158#
4159# For build == host, search the same directories that the installed
4160# compiler will search.  We used to do this for the assembler, linker,
4161# and nm only; for simplicity of configuration, however, we extend this
4162# criterion to tools (such as ar and ranlib) that are never invoked by
4163# the compiler, to avoid mismatches.
4164#
4165# Also note we have to check MD_EXEC_PREFIX before checking the user's path
4166# if build == target.  This makes the most sense only when bootstrapping,
4167# but we also do so when build != host.  In this case, we hope that the
4168# build and host systems will have similar contents of MD_EXEC_PREFIX.
4169#
4170# If we do not find a suitable binary, then try the user's path.
4171
4172
4173###
4174# AC_PROG_CPP_WERROR
4175# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
4176# triggers warnings from the preprocessor.  Will be in autoconf 2.58.
4177# For now, using this also overrides header checks to use only the
4178# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
4179# bit harder from here).
4180# Eventually autoconf will default to checking headers with the compiler
4181# instead, and we'll have to do this differently.
4182
4183# AC_PROG_CPP_WERROR
4184
4185# Test for GNAT.
4186# We require the gnatbind & gnatmake programs, as well as a compiler driver
4187# that understands Ada.  We use the user's CC setting, already found, and
4188# possibly add $1 to the command-line parameters.
4189#
4190# Sets the shell variable have_gnat to yes or no as appropriate, and
4191# substitutes GNATBIND and GNATMAKE.
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217ac_aux_dir=
4218for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4219  if test -f "$ac_dir/install-sh"; then
4220    ac_aux_dir=$ac_dir
4221    ac_install_sh="$ac_aux_dir/install-sh -c"
4222    break
4223  elif test -f "$ac_dir/install.sh"; then
4224    ac_aux_dir=$ac_dir
4225    ac_install_sh="$ac_aux_dir/install.sh -c"
4226    break
4227  elif test -f "$ac_dir/shtool"; then
4228    ac_aux_dir=$ac_dir
4229    ac_install_sh="$ac_aux_dir/shtool install -c"
4230    break
4231  fi
4232done
4233if test -z "$ac_aux_dir"; then
4234  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4235fi
4236
4237# These three variables are undocumented and unsupported,
4238# and are intended to be withdrawn in a future Autoconf release.
4239# They can cause serious problems if a builder's source tree is in a directory
4240# whose full name contains unusual characters.
4241ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4242ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4243ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4244
4245
4246# Find a good install program.  We prefer a C program (faster),
4247# so one script is as good as another.  But avoid the broken or
4248# incompatible versions:
4249# SysV /etc/install, /usr/sbin/install
4250# SunOS /usr/etc/install
4251# IRIX /sbin/install
4252# AIX /bin/install
4253# AmigaOS /C/install, which installs bootblocks on floppy discs
4254# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4255# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4256# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4257# OS/2's system install, which has a completely different semantic
4258# ./install, which can be erroneously created by make from ./install.sh.
4259# Reject install programs that cannot install multiple files.
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4261$as_echo_n "checking for a BSD-compatible install... " >&6; }
4262if test -z "$INSTALL"; then
4263if ${ac_cv_path_install+:} false; then :
4264  $as_echo_n "(cached) " >&6
4265else
4266  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269  IFS=$as_save_IFS
4270  test -z "$as_dir" && as_dir=.
4271    # Account for people who put trailing slashes in PATH elements.
4272case $as_dir/ in #((
4273  ./ | .// | /[cC]/* | \
4274  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4275  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4276  /usr/ucb/* ) ;;
4277  *)
4278    # OSF1 and SCO ODT 3.0 have their own names for install.
4279    # Don't use installbsd from OSF since it installs stuff as root
4280    # by default.
4281    for ac_prog in ginstall scoinst install; do
4282      for ac_exec_ext in '' $ac_executable_extensions; do
4283	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4284	  if test $ac_prog = install &&
4285	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286	    # AIX install.  It has an incompatible calling convention.
4287	    :
4288	  elif test $ac_prog = install &&
4289	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4290	    # program-specific install script used by HP pwplus--don't use.
4291	    :
4292	  else
4293	    rm -rf conftest.one conftest.two conftest.dir
4294	    echo one > conftest.one
4295	    echo two > conftest.two
4296	    mkdir conftest.dir
4297	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4298	      test -s conftest.one && test -s conftest.two &&
4299	      test -s conftest.dir/conftest.one &&
4300	      test -s conftest.dir/conftest.two
4301	    then
4302	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4303	      break 3
4304	    fi
4305	  fi
4306	fi
4307      done
4308    done
4309    ;;
4310esac
4311
4312  done
4313IFS=$as_save_IFS
4314
4315rm -rf conftest.one conftest.two conftest.dir
4316
4317fi
4318  if test "${ac_cv_path_install+set}" = set; then
4319    INSTALL=$ac_cv_path_install
4320  else
4321    # As a last resort, use the slow shell script.  Don't cache a
4322    # value for INSTALL within a source directory, because that will
4323    # break other packages using the cache if that directory is
4324    # removed, or if the value is a relative name.
4325    INSTALL=$ac_install_sh
4326  fi
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4329$as_echo "$INSTALL" >&6; }
4330
4331# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4332# It thinks the first close brace ends the variable substitution.
4333test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4334
4335test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4336
4337test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4338
4339ac_ext=c
4340ac_cpp='$CPP $CPPFLAGS'
4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344if test -n "$ac_tool_prefix"; then
4345  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4346set dummy ${ac_tool_prefix}gcc; ac_word=$2
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348$as_echo_n "checking for $ac_word... " >&6; }
4349if ${ac_cv_prog_CC+:} false; then :
4350  $as_echo_n "(cached) " >&6
4351else
4352  if test -n "$CC"; then
4353  ac_cv_prog_CC="$CC" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358  IFS=$as_save_IFS
4359  test -z "$as_dir" && as_dir=.
4360    for ac_exec_ext in '' $ac_executable_extensions; do
4361  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364    break 2
4365  fi
4366done
4367  done
4368IFS=$as_save_IFS
4369
4370fi
4371fi
4372CC=$ac_cv_prog_CC
4373if test -n "$CC"; then
4374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4375$as_echo "$CC" >&6; }
4376else
4377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378$as_echo "no" >&6; }
4379fi
4380
4381
4382fi
4383if test -z "$ac_cv_prog_CC"; then
4384  ac_ct_CC=$CC
4385  # Extract the first word of "gcc", so it can be a program name with args.
4386set dummy gcc; ac_word=$2
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
4389if ${ac_cv_prog_ac_ct_CC+:} false; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392  if test -n "$ac_ct_CC"; then
4393  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400    for ac_exec_ext in '' $ac_executable_extensions; do
4401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402    ac_cv_prog_ac_ct_CC="gcc"
4403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404    break 2
4405  fi
4406done
4407  done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413if test -n "$ac_ct_CC"; then
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4415$as_echo "$ac_ct_CC" >&6; }
4416else
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420
4421  if test "x$ac_ct_CC" = x; then
4422    CC=""
4423  else
4424    case $cross_compiling:$ac_tool_warned in
4425yes:)
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428ac_tool_warned=yes ;;
4429esac
4430    CC=$ac_ct_CC
4431  fi
4432else
4433  CC="$ac_cv_prog_CC"
4434fi
4435
4436if test -z "$CC"; then
4437          if test -n "$ac_tool_prefix"; then
4438    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4439set dummy ${ac_tool_prefix}cc; ac_word=$2
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441$as_echo_n "checking for $ac_word... " >&6; }
4442if ${ac_cv_prog_CC+:} false; then :
4443  $as_echo_n "(cached) " >&6
4444else
4445  if test -n "$CC"; then
4446  ac_cv_prog_CC="$CC" # Let the user override the test.
4447else
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455    ac_cv_prog_CC="${ac_tool_prefix}cc"
4456    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457    break 2
4458  fi
4459done
4460  done
4461IFS=$as_save_IFS
4462
4463fi
4464fi
4465CC=$ac_cv_prog_CC
4466if test -n "$CC"; then
4467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4468$as_echo "$CC" >&6; }
4469else
4470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471$as_echo "no" >&6; }
4472fi
4473
4474
4475  fi
4476fi
4477if test -z "$CC"; then
4478  # Extract the first word of "cc", so it can be a program name with args.
4479set dummy cc; ac_word=$2
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481$as_echo_n "checking for $ac_word... " >&6; }
4482if ${ac_cv_prog_CC+:} false; then :
4483  $as_echo_n "(cached) " >&6
4484else
4485  if test -n "$CC"; then
4486  ac_cv_prog_CC="$CC" # Let the user override the test.
4487else
4488  ac_prog_rejected=no
4489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492  IFS=$as_save_IFS
4493  test -z "$as_dir" && as_dir=.
4494    for ac_exec_ext in '' $ac_executable_extensions; do
4495  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4496    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497       ac_prog_rejected=yes
4498       continue
4499     fi
4500    ac_cv_prog_CC="cc"
4501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502    break 2
4503  fi
4504done
4505  done
4506IFS=$as_save_IFS
4507
4508if test $ac_prog_rejected = yes; then
4509  # We found a bogon in the path, so make sure we never use it.
4510  set dummy $ac_cv_prog_CC
4511  shift
4512  if test $# != 0; then
4513    # We chose a different compiler from the bogus one.
4514    # However, it has the same basename, so the bogon will be chosen
4515    # first if we set CC to just the basename; use the full file name.
4516    shift
4517    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4518  fi
4519fi
4520fi
4521fi
4522CC=$ac_cv_prog_CC
4523if test -n "$CC"; then
4524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4525$as_echo "$CC" >&6; }
4526else
4527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528$as_echo "no" >&6; }
4529fi
4530
4531
4532fi
4533if test -z "$CC"; then
4534  if test -n "$ac_tool_prefix"; then
4535  for ac_prog in cl.exe
4536  do
4537    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540$as_echo_n "checking for $ac_word... " >&6; }
4541if ${ac_cv_prog_CC+:} false; then :
4542  $as_echo_n "(cached) " >&6
4543else
4544  if test -n "$CC"; then
4545  ac_cv_prog_CC="$CC" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552    for ac_exec_ext in '' $ac_executable_extensions; do
4553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556    break 2
4557  fi
4558done
4559  done
4560IFS=$as_save_IFS
4561
4562fi
4563fi
4564CC=$ac_cv_prog_CC
4565if test -n "$CC"; then
4566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4567$as_echo "$CC" >&6; }
4568else
4569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570$as_echo "no" >&6; }
4571fi
4572
4573
4574    test -n "$CC" && break
4575  done
4576fi
4577if test -z "$CC"; then
4578  ac_ct_CC=$CC
4579  for ac_prog in cl.exe
4580do
4581  # Extract the first word of "$ac_prog", so it can be a program name with args.
4582set dummy $ac_prog; ac_word=$2
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584$as_echo_n "checking for $ac_word... " >&6; }
4585if ${ac_cv_prog_ac_ct_CC+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  if test -n "$ac_ct_CC"; then
4589  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594  IFS=$as_save_IFS
4595  test -z "$as_dir" && as_dir=.
4596    for ac_exec_ext in '' $ac_executable_extensions; do
4597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598    ac_cv_prog_ac_ct_CC="$ac_prog"
4599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4600    break 2
4601  fi
4602done
4603  done
4604IFS=$as_save_IFS
4605
4606fi
4607fi
4608ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609if test -n "$ac_ct_CC"; then
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4611$as_echo "$ac_ct_CC" >&6; }
4612else
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615fi
4616
4617
4618  test -n "$ac_ct_CC" && break
4619done
4620
4621  if test "x$ac_ct_CC" = x; then
4622    CC=""
4623  else
4624    case $cross_compiling:$ac_tool_warned in
4625yes:)
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628ac_tool_warned=yes ;;
4629esac
4630    CC=$ac_ct_CC
4631  fi
4632fi
4633
4634fi
4635
4636
4637test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639as_fn_error $? "no acceptable C compiler found in \$PATH
4640See \`config.log' for more details" "$LINENO" 5; }
4641
4642# Provide some information about the compiler.
4643$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4644set X $ac_compile
4645ac_compiler=$2
4646for ac_option in --version -v -V -qversion; do
4647  { { ac_try="$ac_compiler $ac_option >&5"
4648case "(($ac_try" in
4649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650  *) ac_try_echo=$ac_try;;
4651esac
4652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653$as_echo "$ac_try_echo"; } >&5
4654  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4655  ac_status=$?
4656  if test -s conftest.err; then
4657    sed '10a\
4658... rest of stderr output deleted ...
4659         10q' conftest.err >conftest.er1
4660    cat conftest.er1 >&5
4661  fi
4662  rm -f conftest.er1 conftest.err
4663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4664  test $ac_status = 0; }
4665done
4666
4667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669
4670int
4671main ()
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678ac_clean_files_save=$ac_clean_files
4679ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4680# Try to create an executable without -o first, disregard a.out.
4681# It will help us diagnose broken compilers, and finding out an intuition
4682# of exeext.
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4684$as_echo_n "checking whether the C compiler works... " >&6; }
4685ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4686
4687# The possible output files:
4688ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4689
4690ac_rmfiles=
4691for ac_file in $ac_files
4692do
4693  case $ac_file in
4694    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4695    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4696  esac
4697done
4698rm -f $ac_rmfiles
4699
4700if { { ac_try="$ac_link_default"
4701case "(($ac_try" in
4702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703  *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706$as_echo "$ac_try_echo"; } >&5
4707  (eval "$ac_link_default") 2>&5
4708  ac_status=$?
4709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710  test $ac_status = 0; }; then :
4711  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4712# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4713# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4714# so that the user can short-circuit this test for compilers unknown to
4715# Autoconf.
4716for ac_file in $ac_files ''
4717do
4718  test -f "$ac_file" || continue
4719  case $ac_file in
4720    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4721	;;
4722    [ab].out )
4723	# We found the default executable, but exeext='' is most
4724	# certainly right.
4725	break;;
4726    *.* )
4727	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4728	then :; else
4729	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4730	fi
4731	# We set ac_cv_exeext here because the later test for it is not
4732	# safe: cross compilers may not add the suffix if given an `-o'
4733	# argument, so we may need to know it at that point already.
4734	# Even if this section looks crufty: it has the advantage of
4735	# actually working.
4736	break;;
4737    * )
4738	break;;
4739  esac
4740done
4741test "$ac_cv_exeext" = no && ac_cv_exeext=
4742
4743else
4744  ac_file=''
4745fi
4746if test -z "$ac_file"; then :
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748$as_echo "no" >&6; }
4749$as_echo "$as_me: failed program was:" >&5
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
4752{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4754as_fn_error 77 "C compiler cannot create executables
4755See \`config.log' for more details" "$LINENO" 5; }
4756else
4757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4758$as_echo "yes" >&6; }
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4761$as_echo_n "checking for C compiler default output file name... " >&6; }
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4763$as_echo "$ac_file" >&6; }
4764ac_exeext=$ac_cv_exeext
4765
4766rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4767ac_clean_files=$ac_clean_files_save
4768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4769$as_echo_n "checking for suffix of executables... " >&6; }
4770if { { ac_try="$ac_link"
4771case "(($ac_try" in
4772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773  *) ac_try_echo=$ac_try;;
4774esac
4775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4776$as_echo "$ac_try_echo"; } >&5
4777  (eval "$ac_link") 2>&5
4778  ac_status=$?
4779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4780  test $ac_status = 0; }; then :
4781  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4782# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4783# work properly (i.e., refer to `conftest.exe'), while it won't with
4784# `rm'.
4785for ac_file in conftest.exe conftest conftest.*; do
4786  test -f "$ac_file" || continue
4787  case $ac_file in
4788    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4789    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4790	  break;;
4791    * ) break;;
4792  esac
4793done
4794else
4795  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4797as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4798See \`config.log' for more details" "$LINENO" 5; }
4799fi
4800rm -f conftest conftest$ac_cv_exeext
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4802$as_echo "$ac_cv_exeext" >&6; }
4803
4804rm -f conftest.$ac_ext
4805EXEEXT=$ac_cv_exeext
4806ac_exeext=$EXEEXT
4807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808/* end confdefs.h.  */
4809#include <stdio.h>
4810int
4811main ()
4812{
4813FILE *f = fopen ("conftest.out", "w");
4814 return ferror (f) || fclose (f) != 0;
4815
4816  ;
4817  return 0;
4818}
4819_ACEOF
4820ac_clean_files="$ac_clean_files conftest.out"
4821# Check that the compiler produces executables we can run.  If not, either
4822# the compiler is broken, or we cross compile.
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4824$as_echo_n "checking whether we are cross compiling... " >&6; }
4825if test "$cross_compiling" != yes; then
4826  { { ac_try="$ac_link"
4827case "(($ac_try" in
4828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829  *) ac_try_echo=$ac_try;;
4830esac
4831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4832$as_echo "$ac_try_echo"; } >&5
4833  (eval "$ac_link") 2>&5
4834  ac_status=$?
4835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4836  test $ac_status = 0; }
4837  if { ac_try='./conftest$ac_cv_exeext'
4838  { { case "(($ac_try" in
4839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840  *) ac_try_echo=$ac_try;;
4841esac
4842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4843$as_echo "$ac_try_echo"; } >&5
4844  (eval "$ac_try") 2>&5
4845  ac_status=$?
4846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847  test $ac_status = 0; }; }; then
4848    cross_compiling=no
4849  else
4850    if test "$cross_compiling" = maybe; then
4851	cross_compiling=yes
4852    else
4853	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4855as_fn_error $? "cannot run C compiled programs.
4856If you meant to cross compile, use \`--host'.
4857See \`config.log' for more details" "$LINENO" 5; }
4858    fi
4859  fi
4860fi
4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4862$as_echo "$cross_compiling" >&6; }
4863
4864rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4865ac_clean_files=$ac_clean_files_save
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4867$as_echo_n "checking for suffix of object files... " >&6; }
4868if ${ac_cv_objext+:} false; then :
4869  $as_echo_n "(cached) " >&6
4870else
4871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h.  */
4873
4874int
4875main ()
4876{
4877
4878  ;
4879  return 0;
4880}
4881_ACEOF
4882rm -f conftest.o conftest.obj
4883if { { ac_try="$ac_compile"
4884case "(($ac_try" in
4885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886  *) ac_try_echo=$ac_try;;
4887esac
4888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4889$as_echo "$ac_try_echo"; } >&5
4890  (eval "$ac_compile") 2>&5
4891  ac_status=$?
4892  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4893  test $ac_status = 0; }; then :
4894  for ac_file in conftest.o conftest.obj conftest.*; do
4895  test -f "$ac_file" || continue;
4896  case $ac_file in
4897    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4898    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4899       break;;
4900  esac
4901done
4902else
4903  $as_echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4908as_fn_error $? "cannot compute suffix of object files: cannot compile
4909See \`config.log' for more details" "$LINENO" 5; }
4910fi
4911rm -f conftest.$ac_cv_objext conftest.$ac_ext
4912fi
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4914$as_echo "$ac_cv_objext" >&6; }
4915OBJEXT=$ac_cv_objext
4916ac_objext=$OBJEXT
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4918$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4919if ${ac_cv_c_compiler_gnu+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923/* end confdefs.h.  */
4924
4925int
4926main ()
4927{
4928#ifndef __GNUC__
4929       choke me
4930#endif
4931
4932  ;
4933  return 0;
4934}
4935_ACEOF
4936if ac_fn_c_try_compile "$LINENO"; then :
4937  ac_compiler_gnu=yes
4938else
4939  ac_compiler_gnu=no
4940fi
4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942ac_cv_c_compiler_gnu=$ac_compiler_gnu
4943
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4946$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4947if test $ac_compiler_gnu = yes; then
4948  GCC=yes
4949else
4950  GCC=
4951fi
4952ac_test_CFLAGS=${CFLAGS+set}
4953ac_save_CFLAGS=$CFLAGS
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4955$as_echo_n "checking whether $CC accepts -g... " >&6; }
4956if ${ac_cv_prog_cc_g+:} false; then :
4957  $as_echo_n "(cached) " >&6
4958else
4959  ac_save_c_werror_flag=$ac_c_werror_flag
4960   ac_c_werror_flag=yes
4961   ac_cv_prog_cc_g=no
4962   CFLAGS="-g"
4963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h.  */
4965
4966int
4967main ()
4968{
4969
4970  ;
4971  return 0;
4972}
4973_ACEOF
4974if ac_fn_c_try_compile "$LINENO"; then :
4975  ac_cv_prog_cc_g=yes
4976else
4977  CFLAGS=""
4978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h.  */
4980
4981int
4982main ()
4983{
4984
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"; then :
4990
4991else
4992  ac_c_werror_flag=$ac_save_c_werror_flag
4993	 CFLAGS="-g"
4994	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996
4997int
4998main ()
4999{
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_compile "$LINENO"; then :
5006  ac_cv_prog_cc_g=yes
5007fi
5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009fi
5010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013   ac_c_werror_flag=$ac_save_c_werror_flag
5014fi
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5016$as_echo "$ac_cv_prog_cc_g" >&6; }
5017if test "$ac_test_CFLAGS" = set; then
5018  CFLAGS=$ac_save_CFLAGS
5019elif test $ac_cv_prog_cc_g = yes; then
5020  if test "$GCC" = yes; then
5021    CFLAGS="-g -O2"
5022  else
5023    CFLAGS="-g"
5024  fi
5025else
5026  if test "$GCC" = yes; then
5027    CFLAGS="-O2"
5028  else
5029    CFLAGS=
5030  fi
5031fi
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5033$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5034if ${ac_cv_prog_cc_c89+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  ac_cv_prog_cc_c89=no
5038ac_save_CC=$CC
5039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040/* end confdefs.h.  */
5041#include <stdarg.h>
5042#include <stdio.h>
5043struct stat;
5044/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5045struct buf { int x; };
5046FILE * (*rcsopen) (struct buf *, struct stat *, int);
5047static char *e (p, i)
5048     char **p;
5049     int i;
5050{
5051  return p[i];
5052}
5053static char *f (char * (*g) (char **, int), char **p, ...)
5054{
5055  char *s;
5056  va_list v;
5057  va_start (v,p);
5058  s = g (p, va_arg (v,int));
5059  va_end (v);
5060  return s;
5061}
5062
5063/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5064   function prototypes and stuff, but not '\xHH' hex character constants.
5065   These don't provoke an error unfortunately, instead are silently treated
5066   as 'x'.  The following induces an error, until -std is added to get
5067   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5068   array size at least.  It's necessary to write '\x00'==0 to get something
5069   that's true only with -std.  */
5070int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5071
5072/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5073   inside strings and character constants.  */
5074#define FOO(x) 'x'
5075int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5076
5077int test (int i, double x);
5078struct s1 {int (*f) (int a);};
5079struct s2 {int (*f) (double a);};
5080int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5081int argc;
5082char **argv;
5083int
5084main ()
5085{
5086return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5087  ;
5088  return 0;
5089}
5090_ACEOF
5091for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5092	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5093do
5094  CC="$ac_save_CC $ac_arg"
5095  if ac_fn_c_try_compile "$LINENO"; then :
5096  ac_cv_prog_cc_c89=$ac_arg
5097fi
5098rm -f core conftest.err conftest.$ac_objext
5099  test "x$ac_cv_prog_cc_c89" != "xno" && break
5100done
5101rm -f conftest.$ac_ext
5102CC=$ac_save_CC
5103
5104fi
5105# AC_CACHE_VAL
5106case "x$ac_cv_prog_cc_c89" in
5107  x)
5108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5109$as_echo "none needed" >&6; } ;;
5110  xno)
5111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5112$as_echo "unsupported" >&6; } ;;
5113  *)
5114    CC="$CC $ac_cv_prog_cc_c89"
5115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5116$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5117esac
5118if test "x$ac_cv_prog_cc_c89" != xno; then :
5119
5120fi
5121
5122ac_ext=c
5123ac_cpp='$CPP $CPPFLAGS'
5124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126ac_compiler_gnu=$ac_cv_c_compiler_gnu
5127
5128
5129# Put a plausible default for CC_FOR_BUILD in Makefile.
5130if test "x$cross_compiling" = "xno"; then
5131  CC_FOR_BUILD='$(CC)'
5132else
5133  CC_FOR_BUILD=gcc
5134fi
5135CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
5136
5137ALL_LINGUAS=
5138# If we haven't got the data from the intl directory,
5139# assume NLS is disabled.
5140USE_NLS=no
5141LIBINTL=
5142LIBINTL_DEP=
5143INCINTL=
5144XGETTEXT=
5145GMSGFMT=
5146POSUB=
5147
5148if test -f  ../../intl/config.intl; then
5149  .  ../../intl/config.intl
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5152$as_echo_n "checking whether NLS is requested... " >&6; }
5153if test x"$USE_NLS" != xyes; then
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155$as_echo "no" >&6; }
5156else
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5158$as_echo "yes" >&6; }
5159
5160$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5161
5162
5163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5164$as_echo_n "checking for catalogs to be installed... " >&6; }
5165  # Look for .po and .gmo files in the source directory.
5166  CATALOGS=
5167  XLINGUAS=
5168  for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5169    # If there aren't any .gmo files the shell will give us the
5170    # literal string "../path/to/srcdir/po/*.gmo" which has to be
5171    # weeded out.
5172    case "$cat" in *\**)
5173      continue;;
5174    esac
5175    # The quadruple backslash is collapsed to a double backslash
5176    # by the backticks, then collapsed again by the double quotes,
5177    # leaving us with one backslash in the sed expression (right
5178    # before the dot that mustn't act as a wildcard).
5179    cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5180    lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5181    # The user is allowed to set LINGUAS to a list of languages to
5182    # install catalogs for.  If it's empty that means "all of them."
5183    if test "x$LINGUAS" = x; then
5184      CATALOGS="$CATALOGS $cat"
5185      XLINGUAS="$XLINGUAS $lang"
5186    else
5187      case "$LINGUAS" in *$lang*)
5188        CATALOGS="$CATALOGS $cat"
5189        XLINGUAS="$XLINGUAS $lang"
5190        ;;
5191      esac
5192    fi
5193  done
5194  LINGUAS="$XLINGUAS"
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5196$as_echo "$LINGUAS" >&6; }
5197
5198
5199    DATADIRNAME=share
5200
5201  INSTOBJEXT=.mo
5202
5203  GENCAT=gencat
5204
5205  CATOBJEXT=.gmo
5206
5207fi
5208
5209
5210# Check whether --enable-sim-alignment was given.
5211if test "${enable_sim_alignment+set}" = set; then :
5212  enableval=$enable_sim_alignment; case "${enableval}" in
5213  yes | strict | STRICT)	sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
5214  no | nonstrict | NONSTRICT)	sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
5215  0 | default | DEFAULT)	sim_alignment="-DWITH_ALIGNMENT=0";;
5216  *)				as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
5217esac
5218if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
5219  echo "Setting alignment flags = $sim_alignment" 6>&1
5220fi
5221else
5222  sim_alignment=""
5223fi
5224
5225
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sim asserts" >&5
5227$as_echo_n "checking whether to enable sim asserts... " >&6; }
5228sim_assert="1"
5229# Check whether --enable-sim-assert was given.
5230if test "${enable_sim_assert+set}" = set; then :
5231  enableval=$enable_sim_assert; case "${enableval}" in
5232  yes)	sim_assert="1";;
5233  no)	sim_assert="0";;
5234  *)	as_fn_error $? "--enable-sim-assert does not take a value" "$LINENO" 5;;
5235esac
5236fi
5237
5238cat >>confdefs.h <<_ACEOF
5239#define WITH_ASSERT $sim_assert
5240_ACEOF
5241
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_assert" >&5
5243$as_echo "$sim_assert" >&6; }
5244
5245
5246# Check whether --enable-sim-bitsize was given.
5247if test "${enable_sim_bitsize+set}" = set; then :
5248  enableval=$enable_sim_bitsize; case "${enableval}" in
5249  32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";;
5250  *)	 as_fn_error $? "\"--enable-sim-bitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5; sim_bitsize="";;
5251esac
5252if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5253  echo "Setting bitsize flags = $sim_bitsize" 6>&1
5254fi
5255else
5256  sim_bitsize=""
5257fi
5258
5259
5260# Check whether --enable-sim-config was given.
5261if test "${enable_sim_config+set}" = set; then :
5262  enableval=$enable_sim_config; case "${enableval}" in
5263  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-config=file\"" "$LINENO" 5;;
5264  *)		if test -f "${srcdir}/${enableval}"; then
5265		  sim_config="${enableval}";
5266		elif test -f "${srcdir}/${enableval}-config.h"; then
5267		  sim_config="${enableval}-config.h"
5268		else
5269		  as_fn_error $? "\"Config file $enableval was not found\"" "$LINENO" 5;
5270		  sim_config=std-config.h
5271		fi;;
5272esac
5273if test x"$silent" != x"yes" && test x"$sim_config" != x""; then
5274  echo "Setting config flags = $sim_config" 6>&1
5275fi
5276else
5277  sim_config="std-config.h"
5278if test x"$silent" != x"yes"; then
5279  echo "Setting config flags = $sim_config" 6>&1
5280fi
5281fi
5282
5283
5284# Check whether --enable-sim-decode-mechanism was given.
5285if test "${enable_sim_decode_mechanism+set}" = set; then :
5286  enableval=$enable_sim_decode_mechanism; case "${enableval}" in
5287  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-decode-mechanism=file\"" "$LINENO" 5;;
5288  array|switch|padded-switch|goto-switch)	sim_decode_mechanism="-T ${enableval}";;
5289  *)		as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
5290		sim_decode_mechanism="switch";;
5291esac
5292if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then
5293  echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1
5294fi
5295else
5296  sim_decode_mechanism=""
5297if test x"$silent" != x"yes"; then
5298  echo "Setting decode mechanism flags = $sim_decode_mechanism"
5299fi
5300fi
5301
5302
5303# Check whether --enable-sim-default-model was given.
5304if test "${enable_sim_default_model+set}" = set; then :
5305  enableval=$enable_sim_default_model; case "${enableval}" in
5306  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-default-model=model\"" "$LINENO" 5;;
5307  *)		sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";;
5308esac
5309if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then
5310  echo "Setting default-model flags = $sim_default_model" 6>&1
5311fi
5312else
5313  sim_default_model=""
5314fi
5315
5316
5317# Check whether --enable-sim-duplicate was given.
5318if test "${enable_sim_duplicate+set}" = set; then :
5319  enableval=$enable_sim_duplicate; case "${enableval}" in
5320  yes)	sim_dup="-E";;
5321  no)	sim_dup="";;
5322  *)	as_fn_error $? "\"--enable-sim-duplicate does not take a value\"" "$LINENO" 5; sim_dup="";;
5323esac
5324if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then
5325  echo "Setting duplicate flags = $sim_dup" 6>&1
5326fi
5327else
5328  sim_dup="-E"
5329if test x"$silent" != x"yes"; then
5330  echo "Setting duplicate flags = $sim_dup" 6>&1
5331fi
5332fi
5333
5334
5335# Check whether --enable-sim-endian was given.
5336if test "${enable_sim_endian+set}" = set; then :
5337  enableval=$enable_sim_endian; case "${enableval}" in
5338  yes)	case "$target" in
5339	  *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5340	  *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5341	  *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5342	esac;;
5343  no)	 sim_endian="-DWITH_TARGET_BYTE_ORDER=0";;
5344  b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5345  l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5346  *)	 as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
5347esac
5348if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5349  echo "Setting endian flags = $sim_endian" 6>&1
5350fi
5351else
5352  sim_endian=""
5353fi
5354
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default sim environment setting" >&5
5357$as_echo_n "checking default sim environment setting... " >&6; }
5358sim_env="0"
5359# Check whether --enable-sim-env was given.
5360if test "${enable_sim_env+set}" = set; then :
5361  enableval=$enable_sim_env; case "${enableval}" in
5362  operating | os | oea)	sim_env="OPERATING_ENVIRONMENT";;
5363  virtual | vea)	sim_env="VIRTUAL_ENVIRONMENT";;
5364  user | uea)		sim_env="USER_ENVIRONMENT";;
5365  no)			sim_env="0";;
5366  *)			as_fn_error $? "Unknown value $enableval passed to --enable-sim-env" "$LINENO" 5;;
5367esac
5368fi
5369
5370cat >>confdefs.h <<_ACEOF
5371#define WITH_ENVIRONMENT $sim_env
5372_ACEOF
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_env" >&5
5375$as_echo "$sim_env" >&6; }
5376
5377
5378# Check whether --enable-sim-filter was given.
5379if test "${enable_sim_filter+set}" = set; then :
5380  enableval=$enable_sim_filter; case "${enableval}" in
5381  yes)	as_fn_error $? "\"--enable-sim-filter must be specified with a rule to filter or no\"" "$LINENO" 5; sim_filter="";;
5382  no)	sim_filter="";;
5383  *)	sim_filter="-F $enableval";;
5384esac
5385if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then
5386  echo "Setting filter flags = $sim_filter" 6>&1
5387fi
5388else
5389  sim_filter="-F 32,f,o"
5390if test x"$silent" != x"yes"; then
5391  echo "Setting filter flags = $sim_filter" 6>&1
5392fi
5393fi
5394
5395
5396# Check whether --enable-sim-float was given.
5397if test "${enable_sim_float+set}" = set; then :
5398  enableval=$enable_sim_float; case "${enableval}" in
5399  yes | hard)	sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5400  no | soft)	sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5401  altivec)      sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5402  *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5403  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
5404esac
5405if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5406  echo "Setting float flags = $sim_float" 6>&1
5407fi
5408else
5409
5410case "${target}" in
5411  *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;;
5412  *spe*|*simd*)	sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;;
5413  *) sim_float=""
5414esac
5415
5416fi
5417
5418
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if union semun defined" >&5
5420$as_echo_n "checking if union semun defined... " >&6; }
5421if ${ac_cv_HAS_UNION_SEMUN+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425/* end confdefs.h.  */
5426
5427#include <sys/types.h>
5428#include <sys/ipc.h>
5429#include <sys/sem.h>
5430int
5431main ()
5432{
5433union semun arg ;
5434  ;
5435  return 0;
5436}
5437_ACEOF
5438if ac_fn_c_try_compile "$LINENO"; then :
5439  ac_cv_has_union_semun="yes"
5440else
5441  ac_cv_has_union_semun="no"
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_union_semun" >&5
5445$as_echo "$ac_cv_has_union_semun" >&6; }
5446
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_HAS_UNION_SEMUN" >&5
5449$as_echo "$ac_cv_HAS_UNION_SEMUN" >&6; }
5450
5451
5452if test "$ac_cv_has_union_semun" = "yes"; then
5453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5454$as_echo_n "checking whether System V semaphores are supported... " >&6; }
5455if ${ac_cv_sysv_sem+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458
5459  if test "$cross_compiling" = yes; then :
5460  :
5461else
5462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464
5465  #include <sys/types.h>
5466  #include <sys/ipc.h>
5467  #include <sys/sem.h>
5468  int main () {
5469    union semun arg ;
5470
5471    int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5472    if (id == -1)
5473      exit(1);
5474    arg.val = 0; /* avoid implicit type cast to union */
5475    if (semctl(id, 0, IPC_RMID, arg) == -1)
5476      exit(1);
5477    exit(0);
5478  }
5479
5480_ACEOF
5481if ac_fn_c_try_run "$LINENO"; then :
5482  ac_cv_sysv_sem="yes"
5483else
5484  ac_cv_sysv_sem="no"
5485fi
5486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5487  conftest.$ac_objext conftest.beam conftest.$ac_ext
5488fi
5489
5490
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5493$as_echo "$ac_cv_sysv_sem" >&6; }
5494else  # semun is not defined
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V semaphores are supported" >&5
5496$as_echo_n "checking whether System V semaphores are supported... " >&6; }
5497if ${ac_cv_sysv_sem+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500
5501  if test "$cross_compiling" = yes; then :
5502  :
5503else
5504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505/* end confdefs.h.  */
5506
5507  #include <sys/types.h>
5508  #include <sys/ipc.h>
5509  #include <sys/sem.h>
5510  union semun {
5511    int val;
5512    struct semid_ds *buf;
5513    ushort *array;
5514  };
5515  int main () {
5516    union semun arg ;
5517
5518    int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
5519    if (id == -1)
5520      exit(1);
5521    arg.val = 0; /* avoid implicit type cast to union */
5522    if (semctl(id, 0, IPC_RMID, arg) == -1)
5523      exit(1);
5524    exit(0);
5525  }
5526
5527_ACEOF
5528if ac_fn_c_try_run "$LINENO"; then :
5529  ac_cv_sysv_sem="yes"
5530else
5531  ac_cv_sysv_sem="no"
5532fi
5533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5534  conftest.$ac_objext conftest.beam conftest.$ac_ext
5535fi
5536
5537
5538fi
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_sem" >&5
5540$as_echo "$ac_cv_sysv_sem" >&6; }
5541fi
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether System V shared memory is supported" >&5
5544$as_echo_n "checking whether System V shared memory is supported... " >&6; }
5545if ${ac_cv_sysv_shm+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548
5549if test "$cross_compiling" = yes; then :
5550  :
5551else
5552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553/* end confdefs.h.  */
5554
5555#include <sys/types.h>
5556#include <sys/ipc.h>
5557#include <sys/shm.h>
5558int main () {
5559  int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
5560  if (id == -1)
5561    exit(1);
5562  if (shmctl(id, IPC_RMID, 0) == -1)
5563    exit(1);
5564  exit(0);
5565}
5566
5567_ACEOF
5568if ac_fn_c_try_run "$LINENO"; then :
5569  ac_cv_sysv_shm="yes"
5570else
5571  ac_cv_sysv_shm="no"
5572fi
5573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5574  conftest.$ac_objext conftest.beam conftest.$ac_ext
5575fi
5576
5577
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_shm" >&5
5580$as_echo "$ac_cv_sysv_shm" >&6; }
5581
5582if test x"$ac_cv_sysv_shm" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5583  sim_sysv_ipc_hw=",sem,shm";
5584else
5585  sim_sysv_ipc_hw="";
5586fi
5587
5588if test x"$ac_cv_has_union_semun" = x"yes" -a x"$ac_cv_sysv_sem" = x"yes" ; then
5589
5590$as_echo "#define HAVE_UNION_SEMUN 1" >>confdefs.h
5591
5592fi
5593
5594
5595# Check whether --enable-sim-hardware was given.
5596if test "${enable_sim_hardware+set}" = set; then :
5597  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}"
5598case "${enableval}" in
5599  yes)	;;
5600  no)	as_fn_error $? "\"List of hardware must be specified for --enable-sim-hardware\"" "$LINENO" 5; hardware="";;
5601  ,*)   hardware="${hardware}${enableval}";;
5602  *,)   hardware="${enableval}${hardware}";;
5603  *)	hardware="${enableval}"'';;
5604esac
5605sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5606sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5607if test x"$silent" != x"yes" && test x"$hardware" != x""; then
5608  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5609fi
5610else
5611  hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide${sim_sysv_ipc_hw}"
5612sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'`
5613sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'`
5614if test x"$silent" != x"yes"; then
5615  echo "Setting hardware to $sim_hw_src, $sim_hw_obj"
5616fi
5617fi
5618
5619# Check whether --enable-sim-hostbitsize was given.
5620if test "${enable_sim_hostbitsize+set}" = set; then :
5621  enableval=$enable_sim_hostbitsize; case "${enableval}" in
5622  32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";;
5623  *)	 as_fn_error $? "\"--enable-sim-hostbitsize was given $enableval.  Expected 32 or 64\"" "$LINENO" 5; sim_hostbitsize="";;
5624esac
5625if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then
5626  echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1
5627fi
5628else
5629  sim_hostbitsize=""
5630fi
5631
5632
5633ac_ext=c
5634ac_cpp='$CPP $CPPFLAGS'
5635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5639$as_echo_n "checking how to run the C preprocessor... " >&6; }
5640# On Suns, sometimes $CPP names a directory.
5641if test -n "$CPP" && test -d "$CPP"; then
5642  CPP=
5643fi
5644if test -z "$CPP"; then
5645  if ${ac_cv_prog_CPP+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648      # Double quotes because CPP needs to be expanded
5649    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5650    do
5651      ac_preproc_ok=false
5652for ac_c_preproc_warn_flag in '' yes
5653do
5654  # Use a header file that comes with gcc, so configuring glibc
5655  # with a fresh cross-compiler works.
5656  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5657  # <limits.h> exists even on freestanding compilers.
5658  # On the NeXT, cc -E runs the code through the compiler's parser,
5659  # not just through cpp. "Syntax error" is here to catch this case.
5660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661/* end confdefs.h.  */
5662#ifdef __STDC__
5663# include <limits.h>
5664#else
5665# include <assert.h>
5666#endif
5667		     Syntax error
5668_ACEOF
5669if ac_fn_c_try_cpp "$LINENO"; then :
5670
5671else
5672  # Broken: fails on valid input.
5673continue
5674fi
5675rm -f conftest.err conftest.i conftest.$ac_ext
5676
5677  # OK, works on sane cases.  Now check whether nonexistent headers
5678  # can be detected and how.
5679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681#include <ac_nonexistent.h>
5682_ACEOF
5683if ac_fn_c_try_cpp "$LINENO"; then :
5684  # Broken: success on invalid input.
5685continue
5686else
5687  # Passes both tests.
5688ac_preproc_ok=:
5689break
5690fi
5691rm -f conftest.err conftest.i conftest.$ac_ext
5692
5693done
5694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5695rm -f conftest.i conftest.err conftest.$ac_ext
5696if $ac_preproc_ok; then :
5697  break
5698fi
5699
5700    done
5701    ac_cv_prog_CPP=$CPP
5702
5703fi
5704  CPP=$ac_cv_prog_CPP
5705else
5706  ac_cv_prog_CPP=$CPP
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5709$as_echo "$CPP" >&6; }
5710ac_preproc_ok=false
5711for ac_c_preproc_warn_flag in '' yes
5712do
5713  # Use a header file that comes with gcc, so configuring glibc
5714  # with a fresh cross-compiler works.
5715  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5716  # <limits.h> exists even on freestanding compilers.
5717  # On the NeXT, cc -E runs the code through the compiler's parser,
5718  # not just through cpp. "Syntax error" is here to catch this case.
5719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720/* end confdefs.h.  */
5721#ifdef __STDC__
5722# include <limits.h>
5723#else
5724# include <assert.h>
5725#endif
5726		     Syntax error
5727_ACEOF
5728if ac_fn_c_try_cpp "$LINENO"; then :
5729
5730else
5731  # Broken: fails on valid input.
5732continue
5733fi
5734rm -f conftest.err conftest.i conftest.$ac_ext
5735
5736  # OK, works on sane cases.  Now check whether nonexistent headers
5737  # can be detected and how.
5738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h.  */
5740#include <ac_nonexistent.h>
5741_ACEOF
5742if ac_fn_c_try_cpp "$LINENO"; then :
5743  # Broken: success on invalid input.
5744continue
5745else
5746  # Passes both tests.
5747ac_preproc_ok=:
5748break
5749fi
5750rm -f conftest.err conftest.i conftest.$ac_ext
5751
5752done
5753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754rm -f conftest.i conftest.err conftest.$ac_ext
5755if $ac_preproc_ok; then :
5756
5757else
5758  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5760as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5761See \`config.log' for more details" "$LINENO" 5; }
5762fi
5763
5764ac_ext=c
5765ac_cpp='$CPP $CPPFLAGS'
5766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5768ac_compiler_gnu=$ac_cv_c_compiler_gnu
5769
5770
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5772$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5773if ${ac_cv_path_GREP+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  if test -z "$GREP"; then
5777  ac_path_GREP_found=false
5778  # Loop through the user's path and test for each of PROGNAME-LIST
5779  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5781do
5782  IFS=$as_save_IFS
5783  test -z "$as_dir" && as_dir=.
5784    for ac_prog in grep ggrep; do
5785    for ac_exec_ext in '' $ac_executable_extensions; do
5786      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5787      as_fn_executable_p "$ac_path_GREP" || continue
5788# Check for GNU ac_path_GREP and select it if it is found.
5789  # Check for GNU $ac_path_GREP
5790case `"$ac_path_GREP" --version 2>&1` in
5791*GNU*)
5792  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5793*)
5794  ac_count=0
5795  $as_echo_n 0123456789 >"conftest.in"
5796  while :
5797  do
5798    cat "conftest.in" "conftest.in" >"conftest.tmp"
5799    mv "conftest.tmp" "conftest.in"
5800    cp "conftest.in" "conftest.nl"
5801    $as_echo 'GREP' >> "conftest.nl"
5802    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5803    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5804    as_fn_arith $ac_count + 1 && ac_count=$as_val
5805    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5806      # Best one so far, save it but keep looking for a better one
5807      ac_cv_path_GREP="$ac_path_GREP"
5808      ac_path_GREP_max=$ac_count
5809    fi
5810    # 10*(2^10) chars as input seems more than enough
5811    test $ac_count -gt 10 && break
5812  done
5813  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5814esac
5815
5816      $ac_path_GREP_found && break 3
5817    done
5818  done
5819  done
5820IFS=$as_save_IFS
5821  if test -z "$ac_cv_path_GREP"; then
5822    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5823  fi
5824else
5825  ac_cv_path_GREP=$GREP
5826fi
5827
5828fi
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5830$as_echo "$ac_cv_path_GREP" >&6; }
5831 GREP="$ac_cv_path_GREP"
5832
5833
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5835$as_echo_n "checking for egrep... " >&6; }
5836if ${ac_cv_path_EGREP+:} false; then :
5837  $as_echo_n "(cached) " >&6
5838else
5839  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5840   then ac_cv_path_EGREP="$GREP -E"
5841   else
5842     if test -z "$EGREP"; then
5843  ac_path_EGREP_found=false
5844  # Loop through the user's path and test for each of PROGNAME-LIST
5845  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5847do
5848  IFS=$as_save_IFS
5849  test -z "$as_dir" && as_dir=.
5850    for ac_prog in egrep; do
5851    for ac_exec_ext in '' $ac_executable_extensions; do
5852      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5853      as_fn_executable_p "$ac_path_EGREP" || continue
5854# Check for GNU ac_path_EGREP and select it if it is found.
5855  # Check for GNU $ac_path_EGREP
5856case `"$ac_path_EGREP" --version 2>&1` in
5857*GNU*)
5858  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5859*)
5860  ac_count=0
5861  $as_echo_n 0123456789 >"conftest.in"
5862  while :
5863  do
5864    cat "conftest.in" "conftest.in" >"conftest.tmp"
5865    mv "conftest.tmp" "conftest.in"
5866    cp "conftest.in" "conftest.nl"
5867    $as_echo 'EGREP' >> "conftest.nl"
5868    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5869    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5870    as_fn_arith $ac_count + 1 && ac_count=$as_val
5871    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5872      # Best one so far, save it but keep looking for a better one
5873      ac_cv_path_EGREP="$ac_path_EGREP"
5874      ac_path_EGREP_max=$ac_count
5875    fi
5876    # 10*(2^10) chars as input seems more than enough
5877    test $ac_count -gt 10 && break
5878  done
5879  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5880esac
5881
5882      $ac_path_EGREP_found && break 3
5883    done
5884  done
5885  done
5886IFS=$as_save_IFS
5887  if test -z "$ac_cv_path_EGREP"; then
5888    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5889  fi
5890else
5891  ac_cv_path_EGREP=$EGREP
5892fi
5893
5894   fi
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5897$as_echo "$ac_cv_path_EGREP" >&6; }
5898 EGREP="$ac_cv_path_EGREP"
5899
5900
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5902$as_echo_n "checking for ANSI C header files... " >&6; }
5903if ${ac_cv_header_stdc+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908#include <stdlib.h>
5909#include <stdarg.h>
5910#include <string.h>
5911#include <float.h>
5912
5913int
5914main ()
5915{
5916
5917  ;
5918  return 0;
5919}
5920_ACEOF
5921if ac_fn_c_try_compile "$LINENO"; then :
5922  ac_cv_header_stdc=yes
5923else
5924  ac_cv_header_stdc=no
5925fi
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927
5928if test $ac_cv_header_stdc = yes; then
5929  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932#include <string.h>
5933
5934_ACEOF
5935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5936  $EGREP "memchr" >/dev/null 2>&1; then :
5937
5938else
5939  ac_cv_header_stdc=no
5940fi
5941rm -f conftest*
5942
5943fi
5944
5945if test $ac_cv_header_stdc = yes; then
5946  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h.  */
5949#include <stdlib.h>
5950
5951_ACEOF
5952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5953  $EGREP "free" >/dev/null 2>&1; then :
5954
5955else
5956  ac_cv_header_stdc=no
5957fi
5958rm -f conftest*
5959
5960fi
5961
5962if test $ac_cv_header_stdc = yes; then
5963  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5964  if test "$cross_compiling" = yes; then :
5965  :
5966else
5967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969#include <ctype.h>
5970#include <stdlib.h>
5971#if ((' ' & 0x0FF) == 0x020)
5972# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5973# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5974#else
5975# define ISLOWER(c) \
5976		   (('a' <= (c) && (c) <= 'i') \
5977		     || ('j' <= (c) && (c) <= 'r') \
5978		     || ('s' <= (c) && (c) <= 'z'))
5979# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5980#endif
5981
5982#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5983int
5984main ()
5985{
5986  int i;
5987  for (i = 0; i < 256; i++)
5988    if (XOR (islower (i), ISLOWER (i))
5989	|| toupper (i) != TOUPPER (i))
5990      return 2;
5991  return 0;
5992}
5993_ACEOF
5994if ac_fn_c_try_run "$LINENO"; then :
5995
5996else
5997  ac_cv_header_stdc=no
5998fi
5999rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6000  conftest.$ac_objext conftest.beam conftest.$ac_ext
6001fi
6002
6003fi
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6006$as_echo "$ac_cv_header_stdc" >&6; }
6007if test $ac_cv_header_stdc = yes; then
6008
6009$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6010
6011fi
6012
6013# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6015		  inttypes.h stdint.h unistd.h
6016do :
6017  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6018ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6019"
6020if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6021  cat >>confdefs.h <<_ACEOF
6022#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6023_ACEOF
6024
6025fi
6026
6027done
6028
6029
6030# Check whether --enable-sim-hostendian was given.
6031if test "${enable_sim_hostendian+set}" = set; then :
6032  enableval=$enable_sim_hostendian; case "${enableval}" in
6033  no)	 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
6034  b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
6035  l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
6036  *)	 as_fn_error $? "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
6037esac
6038if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
6039  echo "Setting hostendian flags = $sim_hostendian" 6>&1
6040fi
6041else
6042
6043if test "x$cross_compiling" = "xno"; then
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6045$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6046if ${ac_cv_c_bigendian+:} false; then :
6047  $as_echo_n "(cached) " >&6
6048else
6049  ac_cv_c_bigendian=unknown
6050    # See if we're dealing with a universal compiler.
6051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052/* end confdefs.h.  */
6053#ifndef __APPLE_CC__
6054	       not a universal capable compiler
6055	     #endif
6056	     typedef int dummy;
6057
6058_ACEOF
6059if ac_fn_c_try_compile "$LINENO"; then :
6060
6061	# Check for potential -arch flags.  It is not universal unless
6062	# there are at least two -arch flags with different values.
6063	ac_arch=
6064	ac_prev=
6065	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6066	 if test -n "$ac_prev"; then
6067	   case $ac_word in
6068	     i?86 | x86_64 | ppc | ppc64)
6069	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6070		 ac_arch=$ac_word
6071	       else
6072		 ac_cv_c_bigendian=universal
6073		 break
6074	       fi
6075	       ;;
6076	   esac
6077	   ac_prev=
6078	 elif test "x$ac_word" = "x-arch"; then
6079	   ac_prev=arch
6080	 fi
6081       done
6082fi
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084    if test $ac_cv_c_bigendian = unknown; then
6085      # See if sys/param.h defines the BYTE_ORDER macro.
6086      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h.  */
6088#include <sys/types.h>
6089	     #include <sys/param.h>
6090
6091int
6092main ()
6093{
6094#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6095		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6096		     && LITTLE_ENDIAN)
6097	      bogus endian macros
6098	     #endif
6099
6100  ;
6101  return 0;
6102}
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"; then :
6105  # It does; now see whether it defined to BIG_ENDIAN or not.
6106	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h.  */
6108#include <sys/types.h>
6109		#include <sys/param.h>
6110
6111int
6112main ()
6113{
6114#if BYTE_ORDER != BIG_ENDIAN
6115		 not big endian
6116		#endif
6117
6118  ;
6119  return 0;
6120}
6121_ACEOF
6122if ac_fn_c_try_compile "$LINENO"; then :
6123  ac_cv_c_bigendian=yes
6124else
6125  ac_cv_c_bigendian=no
6126fi
6127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130    fi
6131    if test $ac_cv_c_bigendian = unknown; then
6132      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134/* end confdefs.h.  */
6135#include <limits.h>
6136
6137int
6138main ()
6139{
6140#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6141	      bogus endian macros
6142	     #endif
6143
6144  ;
6145  return 0;
6146}
6147_ACEOF
6148if ac_fn_c_try_compile "$LINENO"; then :
6149  # It does; now see whether it defined to _BIG_ENDIAN or not.
6150	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151/* end confdefs.h.  */
6152#include <limits.h>
6153
6154int
6155main ()
6156{
6157#ifndef _BIG_ENDIAN
6158		 not big endian
6159		#endif
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"; then :
6166  ac_cv_c_bigendian=yes
6167else
6168  ac_cv_c_bigendian=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171fi
6172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173    fi
6174    if test $ac_cv_c_bigendian = unknown; then
6175      # Compile a test program.
6176      if test "$cross_compiling" = yes; then :
6177  # Try to guess by grepping values from an object file.
6178	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180short int ascii_mm[] =
6181		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6182		short int ascii_ii[] =
6183		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6184		int use_ascii (int i) {
6185		  return ascii_mm[i] + ascii_ii[i];
6186		}
6187		short int ebcdic_ii[] =
6188		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6189		short int ebcdic_mm[] =
6190		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6191		int use_ebcdic (int i) {
6192		  return ebcdic_mm[i] + ebcdic_ii[i];
6193		}
6194		extern int foo;
6195
6196int
6197main ()
6198{
6199return use_ascii (foo) == use_ebcdic (foo);
6200  ;
6201  return 0;
6202}
6203_ACEOF
6204if ac_fn_c_try_compile "$LINENO"; then :
6205  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6206	      ac_cv_c_bigendian=yes
6207	    fi
6208	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6209	      if test "$ac_cv_c_bigendian" = unknown; then
6210		ac_cv_c_bigendian=no
6211	      else
6212		# finding both strings is unlikely to happen, but who knows?
6213		ac_cv_c_bigendian=unknown
6214	      fi
6215	    fi
6216fi
6217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6218else
6219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220/* end confdefs.h.  */
6221$ac_includes_default
6222int
6223main ()
6224{
6225
6226	     /* Are we little or big endian?  From Harbison&Steele.  */
6227	     union
6228	     {
6229	       long int l;
6230	       char c[sizeof (long int)];
6231	     } u;
6232	     u.l = 1;
6233	     return u.c[sizeof (long int) - 1] == 1;
6234
6235  ;
6236  return 0;
6237}
6238_ACEOF
6239if ac_fn_c_try_run "$LINENO"; then :
6240  ac_cv_c_bigendian=no
6241else
6242  ac_cv_c_bigendian=yes
6243fi
6244rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6245  conftest.$ac_objext conftest.beam conftest.$ac_ext
6246fi
6247
6248    fi
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6251$as_echo "$ac_cv_c_bigendian" >&6; }
6252 case $ac_cv_c_bigendian in #(
6253   yes)
6254     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6255;; #(
6256   no)
6257      ;; #(
6258   universal)
6259
6260$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6261
6262     ;; #(
6263   *)
6264     as_fn_error $? "unknown endianness
6265 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6266 esac
6267
6268  if test $ac_cv_c_bigendian = yes; then
6269    sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
6270  else
6271    sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
6272  fi
6273else
6274  sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
6275fi
6276fi
6277
6278
6279# Check whether --enable-sim-icache was given.
6280if test "${enable_sim_icache+set}" = set; then :
6281  enableval=$enable_sim_icache; icache="-R"
6282 case "${enableval}" in
6283  yes)		icache="1024"; sim_icache="-I $icache";;
6284  no)		sim_icache="-R";;
6285  *) icache=1024
6286     sim_icache="-"
6287     for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do
6288       case "$x" in
6289         define)	sim_icache="${sim_icache}R";;
6290         semantic)	sim_icache="${sim_icache}C";;
6291	 insn)		sim_icache="${sim_icache}S";;
6292	 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*)	icache=$x;;
6293         *)		as_fn_error $? "\"Unknown value $x for --enable-sim-icache\"" "$LINENO" 5; sim_icache="";;
6294       esac
6295     done
6296     sim_icache="${sim_icache}I $icache";;
6297esac
6298if test x"$silent" != x"yes" && test x"$icache" != x""; then
6299  echo "Setting instruction cache size to $icache ($sim_icache)"
6300fi
6301else
6302  sim_icache="-CSRI 1024"
6303if test x"$silent" != x"yes"; then
6304  echo "Setting instruction cache size to 1024 ($sim_icache)"
6305fi
6306fi
6307
6308
6309# Check whether --enable-sim-inline was given.
6310if test "${enable_sim_inline+set}" = set; then :
6311  enableval=$enable_sim_inline; sim_inline=""
6312case "$enableval" in
6313  no)		sim_inline="-DDEFAULT_INLINE=0";;
6314  0)		sim_inline="-DDEFAULT_INLINE=0";;
6315  yes | 2)	sim_inline="-DDEFAULT_INLINE=ALL_INLINE";;
6316  1)		sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";;
6317  *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6318       new_flag=""
6319       case "$x" in
6320	 *_INLINE=*)	new_flag="-D$x";;
6321	 *=*)		new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
6322	 *_INLINE)	new_flag="-D$x=ALL_INLINE";;
6323	 *)		new_flag="-D$x""_INLINE=ALL_INLINE";;
6324       esac
6325       if test x"$sim_inline" = x""; then
6326	 sim_inline="$new_flag"
6327       else
6328	 sim_inline="$sim_inline $new_flag"
6329       fi
6330     done;;
6331esac
6332if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
6333  echo "Setting inline flags = $sim_inline" 6>&1
6334fi
6335else
6336  if test x"$GCC" != ""; then
6337  sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS"
6338  if test x"$silent" != x"yes"; then
6339    echo "Setting inline flags = $sim_inline" 6>&1
6340  fi
6341else
6342  sim_inline=""
6343fi
6344fi
6345
6346
6347# Check whether --enable-sim-jump was given.
6348if test "${enable_sim_jump+set}" = set; then :
6349  enableval=$enable_sim_jump; case "${enableval}" in
6350  yes)	sim_jump="-J";;
6351  no)	sim_jump="";;
6352  *)	as_fn_error $? "\"--enable-sim-jump does not take a value\"" "$LINENO" 5; sim_jump="";;
6353esac
6354if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then
6355  echo "Setting jump flag = $sim_jump" 6>&1
6356fi
6357else
6358  sim_jump=""
6359if test x"$silent" != x"yes"; then
6360  echo "Setting jump flag = $sim_jump" 6>&1
6361fi
6362fi
6363
6364
6365# Check whether --enable-sim-line-nr was given.
6366if test "${enable_sim_line_nr+set}" = set; then :
6367  enableval=$enable_sim_line_nr; case "${enableval}" in
6368  yes)	sim_line_nr="";;
6369  no)	sim_line_nr="-L";;
6370  *)	as_fn_error $? "\"--enable-sim-line-nr does not take a value\"" "$LINENO" 5; sim_line_nr="";;
6371esac
6372if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then
6373  echo "Setting warning flags = $sim_line_nr" 6>&1
6374fi
6375else
6376  sim_line_nr=""
6377fi
6378
6379
6380# Check whether --enable-sim-model was given.
6381if test "${enable_sim_model+set}" = set; then :
6382  enableval=$enable_sim_model; case "${enableval}" in
6383  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-model=model\"" "$LINENO" 5;;
6384  *)		sim_model="-DWITH_MODEL=${enableval}";;
6385esac
6386if test x"$silent" != x"yes" && test x"$sim_model" != x""; then
6387  echo "Setting model flags = $sim_model" 6>&1
6388fi
6389else
6390  sim_model=""
6391fi
6392
6393
6394# Check whether --enable-sim-model-issue was given.
6395if test "${enable_sim_model_issue+set}" = set; then :
6396  enableval=$enable_sim_model_issue; case "${enableval}" in
6397  yes)	sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";;
6398  no)	sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";;
6399  *)	as_fn_error $? "\"--enable-sim-model-issue does not take a value\"" "$LINENO" 5; sim_model_issue="";;
6400esac
6401if test x"$silent" != x"yes"; then
6402  echo "Setting model-issue flags = $sim_model_issue" 6>&1
6403fi
6404else
6405  sim_model_issue=""
6406fi
6407
6408
6409# Check whether --enable-sim-monitor was given.
6410if test "${enable_sim_monitor+set}" = set; then :
6411  enableval=$enable_sim_monitor; case "${enableval}" in
6412  yes)		sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";;
6413  no)		sim_monitor="-DWITH_MON=0";;
6414  instruction)	sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";;
6415  memory)	sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";;
6416  *)		as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-mon\"" "$LINENO" 5; sim_env="";;
6417esac
6418if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then
6419  echo "Setting monitor flags = $sim_monitor" 6>&1
6420fi
6421else
6422  sim_monitor=""
6423fi
6424
6425
6426# Check whether --enable-sim-opcode was given.
6427if test "${enable_sim_opcode+set}" = set; then :
6428  enableval=$enable_sim_opcode; case "${enableval}" in
6429  yes|no)	as_fn_error $? "\"No value supplied for --enable-sim-opcode=file\"" "$LINENO" 5;;
6430  *)		if test -f "${srcdir}/${enableval}"; then
6431		  sim_opcode="${enableval}"
6432		elif test -f "${srcdir}/dc-${enableval}"; then
6433		  sim_opcode="dc-${enableval}"
6434		else
6435		  as_fn_error $? "\"File $enableval is not an opcode rules file\"" "$LINENO" 5;
6436		  sim_opcode="dc-complex"
6437		fi;;
6438esac
6439if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then
6440  echo "Setting opcode flags = $sim_opcode" 6>&1
6441fi
6442else
6443  sim_opcode="dc-complex"
6444if test x"$silent" != x"yes"; then
6445  echo "Setting opcode flags = $sim_opcode"
6446fi
6447fi
6448
6449
6450# Check whether --enable-sim-packages was given.
6451if test "${enable_sim_packages+set}" = set; then :
6452  enableval=$enable_sim_packages; packages=disklabel
6453case "${enableval}" in
6454  yes)	;;
6455  no)	as_fn_error $? "\"List of packages must be specified for --enable-sim-packages\"" "$LINENO" 5; packages="";;
6456  ,*)   packages="${packages}${enableval}";;
6457  *,)   packages="${enableval}${packages}";;
6458  *)	packages="${enableval}"'';;
6459esac
6460sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6461sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6462if test x"$silent" != x"yes" && test x"$packages" != x""; then
6463  echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6464fi
6465else
6466  packages=disklabel
6467sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'`
6468sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'`
6469if test x"$silent" != x"yes"; then
6470  echo "Setting packages to $sim_pk_src, $sim_pk_obj"
6471fi
6472fi
6473
6474
6475# Check whether --enable-sim-reserved-bits was given.
6476if test "${enable_sim_reserved_bits+set}" = set; then :
6477  enableval=$enable_sim_reserved_bits; case "${enableval}" in
6478  yes)	sim_reserved="-DWITH_RESERVED_BITS=1";;
6479  no)	sim_reserved="-DWITH_RESERVED_BITS=0";;
6480  *)	as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved="";;
6481esac
6482if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then
6483  echo "Setting reserved flags = $sim_reserved" 6>&1
6484fi
6485else
6486  sim_reserved=""
6487fi
6488
6489
6490# Check whether --enable-sim-smp was given.
6491if test "${enable_sim_smp+set}" = set; then :
6492  enableval=$enable_sim_smp; case "${enableval}" in
6493  yes)	sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
6494  no)	sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
6495  *)	sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
6496esac
6497if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
6498  echo "Setting smp flags = $sim_smp" 6>&1
6499fi
6500else
6501  sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5"
6502if test x"$silent" != x"yes"; then
6503  echo "Setting smp flags = $sim_smp" 6>&1
6504fi
6505fi
6506
6507
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
6509$as_echo_n "checking for sim stdio debug behavior... " >&6; }
6510sim_stdio=0
6511# Check whether --enable-sim-stdio was given.
6512if test "${enable_sim_stdio+set}" = set; then :
6513  enableval=$enable_sim_stdio; case "${enableval}" in
6514  yes)	sim_stdio="DO_USE_STDIO";;
6515  no)	sim_stdio="DONT_USE_STDIO";;
6516  *)	as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
6517esac
6518fi
6519
6520cat >>confdefs.h <<_ACEOF
6521#define WITH_STDIO $sim_stdio
6522_ACEOF
6523
6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
6525$as_echo "$sim_stdio" >&6; }
6526
6527
6528# Check whether --enable-sim-switch was given.
6529if test "${enable_sim_switch+set}" = set; then :
6530  enableval=$enable_sim_switch; case "${enableval}" in
6531  yes)	sim_switch="-s";;
6532  no)	sim_switch="";;
6533  *)	as_fn_error $? "\"--enable-sim-switch does not take a value\"" "$LINENO" 5; sim_switch="";;
6534esac
6535if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then
6536  echo "Setting switch flags = $sim_switch" 6>&1
6537fi
6538else
6539  sim_switch="";
6540if test x"$silent" != x"yes"; then
6541  echo "Setting switch flags = $sim_switch" 6>&1
6542fi
6543fi
6544
6545
6546# Check whether --enable-sim-timebase was given.
6547if test "${enable_sim_timebase+set}" = set; then :
6548  enableval=$enable_sim_timebase; case "${enableval}" in
6549  yes)	sim_timebase="-DWITH_TIME_BASE=1";;
6550  no)	sim_timebase="-DWITH_TIME_BASE=0";;
6551  *)	as_fn_error $? "\"--enable-sim-timebase does not take a value\"" "$LINENO" 5; sim_timebase="";;
6552esac
6553if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then
6554  echo "Setting timebase flags = $sim_timebase" 6>&1
6555fi
6556else
6557  sim_timebase=""
6558fi
6559
6560
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
6562$as_echo_n "checking for sim trace settings... " >&6; }
6563sim_trace="1"
6564# Check whether --enable-sim-trace was given.
6565if test "${enable_sim_trace+set}" = set; then :
6566  enableval=$enable_sim_trace; case "${enableval}" in
6567  yes)	sim_trace="1";;
6568  no)	sim_trace="0";;
6569  *)	as_fn_error $? "--enable-sim-trace does not take a value" "$LINENO" 5;;
6570esac
6571fi
6572
6573cat >>confdefs.h <<_ACEOF
6574#define WITH_TRACE $sim_trace
6575_ACEOF
6576
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
6578$as_echo "$sim_trace" >&6; }
6579
6580
6581# Check whether --enable-sim-warnings was given.
6582if test "${enable_sim_warnings+set}" = set; then :
6583  enableval=$enable_sim_warnings; case "${enableval}" in
6584  yes)	sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";;
6585  no)	sim_warnings="-w";;
6586  *)	sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6587esac
6588if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then
6589  echo "Setting warning flags = $sim_warnings" 6>&1
6590fi
6591else
6592  sim_warnings=""
6593fi
6594
6595
6596# Check whether --enable-sim-xor-endian was given.
6597if test "${enable_sim_xor_endian+set}" = set; then :
6598  enableval=$enable_sim_xor_endian; case "${enableval}" in
6599  yes)	sim_xor_endian="-DWITH_XOR_ENDIAN=8";;
6600  no)	sim_xor_endian="-DWITH_XOR_ENDIAN=0";;
6601  *)	sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";;
6602esac
6603if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
6604  echo "Setting xor-endian flag = $sim_xor_endian" 6>&1
6605fi
6606else
6607  sim_xor_endian=""
6608fi
6609
6610
6611
6612
6613# Check whether --with-pkgversion was given.
6614if test "${with_pkgversion+set}" = set; then :
6615  withval=$with_pkgversion; case "$withval" in
6616      yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6617      no)  PKGVERSION= ;;
6618      *)   PKGVERSION="($withval) " ;;
6619     esac
6620else
6621  PKGVERSION="(GDB) "
6622
6623fi
6624
6625
6626
6627
6628
6629# Check whether --with-bugurl was given.
6630if test "${with_bugurl+set}" = set; then :
6631  withval=$with_bugurl; case "$withval" in
6632      yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6633      no)  BUGURL=
6634	   ;;
6635      *)   BUGURL="$withval"
6636	   ;;
6637     esac
6638else
6639  BUGURL="http://www.gnu.org/software/gdb/bugs/"
6640
6641fi
6642
6643  case ${BUGURL} in
6644  "")
6645    REPORT_BUGS_TO=
6646    REPORT_BUGS_TEXI=
6647    ;;
6648  *)
6649    REPORT_BUGS_TO="<$BUGURL>"
6650    REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6651    ;;
6652  esac;
6653
6654
6655
6656
6657cat >>confdefs.h <<_ACEOF
6658#define PKGVERSION "$PKGVERSION"
6659_ACEOF
6660
6661
6662cat >>confdefs.h <<_ACEOF
6663#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6664_ACEOF
6665
6666
6667# Make sure we can run config.sub.
6668$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6669  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6670
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6672$as_echo_n "checking build system type... " >&6; }
6673if ${ac_cv_build+:} false; then :
6674  $as_echo_n "(cached) " >&6
6675else
6676  ac_build_alias=$build_alias
6677test "x$ac_build_alias" = x &&
6678  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6679test "x$ac_build_alias" = x &&
6680  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6681ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6682  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6683
6684fi
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6686$as_echo "$ac_cv_build" >&6; }
6687case $ac_cv_build in
6688*-*-*) ;;
6689*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6690esac
6691build=$ac_cv_build
6692ac_save_IFS=$IFS; IFS='-'
6693set x $ac_cv_build
6694shift
6695build_cpu=$1
6696build_vendor=$2
6697shift; shift
6698# Remember, the first character of IFS is used to create $*,
6699# except with old shells:
6700build_os=$*
6701IFS=$ac_save_IFS
6702case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6703
6704
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6706$as_echo_n "checking host system type... " >&6; }
6707if ${ac_cv_host+:} false; then :
6708  $as_echo_n "(cached) " >&6
6709else
6710  if test "x$host_alias" = x; then
6711  ac_cv_host=$ac_cv_build
6712else
6713  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6714    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6715fi
6716
6717fi
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6719$as_echo "$ac_cv_host" >&6; }
6720case $ac_cv_host in
6721*-*-*) ;;
6722*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6723esac
6724host=$ac_cv_host
6725ac_save_IFS=$IFS; IFS='-'
6726set x $ac_cv_host
6727shift
6728host_cpu=$1
6729host_vendor=$2
6730shift; shift
6731# Remember, the first character of IFS is used to create $*,
6732# except with old shells:
6733host_os=$*
6734IFS=$ac_save_IFS
6735case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6736
6737
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6739$as_echo_n "checking target system type... " >&6; }
6740if ${ac_cv_target+:} false; then :
6741  $as_echo_n "(cached) " >&6
6742else
6743  if test "x$target_alias" = x; then
6744  ac_cv_target=$ac_cv_host
6745else
6746  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6747    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6748fi
6749
6750fi
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6752$as_echo "$ac_cv_target" >&6; }
6753case $ac_cv_target in
6754*-*-*) ;;
6755*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
6756esac
6757target=$ac_cv_target
6758ac_save_IFS=$IFS; IFS='-'
6759set x $ac_cv_target
6760shift
6761target_cpu=$1
6762target_vendor=$2
6763shift; shift
6764# Remember, the first character of IFS is used to create $*,
6765# except with old shells:
6766target_os=$*
6767IFS=$ac_save_IFS
6768case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
6769
6770
6771# The aliases save the names the user supplied, while $host etc.
6772# will get canonicalized.
6773test -n "$target_alias" &&
6774  test "$program_prefix$program_suffix$program_transform_name" = \
6775    NONENONEs,x,x, &&
6776  program_prefix=${target_alias}-
6777
6778test "$program_prefix" != NONE &&
6779  program_transform_name="s&^&$program_prefix&;$program_transform_name"
6780# Use a double $ so make ignores it.
6781test "$program_suffix" != NONE &&
6782  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6783# Double any \ or $.
6784# By default was `s,x,x', remove it if useless.
6785ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6786program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6787
6788
6789# BFD conditionally uses zlib, so we must link it in if libbfd does, by
6790# using the same condition.
6791
6792  # Use the system's zlib library.
6793  zlibdir="-L\$(top_builddir)/../zlib"
6794  zlibinc="-I\$(top_srcdir)/../zlib"
6795
6796# Check whether --with-system-zlib was given.
6797if test "${with_system_zlib+set}" = set; then :
6798  withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6799    zlibdir=
6800    zlibinc=
6801  fi
6802
6803fi
6804
6805
6806
6807
6808
6809# BFD uses libdl when when plugins enabled.
6810
6811  maybe_plugins=no
6812  for ac_header in dlfcn.h
6813do :
6814  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6815"
6816if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6817  cat >>confdefs.h <<_ACEOF
6818#define HAVE_DLFCN_H 1
6819_ACEOF
6820 maybe_plugins=yes
6821fi
6822
6823done
6824
6825  for ac_header in windows.h
6826do :
6827  ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
6828"
6829if test "x$ac_cv_header_windows_h" = xyes; then :
6830  cat >>confdefs.h <<_ACEOF
6831#define HAVE_WINDOWS_H 1
6832_ACEOF
6833 maybe_plugins=yes
6834fi
6835
6836done
6837
6838
6839  # Check whether --enable-plugins was given.
6840if test "${enable_plugins+set}" = set; then :
6841  enableval=$enable_plugins; case "${enableval}" in
6842      no) plugins=no ;;
6843      *) plugins=yes
6844         if test "$maybe_plugins" != "yes" ; then
6845	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
6846	 fi ;;
6847     esac
6848else
6849  plugins=$maybe_plugins
6850
6851fi
6852
6853  if test "$plugins" = "yes"; then
6854    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
6855$as_echo_n "checking for library containing dlsym... " >&6; }
6856if ${ac_cv_search_dlsym+:} false; then :
6857  $as_echo_n "(cached) " >&6
6858else
6859  ac_func_search_save_LIBS=$LIBS
6860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862
6863/* Override any GCC internal prototype to avoid an error.
6864   Use char because int might match the return type of a GCC
6865   builtin and then its argument prototype would still apply.  */
6866#ifdef __cplusplus
6867extern "C"
6868#endif
6869char dlsym ();
6870int
6871main ()
6872{
6873return dlsym ();
6874  ;
6875  return 0;
6876}
6877_ACEOF
6878for ac_lib in '' dl; do
6879  if test -z "$ac_lib"; then
6880    ac_res="none required"
6881  else
6882    ac_res=-l$ac_lib
6883    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6884  fi
6885  if ac_fn_c_try_link "$LINENO"; then :
6886  ac_cv_search_dlsym=$ac_res
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889    conftest$ac_exeext
6890  if ${ac_cv_search_dlsym+:} false; then :
6891  break
6892fi
6893done
6894if ${ac_cv_search_dlsym+:} false; then :
6895
6896else
6897  ac_cv_search_dlsym=no
6898fi
6899rm conftest.$ac_ext
6900LIBS=$ac_func_search_save_LIBS
6901fi
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
6903$as_echo "$ac_cv_search_dlsym" >&6; }
6904ac_res=$ac_cv_search_dlsym
6905if test "$ac_res" != no; then :
6906  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6907
6908fi
6909
6910  fi
6911
6912
6913. ${srcdir}/../../bfd/configure.host
6914
6915case ${host} in
6916  *mingw32*)
6917
6918$as_echo "#define USE_WIN32API 1" >>confdefs.h
6919
6920    ;;
6921esac
6922
6923ac_config_headers="$ac_config_headers config.h:config.in"
6924
6925
6926ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6927if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6928
6929cat >>confdefs.h <<_ACEOF
6930#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6931_ACEOF
6932
6933
6934$as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6935
6936fi
6937
6938
6939ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6940if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6941
6942cat >>confdefs.h <<_ACEOF
6943#define HAVE_STRUCT_STAT_ST_BLOCKS 1
6944_ACEOF
6945
6946
6947$as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6948
6949else
6950  case " $LIBOBJS " in
6951  *" fileblocks.$ac_objext "* ) ;;
6952  *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6953 ;;
6954esac
6955
6956fi
6957
6958
6959ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6960if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6961
6962cat >>confdefs.h <<_ACEOF
6963#define HAVE_STRUCT_STAT_ST_RDEV 1
6964_ACEOF
6965
6966
6967$as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6968
6969fi
6970
6971
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6973$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6974if ${ac_cv_struct_tm+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h.  */
6979#include <sys/types.h>
6980#include <time.h>
6981
6982int
6983main ()
6984{
6985struct tm tm;
6986				     int *p = &tm.tm_sec;
6987				     return !p;
6988  ;
6989  return 0;
6990}
6991_ACEOF
6992if ac_fn_c_try_compile "$LINENO"; then :
6993  ac_cv_struct_tm=time.h
6994else
6995  ac_cv_struct_tm=sys/time.h
6996fi
6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998fi
6999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7000$as_echo "$ac_cv_struct_tm" >&6; }
7001if test $ac_cv_struct_tm = sys/time.h; then
7002
7003$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7004
7005fi
7006
7007ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7008#include <$ac_cv_struct_tm>
7009
7010"
7011if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7012
7013cat >>confdefs.h <<_ACEOF
7014#define HAVE_STRUCT_TM_TM_ZONE 1
7015_ACEOF
7016
7017
7018fi
7019
7020if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7021
7022$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7023
7024else
7025  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7026"
7027if test "x$ac_cv_have_decl_tzname" = xyes; then :
7028  ac_have_decl=1
7029else
7030  ac_have_decl=0
7031fi
7032
7033cat >>confdefs.h <<_ACEOF
7034#define HAVE_DECL_TZNAME $ac_have_decl
7035_ACEOF
7036
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7038$as_echo_n "checking for tzname... " >&6; }
7039if ${ac_cv_var_tzname+:} false; then :
7040  $as_echo_n "(cached) " >&6
7041else
7042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7043/* end confdefs.h.  */
7044#include <time.h>
7045#if !HAVE_DECL_TZNAME
7046extern char *tzname[];
7047#endif
7048
7049int
7050main ()
7051{
7052return tzname[0][0];
7053  ;
7054  return 0;
7055}
7056_ACEOF
7057if ac_fn_c_try_link "$LINENO"; then :
7058  ac_cv_var_tzname=yes
7059else
7060  ac_cv_var_tzname=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext \
7063    conftest$ac_exeext conftest.$ac_ext
7064fi
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7066$as_echo "$ac_cv_var_tzname" >&6; }
7067  if test $ac_cv_var_tzname = yes; then
7068
7069$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7070
7071  fi
7072fi
7073
7074
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7076$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7077if ${ac_cv_type_uid_t+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082#include <sys/types.h>
7083
7084_ACEOF
7085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7086  $EGREP "uid_t" >/dev/null 2>&1; then :
7087  ac_cv_type_uid_t=yes
7088else
7089  ac_cv_type_uid_t=no
7090fi
7091rm -f conftest*
7092
7093fi
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7095$as_echo "$ac_cv_type_uid_t" >&6; }
7096if test $ac_cv_type_uid_t = no; then
7097
7098$as_echo "#define uid_t int" >>confdefs.h
7099
7100
7101$as_echo "#define gid_t int" >>confdefs.h
7102
7103fi
7104
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
7106$as_echo_n "checking type of array argument to getgroups... " >&6; }
7107if ${ac_cv_type_getgroups+:} false; then :
7108  $as_echo_n "(cached) " >&6
7109else
7110  if test "$cross_compiling" = yes; then :
7111  ac_cv_type_getgroups=cross
7112else
7113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115/* Thanks to Mike Rendell for this test.  */
7116$ac_includes_default
7117#define NGID 256
7118#undef MAX
7119#define MAX(x, y) ((x) > (y) ? (x) : (y))
7120
7121int
7122main ()
7123{
7124  gid_t gidset[NGID];
7125  int i, n;
7126  union { gid_t gval; long int lval; }  val;
7127
7128  val.lval = -1;
7129  for (i = 0; i < NGID; i++)
7130    gidset[i] = val.gval;
7131  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7132		 gidset);
7133  /* Exit non-zero if getgroups seems to require an array of ints.  This
7134     happens when gid_t is short int but getgroups modifies an array
7135     of ints.  */
7136  return n > 0 && gidset[n] != val.gval;
7137}
7138_ACEOF
7139if ac_fn_c_try_run "$LINENO"; then :
7140  ac_cv_type_getgroups=gid_t
7141else
7142  ac_cv_type_getgroups=int
7143fi
7144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7145  conftest.$ac_objext conftest.beam conftest.$ac_ext
7146fi
7147
7148if test $ac_cv_type_getgroups = cross; then
7149        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150/* end confdefs.h.  */
7151#include <unistd.h>
7152
7153_ACEOF
7154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7155  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
7156  ac_cv_type_getgroups=gid_t
7157else
7158  ac_cv_type_getgroups=int
7159fi
7160rm -f conftest*
7161
7162fi
7163fi
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
7165$as_echo "$ac_cv_type_getgroups" >&6; }
7166
7167cat >>confdefs.h <<_ACEOF
7168#define GETGROUPS_T $ac_cv_type_getgroups
7169_ACEOF
7170
7171
7172ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7173if test "x$ac_cv_type_mode_t" = xyes; then :
7174
7175else
7176
7177cat >>confdefs.h <<_ACEOF
7178#define mode_t int
7179_ACEOF
7180
7181fi
7182
7183ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
7184if test "x$ac_cv_type_off_t" = xyes; then :
7185
7186else
7187
7188cat >>confdefs.h <<_ACEOF
7189#define off_t long int
7190_ACEOF
7191
7192fi
7193
7194ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
7195if test "x$ac_cv_type_pid_t" = xyes; then :
7196
7197else
7198
7199cat >>confdefs.h <<_ACEOF
7200#define pid_t int
7201_ACEOF
7202
7203fi
7204
7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7206$as_echo_n "checking return type of signal handlers... " >&6; }
7207if ${ac_cv_type_signal+:} false; then :
7208  $as_echo_n "(cached) " >&6
7209else
7210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211/* end confdefs.h.  */
7212#include <sys/types.h>
7213#include <signal.h>
7214
7215int
7216main ()
7217{
7218return *(signal (0, 0)) (0) == 1;
7219  ;
7220  return 0;
7221}
7222_ACEOF
7223if ac_fn_c_try_compile "$LINENO"; then :
7224  ac_cv_type_signal=int
7225else
7226  ac_cv_type_signal=void
7227fi
7228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229fi
7230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7231$as_echo "$ac_cv_type_signal" >&6; }
7232
7233cat >>confdefs.h <<_ACEOF
7234#define RETSIGTYPE $ac_cv_type_signal
7235_ACEOF
7236
7237
7238ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7239if test "x$ac_cv_type_size_t" = xyes; then :
7240
7241else
7242
7243cat >>confdefs.h <<_ACEOF
7244#define size_t unsigned int
7245_ACEOF
7246
7247fi
7248
7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7250$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7251if ${ac_cv_type_uid_t+:} false; then :
7252  $as_echo_n "(cached) " >&6
7253else
7254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255/* end confdefs.h.  */
7256#include <sys/types.h>
7257
7258_ACEOF
7259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7260  $EGREP "uid_t" >/dev/null 2>&1; then :
7261  ac_cv_type_uid_t=yes
7262else
7263  ac_cv_type_uid_t=no
7264fi
7265rm -f conftest*
7266
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
7269$as_echo "$ac_cv_type_uid_t" >&6; }
7270if test $ac_cv_type_uid_t = no; then
7271
7272$as_echo "#define uid_t int" >>confdefs.h
7273
7274
7275$as_echo "#define gid_t int" >>confdefs.h
7276
7277fi
7278
7279
7280for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink
7281do :
7282  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7283ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7284if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7285  cat >>confdefs.h <<_ACEOF
7286#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7287_ACEOF
7288
7289fi
7290done
7291
7292
7293for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h
7294do :
7295  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7297if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7298  cat >>confdefs.h <<_ACEOF
7299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300_ACEOF
7301
7302fi
7303
7304done
7305
7306ac_header_dirent=no
7307for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7308  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
7310$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7311if eval \${$as_ac_Header+:} false; then :
7312  $as_echo_n "(cached) " >&6
7313else
7314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h.  */
7316#include <sys/types.h>
7317#include <$ac_hdr>
7318
7319int
7320main ()
7321{
7322if ((DIR *) 0)
7323return 0;
7324  ;
7325  return 0;
7326}
7327_ACEOF
7328if ac_fn_c_try_compile "$LINENO"; then :
7329  eval "$as_ac_Header=yes"
7330else
7331  eval "$as_ac_Header=no"
7332fi
7333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334fi
7335eval ac_res=\$$as_ac_Header
7336	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337$as_echo "$ac_res" >&6; }
7338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7339  cat >>confdefs.h <<_ACEOF
7340#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7341_ACEOF
7342
7343ac_header_dirent=$ac_hdr; break
7344fi
7345
7346done
7347# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7348if test $ac_header_dirent = dirent.h; then
7349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7350$as_echo_n "checking for library containing opendir... " >&6; }
7351if ${ac_cv_search_opendir+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  ac_func_search_save_LIBS=$LIBS
7355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356/* end confdefs.h.  */
7357
7358/* Override any GCC internal prototype to avoid an error.
7359   Use char because int might match the return type of a GCC
7360   builtin and then its argument prototype would still apply.  */
7361#ifdef __cplusplus
7362extern "C"
7363#endif
7364char opendir ();
7365int
7366main ()
7367{
7368return opendir ();
7369  ;
7370  return 0;
7371}
7372_ACEOF
7373for ac_lib in '' dir; do
7374  if test -z "$ac_lib"; then
7375    ac_res="none required"
7376  else
7377    ac_res=-l$ac_lib
7378    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7379  fi
7380  if ac_fn_c_try_link "$LINENO"; then :
7381  ac_cv_search_opendir=$ac_res
7382fi
7383rm -f core conftest.err conftest.$ac_objext \
7384    conftest$ac_exeext
7385  if ${ac_cv_search_opendir+:} false; then :
7386  break
7387fi
7388done
7389if ${ac_cv_search_opendir+:} false; then :
7390
7391else
7392  ac_cv_search_opendir=no
7393fi
7394rm conftest.$ac_ext
7395LIBS=$ac_func_search_save_LIBS
7396fi
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7398$as_echo "$ac_cv_search_opendir" >&6; }
7399ac_res=$ac_cv_search_opendir
7400if test "$ac_res" != no; then :
7401  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7402
7403fi
7404
7405else
7406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
7407$as_echo_n "checking for library containing opendir... " >&6; }
7408if ${ac_cv_search_opendir+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  ac_func_search_save_LIBS=$LIBS
7412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414
7415/* Override any GCC internal prototype to avoid an error.
7416   Use char because int might match the return type of a GCC
7417   builtin and then its argument prototype would still apply.  */
7418#ifdef __cplusplus
7419extern "C"
7420#endif
7421char opendir ();
7422int
7423main ()
7424{
7425return opendir ();
7426  ;
7427  return 0;
7428}
7429_ACEOF
7430for ac_lib in '' x; do
7431  if test -z "$ac_lib"; then
7432    ac_res="none required"
7433  else
7434    ac_res=-l$ac_lib
7435    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7436  fi
7437  if ac_fn_c_try_link "$LINENO"; then :
7438  ac_cv_search_opendir=$ac_res
7439fi
7440rm -f core conftest.err conftest.$ac_objext \
7441    conftest$ac_exeext
7442  if ${ac_cv_search_opendir+:} false; then :
7443  break
7444fi
7445done
7446if ${ac_cv_search_opendir+:} false; then :
7447
7448else
7449  ac_cv_search_opendir=no
7450fi
7451rm conftest.$ac_ext
7452LIBS=$ac_func_search_save_LIBS
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
7455$as_echo "$ac_cv_search_opendir" >&6; }
7456ac_res=$ac_cv_search_opendir
7457if test "$ac_res" != no; then :
7458  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7459
7460fi
7461
7462fi
7463
7464
7465sim_termio=""
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termios" >&5
7467$as_echo_n "checking for struct termios... " >&6; }
7468if ${ac_cv_termios_struct+:} false; then :
7469  $as_echo_n "(cached) " >&6
7470else
7471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472/* end confdefs.h.  */
7473#include <sys/types.h>
7474#include <sys/termios.h>
7475int
7476main ()
7477{
7478static struct termios x;
7479 x.c_iflag = 0;
7480 x.c_oflag = 0;
7481 x.c_cflag = 0;
7482 x.c_lflag = 0;
7483 x.c_cc[NCCS] = 0;
7484  ;
7485  return 0;
7486}
7487_ACEOF
7488if ac_fn_c_try_compile "$LINENO"; then :
7489  ac_cv_termios_struct=yes
7490else
7491  ac_cv_termios_struct=no
7492fi
7493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494fi
7495
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_struct" >&5
7497$as_echo "$ac_cv_termios_struct" >&6; }
7498if test $ac_cv_termios_struct = yes; then
7499  sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE"
7500fi
7501
7502if test "$ac_cv_termios_struct" = "yes"; then
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termios" >&5
7504$as_echo_n "checking for c_line field in struct termios... " >&6; }
7505  if ${ac_cv_termios_cline+:} false; then :
7506  $as_echo_n "(cached) " >&6
7507else
7508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509/* end confdefs.h.  */
7510#include <sys/types.h>
7511#include <sys/termios.h>
7512int
7513main ()
7514{
7515static struct termios x; x.c_line = 0;
7516  ;
7517  return 0;
7518}
7519_ACEOF
7520if ac_fn_c_try_compile "$LINENO"; then :
7521  ac_cv_termios_cline=yes
7522else
7523  ac_cv_termios_cline=no
7524fi
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526fi
7527
7528
7529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termios_cline" >&5
7530$as_echo "$ac_cv_termios_cline" >&6; }
7531  if test $ac_cv_termios_cline = yes; then
7532    sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE"
7533  fi
7534else
7535  ac_cv_termios_cline=no
7536fi
7537
7538if test "$ac_cv_termios_struct" != "yes"; then
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct termio" >&5
7540$as_echo_n "checking for struct termio... " >&6; }
7541  if ${ac_cv_termio_struct+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545/* end confdefs.h.  */
7546#include <sys/types.h>
7547#include <sys/termio.h>
7548int
7549main ()
7550{
7551static struct termio x;
7552 x.c_iflag = 0;
7553 x.c_oflag = 0;
7554 x.c_cflag = 0;
7555 x.c_lflag = 0;
7556 x.c_cc[NCC] = 0;
7557  ;
7558  return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_compile "$LINENO"; then :
7562  ac_cv_termio_struct=yes
7563else
7564  ac_cv_termio_struct=no
7565fi
7566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567fi
7568
7569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_struct" >&5
7570$as_echo "$ac_cv_termio_struct" >&6; }
7571  if test $ac_cv_termio_struct = yes; then
7572    sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE"
7573  fi
7574else
7575  ac_cv_termio_struct=no
7576fi
7577
7578if test "$ac_cv_termio_struct" = "yes"; then
7579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_line field in struct termio" >&5
7580$as_echo_n "checking for c_line field in struct termio... " >&6; }
7581  if ${ac_cv_termio_cline+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h.  */
7586#include <sys/types.h>
7587#include <sys/termio.h>
7588int
7589main ()
7590{
7591static struct termio x; x.c_line = 0;
7592  ;
7593  return 0;
7594}
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"; then :
7597  ac_cv_termio_cline=yes
7598else
7599  ac_cv_termio_cline=no
7600fi
7601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602fi
7603
7604
7605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_termio_cline" >&5
7606$as_echo "$ac_cv_termio_cline" >&6; }
7607  if test $ac_cv_termio_cline = yes; then
7608    sim_termio="$sim_termio -DHAVE_TERMIO_CLINE"
7609  fi
7610else
7611  ac_cv_termio_cline=no
7612fi
7613
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct statfs" >&5
7615$as_echo_n "checking for struct statfs... " >&6; }
7616if ${ac_cv_struct_statfs+:} false; then :
7617  $as_echo_n "(cached) " >&6
7618else
7619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620/* end confdefs.h.  */
7621#include <sys/types.h>
7622#ifdef HAVE_SYS_PARAM_H
7623#include <sys/param.h>
7624#endif
7625#ifdef HAVE_SYS_MOUNT_H
7626#include <sys/mount.h>
7627#endif
7628#ifdef HAVE_SYS_VFS_H
7629#include <sys/vfs.h>
7630#endif
7631#ifdef HAVE_SYS_STATFS_H
7632#include <sys/statfs.h>
7633#endif
7634int
7635main ()
7636{
7637static struct statfs s;
7638  ;
7639  return 0;
7640}
7641_ACEOF
7642if ac_fn_c_try_compile "$LINENO"; then :
7643  ac_cv_struct_statfs=yes
7644else
7645  ac_cv_struct_statfs=no
7646fi
7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648fi
7649
7650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_statfs" >&5
7651$as_echo "$ac_cv_struct_statfs" >&6; }
7652if test $ac_cv_struct_statfs = yes; then
7653
7654$as_echo "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
7655
7656fi
7657
7658ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
7659if test "x$ac_cv_type_long_long" = xyes; then :
7660
7661cat >>confdefs.h <<_ACEOF
7662#define HAVE_LONG_LONG 1
7663_ACEOF
7664
7665
7666fi
7667
7668
7669sim_devzero=""
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/zero" >&5
7671$as_echo_n "checking for /dev/zero... " >&6; }
7672if ${ac_cv_devzero+:} false; then :
7673  $as_echo_n "(cached) " >&6
7674else
7675  if test "$cross_compiling" = yes; then :
7676  ac_cv_devzero=no
7677else
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680#include <fcntl.h>
7681main () {
7682  char buf[2048];
7683  int i;
7684  int fd = open ("/dev/zero", O_RDONLY);
7685  if (fd < 0)
7686    return 1;
7687  for (i = 0; i < sizeof (buf); i++)
7688    buf[i] = 1;
7689  if (read (fd, buf, sizeof (buf)) != sizeof (buf))
7690    return 1;
7691  for (i = 0; i < sizeof (buf); i++)
7692    if (buf[i])
7693      return 1;
7694  return 0;
7695}
7696_ACEOF
7697if ac_fn_c_try_run "$LINENO"; then :
7698  ac_cv_devzero=yes
7699else
7700  ac_cv_devzero=no
7701fi
7702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7703  conftest.$ac_objext conftest.beam conftest.$ac_ext
7704fi
7705
7706fi
7707
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_devzero" >&5
7709$as_echo "$ac_cv_devzero" >&6; }
7710if test $ac_cv_devzero = yes; then
7711  sim_devzero="-DHAVE_DEVZERO"
7712else
7713  sim_devzero=""
7714fi
7715
7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory" >&5
7717$as_echo_n "checking for common simulator directory... " >&6; }
7718if test -f "${srcdir}/../common/callback.c"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7720$as_echo "yes" >&6; }
7721  sim_callback="callback.o targ-map.o"
7722  sim_targ_vals="targ-vals.h targ-map.c targ-vals.def"
7723else
7724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725$as_echo "no" >&6; }
7726  sim_callback=""
7727  sim_targ_vals=""
7728fi
7729
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for common simulator directory fpu implementation" >&5
7731$as_echo_n "checking for common simulator directory fpu implementation... " >&6; }
7732if test -f "${srcdir}/../common/sim-fpu.c"; then
7733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7734$as_echo "yes" >&6; }
7735  sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common"
7736  sim_fpu="sim-fpu.o"
7737else
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739$as_echo "no" >&6; }
7740  sim_fpu_cflags=
7741  sim_fpu=
7742fi
7743
7744# Since we run commands on the build system, we have to create a
7745# separate config header for the build system if build != host.
7746if test x$host = x$build; then
7747  ac_config_commands="$ac_config_commands build-config.h"
7748
7749else
7750  tempdir=build.$$
7751  rm -rf $tempdir
7752  mkdir $tempdir
7753  cd $tempdir
7754  case ${srcdir} in
7755  /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
7756  *) realsrcdir=../${srcdir};;
7757  esac
7758  saved_CFLAGS="${CFLAGS}"
7759  CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
7760  LDFLAGS="${LDFLAGS_FOR_BUILD}" \
7761  ${realsrcdir}/configure \
7762    --enable-languages=${enable_languages-all} \
7763    --target=$target_alias --host=$build_alias --build=$build_alias
7764  CFLAGS="${saved_CFLAGS}"
7765  mv config.h ../build-config.h
7766  cd ..
7767  rm -rf $tempdir
7768fi
7769
7770
7771
7772
7773
7774
7775
7776AR=${AR-ar}
7777
7778if test -n "$ac_tool_prefix"; then
7779  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7780set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if ${ac_cv_prog_RANLIB+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  if test -n "$RANLIB"; then
7787  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  test -z "$as_dir" && as_dir=.
7794    for ac_exec_ext in '' $ac_executable_extensions; do
7795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798    break 2
7799  fi
7800done
7801  done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806RANLIB=$ac_cv_prog_RANLIB
7807if test -n "$RANLIB"; then
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7809$as_echo "$RANLIB" >&6; }
7810else
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815
7816fi
7817if test -z "$ac_cv_prog_RANLIB"; then
7818  ac_ct_RANLIB=$RANLIB
7819  # Extract the first word of "ranlib", so it can be a program name with args.
7820set dummy ranlib; ac_word=$2
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
7823if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  if test -n "$ac_ct_RANLIB"; then
7827  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7828else
7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832  IFS=$as_save_IFS
7833  test -z "$as_dir" && as_dir=.
7834    for ac_exec_ext in '' $ac_executable_extensions; do
7835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7836    ac_cv_prog_ac_ct_RANLIB="ranlib"
7837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838    break 2
7839  fi
7840done
7841  done
7842IFS=$as_save_IFS
7843
7844fi
7845fi
7846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7847if test -n "$ac_ct_RANLIB"; then
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7849$as_echo "$ac_ct_RANLIB" >&6; }
7850else
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855  if test "x$ac_ct_RANLIB" = x; then
7856    RANLIB=":"
7857  else
7858    case $cross_compiling:$ac_tool_warned in
7859yes:)
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862ac_tool_warned=yes ;;
7863esac
7864    RANLIB=$ac_ct_RANLIB
7865  fi
7866else
7867  RANLIB="$ac_cv_prog_RANLIB"
7868fi
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907ac_config_files="$ac_config_files Makefile"
7908
7909ac_config_commands="$ac_config_commands default"
7910
7911cat >confcache <<\_ACEOF
7912# This file is a shell script that caches the results of configure
7913# tests run on this system so they can be shared between configure
7914# scripts and configure runs, see configure's option --config-cache.
7915# It is not useful on other systems.  If it contains results you don't
7916# want to keep, you may remove or edit it.
7917#
7918# config.status only pays attention to the cache file if you give it
7919# the --recheck option to rerun configure.
7920#
7921# `ac_cv_env_foo' variables (set or unset) will be overridden when
7922# loading this file, other *unset* `ac_cv_foo' will be assigned the
7923# following values.
7924
7925_ACEOF
7926
7927# The following way of writing the cache mishandles newlines in values,
7928# but we know of no workaround that is simple, portable, and efficient.
7929# So, we kill variables containing newlines.
7930# Ultrix sh set writes to stderr and can't be redirected directly,
7931# and sets the high bit in the cache file unless we assign to the vars.
7932(
7933  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7934    eval ac_val=\$$ac_var
7935    case $ac_val in #(
7936    *${as_nl}*)
7937      case $ac_var in #(
7938      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7939$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7940      esac
7941      case $ac_var in #(
7942      _ | IFS | as_nl) ;; #(
7943      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7944      *) { eval $ac_var=; unset $ac_var;} ;;
7945      esac ;;
7946    esac
7947  done
7948
7949  (set) 2>&1 |
7950    case $as_nl`(ac_space=' '; set) 2>&1` in #(
7951    *${as_nl}ac_space=\ *)
7952      # `set' does not quote correctly, so add quotes: double-quote
7953      # substitution turns \\\\ into \\, and sed turns \\ into \.
7954      sed -n \
7955	"s/'/'\\\\''/g;
7956	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7957      ;; #(
7958    *)
7959      # `set' quotes correctly as required by POSIX, so do not add quotes.
7960      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7961      ;;
7962    esac |
7963    sort
7964) |
7965  sed '
7966     /^ac_cv_env_/b end
7967     t clear
7968     :clear
7969     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7970     t end
7971     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7972     :end' >>confcache
7973if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7974  if test -w "$cache_file"; then
7975    if test "x$cache_file" != "x/dev/null"; then
7976      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7977$as_echo "$as_me: updating cache $cache_file" >&6;}
7978      if test ! -f "$cache_file" || test -h "$cache_file"; then
7979	cat confcache >"$cache_file"
7980      else
7981        case $cache_file in #(
7982        */* | ?:*)
7983	  mv -f confcache "$cache_file"$$ &&
7984	  mv -f "$cache_file"$$ "$cache_file" ;; #(
7985        *)
7986	  mv -f confcache "$cache_file" ;;
7987	esac
7988      fi
7989    fi
7990  else
7991    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7992$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7993  fi
7994fi
7995rm -f confcache
7996
7997test "x$prefix" = xNONE && prefix=$ac_default_prefix
7998# Let make expand exec_prefix.
7999test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8000
8001DEFS=-DHAVE_CONFIG_H
8002
8003ac_libobjs=
8004ac_ltlibobjs=
8005U=
8006for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8007  # 1. Remove the extension, and $U if already installed.
8008  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8009  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8010  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8011  #    will be set to the directory where LIBOBJS objects are built.
8012  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8013  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8014done
8015LIBOBJS=$ac_libobjs
8016
8017LTLIBOBJS=$ac_ltlibobjs
8018
8019
8020
8021
8022: "${CONFIG_STATUS=./config.status}"
8023ac_write_fail=0
8024ac_clean_files_save=$ac_clean_files
8025ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8027$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8028as_write_fail=0
8029cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8030#! $SHELL
8031# Generated by $as_me.
8032# Run this file to recreate the current configuration.
8033# Compiler output produced by configure, useful for debugging
8034# configure, is in config.log if it exists.
8035
8036debug=false
8037ac_cs_recheck=false
8038ac_cs_silent=false
8039
8040SHELL=\${CONFIG_SHELL-$SHELL}
8041export SHELL
8042_ASEOF
8043cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8044## -------------------- ##
8045## M4sh Initialization. ##
8046## -------------------- ##
8047
8048# Be more Bourne compatible
8049DUALCASE=1; export DUALCASE # for MKS sh
8050if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8051  emulate sh
8052  NULLCMD=:
8053  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8054  # is contrary to our usage.  Disable this feature.
8055  alias -g '${1+"$@"}'='"$@"'
8056  setopt NO_GLOB_SUBST
8057else
8058  case `(set -o) 2>/dev/null` in #(
8059  *posix*) :
8060    set -o posix ;; #(
8061  *) :
8062     ;;
8063esac
8064fi
8065
8066
8067as_nl='
8068'
8069export as_nl
8070# Printing a long string crashes Solaris 7 /usr/bin/printf.
8071as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8072as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8073as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8074# Prefer a ksh shell builtin over an external printf program on Solaris,
8075# but without wasting forks for bash or zsh.
8076if test -z "$BASH_VERSION$ZSH_VERSION" \
8077    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8078  as_echo='print -r --'
8079  as_echo_n='print -rn --'
8080elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8081  as_echo='printf %s\n'
8082  as_echo_n='printf %s'
8083else
8084  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8085    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8086    as_echo_n='/usr/ucb/echo -n'
8087  else
8088    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8089    as_echo_n_body='eval
8090      arg=$1;
8091      case $arg in #(
8092      *"$as_nl"*)
8093	expr "X$arg" : "X\\(.*\\)$as_nl";
8094	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8095      esac;
8096      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8097    '
8098    export as_echo_n_body
8099    as_echo_n='sh -c $as_echo_n_body as_echo'
8100  fi
8101  export as_echo_body
8102  as_echo='sh -c $as_echo_body as_echo'
8103fi
8104
8105# The user is always right.
8106if test "${PATH_SEPARATOR+set}" != set; then
8107  PATH_SEPARATOR=:
8108  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8109    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8110      PATH_SEPARATOR=';'
8111  }
8112fi
8113
8114
8115# IFS
8116# We need space, tab and new line, in precisely that order.  Quoting is
8117# there to prevent editors from complaining about space-tab.
8118# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8119# splitting by setting IFS to empty value.)
8120IFS=" ""	$as_nl"
8121
8122# Find who we are.  Look in the path if we contain no directory separator.
8123as_myself=
8124case $0 in #((
8125  *[\\/]* ) as_myself=$0 ;;
8126  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129  IFS=$as_save_IFS
8130  test -z "$as_dir" && as_dir=.
8131    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8132  done
8133IFS=$as_save_IFS
8134
8135     ;;
8136esac
8137# We did not find ourselves, most probably we were run as `sh COMMAND'
8138# in which case we are not to be found in the path.
8139if test "x$as_myself" = x; then
8140  as_myself=$0
8141fi
8142if test ! -f "$as_myself"; then
8143  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8144  exit 1
8145fi
8146
8147# Unset variables that we do not need and which cause bugs (e.g. in
8148# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
8149# suppresses any "Segmentation fault" message there.  '((' could
8150# trigger a bug in pdksh 5.2.14.
8151for as_var in BASH_ENV ENV MAIL MAILPATH
8152do eval test x\${$as_var+set} = xset \
8153  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8154done
8155PS1='$ '
8156PS2='> '
8157PS4='+ '
8158
8159# NLS nuisances.
8160LC_ALL=C
8161export LC_ALL
8162LANGUAGE=C
8163export LANGUAGE
8164
8165# CDPATH.
8166(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8167
8168
8169# as_fn_error STATUS ERROR [LINENO LOG_FD]
8170# ----------------------------------------
8171# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8172# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8173# script with STATUS, using 1 if that was 0.
8174as_fn_error ()
8175{
8176  as_status=$1; test $as_status -eq 0 && as_status=1
8177  if test "$4"; then
8178    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8179    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8180  fi
8181  $as_echo "$as_me: error: $2" >&2
8182  as_fn_exit $as_status
8183} # as_fn_error
8184
8185
8186# as_fn_set_status STATUS
8187# -----------------------
8188# Set $? to STATUS, without forking.
8189as_fn_set_status ()
8190{
8191  return $1
8192} # as_fn_set_status
8193
8194# as_fn_exit STATUS
8195# -----------------
8196# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8197as_fn_exit ()
8198{
8199  set +e
8200  as_fn_set_status $1
8201  exit $1
8202} # as_fn_exit
8203
8204# as_fn_unset VAR
8205# ---------------
8206# Portably unset VAR.
8207as_fn_unset ()
8208{
8209  { eval $1=; unset $1;}
8210}
8211as_unset=as_fn_unset
8212# as_fn_append VAR VALUE
8213# ----------------------
8214# Append the text in VALUE to the end of the definition contained in VAR. Take
8215# advantage of any shell optimizations that allow amortized linear growth over
8216# repeated appends, instead of the typical quadratic growth present in naive
8217# implementations.
8218if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8219  eval 'as_fn_append ()
8220  {
8221    eval $1+=\$2
8222  }'
8223else
8224  as_fn_append ()
8225  {
8226    eval $1=\$$1\$2
8227  }
8228fi # as_fn_append
8229
8230# as_fn_arith ARG...
8231# ------------------
8232# Perform arithmetic evaluation on the ARGs, and store the result in the
8233# global $as_val. Take advantage of shells that can avoid forks. The arguments
8234# must be portable across $(()) and expr.
8235if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8236  eval 'as_fn_arith ()
8237  {
8238    as_val=$(( $* ))
8239  }'
8240else
8241  as_fn_arith ()
8242  {
8243    as_val=`expr "$@" || test $? -eq 1`
8244  }
8245fi # as_fn_arith
8246
8247
8248if expr a : '\(a\)' >/dev/null 2>&1 &&
8249   test "X`expr 00001 : '.*\(...\)'`" = X001; then
8250  as_expr=expr
8251else
8252  as_expr=false
8253fi
8254
8255if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8256  as_basename=basename
8257else
8258  as_basename=false
8259fi
8260
8261if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8262  as_dirname=dirname
8263else
8264  as_dirname=false
8265fi
8266
8267as_me=`$as_basename -- "$0" ||
8268$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8269	 X"$0" : 'X\(//\)$' \| \
8270	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8271$as_echo X/"$0" |
8272    sed '/^.*\/\([^/][^/]*\)\/*$/{
8273	    s//\1/
8274	    q
8275	  }
8276	  /^X\/\(\/\/\)$/{
8277	    s//\1/
8278	    q
8279	  }
8280	  /^X\/\(\/\).*/{
8281	    s//\1/
8282	    q
8283	  }
8284	  s/.*/./; q'`
8285
8286# Avoid depending upon Character Ranges.
8287as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8288as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8289as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8290as_cr_digits='0123456789'
8291as_cr_alnum=$as_cr_Letters$as_cr_digits
8292
8293ECHO_C= ECHO_N= ECHO_T=
8294case `echo -n x` in #(((((
8295-n*)
8296  case `echo 'xy\c'` in
8297  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
8298  xy)  ECHO_C='\c';;
8299  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
8300       ECHO_T='	';;
8301  esac;;
8302*)
8303  ECHO_N='-n';;
8304esac
8305
8306rm -f conf$$ conf$$.exe conf$$.file
8307if test -d conf$$.dir; then
8308  rm -f conf$$.dir/conf$$.file
8309else
8310  rm -f conf$$.dir
8311  mkdir conf$$.dir 2>/dev/null
8312fi
8313if (echo >conf$$.file) 2>/dev/null; then
8314  if ln -s conf$$.file conf$$ 2>/dev/null; then
8315    as_ln_s='ln -s'
8316    # ... but there are two gotchas:
8317    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8318    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8319    # In both cases, we have to default to `cp -pR'.
8320    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8321      as_ln_s='cp -pR'
8322  elif ln conf$$.file conf$$ 2>/dev/null; then
8323    as_ln_s=ln
8324  else
8325    as_ln_s='cp -pR'
8326  fi
8327else
8328  as_ln_s='cp -pR'
8329fi
8330rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8331rmdir conf$$.dir 2>/dev/null
8332
8333
8334# as_fn_mkdir_p
8335# -------------
8336# Create "$as_dir" as a directory, including parents if necessary.
8337as_fn_mkdir_p ()
8338{
8339
8340  case $as_dir in #(
8341  -*) as_dir=./$as_dir;;
8342  esac
8343  test -d "$as_dir" || eval $as_mkdir_p || {
8344    as_dirs=
8345    while :; do
8346      case $as_dir in #(
8347      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8348      *) as_qdir=$as_dir;;
8349      esac
8350      as_dirs="'$as_qdir' $as_dirs"
8351      as_dir=`$as_dirname -- "$as_dir" ||
8352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8353	 X"$as_dir" : 'X\(//\)[^/]' \| \
8354	 X"$as_dir" : 'X\(//\)$' \| \
8355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8356$as_echo X"$as_dir" |
8357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8358	    s//\1/
8359	    q
8360	  }
8361	  /^X\(\/\/\)[^/].*/{
8362	    s//\1/
8363	    q
8364	  }
8365	  /^X\(\/\/\)$/{
8366	    s//\1/
8367	    q
8368	  }
8369	  /^X\(\/\).*/{
8370	    s//\1/
8371	    q
8372	  }
8373	  s/.*/./; q'`
8374      test -d "$as_dir" && break
8375    done
8376    test -z "$as_dirs" || eval "mkdir $as_dirs"
8377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8378
8379
8380} # as_fn_mkdir_p
8381if mkdir -p . 2>/dev/null; then
8382  as_mkdir_p='mkdir -p "$as_dir"'
8383else
8384  test -d ./-p && rmdir ./-p
8385  as_mkdir_p=false
8386fi
8387
8388
8389# as_fn_executable_p FILE
8390# -----------------------
8391# Test if FILE is an executable regular file.
8392as_fn_executable_p ()
8393{
8394  test -f "$1" && test -x "$1"
8395} # as_fn_executable_p
8396as_test_x='test -x'
8397as_executable_p=as_fn_executable_p
8398
8399# Sed expression to map a string onto a valid CPP name.
8400as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8401
8402# Sed expression to map a string onto a valid variable name.
8403as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8404
8405
8406exec 6>&1
8407## ----------------------------------- ##
8408## Main body of $CONFIG_STATUS script. ##
8409## ----------------------------------- ##
8410_ASEOF
8411test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8412
8413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414# Save the log message, to keep $0 and so on meaningful, and to
8415# report actual input values of CONFIG_FILES etc. instead of their
8416# values after options handling.
8417ac_log="
8418This file was extended by $as_me, which was
8419generated by GNU Autoconf 2.69.  Invocation command line was
8420
8421  CONFIG_FILES    = $CONFIG_FILES
8422  CONFIG_HEADERS  = $CONFIG_HEADERS
8423  CONFIG_LINKS    = $CONFIG_LINKS
8424  CONFIG_COMMANDS = $CONFIG_COMMANDS
8425  $ $0 $@
8426
8427on `(hostname || uname -n) 2>/dev/null | sed 1q`
8428"
8429
8430_ACEOF
8431
8432case $ac_config_files in *"
8433"*) set x $ac_config_files; shift; ac_config_files=$*;;
8434esac
8435
8436case $ac_config_headers in *"
8437"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8438esac
8439
8440
8441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8442# Files that config.status was made for.
8443config_files="$ac_config_files"
8444config_headers="$ac_config_headers"
8445config_commands="$ac_config_commands"
8446
8447_ACEOF
8448
8449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8450ac_cs_usage="\
8451\`$as_me' instantiates files and other configuration actions
8452from templates according to the current configuration.  Unless the files
8453and actions are specified as TAGs, all are instantiated by default.
8454
8455Usage: $0 [OPTION]... [TAG]...
8456
8457  -h, --help       print this help, then exit
8458  -V, --version    print version number and configuration settings, then exit
8459      --config     print configuration, then exit
8460  -q, --quiet, --silent
8461                   do not print progress messages
8462  -d, --debug      don't remove temporary files
8463      --recheck    update $as_me by reconfiguring in the same conditions
8464      --file=FILE[:TEMPLATE]
8465                   instantiate the configuration file FILE
8466      --header=FILE[:TEMPLATE]
8467                   instantiate the configuration header FILE
8468
8469Configuration files:
8470$config_files
8471
8472Configuration headers:
8473$config_headers
8474
8475Configuration commands:
8476$config_commands
8477
8478Report bugs to the package provider."
8479
8480_ACEOF
8481cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8482ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8483ac_cs_version="\\
8484config.status
8485configured by $0, generated by GNU Autoconf 2.69,
8486  with options \\"\$ac_cs_config\\"
8487
8488Copyright (C) 2012 Free Software Foundation, Inc.
8489This config.status script is free software; the Free Software Foundation
8490gives unlimited permission to copy, distribute and modify it."
8491
8492ac_pwd='$ac_pwd'
8493srcdir='$srcdir'
8494INSTALL='$INSTALL'
8495test -n "\$AWK" || AWK=awk
8496_ACEOF
8497
8498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8499# The default lists apply if the user does not specify any file.
8500ac_need_defaults=:
8501while test $# != 0
8502do
8503  case $1 in
8504  --*=?*)
8505    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8506    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8507    ac_shift=:
8508    ;;
8509  --*=)
8510    ac_option=`expr "X$1" : 'X\([^=]*\)='`
8511    ac_optarg=
8512    ac_shift=:
8513    ;;
8514  *)
8515    ac_option=$1
8516    ac_optarg=$2
8517    ac_shift=shift
8518    ;;
8519  esac
8520
8521  case $ac_option in
8522  # Handling of the options.
8523  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8524    ac_cs_recheck=: ;;
8525  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8526    $as_echo "$ac_cs_version"; exit ;;
8527  --config | --confi | --conf | --con | --co | --c )
8528    $as_echo "$ac_cs_config"; exit ;;
8529  --debug | --debu | --deb | --de | --d | -d )
8530    debug=: ;;
8531  --file | --fil | --fi | --f )
8532    $ac_shift
8533    case $ac_optarg in
8534    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8535    '') as_fn_error $? "missing file argument" ;;
8536    esac
8537    as_fn_append CONFIG_FILES " '$ac_optarg'"
8538    ac_need_defaults=false;;
8539  --header | --heade | --head | --hea )
8540    $ac_shift
8541    case $ac_optarg in
8542    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8543    esac
8544    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8545    ac_need_defaults=false;;
8546  --he | --h)
8547    # Conflict between --help and --header
8548    as_fn_error $? "ambiguous option: \`$1'
8549Try \`$0 --help' for more information.";;
8550  --help | --hel | -h )
8551    $as_echo "$ac_cs_usage"; exit ;;
8552  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8553  | -silent | --silent | --silen | --sile | --sil | --si | --s)
8554    ac_cs_silent=: ;;
8555
8556  # This is an error.
8557  -*) as_fn_error $? "unrecognized option: \`$1'
8558Try \`$0 --help' for more information." ;;
8559
8560  *) as_fn_append ac_config_targets " $1"
8561     ac_need_defaults=false ;;
8562
8563  esac
8564  shift
8565done
8566
8567ac_configure_extra_args=
8568
8569if $ac_cs_silent; then
8570  exec 6>/dev/null
8571  ac_configure_extra_args="$ac_configure_extra_args --silent"
8572fi
8573
8574_ACEOF
8575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8576if \$ac_cs_recheck; then
8577  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8578  shift
8579  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8580  CONFIG_SHELL='$SHELL'
8581  export CONFIG_SHELL
8582  exec "\$@"
8583fi
8584
8585_ACEOF
8586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8587exec 5>>config.log
8588{
8589  echo
8590  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8591## Running $as_me. ##
8592_ASBOX
8593  $as_echo "$ac_log"
8594} >&5
8595
8596_ACEOF
8597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8598_ACEOF
8599
8600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8601
8602# Handling of arguments.
8603for ac_config_target in $ac_config_targets
8604do
8605  case $ac_config_target in
8606    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8607    "build-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-config.h" ;;
8608    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8609    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8610
8611  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8612  esac
8613done
8614
8615
8616# If the user did not use the arguments to specify the items to instantiate,
8617# then the envvar interface is used.  Set only those that are not.
8618# We use the long form for the default assignment because of an extremely
8619# bizarre bug on SunOS 4.1.3.
8620if $ac_need_defaults; then
8621  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8622  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8623  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8624fi
8625
8626# Have a temporary directory for convenience.  Make it in the build tree
8627# simply because there is no reason against having it here, and in addition,
8628# creating and moving files from /tmp can sometimes cause problems.
8629# Hook for its removal unless debugging.
8630# Note that there is a small window in which the directory will not be cleaned:
8631# after its creation but before its name has been assigned to `$tmp'.
8632$debug ||
8633{
8634  tmp= ac_tmp=
8635  trap 'exit_status=$?
8636  : "${ac_tmp:=$tmp}"
8637  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8638' 0
8639  trap 'as_fn_exit 1' 1 2 13 15
8640}
8641# Create a (secure) tmp directory for tmp files.
8642
8643{
8644  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8645  test -d "$tmp"
8646}  ||
8647{
8648  tmp=./conf$$-$RANDOM
8649  (umask 077 && mkdir "$tmp")
8650} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8651ac_tmp=$tmp
8652
8653# Set up the scripts for CONFIG_FILES section.
8654# No need to generate them if there are no CONFIG_FILES.
8655# This happens for instance with `./config.status config.h'.
8656if test -n "$CONFIG_FILES"; then
8657
8658
8659ac_cr=`echo X | tr X '\015'`
8660# On cygwin, bash can eat \r inside `` if the user requested igncr.
8661# But we know of no other shell where ac_cr would be empty at this
8662# point, so we can use a bashism as a fallback.
8663if test "x$ac_cr" = x; then
8664  eval ac_cr=\$\'\\r\'
8665fi
8666ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8667if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8668  ac_cs_awk_cr='\\r'
8669else
8670  ac_cs_awk_cr=$ac_cr
8671fi
8672
8673echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8674_ACEOF
8675
8676
8677{
8678  echo "cat >conf$$subs.awk <<_ACEOF" &&
8679  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8680  echo "_ACEOF"
8681} >conf$$subs.sh ||
8682  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8683ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8684ac_delim='%!_!# '
8685for ac_last_try in false false false false false :; do
8686  . ./conf$$subs.sh ||
8687    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8688
8689  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8690  if test $ac_delim_n = $ac_delim_num; then
8691    break
8692  elif $ac_last_try; then
8693    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8694  else
8695    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8696  fi
8697done
8698rm -f conf$$subs.sh
8699
8700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8701cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8702_ACEOF
8703sed -n '
8704h
8705s/^/S["/; s/!.*/"]=/
8706p
8707g
8708s/^[^!]*!//
8709:repl
8710t repl
8711s/'"$ac_delim"'$//
8712t delim
8713:nl
8714h
8715s/\(.\{148\}\)..*/\1/
8716t more1
8717s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8718p
8719n
8720b repl
8721:more1
8722s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8723p
8724g
8725s/.\{148\}//
8726t nl
8727:delim
8728h
8729s/\(.\{148\}\)..*/\1/
8730t more2
8731s/["\\]/\\&/g; s/^/"/; s/$/"/
8732p
8733b
8734:more2
8735s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8736p
8737g
8738s/.\{148\}//
8739t delim
8740' <conf$$subs.awk | sed '
8741/^[^""]/{
8742  N
8743  s/\n//
8744}
8745' >>$CONFIG_STATUS || ac_write_fail=1
8746rm -f conf$$subs.awk
8747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8748_ACAWK
8749cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8750  for (key in S) S_is_set[key] = 1
8751  FS = ""
8752
8753}
8754{
8755  line = $ 0
8756  nfields = split(line, field, "@")
8757  substed = 0
8758  len = length(field[1])
8759  for (i = 2; i < nfields; i++) {
8760    key = field[i]
8761    keylen = length(key)
8762    if (S_is_set[key]) {
8763      value = S[key]
8764      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8765      len += length(value) + length(field[++i])
8766      substed = 1
8767    } else
8768      len += 1 + keylen
8769  }
8770
8771  print line
8772}
8773
8774_ACAWK
8775_ACEOF
8776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8777if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8778  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8779else
8780  cat
8781fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8782  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8783_ACEOF
8784
8785# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8786# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8787# trailing colons and then remove the whole line if VPATH becomes empty
8788# (actually we leave an empty line to preserve line numbers).
8789if test "x$srcdir" = x.; then
8790  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
8791h
8792s///
8793s/^/:/
8794s/[	 ]*$/:/
8795s/:\$(srcdir):/:/g
8796s/:\${srcdir}:/:/g
8797s/:@srcdir@:/:/g
8798s/^:*//
8799s/:*$//
8800x
8801s/\(=[	 ]*\).*/\1/
8802G
8803s/\n//
8804s/^[^=]*=[	 ]*$//
8805}'
8806fi
8807
8808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8809fi # test -n "$CONFIG_FILES"
8810
8811# Set up the scripts for CONFIG_HEADERS section.
8812# No need to generate them if there are no CONFIG_HEADERS.
8813# This happens for instance with `./config.status Makefile'.
8814if test -n "$CONFIG_HEADERS"; then
8815cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8816BEGIN {
8817_ACEOF
8818
8819# Transform confdefs.h into an awk script `defines.awk', embedded as
8820# here-document in config.status, that substitutes the proper values into
8821# config.h.in to produce config.h.
8822
8823# Create a delimiter string that does not exist in confdefs.h, to ease
8824# handling of long lines.
8825ac_delim='%!_!# '
8826for ac_last_try in false false :; do
8827  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8828  if test -z "$ac_tt"; then
8829    break
8830  elif $ac_last_try; then
8831    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8832  else
8833    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8834  fi
8835done
8836
8837# For the awk script, D is an array of macro values keyed by name,
8838# likewise P contains macro parameters if any.  Preserve backslash
8839# newline sequences.
8840
8841ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8842sed -n '
8843s/.\{148\}/&'"$ac_delim"'/g
8844t rset
8845:rset
8846s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
8847t def
8848d
8849:def
8850s/\\$//
8851t bsnl
8852s/["\\]/\\&/g
8853s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8854D["\1"]=" \3"/p
8855s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
8856d
8857:bsnl
8858s/["\\]/\\&/g
8859s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
8860D["\1"]=" \3\\\\\\n"\\/p
8861t cont
8862s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8863t cont
8864d
8865:cont
8866n
8867s/.\{148\}/&'"$ac_delim"'/g
8868t clear
8869:clear
8870s/\\$//
8871t bsnlc
8872s/["\\]/\\&/g; s/^/"/; s/$/"/p
8873d
8874:bsnlc
8875s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8876b cont
8877' <confdefs.h | sed '
8878s/'"$ac_delim"'/"\\\
8879"/g' >>$CONFIG_STATUS || ac_write_fail=1
8880
8881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8882  for (key in D) D_is_set[key] = 1
8883  FS = ""
8884}
8885/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8886  line = \$ 0
8887  split(line, arg, " ")
8888  if (arg[1] == "#") {
8889    defundef = arg[2]
8890    mac1 = arg[3]
8891  } else {
8892    defundef = substr(arg[1], 2)
8893    mac1 = arg[2]
8894  }
8895  split(mac1, mac2, "(") #)
8896  macro = mac2[1]
8897  prefix = substr(line, 1, index(line, defundef) - 1)
8898  if (D_is_set[macro]) {
8899    # Preserve the white space surrounding the "#".
8900    print prefix "define", macro P[macro] D[macro]
8901    next
8902  } else {
8903    # Replace #undef with comments.  This is necessary, for example,
8904    # in the case of _POSIX_SOURCE, which is predefined and required
8905    # on some systems where configure will not decide to define it.
8906    if (defundef == "undef") {
8907      print "/*", prefix defundef, macro, "*/"
8908      next
8909    }
8910  }
8911}
8912{ print }
8913_ACAWK
8914_ACEOF
8915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8916  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8917fi # test -n "$CONFIG_HEADERS"
8918
8919
8920eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
8921shift
8922for ac_tag
8923do
8924  case $ac_tag in
8925  :[FHLC]) ac_mode=$ac_tag; continue;;
8926  esac
8927  case $ac_mode$ac_tag in
8928  :[FHL]*:*);;
8929  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8930  :[FH]-) ac_tag=-:-;;
8931  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8932  esac
8933  ac_save_IFS=$IFS
8934  IFS=:
8935  set x $ac_tag
8936  IFS=$ac_save_IFS
8937  shift
8938  ac_file=$1
8939  shift
8940
8941  case $ac_mode in
8942  :L) ac_source=$1;;
8943  :[FH])
8944    ac_file_inputs=
8945    for ac_f
8946    do
8947      case $ac_f in
8948      -) ac_f="$ac_tmp/stdin";;
8949      *) # Look for the file first in the build tree, then in the source tree
8950	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
8951	 # because $ac_f cannot contain `:'.
8952	 test -f "$ac_f" ||
8953	   case $ac_f in
8954	   [\\/$]*) false;;
8955	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8956	   esac ||
8957	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8958      esac
8959      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8960      as_fn_append ac_file_inputs " '$ac_f'"
8961    done
8962
8963    # Let's still pretend it is `configure' which instantiates (i.e., don't
8964    # use $as_me), people would be surprised to read:
8965    #    /* config.h.  Generated by config.status.  */
8966    configure_input='Generated from '`
8967	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8968	`' by configure.'
8969    if test x"$ac_file" != x-; then
8970      configure_input="$ac_file.  $configure_input"
8971      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8972$as_echo "$as_me: creating $ac_file" >&6;}
8973    fi
8974    # Neutralize special characters interpreted by sed in replacement strings.
8975    case $configure_input in #(
8976    *\&* | *\|* | *\\* )
8977       ac_sed_conf_input=`$as_echo "$configure_input" |
8978       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8979    *) ac_sed_conf_input=$configure_input;;
8980    esac
8981
8982    case $ac_tag in
8983    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8984      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8985    esac
8986    ;;
8987  esac
8988
8989  ac_dir=`$as_dirname -- "$ac_file" ||
8990$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8991	 X"$ac_file" : 'X\(//\)[^/]' \| \
8992	 X"$ac_file" : 'X\(//\)$' \| \
8993	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8994$as_echo X"$ac_file" |
8995    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8996	    s//\1/
8997	    q
8998	  }
8999	  /^X\(\/\/\)[^/].*/{
9000	    s//\1/
9001	    q
9002	  }
9003	  /^X\(\/\/\)$/{
9004	    s//\1/
9005	    q
9006	  }
9007	  /^X\(\/\).*/{
9008	    s//\1/
9009	    q
9010	  }
9011	  s/.*/./; q'`
9012  as_dir="$ac_dir"; as_fn_mkdir_p
9013  ac_builddir=.
9014
9015case "$ac_dir" in
9016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9017*)
9018  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9019  # A ".." for each directory in $ac_dir_suffix.
9020  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9021  case $ac_top_builddir_sub in
9022  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9023  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9024  esac ;;
9025esac
9026ac_abs_top_builddir=$ac_pwd
9027ac_abs_builddir=$ac_pwd$ac_dir_suffix
9028# for backward compatibility:
9029ac_top_builddir=$ac_top_build_prefix
9030
9031case $srcdir in
9032  .)  # We are building in place.
9033    ac_srcdir=.
9034    ac_top_srcdir=$ac_top_builddir_sub
9035    ac_abs_top_srcdir=$ac_pwd ;;
9036  [\\/]* | ?:[\\/]* )  # Absolute name.
9037    ac_srcdir=$srcdir$ac_dir_suffix;
9038    ac_top_srcdir=$srcdir
9039    ac_abs_top_srcdir=$srcdir ;;
9040  *) # Relative name.
9041    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9042    ac_top_srcdir=$ac_top_build_prefix$srcdir
9043    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9044esac
9045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9046
9047
9048  case $ac_mode in
9049  :F)
9050  #
9051  # CONFIG_FILE
9052  #
9053
9054  case $INSTALL in
9055  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9056  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9057  esac
9058_ACEOF
9059
9060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9061# If the template does not know about datarootdir, expand it.
9062# FIXME: This hack should be removed a few years after 2.60.
9063ac_datarootdir_hack=; ac_datarootdir_seen=
9064ac_sed_dataroot='
9065/datarootdir/ {
9066  p
9067  q
9068}
9069/@datadir@/p
9070/@docdir@/p
9071/@infodir@/p
9072/@localedir@/p
9073/@mandir@/p'
9074case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9075*datarootdir*) ac_datarootdir_seen=yes;;
9076*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9077  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9078$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9079_ACEOF
9080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9081  ac_datarootdir_hack='
9082  s&@datadir@&$datadir&g
9083  s&@docdir@&$docdir&g
9084  s&@infodir@&$infodir&g
9085  s&@localedir@&$localedir&g
9086  s&@mandir@&$mandir&g
9087  s&\\\${datarootdir}&$datarootdir&g' ;;
9088esac
9089_ACEOF
9090
9091# Neutralize VPATH when `$srcdir' = `.'.
9092# Shell code in configure.ac might set extrasub.
9093# FIXME: do we really want to maintain this feature?
9094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9095ac_sed_extra="$ac_vpsub
9096$extrasub
9097_ACEOF
9098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9099:t
9100/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9101s|@configure_input@|$ac_sed_conf_input|;t t
9102s&@top_builddir@&$ac_top_builddir_sub&;t t
9103s&@top_build_prefix@&$ac_top_build_prefix&;t t
9104s&@srcdir@&$ac_srcdir&;t t
9105s&@abs_srcdir@&$ac_abs_srcdir&;t t
9106s&@top_srcdir@&$ac_top_srcdir&;t t
9107s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9108s&@builddir@&$ac_builddir&;t t
9109s&@abs_builddir@&$ac_abs_builddir&;t t
9110s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9111s&@INSTALL@&$ac_INSTALL&;t t
9112$ac_datarootdir_hack
9113"
9114eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9115  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9116
9117test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9118  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9119  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
9120      "$ac_tmp/out"`; test -z "$ac_out"; } &&
9121  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9122which seems to be undefined.  Please make sure it is defined" >&5
9123$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9124which seems to be undefined.  Please make sure it is defined" >&2;}
9125
9126  rm -f "$ac_tmp/stdin"
9127  case $ac_file in
9128  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9129  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9130  esac \
9131  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9132 ;;
9133  :H)
9134  #
9135  # CONFIG_HEADER
9136  #
9137  if test x"$ac_file" != x-; then
9138    {
9139      $as_echo "/* $configure_input  */" \
9140      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9141    } >"$ac_tmp/config.h" \
9142      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9143    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9144      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9145$as_echo "$as_me: $ac_file is unchanged" >&6;}
9146    else
9147      rm -f "$ac_file"
9148      mv "$ac_tmp/config.h" "$ac_file" \
9149	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9150    fi
9151  else
9152    $as_echo "/* $configure_input  */" \
9153      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9154      || as_fn_error $? "could not create -" "$LINENO" 5
9155  fi
9156 ;;
9157
9158  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9159$as_echo "$as_me: executing $ac_file commands" >&6;}
9160 ;;
9161  esac
9162
9163
9164  case $ac_file$ac_mode in
9165    "build-config.h":C) cp config.h build-config.h ;;
9166    "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
9167
9168  esac
9169done # for ac_tag
9170
9171
9172as_fn_exit 0
9173_ACEOF
9174ac_clean_files=$ac_clean_files_save
9175
9176test $ac_write_fail = 0 ||
9177  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9178
9179
9180# configure is writing to config.log, and then calls config.status.
9181# config.status does its own redirection, appending to config.log.
9182# Unfortunately, on DOS this fails, as config.log is still kept open
9183# by configure, so config.status won't be able to write to it; its
9184# output is simply discarded.  So we exec the FD to /dev/null,
9185# effectively closing config.log, so it can be properly (re)opened and
9186# appended to by config.status.  When coming back to configure, we
9187# need to make the FD available again.
9188if test "$no_create" != yes; then
9189  ac_cs_success=:
9190  ac_config_status_args=
9191  test "$silent" = yes &&
9192    ac_config_status_args="$ac_config_status_args --quiet"
9193  exec 5>/dev/null
9194  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9195  exec 5>>config.log
9196  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9197  # would make configure fail if this is the last instruction.
9198  $ac_cs_success || as_fn_exit 1
9199fi
9200if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9201  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9202$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9203fi
9204
9205