source: git/factory/configure @ ecfdac

fieker-DuValspielwiese
Last change on this file since ecfdac was e08d42, checked in by Michael Brickenstein <bricken@…>, 19 years ago
*bricken: finally gmp link bug fixed hopefully git-svn-id: file:///usr/local/Singular/svn/trunk@7676 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 194.4 KB
Line 
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.57.
5#
6# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7# Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24
25# Support unset when possible.
26if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27  as_unset=unset
28else
29  as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43  LC_TELEPHONE LC_TIME
44do
45  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46    eval $as_var=C; export $as_var
47  else
48    $as_unset $as_var
49  fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54  as_expr=expr
55else
56  as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60  as_basename=basename
61else
62  as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69         X"$0" : 'X\(//\)$' \| \
70         X"$0" : 'X\(/\)$' \| \
71         .     : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74          /^X\/\(\/\/\)$/{ s//\1/; q; }
75          /^X\/\(\/\).*/{ s//\1/; q; }
76          s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89  echo "#! /bin/sh" >conf$$.sh
90  echo  "exit 0"   >>conf$$.sh
91  chmod +x conf$$.sh
92  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93    PATH_SEPARATOR=';'
94  else
95    PATH_SEPARATOR=:
96  fi
97  rm -f conf$$.sh
98fi
99
100
101  as_lineno_1=$LINENO
102  as_lineno_2=$LINENO
103  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104  test "x$as_lineno_1" != "x$as_lineno_2" &&
105  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106  # Find who we are.  Look in the path if we contain no path at all
107  # relative or not.
108  case $0 in
109    *[\\/]* ) as_myself=$0 ;;
110    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113  IFS=$as_save_IFS
114  test -z "$as_dir" && as_dir=.
115  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118       ;;
119  esac
120  # We did not find ourselves, most probably we were run as `sh COMMAND'
121  # in which case we are not to be found in the path.
122  if test "x$as_myself" = x; then
123    as_myself=$0
124  fi
125  if test ! -f "$as_myself"; then
126    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127   { (exit 1); exit 1; }; }
128  fi
129  case $CONFIG_SHELL in
130  '')
131    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134  IFS=$as_save_IFS
135  test -z "$as_dir" && as_dir=.
136  for as_base in sh bash ksh sh5; do
137         case $as_dir in
138         /*)
139           if ("$as_dir/$as_base" -c '
140  as_lineno_1=$LINENO
141  as_lineno_2=$LINENO
142  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143  test "x$as_lineno_1" != "x$as_lineno_2" &&
144  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147             CONFIG_SHELL=$as_dir/$as_base
148             export CONFIG_SHELL
149             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150           fi;;
151         esac
152       done
153done
154;;
155  esac
156
157  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158  # uniformly replaced by the line number.  The first 'sed' inserts a
159  # line-number line before each line; the second 'sed' does the real
160  # work.  The second script uses 'N' to pair each line-number line
161  # with the numbered line, and appends trailing '-' during
162  # substitution so that $LINENO is not a special case at line end.
163  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165  sed '=' <$as_myself |
166    sed '
167      N
168      s,$,-,
169      : loop
170      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171      t loop
172      s,-$,,
173      s,^['$as_cr_digits']*\n,,
174    ' >$as_me.lineno &&
175  chmod +x $as_me.lineno ||
176    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177   { (exit 1); exit 1; }; }
178
179  # Don't try to exec as it changes $[0], causing all sort of problems
180  # (the dirname of $[0] is not the place where we might find the
181  # original and so on.  Autoconf is especially sensible to this).
182  . ./$as_me.lineno
183  # Exit status is that of the last command.
184  exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189  *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T='      ' ;;
191  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196  as_expr=expr
197else
198  as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204  # We could just check for DJGPP; but this test a) works b) is more generic
205  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206  if test -f conf$$.exe; then
207    # Don't use ln at all; we don't have any links
208    as_ln_s='cp -p'
209  else
210    as_ln_s='ln -s'
211  fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213  as_ln_s=ln
214else
215  as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220  as_mkdir_p=:
221else
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS="   $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="canonicalform.cc"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289#  include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294#  include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305#  include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP CXXCPP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB SET_MAKE AR M4 BISON FACTORY_MKINSTALLDIRS FACTORY_MAKEHEADER EGREP gftabledir templatedir factory_version libfactory ARFLAGS M4FLAGS MAKEHEADERFLAGS factorysrc factoryincl memmansrc memmanincl alltargets installtargets uninstalltargets LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
356  # If the previous option needs an argument, assign it.
357  if test -n "$ac_prev"; then
358    eval "$ac_prev=\$ac_option"
359    ac_prev=
360    continue
361  fi
362
363  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365  # Accept the important Cygnus configure options, so we can diagnose typos.
366
367  case $ac_option in
368
369  -bindir | --bindir | --bindi | --bind | --bin | --bi)
370    ac_prev=bindir ;;
371  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372    bindir=$ac_optarg ;;
373
374  -build | --build | --buil | --bui | --bu)
375    ac_prev=build_alias ;;
376  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377    build_alias=$ac_optarg ;;
378
379  -cache-file | --cache-file | --cache-fil | --cache-fi \
380  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381    ac_prev=cache_file ;;
382  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384    cache_file=$ac_optarg ;;
385
386  --config-cache | -C)
387    cache_file=config.cache ;;
388
389  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390    ac_prev=datadir ;;
391  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392  | --da=*)
393    datadir=$ac_optarg ;;
394
395  -disable-* | --disable-*)
396    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397    # Reject names that are not valid shell variable names.
398    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400   { (exit 1); exit 1; }; }
401    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402    eval "enable_$ac_feature=no" ;;
403
404  -enable-* | --enable-*)
405    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406    # Reject names that are not valid shell variable names.
407    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409   { (exit 1); exit 1; }; }
410    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411    case $ac_option in
412      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413      *) ac_optarg=yes ;;
414    esac
415    eval "enable_$ac_feature='$ac_optarg'" ;;
416
417  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419  | --exec | --exe | --ex)
420    ac_prev=exec_prefix ;;
421  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423  | --exec=* | --exe=* | --ex=*)
424    exec_prefix=$ac_optarg ;;
425
426  -gas | --gas | --ga | --g)
427    # Obsolete; use --with-gas.
428    with_gas=yes ;;
429
430  -help | --help | --hel | --he | -h)
431    ac_init_help=long ;;
432  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433    ac_init_help=recursive ;;
434  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435    ac_init_help=short ;;
436
437  -host | --host | --hos | --ho)
438    ac_prev=host_alias ;;
439  -host=* | --host=* | --hos=* | --ho=*)
440    host_alias=$ac_optarg ;;
441
442  -includedir | --includedir | --includedi | --included | --include \
443  | --includ | --inclu | --incl | --inc)
444    ac_prev=includedir ;;
445  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446  | --includ=* | --inclu=* | --incl=* | --inc=*)
447    includedir=$ac_optarg ;;
448
449  -infodir | --infodir | --infodi | --infod | --info | --inf)
450    ac_prev=infodir ;;
451  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452    infodir=$ac_optarg ;;
453
454  -libdir | --libdir | --libdi | --libd)
455    ac_prev=libdir ;;
456  -libdir=* | --libdir=* | --libdi=* | --libd=*)
457    libdir=$ac_optarg ;;
458
459  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460  | --libexe | --libex | --libe)
461    ac_prev=libexecdir ;;
462  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463  | --libexe=* | --libex=* | --libe=*)
464    libexecdir=$ac_optarg ;;
465
466  -localstatedir | --localstatedir | --localstatedi | --localstated \
467  | --localstate | --localstat | --localsta | --localst \
468  | --locals | --local | --loca | --loc | --lo)
469    ac_prev=localstatedir ;;
470  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473    localstatedir=$ac_optarg ;;
474
475  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476    ac_prev=mandir ;;
477  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478    mandir=$ac_optarg ;;
479
480  -nfp | --nfp | --nf)
481    # Obsolete; use --without-fp.
482    with_fp=no ;;
483
484  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485  | --no-cr | --no-c | -n)
486    no_create=yes ;;
487
488  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490    no_recursion=yes ;;
491
492  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494  | --oldin | --oldi | --old | --ol | --o)
495    ac_prev=oldincludedir ;;
496  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499    oldincludedir=$ac_optarg ;;
500
501  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502    ac_prev=prefix ;;
503  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504    prefix=$ac_optarg ;;
505
506  -program-prefix | --program-prefix | --program-prefi | --program-pref \
507  | --program-pre | --program-pr | --program-p)
508    ac_prev=program_prefix ;;
509  -program-prefix=* | --program-prefix=* | --program-prefi=* \
510  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511    program_prefix=$ac_optarg ;;
512
513  -program-suffix | --program-suffix | --program-suffi | --program-suff \
514  | --program-suf | --program-su | --program-s)
515    ac_prev=program_suffix ;;
516  -program-suffix=* | --program-suffix=* | --program-suffi=* \
517  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518    program_suffix=$ac_optarg ;;
519
520  -program-transform-name | --program-transform-name \
521  | --program-transform-nam | --program-transform-na \
522  | --program-transform-n | --program-transform- \
523  | --program-transform | --program-transfor \
524  | --program-transfo | --program-transf \
525  | --program-trans | --program-tran \
526  | --progr-tra | --program-tr | --program-t)
527    ac_prev=program_transform_name ;;
528  -program-transform-name=* | --program-transform-name=* \
529  | --program-transform-nam=* | --program-transform-na=* \
530  | --program-transform-n=* | --program-transform-=* \
531  | --program-transform=* | --program-transfor=* \
532  | --program-transfo=* | --program-transf=* \
533  | --program-trans=* | --program-tran=* \
534  | --progr-tra=* | --program-tr=* | --program-t=*)
535    program_transform_name=$ac_optarg ;;
536
537  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538  | -silent | --silent | --silen | --sile | --sil)
539    silent=yes ;;
540
541  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542    ac_prev=sbindir ;;
543  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544  | --sbi=* | --sb=*)
545    sbindir=$ac_optarg ;;
546
547  -sharedstatedir | --sharedstatedir | --sharedstatedi \
548  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549  | --sharedst | --shareds | --shared | --share | --shar \
550  | --sha | --sh)
551    ac_prev=sharedstatedir ;;
552  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555  | --sha=* | --sh=*)
556    sharedstatedir=$ac_optarg ;;
557
558  -site | --site | --sit)
559    ac_prev=site ;;
560  -site=* | --site=* | --sit=*)
561    site=$ac_optarg ;;
562
563  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564    ac_prev=srcdir ;;
565  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566    srcdir=$ac_optarg ;;
567
568  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569  | --syscon | --sysco | --sysc | --sys | --sy)
570    ac_prev=sysconfdir ;;
571  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573    sysconfdir=$ac_optarg ;;
574
575  -target | --target | --targe | --targ | --tar | --ta | --t)
576    ac_prev=target_alias ;;
577  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578    target_alias=$ac_optarg ;;
579
580  -v | -verbose | --verbose | --verbos | --verbo | --verb)
581    verbose=yes ;;
582
583  -version | --version | --versio | --versi | --vers | -V)
584    ac_init_version=: ;;
585
586  -with-* | --with-*)
587    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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    case $ac_option in
594      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595      *) ac_optarg=yes ;;
596    esac
597    eval "with_$ac_package='$ac_optarg'" ;;
598
599  -without-* | --without-*)
600    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601    # Reject names that are not valid shell variable names.
602    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603      { echo "$as_me: error: invalid package name: $ac_package" >&2
604   { (exit 1); exit 1; }; }
605    ac_package=`echo $ac_package | sed 's/-/_/g'`
606    eval "with_$ac_package=no" ;;
607
608  --x)
609    # Obsolete; use --with-x.
610    with_x=yes ;;
611
612  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613  | --x-incl | --x-inc | --x-in | --x-i)
614    ac_prev=x_includes ;;
615  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617    x_includes=$ac_optarg ;;
618
619  -x-libraries | --x-libraries | --x-librarie | --x-librari \
620  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621    ac_prev=x_libraries ;;
622  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624    x_libraries=$ac_optarg ;;
625
626  -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628   { (exit 1); exit 1; }; }
629    ;;
630
631  *=*)
632    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633    # Reject names that are not valid shell variable names.
634    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636   { (exit 1); exit 1; }; }
637    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638    eval "$ac_envvar='$ac_optarg'"
639    export $ac_envvar ;;
640
641  *)
642    # FIXME: should be removed in autoconf 3.0.
643    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647    ;;
648
649  esac
650done
651
652if test -n "$ac_prev"; then
653  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654  { echo "$as_me: error: missing argument to $ac_option" >&2
655   { (exit 1); exit 1; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661  eval ac_val=$`echo $ac_var`
662  case $ac_val in
663    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665   { (exit 1); exit 1; }; };;
666  esac
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671              localstatedir libdir includedir oldincludedir infodir mandir
672do
673  eval ac_val=$`echo $ac_var`
674  case $ac_val in
675    [\\/$]* | ?:[\\/]* ) ;;
676    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677   { (exit 1); exit 1; }; };;
678  esac
679done
680
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690  if test "x$build_alias" = x; then
691    cross_compiling=maybe
692    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693    If a cross compiler is detected then cross compile mode will be used." >&2
694  elif test "x$build_alias" != "x$host_alias"; then
695    cross_compiling=yes
696  fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707  ac_srcdir_defaulted=yes
708  # Try the directory containing this script, then its parent.
709  ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711         X"$0" : 'X\(//\)[^/]' \| \
712         X"$0" : 'X\(//\)$' \| \
713         X"$0" : 'X\(/\)' \| \
714         .     : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718          /^X\(\/\/\)$/{ s//\1/; q; }
719          /^X\(\/\).*/{ s//\1/; q; }
720          s/.*/./; q'`
721  srcdir=$ac_confdir
722  if test ! -r $srcdir/$ac_unique_file; then
723    srcdir=..
724  fi
725else
726  ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729  if test "$ac_srcdir_defaulted" = yes; then
730    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731   { (exit 1); exit 1; }; }
732  else
733    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734   { (exit 1); exit 1; }; }
735  fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739   { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
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_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CPP_set=${CPP+set}
778ac_env_CPP_value=$CPP
779ac_cv_env_CPP_set=${CPP+set}
780ac_cv_env_CPP_value=$CPP
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
785
786#
787# Report the --help message.
788#
789if test "$ac_init_help" = "long"; then
790  # Omit some internal or obsolete options to make the list less imposing.
791  # This message is too long to be a string in the A/UX 3.1 sh.
792  cat <<_ACEOF
793\`configure' configures this package to adapt to many kinds of systems.
794
795Usage: $0 [OPTION]... [VAR=VALUE]...
796
797To assign environment variables (e.g., CC, CFLAGS...), specify them as
798VAR=VALUE.  See below for descriptions of some of the useful variables.
799
800Defaults for the options are specified in brackets.
801
802Configuration:
803  -h, --help              display this help and exit
804      --help=short        display options specific to this package
805      --help=recursive    display the short help of all the included packages
806  -V, --version           display version information and exit
807  -q, --quiet, --silent   do not print \`checking...' messages
808      --cache-file=FILE   cache test results in FILE [disabled]
809  -C, --config-cache      alias for \`--cache-file=config.cache'
810  -n, --no-create         do not create output files
811      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
812
813_ACEOF
814
815  cat <<_ACEOF
816Installation directories:
817  --prefix=PREFIX         install architecture-independent files in PREFIX
818                          [$ac_default_prefix]
819  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
820                          [PREFIX]
821
822By default, \`make install' will install all the files in
823\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
824an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825for instance \`--prefix=\$HOME'.
826
827For better control, use the options below.
828
829Fine tuning of the installation directories:
830  --bindir=DIR           user executables [EPREFIX/bin]
831  --sbindir=DIR          system admin executables [EPREFIX/sbin]
832  --libexecdir=DIR       program executables [EPREFIX/libexec]
833  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
834  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
835  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
836  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
837  --libdir=DIR           object code libraries [EPREFIX/lib]
838  --includedir=DIR       C header files [PREFIX/include]
839  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
840  --infodir=DIR          info documentation [PREFIX/info]
841  --mandir=DIR           man documentation [PREFIX/man]
842_ACEOF
843
844  cat <<\_ACEOF
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849
850  cat <<\_ACEOF
851
852Optional Features:
853  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
854  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
855  --enable-NTL              build for use with NTL.
856  --enable-cf-inline      build Factory with \"configurable inline methods\"
857                          enabled.
858  --disable-streamio      build Factory without stream IO
859  --enable-memdebug=<level> switch on memory management debugging.  Meaningful
860                          with \`--with-memman=new' only.  <level> may be either
861                          \`no' (default), \`normal', or \`full'.
862  --enable-assertions     build Factory with assertions activated
863  --enable-timing         build Factory so it will print timing information
864  --enable-debugoutput    build Factory so it will print debugging information
865  --enable-gmp            together with \`--with-Singular' means: installation
866                          in process, be graceful when there is no \`gmp.h'
867
868Optional Packages:
869  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
870  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
871  --with-memman(=<memman>) specify Factory memory manager.
872                          <memman> is either \`old' (default), \`new', or \`no'.
873  --with-omalloc           build for use with omalloc
874  --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>))
875                          specify where to find gmp library.
876  --with-Singular         build for use with computer algebra system Singular.
877  --with-NTL              build for use with NTL.
878
879Some influential environment variables:
880  CC          C compiler command
881  CFLAGS      C compiler flags
882  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
883              nonstandard directory <lib dir>
884  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
885              headers in a nonstandard directory <include dir>
886  CXX         C++ compiler command
887  CXXFLAGS    C++ compiler flags
888  CPP         C preprocessor
889  CXXCPP      C++ preprocessor
890
891Use these variables to override the choices made by `configure' or to help
892it to find libraries and programs with nonstandard names/locations.
893
894_ACEOF
895fi
896
897if test "$ac_init_help" = "recursive"; then
898  # If there are subdirs, report their specific --help.
899  ac_popdir=`pwd`
900  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
901    test -d $ac_dir || continue
902    ac_builddir=.
903
904if test "$ac_dir" != .; then
905  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
906  # A "../" for each directory in $ac_dir_suffix.
907  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
908else
909  ac_dir_suffix= ac_top_builddir=
910fi
911
912case $srcdir in
913  .)  # No --srcdir option.  We are building in place.
914    ac_srcdir=.
915    if test -z "$ac_top_builddir"; then
916       ac_top_srcdir=.
917    else
918       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
919    fi ;;
920  [\\/]* | ?:[\\/]* )  # Absolute path.
921    ac_srcdir=$srcdir$ac_dir_suffix;
922    ac_top_srcdir=$srcdir ;;
923  *) # Relative path.
924    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
925    ac_top_srcdir=$ac_top_builddir$srcdir ;;
926esac
927# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
928# absolute.
929ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
930ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
931ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
932ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
933
934    cd $ac_dir
935    # Check for guested configure; otherwise get Cygnus style configure.
936    if test -f $ac_srcdir/configure.gnu; then
937      echo
938      $SHELL $ac_srcdir/configure.gnu  --help=recursive
939    elif test -f $ac_srcdir/configure; then
940      echo
941      $SHELL $ac_srcdir/configure  --help=recursive
942    elif test -f $ac_srcdir/configure.ac ||
943           test -f $ac_srcdir/configure.in; then
944      echo
945      $ac_configure --help
946    else
947      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
948    fi
949    cd $ac_popdir
950  done
951fi
952
953test -n "$ac_init_help" && exit 0
954if $ac_init_version; then
955  cat <<\_ACEOF
956
957Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
958Free Software Foundation, Inc.
959This configure script is free software; the Free Software Foundation
960gives unlimited permission to copy, distribute and modify it.
961_ACEOF
962  exit 0
963fi
964exec 5>config.log
965cat >&5 <<_ACEOF
966This file contains any messages produced by compilers while
967running configure, to aid debugging if configure makes a mistake.
968
969It was created by $as_me, which was
970generated by GNU Autoconf 2.57.  Invocation command line was
971
972  $ $0 $@
973
974_ACEOF
975{
976cat <<_ASUNAME
977## --------- ##
978## Platform. ##
979## --------- ##
980
981hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982uname -m = `(uname -m) 2>/dev/null || echo unknown`
983uname -r = `(uname -r) 2>/dev/null || echo unknown`
984uname -s = `(uname -s) 2>/dev/null || echo unknown`
985uname -v = `(uname -v) 2>/dev/null || echo unknown`
986
987/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
989
990/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
991/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
992/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
994/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
995/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
996/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
997
998_ASUNAME
999
1000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001for as_dir in $PATH
1002do
1003  IFS=$as_save_IFS
1004  test -z "$as_dir" && as_dir=.
1005  echo "PATH: $as_dir"
1006done
1007
1008} >&5
1009
1010cat >&5 <<_ACEOF
1011
1012
1013## ----------- ##
1014## Core tests. ##
1015## ----------- ##
1016
1017_ACEOF
1018
1019
1020# Keep a trace of the command line.
1021# Strip out --no-create and --no-recursion so they do not pile up.
1022# Strip out --silent because we don't want to record it for future runs.
1023# Also quote any args containing shell meta-characters.
1024# Make two passes to allow for proper duplicate-argument suppression.
1025ac_configure_args=
1026ac_configure_args0=
1027ac_configure_args1=
1028ac_sep=
1029ac_must_keep_next=false
1030for ac_pass in 1 2
1031do
1032  for ac_arg
1033  do
1034    case $ac_arg in
1035    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037    | -silent | --silent | --silen | --sile | --sil)
1038      continue ;;
1039    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1041    esac
1042    case $ac_pass in
1043    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1044    2)
1045      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046      if test $ac_must_keep_next = true; then
1047        ac_must_keep_next=false # Got value, back to normal.
1048      else
1049        case $ac_arg in
1050          *=* | --config-cache | -C | -disable-* | --disable-* \
1051          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053          | -with-* | --with-* | -without-* | --without-* | --x)
1054            case "$ac_configure_args0 " in
1055              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1056            esac
1057            ;;
1058          -* ) ac_must_keep_next=true ;;
1059        esac
1060      fi
1061      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062      # Get rid of the leading space.
1063      ac_sep=" "
1064      ;;
1065    esac
1066  done
1067done
1068$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1070
1071# When interrupted or exit'd, cleanup temporary files, and complete
1072# config.log.  We remove comments because anyway the quotes in there
1073# would cause problems or look ugly.
1074# WARNING: Be sure not to use single quotes in there, as some shells,
1075# such as our DU 5.0 friend, will then `close' the trap.
1076trap 'exit_status=$?
1077  # Save into config.log some information that might help in debugging.
1078  {
1079    echo
1080
1081    cat <<\_ASBOX
1082## ---------------- ##
1083## Cache variables. ##
1084## ---------------- ##
1085_ASBOX
1086    echo
1087    # The following way of writing the cache mishandles newlines in values,
1088{
1089  (set) 2>&1 |
1090    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1091    *ac_space=\ *)
1092      sed -n \
1093        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095      ;;
1096    *)
1097      sed -n \
1098        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1099      ;;
1100    esac;
1101}
1102    echo
1103
1104    cat <<\_ASBOX
1105## ----------------- ##
1106## Output variables. ##
1107## ----------------- ##
1108_ASBOX
1109    echo
1110    for ac_var in $ac_subst_vars
1111    do
1112      eval ac_val=$`echo $ac_var`
1113      echo "$ac_var='"'"'$ac_val'"'"'"
1114    done | sort
1115    echo
1116
1117    if test -n "$ac_subst_files"; then
1118      cat <<\_ASBOX
1119## ------------- ##
1120## Output files. ##
1121## ------------- ##
1122_ASBOX
1123      echo
1124      for ac_var in $ac_subst_files
1125      do
1126        eval ac_val=$`echo $ac_var`
1127        echo "$ac_var='"'"'$ac_val'"'"'"
1128      done | sort
1129      echo
1130    fi
1131
1132    if test -s confdefs.h; then
1133      cat <<\_ASBOX
1134## ----------- ##
1135## confdefs.h. ##
1136## ----------- ##
1137_ASBOX
1138      echo
1139      sed "/^$/d" confdefs.h | sort
1140      echo
1141    fi
1142    test "$ac_signal" != 0 &&
1143      echo "$as_me: caught signal $ac_signal"
1144    echo "$as_me: exit $exit_status"
1145  } >&5
1146  rm -f core core.* *.core &&
1147  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1148    exit $exit_status
1149     ' 0
1150for ac_signal in 1 2 13 15; do
1151  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152done
1153ac_signal=0
1154
1155# confdefs.h avoids OS command line length limits that DEFS can exceed.
1156rm -rf conftest* confdefs.h
1157# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1158echo >confdefs.h
1159
1160# Predefined preprocessor variables.
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_NAME "$PACKAGE_NAME"
1164_ACEOF
1165
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_VERSION "$PACKAGE_VERSION"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_STRING "$PACKAGE_STRING"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184_ACEOF
1185
1186
1187# Let the site file select an alternate cache file if it wants to.
1188# Prefer explicitly selected file to automatically selected ones.
1189if test -z "$CONFIG_SITE"; then
1190  if test "x$prefix" != xNONE; then
1191    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1192  else
1193    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1194  fi
1195fi
1196for ac_site_file in $CONFIG_SITE; do
1197  if test -r "$ac_site_file"; then
1198    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199echo "$as_me: loading site script $ac_site_file" >&6;}
1200    sed 's/^/| /' "$ac_site_file" >&5
1201    . "$ac_site_file"
1202  fi
1203done
1204
1205if test -r "$cache_file"; then
1206  # Some versions of bash will fail to source /dev/null (special
1207  # files actually), so we avoid doing that.
1208  if test -f "$cache_file"; then
1209    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210echo "$as_me: loading cache $cache_file" >&6;}
1211    case $cache_file in
1212      [\\/]* | ?:[\\/]* ) . $cache_file;;
1213      *)                      . ./$cache_file;;
1214    esac
1215  fi
1216else
1217  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218echo "$as_me: creating cache $cache_file" >&6;}
1219  >$cache_file
1220fi
1221
1222# Check that the precious variables saved in the cache have kept the same
1223# value.
1224ac_cache_corrupted=false
1225for ac_var in `(set) 2>&1 |
1226               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1227  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228  eval ac_new_set=\$ac_env_${ac_var}_set
1229  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230  eval ac_new_val="\$ac_env_${ac_var}_value"
1231  case $ac_old_set,$ac_new_set in
1232    set,)
1233      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1234echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1235      ac_cache_corrupted=: ;;
1236    ,set)
1237      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1238echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239      ac_cache_corrupted=: ;;
1240    ,);;
1241    *)
1242      if test "x$ac_old_val" != "x$ac_new_val"; then
1243        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1244echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1245        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1246echo "$as_me:   former value:  $ac_old_val" >&2;}
1247        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1248echo "$as_me:   current value: $ac_new_val" >&2;}
1249        ac_cache_corrupted=:
1250      fi;;
1251  esac
1252  # Pass precious variables to config.status.
1253  if test "$ac_new_set" = set; then
1254    case $ac_new_val in
1255    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1257    *) ac_arg=$ac_var=$ac_new_val ;;
1258    esac
1259    case " $ac_configure_args " in
1260      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1261      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262    esac
1263  fi
1264done
1265if $ac_cache_corrupted; then
1266  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1269echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270   { (exit 1); exit 1; }; }
1271fi
1272
1273ac_ext=c
1274ac_cpp='$CPP $CPPFLAGS'
1275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1277ac_compiler_gnu=$ac_cv_c_compiler_gnu
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297          ac_config_headers="$ac_config_headers config.h"
1298
1299ac_aux_dir=
1300for ac_dir in bin $srcdir/bin; do
1301  if test -f $ac_dir/install-sh; then
1302    ac_aux_dir=$ac_dir
1303    ac_install_sh="$ac_aux_dir/install-sh -c"
1304    break
1305  elif test -f $ac_dir/install.sh; then
1306    ac_aux_dir=$ac_dir
1307    ac_install_sh="$ac_aux_dir/install.sh -c"
1308    break
1309  elif test -f $ac_dir/shtool; then
1310    ac_aux_dir=$ac_dir
1311    ac_install_sh="$ac_aux_dir/shtool install -c"
1312    break
1313  fi
1314done
1315if test -z "$ac_aux_dir"; then
1316  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in bin $srcdir/bin" >&5
1317echo "$as_me: error: cannot find install-sh or install.sh in bin $srcdir/bin" >&2;}
1318   { (exit 1); exit 1; }; }
1319fi
1320ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1321ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1322ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1323
1324
1325#
1326# Do not change version here!!!
1327#
1328factory_version="2.0.5"
1329factory_configuration="'$ac_configure_args' in `pwd`"
1330
1331#
1332# - check withs and enables.
1333#
1334
1335# Check whether --with-memman or --without-memman was given.
1336if test "${with_memman+set}" = set; then
1337  withval="$with_memman"
1338
1339else
1340   if test "x$with_Singular" = xyes; then
1341      with_memman=no
1342    else
1343      with_memman=old
1344    fi
1345fi;
1346
1347# font-lock-trick: '
1348
1349
1350# Check whether --with-omalloc or --without-omalloc was given.
1351if test "${with_omalloc+set}" = set; then
1352  withval="$with_omalloc"
1353
1354fi;
1355
1356# Check whether --with-gmp or --without-gmp was given.
1357if test "${with_gmp+set}" = set; then
1358  withval="$with_gmp"
1359
1360fi;
1361
1362
1363# Check whether --with-Singular or --without-Singular was given.
1364if test "${with_Singular+set}" = set; then
1365  withval="$with_Singular"
1366
1367else
1368  with_Singular=no
1369fi;
1370
1371
1372# Check whether --with-NTL or --without-NTL was given.
1373if test "${with_NTL+set}" = set; then
1374  withval="$with_NTL"
1375  with_NTL=yes
1376fi;
1377
1378# Check whether --enable-NTL or --disable-NTL was given.
1379if test "${enable_NTL+set}" = set; then
1380  enableval="$enable_NTL"
1381  with_NTL=yes
1382fi;
1383
1384# Check whether --enable-cf-inline or --disable-cf-inline was given.
1385if test "${enable_cf_inline+set}" = set; then
1386  enableval="$enable_cf_inline"
1387
1388else
1389  enable_cf_inline=no
1390fi;
1391
1392# Check whether --enable-streamio or --disable-streamio was given.
1393if test "${enable_streamio+set}" = set; then
1394  enableval="$enable_streamio"
1395
1396else
1397   if test "x$with_Singular" = xyes; then
1398      enable_streamio=no
1399    else
1400      enable_streamio=yes
1401    fi
1402fi;
1403
1404# Check whether --enable-memdebug or --disable-memdebug was given.
1405if test "${enable_memdebug+set}" = set; then
1406  enableval="$enable_memdebug"
1407
1408else
1409  enable_memdebug=no
1410fi;
1411
1412# Check whether --enable-assertions or --disable-assertions was given.
1413if test "${enable_assertions+set}" = set; then
1414  enableval="$enable_assertions"
1415
1416else
1417  enable_assertions=no
1418fi;
1419
1420# Check whether --enable-timing or --disable-timing was given.
1421if test "${enable_timing+set}" = set; then
1422  enableval="$enable_timing"
1423
1424else
1425  enable_timing=no
1426fi;
1427
1428# Check whether --enable-debugoutput or --disable-debugoutput was given.
1429if test "${enable_debugoutput+set}" = set; then
1430  enableval="$enable_debugoutput"
1431
1432else
1433  enable_debugoutput=no
1434fi;
1435
1436# a tribute to Singular
1437# Check whether --enable-gmp or --disable-gmp was given.
1438if test "${enable_gmp+set}" = set; then
1439  enableval="$enable_gmp"
1440   if test "x$with_Singular" = xyes && test "x$enable_gmp" != xno; then
1441      with_gmp='$(includedir)'
1442    fi
1443fi;
1444
1445#
1446# - check the results of --with-gmp.
1447#
1448case "$with_gmp" in
1449  yes|no|"")
1450    gmp_in_installation=no ;;
1451  '$(includedir)'|'${includedir}')
1452    gmp_in_installation=yes ;;
1453  *,*)
1454    saveIFS="$IFS"; IFS="${IFS},"
1455    set dummy $with_gmp
1456    IFS="$saveIFS"
1457    CPPFLAGS="-I$2 $CPPFLAGS"
1458    LDFLAGS="-L$3 $LDFLAGS"
1459    gmp_in_installation=no ;;
1460  *)
1461    CPPFLAGS="-I$with_gmp $CPPFLAGS"
1462    LDFLAGS="-L$with_gmp/../lib $LDFLAGS"
1463    gmp_in_installation=no ;;
1464esac
1465
1466#
1467# - check for CC and CXX but be careful about CFLAGS.
1468#
1469test "${CFLAGS+set}" = set || cflags_expl_set=no
1470ac_ext=c
1471ac_cpp='$CPP $CPPFLAGS'
1472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1474ac_compiler_gnu=$ac_cv_c_compiler_gnu
1475if test -n "$ac_tool_prefix"; then
1476  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1477set dummy ${ac_tool_prefix}gcc; ac_word=$2
1478echo "$as_me:$LINENO: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_CC+set}" = set; then
1481  echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483  if test -n "$CC"; then
1484  ac_cv_prog_CC="$CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489  IFS=$as_save_IFS
1490  test -z "$as_dir" && as_dir=.
1491  for ac_exec_ext in '' $ac_executable_extensions; do
1492  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495    break 2
1496  fi
1497done
1498done
1499
1500fi
1501fi
1502CC=$ac_cv_prog_CC
1503if test -n "$CC"; then
1504  echo "$as_me:$LINENO: result: $CC" >&5
1505echo "${ECHO_T}$CC" >&6
1506else
1507  echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511fi
1512if test -z "$ac_cv_prog_CC"; then
1513  ac_ct_CC=$CC
1514  # Extract the first word of "gcc", so it can be a program name with args.
1515set dummy gcc; ac_word=$2
1516echo "$as_me:$LINENO: checking for $ac_word" >&5
1517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1519  echo $ECHO_N "(cached) $ECHO_C" >&6
1520else
1521  if test -n "$ac_ct_CC"; then
1522  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1523else
1524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525for as_dir in $PATH
1526do
1527  IFS=$as_save_IFS
1528  test -z "$as_dir" && as_dir=.
1529  for ac_exec_ext in '' $ac_executable_extensions; do
1530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531    ac_cv_prog_ac_ct_CC="gcc"
1532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533    break 2
1534  fi
1535done
1536done
1537
1538fi
1539fi
1540ac_ct_CC=$ac_cv_prog_ac_ct_CC
1541if test -n "$ac_ct_CC"; then
1542  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1543echo "${ECHO_T}$ac_ct_CC" >&6
1544else
1545  echo "$as_me:$LINENO: result: no" >&5
1546echo "${ECHO_T}no" >&6
1547fi
1548
1549  CC=$ac_ct_CC
1550else
1551  CC="$ac_cv_prog_CC"
1552fi
1553
1554if test -z "$CC"; then
1555  if test -n "$ac_tool_prefix"; then
1556  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1557set dummy ${ac_tool_prefix}cc; ac_word=$2
1558echo "$as_me:$LINENO: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_CC+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  if test -n "$CC"; then
1564  ac_cv_prog_CC="$CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569  IFS=$as_save_IFS
1570  test -z "$as_dir" && as_dir=.
1571  for ac_exec_ext in '' $ac_executable_extensions; do
1572  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573    ac_cv_prog_CC="${ac_tool_prefix}cc"
1574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575    break 2
1576  fi
1577done
1578done
1579
1580fi
1581fi
1582CC=$ac_cv_prog_CC
1583if test -n "$CC"; then
1584  echo "$as_me:$LINENO: result: $CC" >&5
1585echo "${ECHO_T}$CC" >&6
1586else
1587  echo "$as_me:$LINENO: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591fi
1592if test -z "$ac_cv_prog_CC"; then
1593  ac_ct_CC=$CC
1594  # Extract the first word of "cc", so it can be a program name with args.
1595set dummy cc; ac_word=$2
1596echo "$as_me:$LINENO: checking for $ac_word" >&5
1597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1599  echo $ECHO_N "(cached) $ECHO_C" >&6
1600else
1601  if test -n "$ac_ct_CC"; then
1602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1603else
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607  IFS=$as_save_IFS
1608  test -z "$as_dir" && as_dir=.
1609  for ac_exec_ext in '' $ac_executable_extensions; do
1610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611    ac_cv_prog_ac_ct_CC="cc"
1612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613    break 2
1614  fi
1615done
1616done
1617
1618fi
1619fi
1620ac_ct_CC=$ac_cv_prog_ac_ct_CC
1621if test -n "$ac_ct_CC"; then
1622  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1623echo "${ECHO_T}$ac_ct_CC" >&6
1624else
1625  echo "$as_me:$LINENO: result: no" >&5
1626echo "${ECHO_T}no" >&6
1627fi
1628
1629  CC=$ac_ct_CC
1630else
1631  CC="$ac_cv_prog_CC"
1632fi
1633
1634fi
1635if test -z "$CC"; then
1636  # Extract the first word of "cc", so it can be a program name with args.
1637set dummy cc; ac_word=$2
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640if test "${ac_cv_prog_CC+set}" = set; then
1641  echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643  if test -n "$CC"; then
1644  ac_cv_prog_CC="$CC" # Let the user override the test.
1645else
1646  ac_prog_rejected=no
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650  IFS=$as_save_IFS
1651  test -z "$as_dir" && as_dir=.
1652  for ac_exec_ext in '' $ac_executable_extensions; do
1653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1655       ac_prog_rejected=yes
1656       continue
1657     fi
1658    ac_cv_prog_CC="cc"
1659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660    break 2
1661  fi
1662done
1663done
1664
1665if test $ac_prog_rejected = yes; then
1666  # We found a bogon in the path, so make sure we never use it.
1667  set dummy $ac_cv_prog_CC
1668  shift
1669  if test $# != 0; then
1670    # We chose a different compiler from the bogus one.
1671    # However, it has the same basename, so the bogon will be chosen
1672    # first if we set CC to just the basename; use the full file name.
1673    shift
1674    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1675  fi
1676fi
1677fi
1678fi
1679CC=$ac_cv_prog_CC
1680if test -n "$CC"; then
1681  echo "$as_me:$LINENO: result: $CC" >&5
1682echo "${ECHO_T}$CC" >&6
1683else
1684  echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688fi
1689if test -z "$CC"; then
1690  if test -n "$ac_tool_prefix"; then
1691  for ac_prog in cl
1692  do
1693    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1695echo "$as_me:$LINENO: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_CC+set}" = set; then
1698  echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700  if test -n "$CC"; then
1701  ac_cv_prog_CC="$CC" # Let the user override the test.
1702else
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706  IFS=$as_save_IFS
1707  test -z "$as_dir" && as_dir=.
1708  for ac_exec_ext in '' $ac_executable_extensions; do
1709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712    break 2
1713  fi
1714done
1715done
1716
1717fi
1718fi
1719CC=$ac_cv_prog_CC
1720if test -n "$CC"; then
1721  echo "$as_me:$LINENO: result: $CC" >&5
1722echo "${ECHO_T}$CC" >&6
1723else
1724  echo "$as_me:$LINENO: result: no" >&5
1725echo "${ECHO_T}no" >&6
1726fi
1727
1728    test -n "$CC" && break
1729  done
1730fi
1731if test -z "$CC"; then
1732  ac_ct_CC=$CC
1733  for ac_prog in cl
1734do
1735  # Extract the first word of "$ac_prog", so it can be a program name with args.
1736set dummy $ac_prog; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  if test -n "$ac_ct_CC"; then
1743  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1744else
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748  IFS=$as_save_IFS
1749  test -z "$as_dir" && as_dir=.
1750  for ac_exec_ext in '' $ac_executable_extensions; do
1751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752    ac_cv_prog_ac_ct_CC="$ac_prog"
1753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754    break 2
1755  fi
1756done
1757done
1758
1759fi
1760fi
1761ac_ct_CC=$ac_cv_prog_ac_ct_CC
1762if test -n "$ac_ct_CC"; then
1763  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1764echo "${ECHO_T}$ac_ct_CC" >&6
1765else
1766  echo "$as_me:$LINENO: result: no" >&5
1767echo "${ECHO_T}no" >&6
1768fi
1769
1770  test -n "$ac_ct_CC" && break
1771done
1772
1773  CC=$ac_ct_CC
1774fi
1775
1776fi
1777
1778
1779test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1780See \`config.log' for more details." >&5
1781echo "$as_me: error: no acceptable C compiler found in \$PATH
1782See \`config.log' for more details." >&2;}
1783   { (exit 1); exit 1; }; }
1784
1785# Provide some information about the compiler.
1786echo "$as_me:$LINENO:" \
1787     "checking for C compiler version" >&5
1788ac_compiler=`set X $ac_compile; echo $2`
1789{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1790  (eval $ac_compiler --version </dev/null >&5) 2>&5
1791  ac_status=$?
1792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793  (exit $ac_status); }
1794{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1795  (eval $ac_compiler -v </dev/null >&5) 2>&5
1796  ac_status=$?
1797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798  (exit $ac_status); }
1799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1800  (eval $ac_compiler -V </dev/null >&5) 2>&5
1801  ac_status=$?
1802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803  (exit $ac_status); }
1804
1805cat >conftest.$ac_ext <<_ACEOF
1806#line $LINENO "configure"
1807/* confdefs.h.  */
1808_ACEOF
1809cat confdefs.h >>conftest.$ac_ext
1810cat >>conftest.$ac_ext <<_ACEOF
1811/* end confdefs.h.  */
1812
1813int
1814main ()
1815{
1816
1817  ;
1818  return 0;
1819}
1820_ACEOF
1821ac_clean_files_save=$ac_clean_files
1822ac_clean_files="$ac_clean_files a.out a.exe b.out"
1823# Try to create an executable without -o first, disregard a.out.
1824# It will help us diagnose broken compilers, and finding out an intuition
1825# of exeext.
1826echo "$as_me:$LINENO: checking for C compiler default output" >&5
1827echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1828ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1829if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1830  (eval $ac_link_default) 2>&5
1831  ac_status=$?
1832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833  (exit $ac_status); }; then
1834  # Find the output, starting from the most likely.  This scheme is
1835# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1836# resort.
1837
1838# Be careful to initialize this variable, since it used to be cached.
1839# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1840ac_cv_exeext=
1841# b.out is created by i960 compilers.
1842for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1843do
1844  test -f "$ac_file" || continue
1845  case $ac_file in
1846    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1847        ;;
1848    conftest.$ac_ext )
1849        # This is the source file.
1850        ;;
1851    [ab].out )
1852        # We found the default executable, but exeext='' is most
1853        # certainly right.
1854        break;;
1855    *.* )
1856        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1857        # FIXME: I believe we export ac_cv_exeext for Libtool,
1858        # but it would be cool to find out if it's true.  Does anybody
1859        # maintain Libtool? --akim.
1860        export ac_cv_exeext
1861        break;;
1862    * )
1863        break;;
1864  esac
1865done
1866else
1867  echo "$as_me: failed program was:" >&5
1868sed 's/^/| /' conftest.$ac_ext >&5
1869
1870{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1871See \`config.log' for more details." >&5
1872echo "$as_me: error: C compiler cannot create executables
1873See \`config.log' for more details." >&2;}
1874   { (exit 77); exit 77; }; }
1875fi
1876
1877ac_exeext=$ac_cv_exeext
1878echo "$as_me:$LINENO: result: $ac_file" >&5
1879echo "${ECHO_T}$ac_file" >&6
1880
1881# Check the compiler produces executables we can run.  If not, either
1882# the compiler is broken, or we cross compile.
1883echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1884echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1885# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1886# If not cross compiling, check that we can run a simple program.
1887if test "$cross_compiling" != yes; then
1888  if { ac_try='./$ac_file'
1889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1890  (eval $ac_try) 2>&5
1891  ac_status=$?
1892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893  (exit $ac_status); }; }; then
1894    cross_compiling=no
1895  else
1896    if test "$cross_compiling" = maybe; then
1897        cross_compiling=yes
1898    else
1899        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1900If you meant to cross compile, use \`--host'.
1901See \`config.log' for more details." >&5
1902echo "$as_me: error: cannot run C compiled programs.
1903If you meant to cross compile, use \`--host'.
1904See \`config.log' for more details." >&2;}
1905   { (exit 1); exit 1; }; }
1906    fi
1907  fi
1908fi
1909echo "$as_me:$LINENO: result: yes" >&5
1910echo "${ECHO_T}yes" >&6
1911
1912rm -f a.out a.exe conftest$ac_cv_exeext b.out
1913ac_clean_files=$ac_clean_files_save
1914# Check the compiler produces executables we can run.  If not, either
1915# the compiler is broken, or we cross compile.
1916echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1917echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1918echo "$as_me:$LINENO: result: $cross_compiling" >&5
1919echo "${ECHO_T}$cross_compiling" >&6
1920
1921echo "$as_me:$LINENO: checking for suffix of executables" >&5
1922echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1924  (eval $ac_link) 2>&5
1925  ac_status=$?
1926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927  (exit $ac_status); }; then
1928  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1929# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1930# work properly (i.e., refer to `conftest.exe'), while it won't with
1931# `rm'.
1932for ac_file in conftest.exe conftest conftest.*; do
1933  test -f "$ac_file" || continue
1934  case $ac_file in
1935    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1936    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1937          export ac_cv_exeext
1938          break;;
1939    * ) break;;
1940  esac
1941done
1942else
1943  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1944See \`config.log' for more details." >&5
1945echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1946See \`config.log' for more details." >&2;}
1947   { (exit 1); exit 1; }; }
1948fi
1949
1950rm -f conftest$ac_cv_exeext
1951echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1952echo "${ECHO_T}$ac_cv_exeext" >&6
1953
1954rm -f conftest.$ac_ext
1955EXEEXT=$ac_cv_exeext
1956ac_exeext=$EXEEXT
1957echo "$as_me:$LINENO: checking for suffix of object files" >&5
1958echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1959if test "${ac_cv_objext+set}" = set; then
1960  echo $ECHO_N "(cached) $ECHO_C" >&6
1961else
1962  cat >conftest.$ac_ext <<_ACEOF
1963#line $LINENO "configure"
1964/* confdefs.h.  */
1965_ACEOF
1966cat confdefs.h >>conftest.$ac_ext
1967cat >>conftest.$ac_ext <<_ACEOF
1968/* end confdefs.h.  */
1969
1970int
1971main ()
1972{
1973
1974  ;
1975  return 0;
1976}
1977_ACEOF
1978rm -f conftest.o conftest.obj
1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980  (eval $ac_compile) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }; then
1984  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1985  case $ac_file in
1986    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1987    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1988       break;;
1989  esac
1990done
1991else
1992  echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996See \`config.log' for more details." >&5
1997echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998See \`config.log' for more details." >&2;}
1999   { (exit 1); exit 1; }; }
2000fi
2001
2002rm -f conftest.$ac_cv_objext conftest.$ac_ext
2003fi
2004echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005echo "${ECHO_T}$ac_cv_objext" >&6
2006OBJEXT=$ac_cv_objext
2007ac_objext=$OBJEXT
2008echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  cat >conftest.$ac_ext <<_ACEOF
2014#line $LINENO "configure"
2015/* confdefs.h.  */
2016_ACEOF
2017cat confdefs.h >>conftest.$ac_ext
2018cat >>conftest.$ac_ext <<_ACEOF
2019/* end confdefs.h.  */
2020
2021int
2022main ()
2023{
2024#ifndef __GNUC__
2025       choke me
2026#endif
2027
2028  ;
2029  return 0;
2030}
2031_ACEOF
2032rm -f conftest.$ac_objext
2033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034  (eval $ac_compile) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); } &&
2038         { ac_try='test -s conftest.$ac_objext'
2039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040  (eval $ac_try) 2>&5
2041  ac_status=$?
2042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043  (exit $ac_status); }; }; then
2044  ac_compiler_gnu=yes
2045else
2046  echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049ac_compiler_gnu=no
2050fi
2051rm -f conftest.$ac_objext conftest.$ac_ext
2052ac_cv_c_compiler_gnu=$ac_compiler_gnu
2053
2054fi
2055echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2056echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2057GCC=`test $ac_compiler_gnu = yes && echo yes`
2058ac_test_CFLAGS=${CFLAGS+set}
2059ac_save_CFLAGS=$CFLAGS
2060CFLAGS="-g"
2061echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2062echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2063if test "${ac_cv_prog_cc_g+set}" = set; then
2064  echo $ECHO_N "(cached) $ECHO_C" >&6
2065else
2066  cat >conftest.$ac_ext <<_ACEOF
2067#line $LINENO "configure"
2068/* confdefs.h.  */
2069_ACEOF
2070cat confdefs.h >>conftest.$ac_ext
2071cat >>conftest.$ac_ext <<_ACEOF
2072/* end confdefs.h.  */
2073
2074int
2075main ()
2076{
2077
2078  ;
2079  return 0;
2080}
2081_ACEOF
2082rm -f conftest.$ac_objext
2083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084  (eval $ac_compile) 2>&5
2085  ac_status=$?
2086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087  (exit $ac_status); } &&
2088         { ac_try='test -s conftest.$ac_objext'
2089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090  (eval $ac_try) 2>&5
2091  ac_status=$?
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); }; }; then
2094  ac_cv_prog_cc_g=yes
2095else
2096  echo "$as_me: failed program was:" >&5
2097sed 's/^/| /' conftest.$ac_ext >&5
2098
2099ac_cv_prog_cc_g=no
2100fi
2101rm -f conftest.$ac_objext conftest.$ac_ext
2102fi
2103echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2104echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2105if test "$ac_test_CFLAGS" = set; then
2106  CFLAGS=$ac_save_CFLAGS
2107elif test $ac_cv_prog_cc_g = yes; then
2108  if test "$GCC" = yes; then
2109    CFLAGS="-g -O2"
2110  else
2111    CFLAGS="-g"
2112  fi
2113else
2114  if test "$GCC" = yes; then
2115    CFLAGS="-O2"
2116  else
2117    CFLAGS=
2118  fi
2119fi
2120echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2121echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2122if test "${ac_cv_prog_cc_stdc+set}" = set; then
2123  echo $ECHO_N "(cached) $ECHO_C" >&6
2124else
2125  ac_cv_prog_cc_stdc=no
2126ac_save_CC=$CC
2127cat >conftest.$ac_ext <<_ACEOF
2128#line $LINENO "configure"
2129/* confdefs.h.  */
2130_ACEOF
2131cat confdefs.h >>conftest.$ac_ext
2132cat >>conftest.$ac_ext <<_ACEOF
2133/* end confdefs.h.  */
2134#include <stdarg.h>
2135#include <stdio.h>
2136#include <sys/types.h>
2137#include <sys/stat.h>
2138/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2139struct buf { int x; };
2140FILE * (*rcsopen) (struct buf *, struct stat *, int);
2141static char *e (p, i)
2142     char **p;
2143     int i;
2144{
2145  return p[i];
2146}
2147static char *f (char * (*g) (char **, int), char **p, ...)
2148{
2149  char *s;
2150  va_list v;
2151  va_start (v,p);
2152  s = g (p, va_arg (v,int));
2153  va_end (v);
2154  return s;
2155}
2156int test (int i, double x);
2157struct s1 {int (*f) (int a);};
2158struct s2 {int (*f) (double a);};
2159int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2160int argc;
2161char **argv;
2162int
2163main ()
2164{
2165return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2166  ;
2167  return 0;
2168}
2169_ACEOF
2170# Don't try gcc -ansi; that turns off useful extensions and
2171# breaks some systems' header files.
2172# AIX                   -qlanglvl=ansi
2173# Ultrix and OSF/1      -std1
2174# HP-UX 10.20 and later -Ae
2175# HP-UX older versions  -Aa -D_HPUX_SOURCE
2176# SVR4                  -Xc -D__EXTENSIONS__
2177for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2178do
2179  CC="$ac_save_CC $ac_arg"
2180  rm -f conftest.$ac_objext
2181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182  (eval $ac_compile) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186         { ac_try='test -s conftest.$ac_objext'
2187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188  (eval $ac_try) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; }; then
2192  ac_cv_prog_cc_stdc=$ac_arg
2193break
2194else
2195  echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198fi
2199rm -f conftest.$ac_objext
2200done
2201rm -f conftest.$ac_ext conftest.$ac_objext
2202CC=$ac_save_CC
2203
2204fi
2205
2206case "x$ac_cv_prog_cc_stdc" in
2207  x|xno)
2208    echo "$as_me:$LINENO: result: none needed" >&5
2209echo "${ECHO_T}none needed" >&6 ;;
2210  *)
2211    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2212echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2213    CC="$CC $ac_cv_prog_cc_stdc" ;;
2214esac
2215
2216# Some people use a C++ compiler to compile C.  Since we use `exit',
2217# in C++ we need to declare it.  In case someone uses the same compiler
2218# for both compiling C and C++ we need to have the C++ compiler decide
2219# the declaration of exit, since it's the most demanding environment.
2220cat >conftest.$ac_ext <<_ACEOF
2221#ifndef __cplusplus
2222  choke me
2223#endif
2224_ACEOF
2225rm -f conftest.$ac_objext
2226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227  (eval $ac_compile) 2>&5
2228  ac_status=$?
2229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230  (exit $ac_status); } &&
2231         { ac_try='test -s conftest.$ac_objext'
2232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233  (eval $ac_try) 2>&5
2234  ac_status=$?
2235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236  (exit $ac_status); }; }; then
2237  for ac_declaration in \
2238   ''\
2239   '#include <stdlib.h>' \
2240   'extern "C" void std::exit (int) throw (); using std::exit;' \
2241   'extern "C" void std::exit (int); using std::exit;' \
2242   'extern "C" void exit (int) throw ();' \
2243   'extern "C" void exit (int);' \
2244   'void exit (int);'
2245do
2246  cat >conftest.$ac_ext <<_ACEOF
2247#line $LINENO "configure"
2248/* confdefs.h.  */
2249_ACEOF
2250cat confdefs.h >>conftest.$ac_ext
2251cat >>conftest.$ac_ext <<_ACEOF
2252/* end confdefs.h.  */
2253#include <stdlib.h>
2254$ac_declaration
2255int
2256main ()
2257{
2258exit (42);
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263rm -f conftest.$ac_objext
2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265  (eval $ac_compile) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); } &&
2269         { ac_try='test -s conftest.$ac_objext'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275  :
2276else
2277  echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280continue
2281fi
2282rm -f conftest.$ac_objext conftest.$ac_ext
2283  cat >conftest.$ac_ext <<_ACEOF
2284#line $LINENO "configure"
2285/* confdefs.h.  */
2286_ACEOF
2287cat confdefs.h >>conftest.$ac_ext
2288cat >>conftest.$ac_ext <<_ACEOF
2289/* end confdefs.h.  */
2290$ac_declaration
2291int
2292main ()
2293{
2294exit (42);
2295  ;
2296  return 0;
2297}
2298_ACEOF
2299rm -f conftest.$ac_objext
2300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301  (eval $ac_compile) 2>&5
2302  ac_status=$?
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); } &&
2305         { ac_try='test -s conftest.$ac_objext'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; }; then
2311  break
2312else
2313  echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
2315
2316fi
2317rm -f conftest.$ac_objext conftest.$ac_ext
2318done
2319rm -f conftest*
2320if test -n "$ac_declaration"; then
2321  echo '#ifdef __cplusplus' >>confdefs.h
2322  echo $ac_declaration      >>confdefs.h
2323  echo '#endif'             >>confdefs.h
2324fi
2325
2326else
2327  echo "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330fi
2331rm -f conftest.$ac_objext conftest.$ac_ext
2332ac_ext=c
2333ac_cpp='$CPP $CPPFLAGS'
2334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2336ac_compiler_gnu=$ac_cv_c_compiler_gnu
2337
2338test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
2339ac_ext=cc
2340ac_cpp='$CXXCPP $CPPFLAGS'
2341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2344if test -n "$ac_tool_prefix"; then
2345  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2346  do
2347    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2348set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2349echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351if test "${ac_cv_prog_CXX+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  if test -n "$CXX"; then
2355  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362  for ac_exec_ext in '' $ac_executable_extensions; do
2363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2364    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369done
2370
2371fi
2372fi
2373CXX=$ac_cv_prog_CXX
2374if test -n "$CXX"; then
2375  echo "$as_me:$LINENO: result: $CXX" >&5
2376echo "${ECHO_T}$CXX" >&6
2377else
2378  echo "$as_me:$LINENO: result: no" >&5
2379echo "${ECHO_T}no" >&6
2380fi
2381
2382    test -n "$CXX" && break
2383  done
2384fi
2385if test -z "$CXX"; then
2386  ac_ct_CXX=$CXX
2387  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2388do
2389  # Extract the first word of "$ac_prog", so it can be a program name with args.
2390set dummy $ac_prog; ac_word=$2
2391echo "$as_me:$LINENO: checking for $ac_word" >&5
2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  if test -n "$ac_ct_CXX"; then
2397  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404  for ac_exec_ext in '' $ac_executable_extensions; do
2405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406    ac_cv_prog_ac_ct_CXX="$ac_prog"
2407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408    break 2
2409  fi
2410done
2411done
2412
2413fi
2414fi
2415ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2416if test -n "$ac_ct_CXX"; then
2417  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2418echo "${ECHO_T}$ac_ct_CXX" >&6
2419else
2420  echo "$as_me:$LINENO: result: no" >&5
2421echo "${ECHO_T}no" >&6
2422fi
2423
2424  test -n "$ac_ct_CXX" && break
2425done
2426test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2427
2428  CXX=$ac_ct_CXX
2429fi
2430
2431
2432# Provide some information about the compiler.
2433echo "$as_me:$LINENO:" \
2434     "checking for C++ compiler version" >&5
2435ac_compiler=`set X $ac_compile; echo $2`
2436{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2437  (eval $ac_compiler --version </dev/null >&5) 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }
2441{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2442  (eval $ac_compiler -v </dev/null >&5) 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }
2446{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2447  (eval $ac_compiler -V </dev/null >&5) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }
2451
2452echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2453echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2454if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2455  echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457  cat >conftest.$ac_ext <<_ACEOF
2458#line $LINENO "configure"
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464
2465int
2466main ()
2467{
2468#ifndef __GNUC__
2469       choke me
2470#endif
2471
2472  ;
2473  return 0;
2474}
2475_ACEOF
2476rm -f conftest.$ac_objext
2477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2478  (eval $ac_compile) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } &&
2482         { ac_try='test -s conftest.$ac_objext'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; }; then
2488  ac_compiler_gnu=yes
2489else
2490  echo "$as_me: failed program was:" >&5
2491sed 's/^/| /' conftest.$ac_ext >&5
2492
2493ac_compiler_gnu=no
2494fi
2495rm -f conftest.$ac_objext conftest.$ac_ext
2496ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2497
2498fi
2499echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2500echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2501GXX=`test $ac_compiler_gnu = yes && echo yes`
2502ac_test_CXXFLAGS=${CXXFLAGS+set}
2503ac_save_CXXFLAGS=$CXXFLAGS
2504CXXFLAGS="-g"
2505echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2506echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2507if test "${ac_cv_prog_cxx_g+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  cat >conftest.$ac_ext <<_ACEOF
2511#line $LINENO "configure"
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517
2518int
2519main ()
2520{
2521
2522  ;
2523  return 0;
2524}
2525_ACEOF
2526rm -f conftest.$ac_objext
2527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528  (eval $ac_compile) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); } &&
2532         { ac_try='test -s conftest.$ac_objext'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  ac_cv_prog_cxx_g=yes
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543ac_cv_prog_cxx_g=no
2544fi
2545rm -f conftest.$ac_objext conftest.$ac_ext
2546fi
2547echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2548echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2549if test "$ac_test_CXXFLAGS" = set; then
2550  CXXFLAGS=$ac_save_CXXFLAGS
2551elif test $ac_cv_prog_cxx_g = yes; then
2552  if test "$GXX" = yes; then
2553    CXXFLAGS="-g -O2"
2554  else
2555    CXXFLAGS="-g"
2556  fi
2557else
2558  if test "$GXX" = yes; then
2559    CXXFLAGS="-O2"
2560  else
2561    CXXFLAGS=
2562  fi
2563fi
2564for ac_declaration in \
2565   ''\
2566   '#include <stdlib.h>' \
2567   'extern "C" void std::exit (int) throw (); using std::exit;' \
2568   'extern "C" void std::exit (int); using std::exit;' \
2569   'extern "C" void exit (int) throw ();' \
2570   'extern "C" void exit (int);' \
2571   'void exit (int);'
2572do
2573  cat >conftest.$ac_ext <<_ACEOF
2574#line $LINENO "configure"
2575/* confdefs.h.  */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h.  */
2580#include <stdlib.h>
2581$ac_declaration
2582int
2583main ()
2584{
2585exit (42);
2586  ;
2587  return 0;
2588}
2589_ACEOF
2590rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592  (eval $ac_compile) 2>&5
2593  ac_status=$?
2594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595  (exit $ac_status); } &&
2596         { ac_try='test -s conftest.$ac_objext'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; }; then
2602  :
2603else
2604  echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607continue
2608fi
2609rm -f conftest.$ac_objext conftest.$ac_ext
2610  cat >conftest.$ac_ext <<_ACEOF
2611#line $LINENO "configure"
2612/* confdefs.h.  */
2613_ACEOF
2614cat confdefs.h >>conftest.$ac_ext
2615cat >>conftest.$ac_ext <<_ACEOF
2616/* end confdefs.h.  */
2617$ac_declaration
2618int
2619main ()
2620{
2621exit (42);
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); } &&
2632         { ac_try='test -s conftest.$ac_objext'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; }; then
2638  break
2639else
2640  echo "$as_me: failed program was:" >&5
2641sed 's/^/| /' conftest.$ac_ext >&5
2642
2643fi
2644rm -f conftest.$ac_objext conftest.$ac_ext
2645done
2646rm -f conftest*
2647if test -n "$ac_declaration"; then
2648  echo '#ifdef __cplusplus' >>confdefs.h
2649  echo $ac_declaration      >>confdefs.h
2650  echo '#endif'             >>confdefs.h
2651fi
2652
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659if test "x$GCC" != xyes && test "x$GXX" != xyes; then
2660  { echo "$as_me:$LINENO: WARNING: you better use gcc to compile Factory" >&5
2661echo "$as_me: WARNING: you better use gcc to compile Factory" >&2;}
2662else
2663  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
2664    { echo "$as_me:$LINENO: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS'
2665                    (instead of the configure default \`-g -O')" >&5
2666echo "$as_me: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS'
2667                    (instead of the configure default \`-g -O')" >&2;}
2668  fi
2669  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
2670    { echo "$as_me:$LINENO: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS'
2671                    (instead of the configure default \`-g -O')" >&5
2672echo "$as_me: WARNING: we use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS'
2673                    (instead of the configure default \`-g -O')" >&2;}
2674  fi
2675fi
2676
2677#
2678# - check for some other programs.
2679#
2680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2686echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2687# On Suns, sometimes $CPP names a directory.
2688if test -n "$CPP" && test -d "$CPP"; then
2689  CPP=
2690fi
2691if test -z "$CPP"; then
2692  if test "${ac_cv_prog_CPP+set}" = set; then
2693  echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695      # Double quotes because CPP needs to be expanded
2696    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2697    do
2698      ac_preproc_ok=false
2699for ac_c_preproc_warn_flag in '' yes
2700do
2701  # Use a header file that comes with gcc, so configuring glibc
2702  # with a fresh cross-compiler works.
2703  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704  # <limits.h> exists even on freestanding compilers.
2705  # On the NeXT, cc -E runs the code through the compiler's parser,
2706  # not just through cpp. "Syntax error" is here to catch this case.
2707  cat >conftest.$ac_ext <<_ACEOF
2708#line $LINENO "configure"
2709/* confdefs.h.  */
2710_ACEOF
2711cat confdefs.h >>conftest.$ac_ext
2712cat >>conftest.$ac_ext <<_ACEOF
2713/* end confdefs.h.  */
2714#ifdef __STDC__
2715# include <limits.h>
2716#else
2717# include <assert.h>
2718#endif
2719                     Syntax error
2720_ACEOF
2721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723  ac_status=$?
2724  grep -v '^ *+' conftest.er1 >conftest.err
2725  rm -f conftest.er1
2726  cat conftest.err >&5
2727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728  (exit $ac_status); } >/dev/null; then
2729  if test -s conftest.err; then
2730    ac_cpp_err=$ac_c_preproc_warn_flag
2731  else
2732    ac_cpp_err=
2733  fi
2734else
2735  ac_cpp_err=yes
2736fi
2737if test -z "$ac_cpp_err"; then
2738  :
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743  # Broken: fails on valid input.
2744continue
2745fi
2746rm -f conftest.err conftest.$ac_ext
2747
2748  # OK, works on sane cases.  Now check whether non-existent headers
2749  # can be detected and how.
2750  cat >conftest.$ac_ext <<_ACEOF
2751#line $LINENO "configure"
2752/* confdefs.h.  */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h.  */
2757#include <ac_nonexistent.h>
2758_ACEOF
2759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2760  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } >/dev/null; then
2767  if test -s conftest.err; then
2768    ac_cpp_err=$ac_c_preproc_warn_flag
2769  else
2770    ac_cpp_err=
2771  fi
2772else
2773  ac_cpp_err=yes
2774fi
2775if test -z "$ac_cpp_err"; then
2776  # Broken: success on invalid input.
2777continue
2778else
2779  echo "$as_me: failed program was:" >&5
2780sed 's/^/| /' conftest.$ac_ext >&5
2781
2782  # Passes both tests.
2783ac_preproc_ok=:
2784break
2785fi
2786rm -f conftest.err conftest.$ac_ext
2787
2788done
2789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2790rm -f conftest.err conftest.$ac_ext
2791if $ac_preproc_ok; then
2792  break
2793fi
2794
2795    done
2796    ac_cv_prog_CPP=$CPP
2797
2798fi
2799  CPP=$ac_cv_prog_CPP
2800else
2801  ac_cv_prog_CPP=$CPP
2802fi
2803echo "$as_me:$LINENO: result: $CPP" >&5
2804echo "${ECHO_T}$CPP" >&6
2805ac_preproc_ok=false
2806for ac_c_preproc_warn_flag in '' yes
2807do
2808  # Use a header file that comes with gcc, so configuring glibc
2809  # with a fresh cross-compiler works.
2810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2811  # <limits.h> exists even on freestanding compilers.
2812  # On the NeXT, cc -E runs the code through the compiler's parser,
2813  # not just through cpp. "Syntax error" is here to catch this case.
2814  cat >conftest.$ac_ext <<_ACEOF
2815#line $LINENO "configure"
2816/* confdefs.h.  */
2817_ACEOF
2818cat confdefs.h >>conftest.$ac_ext
2819cat >>conftest.$ac_ext <<_ACEOF
2820/* end confdefs.h.  */
2821#ifdef __STDC__
2822# include <limits.h>
2823#else
2824# include <assert.h>
2825#endif
2826                     Syntax error
2827_ACEOF
2828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2829  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2830  ac_status=$?
2831  grep -v '^ *+' conftest.er1 >conftest.err
2832  rm -f conftest.er1
2833  cat conftest.err >&5
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); } >/dev/null; then
2836  if test -s conftest.err; then
2837    ac_cpp_err=$ac_c_preproc_warn_flag
2838  else
2839    ac_cpp_err=
2840  fi
2841else
2842  ac_cpp_err=yes
2843fi
2844if test -z "$ac_cpp_err"; then
2845  :
2846else
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850  # Broken: fails on valid input.
2851continue
2852fi
2853rm -f conftest.err conftest.$ac_ext
2854
2855  # OK, works on sane cases.  Now check whether non-existent headers
2856  # can be detected and how.
2857  cat >conftest.$ac_ext <<_ACEOF
2858#line $LINENO "configure"
2859/* confdefs.h.  */
2860_ACEOF
2861cat confdefs.h >>conftest.$ac_ext
2862cat >>conftest.$ac_ext <<_ACEOF
2863/* end confdefs.h.  */
2864#include <ac_nonexistent.h>
2865_ACEOF
2866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2868  ac_status=$?
2869  grep -v '^ *+' conftest.er1 >conftest.err
2870  rm -f conftest.er1
2871  cat conftest.err >&5
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); } >/dev/null; then
2874  if test -s conftest.err; then
2875    ac_cpp_err=$ac_c_preproc_warn_flag
2876  else
2877    ac_cpp_err=
2878  fi
2879else
2880  ac_cpp_err=yes
2881fi
2882if test -z "$ac_cpp_err"; then
2883  # Broken: success on invalid input.
2884continue
2885else
2886  echo "$as_me: failed program was:" >&5
2887sed 's/^/| /' conftest.$ac_ext >&5
2888
2889  # Passes both tests.
2890ac_preproc_ok=:
2891break
2892fi
2893rm -f conftest.err conftest.$ac_ext
2894
2895done
2896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2897rm -f conftest.err conftest.$ac_ext
2898if $ac_preproc_ok; then
2899  :
2900else
2901  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2902See \`config.log' for more details." >&5
2903echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2904See \`config.log' for more details." >&2;}
2905   { (exit 1); exit 1; }; }
2906fi
2907
2908ac_ext=c
2909ac_cpp='$CPP $CPPFLAGS'
2910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913
2914ac_ext=cc
2915ac_cpp='$CXXCPP $CPPFLAGS'
2916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2919echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2920echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2921if test -z "$CXXCPP"; then
2922  if test "${ac_cv_prog_CXXCPP+set}" = set; then
2923  echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925      # Double quotes because CXXCPP needs to be expanded
2926    for CXXCPP in "$CXX -E" "/lib/cpp"
2927    do
2928      ac_preproc_ok=false
2929for ac_cxx_preproc_warn_flag in '' yes
2930do
2931  # Use a header file that comes with gcc, so configuring glibc
2932  # with a fresh cross-compiler works.
2933  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2934  # <limits.h> exists even on freestanding compilers.
2935  # On the NeXT, cc -E runs the code through the compiler's parser,
2936  # not just through cpp. "Syntax error" is here to catch this case.
2937  cat >conftest.$ac_ext <<_ACEOF
2938#line $LINENO "configure"
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944#ifdef __STDC__
2945# include <limits.h>
2946#else
2947# include <assert.h>
2948#endif
2949                     Syntax error
2950_ACEOF
2951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2952  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2953  ac_status=$?
2954  grep -v '^ *+' conftest.er1 >conftest.err
2955  rm -f conftest.er1
2956  cat conftest.err >&5
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); } >/dev/null; then
2959  if test -s conftest.err; then
2960    ac_cpp_err=$ac_cxx_preproc_warn_flag
2961  else
2962    ac_cpp_err=
2963  fi
2964else
2965  ac_cpp_err=yes
2966fi
2967if test -z "$ac_cpp_err"; then
2968  :
2969else
2970  echo "$as_me: failed program was:" >&5
2971sed 's/^/| /' conftest.$ac_ext >&5
2972
2973  # Broken: fails on valid input.
2974continue
2975fi
2976rm -f conftest.err conftest.$ac_ext
2977
2978  # OK, works on sane cases.  Now check whether non-existent headers
2979  # can be detected and how.
2980  cat >conftest.$ac_ext <<_ACEOF
2981#line $LINENO "configure"
2982/* confdefs.h.  */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h.  */
2987#include <ac_nonexistent.h>
2988_ACEOF
2989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2990  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991  ac_status=$?
2992  grep -v '^ *+' conftest.er1 >conftest.err
2993  rm -f conftest.er1
2994  cat conftest.err >&5
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); } >/dev/null; then
2997  if test -s conftest.err; then
2998    ac_cpp_err=$ac_cxx_preproc_warn_flag
2999  else
3000    ac_cpp_err=
3001  fi
3002else
3003  ac_cpp_err=yes
3004fi
3005if test -z "$ac_cpp_err"; then
3006  # Broken: success on invalid input.
3007continue
3008else
3009  echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012  # Passes both tests.
3013ac_preproc_ok=:
3014break
3015fi
3016rm -f conftest.err conftest.$ac_ext
3017
3018done
3019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3020rm -f conftest.err conftest.$ac_ext
3021if $ac_preproc_ok; then
3022  break
3023fi
3024
3025    done
3026    ac_cv_prog_CXXCPP=$CXXCPP
3027
3028fi
3029  CXXCPP=$ac_cv_prog_CXXCPP
3030else
3031  ac_cv_prog_CXXCPP=$CXXCPP
3032fi
3033echo "$as_me:$LINENO: result: $CXXCPP" >&5
3034echo "${ECHO_T}$CXXCPP" >&6
3035ac_preproc_ok=false
3036for ac_cxx_preproc_warn_flag in '' yes
3037do
3038  # Use a header file that comes with gcc, so configuring glibc
3039  # with a fresh cross-compiler works.
3040  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041  # <limits.h> exists even on freestanding compilers.
3042  # On the NeXT, cc -E runs the code through the compiler's parser,
3043  # not just through cpp. "Syntax error" is here to catch this case.
3044  cat >conftest.$ac_ext <<_ACEOF
3045#line $LINENO "configure"
3046/* confdefs.h.  */
3047_ACEOF
3048cat confdefs.h >>conftest.$ac_ext
3049cat >>conftest.$ac_ext <<_ACEOF
3050/* end confdefs.h.  */
3051#ifdef __STDC__
3052# include <limits.h>
3053#else
3054# include <assert.h>
3055#endif
3056                     Syntax error
3057_ACEOF
3058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060  ac_status=$?
3061  grep -v '^ *+' conftest.er1 >conftest.err
3062  rm -f conftest.er1
3063  cat conftest.err >&5
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); } >/dev/null; then
3066  if test -s conftest.err; then
3067    ac_cpp_err=$ac_cxx_preproc_warn_flag
3068  else
3069    ac_cpp_err=
3070  fi
3071else
3072  ac_cpp_err=yes
3073fi
3074if test -z "$ac_cpp_err"; then
3075  :
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080  # Broken: fails on valid input.
3081continue
3082fi
3083rm -f conftest.err conftest.$ac_ext
3084
3085  # OK, works on sane cases.  Now check whether non-existent headers
3086  # can be detected and how.
3087  cat >conftest.$ac_ext <<_ACEOF
3088#line $LINENO "configure"
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094#include <ac_nonexistent.h>
3095_ACEOF
3096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098  ac_status=$?
3099  grep -v '^ *+' conftest.er1 >conftest.err
3100  rm -f conftest.er1
3101  cat conftest.err >&5
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); } >/dev/null; then
3104  if test -s conftest.err; then
3105    ac_cpp_err=$ac_cxx_preproc_warn_flag
3106  else
3107    ac_cpp_err=
3108  fi
3109else
3110  ac_cpp_err=yes
3111fi
3112if test -z "$ac_cpp_err"; then
3113  # Broken: success on invalid input.
3114continue
3115else
3116  echo "$as_me: failed program was:" >&5
3117sed 's/^/| /' conftest.$ac_ext >&5
3118
3119  # Passes both tests.
3120ac_preproc_ok=:
3121break
3122fi
3123rm -f conftest.err conftest.$ac_ext
3124
3125done
3126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127rm -f conftest.err conftest.$ac_ext
3128if $ac_preproc_ok; then
3129  :
3130else
3131  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3132See \`config.log' for more details." >&5
3133echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3134See \`config.log' for more details." >&2;}
3135   { (exit 1); exit 1; }; }
3136fi
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144echo "$as_me:$LINENO: checking whether ln -s works" >&5
3145echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3146LN_S=$as_ln_s
3147if test "$LN_S" = "ln -s"; then
3148  echo "$as_me:$LINENO: result: yes" >&5
3149echo "${ECHO_T}yes" >&6
3150else
3151  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3152echo "${ECHO_T}no, using $LN_S" >&6
3153fi
3154
3155# Find a good install program.  We prefer a C program (faster),
3156# so one script is as good as another.  But avoid the broken or
3157# incompatible versions:
3158# SysV /etc/install, /usr/sbin/install
3159# SunOS /usr/etc/install
3160# IRIX /sbin/install
3161# AIX /bin/install
3162# AmigaOS /C/install, which installs bootblocks on floppy discs
3163# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3164# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3165# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3166# ./install, which can be erroneously created by make from ./install.sh.
3167echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3168echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3169if test -z "$INSTALL"; then
3170if test "${ac_cv_path_install+set}" = set; then
3171  echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178  # Account for people who put trailing slashes in PATH elements.
3179case $as_dir/ in
3180  ./ | .// | /cC/* | \
3181  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3182  /usr/ucb/* ) ;;
3183  *)
3184    # OSF1 and SCO ODT 3.0 have their own names for install.
3185    # Don't use installbsd from OSF since it installs stuff as root
3186    # by default.
3187    for ac_prog in ginstall scoinst install; do
3188      for ac_exec_ext in '' $ac_executable_extensions; do
3189        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3190          if test $ac_prog = install &&
3191            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3192            # AIX install.  It has an incompatible calling convention.
3193            :
3194          elif test $ac_prog = install &&
3195            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196            # program-specific install script used by HP pwplus--don't use.
3197            :
3198          else
3199            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3200            break 3
3201          fi
3202        fi
3203      done
3204    done
3205    ;;
3206esac
3207done
3208
3209
3210fi
3211  if test "${ac_cv_path_install+set}" = set; then
3212    INSTALL=$ac_cv_path_install
3213  else
3214    # As a last resort, use the slow shell script.  We don't cache a
3215    # path for INSTALL within a source directory, because that will
3216    # break other packages using the cache if that directory is
3217    # removed, or if the path is relative.
3218    INSTALL=$ac_install_sh
3219  fi
3220fi
3221echo "$as_me:$LINENO: result: $INSTALL" >&5
3222echo "${ECHO_T}$INSTALL" >&6
3223
3224# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3225# It thinks the first close brace ends the variable substitution.
3226test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3227
3228test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3229
3230test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3231
3232if test -n "$ac_tool_prefix"; then
3233  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3234set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3235echo "$as_me:$LINENO: checking for $ac_word" >&5
3236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3237if test "${ac_cv_prog_RANLIB+set}" = set; then
3238  echo $ECHO_N "(cached) $ECHO_C" >&6
3239else
3240  if test -n "$RANLIB"; then
3241  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248  for ac_exec_ext in '' $ac_executable_extensions; do
3249  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255done
3256
3257fi
3258fi
3259RANLIB=$ac_cv_prog_RANLIB
3260if test -n "$RANLIB"; then
3261  echo "$as_me:$LINENO: result: $RANLIB" >&5
3262echo "${ECHO_T}$RANLIB" >&6
3263else
3264  echo "$as_me:$LINENO: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266fi
3267
3268fi
3269if test -z "$ac_cv_prog_RANLIB"; then
3270  ac_ct_RANLIB=$RANLIB
3271  # Extract the first word of "ranlib", so it can be a program name with args.
3272set dummy ranlib; ac_word=$2
3273echo "$as_me:$LINENO: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3276  echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278  if test -n "$ac_ct_RANLIB"; then
3279  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286  for ac_exec_ext in '' $ac_executable_extensions; do
3287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_ac_ct_RANLIB="ranlib"
3289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293done
3294
3295  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3296fi
3297fi
3298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3299if test -n "$ac_ct_RANLIB"; then
3300  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3301echo "${ECHO_T}$ac_ct_RANLIB" >&6
3302else
3303  echo "$as_me:$LINENO: result: no" >&5
3304echo "${ECHO_T}no" >&6
3305fi
3306
3307  RANLIB=$ac_ct_RANLIB
3308else
3309  RANLIB="$ac_cv_prog_RANLIB"
3310fi
3311
3312echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3313echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3314set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3315if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3316  echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318  cat >conftest.make <<\_ACEOF
3319all:
3320        @echo 'ac_maketemp="$(MAKE)"'
3321_ACEOF
3322# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3323eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3324if test -n "$ac_maketemp"; then
3325  eval ac_cv_prog_make_${ac_make}_set=yes
3326else
3327  eval ac_cv_prog_make_${ac_make}_set=no
3328fi
3329rm -f conftest.make
3330fi
3331if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3332  echo "$as_me:$LINENO: result: yes" >&5
3333echo "${ECHO_T}yes" >&6
3334  SET_MAKE=
3335else
3336  echo "$as_me:$LINENO: result: no" >&5
3337echo "${ECHO_T}no" >&6
3338  SET_MAKE="MAKE=${MAKE-make}"
3339fi
3340
3341# Extract the first word of "ar", so it can be a program name with args.
3342set dummy ar; ac_word=$2
3343echo "$as_me:$LINENO: checking for $ac_word" >&5
3344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345if test "${ac_cv_prog_AR+set}" = set; then
3346  echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348  if test -n "$AR"; then
3349  ac_cv_prog_AR="$AR" # Let the user override the test.
3350else
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354  IFS=$as_save_IFS
3355  test -z "$as_dir" && as_dir=.
3356  for ac_exec_ext in '' $ac_executable_extensions; do
3357  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358    ac_cv_prog_AR="ar"
3359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360    break 2
3361  fi
3362done
3363done
3364
3365  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="where-is-your-ar"
3366fi
3367fi
3368AR=$ac_cv_prog_AR
3369if test -n "$AR"; then
3370  echo "$as_me:$LINENO: result: $AR" >&5
3371echo "${ECHO_T}$AR" >&6
3372else
3373  echo "$as_me:$LINENO: result: no" >&5
3374echo "${ECHO_T}no" >&6
3375fi
3376
3377# Extract the first word of "m4", so it can be a program name with args.
3378set dummy m4; ac_word=$2
3379echo "$as_me:$LINENO: checking for $ac_word" >&5
3380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381if test "${ac_cv_prog_M4+set}" = set; then
3382  echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
3384  if test -n "$M4"; then
3385  ac_cv_prog_M4="$M4" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392  for ac_exec_ext in '' $ac_executable_extensions; do
3393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394    ac_cv_prog_M4="m4"
3395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396    break 2
3397  fi
3398done
3399done
3400
3401  test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="where-is-your-m4"
3402fi
3403fi
3404M4=$ac_cv_prog_M4
3405if test -n "$M4"; then
3406  echo "$as_me:$LINENO: result: $M4" >&5
3407echo "${ECHO_T}$M4" >&6
3408else
3409  echo "$as_me:$LINENO: result: no" >&5
3410echo "${ECHO_T}no" >&6
3411fi
3412
3413# Extract the first word of "bison", so it can be a program name with args.
3414set dummy bison; ac_word=$2
3415echo "$as_me:$LINENO: checking for $ac_word" >&5
3416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3417if test "${ac_cv_prog_BISON+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  if test -n "$BISON"; then
3421  ac_cv_prog_BISON="$BISON" # Let the user override the test.
3422else
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH
3425do
3426  IFS=$as_save_IFS
3427  test -z "$as_dir" && as_dir=.
3428  for ac_exec_ext in '' $ac_executable_extensions; do
3429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430    ac_cv_prog_BISON="bison"
3431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432    break 2
3433  fi
3434done
3435done
3436
3437  test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="where-is-your-bison"
3438fi
3439fi
3440BISON=$ac_cv_prog_BISON
3441if test -n "$BISON"; then
3442  echo "$as_me:$LINENO: result: $BISON" >&5
3443echo "${ECHO_T}$BISON" >&6
3444else
3445  echo "$as_me:$LINENO: result: no" >&5
3446echo "${ECHO_T}no" >&6
3447fi
3448
3449
3450# do not use `MKINSTALLDIRS' and `MAKEHEADER' since there may be
3451# name clashes with other peoples configure scripts via
3452# `config.cache'.  Furthermore, we do not use cache at all to
3453# avoid some nasty problems with our own development environment.
3454unset ac_cv_path_FACTORY_MKINSTALLDIRS
3455unset ac_cv_path_FACTORY_MAKEHEADER
3456save_path="$PATH"
3457PATH="$PATH:$srcdir/bin"
3458# Extract the first word of "mkinstalldirs", so it can be a program name with args.
3459set dummy mkinstalldirs; ac_word=$2
3460echo "$as_me:$LINENO: checking for $ac_word" >&5
3461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462if test "${ac_cv_path_FACTORY_MKINSTALLDIRS+set}" = set; then
3463  echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465  case $FACTORY_MKINSTALLDIRS in
3466  [\\/]* | ?:[\\/]*)
3467  ac_cv_path_FACTORY_MKINSTALLDIRS="$FACTORY_MKINSTALLDIRS" # Let the user override the test with a path.
3468  ;;
3469  *)
3470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  test -z "$as_dir" && as_dir=.
3475  for ac_exec_ext in '' $ac_executable_extensions; do
3476  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477    ac_cv_path_FACTORY_MKINSTALLDIRS="$as_dir/$ac_word$ac_exec_ext"
3478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479    break 2
3480  fi
3481done
3482done
3483
3484  test -z "$ac_cv_path_FACTORY_MKINSTALLDIRS" && ac_cv_path_FACTORY_MKINSTALLDIRS="-mkdir"
3485  ;;
3486esac
3487fi
3488FACTORY_MKINSTALLDIRS=$ac_cv_path_FACTORY_MKINSTALLDIRS
3489
3490if test -n "$FACTORY_MKINSTALLDIRS"; then
3491  echo "$as_me:$LINENO: result: $FACTORY_MKINSTALLDIRS" >&5
3492echo "${ECHO_T}$FACTORY_MKINSTALLDIRS" >&6
3493else
3494  echo "$as_me:$LINENO: result: no" >&5
3495echo "${ECHO_T}no" >&6
3496fi
3497
3498PATH="$srcdir/bin:$save_path"
3499# Extract the first word of "makeheader", so it can be a program name with args.
3500set dummy makeheader; ac_word=$2
3501echo "$as_me:$LINENO: checking for $ac_word" >&5
3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3503if test "${ac_cv_path_FACTORY_MAKEHEADER+set}" = set; then
3504  echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506  case $FACTORY_MAKEHEADER in
3507  [\\/]* | ?:[\\/]*)
3508  ac_cv_path_FACTORY_MAKEHEADER="$FACTORY_MAKEHEADER" # Let the user override the test with a path.
3509  ;;
3510  *)
3511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514  IFS=$as_save_IFS
3515  test -z "$as_dir" && as_dir=.
3516  for ac_exec_ext in '' $ac_executable_extensions; do
3517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518    ac_cv_path_FACTORY_MAKEHEADER="$as_dir/$ac_word$ac_exec_ext"
3519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520    break 2
3521  fi
3522done
3523done
3524
3525  ;;
3526esac
3527fi
3528FACTORY_MAKEHEADER=$ac_cv_path_FACTORY_MAKEHEADER
3529
3530if test -n "$FACTORY_MAKEHEADER"; then
3531  echo "$as_me:$LINENO: result: $FACTORY_MAKEHEADER" >&5
3532echo "${ECHO_T}$FACTORY_MAKEHEADER" >&6
3533else
3534  echo "$as_me:$LINENO: result: no" >&5
3535echo "${ECHO_T}no" >&6
3536fi
3537
3538PATH="$save_path"
3539
3540#
3541# - expand paths.
3542#
3543
3544echo "$as_me:$LINENO: checking and generating explicit install paths" >&5
3545echo $ECHO_N "checking and generating explicit install paths... $ECHO_C" >&6
3546
3547# generate Makefile
3548save_prefix="$prefix"
3549save_exec_prefix="$exec_prefix"
3550test "x$prefix" = xNONE && prefix=$ac_default_prefix
3551test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3552for dir in prefix exec_prefix bindir sbindir libexecdir \
3553           datadir sysconfdir sharedstatedir localstatedir libdir \
3554           includedir oldincludedir infodir mandir; do
3555  eval "dir_value=\$$dir"
3556  cat >> ./conftest.mk << EXPLPATHEOT
3557$dir=$dir_value
3558explicit_$dir:
3559        @ echo \$($dir)
3560        @ if echo \$($dir) | grep '^/'; \\
3561        then echo \$($dir) > ./conftest.dir; \\
3562        else echo \`pwd\`/\$($dir) > ./conftest.dir; fi
3563EXPLPATHEOT
3564done
3565prefix="$save_prefix"
3566exec_prefix="$save_exec_prefix"
3567
3568# generate the explicit paths
3569make >&5 2>&1 -f ./conftest.mk explicit_datadir
3570explicit_datadir=`cat ./conftest.dir`
3571make >&5 2>&1 -f ./conftest.mk explicit_libdir
3572explicit_libdir=`cat ./conftest.dir`
3573make >&5 2>&1 -f ./conftest.mk explicit_includedir
3574explicit_includedir=`cat ./conftest.dir`
3575
3576# clean up
3577rm -f ./conftest.mk ./conftest.dir
3578
3579echo "$as_me:$LINENO: result: done" >&5
3580echo "${ECHO_T}done" >&6
3581
3582#
3583# - check for libraries.
3584#
3585
3586
3587echo "$as_me:$LINENO: checking for atof in -lm" >&5
3588echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6
3589if test "${ac_cv_lib_m_atof+set}" = set; then
3590  echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592  ac_check_lib_save_LIBS=$LIBS
3593LIBS="-lm  $LIBS"
3594cat >conftest.$ac_ext <<_ACEOF
3595#line $LINENO "configure"
3596/* confdefs.h.  */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h.  */
3601
3602/* Override any gcc2 internal prototype to avoid an error.  */
3603#ifdef __cplusplus
3604extern "C"
3605#endif
3606/* We use char because int might match the return type of a gcc2
3607   builtin and then its argument prototype would still apply.  */
3608char atof ();
3609int
3610main ()
3611{
3612atof ();
3613  ;
3614  return 0;
3615}
3616_ACEOF
3617rm -f conftest.$ac_objext conftest$ac_exeext
3618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619  (eval $ac_link) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); } &&
3623         { ac_try='test -s conftest$ac_exeext'
3624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625  (eval $ac_try) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  ac_cv_lib_m_atof=yes
3630else
3631  echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634ac_cv_lib_m_atof=no
3635fi
3636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3637LIBS=$ac_check_lib_save_LIBS
3638fi
3639echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5
3640echo "${ECHO_T}$ac_cv_lib_m_atof" >&6
3641if test $ac_cv_lib_m_atof = yes; then
3642  cat >>confdefs.h <<_ACEOF
3643#define HAVE_LIBM 1
3644_ACEOF
3645
3646  LIBS="-lm $LIBS"
3647
3648else
3649   { { echo "$as_me:$LINENO: error: libm.a not found" >&5
3650echo "$as_me: error: libm.a not found" >&2;}
3651   { (exit 1); exit 1; }; }
3652fi
3653
3654
3655if test "x$gmp_in_installation" != xyes; then
3656
3657echo "$as_me:$LINENO: checking for main in -lgmp" >&5
3658echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
3659if test "${ac_cv_lib_gmp_main+set}" = set; then
3660  echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662  ac_check_lib_save_LIBS=$LIBS
3663LIBS="-lgmp  $LIBS"
3664cat >conftest.$ac_ext <<_ACEOF
3665#line $LINENO "configure"
3666/* confdefs.h.  */
3667_ACEOF
3668cat confdefs.h >>conftest.$ac_ext
3669cat >>conftest.$ac_ext <<_ACEOF
3670/* end confdefs.h.  */
3671
3672
3673int
3674main ()
3675{
3676main ();
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681rm -f conftest.$ac_objext conftest$ac_exeext
3682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3683  (eval $ac_link) 2>&5
3684  ac_status=$?
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); } &&
3687         { ac_try='test -s conftest$ac_exeext'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; }; then
3693  ac_cv_lib_gmp_main=yes
3694else
3695  echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698ac_cv_lib_gmp_main=no
3699fi
3700rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3701LIBS=$ac_check_lib_save_LIBS
3702fi
3703echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
3704echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
3705if test $ac_cv_lib_gmp_main = yes; then
3706  cat >>confdefs.h <<_ACEOF
3707#define HAVE_LIBGMP 1
3708_ACEOF
3709
3710  LIBS="-lgmp $LIBS"
3711
3712else
3713
3714      # check a second time in `$(libdir)'.  This is a bit tricky,
3715      # but I think its worth avoiding long option values.
3716      unset ac_cv_lib_gmp_main
3717      LDFLAGS="-L$explicit_libdir $LDFLAGS"
3718
3719echo "$as_me:$LINENO: checking for main in -lgmp" >&5
3720echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6
3721if test "${ac_cv_lib_gmp_main+set}" = set; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  ac_check_lib_save_LIBS=$LIBS
3725LIBS="-lgmp  $LIBS"
3726cat >conftest.$ac_ext <<_ACEOF
3727#line $LINENO "configure"
3728/* confdefs.h.  */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h.  */
3733
3734
3735int
3736main ()
3737{
3738main ();
3739  ;
3740  return 0;
3741}
3742_ACEOF
3743rm -f conftest.$ac_objext conftest$ac_exeext
3744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3745  (eval $ac_link) 2>&5
3746  ac_status=$?
3747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748  (exit $ac_status); } &&
3749         { ac_try='test -s conftest$ac_exeext'
3750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751  (eval $ac_try) 2>&5
3752  ac_status=$?
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); }; }; then
3755  ac_cv_lib_gmp_main=yes
3756else
3757  echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760ac_cv_lib_gmp_main=no
3761fi
3762rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3763LIBS=$ac_check_lib_save_LIBS
3764fi
3765echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5
3766echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6
3767if test $ac_cv_lib_gmp_main = yes; then
3768  cat >>confdefs.h <<_ACEOF
3769#define HAVE_LIBGMP 1
3770_ACEOF
3771
3772  LIBS="-lgmp $LIBS"
3773
3774else
3775   { { echo "$as_me:$LINENO: error: libgmp.a not found.  Use option --with-gmp to specify path" >&5
3776echo "$as_me: error: libgmp.a not found.  Use option --with-gmp to specify path" >&2;}
3777   { (exit 1); exit 1; }; }
3778fi
3779
3780      unset ac_cv_lib_gmp_main
3781
3782fi
3783
3784fi
3785
3786#
3787# - check for header files.
3788#
3789ac_ext=cc
3790ac_cpp='$CXXCPP $CPPFLAGS'
3791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3794
3795
3796if test "x$gmp_in_installation" != xyes; then
3797
3798
3799echo "$as_me:$LINENO: checking for egrep" >&5
3800echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3801if test "${ac_cv_prog_egrep+set}" = set; then
3802  echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
3804  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3805    then ac_cv_prog_egrep='grep -E'
3806    else ac_cv_prog_egrep='egrep'
3807    fi
3808fi
3809echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3810echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3811 EGREP=$ac_cv_prog_egrep
3812
3813
3814echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3816if test "${ac_cv_header_stdc+set}" = set; then
3817  echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819  cat >conftest.$ac_ext <<_ACEOF
3820#line $LINENO "configure"
3821/* confdefs.h.  */
3822_ACEOF
3823cat confdefs.h >>conftest.$ac_ext
3824cat >>conftest.$ac_ext <<_ACEOF
3825/* end confdefs.h.  */
3826#include <stdlib.h>
3827#include <stdarg.h>
3828#include <string.h>
3829#include <float.h>
3830
3831int
3832main ()
3833{
3834
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext
3840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841  (eval $ac_compile) 2>&5
3842  ac_status=$?
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); } &&
3845         { ac_try='test -s conftest.$ac_objext'
3846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847  (eval $ac_try) 2>&5
3848  ac_status=$?
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); }; }; then
3851  ac_cv_header_stdc=yes
3852else
3853  echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856ac_cv_header_stdc=no
3857fi
3858rm -f conftest.$ac_objext conftest.$ac_ext
3859
3860if test $ac_cv_header_stdc = yes; then
3861  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3862  cat >conftest.$ac_ext <<_ACEOF
3863#line $LINENO "configure"
3864/* confdefs.h.  */
3865_ACEOF
3866cat confdefs.h >>conftest.$ac_ext
3867cat >>conftest.$ac_ext <<_ACEOF
3868/* end confdefs.h.  */
3869#include <string.h>
3870
3871_ACEOF
3872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873  $EGREP "memchr" >/dev/null 2>&1; then
3874  :
3875else
3876  ac_cv_header_stdc=no
3877fi
3878rm -f conftest*
3879
3880fi
3881
3882if test $ac_cv_header_stdc = yes; then
3883  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3884  cat >conftest.$ac_ext <<_ACEOF
3885#line $LINENO "configure"
3886/* confdefs.h.  */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h.  */
3891#include <stdlib.h>
3892
3893_ACEOF
3894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3895  $EGREP "free" >/dev/null 2>&1; then
3896  :
3897else
3898  ac_cv_header_stdc=no
3899fi
3900rm -f conftest*
3901
3902fi
3903
3904if test $ac_cv_header_stdc = yes; then
3905  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3906  if test "$cross_compiling" = yes; then
3907  :
3908else
3909  cat >conftest.$ac_ext <<_ACEOF
3910#line $LINENO "configure"
3911/* confdefs.h.  */
3912_ACEOF
3913cat confdefs.h >>conftest.$ac_ext
3914cat >>conftest.$ac_ext <<_ACEOF
3915/* end confdefs.h.  */
3916#include <ctype.h>
3917#if ((' ' & 0x0FF) == 0x020)
3918# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3919# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3920#else
3921# define ISLOWER(c) \
3922                   (('a' <= (c) && (c) <= 'i') \
3923                     || ('j' <= (c) && (c) <= 'r') \
3924                     || ('s' <= (c) && (c) <= 'z'))
3925# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3926#endif
3927
3928#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3929int
3930main ()
3931{
3932  int i;
3933  for (i = 0; i < 256; i++)
3934    if (XOR (islower (i), ISLOWER (i))
3935        || toupper (i) != TOUPPER (i))
3936      exit(2);
3937  exit (0);
3938}
3939_ACEOF
3940rm -f conftest$ac_exeext
3941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942  (eval $ac_link) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947  (eval $ac_try) 2>&5
3948  ac_status=$?
3949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950  (exit $ac_status); }; }; then
3951  :
3952else
3953  echo "$as_me: program exited with status $ac_status" >&5
3954echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957( exit $ac_status )
3958ac_cv_header_stdc=no
3959fi
3960rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3961fi
3962fi
3963fi
3964echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3965echo "${ECHO_T}$ac_cv_header_stdc" >&6
3966if test $ac_cv_header_stdc = yes; then
3967
3968cat >>confdefs.h <<\_ACEOF
3969#define STDC_HEADERS 1
3970_ACEOF
3971
3972fi
3973
3974# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3985                  inttypes.h stdint.h unistd.h
3986do
3987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988echo "$as_me:$LINENO: checking for $ac_header" >&5
3989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991  echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993  cat >conftest.$ac_ext <<_ACEOF
3994#line $LINENO "configure"
3995/* confdefs.h.  */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h.  */
4000$ac_includes_default
4001
4002#include <$ac_header>
4003_ACEOF
4004rm -f conftest.$ac_objext
4005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4006  (eval $ac_compile) 2>&5
4007  ac_status=$?
4008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); } &&
4010         { ac_try='test -s conftest.$ac_objext'
4011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012  (eval $ac_try) 2>&5
4013  ac_status=$?
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); }; }; then
4016  eval "$as_ac_Header=yes"
4017else
4018  echo "$as_me: failed program was:" >&5
4019sed 's/^/| /' conftest.$ac_ext >&5
4020
4021eval "$as_ac_Header=no"
4022fi
4023rm -f conftest.$ac_objext conftest.$ac_ext
4024fi
4025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4027if test `eval echo '${'$as_ac_Header'}'` = yes; then
4028  cat >>confdefs.h <<_ACEOF
4029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4030_ACEOF
4031
4032fi
4033
4034done
4035
4036
4037
4038for ac_header in gmp.h
4039do
4040as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4041if eval "test \"\${$as_ac_Header+set}\" = set"; then
4042  echo "$as_me:$LINENO: checking for $ac_header" >&5
4043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4044if eval "test \"\${$as_ac_Header+set}\" = set"; then
4045  echo $ECHO_N "(cached) $ECHO_C" >&6
4046fi
4047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4049else
4050  # Is the header compilable?
4051echo "$as_me:$LINENO: checking $ac_header usability" >&5
4052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4053cat >conftest.$ac_ext <<_ACEOF
4054#line $LINENO "configure"
4055/* confdefs.h.  */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h.  */
4060$ac_includes_default
4061#include <$ac_header>
4062_ACEOF
4063rm -f conftest.$ac_objext
4064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4065  (eval $ac_compile) 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); } &&
4069         { ac_try='test -s conftest.$ac_objext'
4070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071  (eval $ac_try) 2>&5
4072  ac_status=$?
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); }; }; then
4075  ac_header_compiler=yes
4076else
4077  echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080ac_header_compiler=no
4081fi
4082rm -f conftest.$ac_objext conftest.$ac_ext
4083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4084echo "${ECHO_T}$ac_header_compiler" >&6
4085
4086# Is the header present?
4087echo "$as_me:$LINENO: checking $ac_header presence" >&5
4088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4089cat >conftest.$ac_ext <<_ACEOF
4090#line $LINENO "configure"
4091/* confdefs.h.  */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h.  */
4096#include <$ac_header>
4097_ACEOF
4098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4099  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4100  ac_status=$?
4101  grep -v '^ *+' conftest.er1 >conftest.err
4102  rm -f conftest.er1
4103  cat conftest.err >&5
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); } >/dev/null; then
4106  if test -s conftest.err; then
4107    ac_cpp_err=$ac_cxx_preproc_warn_flag
4108  else
4109    ac_cpp_err=
4110  fi
4111else
4112  ac_cpp_err=yes
4113fi
4114if test -z "$ac_cpp_err"; then
4115  ac_header_preproc=yes
4116else
4117  echo "$as_me: failed program was:" >&5
4118sed 's/^/| /' conftest.$ac_ext >&5
4119
4120  ac_header_preproc=no
4121fi
4122rm -f conftest.err conftest.$ac_ext
4123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4124echo "${ECHO_T}$ac_header_preproc" >&6
4125
4126# So?  What about this header?
4127case $ac_header_compiler:$ac_header_preproc in
4128  yes:no )
4129    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4131    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4133    (
4134      cat <<\_ASBOX
4135## ------------------------------------ ##
4136## Report this to bug-autoconf@gnu.org. ##
4137## ------------------------------------ ##
4138_ASBOX
4139    ) |
4140      sed "s/^/$as_me: WARNING:     /" >&2
4141    ;;
4142  no:yes )
4143    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4144echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4145    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4146echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4147    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4149    (
4150      cat <<\_ASBOX
4151## ------------------------------------ ##
4152## Report this to bug-autoconf@gnu.org. ##
4153## ------------------------------------ ##
4154_ASBOX
4155    ) |
4156      sed "s/^/$as_me: WARNING:     /" >&2
4157    ;;
4158esac
4159echo "$as_me:$LINENO: checking for $ac_header" >&5
4160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4161if eval "test \"\${$as_ac_Header+set}\" = set"; then
4162  echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164  eval "$as_ac_Header=$ac_header_preproc"
4165fi
4166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4167echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4168
4169fi
4170if test `eval echo '${'$as_ac_Header'}'` = yes; then
4171  cat >>confdefs.h <<_ACEOF
4172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173_ACEOF
4174
4175else
4176
4177      # check a second time in `$(includedir)'.  This is a bit tricky,
4178      # but I think it's worth avoiding long option values.
4179      unset ac_cv_header_gmp_h
4180      CPPFLAGS="-I$explicit_includedir $CPPFLAGS"
4181
4182for ac_header in gmp.h
4183do
4184as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185if eval "test \"\${$as_ac_Header+set}\" = set"; then
4186  echo "$as_me:$LINENO: checking for $ac_header" >&5
4187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4188if eval "test \"\${$as_ac_Header+set}\" = set"; then
4189  echo $ECHO_N "(cached) $ECHO_C" >&6
4190fi
4191echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4192echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4193else
4194  # Is the header compilable?
4195echo "$as_me:$LINENO: checking $ac_header usability" >&5
4196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4197cat >conftest.$ac_ext <<_ACEOF
4198#line $LINENO "configure"
4199/* confdefs.h.  */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h.  */
4204$ac_includes_default
4205#include <$ac_header>
4206_ACEOF
4207rm -f conftest.$ac_objext
4208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4209  (eval $ac_compile) 2>&5
4210  ac_status=$?
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); } &&
4213         { ac_try='test -s conftest.$ac_objext'
4214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215  (eval $ac_try) 2>&5
4216  ac_status=$?
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); }; }; then
4219  ac_header_compiler=yes
4220else
4221  echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224ac_header_compiler=no
4225fi
4226rm -f conftest.$ac_objext conftest.$ac_ext
4227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4228echo "${ECHO_T}$ac_header_compiler" >&6
4229
4230# Is the header present?
4231echo "$as_me:$LINENO: checking $ac_header presence" >&5
4232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4233cat >conftest.$ac_ext <<_ACEOF
4234#line $LINENO "configure"
4235/* confdefs.h.  */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h.  */
4240#include <$ac_header>
4241_ACEOF
4242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244  ac_status=$?
4245  grep -v '^ *+' conftest.er1 >conftest.err
4246  rm -f conftest.er1
4247  cat conftest.err >&5
4248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249  (exit $ac_status); } >/dev/null; then
4250  if test -s conftest.err; then
4251    ac_cpp_err=$ac_cxx_preproc_warn_flag
4252  else
4253    ac_cpp_err=
4254  fi
4255else
4256  ac_cpp_err=yes
4257fi
4258if test -z "$ac_cpp_err"; then
4259  ac_header_preproc=yes
4260else
4261  echo "$as_me: failed program was:" >&5
4262sed 's/^/| /' conftest.$ac_ext >&5
4263
4264  ac_header_preproc=no
4265fi
4266rm -f conftest.err conftest.$ac_ext
4267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4268echo "${ECHO_T}$ac_header_preproc" >&6
4269
4270# So?  What about this header?
4271case $ac_header_compiler:$ac_header_preproc in
4272  yes:no )
4273    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4275    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4276echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4277    (
4278      cat <<\_ASBOX
4279## ------------------------------------ ##
4280## Report this to bug-autoconf@gnu.org. ##
4281## ------------------------------------ ##
4282_ASBOX
4283    ) |
4284      sed "s/^/$as_me: WARNING:     /" >&2
4285    ;;
4286  no:yes )
4287    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4289    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4291    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4293    (
4294      cat <<\_ASBOX
4295## ------------------------------------ ##
4296## Report this to bug-autoconf@gnu.org. ##
4297## ------------------------------------ ##
4298_ASBOX
4299    ) |
4300      sed "s/^/$as_me: WARNING:     /" >&2
4301    ;;
4302esac
4303echo "$as_me:$LINENO: checking for $ac_header" >&5
4304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306  echo $ECHO_N "(cached) $ECHO_C" >&6
4307else
4308  eval "$as_ac_Header=$ac_header_preproc"
4309fi
4310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4312
4313fi
4314if test `eval echo '${'$as_ac_Header'}'` = yes; then
4315  cat >>confdefs.h <<_ACEOF
4316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317_ACEOF
4318
4319else
4320   { { echo "$as_me:$LINENO: error: gmp.h not found.  Use option --with-gmp to specify path" >&5
4321echo "$as_me: error: gmp.h not found.  Use option --with-gmp to specify path" >&2;}
4322   { (exit 1); exit 1; }; }
4323fi
4324
4325done
4326
4327      unset ac_cv_header_gmp_h
4328
4329fi
4330
4331done
4332
4333fi
4334
4335
4336
4337
4338
4339
4340for ac_header in stdio.h stdlib.h string.h time.h math.h
4341do
4342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343if eval "test \"\${$as_ac_Header+set}\" = set"; then
4344  echo "$as_me:$LINENO: checking for $ac_header" >&5
4345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4346if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347  echo $ECHO_N "(cached) $ECHO_C" >&6
4348fi
4349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4351else
4352  # Is the header compilable?
4353echo "$as_me:$LINENO: checking $ac_header usability" >&5
4354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4355cat >conftest.$ac_ext <<_ACEOF
4356#line $LINENO "configure"
4357/* confdefs.h.  */
4358_ACEOF
4359cat confdefs.h >>conftest.$ac_ext
4360cat >>conftest.$ac_ext <<_ACEOF
4361/* end confdefs.h.  */
4362$ac_includes_default
4363#include <$ac_header>
4364_ACEOF
4365rm -f conftest.$ac_objext
4366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367  (eval $ac_compile) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); } &&
4371         { ac_try='test -s conftest.$ac_objext'
4372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373  (eval $ac_try) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); }; }; then
4377  ac_header_compiler=yes
4378else
4379  echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_header_compiler=no
4383fi
4384rm -f conftest.$ac_objext conftest.$ac_ext
4385echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4386echo "${ECHO_T}$ac_header_compiler" >&6
4387
4388# Is the header present?
4389echo "$as_me:$LINENO: checking $ac_header presence" >&5
4390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4391cat >conftest.$ac_ext <<_ACEOF
4392#line $LINENO "configure"
4393/* confdefs.h.  */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h.  */
4398#include <$ac_header>
4399_ACEOF
4400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } >/dev/null; then
4408  if test -s conftest.err; then
4409    ac_cpp_err=$ac_cxx_preproc_warn_flag
4410  else
4411    ac_cpp_err=
4412  fi
4413else
4414  ac_cpp_err=yes
4415fi
4416if test -z "$ac_cpp_err"; then
4417  ac_header_preproc=yes
4418else
4419  echo "$as_me: failed program was:" >&5
4420sed 's/^/| /' conftest.$ac_ext >&5
4421
4422  ac_header_preproc=no
4423fi
4424rm -f conftest.err conftest.$ac_ext
4425echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4426echo "${ECHO_T}$ac_header_preproc" >&6
4427
4428# So?  What about this header?
4429case $ac_header_compiler:$ac_header_preproc in
4430  yes:no )
4431    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4433    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4434echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4435    (
4436      cat <<\_ASBOX
4437## ------------------------------------ ##
4438## Report this to bug-autoconf@gnu.org. ##
4439## ------------------------------------ ##
4440_ASBOX
4441    ) |
4442      sed "s/^/$as_me: WARNING:     /" >&2
4443    ;;
4444  no:yes )
4445    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4447    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4451    (
4452      cat <<\_ASBOX
4453## ------------------------------------ ##
4454## Report this to bug-autoconf@gnu.org. ##
4455## ------------------------------------ ##
4456_ASBOX
4457    ) |
4458      sed "s/^/$as_me: WARNING:     /" >&2
4459    ;;
4460esac
4461echo "$as_me:$LINENO: checking for $ac_header" >&5
4462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4463if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464  echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466  eval "$as_ac_Header=$ac_header_preproc"
4467fi
4468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4470
4471fi
4472if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473  cat >>confdefs.h <<_ACEOF
4474#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475_ACEOF
4476
4477else
4478   { { echo "$as_me:$LINENO: error: C header files not found" >&5
4479echo "$as_me: error: C header files not found" >&2;}
4480   { (exit 1); exit 1; }; }
4481fi
4482
4483done
4484
4485
4486if test "x$enable_streamio" != xno; then
4487
4488
4489
4490for ac_header in iostream.h strstream.h fstream.h
4491do
4492as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4493if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494  echo "$as_me:$LINENO: checking for $ac_header" >&5
4495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4496if eval "test \"\${$as_ac_Header+set}\" = set"; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498fi
4499echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4500echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4501else
4502  # Is the header compilable?
4503echo "$as_me:$LINENO: checking $ac_header usability" >&5
4504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4505cat >conftest.$ac_ext <<_ACEOF
4506#line $LINENO "configure"
4507/* confdefs.h.  */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h.  */
4512$ac_includes_default
4513#include <$ac_header>
4514_ACEOF
4515rm -f conftest.$ac_objext
4516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517  (eval $ac_compile) 2>&5
4518  ac_status=$?
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); } &&
4521         { ac_try='test -s conftest.$ac_objext'
4522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523  (eval $ac_try) 2>&5
4524  ac_status=$?
4525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526  (exit $ac_status); }; }; then
4527  ac_header_compiler=yes
4528else
4529  echo "$as_me: failed program was:" >&5
4530sed 's/^/| /' conftest.$ac_ext >&5
4531
4532ac_header_compiler=no
4533fi
4534rm -f conftest.$ac_objext conftest.$ac_ext
4535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536echo "${ECHO_T}$ac_header_compiler" >&6
4537
4538# Is the header present?
4539echo "$as_me:$LINENO: checking $ac_header presence" >&5
4540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4541cat >conftest.$ac_ext <<_ACEOF
4542#line $LINENO "configure"
4543/* confdefs.h.  */
4544_ACEOF
4545cat confdefs.h >>conftest.$ac_ext
4546cat >>conftest.$ac_ext <<_ACEOF
4547/* end confdefs.h.  */
4548#include <$ac_header>
4549_ACEOF
4550if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4551  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552  ac_status=$?
4553  grep -v '^ *+' conftest.er1 >conftest.err
4554  rm -f conftest.er1
4555  cat conftest.err >&5
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); } >/dev/null; then
4558  if test -s conftest.err; then
4559    ac_cpp_err=$ac_cxx_preproc_warn_flag
4560  else
4561    ac_cpp_err=
4562  fi
4563else
4564  ac_cpp_err=yes
4565fi
4566if test -z "$ac_cpp_err"; then
4567  ac_header_preproc=yes
4568else
4569  echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
4572  ac_header_preproc=no
4573fi
4574rm -f conftest.err conftest.$ac_ext
4575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576echo "${ECHO_T}$ac_header_preproc" >&6
4577
4578# So?  What about this header?
4579case $ac_header_compiler:$ac_header_preproc in
4580  yes:no )
4581    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4585    (
4586      cat <<\_ASBOX
4587## ------------------------------------ ##
4588## Report this to bug-autoconf@gnu.org. ##
4589## ------------------------------------ ##
4590_ASBOX
4591    ) |
4592      sed "s/^/$as_me: WARNING:     /" >&2
4593    ;;
4594  no:yes )
4595    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4596echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4597    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4598echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4601    (
4602      cat <<\_ASBOX
4603## ------------------------------------ ##
4604## Report this to bug-autoconf@gnu.org. ##
4605## ------------------------------------ ##
4606_ASBOX
4607    ) |
4608      sed "s/^/$as_me: WARNING:     /" >&2
4609    ;;
4610esac
4611echo "$as_me:$LINENO: checking for $ac_header" >&5
4612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4613if eval "test \"\${$as_ac_Header+set}\" = set"; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  eval "$as_ac_Header=$ac_header_preproc"
4617fi
4618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4620
4621fi
4622if test `eval echo '${'$as_ac_Header'}'` = yes; then
4623  cat >>confdefs.h <<_ACEOF
4624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625_ACEOF
4626
4627else
4628   { echo "$as_me:$LINENO: WARNING: C++ header files not found" >&5
4629echo "$as_me: WARNING: C++ header files not found" >&2;}
4630fi
4631
4632done
4633
4634
4635for ac_header in ctype.h
4636do
4637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4638if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639  echo "$as_me:$LINENO: checking for $ac_header" >&5
4640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4641if eval "test \"\${$as_ac_Header+set}\" = set"; then
4642  echo $ECHO_N "(cached) $ECHO_C" >&6
4643fi
4644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4646else
4647  # Is the header compilable?
4648echo "$as_me:$LINENO: checking $ac_header usability" >&5
4649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4650cat >conftest.$ac_ext <<_ACEOF
4651#line $LINENO "configure"
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657$ac_includes_default
4658#include <$ac_header>
4659_ACEOF
4660rm -f conftest.$ac_objext
4661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4662  (eval $ac_compile) 2>&5
4663  ac_status=$?
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); } &&
4666         { ac_try='test -s conftest.$ac_objext'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; }; then
4672  ac_header_compiler=yes
4673else
4674  echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677ac_header_compiler=no
4678fi
4679rm -f conftest.$ac_objext conftest.$ac_ext
4680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4681echo "${ECHO_T}$ac_header_compiler" >&6
4682
4683# Is the header present?
4684echo "$as_me:$LINENO: checking $ac_header presence" >&5
4685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4686cat >conftest.$ac_ext <<_ACEOF
4687#line $LINENO "configure"
4688/* confdefs.h.  */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h.  */
4693#include <$ac_header>
4694_ACEOF
4695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4697  ac_status=$?
4698  grep -v '^ *+' conftest.er1 >conftest.err
4699  rm -f conftest.er1
4700  cat conftest.err >&5
4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702  (exit $ac_status); } >/dev/null; then
4703  if test -s conftest.err; then
4704    ac_cpp_err=$ac_cxx_preproc_warn_flag
4705  else
4706    ac_cpp_err=
4707  fi
4708else
4709  ac_cpp_err=yes
4710fi
4711if test -z "$ac_cpp_err"; then
4712  ac_header_preproc=yes
4713else
4714  echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717  ac_header_preproc=no
4718fi
4719rm -f conftest.err conftest.$ac_ext
4720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4721echo "${ECHO_T}$ac_header_preproc" >&6
4722
4723# So?  What about this header?
4724case $ac_header_compiler:$ac_header_preproc in
4725  yes:no )
4726    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4728    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4730    (
4731      cat <<\_ASBOX
4732## ------------------------------------ ##
4733## Report this to bug-autoconf@gnu.org. ##
4734## ------------------------------------ ##
4735_ASBOX
4736    ) |
4737      sed "s/^/$as_me: WARNING:     /" >&2
4738    ;;
4739  no:yes )
4740    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4746    (
4747      cat <<\_ASBOX
4748## ------------------------------------ ##
4749## Report this to bug-autoconf@gnu.org. ##
4750## ------------------------------------ ##
4751_ASBOX
4752    ) |
4753      sed "s/^/$as_me: WARNING:     /" >&2
4754    ;;
4755esac
4756echo "$as_me:$LINENO: checking for $ac_header" >&5
4757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759  echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
4761  eval "$as_ac_Header=$ac_header_preproc"
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765
4766fi
4767if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768  cat >>confdefs.h <<_ACEOF
4769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770_ACEOF
4771
4772else
4773   { { echo "$as_me:$LINENO: error: standard C header files not found" >&5
4774echo "$as_me: error: standard C header files not found" >&2;}
4775   { (exit 1); exit 1; }; }
4776fi
4777
4778done
4779
4780
4781  # since the FTE will compile only with stream IO enabled we will not
4782  # check for the necessary header files if stream IO is disabled
4783
4784
4785
4786
4787for ac_header in stdarg.h signal.h errno.h unistd.h
4788do
4789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4790if eval "test \"\${$as_ac_Header+set}\" = set"; then
4791  echo "$as_me:$LINENO: checking for $ac_header" >&5
4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4793if eval "test \"\${$as_ac_Header+set}\" = set"; then
4794  echo $ECHO_N "(cached) $ECHO_C" >&6
4795fi
4796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4798else
4799  # Is the header compilable?
4800echo "$as_me:$LINENO: checking $ac_header usability" >&5
4801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4802cat >conftest.$ac_ext <<_ACEOF
4803#line $LINENO "configure"
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809$ac_includes_default
4810#include <$ac_header>
4811_ACEOF
4812rm -f conftest.$ac_objext
4813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814  (eval $ac_compile) 2>&5
4815  ac_status=$?
4816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817  (exit $ac_status); } &&
4818         { ac_try='test -s conftest.$ac_objext'
4819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820  (eval $ac_try) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); }; }; then
4824  ac_header_compiler=yes
4825else
4826  echo "$as_me: failed program was:" >&5
4827sed 's/^/| /' conftest.$ac_ext >&5
4828
4829ac_header_compiler=no
4830fi
4831rm -f conftest.$ac_objext conftest.$ac_ext
4832echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4833echo "${ECHO_T}$ac_header_compiler" >&6
4834
4835# Is the header present?
4836echo "$as_me:$LINENO: checking $ac_header presence" >&5
4837echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4838cat >conftest.$ac_ext <<_ACEOF
4839#line $LINENO "configure"
4840/* confdefs.h.  */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h.  */
4845#include <$ac_header>
4846_ACEOF
4847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4848  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4849  ac_status=$?
4850  grep -v '^ *+' conftest.er1 >conftest.err
4851  rm -f conftest.er1
4852  cat conftest.err >&5
4853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854  (exit $ac_status); } >/dev/null; then
4855  if test -s conftest.err; then
4856    ac_cpp_err=$ac_cxx_preproc_warn_flag
4857  else
4858    ac_cpp_err=
4859  fi
4860else
4861  ac_cpp_err=yes
4862fi
4863if test -z "$ac_cpp_err"; then
4864  ac_header_preproc=yes
4865else
4866  echo "$as_me: failed program was:" >&5
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
4869  ac_header_preproc=no
4870fi
4871rm -f conftest.err conftest.$ac_ext
4872echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4873echo "${ECHO_T}$ac_header_preproc" >&6
4874
4875# So?  What about this header?
4876case $ac_header_compiler:$ac_header_preproc in
4877  yes:no )
4878    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4879echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4880    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4882    (
4883      cat <<\_ASBOX
4884## ------------------------------------ ##
4885## Report this to bug-autoconf@gnu.org. ##
4886## ------------------------------------ ##
4887_ASBOX
4888    ) |
4889      sed "s/^/$as_me: WARNING:     /" >&2
4890    ;;
4891  no:yes )
4892    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4893echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4894    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4895echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4896    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898    (
4899      cat <<\_ASBOX
4900## ------------------------------------ ##
4901## Report this to bug-autoconf@gnu.org. ##
4902## ------------------------------------ ##
4903_ASBOX
4904    ) |
4905      sed "s/^/$as_me: WARNING:     /" >&2
4906    ;;
4907esac
4908echo "$as_me:$LINENO: checking for $ac_header" >&5
4909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4910if eval "test \"\${$as_ac_Header+set}\" = set"; then
4911  echo $ECHO_N "(cached) $ECHO_C" >&6
4912else
4913  eval "$as_ac_Header=$ac_header_preproc"
4914fi
4915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4917
4918fi
4919if test `eval echo '${'$as_ac_Header'}'` = yes; then
4920  cat >>confdefs.h <<_ACEOF
4921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4922_ACEOF
4923
4924else
4925   { echo "$as_me:$LINENO: WARNING: C/C++ header files not found.
4926                    You will not be able to build the Factory Test Environment
4927                    (though Factory itself should compile)" >&5
4928echo "$as_me: WARNING: C/C++ header files not found.
4929                    You will not be able to build the Factory Test Environment
4930                    (though Factory itself should compile)" >&2;}
4931fi
4932
4933done
4934
4935fi
4936
4937if test "x$enable_timing" != xno; then
4938
4939
4940for ac_header in sys/param.h sys/times.h
4941do
4942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4943if eval "test \"\${$as_ac_Header+set}\" = set"; then
4944  echo "$as_me:$LINENO: checking for $ac_header" >&5
4945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4946if eval "test \"\${$as_ac_Header+set}\" = set"; then
4947  echo $ECHO_N "(cached) $ECHO_C" >&6
4948fi
4949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4951else
4952  # Is the header compilable?
4953echo "$as_me:$LINENO: checking $ac_header usability" >&5
4954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4955cat >conftest.$ac_ext <<_ACEOF
4956#line $LINENO "configure"
4957/* confdefs.h.  */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h.  */
4962$ac_includes_default
4963#include <$ac_header>
4964_ACEOF
4965rm -f conftest.$ac_objext
4966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967  (eval $ac_compile) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); } &&
4971         { ac_try='test -s conftest.$ac_objext'
4972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973  (eval $ac_try) 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; }; then
4977  ac_header_compiler=yes
4978else
4979  echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982ac_header_compiler=no
4983fi
4984rm -f conftest.$ac_objext conftest.$ac_ext
4985echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4986echo "${ECHO_T}$ac_header_compiler" >&6
4987
4988# Is the header present?
4989echo "$as_me:$LINENO: checking $ac_header presence" >&5
4990echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4991cat >conftest.$ac_ext <<_ACEOF
4992#line $LINENO "configure"
4993/* confdefs.h.  */
4994_ACEOF
4995cat confdefs.h >>conftest.$ac_ext
4996cat >>conftest.$ac_ext <<_ACEOF
4997/* end confdefs.h.  */
4998#include <$ac_header>
4999_ACEOF
5000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5001  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5002  ac_status=$?
5003  grep -v '^ *+' conftest.er1 >conftest.err
5004  rm -f conftest.er1
5005  cat conftest.err >&5
5006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007  (exit $ac_status); } >/dev/null; then
5008  if test -s conftest.err; then
5009    ac_cpp_err=$ac_cxx_preproc_warn_flag
5010  else
5011    ac_cpp_err=
5012  fi
5013else
5014  ac_cpp_err=yes
5015fi
5016if test -z "$ac_cpp_err"; then
5017  ac_header_preproc=yes
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022  ac_header_preproc=no
5023fi
5024rm -f conftest.err conftest.$ac_ext
5025echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5026echo "${ECHO_T}$ac_header_preproc" >&6
5027
5028# So?  What about this header?
5029case $ac_header_compiler:$ac_header_preproc in
5030  yes:no )
5031    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5033    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5035    (
5036      cat <<\_ASBOX
5037## ------------------------------------ ##
5038## Report this to bug-autoconf@gnu.org. ##
5039## ------------------------------------ ##
5040_ASBOX
5041    ) |
5042      sed "s/^/$as_me: WARNING:     /" >&2
5043    ;;
5044  no:yes )
5045    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5047    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5051    (
5052      cat <<\_ASBOX
5053## ------------------------------------ ##
5054## Report this to bug-autoconf@gnu.org. ##
5055## ------------------------------------ ##
5056_ASBOX
5057    ) |
5058      sed "s/^/$as_me: WARNING:     /" >&2
5059    ;;
5060esac
5061echo "$as_me:$LINENO: checking for $ac_header" >&5
5062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5063if eval "test \"\${$as_ac_Header+set}\" = set"; then
5064  echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066  eval "$as_ac_Header=$ac_header_preproc"
5067fi
5068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5070
5071fi
5072if test `eval echo '${'$as_ac_Header'}'` = yes; then
5073  cat >>confdefs.h <<_ACEOF
5074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5075_ACEOF
5076
5077else
5078   { { echo "$as_me:$LINENO: error: \`sys/times.h' or \`sys/param.h' not found.  Try
5079                  \`configure --disable-timing'" >&5
5080echo "$as_me: error: \`sys/times.h' or \`sys/param.h' not found.  Try
5081                  \`configure --disable-timing'" >&2;}
5082   { (exit 1); exit 1; }; }
5083fi
5084
5085done
5086
5087fi
5088
5089
5090for ac_header in omalloc.h
5091do
5092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5093if eval "test \"\${$as_ac_Header+set}\" = set"; then
5094  echo "$as_me:$LINENO: checking for $ac_header" >&5
5095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5096if eval "test \"\${$as_ac_Header+set}\" = set"; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098fi
5099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5101else
5102  # Is the header compilable?
5103echo "$as_me:$LINENO: checking $ac_header usability" >&5
5104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5105cat >conftest.$ac_ext <<_ACEOF
5106#line $LINENO "configure"
5107/* confdefs.h.  */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h.  */
5112$ac_includes_default
5113#include <$ac_header>
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117  (eval $ac_compile) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); } &&
5121         { ac_try='test -s conftest.$ac_objext'
5122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123  (eval $ac_try) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }; }; then
5127  ac_header_compiler=yes
5128else
5129  echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
5132ac_header_compiler=no
5133fi
5134rm -f conftest.$ac_objext conftest.$ac_ext
5135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5136echo "${ECHO_T}$ac_header_compiler" >&6
5137
5138# Is the header present?
5139echo "$as_me:$LINENO: checking $ac_header presence" >&5
5140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5141cat >conftest.$ac_ext <<_ACEOF
5142#line $LINENO "configure"
5143/* confdefs.h.  */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h.  */
5148#include <$ac_header>
5149_ACEOF
5150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152  ac_status=$?
5153  grep -v '^ *+' conftest.er1 >conftest.err
5154  rm -f conftest.er1
5155  cat conftest.err >&5
5156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157  (exit $ac_status); } >/dev/null; then
5158  if test -s conftest.err; then
5159    ac_cpp_err=$ac_cxx_preproc_warn_flag
5160  else
5161    ac_cpp_err=
5162  fi
5163else
5164  ac_cpp_err=yes
5165fi
5166if test -z "$ac_cpp_err"; then
5167  ac_header_preproc=yes
5168else
5169  echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
5172  ac_header_preproc=no
5173fi
5174rm -f conftest.err conftest.$ac_ext
5175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5176echo "${ECHO_T}$ac_header_preproc" >&6
5177
5178# So?  What about this header?
5179case $ac_header_compiler:$ac_header_preproc in
5180  yes:no )
5181    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5183    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185    (
5186      cat <<\_ASBOX
5187## ------------------------------------ ##
5188## Report this to bug-autoconf@gnu.org. ##
5189## ------------------------------------ ##
5190_ASBOX
5191    ) |
5192      sed "s/^/$as_me: WARNING:     /" >&2
5193    ;;
5194  no:yes )
5195    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5197    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5199    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5201    (
5202      cat <<\_ASBOX
5203## ------------------------------------ ##
5204## Report this to bug-autoconf@gnu.org. ##
5205## ------------------------------------ ##
5206_ASBOX
5207    ) |
5208      sed "s/^/$as_me: WARNING:     /" >&2
5209    ;;
5210esac
5211echo "$as_me:$LINENO: checking for $ac_header" >&5
5212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5213if eval "test \"\${$as_ac_Header+set}\" = set"; then
5214  echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216  eval "$as_ac_Header=$ac_header_preproc"
5217fi
5218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5220
5221fi
5222if test `eval echo '${'$as_ac_Header'}'` = yes; then
5223  cat >>confdefs.h <<_ACEOF
5224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5225_ACEOF
5226
5227fi
5228
5229done
5230
5231
5232# font-lock-trick: '
5233
5234#
5235# - check for compiler characteristics.
5236#
5237
5238# use C to check compiler characteristics instead of C++.  On
5239# nextstep, checking with C++ may fail.
5240ac_ext=c
5241ac_cpp='$CPP $CPPFLAGS'
5242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245
5246
5247# cross-compiling ?!
5248#AC_C_CROSS
5249#if test "x$cross_compiling" = xyes; then
5250#  AC_MSG_WARN([you better specify a cache file to get the values for
5251#                    cross-compiling right (e.g., call \`configure
5252#                    --cache-file=yourTarget.cache').  In particular, you
5253#                    should make sure that your target machine supports
5254#                    arithmetic shift.])
5255#fi
5256
5257# font-lock-trick: '
5258
5259# arithmetic shift
5260echo "$as_me:$LINENO: checking whether your compiler does arithmetic shifts" >&5
5261echo $ECHO_N "checking whether your compiler does arithmetic shifts... $ECHO_C" >&6
5262if test "${ac_cv_shift+set}" = set; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265   LDFLAGS="-L$explicit_libdir $LDFLAGS"
5266        if test "$cross_compiling" = yes; then
5267  ac_cv_shift=yes
5268else
5269  cat >conftest.$ac_ext <<_ACEOF
5270#line $LINENO "configure"
5271/* confdefs.h.  */
5272_ACEOF
5273cat confdefs.h >>conftest.$ac_ext
5274cat >>conftest.$ac_ext <<_ACEOF
5275/* end confdefs.h.  */
5276 int main() { if (-2 >> 1 == -1) return(0); else return(1); }
5277_ACEOF
5278rm -f conftest$ac_exeext
5279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5280  (eval $ac_link) 2>&5
5281  ac_status=$?
5282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285  (eval $ac_try) 2>&5
5286  ac_status=$?
5287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288  (exit $ac_status); }; }; then
5289  ac_cv_shift=yes
5290else
5291  echo "$as_me: program exited with status $ac_status" >&5
5292echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
5295( exit $ac_status )
5296ac_cv_shift=no
5297fi
5298rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5299fi
5300fi
5301
5302if test "x$ac_cv_shift" = xyes; then
5303  echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305else
5306  echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308fi
5309
5310#
5311# - paths.
5312#
5313
5314# note that Singular has its own mechanism to search the tables,
5315# hence we do not need to mind it here
5316gftabledir='${datadir}/factory/gftables'
5317explicit_gftabledir="$explicit_datadir/factory/gftables"
5318
5319# for installation of the templates
5320templatedir='${includedir}/templates'
5321
5322#
5323# - the name of the game and the targets to create.
5324#
5325if test "x$with_Singular" = xyes; then
5326  libfactory=libsingcf.a
5327
5328  factorysrc='$(basefactorysrc) $(singfactorysrc)'
5329  factoryincl='$(basefactoryincl) $(singfactoryincl)'
5330  memmansrc=
5331  memmanincl=
5332
5333  alltargets=cf
5334  installtargets=installcf
5335  uninstalltargets=uninstallcf
5336else
5337  libfactory=libcf.a
5338
5339  factorysrc='$(basefactorysrc)'
5340  factoryincl='$(basefactoryincl)'
5341  memmansrc='$(basememmansrc)'
5342  memmanincl=
5343
5344  alltargets=cf
5345  installtargets=installcf
5346  uninstalltargets=uninstallcf
5347fi
5348
5349#
5350# - set defines and variables according to our tests.
5351#
5352
5353# CFLAGS
5354if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
5355  CFLAGS="-O2 -fomit-frame-pointer"
5356fi
5357
5358# CXXFLAGS
5359if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
5360  CXXFLAGS="-O2 -fomit-frame-pointer"
5361
5362
5363
5364ac_ext=cc
5365ac_cpp='$CXXCPP $CPPFLAGS'
5366ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369
5370# check whether CXX accepts -fno-rtti
5371echo "$as_me:$LINENO: checking whether gcc accepts -fno-rtti" >&5
5372echo $ECHO_N "checking whether gcc accepts -fno-rtti... $ECHO_C" >&6
5373tmp_flags=${CXXFLAGS}
5374CXXFLAGS="${CXXFLAGS} -fno-rtti"
5375if test "${ac_cv_cxx_have_rtti+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  cat >conftest.$ac_ext <<_ACEOF
5379#line $LINENO "configure"
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385
5386int
5387main ()
5388{
5389
5390  ;
5391  return 0;
5392}
5393_ACEOF
5394rm -f conftest.$ac_objext
5395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396  (eval $ac_compile) 2>&5
5397  ac_status=$?
5398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399  (exit $ac_status); } &&
5400         { ac_try='test -s conftest.$ac_objext'
5401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402  (eval $ac_try) 2>&5
5403  ac_status=$?
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); }; }; then
5406  ac_cv_cxx_have_rtti=yes
5407else
5408  echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411ac_cv_cxx_have_rtti=no
5412fi
5413rm -f conftest.$ac_objext conftest.$ac_ext
5414
5415fi
5416
5417echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5
5418echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6
5419CXXFLAGS=$tmp_flags
5420if test "${ac_cv_cxx_have_rtti}" = yes; then
5421CXXFLAGS="$CXXFLAGS -fno-rtti"
5422fi
5423
5424echo "$as_me:$LINENO: checking whether gcc accepts -fno-exceptions" >&5
5425echo $ECHO_N "checking whether gcc accepts -fno-exceptions... $ECHO_C" >&6
5426tmp_flags=${CXXFLAGS}
5427CXXFLAGS="${CXXFLAGS} -fno-exceptions"
5428if test "${ac_cv_cxx_have_exceptions+set}" = set; then
5429  echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431  cat >conftest.$ac_ext <<_ACEOF
5432#line $LINENO "configure"
5433/* confdefs.h.  */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
5437/* end confdefs.h.  */
5438
5439int
5440main ()
5441{
5442
5443  ;
5444  return 0;
5445}
5446_ACEOF
5447rm -f conftest.$ac_objext conftest$ac_exeext
5448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5449  (eval $ac_link) 2>&5
5450  ac_status=$?
5451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452  (exit $ac_status); } &&
5453         { ac_try='test -s conftest$ac_exeext'
5454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455  (eval $ac_try) 2>&5
5456  ac_status=$?
5457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458  (exit $ac_status); }; }; then
5459  ac_cv_cxx_have_exceptions=yes
5460else
5461  echo "$as_me: failed program was:" >&5
5462sed 's/^/| /' conftest.$ac_ext >&5
5463
5464ac_cv_cxx_have_exceptions=no
5465fi
5466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5467
5468fi
5469
5470echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5
5471echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6
5472CXXFLAGS=$tmp_flags
5473if test "${ac_cv_cxx_have_exceptions}" = yes; then
5474CXXFLAGS="$CXXFLAGS -fno-exceptions"
5475fi
5476ac_ext=c
5477ac_cpp='$CPP $CPPFLAGS'
5478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483fi
5484
5485# ARFLAGS
5486test "${ARFLAGS+set}" = set || ARFLAGS=cr
5487
5488# M4FLAGS
5489test "${M4FLAGS+set}" = set || M4FLAGS=
5490
5491# Singular
5492if test "x$with_Singular" = xyes; then
5493  cat >>confdefs.h <<\_ACEOF
5494#define SINGULAR 1
5495_ACEOF
5496
5497fi
5498
5499# NTL
5500if test "x$with_NTL" = xyes; then
5501  cat >>confdefs.h <<\_ACEOF
5502#define HAVE_NTL 1
5503_ACEOF
5504
5505fi
5506
5507# arithmetic shift
5508if test "x$ac_cv_shift" = xyes; then
5509  cat >>confdefs.h <<\_ACEOF
5510#define HAS_ARITHMETIC_SHIFT 1
5511_ACEOF
5512
5513fi
5514
5515# gmp-stuff.  we must not set these flags before the tests
5516# are finished!
5517if test "x$gmp_in_installation" = xyes; then
5518  CPPFLAGS="-I\$(includedir) $CPPFLAGS"
5519  if test "x$with_Singular" = xyes; then
5520    LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS"
5521  fi
5522fi
5523
5524echo "$as_me:$LINENO: checking whether to use omalloc" >&5
5525echo $ECHO_N "checking whether to use omalloc... $ECHO_C" >&6
5526
5527if test "$with_omalloc" = yes; then
5528  if test "$ac_cv_header_omalloc_h" != yes; then
5529    if test "$enable_omalloc" = yes; then
5530       warn_omalloc=yes
5531    else
5532       with_omalloc=no
5533    fi
5534  fi
5535else
5536  if test "$with_omalloc" != no; then
5537    if test "$enable_omalloc" = yes; then
5538      if test "$ac_cv_header_omalloc_h" != yes; then
5539        warn_omalloc=yes
5540      fi
5541      with_omalloc=yes
5542    else
5543      with_omalloc=no
5544    fi
5545  fi
5546fi
5547if test "$with_omalloc" = yes; then
5548  cat >>confdefs.h <<\_ACEOF
5549#define HAVE_OMALLOC 1
5550_ACEOF
5551
5552  with_memman=no
5553fi
5554echo "$as_me:$LINENO: result: $with_omalloc" >&5
5555echo "${ECHO_T}$with_omalloc" >&6
5556if test "$warn_omalloc" = yes; then
5557  { echo "$as_me:$LINENO: WARNING: did not find omalloc.h -- install before compiling" >&5
5558echo "$as_me: WARNING: did not find omalloc.h -- install before compiling" >&2;}
5559fi
5560
5561
5562# memory manager
5563if test "x$with_memman" != xno; then
5564  alltargets="$alltargets mem"
5565  installtargets="$installtargets installmem"
5566  uninstalltargets="$uninstalltargets uninstallmem"
5567  cat >>confdefs.h <<\_ACEOF
5568#define USE_MEMUTIL 1
5569_ACEOF
5570
5571
5572  if test "x$with_memman" != xnew; then
5573    memmansrc="$memmansrc \$(oldmemmansrc)"
5574    memmanincl='$(oldmemmanincl)'
5575    cat >>confdefs.h <<\_ACEOF
5576#define USE_OLD_MEMMAN 1
5577_ACEOF
5578
5579  else
5580    memmansrc="$memmansrc \$(newmemmansrc)"
5581    memmanincl='$(newmemmanincl)'
5582
5583    if test "x$enable_memdebug" = xfull; then
5584      cat >>confdefs.h <<\_ACEOF
5585#define MDEBUG 1
5586_ACEOF
5587
5588    elif test "x$enable_memdebug" != xno; then
5589      cat >>confdefs.h <<\_ACEOF
5590#define MDEBUG 0
5591_ACEOF
5592
5593    fi
5594  fi
5595fi
5596
5597# "configurable inline methods"
5598if test "x$enable_cf_inline" != xno; then
5599  cat >>confdefs.h <<\_ACEOF
5600#define CF_USE_INLINE 1
5601_ACEOF
5602
5603fi
5604
5605# iostream
5606if test "x$enable_streamio" = xno; then
5607  cat >>confdefs.h <<\_ACEOF
5608#define NOSTREAMIO 1
5609_ACEOF
5610
5611else
5612  factorysrc="$factorysrc \$(useiofactorysrc)"
5613  factoryincl="$factoryincl \$(useiofactoryincl)"
5614fi
5615
5616# assertions
5617if test "x$enable_assertions" = xno; then
5618  cat >>confdefs.h <<\_ACEOF
5619#define NOASSERT 1
5620_ACEOF
5621
5622fi
5623
5624# timing
5625if test "x$enable_timing" != xno; then
5626  cat >>confdefs.h <<\_ACEOF
5627#define TIMING 1
5628_ACEOF
5629
5630fi
5631
5632# debugoutput
5633if test "x$enable_debugoutput" != xno; then
5634  cat >>confdefs.h <<\_ACEOF
5635#define DEBUGOUTPUT 1
5636_ACEOF
5637
5638fi
5639
5640#
5641# - complete and substitute variables, defines.
5642#
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663cat >>confdefs.h <<_ACEOF
5664#define FACTORYVERSION "$factory_version"
5665_ACEOF
5666
5667cat >>confdefs.h <<_ACEOF
5668#define FACTORYCONFIGURATION "$factory_configuration"
5669_ACEOF
5670
5671cat >>confdefs.h <<_ACEOF
5672#define GFTABLEDIR "$explicit_gftabledir"
5673_ACEOF
5674
5675
5676                    ac_config_files="$ac_config_files GNUmakefile ftest/GNUmakefile"
5677cat >confcache <<\_ACEOF
5678# This file is a shell script that caches the results of configure
5679# tests run on this system so they can be shared between configure
5680# scripts and configure runs, see configure's option --config-cache.
5681# It is not useful on other systems.  If it contains results you don't
5682# want to keep, you may remove or edit it.
5683#
5684# config.status only pays attention to the cache file if you give it
5685# the --recheck option to rerun configure.
5686#
5687# `ac_cv_env_foo' variables (set or unset) will be overridden when
5688# loading this file, other *unset* `ac_cv_foo' will be assigned the
5689# following values.
5690
5691_ACEOF
5692
5693# The following way of writing the cache mishandles newlines in values,
5694# but we know of no workaround that is simple, portable, and efficient.
5695# So, don't put newlines in cache variables' values.
5696# Ultrix sh set writes to stderr and can't be redirected directly,
5697# and sets the high bit in the cache file unless we assign to the vars.
5698{
5699  (set) 2>&1 |
5700    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5701    *ac_space=\ *)
5702      # `set' does not quote correctly, so add quotes (double-quote
5703      # substitution turns \\\\ into \\, and sed turns \\ into \).
5704      sed -n \
5705        "s/'/'\\\\''/g;
5706          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5707      ;;
5708    *)
5709      # `set' quotes correctly as required by POSIX, so do not add quotes.
5710      sed -n \
5711        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5712      ;;
5713    esac;
5714} |
5715  sed '
5716     t clear
5717     : clear
5718     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5719     t end
5720     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5721     : end' >>confcache
5722if diff $cache_file confcache >/dev/null 2>&1; then :; else
5723  if test -w $cache_file; then
5724    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5725    cat confcache >$cache_file
5726  else
5727    echo "not updating unwritable cache $cache_file"
5728  fi
5729fi
5730rm -f confcache
5731
5732test "x$prefix" = xNONE && prefix=$ac_default_prefix
5733# Let make expand exec_prefix.
5734test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5735
5736# VPATH may cause trouble with some makes, so we remove $(srcdir),
5737# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5738# trailing colons and then remove the whole line if VPATH becomes empty
5739# (actually we leave an empty line to preserve line numbers).
5740if test "x$srcdir" = x.; then
5741  ac_vpsub='/^[         ]*VPATH[        ]*=/{
5742s/:*\$(srcdir):*/:/;
5743s/:*\${srcdir}:*/:/;
5744s/:*@srcdir@:*/:/;
5745s/^\([^=]*=[    ]*\):*/\1/;
5746s/:*$//;
5747s/^[^=]*=[      ]*$//;
5748}'
5749fi
5750
5751DEFS=-DHAVE_CONFIG_H
5752
5753ac_libobjs=
5754ac_ltlibobjs=
5755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5756  # 1. Remove the extension, and $U if already installed.
5757  ac_i=`echo "$ac_i" |
5758         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5759  # 2. Add them.
5760  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5761  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5762done
5763LIBOBJS=$ac_libobjs
5764
5765LTLIBOBJS=$ac_ltlibobjs
5766
5767
5768
5769: ${CONFIG_STATUS=./config.status}
5770ac_clean_files_save=$ac_clean_files
5771ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5772{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5773echo "$as_me: creating $CONFIG_STATUS" >&6;}
5774cat >$CONFIG_STATUS <<_ACEOF
5775#! $SHELL
5776# Generated by $as_me.
5777# Run this file to recreate the current configuration.
5778# Compiler output produced by configure, useful for debugging
5779# configure, is in config.log if it exists.
5780
5781debug=false
5782ac_cs_recheck=false
5783ac_cs_silent=false
5784SHELL=\${CONFIG_SHELL-$SHELL}
5785_ACEOF
5786
5787cat >>$CONFIG_STATUS <<\_ACEOF
5788## --------------------- ##
5789## M4sh Initialization.  ##
5790## --------------------- ##
5791
5792# Be Bourne compatible
5793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5794  emulate sh
5795  NULLCMD=:
5796  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5797  # is contrary to our usage.  Disable this feature.
5798  alias -g '${1+"$@"}'='"$@"'
5799elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5800  set -o posix
5801fi
5802
5803# Support unset when possible.
5804if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5805  as_unset=unset
5806else
5807  as_unset=false
5808fi
5809
5810
5811# Work around bugs in pre-3.0 UWIN ksh.
5812$as_unset ENV MAIL MAILPATH
5813PS1='$ '
5814PS2='> '
5815PS4='+ '
5816
5817# NLS nuisances.
5818for as_var in \
5819  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5820  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5821  LC_TELEPHONE LC_TIME
5822do
5823  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5824    eval $as_var=C; export $as_var
5825  else
5826    $as_unset $as_var
5827  fi
5828done
5829
5830# Required to use basename.
5831if expr a : '\(a\)' >/dev/null 2>&1; then
5832  as_expr=expr
5833else
5834  as_expr=false
5835fi
5836
5837if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5838  as_basename=basename
5839else
5840  as_basename=false
5841fi
5842
5843
5844# Name of the executable.
5845as_me=`$as_basename "$0" ||
5846$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5847         X"$0" : 'X\(//\)$' \| \
5848         X"$0" : 'X\(/\)$' \| \
5849         .     : '\(.\)' 2>/dev/null ||
5850echo X/"$0" |
5851    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5852          /^X\/\(\/\/\)$/{ s//\1/; q; }
5853          /^X\/\(\/\).*/{ s//\1/; q; }
5854          s/.*/./; q'`
5855
5856
5857# PATH needs CR, and LINENO needs CR and PATH.
5858# Avoid depending upon Character Ranges.
5859as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5860as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5861as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5862as_cr_digits='0123456789'
5863as_cr_alnum=$as_cr_Letters$as_cr_digits
5864
5865# The user is always right.
5866if test "${PATH_SEPARATOR+set}" != set; then
5867  echo "#! /bin/sh" >conf$$.sh
5868  echo  "exit 0"   >>conf$$.sh
5869  chmod +x conf$$.sh
5870  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5871    PATH_SEPARATOR=';'
5872  else
5873    PATH_SEPARATOR=:
5874  fi
5875  rm -f conf$$.sh
5876fi
5877
5878
5879  as_lineno_1=$LINENO
5880  as_lineno_2=$LINENO
5881  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5882  test "x$as_lineno_1" != "x$as_lineno_2" &&
5883  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5884  # Find who we are.  Look in the path if we contain no path at all
5885  # relative or not.
5886  case $0 in
5887    *[\\/]* ) as_myself=$0 ;;
5888    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5894done
5895
5896       ;;
5897  esac
5898  # We did not find ourselves, most probably we were run as `sh COMMAND'
5899  # in which case we are not to be found in the path.
5900  if test "x$as_myself" = x; then
5901    as_myself=$0
5902  fi
5903  if test ! -f "$as_myself"; then
5904    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5905echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5906   { (exit 1); exit 1; }; }
5907  fi
5908  case $CONFIG_SHELL in
5909  '')
5910    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915  for as_base in sh bash ksh sh5; do
5916         case $as_dir in
5917         /*)
5918           if ("$as_dir/$as_base" -c '
5919  as_lineno_1=$LINENO
5920  as_lineno_2=$LINENO
5921  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5922  test "x$as_lineno_1" != "x$as_lineno_2" &&
5923  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5924             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5925             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5926             CONFIG_SHELL=$as_dir/$as_base
5927             export CONFIG_SHELL
5928             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5929           fi;;
5930         esac
5931       done
5932done
5933;;
5934  esac
5935
5936  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5937  # uniformly replaced by the line number.  The first 'sed' inserts a
5938  # line-number line before each line; the second 'sed' does the real
5939  # work.  The second script uses 'N' to pair each line-number line
5940  # with the numbered line, and appends trailing '-' during
5941  # substitution so that $LINENO is not a special case at line end.
5942  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5943  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5944  sed '=' <$as_myself |
5945    sed '
5946      N
5947      s,$,-,
5948      : loop
5949      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5950      t loop
5951      s,-$,,
5952      s,^['$as_cr_digits']*\n,,
5953    ' >$as_me.lineno &&
5954  chmod +x $as_me.lineno ||
5955    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5956echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5957   { (exit 1); exit 1; }; }
5958
5959  # Don't try to exec as it changes $[0], causing all sort of problems
5960  # (the dirname of $[0] is not the place where we might find the
5961  # original and so on.  Autoconf is especially sensible to this).
5962  . ./$as_me.lineno
5963  # Exit status is that of the last command.
5964  exit
5965}
5966
5967
5968case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5969  *c*,-n*) ECHO_N= ECHO_C='
5970' ECHO_T='      ' ;;
5971  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5972  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5973esac
5974
5975if expr a : '\(a\)' >/dev/null 2>&1; then
5976  as_expr=expr
5977else
5978  as_expr=false
5979fi
5980
5981rm -f conf$$ conf$$.exe conf$$.file
5982echo >conf$$.file
5983if ln -s conf$$.file conf$$ 2>/dev/null; then
5984  # We could just check for DJGPP; but this test a) works b) is more generic
5985  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5986  if test -f conf$$.exe; then
5987    # Don't use ln at all; we don't have any links
5988    as_ln_s='cp -p'
5989  else
5990    as_ln_s='ln -s'
5991  fi
5992elif ln conf$$.file conf$$ 2>/dev/null; then
5993  as_ln_s=ln
5994else
5995  as_ln_s='cp -p'
5996fi
5997rm -f conf$$ conf$$.exe conf$$.file
5998
5999if mkdir -p . 2>/dev/null; then
6000  as_mkdir_p=:
6001else
6002  as_mkdir_p=false
6003fi
6004
6005as_executable_p="test -f"
6006
6007# Sed expression to map a string onto a valid CPP name.
6008as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6009
6010# Sed expression to map a string onto a valid variable name.
6011as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6012
6013
6014# IFS
6015# We need space, tab and new line, in precisely that order.
6016as_nl='
6017'
6018IFS="   $as_nl"
6019
6020# CDPATH.
6021$as_unset CDPATH
6022
6023exec 6>&1
6024
6025# Open the log real soon, to keep \$[0] and so on meaningful, and to
6026# report actual input values of CONFIG_FILES etc. instead of their
6027# values after options handling.  Logging --version etc. is OK.
6028exec 5>>config.log
6029{
6030  echo
6031  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6032## Running $as_me. ##
6033_ASBOX
6034} >&5
6035cat >&5 <<_CSEOF
6036
6037This file was extended by $as_me, which was
6038generated by GNU Autoconf 2.57.  Invocation command line was
6039
6040  CONFIG_FILES    = $CONFIG_FILES
6041  CONFIG_HEADERS  = $CONFIG_HEADERS
6042  CONFIG_LINKS    = $CONFIG_LINKS
6043  CONFIG_COMMANDS = $CONFIG_COMMANDS
6044  $ $0 $@
6045
6046_CSEOF
6047echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6048echo >&5
6049_ACEOF
6050
6051# Files that config.status was made for.
6052if test -n "$ac_config_files"; then
6053  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6054fi
6055
6056if test -n "$ac_config_headers"; then
6057  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6058fi
6059
6060if test -n "$ac_config_links"; then
6061  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6062fi
6063
6064if test -n "$ac_config_commands"; then
6065  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6066fi
6067
6068cat >>$CONFIG_STATUS <<\_ACEOF
6069
6070ac_cs_usage="\
6071\`$as_me' instantiates files from templates according to the
6072current configuration.
6073
6074Usage: $0 [OPTIONS] [FILE]...
6075
6076  -h, --help       print this help, then exit
6077  -V, --version    print version number, then exit
6078  -q, --quiet      do not print progress messages
6079  -d, --debug      don't remove temporary files
6080      --recheck    update $as_me by reconfiguring in the same conditions
6081  --file=FILE[:TEMPLATE]
6082                   instantiate the configuration file FILE
6083  --header=FILE[:TEMPLATE]
6084                   instantiate the configuration header FILE
6085
6086Configuration files:
6087$config_files
6088
6089Configuration headers:
6090$config_headers
6091
6092Report bugs to <bug-autoconf@gnu.org>."
6093_ACEOF
6094
6095cat >>$CONFIG_STATUS <<_ACEOF
6096ac_cs_version="\\
6097config.status
6098configured by $0, generated by GNU Autoconf 2.57,
6099  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6100
6101Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6102Free Software Foundation, Inc.
6103This config.status script is free software; the Free Software Foundation
6104gives unlimited permission to copy, distribute and modify it."
6105srcdir=$srcdir
6106INSTALL="$INSTALL"
6107_ACEOF
6108
6109cat >>$CONFIG_STATUS <<\_ACEOF
6110# If no file are specified by the user, then we need to provide default
6111# value.  By we need to know if files were specified by the user.
6112ac_need_defaults=:
6113while test $# != 0
6114do
6115  case $1 in
6116  --*=*)
6117    ac_option=`expr "x$1" : 'x\([^=]*\)='`
6118    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6119    ac_shift=:
6120    ;;
6121  -*)
6122    ac_option=$1
6123    ac_optarg=$2
6124    ac_shift=shift
6125    ;;
6126  *) # This is not an option, so the user has probably given explicit
6127     # arguments.
6128     ac_option=$1
6129     ac_need_defaults=false;;
6130  esac
6131
6132  case $ac_option in
6133  # Handling of the options.
6134_ACEOF
6135cat >>$CONFIG_STATUS <<\_ACEOF
6136  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6137    ac_cs_recheck=: ;;
6138  --version | --vers* | -V )
6139    echo "$ac_cs_version"; exit 0 ;;
6140  --he | --h)
6141    # Conflict between --help and --header
6142    { { echo "$as_me:$LINENO: error: ambiguous option: $1
6143Try \`$0 --help' for more information." >&5
6144echo "$as_me: error: ambiguous option: $1
6145Try \`$0 --help' for more information." >&2;}
6146   { (exit 1); exit 1; }; };;
6147  --help | --hel | -h )
6148    echo "$ac_cs_usage"; exit 0 ;;
6149  --debug | --d* | -d )
6150    debug=: ;;
6151  --file | --fil | --fi | --f )
6152    $ac_shift
6153    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6154    ac_need_defaults=false;;
6155  --header | --heade | --head | --hea )
6156    $ac_shift
6157    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6158    ac_need_defaults=false;;
6159  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6160  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6161    ac_cs_silent=: ;;
6162
6163  # This is an error.
6164  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6165Try \`$0 --help' for more information." >&5
6166echo "$as_me: error: unrecognized option: $1
6167Try \`$0 --help' for more information." >&2;}
6168   { (exit 1); exit 1; }; } ;;
6169
6170  *) ac_config_targets="$ac_config_targets $1" ;;
6171
6172  esac
6173  shift
6174done
6175
6176ac_configure_extra_args=
6177
6178if $ac_cs_silent; then
6179  exec 6>/dev/null
6180  ac_configure_extra_args="$ac_configure_extra_args --silent"
6181fi
6182
6183_ACEOF
6184cat >>$CONFIG_STATUS <<_ACEOF
6185if \$ac_cs_recheck; then
6186  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6187  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6188fi
6189
6190_ACEOF
6191
6192
6193
6194
6195
6196cat >>$CONFIG_STATUS <<\_ACEOF
6197for ac_config_target in $ac_config_targets
6198do
6199  case "$ac_config_target" in
6200  # Handling of arguments.
6201  "GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
6202  "ftest/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES ftest/GNUmakefile" ;;
6203  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6204  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6205echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6206   { (exit 1); exit 1; }; };;
6207  esac
6208done
6209
6210# If the user did not use the arguments to specify the items to instantiate,
6211# then the envvar interface is used.  Set only those that are not.
6212# We use the long form for the default assignment because of an extremely
6213# bizarre bug on SunOS 4.1.3.
6214if $ac_need_defaults; then
6215  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6216  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6217fi
6218
6219# Have a temporary directory for convenience.  Make it in the build tree
6220# simply because there is no reason to put it here, and in addition,
6221# creating and moving files from /tmp can sometimes cause problems.
6222# Create a temporary directory, and hook for its removal unless debugging.
6223$debug ||
6224{
6225  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6226  trap '{ (exit 1); exit 1; }' 1 2 13 15
6227}
6228
6229# Create a (secure) tmp directory for tmp files.
6230
6231{
6232  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6233  test -n "$tmp" && test -d "$tmp"
6234}  ||
6235{
6236  tmp=./confstat$$-$RANDOM
6237  (umask 077 && mkdir $tmp)
6238} ||
6239{
6240   echo "$me: cannot create a temporary directory in ." >&2
6241   { (exit 1); exit 1; }
6242}
6243
6244_ACEOF
6245
6246cat >>$CONFIG_STATUS <<_ACEOF
6247
6248#
6249# CONFIG_FILES section.
6250#
6251
6252# No need to generate the scripts if there are no CONFIG_FILES.
6253# This happens for instance when ./config.status config.h
6254if test -n "\$CONFIG_FILES"; then
6255  # Protect against being on the right side of a sed subst in config.status.
6256  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6257   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6258s,@SHELL@,$SHELL,;t t
6259s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6260s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6261s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6262s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6263s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6264s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6265s,@exec_prefix@,$exec_prefix,;t t
6266s,@prefix@,$prefix,;t t
6267s,@program_transform_name@,$program_transform_name,;t t
6268s,@bindir@,$bindir,;t t
6269s,@sbindir@,$sbindir,;t t
6270s,@libexecdir@,$libexecdir,;t t
6271s,@datadir@,$datadir,;t t
6272s,@sysconfdir@,$sysconfdir,;t t
6273s,@sharedstatedir@,$sharedstatedir,;t t
6274s,@localstatedir@,$localstatedir,;t t
6275s,@libdir@,$libdir,;t t
6276s,@includedir@,$includedir,;t t
6277s,@oldincludedir@,$oldincludedir,;t t
6278s,@infodir@,$infodir,;t t
6279s,@mandir@,$mandir,;t t
6280s,@build_alias@,$build_alias,;t t
6281s,@host_alias@,$host_alias,;t t
6282s,@target_alias@,$target_alias,;t t
6283s,@DEFS@,$DEFS,;t t
6284s,@ECHO_C@,$ECHO_C,;t t
6285s,@ECHO_N@,$ECHO_N,;t t
6286s,@ECHO_T@,$ECHO_T,;t t
6287s,@LIBS@,$LIBS,;t t
6288s,@CC@,$CC,;t t
6289s,@CFLAGS@,$CFLAGS,;t t
6290s,@LDFLAGS@,$LDFLAGS,;t t
6291s,@CPPFLAGS@,$CPPFLAGS,;t t
6292s,@ac_ct_CC@,$ac_ct_CC,;t t
6293s,@EXEEXT@,$EXEEXT,;t t
6294s,@OBJEXT@,$OBJEXT,;t t
6295s,@CXX@,$CXX,;t t
6296s,@CXXFLAGS@,$CXXFLAGS,;t t
6297s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6298s,@CPP@,$CPP,;t t
6299s,@CXXCPP@,$CXXCPP,;t t
6300s,@LN_S@,$LN_S,;t t
6301s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6302s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6303s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6304s,@RANLIB@,$RANLIB,;t t
6305s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
6306s,@SET_MAKE@,$SET_MAKE,;t t
6307s,@AR@,$AR,;t t
6308s,@M4@,$M4,;t t
6309s,@BISON@,$BISON,;t t
6310s,@FACTORY_MKINSTALLDIRS@,$FACTORY_MKINSTALLDIRS,;t t
6311s,@FACTORY_MAKEHEADER@,$FACTORY_MAKEHEADER,;t t
6312s,@EGREP@,$EGREP,;t t
6313s,@gftabledir@,$gftabledir,;t t
6314s,@templatedir@,$templatedir,;t t
6315s,@factory_version@,$factory_version,;t t
6316s,@libfactory@,$libfactory,;t t
6317s,@ARFLAGS@,$ARFLAGS,;t t
6318s,@M4FLAGS@,$M4FLAGS,;t t
6319s,@MAKEHEADERFLAGS@,$MAKEHEADERFLAGS,;t t
6320s,@factorysrc@,$factorysrc,;t t
6321s,@factoryincl@,$factoryincl,;t t
6322s,@memmansrc@,$memmansrc,;t t
6323s,@memmanincl@,$memmanincl,;t t
6324s,@alltargets@,$alltargets,;t t
6325s,@installtargets@,$installtargets,;t t
6326s,@uninstalltargets@,$uninstalltargets,;t t
6327s,@LIBOBJS@,$LIBOBJS,;t t
6328s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6329CEOF
6330
6331_ACEOF
6332
6333  cat >>$CONFIG_STATUS <<\_ACEOF
6334  # Split the substitutions into bite-sized pieces for seds with
6335  # small command number limits, like on Digital OSF/1 and HP-UX.
6336  ac_max_sed_lines=48
6337  ac_sed_frag=1 # Number of current file.
6338  ac_beg=1 # First line for current file.
6339  ac_end=$ac_max_sed_lines # Line after last line for current file.
6340  ac_more_lines=:
6341  ac_sed_cmds=
6342  while $ac_more_lines; do
6343    if test $ac_beg -gt 1; then
6344      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6345    else
6346      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6347    fi
6348    if test ! -s $tmp/subs.frag; then
6349      ac_more_lines=false
6350    else
6351      # The purpose of the label and of the branching condition is to
6352      # speed up the sed processing (if there are no `@' at all, there
6353      # is no need to browse any of the substitutions).
6354      # These are the two extra sed commands mentioned above.
6355      (echo ':t
6356  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6357      if test -z "$ac_sed_cmds"; then
6358        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6359      else
6360        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6361      fi
6362      ac_sed_frag=`expr $ac_sed_frag + 1`
6363      ac_beg=$ac_end
6364      ac_end=`expr $ac_end + $ac_max_sed_lines`
6365    fi
6366  done
6367  if test -z "$ac_sed_cmds"; then
6368    ac_sed_cmds=cat
6369  fi
6370fi # test -n "$CONFIG_FILES"
6371
6372_ACEOF
6373cat >>$CONFIG_STATUS <<\_ACEOF
6374for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6375  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6376  case $ac_file in
6377  - | *:- | *:-:* ) # input from stdin
6378        cat >$tmp/stdin
6379        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6380        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6381  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6382        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6383  * )   ac_file_in=$ac_file.in ;;
6384  esac
6385
6386  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6387  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6388$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6389         X"$ac_file" : 'X\(//\)[^/]' \| \
6390         X"$ac_file" : 'X\(//\)$' \| \
6391         X"$ac_file" : 'X\(/\)' \| \
6392         .     : '\(.\)' 2>/dev/null ||
6393echo X"$ac_file" |
6394    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6395          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6396          /^X\(\/\/\)$/{ s//\1/; q; }
6397          /^X\(\/\).*/{ s//\1/; q; }
6398          s/.*/./; q'`
6399  { if $as_mkdir_p; then
6400    mkdir -p "$ac_dir"
6401  else
6402    as_dir="$ac_dir"
6403    as_dirs=
6404    while test ! -d "$as_dir"; do
6405      as_dirs="$as_dir $as_dirs"
6406      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6407$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6408         X"$as_dir" : 'X\(//\)[^/]' \| \
6409         X"$as_dir" : 'X\(//\)$' \| \
6410         X"$as_dir" : 'X\(/\)' \| \
6411         .     : '\(.\)' 2>/dev/null ||
6412echo X"$as_dir" |
6413    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6414          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6415          /^X\(\/\/\)$/{ s//\1/; q; }
6416          /^X\(\/\).*/{ s//\1/; q; }
6417          s/.*/./; q'`
6418    done
6419    test ! -n "$as_dirs" || mkdir $as_dirs
6420  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6421echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6422   { (exit 1); exit 1; }; }; }
6423
6424  ac_builddir=.
6425
6426if test "$ac_dir" != .; then
6427  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6428  # A "../" for each directory in $ac_dir_suffix.
6429  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6430else
6431  ac_dir_suffix= ac_top_builddir=
6432fi
6433
6434case $srcdir in
6435  .)  # No --srcdir option.  We are building in place.
6436    ac_srcdir=.
6437    if test -z "$ac_top_builddir"; then
6438       ac_top_srcdir=.
6439    else
6440       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6441    fi ;;
6442  [\\/]* | ?:[\\/]* )  # Absolute path.
6443    ac_srcdir=$srcdir$ac_dir_suffix;
6444    ac_top_srcdir=$srcdir ;;
6445  *) # Relative path.
6446    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6447    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6448esac
6449# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6450# absolute.
6451ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6452ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6453ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6454ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6455
6456
6457  case $INSTALL in
6458  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6459  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6460  esac
6461
6462  if test x"$ac_file" != x-; then
6463    { echo "$as_me:$LINENO: creating $ac_file" >&5
6464echo "$as_me: creating $ac_file" >&6;}
6465    rm -f "$ac_file"
6466  fi
6467  # Let's still pretend it is `configure' which instantiates (i.e., don't
6468  # use $as_me), people would be surprised to read:
6469  #    /* config.h.  Generated by config.status.  */
6470  if test x"$ac_file" = x-; then
6471    configure_input=
6472  else
6473    configure_input="$ac_file.  "
6474  fi
6475  configure_input=$configure_input"Generated from `echo $ac_file_in |
6476                                     sed 's,.*/,,'` by configure."
6477
6478  # First look for the input files in the build tree, otherwise in the
6479  # src tree.
6480  ac_file_inputs=`IFS=:
6481    for f in $ac_file_in; do
6482      case $f in
6483      -) echo $tmp/stdin ;;
6484      [\\/$]*)
6485         # Absolute (can't be DOS-style, as IFS=:)
6486         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6487echo "$as_me: error: cannot find input file: $f" >&2;}
6488   { (exit 1); exit 1; }; }
6489         echo $f;;
6490      *) # Relative
6491         if test -f "$f"; then
6492           # Build tree
6493           echo $f
6494         elif test -f "$srcdir/$f"; then
6495           # Source tree
6496           echo $srcdir/$f
6497         else
6498           # /dev/null tree
6499           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6500echo "$as_me: error: cannot find input file: $f" >&2;}
6501   { (exit 1); exit 1; }; }
6502         fi;;
6503      esac
6504    done` || { (exit 1); exit 1; }
6505_ACEOF
6506cat >>$CONFIG_STATUS <<_ACEOF
6507  sed "$ac_vpsub
6508$extrasub
6509_ACEOF
6510cat >>$CONFIG_STATUS <<\_ACEOF
6511:t
6512/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6513s,@configure_input@,$configure_input,;t t
6514s,@srcdir@,$ac_srcdir,;t t
6515s,@abs_srcdir@,$ac_abs_srcdir,;t t
6516s,@top_srcdir@,$ac_top_srcdir,;t t
6517s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6518s,@builddir@,$ac_builddir,;t t
6519s,@abs_builddir@,$ac_abs_builddir,;t t
6520s,@top_builddir@,$ac_top_builddir,;t t
6521s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6522s,@INSTALL@,$ac_INSTALL,;t t
6523" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6524  rm -f $tmp/stdin
6525  if test x"$ac_file" != x-; then
6526    mv $tmp/out $ac_file
6527  else
6528    cat $tmp/out
6529    rm -f $tmp/out
6530  fi
6531
6532done
6533_ACEOF
6534cat >>$CONFIG_STATUS <<\_ACEOF
6535
6536#
6537# CONFIG_HEADER section.
6538#
6539
6540# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6541# NAME is the cpp macro being defined and VALUE is the value it is being given.
6542#
6543# ac_d sets the value in "#define NAME VALUE" lines.
6544ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
6545ac_dB='[        ].*$,\1#\2'
6546ac_dC=' '
6547ac_dD=',;t'
6548# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6549ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
6550ac_uB='$,\1#\2define\3'
6551ac_uC=' '
6552ac_uD=',;t'
6553
6554for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6555  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6556  case $ac_file in
6557  - | *:- | *:-:* ) # input from stdin
6558        cat >$tmp/stdin
6559        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6560        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6561  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6562        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6563  * )   ac_file_in=$ac_file.in ;;
6564  esac
6565
6566  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6567echo "$as_me: creating $ac_file" >&6;}
6568
6569  # First look for the input files in the build tree, otherwise in the
6570  # src tree.
6571  ac_file_inputs=`IFS=:
6572    for f in $ac_file_in; do
6573      case $f in
6574      -) echo $tmp/stdin ;;
6575      [\\/$]*)
6576         # Absolute (can't be DOS-style, as IFS=:)
6577         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6578echo "$as_me: error: cannot find input file: $f" >&2;}
6579   { (exit 1); exit 1; }; }
6580         echo $f;;
6581      *) # Relative
6582         if test -f "$f"; then
6583           # Build tree
6584           echo $f
6585         elif test -f "$srcdir/$f"; then
6586           # Source tree
6587           echo $srcdir/$f
6588         else
6589           # /dev/null tree
6590           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6591echo "$as_me: error: cannot find input file: $f" >&2;}
6592   { (exit 1); exit 1; }; }
6593         fi;;
6594      esac
6595    done` || { (exit 1); exit 1; }
6596  # Remove the trailing spaces.
6597  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
6598
6599_ACEOF
6600
6601# Transform confdefs.h into two sed scripts, `conftest.defines' and
6602# `conftest.undefs', that substitutes the proper values into
6603# config.h.in to produce config.h.  The first handles `#define'
6604# templates, and the second `#undef' templates.
6605# And first: Protect against being on the right side of a sed subst in
6606# config.status.  Protect against being in an unquoted here document
6607# in config.status.
6608rm -f conftest.defines conftest.undefs
6609# Using a here document instead of a string reduces the quoting nightmare.
6610# Putting comments in sed scripts is not portable.
6611#
6612# `end' is used to avoid that the second main sed command (meant for
6613# 0-ary CPP macros) applies to n-ary macro definitions.
6614# See the Autoconf documentation for `clear'.
6615cat >confdef2sed.sed <<\_ACEOF
6616s/[\\&,]/\\&/g
6617s,[\\$`],\\&,g
6618t clear
6619: clear
6620s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6621t end
6622s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6623: end
6624_ACEOF
6625# If some macros were called several times there might be several times
6626# the same #defines, which is useless.  Nevertheless, we may not want to
6627# sort them, since we want the *last* AC-DEFINE to be honored.
6628uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6629sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6630rm -f confdef2sed.sed
6631
6632# This sed command replaces #undef with comments.  This is necessary, for
6633# example, in the case of _POSIX_SOURCE, which is predefined and required
6634# on some systems where configure will not decide to define it.
6635cat >>conftest.undefs <<\_ACEOF
6636s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6637_ACEOF
6638
6639# Break up conftest.defines because some shells have a limit on the size
6640# of here documents, and old seds have small limits too (100 cmds).
6641echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6642echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6643echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6644echo '  :' >>$CONFIG_STATUS
6645rm -f conftest.tail
6646while grep . conftest.defines >/dev/null
6647do
6648  # Write a limited-size here document to $tmp/defines.sed.
6649  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6650  # Speed up: don't consider the non `#define' lines.
6651  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
6652  # Work around the forget-to-reset-the-flag bug.
6653  echo 't clr' >>$CONFIG_STATUS
6654  echo ': clr' >>$CONFIG_STATUS
6655  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6656  echo 'CEOF
6657  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6658  rm -f $tmp/in
6659  mv $tmp/out $tmp/in
6660' >>$CONFIG_STATUS
6661  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6662  rm -f conftest.defines
6663  mv conftest.tail conftest.defines
6664done
6665rm -f conftest.defines
6666echo '  fi # grep' >>$CONFIG_STATUS
6667echo >>$CONFIG_STATUS
6668
6669# Break up conftest.undefs because some shells have a limit on the size
6670# of here documents, and old seds have small limits too (100 cmds).
6671echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6672rm -f conftest.tail
6673while grep . conftest.undefs >/dev/null
6674do
6675  # Write a limited-size here document to $tmp/undefs.sed.
6676  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6677  # Speed up: don't consider the non `#undef'
6678  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
6679  # Work around the forget-to-reset-the-flag bug.
6680  echo 't clr' >>$CONFIG_STATUS
6681  echo ': clr' >>$CONFIG_STATUS
6682  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6683  echo 'CEOF
6684  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6685  rm -f $tmp/in
6686  mv $tmp/out $tmp/in
6687' >>$CONFIG_STATUS
6688  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6689  rm -f conftest.undefs
6690  mv conftest.tail conftest.undefs
6691done
6692rm -f conftest.undefs
6693
6694cat >>$CONFIG_STATUS <<\_ACEOF
6695  # Let's still pretend it is `configure' which instantiates (i.e., don't
6696  # use $as_me), people would be surprised to read:
6697  #    /* config.h.  Generated by config.status.  */
6698  if test x"$ac_file" = x-; then
6699    echo "/* Generated by configure.  */" >$tmp/config.h
6700  else
6701    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6702  fi
6703  cat $tmp/in >>$tmp/config.h
6704  rm -f $tmp/in
6705  if test x"$ac_file" != x-; then
6706    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6707      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6708echo "$as_me: $ac_file is unchanged" >&6;}
6709    else
6710      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6711$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6712         X"$ac_file" : 'X\(//\)[^/]' \| \
6713         X"$ac_file" : 'X\(//\)$' \| \
6714         X"$ac_file" : 'X\(/\)' \| \
6715         .     : '\(.\)' 2>/dev/null ||
6716echo X"$ac_file" |
6717    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6718          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6719          /^X\(\/\/\)$/{ s//\1/; q; }
6720          /^X\(\/\).*/{ s//\1/; q; }
6721          s/.*/./; q'`
6722      { if $as_mkdir_p; then
6723    mkdir -p "$ac_dir"
6724  else
6725    as_dir="$ac_dir"
6726    as_dirs=
6727    while test ! -d "$as_dir"; do
6728      as_dirs="$as_dir $as_dirs"
6729      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6730$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6731         X"$as_dir" : 'X\(//\)[^/]' \| \
6732         X"$as_dir" : 'X\(//\)$' \| \
6733         X"$as_dir" : 'X\(/\)' \| \
6734         .     : '\(.\)' 2>/dev/null ||
6735echo X"$as_dir" |
6736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6737          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6738          /^X\(\/\/\)$/{ s//\1/; q; }
6739          /^X\(\/\).*/{ s//\1/; q; }
6740          s/.*/./; q'`
6741    done
6742    test ! -n "$as_dirs" || mkdir $as_dirs
6743  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6744echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6745   { (exit 1); exit 1; }; }; }
6746
6747      rm -f $ac_file
6748      mv $tmp/config.h $ac_file
6749    fi
6750  else
6751    cat $tmp/config.h
6752    rm -f $tmp/config.h
6753  fi
6754done
6755_ACEOF
6756
6757cat >>$CONFIG_STATUS <<\_ACEOF
6758
6759{ (exit 0); exit 0; }
6760_ACEOF
6761chmod +x $CONFIG_STATUS
6762ac_clean_files=$ac_clean_files_save
6763
6764
6765# configure is writing to config.log, and then calls config.status.
6766# config.status does its own redirection, appending to config.log.
6767# Unfortunately, on DOS this fails, as config.log is still kept open
6768# by configure, so config.status won't be able to write to it; its
6769# output is simply discarded.  So we exec the FD to /dev/null,
6770# effectively closing config.log, so it can be properly (re)opened and
6771# appended to by config.status.  When coming back to configure, we
6772# need to make the FD available again.
6773if test "$no_create" != yes; then
6774  ac_cs_success=:
6775  ac_config_status_args=
6776  test "$silent" = yes &&
6777    ac_config_status_args="$ac_config_status_args --quiet"
6778  exec 5>/dev/null
6779  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6780  exec 5>>config.log
6781  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6782  # would make configure fail if this is the last instruction.
6783  $ac_cs_success || { (exit 1); exit 1; }
6784fi
6785
Note: See TracBrowser for help on using the repository browser.