source: NEWT0/trunk/configure @ 114

Revision 114, 178.2 KB checked in by gnue, 4 years ago (diff)

removed "contrib/inwt/inwt" in AC_CONFIG_FILES

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