source: git/modules/configure @ 6b9532

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