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="vmips.cc"
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_header_list=
623ac_subst_vars='am__EXEEXT_FALSE
624am__EXEEXT_TRUE
625LTLIBOBJS
626LIBOBJS
627AS
628ASFLAGS
629CXXCPP
630LN_S
631RANLIB
632am__fastdepCCAS_FALSE
633am__fastdepCCAS_TRUE
634CCASDEPMODE
635CCASFLAGS
636CCAS
637XTRALDFLAGS
638XTRACFLAGS
639am__fastdepCXX_FALSE
640am__fastdepCXX_TRUE
641CXXDEPMODE
642ac_ct_CXX
643CXXFLAGS
644CXX
645BIGENDIAN
646MIPSTOOLPREFIX
647mipsbin
648SAMPLE_CODE_TARGETS
649TESTCODE_DIR
650EGREP
651GREP
652CPP
653am__fastdepCC_FALSE
654am__fastdepCC_TRUE
655CCDEPMODE
656am__nodep
657AMDEPBACKSLASH
658AMDEP_FALSE
659AMDEP_TRUE
660am__quote
661am__include
662DEPDIR
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670am__untar
671am__tar
672AMTAR
673am__leading_dot
674SET_MAKE
675AWK
676MKDIR_P
677INSTALL_STRIP_PROGRAM
678STRIP
679install_sh
680MAKEINFO
681AUTOHEADER
682AUTOMAKE
683AUTOCONF
684ACLOCAL
685VERSION
686PACKAGE
687CYGPATH_W
688am__isrc
689INSTALL_DATA
690INSTALL_SCRIPT
691INSTALL_PROGRAM
692target_os
693target_vendor
694target_cpu
695target
696host_os
697host_vendor
698host_cpu
699host
700build_os
701build_vendor
702build_cpu
703build
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files=''
743ac_user_opts='
744enable_option_checking
745with_mips
746with_mips_bin
747enable_dependency_tracking
748with_mips_endianness
749enable_profiling
750'
751      ac_precious_vars='build_alias
752host_alias
753target_alias
754CC
755CFLAGS
756LDFLAGS
757LIBS
758CPPFLAGS
759CPP
760CXX
761CXXFLAGS
762CCC
763CCAS
764CCASFLAGS
765CXXCPP'
766
767
768# Initialize some variables set by options.
769ac_init_help=
770ac_init_version=false
771ac_unrecognized_opts=
772ac_unrecognized_sep=
773# The variables have the same names as the options, with
774# dashes changed to underlines.
775cache_file=/dev/null
776exec_prefix=NONE
777no_create=
778no_recursion=
779prefix=NONE
780program_prefix=NONE
781program_suffix=NONE
782program_transform_name=s,x,x,
783silent=
784site=
785srcdir=
786verbose=
787x_includes=NONE
788x_libraries=NONE
789
790# Installation directory options.
791# These are left unexpanded so users can "make install exec_prefix=/foo"
792# and all the variables that are supposed to be based on exec_prefix
793# by default will actually change.
794# Use braces instead of parens because sh, perl, etc. also accept them.
795# (The list follows the same order as the GNU Coding Standards.)
796bindir='${exec_prefix}/bin'
797sbindir='${exec_prefix}/sbin'
798libexecdir='${exec_prefix}/libexec'
799datarootdir='${prefix}/share'
800datadir='${datarootdir}'
801sysconfdir='${prefix}/etc'
802sharedstatedir='${prefix}/com'
803localstatedir='${prefix}/var'
804includedir='${prefix}/include'
805oldincludedir='/usr/include'
806docdir='${datarootdir}/doc/${PACKAGE}'
807infodir='${datarootdir}/info'
808htmldir='${docdir}'
809dvidir='${docdir}'
810pdfdir='${docdir}'
811psdir='${docdir}'
812libdir='${exec_prefix}/lib'
813localedir='${datarootdir}/locale'
814mandir='${datarootdir}/man'
815
816ac_prev=
817ac_dashdash=
818for ac_option
819do
820  # If the previous option needs an argument, assign it.
821  if test -n "$ac_prev"; then
822    eval $ac_prev=\$ac_option
823    ac_prev=
824    continue
825  fi
826
827  case $ac_option in
828  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829  *=)   ac_optarg= ;;
830  *)    ac_optarg=yes ;;
831  esac
832
833  # Accept the important Cygnus configure options, so we can diagnose typos.
834
835  case $ac_dashdash$ac_option in
836  --)
837    ac_dashdash=yes ;;
838
839  -bindir | --bindir | --bindi | --bind | --bin | --bi)
840    ac_prev=bindir ;;
841  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842    bindir=$ac_optarg ;;
843
844  -build | --build | --buil | --bui | --bu)
845    ac_prev=build_alias ;;
846  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
847    build_alias=$ac_optarg ;;
848
849  -cache-file | --cache-file | --cache-fil | --cache-fi \
850  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
851    ac_prev=cache_file ;;
852  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
853  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
854    cache_file=$ac_optarg ;;
855
856  --config-cache | -C)
857    cache_file=config.cache ;;
858
859  -datadir | --datadir | --datadi | --datad)
860    ac_prev=datadir ;;
861  -datadir=* | --datadir=* | --datadi=* | --datad=*)
862    datadir=$ac_optarg ;;
863
864  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
865  | --dataroo | --dataro | --datar)
866    ac_prev=datarootdir ;;
867  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
868  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
869    datarootdir=$ac_optarg ;;
870
871  -disable-* | --disable-*)
872    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
873    # Reject names that are not valid shell variable names.
874    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875      as_fn_error $? "invalid feature name: $ac_useropt"
876    ac_useropt_orig=$ac_useropt
877    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878    case $ac_user_opts in
879      *"
880"enable_$ac_useropt"
881"*) ;;
882      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883	 ac_unrecognized_sep=', ';;
884    esac
885    eval enable_$ac_useropt=no ;;
886
887  -docdir | --docdir | --docdi | --doc | --do)
888    ac_prev=docdir ;;
889  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890    docdir=$ac_optarg ;;
891
892  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893    ac_prev=dvidir ;;
894  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895    dvidir=$ac_optarg ;;
896
897  -enable-* | --enable-*)
898    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899    # Reject names that are not valid shell variable names.
900    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901      as_fn_error $? "invalid feature name: $ac_useropt"
902    ac_useropt_orig=$ac_useropt
903    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904    case $ac_user_opts in
905      *"
906"enable_$ac_useropt"
907"*) ;;
908      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909	 ac_unrecognized_sep=', ';;
910    esac
911    eval enable_$ac_useropt=\$ac_optarg ;;
912
913  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915  | --exec | --exe | --ex)
916    ac_prev=exec_prefix ;;
917  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919  | --exec=* | --exe=* | --ex=*)
920    exec_prefix=$ac_optarg ;;
921
922  -gas | --gas | --ga | --g)
923    # Obsolete; use --with-gas.
924    with_gas=yes ;;
925
926  -help | --help | --hel | --he | -h)
927    ac_init_help=long ;;
928  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929    ac_init_help=recursive ;;
930  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931    ac_init_help=short ;;
932
933  -host | --host | --hos | --ho)
934    ac_prev=host_alias ;;
935  -host=* | --host=* | --hos=* | --ho=*)
936    host_alias=$ac_optarg ;;
937
938  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939    ac_prev=htmldir ;;
940  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941  | --ht=*)
942    htmldir=$ac_optarg ;;
943
944  -includedir | --includedir | --includedi | --included | --include \
945  | --includ | --inclu | --incl | --inc)
946    ac_prev=includedir ;;
947  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948  | --includ=* | --inclu=* | --incl=* | --inc=*)
949    includedir=$ac_optarg ;;
950
951  -infodir | --infodir | --infodi | --infod | --info | --inf)
952    ac_prev=infodir ;;
953  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954    infodir=$ac_optarg ;;
955
956  -libdir | --libdir | --libdi | --libd)
957    ac_prev=libdir ;;
958  -libdir=* | --libdir=* | --libdi=* | --libd=*)
959    libdir=$ac_optarg ;;
960
961  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962  | --libexe | --libex | --libe)
963    ac_prev=libexecdir ;;
964  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965  | --libexe=* | --libex=* | --libe=*)
966    libexecdir=$ac_optarg ;;
967
968  -localedir | --localedir | --localedi | --localed | --locale)
969    ac_prev=localedir ;;
970  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971    localedir=$ac_optarg ;;
972
973  -localstatedir | --localstatedir | --localstatedi | --localstated \
974  | --localstate | --localstat | --localsta | --localst | --locals)
975    ac_prev=localstatedir ;;
976  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978    localstatedir=$ac_optarg ;;
979
980  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981    ac_prev=mandir ;;
982  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983    mandir=$ac_optarg ;;
984
985  -nfp | --nfp | --nf)
986    # Obsolete; use --without-fp.
987    with_fp=no ;;
988
989  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990  | --no-cr | --no-c | -n)
991    no_create=yes ;;
992
993  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995    no_recursion=yes ;;
996
997  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999  | --oldin | --oldi | --old | --ol | --o)
1000    ac_prev=oldincludedir ;;
1001  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004    oldincludedir=$ac_optarg ;;
1005
1006  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007    ac_prev=prefix ;;
1008  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009    prefix=$ac_optarg ;;
1010
1011  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012  | --program-pre | --program-pr | --program-p)
1013    ac_prev=program_prefix ;;
1014  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016    program_prefix=$ac_optarg ;;
1017
1018  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019  | --program-suf | --program-su | --program-s)
1020    ac_prev=program_suffix ;;
1021  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023    program_suffix=$ac_optarg ;;
1024
1025  -program-transform-name | --program-transform-name \
1026  | --program-transform-nam | --program-transform-na \
1027  | --program-transform-n | --program-transform- \
1028  | --program-transform | --program-transfor \
1029  | --program-transfo | --program-transf \
1030  | --program-trans | --program-tran \
1031  | --progr-tra | --program-tr | --program-t)
1032    ac_prev=program_transform_name ;;
1033  -program-transform-name=* | --program-transform-name=* \
1034  | --program-transform-nam=* | --program-transform-na=* \
1035  | --program-transform-n=* | --program-transform-=* \
1036  | --program-transform=* | --program-transfor=* \
1037  | --program-transfo=* | --program-transf=* \
1038  | --program-trans=* | --program-tran=* \
1039  | --progr-tra=* | --program-tr=* | --program-t=*)
1040    program_transform_name=$ac_optarg ;;
1041
1042  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043    ac_prev=pdfdir ;;
1044  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045    pdfdir=$ac_optarg ;;
1046
1047  -psdir | --psdir | --psdi | --psd | --ps)
1048    ac_prev=psdir ;;
1049  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050    psdir=$ac_optarg ;;
1051
1052  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053  | -silent | --silent | --silen | --sile | --sil)
1054    silent=yes ;;
1055
1056  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057    ac_prev=sbindir ;;
1058  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059  | --sbi=* | --sb=*)
1060    sbindir=$ac_optarg ;;
1061
1062  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064  | --sharedst | --shareds | --shared | --share | --shar \
1065  | --sha | --sh)
1066    ac_prev=sharedstatedir ;;
1067  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070  | --sha=* | --sh=*)
1071    sharedstatedir=$ac_optarg ;;
1072
1073  -site | --site | --sit)
1074    ac_prev=site ;;
1075  -site=* | --site=* | --sit=*)
1076    site=$ac_optarg ;;
1077
1078  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079    ac_prev=srcdir ;;
1080  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081    srcdir=$ac_optarg ;;
1082
1083  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084  | --syscon | --sysco | --sysc | --sys | --sy)
1085    ac_prev=sysconfdir ;;
1086  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088    sysconfdir=$ac_optarg ;;
1089
1090  -target | --target | --targe | --targ | --tar | --ta | --t)
1091    ac_prev=target_alias ;;
1092  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093    target_alias=$ac_optarg ;;
1094
1095  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096    verbose=yes ;;
1097
1098  -version | --version | --versio | --versi | --vers | -V)
1099    ac_init_version=: ;;
1100
1101  -with-* | --with-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error $? "invalid package name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"with_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval with_$ac_useropt=\$ac_optarg ;;
1116
1117  -without-* | --without-*)
1118    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119    # Reject names that are not valid shell variable names.
1120    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1121      as_fn_error $? "invalid package name: $ac_useropt"
1122    ac_useropt_orig=$ac_useropt
1123    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1124    case $ac_user_opts in
1125      *"
1126"with_$ac_useropt"
1127"*) ;;
1128      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1129	 ac_unrecognized_sep=', ';;
1130    esac
1131    eval with_$ac_useropt=no ;;
1132
1133  --x)
1134    # Obsolete; use --with-x.
1135    with_x=yes ;;
1136
1137  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1138  | --x-incl | --x-inc | --x-in | --x-i)
1139    ac_prev=x_includes ;;
1140  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1141  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1142    x_includes=$ac_optarg ;;
1143
1144  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1145  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1146    ac_prev=x_libraries ;;
1147  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1148  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1149    x_libraries=$ac_optarg ;;
1150
1151  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1152Try \`$0 --help' for more information"
1153    ;;
1154
1155  *=*)
1156    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157    # Reject names that are not valid shell variable names.
1158    case $ac_envvar in #(
1159      '' | [0-9]* | *[!_$as_cr_alnum]* )
1160      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1161    esac
1162    eval $ac_envvar=\$ac_optarg
1163    export $ac_envvar ;;
1164
1165  *)
1166    # FIXME: should be removed in autoconf 3.0.
1167    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1168    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1169      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1170    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1171    ;;
1172
1173  esac
1174done
1175
1176if test -n "$ac_prev"; then
1177  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1178  as_fn_error $? "missing argument to $ac_option"
1179fi
1180
1181if test -n "$ac_unrecognized_opts"; then
1182  case $enable_option_checking in
1183    no) ;;
1184    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1185    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186  esac
1187fi
1188
1189# Check all directory arguments for consistency.
1190for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191		datadir sysconfdir sharedstatedir localstatedir includedir \
1192		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193		libdir localedir mandir
1194do
1195  eval ac_val=\$$ac_var
1196  # Remove trailing slashes.
1197  case $ac_val in
1198    */ )
1199      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200      eval $ac_var=\$ac_val;;
1201  esac
1202  # Be sure to have absolute directory names.
1203  case $ac_val in
1204    [\\/$]* | ?:[\\/]* )  continue;;
1205    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206  esac
1207  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219  if test "x$build_alias" = x; then
1220    cross_compiling=maybe
1221  elif test "x$build_alias" != "x$host_alias"; then
1222    cross_compiling=yes
1223  fi
1224fi
1225
1226ac_tool_prefix=
1227test -n "$host_alias" && ac_tool_prefix=$host_alias-
1228
1229test "$silent" = yes && exec 6>/dev/null
1230
1231
1232ac_pwd=`pwd` && test -n "$ac_pwd" &&
1233ac_ls_di=`ls -di .` &&
1234ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1235  as_fn_error $? "working directory cannot be determined"
1236test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1237  as_fn_error $? "pwd does not report name of working directory"
1238
1239
1240# Find the source files, if location was not specified.
1241if test -z "$srcdir"; then
1242  ac_srcdir_defaulted=yes
1243  # Try the directory containing this script, then the parent directory.
1244  ac_confdir=`$as_dirname -- "$as_myself" ||
1245$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1246	 X"$as_myself" : 'X\(//\)[^/]' \| \
1247	 X"$as_myself" : 'X\(//\)$' \| \
1248	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1249$as_echo X"$as_myself" |
1250    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251	    s//\1/
1252	    q
1253	  }
1254	  /^X\(\/\/\)[^/].*/{
1255	    s//\1/
1256	    q
1257	  }
1258	  /^X\(\/\/\)$/{
1259	    s//\1/
1260	    q
1261	  }
1262	  /^X\(\/\).*/{
1263	    s//\1/
1264	    q
1265	  }
1266	  s/.*/./; q'`
1267  srcdir=$ac_confdir
1268  if test ! -r "$srcdir/$ac_unique_file"; then
1269    srcdir=..
1270  fi
1271else
1272  ac_srcdir_defaulted=no
1273fi
1274if test ! -r "$srcdir/$ac_unique_file"; then
1275  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1276  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1277fi
1278ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1279ac_abs_confdir=`(
1280	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1281	pwd)`
1282# When building in place, set srcdir=.
1283if test "$ac_abs_confdir" = "$ac_pwd"; then
1284  srcdir=.
1285fi
1286# Remove unnecessary trailing slashes from srcdir.
1287# Double slashes in file names in object file debugging info
1288# mess up M-x gdb in Emacs.
1289case $srcdir in
1290*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1291esac
1292for ac_var in $ac_precious_vars; do
1293  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1294  eval ac_env_${ac_var}_value=\$${ac_var}
1295  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1296  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1297done
1298
1299#
1300# Report the --help message.
1301#
1302if test "$ac_init_help" = "long"; then
1303  # Omit some internal or obsolete options to make the list less imposing.
1304  # This message is too long to be a string in the A/UX 3.1 sh.
1305  cat <<_ACEOF
1306\`configure' configures this package to adapt to many kinds of systems.
1307
1308Usage: $0 [OPTION]... [VAR=VALUE]...
1309
1310To assign environment variables (e.g., CC, CFLAGS...), specify them as
1311VAR=VALUE.  See below for descriptions of some of the useful variables.
1312
1313Defaults for the options are specified in brackets.
1314
1315Configuration:
1316  -h, --help              display this help and exit
1317      --help=short        display options specific to this package
1318      --help=recursive    display the short help of all the included packages
1319  -V, --version           display version information and exit
1320  -q, --quiet, --silent   do not print \`checking ...' messages
1321      --cache-file=FILE   cache test results in FILE [disabled]
1322  -C, --config-cache      alias for \`--cache-file=config.cache'
1323  -n, --no-create         do not create output files
1324      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1325
1326Installation directories:
1327  --prefix=PREFIX         install architecture-independent files in PREFIX
1328                          [$ac_default_prefix]
1329  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1330                          [PREFIX]
1331
1332By default, \`make install' will install all the files in
1333\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1334an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1335for instance \`--prefix=\$HOME'.
1336
1337For better control, use the options below.
1338
1339Fine tuning of the installation directories:
1340  --bindir=DIR            user executables [EPREFIX/bin]
1341  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1342  --libexecdir=DIR        program executables [EPREFIX/libexec]
1343  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1344  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1345  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1346  --libdir=DIR            object code libraries [EPREFIX/lib]
1347  --includedir=DIR        C header files [PREFIX/include]
1348  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1349  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1350  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1351  --infodir=DIR           info documentation [DATAROOTDIR/info]
1352  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1353  --mandir=DIR            man documentation [DATAROOTDIR/man]
1354  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1355  --htmldir=DIR           html documentation [DOCDIR]
1356  --dvidir=DIR            dvi documentation [DOCDIR]
1357  --pdfdir=DIR            pdf documentation [DOCDIR]
1358  --psdir=DIR             ps documentation [DOCDIR]
1359_ACEOF
1360
1361  cat <<\_ACEOF
1362
1363Program names:
1364  --program-prefix=PREFIX            prepend PREFIX to installed program names
1365  --program-suffix=SUFFIX            append SUFFIX to installed program names
1366  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1367
1368System types:
1369  --build=BUILD     configure for building on BUILD [guessed]
1370  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1371  --target=TARGET   configure for building compilers for TARGET [HOST]
1372_ACEOF
1373fi
1374
1375if test -n "$ac_init_help"; then
1376
1377  cat <<\_ACEOF
1378
1379Optional Features:
1380  --disable-option-checking  ignore unrecognized --enable/--with options
1381  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1382  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1383  --enable-dependency-tracking
1384                          do not reject slow dependency extractors
1385  --disable-dependency-tracking
1386                          speeds up one-time build
1387  --enable-profiling      build profiled VMIPS executable for gprof/gcov
1388
1389Optional Packages:
1390  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1391  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1392  --with-mips=MDIR        specify installation prefix of mips cross tools
1393                           (default MDIR = /opt/mips)
1394  --with-mips-bin=DIR     specify path to mips cross tools' executables
1395                           (default MDIR/bin)
1396  --with-mips-endianness=VAL      specify mips cross tools target endianness
1397                                   (defaults to guessing from objdump -i)
1398
1399Some influential environment variables:
1400  CC          C compiler command
1401  CFLAGS      C compiler flags
1402  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1403              nonstandard directory <lib dir>
1404  LIBS        libraries to pass to the linker, e.g. -l<library>
1405  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1406              you have headers in a nonstandard directory <include dir>
1407  CPP         C preprocessor
1408  CXX         C++ compiler command
1409  CXXFLAGS    C++ compiler flags
1410  CCAS        assembler compiler command (defaults to CC)
1411  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1412  CXXCPP      C++ preprocessor
1413
1414Use these variables to override the choices made by `configure' or to help
1415it to find libraries and programs with nonstandard names/locations.
1416
1417Report bugs to the package provider.
1418_ACEOF
1419ac_status=$?
1420fi
1421
1422if test "$ac_init_help" = "recursive"; then
1423  # If there are subdirs, report their specific --help.
1424  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425    test -d "$ac_dir" ||
1426      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427      continue
1428    ac_builddir=.
1429
1430case "$ac_dir" in
1431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432*)
1433  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434  # A ".." for each directory in $ac_dir_suffix.
1435  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436  case $ac_top_builddir_sub in
1437  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439  esac ;;
1440esac
1441ac_abs_top_builddir=$ac_pwd
1442ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443# for backward compatibility:
1444ac_top_builddir=$ac_top_build_prefix
1445
1446case $srcdir in
1447  .)  # We are building in place.
1448    ac_srcdir=.
1449    ac_top_srcdir=$ac_top_builddir_sub
1450    ac_abs_top_srcdir=$ac_pwd ;;
1451  [\\/]* | ?:[\\/]* )  # Absolute name.
1452    ac_srcdir=$srcdir$ac_dir_suffix;
1453    ac_top_srcdir=$srcdir
1454    ac_abs_top_srcdir=$srcdir ;;
1455  *) # Relative name.
1456    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457    ac_top_srcdir=$ac_top_build_prefix$srcdir
1458    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459esac
1460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462    cd "$ac_dir" || { ac_status=$?; continue; }
1463    # Check for guested configure.
1464    if test -f "$ac_srcdir/configure.gnu"; then
1465      echo &&
1466      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467    elif test -f "$ac_srcdir/configure"; then
1468      echo &&
1469      $SHELL "$ac_srcdir/configure" --help=recursive
1470    else
1471      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472    fi || ac_status=$?
1473    cd "$ac_pwd" || { ac_status=$?; break; }
1474  done
1475fi
1476
1477test -n "$ac_init_help" && exit $ac_status
1478if $ac_init_version; then
1479  cat <<\_ACEOF
1480configure
1481generated by GNU Autoconf 2.69
1482
1483Copyright (C) 2012 Free Software Foundation, Inc.
1484This configure script is free software; the Free Software Foundation
1485gives unlimited permission to copy, distribute and modify it.
1486_ACEOF
1487  exit
1488fi
1489
1490## ------------------------ ##
1491## Autoconf initialization. ##
1492## ------------------------ ##
1493
1494# ac_fn_c_try_compile LINENO
1495# --------------------------
1496# Try to compile conftest.$ac_ext, and return whether this succeeded.
1497ac_fn_c_try_compile ()
1498{
1499  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500  rm -f conftest.$ac_objext
1501  if { { ac_try="$ac_compile"
1502case "(($ac_try" in
1503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504  *) ac_try_echo=$ac_try;;
1505esac
1506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507$as_echo "$ac_try_echo"; } >&5
1508  (eval "$ac_compile") 2>conftest.err
1509  ac_status=$?
1510  if test -s conftest.err; then
1511    grep -v '^ *+' conftest.err >conftest.er1
1512    cat conftest.er1 >&5
1513    mv -f conftest.er1 conftest.err
1514  fi
1515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516  test $ac_status = 0; } && {
1517	 test -z "$ac_c_werror_flag" ||
1518	 test ! -s conftest.err
1519       } && test -s conftest.$ac_objext; then :
1520  ac_retval=0
1521else
1522  $as_echo "$as_me: failed program was:" >&5
1523sed 's/^/| /' conftest.$ac_ext >&5
1524
1525	ac_retval=1
1526fi
1527  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528  as_fn_set_status $ac_retval
1529
1530} # ac_fn_c_try_compile
1531
1532# ac_fn_c_try_cpp LINENO
1533# ----------------------
1534# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535ac_fn_c_try_cpp ()
1536{
1537  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538  if { { ac_try="$ac_cpp conftest.$ac_ext"
1539case "(($ac_try" in
1540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541  *) ac_try_echo=$ac_try;;
1542esac
1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544$as_echo "$ac_try_echo"; } >&5
1545  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546  ac_status=$?
1547  if test -s conftest.err; then
1548    grep -v '^ *+' conftest.err >conftest.er1
1549    cat conftest.er1 >&5
1550    mv -f conftest.er1 conftest.err
1551  fi
1552  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553  test $ac_status = 0; } > conftest.i && {
1554	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555	 test ! -s conftest.err
1556       }; then :
1557  ac_retval=0
1558else
1559  $as_echo "$as_me: failed program was:" >&5
1560sed 's/^/| /' conftest.$ac_ext >&5
1561
1562    ac_retval=1
1563fi
1564  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565  as_fn_set_status $ac_retval
1566
1567} # ac_fn_c_try_cpp
1568
1569# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1570# -------------------------------------------------------
1571# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1572# the include files in INCLUDES and setting the cache variable VAR
1573# accordingly.
1574ac_fn_c_check_header_mongrel ()
1575{
1576  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577  if eval \${$3+:} false; then :
1578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579$as_echo_n "checking for $2... " >&6; }
1580if eval \${$3+:} false; then :
1581  $as_echo_n "(cached) " >&6
1582fi
1583eval ac_res=\$$3
1584	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585$as_echo "$ac_res" >&6; }
1586else
1587  # Is the header compilable?
1588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1589$as_echo_n "checking $2 usability... " >&6; }
1590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591/* end confdefs.h.  */
1592$4
1593#include <$2>
1594_ACEOF
1595if ac_fn_c_try_compile "$LINENO"; then :
1596  ac_header_compiler=yes
1597else
1598  ac_header_compiler=no
1599fi
1600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1602$as_echo "$ac_header_compiler" >&6; }
1603
1604# Is the header present?
1605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1606$as_echo_n "checking $2 presence... " >&6; }
1607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608/* end confdefs.h.  */
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_cpp "$LINENO"; then :
1612  ac_header_preproc=yes
1613else
1614  ac_header_preproc=no
1615fi
1616rm -f conftest.err conftest.i conftest.$ac_ext
1617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1618$as_echo "$ac_header_preproc" >&6; }
1619
1620# So?  What about this header?
1621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1622  yes:no: )
1623    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1624$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1625    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1626$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627    ;;
1628  no:yes:* )
1629    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1630$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1631    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1632$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1633    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1634$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1635    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1636$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639    ;;
1640esac
1641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642$as_echo_n "checking for $2... " >&6; }
1643if eval \${$3+:} false; then :
1644  $as_echo_n "(cached) " >&6
1645else
1646  eval "$3=\$ac_header_compiler"
1647fi
1648eval ac_res=\$$3
1649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
1651fi
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654} # ac_fn_c_check_header_mongrel
1655
1656# ac_fn_c_try_run LINENO
1657# ----------------------
1658# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659# that executables *can* be run.
1660ac_fn_c_try_run ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  if { { ac_try="$ac_link"
1664case "(($ac_try" in
1665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666  *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670  (eval "$ac_link") 2>&5
1671  ac_status=$?
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674  { { case "(($ac_try" in
1675  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676  *) ac_try_echo=$ac_try;;
1677esac
1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679$as_echo "$ac_try_echo"; } >&5
1680  (eval "$ac_try") 2>&5
1681  ac_status=$?
1682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683  test $ac_status = 0; }; }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: program exited with status $ac_status" >&5
1687       $as_echo "$as_me: failed program was:" >&5
1688sed 's/^/| /' conftest.$ac_ext >&5
1689
1690       ac_retval=$ac_status
1691fi
1692  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_run
1697
1698# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699# -------------------------------------------------------
1700# Tests whether HEADER exists and can be compiled using the include files in
1701# INCLUDES, setting the cache variable VAR accordingly.
1702ac_fn_c_check_header_compile ()
1703{
1704  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706$as_echo_n "checking for $2... " >&6; }
1707if eval \${$3+:} false; then :
1708  $as_echo_n "(cached) " >&6
1709else
1710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711/* end confdefs.h.  */
1712$4
1713#include <$2>
1714_ACEOF
1715if ac_fn_c_try_compile "$LINENO"; then :
1716  eval "$3=yes"
1717else
1718  eval "$3=no"
1719fi
1720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721fi
1722eval ac_res=\$$3
1723	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724$as_echo "$ac_res" >&6; }
1725  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726
1727} # ac_fn_c_check_header_compile
1728
1729# ac_fn_cxx_try_compile LINENO
1730# ----------------------------
1731# Try to compile conftest.$ac_ext, and return whether this succeeded.
1732ac_fn_cxx_try_compile ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  rm -f conftest.$ac_objext
1736  if { { ac_try="$ac_compile"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_compile") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } && {
1752	 test -z "$ac_cxx_werror_flag" ||
1753	 test ! -s conftest.err
1754       } && test -s conftest.$ac_objext; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760	ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_cxx_try_compile
1766
1767# ac_fn_cxx_try_cpp LINENO
1768# ------------------------
1769# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770ac_fn_cxx_try_cpp ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  if { { ac_try="$ac_cpp conftest.$ac_ext"
1774case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781  ac_status=$?
1782  if test -s conftest.err; then
1783    grep -v '^ *+' conftest.err >conftest.er1
1784    cat conftest.er1 >&5
1785    mv -f conftest.er1 conftest.err
1786  fi
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } > conftest.i && {
1789	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1790	 test ! -s conftest.err
1791       }; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797    ac_retval=1
1798fi
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_cxx_try_cpp
1803
1804# ac_fn_cxx_try_run LINENO
1805# ------------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1807# that executables *can* be run.
1808ac_fn_cxx_try_run ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_link") 2>&5
1819  ac_status=$?
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1822  { { case "(($ac_try" in
1823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824  *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828  (eval "$ac_try") 2>&5
1829  ac_status=$?
1830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831  test $ac_status = 0; }; }; then :
1832  ac_retval=0
1833else
1834  $as_echo "$as_me: program exited with status $ac_status" >&5
1835       $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838       ac_retval=$ac_status
1839fi
1840  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_cxx_try_run
1845
1846# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1847# ---------------------------------------------------------
1848# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849# the include files in INCLUDES and setting the cache variable VAR
1850# accordingly.
1851ac_fn_cxx_check_header_mongrel ()
1852{
1853  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854  if eval \${$3+:} false; then :
1855  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856$as_echo_n "checking for $2... " >&6; }
1857if eval \${$3+:} false; then :
1858  $as_echo_n "(cached) " >&6
1859fi
1860eval ac_res=\$$3
1861	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862$as_echo "$ac_res" >&6; }
1863else
1864  # Is the header compilable?
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866$as_echo_n "checking $2 usability... " >&6; }
1867cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h.  */
1869$4
1870#include <$2>
1871_ACEOF
1872if ac_fn_cxx_try_compile "$LINENO"; then :
1873  ac_header_compiler=yes
1874else
1875  ac_header_compiler=no
1876fi
1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879$as_echo "$ac_header_compiler" >&6; }
1880
1881# Is the header present?
1882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883$as_echo_n "checking $2 presence... " >&6; }
1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885/* end confdefs.h.  */
1886#include <$2>
1887_ACEOF
1888if ac_fn_cxx_try_cpp "$LINENO"; then :
1889  ac_header_preproc=yes
1890else
1891  ac_header_preproc=no
1892fi
1893rm -f conftest.err conftest.i conftest.$ac_ext
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895$as_echo "$ac_header_preproc" >&6; }
1896
1897# So?  What about this header?
1898case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1899  yes:no: )
1900    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904    ;;
1905  no:yes:* )
1906    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1909$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1910    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1913$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1914    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916    ;;
1917esac
1918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919$as_echo_n "checking for $2... " >&6; }
1920if eval \${$3+:} false; then :
1921  $as_echo_n "(cached) " >&6
1922else
1923  eval "$3=\$ac_header_compiler"
1924fi
1925eval ac_res=\$$3
1926	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927$as_echo "$ac_res" >&6; }
1928fi
1929  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_cxx_check_header_mongrel
1932
1933# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1934# ---------------------------------------------
1935# Tests whether TYPE exists after having included INCLUDES, setting cache
1936# variable VAR accordingly.
1937ac_fn_cxx_check_type ()
1938{
1939  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943  $as_echo_n "(cached) " >&6
1944else
1945  eval "$3=no"
1946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h.  */
1948$4
1949int
1950main ()
1951{
1952if (sizeof ($2))
1953	 return 0;
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_cxx_try_compile "$LINENO"; then :
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962int
1963main ()
1964{
1965if (sizeof (($2)))
1966	    return 0;
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_cxx_try_compile "$LINENO"; then :
1972
1973else
1974  eval "$3=yes"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_cxx_check_type
1986
1987# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
1988# ----------------------------------------------
1989# Tries to find the compile-time value of EXPR in a program that includes
1990# INCLUDES, setting VAR accordingly. Returns whether the value could be
1991# computed
1992ac_fn_cxx_compute_int ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  if test "$cross_compiling" = yes; then
1996    # Depending upon the size, compute the lo and hi bounds.
1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h.  */
1999$4
2000int
2001main ()
2002{
2003static int test_array [1 - 2 * !(($2) >= 0)];
2004test_array [0] = 0;
2005return test_array [0];
2006
2007  ;
2008  return 0;
2009}
2010_ACEOF
2011if ac_fn_cxx_try_compile "$LINENO"; then :
2012  ac_lo=0 ac_mid=0
2013  while :; do
2014    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h.  */
2016$4
2017int
2018main ()
2019{
2020static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021test_array [0] = 0;
2022return test_array [0];
2023
2024  ;
2025  return 0;
2026}
2027_ACEOF
2028if ac_fn_cxx_try_compile "$LINENO"; then :
2029  ac_hi=$ac_mid; break
2030else
2031  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032			if test $ac_lo -le $ac_mid; then
2033			  ac_lo= ac_hi=
2034			  break
2035			fi
2036			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039  done
2040else
2041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042/* end confdefs.h.  */
2043$4
2044int
2045main ()
2046{
2047static int test_array [1 - 2 * !(($2) < 0)];
2048test_array [0] = 0;
2049return test_array [0];
2050
2051  ;
2052  return 0;
2053}
2054_ACEOF
2055if ac_fn_cxx_try_compile "$LINENO"; then :
2056  ac_hi=-1 ac_mid=-1
2057  while :; do
2058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h.  */
2060$4
2061int
2062main ()
2063{
2064static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2065test_array [0] = 0;
2066return test_array [0];
2067
2068  ;
2069  return 0;
2070}
2071_ACEOF
2072if ac_fn_cxx_try_compile "$LINENO"; then :
2073  ac_lo=$ac_mid; break
2074else
2075  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2076			if test $ac_mid -le $ac_hi; then
2077			  ac_lo= ac_hi=
2078			  break
2079			fi
2080			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083  done
2084else
2085  ac_lo= ac_hi=
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090# Binary search between lo and hi bounds.
2091while test "x$ac_lo" != "x$ac_hi"; do
2092  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h.  */
2095$4
2096int
2097main ()
2098{
2099static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2100test_array [0] = 0;
2101return test_array [0];
2102
2103  ;
2104  return 0;
2105}
2106_ACEOF
2107if ac_fn_cxx_try_compile "$LINENO"; then :
2108  ac_hi=$ac_mid
2109else
2110  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2111fi
2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113done
2114case $ac_lo in #((
2115?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2116'') ac_retval=1 ;;
2117esac
2118  else
2119    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120/* end confdefs.h.  */
2121$4
2122static long int longval () { return $2; }
2123static unsigned long int ulongval () { return $2; }
2124#include <stdio.h>
2125#include <stdlib.h>
2126int
2127main ()
2128{
2129
2130  FILE *f = fopen ("conftest.val", "w");
2131  if (! f)
2132    return 1;
2133  if (($2) < 0)
2134    {
2135      long int i = longval ();
2136      if (i != ($2))
2137	return 1;
2138      fprintf (f, "%ld", i);
2139    }
2140  else
2141    {
2142      unsigned long int i = ulongval ();
2143      if (i != ($2))
2144	return 1;
2145      fprintf (f, "%lu", i);
2146    }
2147  /* Do not output a trailing newline, as this causes \r\n confusion
2148     on some platforms.  */
2149  return ferror (f) || fclose (f) != 0;
2150
2151  ;
2152  return 0;
2153}
2154_ACEOF
2155if ac_fn_cxx_try_run "$LINENO"; then :
2156  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157else
2158  ac_retval=1
2159fi
2160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2161  conftest.$ac_objext conftest.beam conftest.$ac_ext
2162rm -f conftest.val
2163
2164  fi
2165  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166  as_fn_set_status $ac_retval
2167
2168} # ac_fn_cxx_compute_int
2169
2170# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2171# ---------------------------------------------------------
2172# Tests whether HEADER exists and can be compiled using the include files in
2173# INCLUDES, setting the cache variable VAR accordingly.
2174ac_fn_cxx_check_header_compile ()
2175{
2176  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178$as_echo_n "checking for $2... " >&6; }
2179if eval \${$3+:} false; then :
2180  $as_echo_n "(cached) " >&6
2181else
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185#include <$2>
2186_ACEOF
2187if ac_fn_cxx_try_compile "$LINENO"; then :
2188  eval "$3=yes"
2189else
2190  eval "$3=no"
2191fi
2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193fi
2194eval ac_res=\$$3
2195	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196$as_echo "$ac_res" >&6; }
2197  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199} # ac_fn_cxx_check_header_compile
2200
2201# ac_fn_cxx_try_link LINENO
2202# -------------------------
2203# Try to link conftest.$ac_ext, and return whether this succeeded.
2204ac_fn_cxx_try_link ()
2205{
2206  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207  rm -f conftest.$ac_objext conftest$ac_exeext
2208  if { { ac_try="$ac_link"
2209case "(($ac_try" in
2210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211  *) ac_try_echo=$ac_try;;
2212esac
2213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214$as_echo "$ac_try_echo"; } >&5
2215  (eval "$ac_link") 2>conftest.err
2216  ac_status=$?
2217  if test -s conftest.err; then
2218    grep -v '^ *+' conftest.err >conftest.er1
2219    cat conftest.er1 >&5
2220    mv -f conftest.er1 conftest.err
2221  fi
2222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223  test $ac_status = 0; } && {
2224	 test -z "$ac_cxx_werror_flag" ||
2225	 test ! -s conftest.err
2226       } && test -s conftest$ac_exeext && {
2227	 test "$cross_compiling" = yes ||
2228	 test -x conftest$ac_exeext
2229       }; then :
2230  ac_retval=0
2231else
2232  $as_echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235	ac_retval=1
2236fi
2237  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2238  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2239  # interfere with the next link command; also delete a directory that is
2240  # left behind by Apple's compiler.  We do this before executing the actions.
2241  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2242  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2243  as_fn_set_status $ac_retval
2244
2245} # ac_fn_cxx_try_link
2246
2247# ac_fn_cxx_check_func LINENO FUNC VAR
2248# ------------------------------------
2249# Tests whether FUNC exists, setting the cache variable VAR accordingly
2250ac_fn_cxx_check_func ()
2251{
2252  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
2255if eval \${$3+:} false; then :
2256  $as_echo_n "(cached) " >&6
2257else
2258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h.  */
2260/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2261   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2262#define $2 innocuous_$2
2263
2264/* System header to define __stub macros and hopefully few prototypes,
2265    which can conflict with char $2 (); below.
2266    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2267    <limits.h> exists even on freestanding compilers.  */
2268
2269#ifdef __STDC__
2270# include <limits.h>
2271#else
2272# include <assert.h>
2273#endif
2274
2275#undef $2
2276
2277/* Override any GCC internal prototype to avoid an error.
2278   Use char because int might match the return type of a GCC
2279   builtin and then its argument prototype would still apply.  */
2280#ifdef __cplusplus
2281extern "C"
2282#endif
2283char $2 ();
2284/* The GNU C library defines this for functions which it implements
2285    to always fail with ENOSYS.  Some functions are actually named
2286    something starting with __ and the normal name is an alias.  */
2287#if defined __stub_$2 || defined __stub___$2
2288choke me
2289#endif
2290
2291int
2292main ()
2293{
2294return $2 ();
2295  ;
2296  return 0;
2297}
2298_ACEOF
2299if ac_fn_cxx_try_link "$LINENO"; then :
2300  eval "$3=yes"
2301else
2302  eval "$3=no"
2303fi
2304rm -f core conftest.err conftest.$ac_objext \
2305    conftest$ac_exeext conftest.$ac_ext
2306fi
2307eval ac_res=\$$3
2308	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309$as_echo "$ac_res" >&6; }
2310  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2311
2312} # ac_fn_cxx_check_func
2313cat >config.log <<_ACEOF
2314This file contains any messages produced by compilers while
2315running configure, to aid debugging if configure makes a mistake.
2316
2317It was created by $as_me, which was
2318generated by GNU Autoconf 2.69.  Invocation command line was
2319
2320  $ $0 $@
2321
2322_ACEOF
2323exec 5>>config.log
2324{
2325cat <<_ASUNAME
2326## --------- ##
2327## Platform. ##
2328## --------- ##
2329
2330hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2331uname -m = `(uname -m) 2>/dev/null || echo unknown`
2332uname -r = `(uname -r) 2>/dev/null || echo unknown`
2333uname -s = `(uname -s) 2>/dev/null || echo unknown`
2334uname -v = `(uname -v) 2>/dev/null || echo unknown`
2335
2336/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2337/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2338
2339/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2340/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2341/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2342/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2343/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2344/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2345/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2346
2347_ASUNAME
2348
2349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350for as_dir in $PATH
2351do
2352  IFS=$as_save_IFS
2353  test -z "$as_dir" && as_dir=.
2354    $as_echo "PATH: $as_dir"
2355  done
2356IFS=$as_save_IFS
2357
2358} >&5
2359
2360cat >&5 <<_ACEOF
2361
2362
2363## ----------- ##
2364## Core tests. ##
2365## ----------- ##
2366
2367_ACEOF
2368
2369
2370# Keep a trace of the command line.
2371# Strip out --no-create and --no-recursion so they do not pile up.
2372# Strip out --silent because we don't want to record it for future runs.
2373# Also quote any args containing shell meta-characters.
2374# Make two passes to allow for proper duplicate-argument suppression.
2375ac_configure_args=
2376ac_configure_args0=
2377ac_configure_args1=
2378ac_must_keep_next=false
2379for ac_pass in 1 2
2380do
2381  for ac_arg
2382  do
2383    case $ac_arg in
2384    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2385    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2386    | -silent | --silent | --silen | --sile | --sil)
2387      continue ;;
2388    *\'*)
2389      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390    esac
2391    case $ac_pass in
2392    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2393    2)
2394      as_fn_append ac_configure_args1 " '$ac_arg'"
2395      if test $ac_must_keep_next = true; then
2396	ac_must_keep_next=false # Got value, back to normal.
2397      else
2398	case $ac_arg in
2399	  *=* | --config-cache | -C | -disable-* | --disable-* \
2400	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2401	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2402	  | -with-* | --with-* | -without-* | --without-* | --x)
2403	    case "$ac_configure_args0 " in
2404	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405	    esac
2406	    ;;
2407	  -* ) ac_must_keep_next=true ;;
2408	esac
2409      fi
2410      as_fn_append ac_configure_args " '$ac_arg'"
2411      ;;
2412    esac
2413  done
2414done
2415{ ac_configure_args0=; unset ac_configure_args0;}
2416{ ac_configure_args1=; unset ac_configure_args1;}
2417
2418# When interrupted or exit'd, cleanup temporary files, and complete
2419# config.log.  We remove comments because anyway the quotes in there
2420# would cause problems or look ugly.
2421# WARNING: Use '\'' to represent an apostrophe within the trap.
2422# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2423trap 'exit_status=$?
2424  # Save into config.log some information that might help in debugging.
2425  {
2426    echo
2427
2428    $as_echo "## ---------------- ##
2429## Cache variables. ##
2430## ---------------- ##"
2431    echo
2432    # The following way of writing the cache mishandles newlines in values,
2433(
2434  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435    eval ac_val=\$$ac_var
2436    case $ac_val in #(
2437    *${as_nl}*)
2438      case $ac_var in #(
2439      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441      esac
2442      case $ac_var in #(
2443      _ | IFS | as_nl) ;; #(
2444      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445      *) { eval $ac_var=; unset $ac_var;} ;;
2446      esac ;;
2447    esac
2448  done
2449  (set) 2>&1 |
2450    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451    *${as_nl}ac_space=\ *)
2452      sed -n \
2453	"s/'\''/'\''\\\\'\'''\''/g;
2454	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455      ;; #(
2456    *)
2457      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458      ;;
2459    esac |
2460    sort
2461)
2462    echo
2463
2464    $as_echo "## ----------------- ##
2465## Output variables. ##
2466## ----------------- ##"
2467    echo
2468    for ac_var in $ac_subst_vars
2469    do
2470      eval ac_val=\$$ac_var
2471      case $ac_val in
2472      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473      esac
2474      $as_echo "$ac_var='\''$ac_val'\''"
2475    done | sort
2476    echo
2477
2478    if test -n "$ac_subst_files"; then
2479      $as_echo "## ------------------- ##
2480## File substitutions. ##
2481## ------------------- ##"
2482      echo
2483      for ac_var in $ac_subst_files
2484      do
2485	eval ac_val=\$$ac_var
2486	case $ac_val in
2487	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2488	esac
2489	$as_echo "$ac_var='\''$ac_val'\''"
2490      done | sort
2491      echo
2492    fi
2493
2494    if test -s confdefs.h; then
2495      $as_echo "## ----------- ##
2496## confdefs.h. ##
2497## ----------- ##"
2498      echo
2499      cat confdefs.h
2500      echo
2501    fi
2502    test "$ac_signal" != 0 &&
2503      $as_echo "$as_me: caught signal $ac_signal"
2504    $as_echo "$as_me: exit $exit_status"
2505  } >&5
2506  rm -f core *.core core.conftest.* &&
2507    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508    exit $exit_status
2509' 0
2510for ac_signal in 1 2 13 15; do
2511  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512done
2513ac_signal=0
2514
2515# confdefs.h avoids OS command line length limits that DEFS can exceed.
2516rm -f -r conftest* confdefs.h
2517
2518$as_echo "/* confdefs.h */" > confdefs.h
2519
2520# Predefined preprocessor variables.
2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_NAME "$PACKAGE_NAME"
2524_ACEOF
2525
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528_ACEOF
2529
2530cat >>confdefs.h <<_ACEOF
2531#define PACKAGE_VERSION "$PACKAGE_VERSION"
2532_ACEOF
2533
2534cat >>confdefs.h <<_ACEOF
2535#define PACKAGE_STRING "$PACKAGE_STRING"
2536_ACEOF
2537
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540_ACEOF
2541
2542cat >>confdefs.h <<_ACEOF
2543#define PACKAGE_URL "$PACKAGE_URL"
2544_ACEOF
2545
2546
2547# Let the site file select an alternate cache file if it wants to.
2548# Prefer an explicitly selected file to automatically selected ones.
2549ac_site_file1=NONE
2550ac_site_file2=NONE
2551if test -n "$CONFIG_SITE"; then
2552  # We do not want a PATH search for config.site.
2553  case $CONFIG_SITE in #((
2554    -*)  ac_site_file1=./$CONFIG_SITE;;
2555    */*) ac_site_file1=$CONFIG_SITE;;
2556    *)   ac_site_file1=./$CONFIG_SITE;;
2557  esac
2558elif test "x$prefix" != xNONE; then
2559  ac_site_file1=$prefix/share/config.site
2560  ac_site_file2=$prefix/etc/config.site
2561else
2562  ac_site_file1=$ac_default_prefix/share/config.site
2563  ac_site_file2=$ac_default_prefix/etc/config.site
2564fi
2565for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2566do
2567  test "x$ac_site_file" = xNONE && continue
2568  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2569    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2570$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2571    sed 's/^/| /' "$ac_site_file" >&5
2572    . "$ac_site_file" \
2573      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575as_fn_error $? "failed to load site script $ac_site_file
2576See \`config.log' for more details" "$LINENO" 5; }
2577  fi
2578done
2579
2580if test -r "$cache_file"; then
2581  # Some versions of bash will fail to source /dev/null (special files
2582  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2583  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2584    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2585$as_echo "$as_me: loading cache $cache_file" >&6;}
2586    case $cache_file in
2587      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2588      *)                      . "./$cache_file";;
2589    esac
2590  fi
2591else
2592  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2593$as_echo "$as_me: creating cache $cache_file" >&6;}
2594  >$cache_file
2595fi
2596
2597as_fn_append ac_header_list " stdlib.h"
2598as_fn_append ac_header_list " unistd.h"
2599as_fn_append ac_header_list " sys/param.h"
2600# Check that the precious variables saved in the cache have kept the same
2601# value.
2602ac_cache_corrupted=false
2603for ac_var in $ac_precious_vars; do
2604  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605  eval ac_new_set=\$ac_env_${ac_var}_set
2606  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607  eval ac_new_val=\$ac_env_${ac_var}_value
2608  case $ac_old_set,$ac_new_set in
2609    set,)
2610      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612      ac_cache_corrupted=: ;;
2613    ,set)
2614      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616      ac_cache_corrupted=: ;;
2617    ,);;
2618    *)
2619      if test "x$ac_old_val" != "x$ac_new_val"; then
2620	# differences in whitespace do not lead to failure.
2621	ac_old_val_w=`echo x $ac_old_val`
2622	ac_new_val_w=`echo x $ac_new_val`
2623	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626	  ac_cache_corrupted=:
2627	else
2628	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630	  eval $ac_var=\$ac_old_val
2631	fi
2632	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2633$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2634	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2635$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2636      fi;;
2637  esac
2638  # Pass precious variables to config.status.
2639  if test "$ac_new_set" = set; then
2640    case $ac_new_val in
2641    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642    *) ac_arg=$ac_var=$ac_new_val ;;
2643    esac
2644    case " $ac_configure_args " in
2645      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2646      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647    esac
2648  fi
2649done
2650if $ac_cache_corrupted; then
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2656fi
2657## -------------------- ##
2658## Main body of script. ##
2659## -------------------- ##
2660
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666
2667
2668
2669ac_aux_dir=
2670for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2671  if test -f "$ac_dir/install-sh"; then
2672    ac_aux_dir=$ac_dir
2673    ac_install_sh="$ac_aux_dir/install-sh -c"
2674    break
2675  elif test -f "$ac_dir/install.sh"; then
2676    ac_aux_dir=$ac_dir
2677    ac_install_sh="$ac_aux_dir/install.sh -c"
2678    break
2679  elif test -f "$ac_dir/shtool"; then
2680    ac_aux_dir=$ac_dir
2681    ac_install_sh="$ac_aux_dir/shtool install -c"
2682    break
2683  fi
2684done
2685if test -z "$ac_aux_dir"; then
2686  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2687fi
2688
2689# These three variables are undocumented and unsupported,
2690# and are intended to be withdrawn in a future Autoconf release.
2691# They can cause serious problems if a builder's source tree is in a directory
2692# whose full name contains unusual characters.
2693ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2694ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2695ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2696
2697
2698# Make sure we can run config.sub.
2699$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2700  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2701
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2703$as_echo_n "checking build system type... " >&6; }
2704if ${ac_cv_build+:} false; then :
2705  $as_echo_n "(cached) " >&6
2706else
2707  ac_build_alias=$build_alias
2708test "x$ac_build_alias" = x &&
2709  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710test "x$ac_build_alias" = x &&
2711  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2712ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2713  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714
2715fi
2716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2717$as_echo "$ac_cv_build" >&6; }
2718case $ac_cv_build in
2719*-*-*) ;;
2720*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2721esac
2722build=$ac_cv_build
2723ac_save_IFS=$IFS; IFS='-'
2724set x $ac_cv_build
2725shift
2726build_cpu=$1
2727build_vendor=$2
2728shift; shift
2729# Remember, the first character of IFS is used to create $*,
2730# except with old shells:
2731build_os=$*
2732IFS=$ac_save_IFS
2733case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734
2735
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2737$as_echo_n "checking host system type... " >&6; }
2738if ${ac_cv_host+:} false; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test "x$host_alias" = x; then
2742  ac_cv_host=$ac_cv_build
2743else
2744  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2745    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2746fi
2747
2748fi
2749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2750$as_echo "$ac_cv_host" >&6; }
2751case $ac_cv_host in
2752*-*-*) ;;
2753*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2754esac
2755host=$ac_cv_host
2756ac_save_IFS=$IFS; IFS='-'
2757set x $ac_cv_host
2758shift
2759host_cpu=$1
2760host_vendor=$2
2761shift; shift
2762# Remember, the first character of IFS is used to create $*,
2763# except with old shells:
2764host_os=$*
2765IFS=$ac_save_IFS
2766case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2767
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2770$as_echo_n "checking target system type... " >&6; }
2771if ${ac_cv_target+:} false; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test "x$target_alias" = x; then
2775  ac_cv_target=$ac_cv_host
2776else
2777  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2778    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2779fi
2780
2781fi
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2783$as_echo "$ac_cv_target" >&6; }
2784case $ac_cv_target in
2785*-*-*) ;;
2786*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2787esac
2788target=$ac_cv_target
2789ac_save_IFS=$IFS; IFS='-'
2790set x $ac_cv_target
2791shift
2792target_cpu=$1
2793target_vendor=$2
2794shift; shift
2795# Remember, the first character of IFS is used to create $*,
2796# except with old shells:
2797target_os=$*
2798IFS=$ac_save_IFS
2799case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2800
2801
2802# The aliases save the names the user supplied, while $host etc.
2803# will get canonicalized.
2804test -n "$target_alias" &&
2805  test "$program_prefix$program_suffix$program_transform_name" = \
2806    NONENONEs,x,x, &&
2807  program_prefix=${target_alias}-
2808
2809program_prefix=NONE
2810am__api_version='1.12'
2811
2812# Find a good install program.  We prefer a C program (faster),
2813# so one script is as good as another.  But avoid the broken or
2814# incompatible versions:
2815# SysV /etc/install, /usr/sbin/install
2816# SunOS /usr/etc/install
2817# IRIX /sbin/install
2818# AIX /bin/install
2819# AmigaOS /C/install, which installs bootblocks on floppy discs
2820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2823# OS/2's system install, which has a completely different semantic
2824# ./install, which can be erroneously created by make from ./install.sh.
2825# Reject install programs that cannot install multiple files.
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2827$as_echo_n "checking for a BSD-compatible install... " >&6; }
2828if test -z "$INSTALL"; then
2829if ${ac_cv_path_install+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835  IFS=$as_save_IFS
2836  test -z "$as_dir" && as_dir=.
2837    # Account for people who put trailing slashes in PATH elements.
2838case $as_dir/ in #((
2839  ./ | .// | /[cC]/* | \
2840  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2841  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2842  /usr/ucb/* ) ;;
2843  *)
2844    # OSF1 and SCO ODT 3.0 have their own names for install.
2845    # Don't use installbsd from OSF since it installs stuff as root
2846    # by default.
2847    for ac_prog in ginstall scoinst install; do
2848      for ac_exec_ext in '' $ac_executable_extensions; do
2849	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2850	  if test $ac_prog = install &&
2851	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2852	    # AIX install.  It has an incompatible calling convention.
2853	    :
2854	  elif test $ac_prog = install &&
2855	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2856	    # program-specific install script used by HP pwplus--don't use.
2857	    :
2858	  else
2859	    rm -rf conftest.one conftest.two conftest.dir
2860	    echo one > conftest.one
2861	    echo two > conftest.two
2862	    mkdir conftest.dir
2863	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2864	      test -s conftest.one && test -s conftest.two &&
2865	      test -s conftest.dir/conftest.one &&
2866	      test -s conftest.dir/conftest.two
2867	    then
2868	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2869	      break 3
2870	    fi
2871	  fi
2872	fi
2873      done
2874    done
2875    ;;
2876esac
2877
2878  done
2879IFS=$as_save_IFS
2880
2881rm -rf conftest.one conftest.two conftest.dir
2882
2883fi
2884  if test "${ac_cv_path_install+set}" = set; then
2885    INSTALL=$ac_cv_path_install
2886  else
2887    # As a last resort, use the slow shell script.  Don't cache a
2888    # value for INSTALL within a source directory, because that will
2889    # break other packages using the cache if that directory is
2890    # removed, or if the value is a relative name.
2891    INSTALL=$ac_install_sh
2892  fi
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2895$as_echo "$INSTALL" >&6; }
2896
2897# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2898# It thinks the first close brace ends the variable substitution.
2899test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2900
2901test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2902
2903test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2904
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2906$as_echo_n "checking whether build environment is sane... " >&6; }
2907# Reject unsafe characters in $srcdir or the absolute working directory
2908# name.  Accept space and tab only in the latter.
2909am_lf='
2910'
2911case `pwd` in
2912  *[\\\"\#\$\&\'\`$am_lf]*)
2913    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2914esac
2915case $srcdir in
2916  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2917    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2918esac
2919
2920# Do 'set' in a subshell so we don't clobber the current shell's
2921# arguments.  Must try -L first in case configure is actually a
2922# symlink; some systems play weird games with the mod time of symlinks
2923# (eg FreeBSD returns the mod time of the symlink's containing
2924# directory).
2925if (
2926   am_has_slept=no
2927   for am_try in 1 2; do
2928     echo "timestamp, slept: $am_has_slept" > conftest.file
2929     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2930     if test "$*" = "X"; then
2931	# -L didn't work.
2932	set X `ls -t "$srcdir/configure" conftest.file`
2933     fi
2934     if test "$*" != "X $srcdir/configure conftest.file" \
2935	&& test "$*" != "X conftest.file $srcdir/configure"; then
2936
2937	# If neither matched, then we have a broken ls.  This can happen
2938	# if, for instance, CONFIG_SHELL is bash and it inherits a
2939	# broken ls alias from the environment.  This has actually
2940	# happened.  Such a system could not be considered "sane".
2941	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2942  alias in your environment" "$LINENO" 5
2943     fi
2944     if test "$2" = conftest.file || test $am_try -eq 2; then
2945       break
2946     fi
2947     # Just in case.
2948     sleep 1
2949     am_has_slept=yes
2950   done
2951   test "$2" = conftest.file
2952   )
2953then
2954   # Ok.
2955   :
2956else
2957   as_fn_error $? "newly created file is older than distributed files!
2958Check your system clock" "$LINENO" 5
2959fi
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2961$as_echo "yes" >&6; }
2962# If we didn't sleep, we still need to ensure time stamps of config.status and
2963# generated files are strictly newer.
2964am_sleep_pid=
2965if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2966  ( sleep 1 ) &
2967  am_sleep_pid=$!
2968fi
2969
2970rm -f conftest.file
2971
2972test "$program_prefix" != NONE &&
2973  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2974# Use a double $ so make ignores it.
2975test "$program_suffix" != NONE &&
2976  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2977# Double any \ or $.
2978# By default was `s,x,x', remove it if useless.
2979ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2980program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2981
2982# expand $ac_aux_dir to an absolute path
2983am_aux_dir=`cd $ac_aux_dir && pwd`
2984
2985if test x"${MISSING+set}" != xset; then
2986  case $am_aux_dir in
2987  *\ * | *\	*)
2988    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2989  *)
2990    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2991  esac
2992fi
2993# Use eval to expand $SHELL
2994if eval "$MISSING --run true"; then
2995  am_missing_run="$MISSING --run "
2996else
2997  am_missing_run=
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2999$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3000fi
3001
3002if test x"${install_sh}" != xset; then
3003  case $am_aux_dir in
3004  *\ * | *\	*)
3005    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3006  *)
3007    install_sh="\${SHELL} $am_aux_dir/install-sh"
3008  esac
3009fi
3010
3011# Installed binaries are usually stripped using 'strip' when the user
3012# run "make install-strip".  However 'strip' might not be the right
3013# tool to use in cross-compilation environments, therefore Automake
3014# will honor the 'STRIP' environment variable to overrule this program.
3015if test "$cross_compiling" != no; then
3016  if test -n "$ac_tool_prefix"; then
3017  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3018set dummy ${ac_tool_prefix}strip; ac_word=$2
3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020$as_echo_n "checking for $ac_word... " >&6; }
3021if ${ac_cv_prog_STRIP+:} false; then :
3022  $as_echo_n "(cached) " >&6
3023else
3024  if test -n "$STRIP"; then
3025  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3026else
3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028for as_dir in $PATH
3029do
3030  IFS=$as_save_IFS
3031  test -z "$as_dir" && as_dir=.
3032    for ac_exec_ext in '' $ac_executable_extensions; do
3033  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3036    break 2
3037  fi
3038done
3039  done
3040IFS=$as_save_IFS
3041
3042fi
3043fi
3044STRIP=$ac_cv_prog_STRIP
3045if test -n "$STRIP"; then
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3047$as_echo "$STRIP" >&6; }
3048else
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050$as_echo "no" >&6; }
3051fi
3052
3053
3054fi
3055if test -z "$ac_cv_prog_STRIP"; then
3056  ac_ct_STRIP=$STRIP
3057  # Extract the first word of "strip", so it can be a program name with args.
3058set dummy strip; ac_word=$2
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060$as_echo_n "checking for $ac_word... " >&6; }
3061if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3062  $as_echo_n "(cached) " >&6
3063else
3064  if test -n "$ac_ct_STRIP"; then
3065  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070  IFS=$as_save_IFS
3071  test -z "$as_dir" && as_dir=.
3072    for ac_exec_ext in '' $ac_executable_extensions; do
3073  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074    ac_cv_prog_ac_ct_STRIP="strip"
3075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076    break 2
3077  fi
3078done
3079  done
3080IFS=$as_save_IFS
3081
3082fi
3083fi
3084ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3085if test -n "$ac_ct_STRIP"; then
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3087$as_echo "$ac_ct_STRIP" >&6; }
3088else
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090$as_echo "no" >&6; }
3091fi
3092
3093  if test "x$ac_ct_STRIP" = x; then
3094    STRIP=":"
3095  else
3096    case $cross_compiling:$ac_tool_warned in
3097yes:)
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3100ac_tool_warned=yes ;;
3101esac
3102    STRIP=$ac_ct_STRIP
3103  fi
3104else
3105  STRIP="$ac_cv_prog_STRIP"
3106fi
3107
3108fi
3109INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3110
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3112$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3113if test -z "$MKDIR_P"; then
3114  if ${ac_cv_path_mkdir+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_prog in mkdir gmkdir; do
3123	 for ac_exec_ext in '' $ac_executable_extensions; do
3124	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3125	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3126	     'mkdir (GNU coreutils) '* | \
3127	     'mkdir (coreutils) '* | \
3128	     'mkdir (fileutils) '4.1*)
3129	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3130	       break 3;;
3131	   esac
3132	 done
3133       done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138
3139  test -d ./--version && rmdir ./--version
3140  if test "${ac_cv_path_mkdir+set}" = set; then
3141    MKDIR_P="$ac_cv_path_mkdir -p"
3142  else
3143    # As a last resort, use the slow shell script.  Don't cache a
3144    # value for MKDIR_P within a source directory, because that will
3145    # break other packages using the cache if that directory is
3146    # removed, or if the value is a relative name.
3147    MKDIR_P="$ac_install_sh -d"
3148  fi
3149fi
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3151$as_echo "$MKDIR_P" >&6; }
3152
3153for ac_prog in gawk mawk nawk awk
3154do
3155  # Extract the first word of "$ac_prog", so it can be a program name with args.
3156set dummy $ac_prog; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if ${ac_cv_prog_AWK+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$AWK"; then
3163  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3172    ac_cv_prog_AWK="$ac_prog"
3173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182AWK=$ac_cv_prog_AWK
3183if test -n "$AWK"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3185$as_echo "$AWK" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192  test -n "$AWK" && break
3193done
3194
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3196$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3197set x ${MAKE-make}
3198ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3199if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3200  $as_echo_n "(cached) " >&6
3201else
3202  cat >conftest.make <<\_ACEOF
3203SHELL = /bin/sh
3204all:
3205	@echo '@@@%%%=$(MAKE)=@@@%%%'
3206_ACEOF
3207# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3208case `${MAKE-make} -f conftest.make 2>/dev/null` in
3209  *@@@%%%=?*=@@@%%%*)
3210    eval ac_cv_prog_make_${ac_make}_set=yes;;
3211  *)
3212    eval ac_cv_prog_make_${ac_make}_set=no;;
3213esac
3214rm -f conftest.make
3215fi
3216if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3218$as_echo "yes" >&6; }
3219  SET_MAKE=
3220else
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222$as_echo "no" >&6; }
3223  SET_MAKE="MAKE=${MAKE-make}"
3224fi
3225
3226rm -rf .tst 2>/dev/null
3227mkdir .tst 2>/dev/null
3228if test -d .tst; then
3229  am__leading_dot=.
3230else
3231  am__leading_dot=_
3232fi
3233rmdir .tst 2>/dev/null
3234
3235if test "`cd $srcdir && pwd`" != "`pwd`"; then
3236  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3237  # is not polluted with repeated "-I."
3238  am__isrc=' -I$(srcdir)'
3239  # test to see if srcdir already configured
3240  if test -f $srcdir/config.status; then
3241    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3242  fi
3243fi
3244
3245# test whether we have cygpath
3246if test -z "$CYGPATH_W"; then
3247  if (cygpath --version) >/dev/null 2>/dev/null; then
3248    CYGPATH_W='cygpath -w'
3249  else
3250    CYGPATH_W=echo
3251  fi
3252fi
3253
3254
3255# Define the identity of the package.
3256
3257 PACKAGE=vmips
3258 VERSION=1.5.1
3259
3260
3261cat >>confdefs.h <<_ACEOF
3262#define PACKAGE "$PACKAGE"
3263_ACEOF
3264
3265
3266cat >>confdefs.h <<_ACEOF
3267#define VERSION "$VERSION"
3268_ACEOF
3269
3270# Some tools Automake needs.
3271
3272ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3273
3274
3275AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3276
3277
3278AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3279
3280
3281AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3282
3283
3284MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3285
3286# We need awk for the "check" target.  The system "awk" is bad on
3287# some platforms.
3288# Always define AMTAR for backward compatibility.  Yes, it's still used
3289# in the wild :-(  We should find a proper way to deprecate it ...
3290AMTAR='$${TAR-tar}'
3291
3292am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3293
3294
3295
3296
3297
3298ac_config_headers="$ac_config_headers config.h"
3299
3300
3301
3302# Check whether --with-mips was given.
3303if test "${with_mips+set}" = set; then :
3304  withval=$with_mips; mipsdir="$withval"
3305else
3306  mipsdir="/opt/mips"
3307fi
3308
3309
3310# Check whether --with-mips-bin was given.
3311if test "${with_mips_bin+set}" = set; then :
3312  withval=$with_mips_bin; mipsbin="$withval"
3313else
3314  mipsbin="${mipsdir}/bin"
3315fi
3316
3317test -d "$mipsdir" || \
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mips directory \"$mipsdir\" does not exist" >&5
3319$as_echo "$as_me: WARNING: --with-mips directory \"$mipsdir\" does not exist" >&2;}
3320test -d "$mipsbin" || \
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-mips-bin directory \"$mipsbin\" does not exist" >&5
3322$as_echo "$as_me: WARNING: --with-mips-bin directory \"$mipsbin\" does not exist" >&2;}
3323
3324ac_ext=c
3325ac_cpp='$CPP $CPPFLAGS'
3326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329if test -n "$ac_tool_prefix"; then
3330  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3331set dummy ${ac_tool_prefix}gcc; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if ${ac_cv_prog_CC+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  if test -n "$CC"; then
3338  ac_cv_prog_CC="$CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357CC=$ac_cv_prog_CC
3358if test -n "$CC"; then
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360$as_echo "$CC" >&6; }
3361else
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366
3367fi
3368if test -z "$ac_cv_prog_CC"; then
3369  ac_ct_CC=$CC
3370  # Extract the first word of "gcc", so it can be a program name with args.
3371set dummy gcc; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_ac_ct_CC+:} false; then :
3375  $as_echo_n "(cached) " >&6
3376else
3377  if test -n "$ac_ct_CC"; then
3378  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383  IFS=$as_save_IFS
3384  test -z "$as_dir" && as_dir=.
3385    for ac_exec_ext in '' $ac_executable_extensions; do
3386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387    ac_cv_prog_ac_ct_CC="gcc"
3388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392  done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397ac_ct_CC=$ac_cv_prog_ac_ct_CC
3398if test -n "$ac_ct_CC"; then
3399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3400$as_echo "$ac_ct_CC" >&6; }
3401else
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406  if test "x$ac_ct_CC" = x; then
3407    CC=""
3408  else
3409    case $cross_compiling:$ac_tool_warned in
3410yes:)
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3413ac_tool_warned=yes ;;
3414esac
3415    CC=$ac_ct_CC
3416  fi
3417else
3418  CC="$ac_cv_prog_CC"
3419fi
3420
3421if test -z "$CC"; then
3422          if test -n "$ac_tool_prefix"; then
3423    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3424set dummy ${ac_tool_prefix}cc; ac_word=$2
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426$as_echo_n "checking for $ac_word... " >&6; }
3427if ${ac_cv_prog_CC+:} false; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430  if test -n "$CC"; then
3431  ac_cv_prog_CC="$CC" # Let the user override the test.
3432else
3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434for as_dir in $PATH
3435do
3436  IFS=$as_save_IFS
3437  test -z "$as_dir" && as_dir=.
3438    for ac_exec_ext in '' $ac_executable_extensions; do
3439  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3440    ac_cv_prog_CC="${ac_tool_prefix}cc"
3441    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3442    break 2
3443  fi
3444done
3445  done
3446IFS=$as_save_IFS
3447
3448fi
3449fi
3450CC=$ac_cv_prog_CC
3451if test -n "$CC"; then
3452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3453$as_echo "$CC" >&6; }
3454else
3455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456$as_echo "no" >&6; }
3457fi
3458
3459
3460  fi
3461fi
3462if test -z "$CC"; then
3463  # Extract the first word of "cc", so it can be a program name with args.
3464set dummy cc; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if ${ac_cv_prog_CC+:} false; then :
3468  $as_echo_n "(cached) " >&6
3469else
3470  if test -n "$CC"; then
3471  ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
3473  ac_prog_rejected=no
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3481    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3482       ac_prog_rejected=yes
3483       continue
3484     fi
3485    ac_cv_prog_CC="cc"
3486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487    break 2
3488  fi
3489done
3490  done
3491IFS=$as_save_IFS
3492
3493if test $ac_prog_rejected = yes; then
3494  # We found a bogon in the path, so make sure we never use it.
3495  set dummy $ac_cv_prog_CC
3496  shift
3497  if test $# != 0; then
3498    # We chose a different compiler from the bogus one.
3499    # However, it has the same basename, so the bogon will be chosen
3500    # first if we set CC to just the basename; use the full file name.
3501    shift
3502    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3503  fi
3504fi
3505fi
3506fi
3507CC=$ac_cv_prog_CC
3508if test -n "$CC"; then
3509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3510$as_echo "$CC" >&6; }
3511else
3512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513$as_echo "no" >&6; }
3514fi
3515
3516
3517fi
3518if test -z "$CC"; then
3519  if test -n "$ac_tool_prefix"; then
3520  for ac_prog in cl.exe
3521  do
3522    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3523set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525$as_echo_n "checking for $ac_word... " >&6; }
3526if ${ac_cv_prog_CC+:} false; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  if test -n "$CC"; then
3530  ac_cv_prog_CC="$CC" # Let the user override the test.
3531else
3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533for as_dir in $PATH
3534do
3535  IFS=$as_save_IFS
3536  test -z "$as_dir" && as_dir=.
3537    for ac_exec_ext in '' $ac_executable_extensions; do
3538  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3540    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541    break 2
3542  fi
3543done
3544  done
3545IFS=$as_save_IFS
3546
3547fi
3548fi
3549CC=$ac_cv_prog_CC
3550if test -n "$CC"; then
3551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552$as_echo "$CC" >&6; }
3553else
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556fi
3557
3558
3559    test -n "$CC" && break
3560  done
3561fi
3562if test -z "$CC"; then
3563  ac_ct_CC=$CC
3564  for ac_prog in cl.exe
3565do
3566  # Extract the first word of "$ac_prog", so it can be a program name with args.
3567set dummy $ac_prog; ac_word=$2
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569$as_echo_n "checking for $ac_word... " >&6; }
3570if ${ac_cv_prog_ac_ct_CC+:} false; then :
3571  $as_echo_n "(cached) " >&6
3572else
3573  if test -n "$ac_ct_CC"; then
3574  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3575else
3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH
3578do
3579  IFS=$as_save_IFS
3580  test -z "$as_dir" && as_dir=.
3581    for ac_exec_ext in '' $ac_executable_extensions; do
3582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3583    ac_cv_prog_ac_ct_CC="$ac_prog"
3584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585    break 2
3586  fi
3587done
3588  done
3589IFS=$as_save_IFS
3590
3591fi
3592fi
3593ac_ct_CC=$ac_cv_prog_ac_ct_CC
3594if test -n "$ac_ct_CC"; then
3595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3596$as_echo "$ac_ct_CC" >&6; }
3597else
3598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599$as_echo "no" >&6; }
3600fi
3601
3602
3603  test -n "$ac_ct_CC" && break
3604done
3605
3606  if test "x$ac_ct_CC" = x; then
3607    CC=""
3608  else
3609    case $cross_compiling:$ac_tool_warned in
3610yes:)
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613ac_tool_warned=yes ;;
3614esac
3615    CC=$ac_ct_CC
3616  fi
3617fi
3618
3619fi
3620
3621
3622test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624as_fn_error $? "no acceptable C compiler found in \$PATH
3625See \`config.log' for more details" "$LINENO" 5; }
3626
3627# Provide some information about the compiler.
3628$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3629set X $ac_compile
3630ac_compiler=$2
3631for ac_option in --version -v -V -qversion; do
3632  { { ac_try="$ac_compiler $ac_option >&5"
3633case "(($ac_try" in
3634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635  *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638$as_echo "$ac_try_echo"; } >&5
3639  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3640  ac_status=$?
3641  if test -s conftest.err; then
3642    sed '10a\
3643... rest of stderr output deleted ...
3644         10q' conftest.err >conftest.er1
3645    cat conftest.er1 >&5
3646  fi
3647  rm -f conftest.er1 conftest.err
3648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649  test $ac_status = 0; }
3650done
3651
3652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h.  */
3654
3655int
3656main ()
3657{
3658
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663ac_clean_files_save=$ac_clean_files
3664ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3665# Try to create an executable without -o first, disregard a.out.
3666# It will help us diagnose broken compilers, and finding out an intuition
3667# of exeext.
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3669$as_echo_n "checking whether the C compiler works... " >&6; }
3670ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3671
3672# The possible output files:
3673ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3674
3675ac_rmfiles=
3676for ac_file in $ac_files
3677do
3678  case $ac_file in
3679    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3680    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3681  esac
3682done
3683rm -f $ac_rmfiles
3684
3685if { { ac_try="$ac_link_default"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691$as_echo "$ac_try_echo"; } >&5
3692  (eval "$ac_link_default") 2>&5
3693  ac_status=$?
3694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695  test $ac_status = 0; }; then :
3696  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3697# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3698# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3699# so that the user can short-circuit this test for compilers unknown to
3700# Autoconf.
3701for ac_file in $ac_files ''
3702do
3703  test -f "$ac_file" || continue
3704  case $ac_file in
3705    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3706	;;
3707    [ab].out )
3708	# We found the default executable, but exeext='' is most
3709	# certainly right.
3710	break;;
3711    *.* )
3712	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3713	then :; else
3714	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715	fi
3716	# We set ac_cv_exeext here because the later test for it is not
3717	# safe: cross compilers may not add the suffix if given an `-o'
3718	# argument, so we may need to know it at that point already.
3719	# Even if this section looks crufty: it has the advantage of
3720	# actually working.
3721	break;;
3722    * )
3723	break;;
3724  esac
3725done
3726test "$ac_cv_exeext" = no && ac_cv_exeext=
3727
3728else
3729  ac_file=''
3730fi
3731if test -z "$ac_file"; then :
3732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733$as_echo "no" >&6; }
3734$as_echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739as_fn_error 77 "C compiler cannot create executables
3740See \`config.log' for more details" "$LINENO" 5; }
3741else
3742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3743$as_echo "yes" >&6; }
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3746$as_echo_n "checking for C compiler default output file name... " >&6; }
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3748$as_echo "$ac_file" >&6; }
3749ac_exeext=$ac_cv_exeext
3750
3751rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3752ac_clean_files=$ac_clean_files_save
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3754$as_echo_n "checking for suffix of executables... " >&6; }
3755if { { ac_try="$ac_link"
3756case "(($ac_try" in
3757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758  *) ac_try_echo=$ac_try;;
3759esac
3760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761$as_echo "$ac_try_echo"; } >&5
3762  (eval "$ac_link") 2>&5
3763  ac_status=$?
3764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765  test $ac_status = 0; }; then :
3766  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3767# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3768# work properly (i.e., refer to `conftest.exe'), while it won't with
3769# `rm'.
3770for ac_file in conftest.exe conftest conftest.*; do
3771  test -f "$ac_file" || continue
3772  case $ac_file in
3773    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775	  break;;
3776    * ) break;;
3777  esac
3778done
3779else
3780  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3782as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3783See \`config.log' for more details" "$LINENO" 5; }
3784fi
3785rm -f conftest conftest$ac_cv_exeext
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3787$as_echo "$ac_cv_exeext" >&6; }
3788
3789rm -f conftest.$ac_ext
3790EXEEXT=$ac_cv_exeext
3791ac_exeext=$EXEEXT
3792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793/* end confdefs.h.  */
3794#include <stdio.h>
3795int
3796main ()
3797{
3798FILE *f = fopen ("conftest.out", "w");
3799 return ferror (f) || fclose (f) != 0;
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805ac_clean_files="$ac_clean_files conftest.out"
3806# Check that the compiler produces executables we can run.  If not, either
3807# the compiler is broken, or we cross compile.
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3809$as_echo_n "checking whether we are cross compiling... " >&6; }
3810if test "$cross_compiling" != yes; then
3811  { { ac_try="$ac_link"
3812case "(($ac_try" in
3813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814  *) ac_try_echo=$ac_try;;
3815esac
3816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817$as_echo "$ac_try_echo"; } >&5
3818  (eval "$ac_link") 2>&5
3819  ac_status=$?
3820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821  test $ac_status = 0; }
3822  if { ac_try='./conftest$ac_cv_exeext'
3823  { { case "(($ac_try" in
3824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825  *) ac_try_echo=$ac_try;;
3826esac
3827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828$as_echo "$ac_try_echo"; } >&5
3829  (eval "$ac_try") 2>&5
3830  ac_status=$?
3831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832  test $ac_status = 0; }; }; then
3833    cross_compiling=no
3834  else
3835    if test "$cross_compiling" = maybe; then
3836	cross_compiling=yes
3837    else
3838	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840as_fn_error $? "cannot run C compiled programs.
3841If you meant to cross compile, use \`--host'.
3842See \`config.log' for more details" "$LINENO" 5; }
3843    fi
3844  fi
3845fi
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3847$as_echo "$cross_compiling" >&6; }
3848
3849rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3850ac_clean_files=$ac_clean_files_save
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3852$as_echo_n "checking for suffix of object files... " >&6; }
3853if ${ac_cv_objext+:} false; then :
3854  $as_echo_n "(cached) " >&6
3855else
3856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858
3859int
3860main ()
3861{
3862
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867rm -f conftest.o conftest.obj
3868if { { ac_try="$ac_compile"
3869case "(($ac_try" in
3870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871  *) ac_try_echo=$ac_try;;
3872esac
3873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874$as_echo "$ac_try_echo"; } >&5
3875  (eval "$ac_compile") 2>&5
3876  ac_status=$?
3877  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878  test $ac_status = 0; }; then :
3879  for ac_file in conftest.o conftest.obj conftest.*; do
3880  test -f "$ac_file" || continue;
3881  case $ac_file in
3882    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3883    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3884       break;;
3885  esac
3886done
3887else
3888  $as_echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893as_fn_error $? "cannot compute suffix of object files: cannot compile
3894See \`config.log' for more details" "$LINENO" 5; }
3895fi
3896rm -f conftest.$ac_cv_objext conftest.$ac_ext
3897fi
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3899$as_echo "$ac_cv_objext" >&6; }
3900OBJEXT=$ac_cv_objext
3901ac_objext=$OBJEXT
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3903$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3904if ${ac_cv_c_compiler_gnu+:} false; then :
3905  $as_echo_n "(cached) " >&6
3906else
3907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913#ifndef __GNUC__
3914       choke me
3915#endif
3916
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921if ac_fn_c_try_compile "$LINENO"; then :
3922  ac_compiler_gnu=yes
3923else
3924  ac_compiler_gnu=no
3925fi
3926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927ac_cv_c_compiler_gnu=$ac_compiler_gnu
3928
3929fi
3930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3931$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3932if test $ac_compiler_gnu = yes; then
3933  GCC=yes
3934else
3935  GCC=
3936fi
3937ac_test_CFLAGS=${CFLAGS+set}
3938ac_save_CFLAGS=$CFLAGS
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3940$as_echo_n "checking whether $CC accepts -g... " >&6; }
3941if ${ac_cv_prog_cc_g+:} false; then :
3942  $as_echo_n "(cached) " >&6
3943else
3944  ac_save_c_werror_flag=$ac_c_werror_flag
3945   ac_c_werror_flag=yes
3946   ac_cv_prog_cc_g=no
3947   CFLAGS="-g"
3948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949/* end confdefs.h.  */
3950
3951int
3952main ()
3953{
3954
3955  ;
3956  return 0;
3957}
3958_ACEOF
3959if ac_fn_c_try_compile "$LINENO"; then :
3960  ac_cv_prog_cc_g=yes
3961else
3962  CFLAGS=""
3963      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h.  */
3965
3966int
3967main ()
3968{
3969
3970  ;
3971  return 0;
3972}
3973_ACEOF
3974if ac_fn_c_try_compile "$LINENO"; then :
3975
3976else
3977  ac_c_werror_flag=$ac_save_c_werror_flag
3978	 CFLAGS="-g"
3979	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h.  */
3981
3982int
3983main ()
3984{
3985
3986  ;
3987  return 0;
3988}
3989_ACEOF
3990if ac_fn_c_try_compile "$LINENO"; then :
3991  ac_cv_prog_cc_g=yes
3992fi
3993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994fi
3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996fi
3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998   ac_c_werror_flag=$ac_save_c_werror_flag
3999fi
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4001$as_echo "$ac_cv_prog_cc_g" >&6; }
4002if test "$ac_test_CFLAGS" = set; then
4003  CFLAGS=$ac_save_CFLAGS
4004elif test $ac_cv_prog_cc_g = yes; then
4005  if test "$GCC" = yes; then
4006    CFLAGS="-g -O2"
4007  else
4008    CFLAGS="-g"
4009  fi
4010else
4011  if test "$GCC" = yes; then
4012    CFLAGS="-O2"
4013  else
4014    CFLAGS=
4015  fi
4016fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4018$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4019if ${ac_cv_prog_cc_c89+:} false; then :
4020  $as_echo_n "(cached) " >&6
4021else
4022  ac_cv_prog_cc_c89=no
4023ac_save_CC=$CC
4024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h.  */
4026#include <stdarg.h>
4027#include <stdio.h>
4028struct stat;
4029/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4030struct buf { int x; };
4031FILE * (*rcsopen) (struct buf *, struct stat *, int);
4032static char *e (p, i)
4033     char **p;
4034     int i;
4035{
4036  return p[i];
4037}
4038static char *f (char * (*g) (char **, int), char **p, ...)
4039{
4040  char *s;
4041  va_list v;
4042  va_start (v,p);
4043  s = g (p, va_arg (v,int));
4044  va_end (v);
4045  return s;
4046}
4047
4048/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4049   function prototypes and stuff, but not '\xHH' hex character constants.
4050   These don't provoke an error unfortunately, instead are silently treated
4051   as 'x'.  The following induces an error, until -std is added to get
4052   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4053   array size at least.  It's necessary to write '\x00'==0 to get something
4054   that's true only with -std.  */
4055int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4056
4057/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4058   inside strings and character constants.  */
4059#define FOO(x) 'x'
4060int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4061
4062int test (int i, double x);
4063struct s1 {int (*f) (int a);};
4064struct s2 {int (*f) (double a);};
4065int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4066int argc;
4067char **argv;
4068int
4069main ()
4070{
4071return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4077	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4078do
4079  CC="$ac_save_CC $ac_arg"
4080  if ac_fn_c_try_compile "$LINENO"; then :
4081  ac_cv_prog_cc_c89=$ac_arg
4082fi
4083rm -f core conftest.err conftest.$ac_objext
4084  test "x$ac_cv_prog_cc_c89" != "xno" && break
4085done
4086rm -f conftest.$ac_ext
4087CC=$ac_save_CC
4088
4089fi
4090# AC_CACHE_VAL
4091case "x$ac_cv_prog_cc_c89" in
4092  x)
4093    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4094$as_echo "none needed" >&6; } ;;
4095  xno)
4096    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4097$as_echo "unsupported" >&6; } ;;
4098  *)
4099    CC="$CC $ac_cv_prog_cc_c89"
4100    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4101$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4102esac
4103if test "x$ac_cv_prog_cc_c89" != xno; then :
4104
4105fi
4106
4107ac_ext=c
4108ac_cpp='$CPP $CPPFLAGS'
4109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112DEPDIR="${am__leading_dot}deps"
4113
4114ac_config_commands="$ac_config_commands depfiles"
4115
4116
4117am_make=${MAKE-make}
4118cat > confinc << 'END'
4119am__doit:
4120	@echo this is the am__doit target
4121.PHONY: am__doit
4122END
4123# If we don't find an include directive, just comment out the code.
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4125$as_echo_n "checking for style of include used by $am_make... " >&6; }
4126am__include="#"
4127am__quote=
4128_am_result=none
4129# First try GNU make style include.
4130echo "include confinc" > confmf
4131# Ignore all kinds of additional output from 'make'.
4132case `$am_make -s -f confmf 2> /dev/null` in #(
4133*the\ am__doit\ target*)
4134  am__include=include
4135  am__quote=
4136  _am_result=GNU
4137  ;;
4138esac
4139# Now try BSD make style include.
4140if test "$am__include" = "#"; then
4141   echo '.include "confinc"' > confmf
4142   case `$am_make -s -f confmf 2> /dev/null` in #(
4143   *the\ am__doit\ target*)
4144     am__include=.include
4145     am__quote="\""
4146     _am_result=BSD
4147     ;;
4148   esac
4149fi
4150
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4153$as_echo "$_am_result" >&6; }
4154rm -f confinc confmf
4155
4156# Check whether --enable-dependency-tracking was given.
4157if test "${enable_dependency_tracking+set}" = set; then :
4158  enableval=$enable_dependency_tracking;
4159fi
4160
4161if test "x$enable_dependency_tracking" != xno; then
4162  am_depcomp="$ac_aux_dir/depcomp"
4163  AMDEPBACKSLASH='\'
4164  am__nodep='_no'
4165fi
4166 if test "x$enable_dependency_tracking" != xno; then
4167  AMDEP_TRUE=
4168  AMDEP_FALSE='#'
4169else
4170  AMDEP_TRUE='#'
4171  AMDEP_FALSE=
4172fi
4173
4174
4175
4176depcc="$CC"   am_compiler_list=
4177
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4179$as_echo_n "checking dependency style of $depcc... " >&6; }
4180if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4184  # We make a subdir and do the tests there.  Otherwise we can end up
4185  # making bogus files that we don't know about and never remove.  For
4186  # instance it was reported that on HP-UX the gcc test will end up
4187  # making a dummy file named 'D' -- because '-MD' means "put the output
4188  # in D".
4189  rm -rf conftest.dir
4190  mkdir conftest.dir
4191  # Copy depcomp to subdir because otherwise we won't find it if we're
4192  # using a relative directory.
4193  cp "$am_depcomp" conftest.dir
4194  cd conftest.dir
4195  # We will build objects and dependencies in a subdirectory because
4196  # it helps to detect inapplicable dependency modes.  For instance
4197  # both Tru64's cc and ICC support -MD to output dependencies as a
4198  # side effect of compilation, but ICC will put the dependencies in
4199  # the current directory while Tru64 will put them in the object
4200  # directory.
4201  mkdir sub
4202
4203  am_cv_CC_dependencies_compiler_type=none
4204  if test "$am_compiler_list" = ""; then
4205     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4206  fi
4207  am__universal=false
4208  case " $depcc " in #(
4209     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4210     esac
4211
4212  for depmode in $am_compiler_list; do
4213    # Setup a source with many dependencies, because some compilers
4214    # like to wrap large dependency lists on column 80 (with \), and
4215    # we should not choose a depcomp mode which is confused by this.
4216    #
4217    # We need to recreate these files for each test, as the compiler may
4218    # overwrite some of them when testing with obscure command lines.
4219    # This happens at least with the AIX C compiler.
4220    : > sub/conftest.c
4221    for i in 1 2 3 4 5 6; do
4222      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4223      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4224      # Solaris 10 /bin/sh.
4225      echo '/* dummy */' > sub/conftst$i.h
4226    done
4227    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4228
4229    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4230    # mode.  It turns out that the SunPro C++ compiler does not properly
4231    # handle '-M -o', and we need to detect this.  Also, some Intel
4232    # versions had trouble with output in subdirs.
4233    am__obj=sub/conftest.${OBJEXT-o}
4234    am__minus_obj="-o $am__obj"
4235    case $depmode in
4236    gcc)
4237      # This depmode causes a compiler race in universal mode.
4238      test "$am__universal" = false || continue
4239      ;;
4240    nosideeffect)
4241      # After this tag, mechanisms are not by side-effect, so they'll
4242      # only be used when explicitly requested.
4243      if test "x$enable_dependency_tracking" = xyes; then
4244	continue
4245      else
4246	break
4247      fi
4248      ;;
4249    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4250      # This compiler won't grok '-c -o', but also, the minuso test has
4251      # not run yet.  These depmodes are late enough in the game, and
4252      # so weak that their functioning should not be impacted.
4253      am__obj=conftest.${OBJEXT-o}
4254      am__minus_obj=
4255      ;;
4256    none) break ;;
4257    esac
4258    if depmode=$depmode \
4259       source=sub/conftest.c object=$am__obj \
4260       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4261       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4262         >/dev/null 2>conftest.err &&
4263       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4264       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4265       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4266       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4267      # icc doesn't choke on unknown options, it will just issue warnings
4268      # or remarks (even with -Werror).  So we grep stderr for any message
4269      # that says an option was ignored or not supported.
4270      # When given -MP, icc 7.0 and 7.1 complain thusly:
4271      #   icc: Command line warning: ignoring option '-M'; no argument required
4272      # The diagnosis changed in icc 8.0:
4273      #   icc: Command line remark: option '-MP' not supported
4274      if (grep 'ignoring option' conftest.err ||
4275          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4276        am_cv_CC_dependencies_compiler_type=$depmode
4277        break
4278      fi
4279    fi
4280  done
4281
4282  cd ..
4283  rm -rf conftest.dir
4284else
4285  am_cv_CC_dependencies_compiler_type=none
4286fi
4287
4288fi
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4290$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4291CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4292
4293 if
4294  test "x$enable_dependency_tracking" != xno \
4295  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4296  am__fastdepCC_TRUE=
4297  am__fastdepCC_FALSE='#'
4298else
4299  am__fastdepCC_TRUE='#'
4300  am__fastdepCC_FALSE=
4301fi
4302
4303
4304
4305
4306ac_ext=c
4307ac_cpp='$CPP $CPPFLAGS'
4308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4312$as_echo_n "checking how to run the C preprocessor... " >&6; }
4313# On Suns, sometimes $CPP names a directory.
4314if test -n "$CPP" && test -d "$CPP"; then
4315  CPP=
4316fi
4317if test -z "$CPP"; then
4318  if ${ac_cv_prog_CPP+:} false; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321      # Double quotes because CPP needs to be expanded
4322    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4323    do
4324      ac_preproc_ok=false
4325for ac_c_preproc_warn_flag in '' yes
4326do
4327  # Use a header file that comes with gcc, so configuring glibc
4328  # with a fresh cross-compiler works.
4329  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4330  # <limits.h> exists even on freestanding compilers.
4331  # On the NeXT, cc -E runs the code through the compiler's parser,
4332  # not just through cpp. "Syntax error" is here to catch this case.
4333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335#ifdef __STDC__
4336# include <limits.h>
4337#else
4338# include <assert.h>
4339#endif
4340		     Syntax error
4341_ACEOF
4342if ac_fn_c_try_cpp "$LINENO"; then :
4343
4344else
4345  # Broken: fails on valid input.
4346continue
4347fi
4348rm -f conftest.err conftest.i conftest.$ac_ext
4349
4350  # OK, works on sane cases.  Now check whether nonexistent headers
4351  # can be detected and how.
4352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h.  */
4354#include <ac_nonexistent.h>
4355_ACEOF
4356if ac_fn_c_try_cpp "$LINENO"; then :
4357  # Broken: success on invalid input.
4358continue
4359else
4360  # Passes both tests.
4361ac_preproc_ok=:
4362break
4363fi
4364rm -f conftest.err conftest.i conftest.$ac_ext
4365
4366done
4367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4368rm -f conftest.i conftest.err conftest.$ac_ext
4369if $ac_preproc_ok; then :
4370  break
4371fi
4372
4373    done
4374    ac_cv_prog_CPP=$CPP
4375
4376fi
4377  CPP=$ac_cv_prog_CPP
4378else
4379  ac_cv_prog_CPP=$CPP
4380fi
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4382$as_echo "$CPP" >&6; }
4383ac_preproc_ok=false
4384for ac_c_preproc_warn_flag in '' yes
4385do
4386  # Use a header file that comes with gcc, so configuring glibc
4387  # with a fresh cross-compiler works.
4388  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4389  # <limits.h> exists even on freestanding compilers.
4390  # On the NeXT, cc -E runs the code through the compiler's parser,
4391  # not just through cpp. "Syntax error" is here to catch this case.
4392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393/* end confdefs.h.  */
4394#ifdef __STDC__
4395# include <limits.h>
4396#else
4397# include <assert.h>
4398#endif
4399		     Syntax error
4400_ACEOF
4401if ac_fn_c_try_cpp "$LINENO"; then :
4402
4403else
4404  # Broken: fails on valid input.
4405continue
4406fi
4407rm -f conftest.err conftest.i conftest.$ac_ext
4408
4409  # OK, works on sane cases.  Now check whether nonexistent headers
4410  # can be detected and how.
4411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412/* end confdefs.h.  */
4413#include <ac_nonexistent.h>
4414_ACEOF
4415if ac_fn_c_try_cpp "$LINENO"; then :
4416  # Broken: success on invalid input.
4417continue
4418else
4419  # Passes both tests.
4420ac_preproc_ok=:
4421break
4422fi
4423rm -f conftest.err conftest.i conftest.$ac_ext
4424
4425done
4426# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4427rm -f conftest.i conftest.err conftest.$ac_ext
4428if $ac_preproc_ok; then :
4429
4430else
4431  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4433as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4434See \`config.log' for more details" "$LINENO" 5; }
4435fi
4436
4437ac_ext=c
4438ac_cpp='$CPP $CPPFLAGS'
4439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4445$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4446if ${ac_cv_path_GREP+:} false; then :
4447  $as_echo_n "(cached) " >&6
4448else
4449  if test -z "$GREP"; then
4450  ac_path_GREP_found=false
4451  # Loop through the user's path and test for each of PROGNAME-LIST
4452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457    for ac_prog in grep ggrep; do
4458    for ac_exec_ext in '' $ac_executable_extensions; do
4459      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4460      as_fn_executable_p "$ac_path_GREP" || continue
4461# Check for GNU ac_path_GREP and select it if it is found.
4462  # Check for GNU $ac_path_GREP
4463case `"$ac_path_GREP" --version 2>&1` in
4464*GNU*)
4465  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4466*)
4467  ac_count=0
4468  $as_echo_n 0123456789 >"conftest.in"
4469  while :
4470  do
4471    cat "conftest.in" "conftest.in" >"conftest.tmp"
4472    mv "conftest.tmp" "conftest.in"
4473    cp "conftest.in" "conftest.nl"
4474    $as_echo 'GREP' >> "conftest.nl"
4475    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4476    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4477    as_fn_arith $ac_count + 1 && ac_count=$as_val
4478    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4479      # Best one so far, save it but keep looking for a better one
4480      ac_cv_path_GREP="$ac_path_GREP"
4481      ac_path_GREP_max=$ac_count
4482    fi
4483    # 10*(2^10) chars as input seems more than enough
4484    test $ac_count -gt 10 && break
4485  done
4486  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487esac
4488
4489      $ac_path_GREP_found && break 3
4490    done
4491  done
4492  done
4493IFS=$as_save_IFS
4494  if test -z "$ac_cv_path_GREP"; then
4495    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4496  fi
4497else
4498  ac_cv_path_GREP=$GREP
4499fi
4500
4501fi
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4503$as_echo "$ac_cv_path_GREP" >&6; }
4504 GREP="$ac_cv_path_GREP"
4505
4506
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4508$as_echo_n "checking for egrep... " >&6; }
4509if ${ac_cv_path_EGREP+:} false; then :
4510  $as_echo_n "(cached) " >&6
4511else
4512  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513   then ac_cv_path_EGREP="$GREP -E"
4514   else
4515     if test -z "$EGREP"; then
4516  ac_path_EGREP_found=false
4517  # Loop through the user's path and test for each of PROGNAME-LIST
4518  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4520do
4521  IFS=$as_save_IFS
4522  test -z "$as_dir" && as_dir=.
4523    for ac_prog in egrep; do
4524    for ac_exec_ext in '' $ac_executable_extensions; do
4525      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4526      as_fn_executable_p "$ac_path_EGREP" || continue
4527# Check for GNU ac_path_EGREP and select it if it is found.
4528  # Check for GNU $ac_path_EGREP
4529case `"$ac_path_EGREP" --version 2>&1` in
4530*GNU*)
4531  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4532*)
4533  ac_count=0
4534  $as_echo_n 0123456789 >"conftest.in"
4535  while :
4536  do
4537    cat "conftest.in" "conftest.in" >"conftest.tmp"
4538    mv "conftest.tmp" "conftest.in"
4539    cp "conftest.in" "conftest.nl"
4540    $as_echo 'EGREP' >> "conftest.nl"
4541    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543    as_fn_arith $ac_count + 1 && ac_count=$as_val
4544    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4545      # Best one so far, save it but keep looking for a better one
4546      ac_cv_path_EGREP="$ac_path_EGREP"
4547      ac_path_EGREP_max=$ac_count
4548    fi
4549    # 10*(2^10) chars as input seems more than enough
4550    test $ac_count -gt 10 && break
4551  done
4552  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553esac
4554
4555      $ac_path_EGREP_found && break 3
4556    done
4557  done
4558  done
4559IFS=$as_save_IFS
4560  if test -z "$ac_cv_path_EGREP"; then
4561    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4562  fi
4563else
4564  ac_cv_path_EGREP=$EGREP
4565fi
4566
4567   fi
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4570$as_echo "$ac_cv_path_EGREP" >&6; }
4571 EGREP="$ac_cv_path_EGREP"
4572
4573
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4575$as_echo_n "checking for ANSI C header files... " >&6; }
4576if ${ac_cv_header_stdc+:} false; then :
4577  $as_echo_n "(cached) " >&6
4578else
4579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581#include <stdlib.h>
4582#include <stdarg.h>
4583#include <string.h>
4584#include <float.h>
4585
4586int
4587main ()
4588{
4589
4590  ;
4591  return 0;
4592}
4593_ACEOF
4594if ac_fn_c_try_compile "$LINENO"; then :
4595  ac_cv_header_stdc=yes
4596else
4597  ac_cv_header_stdc=no
4598fi
4599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600
4601if test $ac_cv_header_stdc = yes; then
4602  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h.  */
4605#include <string.h>
4606
4607_ACEOF
4608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4609  $EGREP "memchr" >/dev/null 2>&1; then :
4610
4611else
4612  ac_cv_header_stdc=no
4613fi
4614rm -f conftest*
4615
4616fi
4617
4618if test $ac_cv_header_stdc = yes; then
4619  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h.  */
4622#include <stdlib.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626  $EGREP "free" >/dev/null 2>&1; then :
4627
4628else
4629  ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637  if test "$cross_compiling" = yes; then :
4638  :
4639else
4640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641/* end confdefs.h.  */
4642#include <ctype.h>
4643#include <stdlib.h>
4644#if ((' ' & 0x0FF) == 0x020)
4645# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4646# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4647#else
4648# define ISLOWER(c) \
4649		   (('a' <= (c) && (c) <= 'i') \
4650		     || ('j' <= (c) && (c) <= 'r') \
4651		     || ('s' <= (c) && (c) <= 'z'))
4652# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653#endif
4654
4655#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4656int
4657main ()
4658{
4659  int i;
4660  for (i = 0; i < 256; i++)
4661    if (XOR (islower (i), ISLOWER (i))
4662	|| toupper (i) != TOUPPER (i))
4663      return 2;
4664  return 0;
4665}
4666_ACEOF
4667if ac_fn_c_try_run "$LINENO"; then :
4668
4669else
4670  ac_cv_header_stdc=no
4671fi
4672rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4673  conftest.$ac_objext conftest.beam conftest.$ac_ext
4674fi
4675
4676fi
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4679$as_echo "$ac_cv_header_stdc" >&6; }
4680if test $ac_cv_header_stdc = yes; then
4681
4682$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4683
4684fi
4685
4686# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4687for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4688		  inttypes.h stdint.h unistd.h
4689do :
4690  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4691ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4692"
4693if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4694  cat >>confdefs.h <<_ACEOF
4695#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696_ACEOF
4697
4698fi
4699
4700done
4701
4702
4703
4704  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4705if test "x$ac_cv_header_minix_config_h" = xyes; then :
4706  MINIX=yes
4707else
4708  MINIX=
4709fi
4710
4711
4712  if test "$MINIX" = yes; then
4713
4714$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4715
4716
4717$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4718
4719
4720$as_echo "#define _MINIX 1" >>confdefs.h
4721
4722  fi
4723
4724
4725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4726$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4727if ${ac_cv_safe_to_define___extensions__+:} false; then :
4728  $as_echo_n "(cached) " >&6
4729else
4730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731/* end confdefs.h.  */
4732
4733#         define __EXTENSIONS__ 1
4734          $ac_includes_default
4735int
4736main ()
4737{
4738
4739  ;
4740  return 0;
4741}
4742_ACEOF
4743if ac_fn_c_try_compile "$LINENO"; then :
4744  ac_cv_safe_to_define___extensions__=yes
4745else
4746  ac_cv_safe_to_define___extensions__=no
4747fi
4748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4751$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4752  test $ac_cv_safe_to_define___extensions__ = yes &&
4753    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4754
4755  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4756
4757  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4758
4759  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4760
4761  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4762
4763
4764
4765
4766
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mips tool prefix" >&5
4768$as_echo_n "checking for mips tool prefix... " >&6; }
4769mipstoolprefix=""
4770for file in ${mipsdir}/mips*/bin/*gcc$EXEEXT ${mipsbin}/*gcc$EXEEXT
4771do
4772	case $file in
4773		*\**) mipstoolprefix="";;
4774		*\*) mipstoolprefix="";;
4775		*) mipstoolprefix=`echo "$file" |sed "s/gcc$EXEEXT//"`;;
4776	esac
4777done
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mipstoolprefix" >&5
4779$as_echo "$mipstoolprefix" >&6; }
4780TESTCODE_DIR="test_code"
4781SAMPLE_CODE_TARGETS="setup.o build_xmboot"
4782if test "x$mipstoolprefix" = "x"
4783then
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot seem to find any mips tools under $mipsbin" >&5
4785$as_echo "$as_me: WARNING: cannot seem to find any mips tools under $mipsbin" >&2;}
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmboot and test_code will not be built" >&5
4787$as_echo "$as_me: WARNING: xmboot and test_code will not be built" >&2;}
4788TESTCODE_DIR=""
4789SAMPLE_CODE_TARGETS=""
4790fi
4791
4792MIPSTOOLPREFIX="mipstoolprefix='${mipstoolprefix}'"
4793
4794
4795
4796
4797
4798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross tools target endianness" >&5
4799$as_echo_n "checking for cross tools target endianness... " >&6; }
4800
4801# Check whether --with-mips-endianness was given.
4802if test "${with_mips_endianness+set}" = set; then :
4803  withval=$with_mips_endianness; mipsendianness="$withval"
4804else
4805  mipsendianness=no
4806 objdump="${mipstoolprefix}objdump"
4807 if test -x "$objdump"
4808 then
4809   mipsendianness=`$objdump -i | awk '/endian/ { print; exit }'`
4810 fi
4811 case $mipsendianness in
4812 *data\ big\ endian*)    mipsendianness="big" ;;
4813 *data\ little\ endian*) mipsendianness="little" ;;
4814 *)                      mipsendianness="no" ;;
4815 esac
4816fi
4817case $mipsendianness in
4818big) BIGENDIAN="bigendian" ;;
4819little) BIGENDIAN="nobigendian" ;;
4820no) BIGENDIAN="nobigendian"
4821    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: defaulting to little-endian VMIPS" >&5
4822$as_echo "$as_me: WARNING: defaulting to little-endian VMIPS" >&2;} ;;
4823*)  as_fn_error $? "endianness, if specified, must be 'big' or 'little'" "$LINENO" 5 ;;
4824esac
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mipsendianness" >&5
4826$as_echo "$mipsendianness" >&6; }
4827
4828
4829# Check whether --enable-profiling was given.
4830if test "${enable_profiling+set}" = set; then :
4831  enableval=$enable_profiling;
4832fi
4833
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a profiled version" >&5
4835$as_echo_n "checking whether to build a profiled version... " >&6; }
4836XTRACFLAGS=""
4837XTRALDFLAGS=""
4838case "x$enable_profiling" in
4839xyes)
4840  XTRACFLAGS="$XTRACFLAGS -pg -fprofile-arcs -ftest-coverage"
4841  XTRALDFLAGS="$XTRALDFLAGS -pg"
4842  enable_profiling="yes"
4843  ;;
4844*)
4845  enable_profiling="no"
4846  ;;
4847esac
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
4849$as_echo "$enable_profiling" >&6; }
4850
4851for ac_prog in gawk mawk nawk awk
4852do
4853  # Extract the first word of "$ac_prog", so it can be a program name with args.
4854set dummy $ac_prog; ac_word=$2
4855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856$as_echo_n "checking for $ac_word... " >&6; }
4857if ${ac_cv_prog_AWK+:} false; then :
4858  $as_echo_n "(cached) " >&6
4859else
4860  if test -n "$AWK"; then
4861  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4862else
4863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864for as_dir in $PATH
4865do
4866  IFS=$as_save_IFS
4867  test -z "$as_dir" && as_dir=.
4868    for ac_exec_ext in '' $ac_executable_extensions; do
4869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870    ac_cv_prog_AWK="$ac_prog"
4871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872    break 2
4873  fi
4874done
4875  done
4876IFS=$as_save_IFS
4877
4878fi
4879fi
4880AWK=$ac_cv_prog_AWK
4881if test -n "$AWK"; then
4882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4883$as_echo "$AWK" >&6; }
4884else
4885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886$as_echo "no" >&6; }
4887fi
4888
4889
4890  test -n "$AWK" && break
4891done
4892
4893ac_ext=cpp
4894ac_cpp='$CXXCPP $CPPFLAGS'
4895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4898if test -z "$CXX"; then
4899  if test -n "$CCC"; then
4900    CXX=$CCC
4901  else
4902    if test -n "$ac_tool_prefix"; then
4903  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4904  do
4905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908$as_echo_n "checking for $ac_word... " >&6; }
4909if ${ac_cv_prog_CXX+:} false; then :
4910  $as_echo_n "(cached) " >&6
4911else
4912  if test -n "$CXX"; then
4913  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918  IFS=$as_save_IFS
4919  test -z "$as_dir" && as_dir=.
4920    for ac_exec_ext in '' $ac_executable_extensions; do
4921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924    break 2
4925  fi
4926done
4927  done
4928IFS=$as_save_IFS
4929
4930fi
4931fi
4932CXX=$ac_cv_prog_CXX
4933if test -n "$CXX"; then
4934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4935$as_echo "$CXX" >&6; }
4936else
4937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938$as_echo "no" >&6; }
4939fi
4940
4941
4942    test -n "$CXX" && break
4943  done
4944fi
4945if test -z "$CXX"; then
4946  ac_ct_CXX=$CXX
4947  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4948do
4949  # Extract the first word of "$ac_prog", so it can be a program name with args.
4950set dummy $ac_prog; ac_word=$2
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952$as_echo_n "checking for $ac_word... " >&6; }
4953if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test -n "$ac_ct_CXX"; then
4957  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  test -z "$as_dir" && as_dir=.
4964    for ac_exec_ext in '' $ac_executable_extensions; do
4965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966    ac_cv_prog_ac_ct_CXX="$ac_prog"
4967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968    break 2
4969  fi
4970done
4971  done
4972IFS=$as_save_IFS
4973
4974fi
4975fi
4976ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4977if test -n "$ac_ct_CXX"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4979$as_echo "$ac_ct_CXX" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985
4986  test -n "$ac_ct_CXX" && break
4987done
4988
4989  if test "x$ac_ct_CXX" = x; then
4990    CXX="g++"
4991  else
4992    case $cross_compiling:$ac_tool_warned in
4993yes:)
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996ac_tool_warned=yes ;;
4997esac
4998    CXX=$ac_ct_CXX
4999  fi
5000fi
5001
5002  fi
5003fi
5004# Provide some information about the compiler.
5005$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5006set X $ac_compile
5007ac_compiler=$2
5008for ac_option in --version -v -V -qversion; do
5009  { { ac_try="$ac_compiler $ac_option >&5"
5010case "(($ac_try" in
5011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012  *) ac_try_echo=$ac_try;;
5013esac
5014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5015$as_echo "$ac_try_echo"; } >&5
5016  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5017  ac_status=$?
5018  if test -s conftest.err; then
5019    sed '10a\
5020... rest of stderr output deleted ...
5021         10q' conftest.err >conftest.er1
5022    cat conftest.er1 >&5
5023  fi
5024  rm -f conftest.er1 conftest.err
5025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5026  test $ac_status = 0; }
5027done
5028
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5030$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5031if ${ac_cv_cxx_compiler_gnu+:} false; then :
5032  $as_echo_n "(cached) " >&6
5033else
5034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035/* end confdefs.h.  */
5036
5037int
5038main ()
5039{
5040#ifndef __GNUC__
5041       choke me
5042#endif
5043
5044  ;
5045  return 0;
5046}
5047_ACEOF
5048if ac_fn_cxx_try_compile "$LINENO"; then :
5049  ac_compiler_gnu=yes
5050else
5051  ac_compiler_gnu=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5055
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5058$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5059if test $ac_compiler_gnu = yes; then
5060  GXX=yes
5061else
5062  GXX=
5063fi
5064ac_test_CXXFLAGS=${CXXFLAGS+set}
5065ac_save_CXXFLAGS=$CXXFLAGS
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5067$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5068if ${ac_cv_prog_cxx_g+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5072   ac_cxx_werror_flag=yes
5073   ac_cv_prog_cxx_g=no
5074   CXXFLAGS="-g"
5075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076/* end confdefs.h.  */
5077
5078int
5079main ()
5080{
5081
5082  ;
5083  return 0;
5084}
5085_ACEOF
5086if ac_fn_cxx_try_compile "$LINENO"; then :
5087  ac_cv_prog_cxx_g=yes
5088else
5089  CXXFLAGS=""
5090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h.  */
5092
5093int
5094main ()
5095{
5096
5097  ;
5098  return 0;
5099}
5100_ACEOF
5101if ac_fn_cxx_try_compile "$LINENO"; then :
5102
5103else
5104  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5105	 CXXFLAGS="-g"
5106	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107/* end confdefs.h.  */
5108
5109int
5110main ()
5111{
5112
5113  ;
5114  return 0;
5115}
5116_ACEOF
5117if ac_fn_cxx_try_compile "$LINENO"; then :
5118  ac_cv_prog_cxx_g=yes
5119fi
5120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5121fi
5122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5123fi
5124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5125   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5126fi
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5128$as_echo "$ac_cv_prog_cxx_g" >&6; }
5129if test "$ac_test_CXXFLAGS" = set; then
5130  CXXFLAGS=$ac_save_CXXFLAGS
5131elif test $ac_cv_prog_cxx_g = yes; then
5132  if test "$GXX" = yes; then
5133    CXXFLAGS="-g -O2"
5134  else
5135    CXXFLAGS="-g"
5136  fi
5137else
5138  if test "$GXX" = yes; then
5139    CXXFLAGS="-O2"
5140  else
5141    CXXFLAGS=
5142  fi
5143fi
5144ac_ext=c
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150depcc="$CXX"  am_compiler_list=
5151
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5153$as_echo_n "checking dependency style of $depcc... " >&6; }
5154if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5158  # We make a subdir and do the tests there.  Otherwise we can end up
5159  # making bogus files that we don't know about and never remove.  For
5160  # instance it was reported that on HP-UX the gcc test will end up
5161  # making a dummy file named 'D' -- because '-MD' means "put the output
5162  # in D".
5163  rm -rf conftest.dir
5164  mkdir conftest.dir
5165  # Copy depcomp to subdir because otherwise we won't find it if we're
5166  # using a relative directory.
5167  cp "$am_depcomp" conftest.dir
5168  cd conftest.dir
5169  # We will build objects and dependencies in a subdirectory because
5170  # it helps to detect inapplicable dependency modes.  For instance
5171  # both Tru64's cc and ICC support -MD to output dependencies as a
5172  # side effect of compilation, but ICC will put the dependencies in
5173  # the current directory while Tru64 will put them in the object
5174  # directory.
5175  mkdir sub
5176
5177  am_cv_CXX_dependencies_compiler_type=none
5178  if test "$am_compiler_list" = ""; then
5179     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5180  fi
5181  am__universal=false
5182  case " $depcc " in #(
5183     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5184     esac
5185
5186  for depmode in $am_compiler_list; do
5187    # Setup a source with many dependencies, because some compilers
5188    # like to wrap large dependency lists on column 80 (with \), and
5189    # we should not choose a depcomp mode which is confused by this.
5190    #
5191    # We need to recreate these files for each test, as the compiler may
5192    # overwrite some of them when testing with obscure command lines.
5193    # This happens at least with the AIX C compiler.
5194    : > sub/conftest.c
5195    for i in 1 2 3 4 5 6; do
5196      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5197      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5198      # Solaris 10 /bin/sh.
5199      echo '/* dummy */' > sub/conftst$i.h
5200    done
5201    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5202
5203    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5204    # mode.  It turns out that the SunPro C++ compiler does not properly
5205    # handle '-M -o', and we need to detect this.  Also, some Intel
5206    # versions had trouble with output in subdirs.
5207    am__obj=sub/conftest.${OBJEXT-o}
5208    am__minus_obj="-o $am__obj"
5209    case $depmode in
5210    gcc)
5211      # This depmode causes a compiler race in universal mode.
5212      test "$am__universal" = false || continue
5213      ;;
5214    nosideeffect)
5215      # After this tag, mechanisms are not by side-effect, so they'll
5216      # only be used when explicitly requested.
5217      if test "x$enable_dependency_tracking" = xyes; then
5218	continue
5219      else
5220	break
5221      fi
5222      ;;
5223    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5224      # This compiler won't grok '-c -o', but also, the minuso test has
5225      # not run yet.  These depmodes are late enough in the game, and
5226      # so weak that their functioning should not be impacted.
5227      am__obj=conftest.${OBJEXT-o}
5228      am__minus_obj=
5229      ;;
5230    none) break ;;
5231    esac
5232    if depmode=$depmode \
5233       source=sub/conftest.c object=$am__obj \
5234       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5235       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5236         >/dev/null 2>conftest.err &&
5237       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5238       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5239       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5240       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5241      # icc doesn't choke on unknown options, it will just issue warnings
5242      # or remarks (even with -Werror).  So we grep stderr for any message
5243      # that says an option was ignored or not supported.
5244      # When given -MP, icc 7.0 and 7.1 complain thusly:
5245      #   icc: Command line warning: ignoring option '-M'; no argument required
5246      # The diagnosis changed in icc 8.0:
5247      #   icc: Command line remark: option '-MP' not supported
5248      if (grep 'ignoring option' conftest.err ||
5249          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5250        am_cv_CXX_dependencies_compiler_type=$depmode
5251        break
5252      fi
5253    fi
5254  done
5255
5256  cd ..
5257  rm -rf conftest.dir
5258else
5259  am_cv_CXX_dependencies_compiler_type=none
5260fi
5261
5262fi
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5264$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5265CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5266
5267 if
5268  test "x$enable_dependency_tracking" != xno \
5269  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5270  am__fastdepCXX_TRUE=
5271  am__fastdepCXX_FALSE='#'
5272else
5273  am__fastdepCXX_TRUE='#'
5274  am__fastdepCXX_FALSE=
5275fi
5276
5277
5278if test "x$GXX" = "xyes"
5279then
5280	XTRACFLAGS="$XTRACFLAGS -fno-strict-aliasing"
5281fi
5282
5283
5284
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you can pass a template function to a function whose return type is the same as the type of its parameter" >&5
5286$as_echo_n "checking whether you can pass a template function to a function whose return type is the same as the type of its parameter... " >&6; }
5287if ${vmips_cv_cxx_template_functions+:} false; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  (ac_ext=cpp
5291ac_cpp='$CXXCPP $CPPFLAGS'
5292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5295
5296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297/* end confdefs.h.  */
5298
5299    template<class F> F x(F f) { }
5300    template<class T> void y(T t) { }
5301    void z(void) { x(y<int>); }
5302
5303int
5304main ()
5305{
5306
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311if ac_fn_cxx_try_compile "$LINENO"; then :
5312  exit 0
5313else
5314  exit 1
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext)
5317if test $? -eq 0
5318then
5319  vmips_cv_cxx_template_functions=yes
5320else
5321  vmips_cv_cxx_template_functions=no
5322fi
5323fi
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vmips_cv_cxx_template_functions" >&5
5325$as_echo "$vmips_cv_cxx_template_functions" >&6; }
5326if test "x$vmips_cv_cxx_template_functions" = "xno"
5327then
5328  as_fn_error $? "your C++ compiler's template function handling is buggy; see INSTALL" "$LINENO" 5
5329fi
5330ac_ext=c
5331ac_cpp='$CPP $CPPFLAGS'
5332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5336$as_echo_n "checking how to run the C preprocessor... " >&6; }
5337# On Suns, sometimes $CPP names a directory.
5338if test -n "$CPP" && test -d "$CPP"; then
5339  CPP=
5340fi
5341if test -z "$CPP"; then
5342  if ${ac_cv_prog_CPP+:} false; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345      # Double quotes because CPP needs to be expanded
5346    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5347    do
5348      ac_preproc_ok=false
5349for ac_c_preproc_warn_flag in '' yes
5350do
5351  # Use a header file that comes with gcc, so configuring glibc
5352  # with a fresh cross-compiler works.
5353  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354  # <limits.h> exists even on freestanding compilers.
5355  # On the NeXT, cc -E runs the code through the compiler's parser,
5356  # not just through cpp. "Syntax error" is here to catch this case.
5357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358/* end confdefs.h.  */
5359#ifdef __STDC__
5360# include <limits.h>
5361#else
5362# include <assert.h>
5363#endif
5364		     Syntax error
5365_ACEOF
5366if ac_fn_c_try_cpp "$LINENO"; then :
5367
5368else
5369  # Broken: fails on valid input.
5370continue
5371fi
5372rm -f conftest.err conftest.i conftest.$ac_ext
5373
5374  # OK, works on sane cases.  Now check whether nonexistent headers
5375  # can be detected and how.
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378#include <ac_nonexistent.h>
5379_ACEOF
5380if ac_fn_c_try_cpp "$LINENO"; then :
5381  # Broken: success on invalid input.
5382continue
5383else
5384  # Passes both tests.
5385ac_preproc_ok=:
5386break
5387fi
5388rm -f conftest.err conftest.i conftest.$ac_ext
5389
5390done
5391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5392rm -f conftest.i conftest.err conftest.$ac_ext
5393if $ac_preproc_ok; then :
5394  break
5395fi
5396
5397    done
5398    ac_cv_prog_CPP=$CPP
5399
5400fi
5401  CPP=$ac_cv_prog_CPP
5402else
5403  ac_cv_prog_CPP=$CPP
5404fi
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5406$as_echo "$CPP" >&6; }
5407ac_preproc_ok=false
5408for ac_c_preproc_warn_flag in '' yes
5409do
5410  # Use a header file that comes with gcc, so configuring glibc
5411  # with a fresh cross-compiler works.
5412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5413  # <limits.h> exists even on freestanding compilers.
5414  # On the NeXT, cc -E runs the code through the compiler's parser,
5415  # not just through cpp. "Syntax error" is here to catch this case.
5416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h.  */
5418#ifdef __STDC__
5419# include <limits.h>
5420#else
5421# include <assert.h>
5422#endif
5423		     Syntax error
5424_ACEOF
5425if ac_fn_c_try_cpp "$LINENO"; then :
5426
5427else
5428  # Broken: fails on valid input.
5429continue
5430fi
5431rm -f conftest.err conftest.i conftest.$ac_ext
5432
5433  # OK, works on sane cases.  Now check whether nonexistent headers
5434  # can be detected and how.
5435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437#include <ac_nonexistent.h>
5438_ACEOF
5439if ac_fn_c_try_cpp "$LINENO"; then :
5440  # Broken: success on invalid input.
5441continue
5442else
5443  # Passes both tests.
5444ac_preproc_ok=:
5445break
5446fi
5447rm -f conftest.err conftest.i conftest.$ac_ext
5448
5449done
5450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5451rm -f conftest.i conftest.err conftest.$ac_ext
5452if $ac_preproc_ok; then :
5453
5454else
5455  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5457as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5458See \`config.log' for more details" "$LINENO" 5; }
5459fi
5460
5461ac_ext=cpp
5462ac_cpp='$CXXCPP $CPPFLAGS'
5463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5466
5467# By default we simply use the C compiler to build assembly code.
5468
5469test "${CCAS+set}" = set || CCAS=$CC
5470test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5471
5472
5473
5474depcc="$CCAS"   am_compiler_list=
5475
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5477$as_echo_n "checking dependency style of $depcc... " >&6; }
5478if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5482  # We make a subdir and do the tests there.  Otherwise we can end up
5483  # making bogus files that we don't know about and never remove.  For
5484  # instance it was reported that on HP-UX the gcc test will end up
5485  # making a dummy file named 'D' -- because '-MD' means "put the output
5486  # in D".
5487  rm -rf conftest.dir
5488  mkdir conftest.dir
5489  # Copy depcomp to subdir because otherwise we won't find it if we're
5490  # using a relative directory.
5491  cp "$am_depcomp" conftest.dir
5492  cd conftest.dir
5493  # We will build objects and dependencies in a subdirectory because
5494  # it helps to detect inapplicable dependency modes.  For instance
5495  # both Tru64's cc and ICC support -MD to output dependencies as a
5496  # side effect of compilation, but ICC will put the dependencies in
5497  # the current directory while Tru64 will put them in the object
5498  # directory.
5499  mkdir sub
5500
5501  am_cv_CCAS_dependencies_compiler_type=none
5502  if test "$am_compiler_list" = ""; then
5503     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5504  fi
5505  am__universal=false
5506
5507
5508  for depmode in $am_compiler_list; do
5509    # Setup a source with many dependencies, because some compilers
5510    # like to wrap large dependency lists on column 80 (with \), and
5511    # we should not choose a depcomp mode which is confused by this.
5512    #
5513    # We need to recreate these files for each test, as the compiler may
5514    # overwrite some of them when testing with obscure command lines.
5515    # This happens at least with the AIX C compiler.
5516    : > sub/conftest.c
5517    for i in 1 2 3 4 5 6; do
5518      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5519      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5520      # Solaris 10 /bin/sh.
5521      echo '/* dummy */' > sub/conftst$i.h
5522    done
5523    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5524
5525    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5526    # mode.  It turns out that the SunPro C++ compiler does not properly
5527    # handle '-M -o', and we need to detect this.  Also, some Intel
5528    # versions had trouble with output in subdirs.
5529    am__obj=sub/conftest.${OBJEXT-o}
5530    am__minus_obj="-o $am__obj"
5531    case $depmode in
5532    gcc)
5533      # This depmode causes a compiler race in universal mode.
5534      test "$am__universal" = false || continue
5535      ;;
5536    nosideeffect)
5537      # After this tag, mechanisms are not by side-effect, so they'll
5538      # only be used when explicitly requested.
5539      if test "x$enable_dependency_tracking" = xyes; then
5540	continue
5541      else
5542	break
5543      fi
5544      ;;
5545    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5546      # This compiler won't grok '-c -o', but also, the minuso test has
5547      # not run yet.  These depmodes are late enough in the game, and
5548      # so weak that their functioning should not be impacted.
5549      am__obj=conftest.${OBJEXT-o}
5550      am__minus_obj=
5551      ;;
5552    none) break ;;
5553    esac
5554    if depmode=$depmode \
5555       source=sub/conftest.c object=$am__obj \
5556       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5557       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5558         >/dev/null 2>conftest.err &&
5559       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5560       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5561       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5562       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5563      # icc doesn't choke on unknown options, it will just issue warnings
5564      # or remarks (even with -Werror).  So we grep stderr for any message
5565      # that says an option was ignored or not supported.
5566      # When given -MP, icc 7.0 and 7.1 complain thusly:
5567      #   icc: Command line warning: ignoring option '-M'; no argument required
5568      # The diagnosis changed in icc 8.0:
5569      #   icc: Command line remark: option '-MP' not supported
5570      if (grep 'ignoring option' conftest.err ||
5571          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5572        am_cv_CCAS_dependencies_compiler_type=$depmode
5573        break
5574      fi
5575    fi
5576  done
5577
5578  cd ..
5579  rm -rf conftest.dir
5580else
5581  am_cv_CCAS_dependencies_compiler_type=none
5582fi
5583
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5586$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5587CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5588
5589 if
5590  test "x$enable_dependency_tracking" != xno \
5591  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5592  am__fastdepCCAS_TRUE=
5593  am__fastdepCCAS_FALSE='#'
5594else
5595  am__fastdepCCAS_TRUE='#'
5596  am__fastdepCCAS_FALSE=
5597fi
5598
5599
5600if test -n "$ac_tool_prefix"; then
5601  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5602set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if ${ac_cv_prog_RANLIB+:} false; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  if test -n "$RANLIB"; then
5609  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616    for ac_exec_ext in '' $ac_executable_extensions; do
5617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623  done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628RANLIB=$ac_cv_prog_RANLIB
5629if test -n "$RANLIB"; then
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5631$as_echo "$RANLIB" >&6; }
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637
5638fi
5639if test -z "$ac_cv_prog_RANLIB"; then
5640  ac_ct_RANLIB=$RANLIB
5641  # Extract the first word of "ranlib", so it can be a program name with args.
5642set dummy ranlib; ac_word=$2
5643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644$as_echo_n "checking for $ac_word... " >&6; }
5645if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5646  $as_echo_n "(cached) " >&6
5647else
5648  if test -n "$ac_ct_RANLIB"; then
5649  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5650else
5651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652for as_dir in $PATH
5653do
5654  IFS=$as_save_IFS
5655  test -z "$as_dir" && as_dir=.
5656    for ac_exec_ext in '' $ac_executable_extensions; do
5657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658    ac_cv_prog_ac_ct_RANLIB="ranlib"
5659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660    break 2
5661  fi
5662done
5663  done
5664IFS=$as_save_IFS
5665
5666fi
5667fi
5668ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5669if test -n "$ac_ct_RANLIB"; then
5670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5671$as_echo "$ac_ct_RANLIB" >&6; }
5672else
5673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674$as_echo "no" >&6; }
5675fi
5676
5677  if test "x$ac_ct_RANLIB" = x; then
5678    RANLIB=":"
5679  else
5680    case $cross_compiling:$ac_tool_warned in
5681yes:)
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684ac_tool_warned=yes ;;
5685esac
5686    RANLIB=$ac_ct_RANLIB
5687  fi
5688else
5689  RANLIB="$ac_cv_prog_RANLIB"
5690fi
5691
5692
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5694$as_echo_n "checking whether ln -s works... " >&6; }
5695LN_S=$as_ln_s
5696if test "$LN_S" = "ln -s"; then
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698$as_echo "yes" >&6; }
5699else
5700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5701$as_echo "no, using $LN_S" >&6; }
5702fi
5703
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5705$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5706set x ${MAKE-make}
5707ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5708if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5709  $as_echo_n "(cached) " >&6
5710else
5711  cat >conftest.make <<\_ACEOF
5712SHELL = /bin/sh
5713all:
5714	@echo '@@@%%%=$(MAKE)=@@@%%%'
5715_ACEOF
5716# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5717case `${MAKE-make} -f conftest.make 2>/dev/null` in
5718  *@@@%%%=?*=@@@%%%*)
5719    eval ac_cv_prog_make_${ac_make}_set=yes;;
5720  *)
5721    eval ac_cv_prog_make_${ac_make}_set=no;;
5722esac
5723rm -f conftest.make
5724fi
5725if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5727$as_echo "yes" >&6; }
5728  SET_MAKE=
5729else
5730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731$as_echo "no" >&6; }
5732  SET_MAKE="MAKE=${MAKE-make}"
5733fi
5734
5735ac_ext=cpp
5736ac_cpp='$CXXCPP $CPPFLAGS'
5737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5741$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5742if test -z "$CXXCPP"; then
5743  if ${ac_cv_prog_CXXCPP+:} false; then :
5744  $as_echo_n "(cached) " >&6
5745else
5746      # Double quotes because CXXCPP needs to be expanded
5747    for CXXCPP in "$CXX -E" "/lib/cpp"
5748    do
5749      ac_preproc_ok=false
5750for ac_cxx_preproc_warn_flag in '' yes
5751do
5752  # Use a header file that comes with gcc, so configuring glibc
5753  # with a fresh cross-compiler works.
5754  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5755  # <limits.h> exists even on freestanding compilers.
5756  # On the NeXT, cc -E runs the code through the compiler's parser,
5757  # not just through cpp. "Syntax error" is here to catch this case.
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760#ifdef __STDC__
5761# include <limits.h>
5762#else
5763# include <assert.h>
5764#endif
5765		     Syntax error
5766_ACEOF
5767if ac_fn_cxx_try_cpp "$LINENO"; then :
5768
5769else
5770  # Broken: fails on valid input.
5771continue
5772fi
5773rm -f conftest.err conftest.i conftest.$ac_ext
5774
5775  # OK, works on sane cases.  Now check whether nonexistent headers
5776  # can be detected and how.
5777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778/* end confdefs.h.  */
5779#include <ac_nonexistent.h>
5780_ACEOF
5781if ac_fn_cxx_try_cpp "$LINENO"; then :
5782  # Broken: success on invalid input.
5783continue
5784else
5785  # Passes both tests.
5786ac_preproc_ok=:
5787break
5788fi
5789rm -f conftest.err conftest.i conftest.$ac_ext
5790
5791done
5792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793rm -f conftest.i conftest.err conftest.$ac_ext
5794if $ac_preproc_ok; then :
5795  break
5796fi
5797
5798    done
5799    ac_cv_prog_CXXCPP=$CXXCPP
5800
5801fi
5802  CXXCPP=$ac_cv_prog_CXXCPP
5803else
5804  ac_cv_prog_CXXCPP=$CXXCPP
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5807$as_echo "$CXXCPP" >&6; }
5808ac_preproc_ok=false
5809for ac_cxx_preproc_warn_flag in '' yes
5810do
5811  # Use a header file that comes with gcc, so configuring glibc
5812  # with a fresh cross-compiler works.
5813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814  # <limits.h> exists even on freestanding compilers.
5815  # On the NeXT, cc -E runs the code through the compiler's parser,
5816  # not just through cpp. "Syntax error" is here to catch this case.
5817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818/* end confdefs.h.  */
5819#ifdef __STDC__
5820# include <limits.h>
5821#else
5822# include <assert.h>
5823#endif
5824		     Syntax error
5825_ACEOF
5826if ac_fn_cxx_try_cpp "$LINENO"; then :
5827
5828else
5829  # Broken: fails on valid input.
5830continue
5831fi
5832rm -f conftest.err conftest.i conftest.$ac_ext
5833
5834  # OK, works on sane cases.  Now check whether nonexistent headers
5835  # can be detected and how.
5836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h.  */
5838#include <ac_nonexistent.h>
5839_ACEOF
5840if ac_fn_cxx_try_cpp "$LINENO"; then :
5841  # Broken: success on invalid input.
5842continue
5843else
5844  # Passes both tests.
5845ac_preproc_ok=:
5846break
5847fi
5848rm -f conftest.err conftest.i conftest.$ac_ext
5849
5850done
5851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5852rm -f conftest.i conftest.err conftest.$ac_ext
5853if $ac_preproc_ok; then :
5854
5855else
5856  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5859See \`config.log' for more details" "$LINENO" 5; }
5860fi
5861
5862ac_ext=cpp
5863ac_cpp='$CXXCPP $CPPFLAGS'
5864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5867
5868
5869if test $ac_cv_c_compiler_gnu = yes; then
5870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5871$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5872if ${ac_cv_prog_gcc_traditional+:} false; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875    ac_pattern="Autoconf.*'x'"
5876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h.  */
5878#include <sgtty.h>
5879Autoconf TIOCGETP
5880_ACEOF
5881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5883  ac_cv_prog_gcc_traditional=yes
5884else
5885  ac_cv_prog_gcc_traditional=no
5886fi
5887rm -f conftest*
5888
5889
5890  if test $ac_cv_prog_gcc_traditional = no; then
5891    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892/* end confdefs.h.  */
5893#include <termio.h>
5894Autoconf TCGETA
5895_ACEOF
5896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5898  ac_cv_prog_gcc_traditional=yes
5899fi
5900rm -f conftest*
5901
5902  fi
5903fi
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5905$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5906  if test $ac_cv_prog_gcc_traditional = yes; then
5907    CC="$CC -traditional"
5908  fi
5909fi
5910
5911
5912
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5914$as_echo_n "checking for ANSI C header files... " >&6; }
5915if ${ac_cv_header_stdc+:} false; then :
5916  $as_echo_n "(cached) " >&6
5917else
5918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h.  */
5920#include <stdlib.h>
5921#include <stdarg.h>
5922#include <string.h>
5923#include <float.h>
5924
5925int
5926main ()
5927{
5928
5929  ;
5930  return 0;
5931}
5932_ACEOF
5933if ac_fn_cxx_try_compile "$LINENO"; then :
5934  ac_cv_header_stdc=yes
5935else
5936  ac_cv_header_stdc=no
5937fi
5938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939
5940if test $ac_cv_header_stdc = yes; then
5941  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943/* end confdefs.h.  */
5944#include <string.h>
5945
5946_ACEOF
5947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948  $EGREP "memchr" >/dev/null 2>&1; then :
5949
5950else
5951  ac_cv_header_stdc=no
5952fi
5953rm -f conftest*
5954
5955fi
5956
5957if test $ac_cv_header_stdc = yes; then
5958  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960/* end confdefs.h.  */
5961#include <stdlib.h>
5962
5963_ACEOF
5964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5965  $EGREP "free" >/dev/null 2>&1; then :
5966
5967else
5968  ac_cv_header_stdc=no
5969fi
5970rm -f conftest*
5971
5972fi
5973
5974if test $ac_cv_header_stdc = yes; then
5975  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5976  if test "$cross_compiling" = yes; then :
5977  :
5978else
5979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h.  */
5981#include <ctype.h>
5982#include <stdlib.h>
5983#if ((' ' & 0x0FF) == 0x020)
5984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5986#else
5987# define ISLOWER(c) \
5988		   (('a' <= (c) && (c) <= 'i') \
5989		     || ('j' <= (c) && (c) <= 'r') \
5990		     || ('s' <= (c) && (c) <= 'z'))
5991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5992#endif
5993
5994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5995int
5996main ()
5997{
5998  int i;
5999  for (i = 0; i < 256; i++)
6000    if (XOR (islower (i), ISLOWER (i))
6001	|| toupper (i) != TOUPPER (i))
6002      return 2;
6003  return 0;
6004}
6005_ACEOF
6006if ac_fn_cxx_try_run "$LINENO"; then :
6007
6008else
6009  ac_cv_header_stdc=no
6010fi
6011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6012  conftest.$ac_objext conftest.beam conftest.$ac_ext
6013fi
6014
6015fi
6016fi
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6018$as_echo "$ac_cv_header_stdc" >&6; }
6019if test $ac_cv_header_stdc = yes; then
6020
6021$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6022
6023fi
6024
6025for ac_header in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h
6026do :
6027  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6028ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6030  cat >>confdefs.h <<_ACEOF
6031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6032_ACEOF
6033
6034fi
6035
6036done
6037
6038
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6040$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6041if ${ac_cv_c_const+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046
6047int
6048main ()
6049{
6050
6051#ifndef __cplusplus
6052  /* Ultrix mips cc rejects this sort of thing.  */
6053  typedef int charset[2];
6054  const charset cs = { 0, 0 };
6055  /* SunOS 4.1.1 cc rejects this.  */
6056  char const *const *pcpcc;
6057  char **ppc;
6058  /* NEC SVR4.0.2 mips cc rejects this.  */
6059  struct point {int x, y;};
6060  static struct point const zero = {0,0};
6061  /* AIX XL C 1.02.0.0 rejects this.
6062     It does not let you subtract one const X* pointer from another in
6063     an arm of an if-expression whose if-part is not a constant
6064     expression */
6065  const char *g = "string";
6066  pcpcc = &g + (g ? g-g : 0);
6067  /* HPUX 7.0 cc rejects these. */
6068  ++pcpcc;
6069  ppc = (char**) pcpcc;
6070  pcpcc = (char const *const *) ppc;
6071  { /* SCO 3.2v4 cc rejects this sort of thing.  */
6072    char tx;
6073    char *t = &tx;
6074    char const *s = 0 ? (char *) 0 : (char const *) 0;
6075
6076    *t++ = 0;
6077    if (s) return 0;
6078  }
6079  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6080    int x[] = {25, 17};
6081    const int *foo = &x[0];
6082    ++foo;
6083  }
6084  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6085    typedef const int *iptr;
6086    iptr p = 0;
6087    ++p;
6088  }
6089  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6090       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6091    struct s { int j; const int *ap[3]; } bx;
6092    struct s *b = &bx; b->j = 5;
6093  }
6094  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6095    const int foo = 10;
6096    if (!foo) return 0;
6097  }
6098  return !cs[0] && !zero.x;
6099#endif
6100
6101  ;
6102  return 0;
6103}
6104_ACEOF
6105if ac_fn_cxx_try_compile "$LINENO"; then :
6106  ac_cv_c_const=yes
6107else
6108  ac_cv_c_const=no
6109fi
6110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111fi
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6113$as_echo "$ac_cv_c_const" >&6; }
6114if test $ac_cv_c_const = no; then
6115
6116$as_echo "#define const /**/" >>confdefs.h
6117
6118fi
6119
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6121$as_echo_n "checking for inline... " >&6; }
6122if ${ac_cv_c_inline+:} false; then :
6123  $as_echo_n "(cached) " >&6
6124else
6125  ac_cv_c_inline=no
6126for ac_kw in inline __inline__ __inline; do
6127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129#ifndef __cplusplus
6130typedef int foo_t;
6131static $ac_kw foo_t static_foo () {return 0; }
6132$ac_kw foo_t foo () {return 0; }
6133#endif
6134
6135_ACEOF
6136if ac_fn_cxx_try_compile "$LINENO"; then :
6137  ac_cv_c_inline=$ac_kw
6138fi
6139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140  test "$ac_cv_c_inline" != no && break
6141done
6142
6143fi
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6145$as_echo "$ac_cv_c_inline" >&6; }
6146
6147case $ac_cv_c_inline in
6148  inline | yes) ;;
6149  *)
6150    case $ac_cv_c_inline in
6151      no) ac_val=;;
6152      *) ac_val=$ac_cv_c_inline;;
6153    esac
6154    cat >>confdefs.h <<_ACEOF
6155#ifndef __cplusplus
6156#define inline $ac_val
6157#endif
6158_ACEOF
6159    ;;
6160esac
6161
6162ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6163if test "x$ac_cv_type_off_t" = xyes; then :
6164
6165else
6166
6167cat >>confdefs.h <<_ACEOF
6168#define off_t long int
6169_ACEOF
6170
6171fi
6172
6173ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6174if test "x$ac_cv_type_pid_t" = xyes; then :
6175
6176else
6177
6178cat >>confdefs.h <<_ACEOF
6179#define pid_t int
6180_ACEOF
6181
6182fi
6183
6184ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6185if test "x$ac_cv_type_size_t" = xyes; then :
6186
6187else
6188
6189cat >>confdefs.h <<_ACEOF
6190#define size_t unsigned int
6191_ACEOF
6192
6193fi
6194
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6196$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6197if ${ac_cv_header_time+:} false; then :
6198  $as_echo_n "(cached) " >&6
6199else
6200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h.  */
6202#include <sys/types.h>
6203#include <sys/time.h>
6204#include <time.h>
6205
6206int
6207main ()
6208{
6209if ((struct tm *) 0)
6210return 0;
6211  ;
6212  return 0;
6213}
6214_ACEOF
6215if ac_fn_cxx_try_compile "$LINENO"; then :
6216  ac_cv_header_time=yes
6217else
6218  ac_cv_header_time=no
6219fi
6220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6223$as_echo "$ac_cv_header_time" >&6; }
6224if test $ac_cv_header_time = yes; then
6225
6226$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6227
6228fi
6229
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
6231$as_echo_n "checking for socklen_t... " >&6; }
6232if ${vmips_cv_type_socklen_t+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h.  */
6237#include <sys/types.h>
6238#include <sys/socket.h>
6239#include <netdb.h>
6240int
6241main ()
6242{
6243socklen_t foo; foo = 1; return 0;
6244  ;
6245  return 0;
6246}
6247_ACEOF
6248if ac_fn_cxx_try_compile "$LINENO"; then :
6249  vmips_cv_type_socklen_t=yes
6250else
6251  vmips_cv_type_socklen_t=no
6252fi
6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254fi
6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vmips_cv_type_socklen_t" >&5
6256$as_echo "$vmips_cv_type_socklen_t" >&6; }
6257if test "x$vmips_cv_type_socklen_t" = "xno"
6258then
6259
6260$as_echo "#define socklen_t int" >>confdefs.h
6261
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether specifying that a function will never return works" >&5
6264$as_echo_n "checking whether specifying that a function will never return works... " >&6; }
6265if ${vmips_cv_cxx_attribute_noreturn+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  if test "x$GXX" = "xyes"
6269 then
6270   (CXXFLAGS="-Werror $CXXFLAGS"
6271    ac_ext=cpp
6272ac_cpp='$CXXCPP $CPPFLAGS'
6273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6276
6277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279#include <cstdlib>
6280      __attribute__((noreturn)) void die(void) { abort(); }
6281int
6282main ()
6283{
6284
6285  ;
6286  return 0;
6287}
6288_ACEOF
6289if ac_fn_cxx_try_compile "$LINENO"; then :
6290  exit 0
6291else
6292  exit 1
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext)
6295   if test $? -eq 0
6296   then
6297     vmips_cv_cxx_attribute_noreturn=yes
6298   else
6299     vmips_cv_cxx_attribute_noreturn=no
6300   fi
6301 else
6302   vmips_cv_cxx_attribute_noreturn=no
6303 fi
6304fi
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vmips_cv_cxx_attribute_noreturn" >&5
6306$as_echo "$vmips_cv_cxx_attribute_noreturn" >&6; }
6307if test "$vmips_cv_cxx_attribute_noreturn" = yes
6308then
6309
6310$as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
6311
6312fi
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether specifying that a function takes printf-style arguments works" >&5
6314$as_echo_n "checking whether specifying that a function takes printf-style arguments works... " >&6; }
6315if ${vmips_cv_cxx_attribute_format+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  if test "x$GXX" = "xyes"
6319then
6320  (CXXFLAGS="-Werror $CXXFLAGS"
6321   ac_ext=cpp
6322ac_cpp='$CXXCPP $CPPFLAGS'
6323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6326
6327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328/* end confdefs.h.  */
6329#include <cstdlib>
6330     __attribute__((format(printf, 1, 2)))
6331     void myprintf(char *fmt, ...) { abort(); }
6332int
6333main ()
6334{
6335
6336  ;
6337  return 0;
6338}
6339_ACEOF
6340if ac_fn_cxx_try_compile "$LINENO"; then :
6341  exit 0
6342else
6343  exit 1
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext)
6346  if test $? -eq 0
6347  then
6348    vmips_cv_cxx_attribute_format=yes
6349  else
6350    vmips_cv_cxx_attribute_format=no
6351  fi
6352else
6353  vmips_cv_cxx_attribute_format=no
6354fi
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vmips_cv_cxx_attribute_format" >&5
6357$as_echo "$vmips_cv_cxx_attribute_format" >&6; }
6358if test "x$vmips_cv_cxx_attribute_format" = "xyes"
6359then
6360
6361$as_echo "#define HAVE_ATTRIBUTE_FORMAT 1" >>confdefs.h
6362
6363fi
6364
6365# The cast to long int works around a bug in the HP C Compiler
6366# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6367# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6368# This bug is HP SR number 8606223364.
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6370$as_echo_n "checking size of long long... " >&6; }
6371if ${ac_cv_sizeof_long_long+:} false; then :
6372  $as_echo_n "(cached) " >&6
6373else
6374  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6375
6376else
6377  if test "$ac_cv_type_long_long" = yes; then
6378     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6380as_fn_error 77 "cannot compute sizeof (long long)
6381See \`config.log' for more details" "$LINENO" 5; }
6382   else
6383     ac_cv_sizeof_long_long=0
6384   fi
6385fi
6386
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6389$as_echo "$ac_cv_sizeof_long_long" >&6; }
6390
6391
6392
6393cat >>confdefs.h <<_ACEOF
6394#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6395_ACEOF
6396
6397
6398# The cast to long int works around a bug in the HP C Compiler
6399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6401# This bug is HP SR number 8606223364.
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6403$as_echo_n "checking size of long... " >&6; }
6404if ${ac_cv_sizeof_long+:} false; then :
6405  $as_echo_n "(cached) " >&6
6406else
6407  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6408
6409else
6410  if test "$ac_cv_type_long" = yes; then
6411     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6413as_fn_error 77 "cannot compute sizeof (long)
6414See \`config.log' for more details" "$LINENO" 5; }
6415   else
6416     ac_cv_sizeof_long=0
6417   fi
6418fi
6419
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6422$as_echo "$ac_cv_sizeof_long" >&6; }
6423
6424
6425
6426cat >>confdefs.h <<_ACEOF
6427#define SIZEOF_LONG $ac_cv_sizeof_long
6428_ACEOF
6429
6430
6431# The cast to long int works around a bug in the HP C Compiler
6432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6434# This bug is HP SR number 8606223364.
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6436$as_echo_n "checking size of int... " >&6; }
6437if ${ac_cv_sizeof_int+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6441
6442else
6443  if test "$ac_cv_type_int" = yes; then
6444     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6446as_fn_error 77 "cannot compute sizeof (int)
6447See \`config.log' for more details" "$LINENO" 5; }
6448   else
6449     ac_cv_sizeof_int=0
6450   fi
6451fi
6452
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6455$as_echo "$ac_cv_sizeof_int" >&6; }
6456
6457
6458
6459cat >>confdefs.h <<_ACEOF
6460#define SIZEOF_INT $ac_cv_sizeof_int
6461_ACEOF
6462
6463
6464# The cast to long int works around a bug in the HP C Compiler
6465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6467# This bug is HP SR number 8606223364.
6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6469$as_echo_n "checking size of short... " >&6; }
6470if ${ac_cv_sizeof_short+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
6474
6475else
6476  if test "$ac_cv_type_short" = yes; then
6477     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6479as_fn_error 77 "cannot compute sizeof (short)
6480See \`config.log' for more details" "$LINENO" 5; }
6481   else
6482     ac_cv_sizeof_short=0
6483   fi
6484fi
6485
6486fi
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6488$as_echo "$ac_cv_sizeof_short" >&6; }
6489
6490
6491
6492cat >>confdefs.h <<_ACEOF
6493#define SIZEOF_SHORT $ac_cv_sizeof_short
6494_ACEOF
6495
6496
6497# The cast to long int works around a bug in the HP C Compiler
6498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6500# This bug is HP SR number 8606223364.
6501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
6502$as_echo_n "checking size of char... " >&6; }
6503if ${ac_cv_sizeof_char+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
6507
6508else
6509  if test "$ac_cv_type_char" = yes; then
6510     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6512as_fn_error 77 "cannot compute sizeof (char)
6513See \`config.log' for more details" "$LINENO" 5; }
6514   else
6515     ac_cv_sizeof_char=0
6516   fi
6517fi
6518
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
6521$as_echo "$ac_cv_sizeof_char" >&6; }
6522
6523
6524
6525cat >>confdefs.h <<_ACEOF
6526#define SIZEOF_CHAR $ac_cv_sizeof_char
6527_ACEOF
6528
6529
6530
6531
6532
6533
6534  for ac_header in $ac_header_list
6535do :
6536  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6538"
6539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6540  cat >>confdefs.h <<_ACEOF
6541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542_ACEOF
6543
6544fi
6545
6546done
6547
6548
6549
6550
6551
6552
6553
6554
6555for ac_func in getpagesize
6556do :
6557  ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6558if test "x$ac_cv_func_getpagesize" = xyes; then :
6559  cat >>confdefs.h <<_ACEOF
6560#define HAVE_GETPAGESIZE 1
6561_ACEOF
6562
6563fi
6564done
6565
6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6567$as_echo_n "checking for working mmap... " >&6; }
6568if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  if test "$cross_compiling" = yes; then :
6572  ac_cv_func_mmap_fixed_mapped=no
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576$ac_includes_default
6577/* malloc might have been renamed as rpl_malloc. */
6578#undef malloc
6579
6580/* Thanks to Mike Haertel and Jim Avera for this test.
6581   Here is a matrix of mmap possibilities:
6582	mmap private not fixed
6583	mmap private fixed at somewhere currently unmapped
6584	mmap private fixed at somewhere already mapped
6585	mmap shared not fixed
6586	mmap shared fixed at somewhere currently unmapped
6587	mmap shared fixed at somewhere already mapped
6588   For private mappings, we should verify that changes cannot be read()
6589   back from the file, nor mmap's back from the file at a different
6590   address.  (There have been systems where private was not correctly
6591   implemented like the infamous i386 svr4.0, and systems where the
6592   VM page cache was not coherent with the file system buffer cache
6593   like early versions of FreeBSD and possibly contemporary NetBSD.)
6594   For shared mappings, we should conversely verify that changes get
6595   propagated back to all the places they're supposed to be.
6596
6597   Grep wants private fixed already mapped.
6598   The main things grep needs to know about mmap are:
6599   * does it exist and is it safe to write into the mmap'd area
6600   * how to use it (BSD variants)  */
6601
6602#include <fcntl.h>
6603#include <sys/mman.h>
6604
6605#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6606char *malloc ();
6607#endif
6608
6609/* This mess was copied from the GNU getpagesize.h.  */
6610#ifndef HAVE_GETPAGESIZE
6611# ifdef _SC_PAGESIZE
6612#  define getpagesize() sysconf(_SC_PAGESIZE)
6613# else /* no _SC_PAGESIZE */
6614#  ifdef HAVE_SYS_PARAM_H
6615#   include <sys/param.h>
6616#   ifdef EXEC_PAGESIZE
6617#    define getpagesize() EXEC_PAGESIZE
6618#   else /* no EXEC_PAGESIZE */
6619#    ifdef NBPG
6620#     define getpagesize() NBPG * CLSIZE
6621#     ifndef CLSIZE
6622#      define CLSIZE 1
6623#     endif /* no CLSIZE */
6624#    else /* no NBPG */
6625#     ifdef NBPC
6626#      define getpagesize() NBPC
6627#     else /* no NBPC */
6628#      ifdef PAGESIZE
6629#       define getpagesize() PAGESIZE
6630#      endif /* PAGESIZE */
6631#     endif /* no NBPC */
6632#    endif /* no NBPG */
6633#   endif /* no EXEC_PAGESIZE */
6634#  else /* no HAVE_SYS_PARAM_H */
6635#   define getpagesize() 8192	/* punt totally */
6636#  endif /* no HAVE_SYS_PARAM_H */
6637# endif /* no _SC_PAGESIZE */
6638
6639#endif /* no HAVE_GETPAGESIZE */
6640
6641int
6642main ()
6643{
6644  char *data, *data2, *data3;
6645  const char *cdata2;
6646  int i, pagesize;
6647  int fd, fd2;
6648
6649  pagesize = getpagesize ();
6650
6651  /* First, make a file with some known garbage in it. */
6652  data = (char *) malloc (pagesize);
6653  if (!data)
6654    return 1;
6655  for (i = 0; i < pagesize; ++i)
6656    *(data + i) = rand ();
6657  umask (0);
6658  fd = creat ("conftest.mmap", 0600);
6659  if (fd < 0)
6660    return 2;
6661  if (write (fd, data, pagesize) != pagesize)
6662    return 3;
6663  close (fd);
6664
6665  /* Next, check that the tail of a page is zero-filled.  File must have
6666     non-zero length, otherwise we risk SIGBUS for entire page.  */
6667  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6668  if (fd2 < 0)
6669    return 4;
6670  cdata2 = "";
6671  if (write (fd2, cdata2, 1) != 1)
6672    return 5;
6673  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6674  if (data2 == MAP_FAILED)
6675    return 6;
6676  for (i = 0; i < pagesize; ++i)
6677    if (*(data2 + i))
6678      return 7;
6679  close (fd2);
6680  if (munmap (data2, pagesize))
6681    return 8;
6682
6683  /* Next, try to mmap the file at a fixed address which already has
6684     something else allocated at it.  If we can, also make sure that
6685     we see the same garbage.  */
6686  fd = open ("conftest.mmap", O_RDWR);
6687  if (fd < 0)
6688    return 9;
6689  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6690		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
6691    return 10;
6692  for (i = 0; i < pagesize; ++i)
6693    if (*(data + i) != *(data2 + i))
6694      return 11;
6695
6696  /* Finally, make sure that changes to the mapped area do not
6697     percolate back to the file as seen by read().  (This is a bug on
6698     some variants of i386 svr4.0.)  */
6699  for (i = 0; i < pagesize; ++i)
6700    *(data2 + i) = *(data2 + i) + 1;
6701  data3 = (char *) malloc (pagesize);
6702  if (!data3)
6703    return 12;
6704  if (read (fd, data3, pagesize) != pagesize)
6705    return 13;
6706  for (i = 0; i < pagesize; ++i)
6707    if (*(data + i) != *(data3 + i))
6708      return 14;
6709  close (fd);
6710  return 0;
6711}
6712_ACEOF
6713if ac_fn_cxx_try_run "$LINENO"; then :
6714  ac_cv_func_mmap_fixed_mapped=yes
6715else
6716  ac_cv_func_mmap_fixed_mapped=no
6717fi
6718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6719  conftest.$ac_objext conftest.beam conftest.$ac_ext
6720fi
6721
6722fi
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6724$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6725if test $ac_cv_func_mmap_fixed_mapped = yes; then
6726
6727$as_echo "#define HAVE_MMAP 1" >>confdefs.h
6728
6729fi
6730rm -f conftest.mmap conftest.txt
6731
6732for ac_func in vprintf
6733do :
6734  ac_fn_cxx_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6735if test "x$ac_cv_func_vprintf" = xyes; then :
6736  cat >>confdefs.h <<_ACEOF
6737#define HAVE_VPRINTF 1
6738_ACEOF
6739
6740ac_fn_cxx_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6741if test "x$ac_cv_func__doprnt" = xyes; then :
6742
6743$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6744
6745fi
6746
6747fi
6748done
6749
6750
6751for ac_func in gettimeofday strdup strerror random select
6752do :
6753  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6754ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6755if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6756  cat >>confdefs.h <<_ACEOF
6757#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6758_ACEOF
6759
6760fi
6761done
6762
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6764$as_echo_n "checking for library containing socket... " >&6; }
6765if ${ac_cv_search_socket+:} false; then :
6766  $as_echo_n "(cached) " >&6
6767else
6768  ac_func_search_save_LIBS=$LIBS
6769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771
6772/* Override any GCC internal prototype to avoid an error.
6773   Use char because int might match the return type of a GCC
6774   builtin and then its argument prototype would still apply.  */
6775#ifdef __cplusplus
6776extern "C"
6777#endif
6778char socket ();
6779int
6780main ()
6781{
6782return socket ();
6783  ;
6784  return 0;
6785}
6786_ACEOF
6787for ac_lib in '' socket; do
6788  if test -z "$ac_lib"; then
6789    ac_res="none required"
6790  else
6791    ac_res=-l$ac_lib
6792    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6793  fi
6794  if ac_fn_cxx_try_link "$LINENO"; then :
6795  ac_cv_search_socket=$ac_res
6796fi
6797rm -f core conftest.err conftest.$ac_objext \
6798    conftest$ac_exeext
6799  if ${ac_cv_search_socket+:} false; then :
6800  break
6801fi
6802done
6803if ${ac_cv_search_socket+:} false; then :
6804
6805else
6806  ac_cv_search_socket=no
6807fi
6808rm conftest.$ac_ext
6809LIBS=$ac_func_search_save_LIBS
6810fi
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6812$as_echo "$ac_cv_search_socket" >&6; }
6813ac_res=$ac_cv_search_socket
6814if test "$ac_res" != no; then :
6815  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6816
6817fi
6818
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6820$as_echo_n "checking for library containing inet_ntoa... " >&6; }
6821if ${ac_cv_search_inet_ntoa+:} false; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  ac_func_search_save_LIBS=$LIBS
6825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826/* end confdefs.h.  */
6827
6828/* Override any GCC internal prototype to avoid an error.
6829   Use char because int might match the return type of a GCC
6830   builtin and then its argument prototype would still apply.  */
6831#ifdef __cplusplus
6832extern "C"
6833#endif
6834char inet_ntoa ();
6835int
6836main ()
6837{
6838return inet_ntoa ();
6839  ;
6840  return 0;
6841}
6842_ACEOF
6843for ac_lib in '' nsl; do
6844  if test -z "$ac_lib"; then
6845    ac_res="none required"
6846  else
6847    ac_res=-l$ac_lib
6848    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6849  fi
6850  if ac_fn_cxx_try_link "$LINENO"; then :
6851  ac_cv_search_inet_ntoa=$ac_res
6852fi
6853rm -f core conftest.err conftest.$ac_objext \
6854    conftest$ac_exeext
6855  if ${ac_cv_search_inet_ntoa+:} false; then :
6856  break
6857fi
6858done
6859if ${ac_cv_search_inet_ntoa+:} false; then :
6860
6861else
6862  ac_cv_search_inet_ntoa=no
6863fi
6864rm conftest.$ac_ext
6865LIBS=$ac_func_search_save_LIBS
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6868$as_echo "$ac_cv_search_inet_ntoa" >&6; }
6869ac_res=$ac_cv_search_inet_ntoa
6870if test "$ac_res" != no; then :
6871  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6872
6873fi
6874
6875
6876$as_echo "#define ASFLAGS /**/" >>confdefs.h
6877
6878
6879
6880$as_echo "#define AS /**/" >>confdefs.h
6881
6882
6883
6884$as_echo "#define CCASFLAGS /**/" >>confdefs.h
6885
6886
6887
6888$as_echo "#define CCAS /**/" >>confdefs.h
6889
6890
6891
6892ac_config_files="$ac_config_files Makefile vmips.spec vmipsrc doc/Makefile libopcodes_mips/Makefile sample_code/Makefile sample_code/xmboot/Makefile test_code/Makefile test_code/vmips.misc-tests/Makefile test_code/vmips.outcheck/Makefile test_code/vmips.regcheck/Makefile"
6893
6894cat >confcache <<\_ACEOF
6895# This file is a shell script that caches the results of configure
6896# tests run on this system so they can be shared between configure
6897# scripts and configure runs, see configure's option --config-cache.
6898# It is not useful on other systems.  If it contains results you don't
6899# want to keep, you may remove or edit it.
6900#
6901# config.status only pays attention to the cache file if you give it
6902# the --recheck option to rerun configure.
6903#
6904# `ac_cv_env_foo' variables (set or unset) will be overridden when
6905# loading this file, other *unset* `ac_cv_foo' will be assigned the
6906# following values.
6907
6908_ACEOF
6909
6910# The following way of writing the cache mishandles newlines in values,
6911# but we know of no workaround that is simple, portable, and efficient.
6912# So, we kill variables containing newlines.
6913# Ultrix sh set writes to stderr and can't be redirected directly,
6914# and sets the high bit in the cache file unless we assign to the vars.
6915(
6916  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6917    eval ac_val=\$$ac_var
6918    case $ac_val in #(
6919    *${as_nl}*)
6920      case $ac_var in #(
6921      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6922$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6923      esac
6924      case $ac_var in #(
6925      _ | IFS | as_nl) ;; #(
6926      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6927      *) { eval $ac_var=; unset $ac_var;} ;;
6928      esac ;;
6929    esac
6930  done
6931
6932  (set) 2>&1 |
6933    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6934    *${as_nl}ac_space=\ *)
6935      # `set' does not quote correctly, so add quotes: double-quote
6936      # substitution turns \\\\ into \\, and sed turns \\ into \.
6937      sed -n \
6938	"s/'/'\\\\''/g;
6939	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6940      ;; #(
6941    *)
6942      # `set' quotes correctly as required by POSIX, so do not add quotes.
6943      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6944      ;;
6945    esac |
6946    sort
6947) |
6948  sed '
6949     /^ac_cv_env_/b end
6950     t clear
6951     :clear
6952     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6953     t end
6954     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6955     :end' >>confcache
6956if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6957  if test -w "$cache_file"; then
6958    if test "x$cache_file" != "x/dev/null"; then
6959      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6960$as_echo "$as_me: updating cache $cache_file" >&6;}
6961      if test ! -f "$cache_file" || test -h "$cache_file"; then
6962	cat confcache >"$cache_file"
6963      else
6964        case $cache_file in #(
6965        */* | ?:*)
6966	  mv -f confcache "$cache_file"$$ &&
6967	  mv -f "$cache_file"$$ "$cache_file" ;; #(
6968        *)
6969	  mv -f confcache "$cache_file" ;;
6970	esac
6971      fi
6972    fi
6973  else
6974    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6975$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6976  fi
6977fi
6978rm -f confcache
6979
6980test "x$prefix" = xNONE && prefix=$ac_default_prefix
6981# Let make expand exec_prefix.
6982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6983
6984DEFS=-DHAVE_CONFIG_H
6985
6986ac_libobjs=
6987ac_ltlibobjs=
6988U=
6989for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6990  # 1. Remove the extension, and $U if already installed.
6991  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6992  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6993  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6994  #    will be set to the directory where LIBOBJS objects are built.
6995  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6996  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6997done
6998LIBOBJS=$ac_libobjs
6999
7000LTLIBOBJS=$ac_ltlibobjs
7001
7002
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7004$as_echo_n "checking that generated files are newer than configure... " >&6; }
7005   if test -n "$am_sleep_pid"; then
7006     # Hide warnings about reused PIDs.
7007     wait $am_sleep_pid 2>/dev/null
7008   fi
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7010$as_echo "done" >&6; }
7011 if test -n "$EXEEXT"; then
7012  am__EXEEXT_TRUE=
7013  am__EXEEXT_FALSE='#'
7014else
7015  am__EXEEXT_TRUE='#'
7016  am__EXEEXT_FALSE=
7017fi
7018
7019if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7020  as_fn_error $? "conditional \"AMDEP\" was never defined.
7021Usually this means the macro was only invoked conditionally." "$LINENO" 5
7022fi
7023if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7024  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7025Usually this means the macro was only invoked conditionally." "$LINENO" 5
7026fi
7027if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7028  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7029Usually this means the macro was only invoked conditionally." "$LINENO" 5
7030fi
7031if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
7032  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
7033Usually this means the macro was only invoked conditionally." "$LINENO" 5
7034fi
7035
7036: "${CONFIG_STATUS=./config.status}"
7037ac_write_fail=0
7038ac_clean_files_save=$ac_clean_files
7039ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7041$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7042as_write_fail=0
7043cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7044#! $SHELL
7045# Generated by $as_me.
7046# Run this file to recreate the current configuration.
7047# Compiler output produced by configure, useful for debugging
7048# configure, is in config.log if it exists.
7049
7050debug=false
7051ac_cs_recheck=false
7052ac_cs_silent=false
7053
7054SHELL=\${CONFIG_SHELL-$SHELL}
7055export SHELL
7056_ASEOF
7057cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7058## -------------------- ##
7059## M4sh Initialization. ##
7060## -------------------- ##
7061
7062# Be more Bourne compatible
7063DUALCASE=1; export DUALCASE # for MKS sh
7064if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7065  emulate sh
7066  NULLCMD=:
7067  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7068  # is contrary to our usage.  Disable this feature.
7069  alias -g '${1+"$@"}'='"$@"'
7070  setopt NO_GLOB_SUBST
7071else
7072  case `(set -o) 2>/dev/null` in #(
7073  *posix*) :
7074    set -o posix ;; #(
7075  *) :
7076     ;;
7077esac
7078fi
7079
7080
7081as_nl='
7082'
7083export as_nl
7084# Printing a long string crashes Solaris 7 /usr/bin/printf.
7085as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7086as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7087as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7088# Prefer a ksh shell builtin over an external printf program on Solaris,
7089# but without wasting forks for bash or zsh.
7090if test -z "$BASH_VERSION$ZSH_VERSION" \
7091    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7092  as_echo='print -r --'
7093  as_echo_n='print -rn --'
7094elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7095  as_echo='printf %s\n'
7096  as_echo_n='printf %s'
7097else
7098  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7099    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7100    as_echo_n='/usr/ucb/echo -n'
7101  else
7102    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7103    as_echo_n_body='eval
7104      arg=$1;
7105      case $arg in #(
7106      *"$as_nl"*)
7107	expr "X$arg" : "X\\(.*\\)$as_nl";
7108	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7109      esac;
7110      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7111    '
7112    export as_echo_n_body
7113    as_echo_n='sh -c $as_echo_n_body as_echo'
7114  fi
7115  export as_echo_body
7116  as_echo='sh -c $as_echo_body as_echo'
7117fi
7118
7119# The user is always right.
7120if test "${PATH_SEPARATOR+set}" != set; then
7121  PATH_SEPARATOR=:
7122  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7123    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7124      PATH_SEPARATOR=';'
7125  }
7126fi
7127
7128
7129# IFS
7130# We need space, tab and new line, in precisely that order.  Quoting is
7131# there to prevent editors from complaining about space-tab.
7132# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7133# splitting by setting IFS to empty value.)
7134IFS=" ""	$as_nl"
7135
7136# Find who we are.  Look in the path if we contain no directory separator.
7137as_myself=
7138case $0 in #((
7139  *[\\/]* ) as_myself=$0 ;;
7140  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143  IFS=$as_save_IFS
7144  test -z "$as_dir" && as_dir=.
7145    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7146  done
7147IFS=$as_save_IFS
7148
7149     ;;
7150esac
7151# We did not find ourselves, most probably we were run as `sh COMMAND'
7152# in which case we are not to be found in the path.
7153if test "x$as_myself" = x; then
7154  as_myself=$0
7155fi
7156if test ! -f "$as_myself"; then
7157  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7158  exit 1
7159fi
7160
7161# Unset variables that we do not need and which cause bugs (e.g. in
7162# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
7163# suppresses any "Segmentation fault" message there.  '((' could
7164# trigger a bug in pdksh 5.2.14.
7165for as_var in BASH_ENV ENV MAIL MAILPATH
7166do eval test x\${$as_var+set} = xset \
7167  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7168done
7169PS1='$ '
7170PS2='> '
7171PS4='+ '
7172
7173# NLS nuisances.
7174LC_ALL=C
7175export LC_ALL
7176LANGUAGE=C
7177export LANGUAGE
7178
7179# CDPATH.
7180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7181
7182
7183# as_fn_error STATUS ERROR [LINENO LOG_FD]
7184# ----------------------------------------
7185# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7186# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7187# script with STATUS, using 1 if that was 0.
7188as_fn_error ()
7189{
7190  as_status=$1; test $as_status -eq 0 && as_status=1
7191  if test "$4"; then
7192    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7193    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7194  fi
7195  $as_echo "$as_me: error: $2" >&2
7196  as_fn_exit $as_status
7197} # as_fn_error
7198
7199
7200# as_fn_set_status STATUS
7201# -----------------------
7202# Set $? to STATUS, without forking.
7203as_fn_set_status ()
7204{
7205  return $1
7206} # as_fn_set_status
7207
7208# as_fn_exit STATUS
7209# -----------------
7210# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7211as_fn_exit ()
7212{
7213  set +e
7214  as_fn_set_status $1
7215  exit $1
7216} # as_fn_exit
7217
7218# as_fn_unset VAR
7219# ---------------
7220# Portably unset VAR.
7221as_fn_unset ()
7222{
7223  { eval $1=; unset $1;}
7224}
7225as_unset=as_fn_unset
7226# as_fn_append VAR VALUE
7227# ----------------------
7228# Append the text in VALUE to the end of the definition contained in VAR. Take
7229# advantage of any shell optimizations that allow amortized linear growth over
7230# repeated appends, instead of the typical quadratic growth present in naive
7231# implementations.
7232if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7233  eval 'as_fn_append ()
7234  {
7235    eval $1+=\$2
7236  }'
7237else
7238  as_fn_append ()
7239  {
7240    eval $1=\$$1\$2
7241  }
7242fi # as_fn_append
7243
7244# as_fn_arith ARG...
7245# ------------------
7246# Perform arithmetic evaluation on the ARGs, and store the result in the
7247# global $as_val. Take advantage of shells that can avoid forks. The arguments
7248# must be portable across $(()) and expr.
7249if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7250  eval 'as_fn_arith ()
7251  {
7252    as_val=$(( $* ))
7253  }'
7254else
7255  as_fn_arith ()
7256  {
7257    as_val=`expr "$@" || test $? -eq 1`
7258  }
7259fi # as_fn_arith
7260
7261
7262if expr a : '\(a\)' >/dev/null 2>&1 &&
7263   test "X`expr 00001 : '.*\(...\)'`" = X001; then
7264  as_expr=expr
7265else
7266  as_expr=false
7267fi
7268
7269if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7270  as_basename=basename
7271else
7272  as_basename=false
7273fi
7274
7275if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7276  as_dirname=dirname
7277else
7278  as_dirname=false
7279fi
7280
7281as_me=`$as_basename -- "$0" ||
7282$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7283	 X"$0" : 'X\(//\)$' \| \
7284	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7285$as_echo X/"$0" |
7286    sed '/^.*\/\([^/][^/]*\)\/*$/{
7287	    s//\1/
7288	    q
7289	  }
7290	  /^X\/\(\/\/\)$/{
7291	    s//\1/
7292	    q
7293	  }
7294	  /^X\/\(\/\).*/{
7295	    s//\1/
7296	    q
7297	  }
7298	  s/.*/./; q'`
7299
7300# Avoid depending upon Character Ranges.
7301as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7302as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7303as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7304as_cr_digits='0123456789'
7305as_cr_alnum=$as_cr_Letters$as_cr_digits
7306
7307ECHO_C= ECHO_N= ECHO_T=
7308case `echo -n x` in #(((((
7309-n*)
7310  case `echo 'xy\c'` in
7311  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
7312  xy)  ECHO_C='\c';;
7313  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7314       ECHO_T='	';;
7315  esac;;
7316*)
7317  ECHO_N='-n';;
7318esac
7319
7320rm -f conf$$ conf$$.exe conf$$.file
7321if test -d conf$$.dir; then
7322  rm -f conf$$.dir/conf$$.file
7323else
7324  rm -f conf$$.dir
7325  mkdir conf$$.dir 2>/dev/null
7326fi
7327if (echo >conf$$.file) 2>/dev/null; then
7328  if ln -s conf$$.file conf$$ 2>/dev/null; then
7329    as_ln_s='ln -s'
7330    # ... but there are two gotchas:
7331    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7332    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7333    # In both cases, we have to default to `cp -pR'.
7334    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7335      as_ln_s='cp -pR'
7336  elif ln conf$$.file conf$$ 2>/dev/null; then
7337    as_ln_s=ln
7338  else
7339    as_ln_s='cp -pR'
7340  fi
7341else
7342  as_ln_s='cp -pR'
7343fi
7344rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7345rmdir conf$$.dir 2>/dev/null
7346
7347
7348# as_fn_mkdir_p
7349# -------------
7350# Create "$as_dir" as a directory, including parents if necessary.
7351as_fn_mkdir_p ()
7352{
7353
7354  case $as_dir in #(
7355  -*) as_dir=./$as_dir;;
7356  esac
7357  test -d "$as_dir" || eval $as_mkdir_p || {
7358    as_dirs=
7359    while :; do
7360      case $as_dir in #(
7361      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7362      *) as_qdir=$as_dir;;
7363      esac
7364      as_dirs="'$as_qdir' $as_dirs"
7365      as_dir=`$as_dirname -- "$as_dir" ||
7366$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7367	 X"$as_dir" : 'X\(//\)[^/]' \| \
7368	 X"$as_dir" : 'X\(//\)$' \| \
7369	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7370$as_echo X"$as_dir" |
7371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7372	    s//\1/
7373	    q
7374	  }
7375	  /^X\(\/\/\)[^/].*/{
7376	    s//\1/
7377	    q
7378	  }
7379	  /^X\(\/\/\)$/{
7380	    s//\1/
7381	    q
7382	  }
7383	  /^X\(\/\).*/{
7384	    s//\1/
7385	    q
7386	  }
7387	  s/.*/./; q'`
7388      test -d "$as_dir" && break
7389    done
7390    test -z "$as_dirs" || eval "mkdir $as_dirs"
7391  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7392
7393
7394} # as_fn_mkdir_p
7395if mkdir -p . 2>/dev/null; then
7396  as_mkdir_p='mkdir -p "$as_dir"'
7397else
7398  test -d ./-p && rmdir ./-p
7399  as_mkdir_p=false
7400fi
7401
7402
7403# as_fn_executable_p FILE
7404# -----------------------
7405# Test if FILE is an executable regular file.
7406as_fn_executable_p ()
7407{
7408  test -f "$1" && test -x "$1"
7409} # as_fn_executable_p
7410as_test_x='test -x'
7411as_executable_p=as_fn_executable_p
7412
7413# Sed expression to map a string onto a valid CPP name.
7414as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7415
7416# Sed expression to map a string onto a valid variable name.
7417as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7418
7419
7420exec 6>&1
7421## ----------------------------------- ##
7422## Main body of $CONFIG_STATUS script. ##
7423## ----------------------------------- ##
7424_ASEOF
7425test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7426
7427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7428# Save the log message, to keep $0 and so on meaningful, and to
7429# report actual input values of CONFIG_FILES etc. instead of their
7430# values after options handling.
7431ac_log="
7432This file was extended by $as_me, which was
7433generated by GNU Autoconf 2.69.  Invocation command line was
7434
7435  CONFIG_FILES    = $CONFIG_FILES
7436  CONFIG_HEADERS  = $CONFIG_HEADERS
7437  CONFIG_LINKS    = $CONFIG_LINKS
7438  CONFIG_COMMANDS = $CONFIG_COMMANDS
7439  $ $0 $@
7440
7441on `(hostname || uname -n) 2>/dev/null | sed 1q`
7442"
7443
7444_ACEOF
7445
7446case $ac_config_files in *"
7447"*) set x $ac_config_files; shift; ac_config_files=$*;;
7448esac
7449
7450case $ac_config_headers in *"
7451"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7452esac
7453
7454
7455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7456# Files that config.status was made for.
7457config_files="$ac_config_files"
7458config_headers="$ac_config_headers"
7459config_commands="$ac_config_commands"
7460
7461_ACEOF
7462
7463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7464ac_cs_usage="\
7465\`$as_me' instantiates files and other configuration actions
7466from templates according to the current configuration.  Unless the files
7467and actions are specified as TAGs, all are instantiated by default.
7468
7469Usage: $0 [OPTION]... [TAG]...
7470
7471  -h, --help       print this help, then exit
7472  -V, --version    print version number and configuration settings, then exit
7473      --config     print configuration, then exit
7474  -q, --quiet, --silent
7475                   do not print progress messages
7476  -d, --debug      don't remove temporary files
7477      --recheck    update $as_me by reconfiguring in the same conditions
7478      --file=FILE[:TEMPLATE]
7479                   instantiate the configuration file FILE
7480      --header=FILE[:TEMPLATE]
7481                   instantiate the configuration header FILE
7482
7483Configuration files:
7484$config_files
7485
7486Configuration headers:
7487$config_headers
7488
7489Configuration commands:
7490$config_commands
7491
7492Report bugs to the package provider."
7493
7494_ACEOF
7495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7496ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7497ac_cs_version="\\
7498config.status
7499configured by $0, generated by GNU Autoconf 2.69,
7500  with options \\"\$ac_cs_config\\"
7501
7502Copyright (C) 2012 Free Software Foundation, Inc.
7503This config.status script is free software; the Free Software Foundation
7504gives unlimited permission to copy, distribute and modify it."
7505
7506ac_pwd='$ac_pwd'
7507srcdir='$srcdir'
7508INSTALL='$INSTALL'
7509MKDIR_P='$MKDIR_P'
7510AWK='$AWK'
7511test -n "\$AWK" || AWK=awk
7512_ACEOF
7513
7514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7515# The default lists apply if the user does not specify any file.
7516ac_need_defaults=:
7517while test $# != 0
7518do
7519  case $1 in
7520  --*=?*)
7521    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7522    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7523    ac_shift=:
7524    ;;
7525  --*=)
7526    ac_option=`expr "X$1" : 'X\([^=]*\)='`
7527    ac_optarg=
7528    ac_shift=:
7529    ;;
7530  *)
7531    ac_option=$1
7532    ac_optarg=$2
7533    ac_shift=shift
7534    ;;
7535  esac
7536
7537  case $ac_option in
7538  # Handling of the options.
7539  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7540    ac_cs_recheck=: ;;
7541  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7542    $as_echo "$ac_cs_version"; exit ;;
7543  --config | --confi | --conf | --con | --co | --c )
7544    $as_echo "$ac_cs_config"; exit ;;
7545  --debug | --debu | --deb | --de | --d | -d )
7546    debug=: ;;
7547  --file | --fil | --fi | --f )
7548    $ac_shift
7549    case $ac_optarg in
7550    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7551    '') as_fn_error $? "missing file argument" ;;
7552    esac
7553    as_fn_append CONFIG_FILES " '$ac_optarg'"
7554    ac_need_defaults=false;;
7555  --header | --heade | --head | --hea )
7556    $ac_shift
7557    case $ac_optarg in
7558    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7559    esac
7560    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7561    ac_need_defaults=false;;
7562  --he | --h)
7563    # Conflict between --help and --header
7564    as_fn_error $? "ambiguous option: \`$1'
7565Try \`$0 --help' for more information.";;
7566  --help | --hel | -h )
7567    $as_echo "$ac_cs_usage"; exit ;;
7568  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7569  | -silent | --silent | --silen | --sile | --sil | --si | --s)
7570    ac_cs_silent=: ;;
7571
7572  # This is an error.
7573  -*) as_fn_error $? "unrecognized option: \`$1'
7574Try \`$0 --help' for more information." ;;
7575
7576  *) as_fn_append ac_config_targets " $1"
7577     ac_need_defaults=false ;;
7578
7579  esac
7580  shift
7581done
7582
7583ac_configure_extra_args=
7584
7585if $ac_cs_silent; then
7586  exec 6>/dev/null
7587  ac_configure_extra_args="$ac_configure_extra_args --silent"
7588fi
7589
7590_ACEOF
7591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7592if \$ac_cs_recheck; then
7593  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7594  shift
7595  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7596  CONFIG_SHELL='$SHELL'
7597  export CONFIG_SHELL
7598  exec "\$@"
7599fi
7600
7601_ACEOF
7602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7603exec 5>>config.log
7604{
7605  echo
7606  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7607## Running $as_me. ##
7608_ASBOX
7609  $as_echo "$ac_log"
7610} >&5
7611
7612_ACEOF
7613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7614#
7615# INIT-COMMANDS
7616#
7617AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7618
7619_ACEOF
7620
7621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7622
7623# Handling of arguments.
7624for ac_config_target in $ac_config_targets
7625do
7626  case $ac_config_target in
7627    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7628    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7629    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7630    "vmips.spec") CONFIG_FILES="$CONFIG_FILES vmips.spec" ;;
7631    "vmipsrc") CONFIG_FILES="$CONFIG_FILES vmipsrc" ;;
7632    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7633    "libopcodes_mips/Makefile") CONFIG_FILES="$CONFIG_FILES libopcodes_mips/Makefile" ;;
7634    "sample_code/Makefile") CONFIG_FILES="$CONFIG_FILES sample_code/Makefile" ;;
7635    "sample_code/xmboot/Makefile") CONFIG_FILES="$CONFIG_FILES sample_code/xmboot/Makefile" ;;
7636    "test_code/Makefile") CONFIG_FILES="$CONFIG_FILES test_code/Makefile" ;;
7637    "test_code/vmips.misc-tests/Makefile") CONFIG_FILES="$CONFIG_FILES test_code/vmips.misc-tests/Makefile" ;;
7638    "test_code/vmips.outcheck/Makefile") CONFIG_FILES="$CONFIG_FILES test_code/vmips.outcheck/Makefile" ;;
7639    "test_code/vmips.regcheck/Makefile") CONFIG_FILES="$CONFIG_FILES test_code/vmips.regcheck/Makefile" ;;
7640
7641  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7642  esac
7643done
7644
7645
7646# If the user did not use the arguments to specify the items to instantiate,
7647# then the envvar interface is used.  Set only those that are not.
7648# We use the long form for the default assignment because of an extremely
7649# bizarre bug on SunOS 4.1.3.
7650if $ac_need_defaults; then
7651  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7652  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7653  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7654fi
7655
7656# Have a temporary directory for convenience.  Make it in the build tree
7657# simply because there is no reason against having it here, and in addition,
7658# creating and moving files from /tmp can sometimes cause problems.
7659# Hook for its removal unless debugging.
7660# Note that there is a small window in which the directory will not be cleaned:
7661# after its creation but before its name has been assigned to `$tmp'.
7662$debug ||
7663{
7664  tmp= ac_tmp=
7665  trap 'exit_status=$?
7666  : "${ac_tmp:=$tmp}"
7667  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7668' 0
7669  trap 'as_fn_exit 1' 1 2 13 15
7670}
7671# Create a (secure) tmp directory for tmp files.
7672
7673{
7674  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7675  test -d "$tmp"
7676}  ||
7677{
7678  tmp=./conf$$-$RANDOM
7679  (umask 077 && mkdir "$tmp")
7680} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7681ac_tmp=$tmp
7682
7683# Set up the scripts for CONFIG_FILES section.
7684# No need to generate them if there are no CONFIG_FILES.
7685# This happens for instance with `./config.status config.h'.
7686if test -n "$CONFIG_FILES"; then
7687
7688
7689ac_cr=`echo X | tr X '\015'`
7690# On cygwin, bash can eat \r inside `` if the user requested igncr.
7691# But we know of no other shell where ac_cr would be empty at this
7692# point, so we can use a bashism as a fallback.
7693if test "x$ac_cr" = x; then
7694  eval ac_cr=\$\'\\r\'
7695fi
7696ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7697if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7698  ac_cs_awk_cr='\\r'
7699else
7700  ac_cs_awk_cr=$ac_cr
7701fi
7702
7703echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7704_ACEOF
7705
7706
7707{
7708  echo "cat >conf$$subs.awk <<_ACEOF" &&
7709  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7710  echo "_ACEOF"
7711} >conf$$subs.sh ||
7712  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7713ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7714ac_delim='%!_!# '
7715for ac_last_try in false false false false false :; do
7716  . ./conf$$subs.sh ||
7717    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7718
7719  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7720  if test $ac_delim_n = $ac_delim_num; then
7721    break
7722  elif $ac_last_try; then
7723    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7724  else
7725    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7726  fi
7727done
7728rm -f conf$$subs.sh
7729
7730cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7731cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7732_ACEOF
7733sed -n '
7734h
7735s/^/S["/; s/!.*/"]=/
7736p
7737g
7738s/^[^!]*!//
7739:repl
7740t repl
7741s/'"$ac_delim"'$//
7742t delim
7743:nl
7744h
7745s/\(.\{148\}\)..*/\1/
7746t more1
7747s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7748p
7749n
7750b repl
7751:more1
7752s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7753p
7754g
7755s/.\{148\}//
7756t nl
7757:delim
7758h
7759s/\(.\{148\}\)..*/\1/
7760t more2
7761s/["\\]/\\&/g; s/^/"/; s/$/"/
7762p
7763b
7764:more2
7765s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7766p
7767g
7768s/.\{148\}//
7769t delim
7770' <conf$$subs.awk | sed '
7771/^[^""]/{
7772  N
7773  s/\n//
7774}
7775' >>$CONFIG_STATUS || ac_write_fail=1
7776rm -f conf$$subs.awk
7777cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7778_ACAWK
7779cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7780  for (key in S) S_is_set[key] = 1
7781  FS = ""
7782
7783}
7784{
7785  line = $ 0
7786  nfields = split(line, field, "@")
7787  substed = 0
7788  len = length(field[1])
7789  for (i = 2; i < nfields; i++) {
7790    key = field[i]
7791    keylen = length(key)
7792    if (S_is_set[key]) {
7793      value = S[key]
7794      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7795      len += length(value) + length(field[++i])
7796      substed = 1
7797    } else
7798      len += 1 + keylen
7799  }
7800
7801  print line
7802}
7803
7804_ACAWK
7805_ACEOF
7806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7807if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7808  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7809else
7810  cat
7811fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7812  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7813_ACEOF
7814
7815# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7816# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7817# trailing colons and then remove the whole line if VPATH becomes empty
7818# (actually we leave an empty line to preserve line numbers).
7819if test "x$srcdir" = x.; then
7820  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
7821h
7822s///
7823s/^/:/
7824s/[	 ]*$/:/
7825s/:\$(srcdir):/:/g
7826s/:\${srcdir}:/:/g
7827s/:@srcdir@:/:/g
7828s/^:*//
7829s/:*$//
7830x
7831s/\(=[	 ]*\).*/\1/
7832G
7833s/\n//
7834s/^[^=]*=[	 ]*$//
7835}'
7836fi
7837
7838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7839fi # test -n "$CONFIG_FILES"
7840
7841# Set up the scripts for CONFIG_HEADERS section.
7842# No need to generate them if there are no CONFIG_HEADERS.
7843# This happens for instance with `./config.status Makefile'.
7844if test -n "$CONFIG_HEADERS"; then
7845cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7846BEGIN {
7847_ACEOF
7848
7849# Transform confdefs.h into an awk script `defines.awk', embedded as
7850# here-document in config.status, that substitutes the proper values into
7851# config.h.in to produce config.h.
7852
7853# Create a delimiter string that does not exist in confdefs.h, to ease
7854# handling of long lines.
7855ac_delim='%!_!# '
7856for ac_last_try in false false :; do
7857  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7858  if test -z "$ac_tt"; then
7859    break
7860  elif $ac_last_try; then
7861    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7862  else
7863    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7864  fi
7865done
7866
7867# For the awk script, D is an array of macro values keyed by name,
7868# likewise P contains macro parameters if any.  Preserve backslash
7869# newline sequences.
7870
7871ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7872sed -n '
7873s/.\{148\}/&'"$ac_delim"'/g
7874t rset
7875:rset
7876s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7877t def
7878d
7879:def
7880s/\\$//
7881t bsnl
7882s/["\\]/\\&/g
7883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7884D["\1"]=" \3"/p
7885s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7886d
7887:bsnl
7888s/["\\]/\\&/g
7889s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7890D["\1"]=" \3\\\\\\n"\\/p
7891t cont
7892s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7893t cont
7894d
7895:cont
7896n
7897s/.\{148\}/&'"$ac_delim"'/g
7898t clear
7899:clear
7900s/\\$//
7901t bsnlc
7902s/["\\]/\\&/g; s/^/"/; s/$/"/p
7903d
7904:bsnlc
7905s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7906b cont
7907' <confdefs.h | sed '
7908s/'"$ac_delim"'/"\\\
7909"/g' >>$CONFIG_STATUS || ac_write_fail=1
7910
7911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7912  for (key in D) D_is_set[key] = 1
7913  FS = ""
7914}
7915/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7916  line = \$ 0
7917  split(line, arg, " ")
7918  if (arg[1] == "#") {
7919    defundef = arg[2]
7920    mac1 = arg[3]
7921  } else {
7922    defundef = substr(arg[1], 2)
7923    mac1 = arg[2]
7924  }
7925  split(mac1, mac2, "(") #)
7926  macro = mac2[1]
7927  prefix = substr(line, 1, index(line, defundef) - 1)
7928  if (D_is_set[macro]) {
7929    # Preserve the white space surrounding the "#".
7930    print prefix "define", macro P[macro] D[macro]
7931    next
7932  } else {
7933    # Replace #undef with comments.  This is necessary, for example,
7934    # in the case of _POSIX_SOURCE, which is predefined and required
7935    # on some systems where configure will not decide to define it.
7936    if (defundef == "undef") {
7937      print "/*", prefix defundef, macro, "*/"
7938      next
7939    }
7940  }
7941}
7942{ print }
7943_ACAWK
7944_ACEOF
7945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7946  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7947fi # test -n "$CONFIG_HEADERS"
7948
7949
7950eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
7951shift
7952for ac_tag
7953do
7954  case $ac_tag in
7955  :[FHLC]) ac_mode=$ac_tag; continue;;
7956  esac
7957  case $ac_mode$ac_tag in
7958  :[FHL]*:*);;
7959  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7960  :[FH]-) ac_tag=-:-;;
7961  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7962  esac
7963  ac_save_IFS=$IFS
7964  IFS=:
7965  set x $ac_tag
7966  IFS=$ac_save_IFS
7967  shift
7968  ac_file=$1
7969  shift
7970
7971  case $ac_mode in
7972  :L) ac_source=$1;;
7973  :[FH])
7974    ac_file_inputs=
7975    for ac_f
7976    do
7977      case $ac_f in
7978      -) ac_f="$ac_tmp/stdin";;
7979      *) # Look for the file first in the build tree, then in the source tree
7980	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7981	 # because $ac_f cannot contain `:'.
7982	 test -f "$ac_f" ||
7983	   case $ac_f in
7984	   [\\/$]*) false;;
7985	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7986	   esac ||
7987	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7988      esac
7989      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7990      as_fn_append ac_file_inputs " '$ac_f'"
7991    done
7992
7993    # Let's still pretend it is `configure' which instantiates (i.e., don't
7994    # use $as_me), people would be surprised to read:
7995    #    /* config.h.  Generated by config.status.  */
7996    configure_input='Generated from '`
7997	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7998	`' by configure.'
7999    if test x"$ac_file" != x-; then
8000      configure_input="$ac_file.  $configure_input"
8001      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8002$as_echo "$as_me: creating $ac_file" >&6;}
8003    fi
8004    # Neutralize special characters interpreted by sed in replacement strings.
8005    case $configure_input in #(
8006    *\&* | *\|* | *\\* )
8007       ac_sed_conf_input=`$as_echo "$configure_input" |
8008       sed 's/[\\\\&|]/\\\\&/g'`;; #(
8009    *) ac_sed_conf_input=$configure_input;;
8010    esac
8011
8012    case $ac_tag in
8013    *:-:* | *:-) cat >"$ac_tmp/stdin" \
8014      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8015    esac
8016    ;;
8017  esac
8018
8019  ac_dir=`$as_dirname -- "$ac_file" ||
8020$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8021	 X"$ac_file" : 'X\(//\)[^/]' \| \
8022	 X"$ac_file" : 'X\(//\)$' \| \
8023	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8024$as_echo X"$ac_file" |
8025    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8026	    s//\1/
8027	    q
8028	  }
8029	  /^X\(\/\/\)[^/].*/{
8030	    s//\1/
8031	    q
8032	  }
8033	  /^X\(\/\/\)$/{
8034	    s//\1/
8035	    q
8036	  }
8037	  /^X\(\/\).*/{
8038	    s//\1/
8039	    q
8040	  }
8041	  s/.*/./; q'`
8042  as_dir="$ac_dir"; as_fn_mkdir_p
8043  ac_builddir=.
8044
8045case "$ac_dir" in
8046.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8047*)
8048  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8049  # A ".." for each directory in $ac_dir_suffix.
8050  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8051  case $ac_top_builddir_sub in
8052  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8053  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8054  esac ;;
8055esac
8056ac_abs_top_builddir=$ac_pwd
8057ac_abs_builddir=$ac_pwd$ac_dir_suffix
8058# for backward compatibility:
8059ac_top_builddir=$ac_top_build_prefix
8060
8061case $srcdir in
8062  .)  # We are building in place.
8063    ac_srcdir=.
8064    ac_top_srcdir=$ac_top_builddir_sub
8065    ac_abs_top_srcdir=$ac_pwd ;;
8066  [\\/]* | ?:[\\/]* )  # Absolute name.
8067    ac_srcdir=$srcdir$ac_dir_suffix;
8068    ac_top_srcdir=$srcdir
8069    ac_abs_top_srcdir=$srcdir ;;
8070  *) # Relative name.
8071    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8072    ac_top_srcdir=$ac_top_build_prefix$srcdir
8073    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8074esac
8075ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8076
8077
8078  case $ac_mode in
8079  :F)
8080  #
8081  # CONFIG_FILE
8082  #
8083
8084  case $INSTALL in
8085  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8086  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8087  esac
8088  ac_MKDIR_P=$MKDIR_P
8089  case $MKDIR_P in
8090  [\\/$]* | ?:[\\/]* ) ;;
8091  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8092  esac
8093_ACEOF
8094
8095cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8096# If the template does not know about datarootdir, expand it.
8097# FIXME: This hack should be removed a few years after 2.60.
8098ac_datarootdir_hack=; ac_datarootdir_seen=
8099ac_sed_dataroot='
8100/datarootdir/ {
8101  p
8102  q
8103}
8104/@datadir@/p
8105/@docdir@/p
8106/@infodir@/p
8107/@localedir@/p
8108/@mandir@/p'
8109case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8110*datarootdir*) ac_datarootdir_seen=yes;;
8111*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8112  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8113$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8114_ACEOF
8115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8116  ac_datarootdir_hack='
8117  s&@datadir@&$datadir&g
8118  s&@docdir@&$docdir&g
8119  s&@infodir@&$infodir&g
8120  s&@localedir@&$localedir&g
8121  s&@mandir@&$mandir&g
8122  s&\\\${datarootdir}&$datarootdir&g' ;;
8123esac
8124_ACEOF
8125
8126# Neutralize VPATH when `$srcdir' = `.'.
8127# Shell code in configure.ac might set extrasub.
8128# FIXME: do we really want to maintain this feature?
8129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8130ac_sed_extra="$ac_vpsub
8131$extrasub
8132_ACEOF
8133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8134:t
8135/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8136s|@configure_input@|$ac_sed_conf_input|;t t
8137s&@top_builddir@&$ac_top_builddir_sub&;t t
8138s&@top_build_prefix@&$ac_top_build_prefix&;t t
8139s&@srcdir@&$ac_srcdir&;t t
8140s&@abs_srcdir@&$ac_abs_srcdir&;t t
8141s&@top_srcdir@&$ac_top_srcdir&;t t
8142s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8143s&@builddir@&$ac_builddir&;t t
8144s&@abs_builddir@&$ac_abs_builddir&;t t
8145s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8146s&@INSTALL@&$ac_INSTALL&;t t
8147s&@MKDIR_P@&$ac_MKDIR_P&;t t
8148$ac_datarootdir_hack
8149"
8150eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8151  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8152
8153test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8154  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8155  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
8156      "$ac_tmp/out"`; test -z "$ac_out"; } &&
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8158which seems to be undefined.  Please make sure it is defined" >&5
8159$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8160which seems to be undefined.  Please make sure it is defined" >&2;}
8161
8162  rm -f "$ac_tmp/stdin"
8163  case $ac_file in
8164  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8165  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8166  esac \
8167  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8168 ;;
8169  :H)
8170  #
8171  # CONFIG_HEADER
8172  #
8173  if test x"$ac_file" != x-; then
8174    {
8175      $as_echo "/* $configure_input  */" \
8176      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8177    } >"$ac_tmp/config.h" \
8178      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8179    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8180      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8181$as_echo "$as_me: $ac_file is unchanged" >&6;}
8182    else
8183      rm -f "$ac_file"
8184      mv "$ac_tmp/config.h" "$ac_file" \
8185	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
8186    fi
8187  else
8188    $as_echo "/* $configure_input  */" \
8189      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8190      || as_fn_error $? "could not create -" "$LINENO" 5
8191  fi
8192# Compute "$ac_file"'s index in $config_headers.
8193_am_arg="$ac_file"
8194_am_stamp_count=1
8195for _am_header in $config_headers :; do
8196  case $_am_header in
8197    $_am_arg | $_am_arg:* )
8198      break ;;
8199    * )
8200      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8201  esac
8202done
8203echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8204$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8205	 X"$_am_arg" : 'X\(//\)[^/]' \| \
8206	 X"$_am_arg" : 'X\(//\)$' \| \
8207	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8208$as_echo X"$_am_arg" |
8209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8210	    s//\1/
8211	    q
8212	  }
8213	  /^X\(\/\/\)[^/].*/{
8214	    s//\1/
8215	    q
8216	  }
8217	  /^X\(\/\/\)$/{
8218	    s//\1/
8219	    q
8220	  }
8221	  /^X\(\/\).*/{
8222	    s//\1/
8223	    q
8224	  }
8225	  s/.*/./; q'`/stamp-h$_am_stamp_count
8226 ;;
8227
8228  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8229$as_echo "$as_me: executing $ac_file commands" >&6;}
8230 ;;
8231  esac
8232
8233
8234  case $ac_file$ac_mode in
8235    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8236  # Autoconf 2.62 quotes --file arguments for eval, but not when files
8237  # are listed without --file.  Let's play safe and only enable the eval
8238  # if we detect the quoting.
8239  case $CONFIG_FILES in
8240  *\'*) eval set x "$CONFIG_FILES" ;;
8241  *)   set x $CONFIG_FILES ;;
8242  esac
8243  shift
8244  for mf
8245  do
8246    # Strip MF so we end up with the name of the file.
8247    mf=`echo "$mf" | sed -e 's/:.*$//'`
8248    # Check whether this is an Automake generated Makefile or not.
8249    # We used to match only the files named 'Makefile.in', but
8250    # some people rename them; so instead we look at the file content.
8251    # Grep'ing the first line is not enough: some people post-process
8252    # each Makefile.in and add a new line on top of each file to say so.
8253    # Grep'ing the whole file is not good either: AIX grep has a line
8254    # limit of 2048, but all sed's we know have understand at least 4000.
8255    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8256      dirpart=`$as_dirname -- "$mf" ||
8257$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8258	 X"$mf" : 'X\(//\)[^/]' \| \
8259	 X"$mf" : 'X\(//\)$' \| \
8260	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8261$as_echo X"$mf" |
8262    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8263	    s//\1/
8264	    q
8265	  }
8266	  /^X\(\/\/\)[^/].*/{
8267	    s//\1/
8268	    q
8269	  }
8270	  /^X\(\/\/\)$/{
8271	    s//\1/
8272	    q
8273	  }
8274	  /^X\(\/\).*/{
8275	    s//\1/
8276	    q
8277	  }
8278	  s/.*/./; q'`
8279    else
8280      continue
8281    fi
8282    # Extract the definition of DEPDIR, am__include, and am__quote
8283    # from the Makefile without running 'make'.
8284    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8285    test -z "$DEPDIR" && continue
8286    am__include=`sed -n 's/^am__include = //p' < "$mf"`
8287    test -z "am__include" && continue
8288    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8289    # Find all dependency output files, they are included files with
8290    # $(DEPDIR) in their names.  We invoke sed twice because it is the
8291    # simplest approach to changing $(DEPDIR) to its actual value in the
8292    # expansion.
8293    for file in `sed -n "
8294      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8295	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8296      # Make sure the directory exists.
8297      test -f "$dirpart/$file" && continue
8298      fdir=`$as_dirname -- "$file" ||
8299$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8300	 X"$file" : 'X\(//\)[^/]' \| \
8301	 X"$file" : 'X\(//\)$' \| \
8302	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8303$as_echo X"$file" |
8304    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8305	    s//\1/
8306	    q
8307	  }
8308	  /^X\(\/\/\)[^/].*/{
8309	    s//\1/
8310	    q
8311	  }
8312	  /^X\(\/\/\)$/{
8313	    s//\1/
8314	    q
8315	  }
8316	  /^X\(\/\).*/{
8317	    s//\1/
8318	    q
8319	  }
8320	  s/.*/./; q'`
8321      as_dir=$dirpart/$fdir; as_fn_mkdir_p
8322      # echo "creating $dirpart/$file"
8323      echo '# dummy' > "$dirpart/$file"
8324    done
8325  done
8326}
8327 ;;
8328
8329  esac
8330done # for ac_tag
8331
8332
8333as_fn_exit 0
8334_ACEOF
8335ac_clean_files=$ac_clean_files_save
8336
8337test $ac_write_fail = 0 ||
8338  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8339
8340
8341# configure is writing to config.log, and then calls config.status.
8342# config.status does its own redirection, appending to config.log.
8343# Unfortunately, on DOS this fails, as config.log is still kept open
8344# by configure, so config.status won't be able to write to it; its
8345# output is simply discarded.  So we exec the FD to /dev/null,
8346# effectively closing config.log, so it can be properly (re)opened and
8347# appended to by config.status.  When coming back to configure, we
8348# need to make the FD available again.
8349if test "$no_create" != yes; then
8350  ac_cs_success=:
8351  ac_config_status_args=
8352  test "$silent" = yes &&
8353    ac_config_status_args="$ac_config_status_args --quiet"
8354  exec 5>/dev/null
8355  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8356  exec 5>>config.log
8357  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8358  # would make configure fail if this is the last instruction.
8359  $ac_cs_success || as_fn_exit 1
8360fi
8361if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8363$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8364fi
8365
8366