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