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