source: git/factory/configure @ 9189ab6

fieker-DuValspielwiese
Last change on this file since 9189ab6 was 7a65a8, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* configure: configure.in changed git-svn-id: file:///usr/local/Singular/svn/trunk@1014 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 67.6 KB
Line 
1#! /bin/sh
2
3# From configure.in Id: configure.in
4# Guess values for system-dependent variables and create Makefiles.
5# Generated automatically using autoconf version 2.9
6# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7#
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10
11# Defaults:
12ac_help=
13ac_default_prefix=/usr/local
14# Any additions from configure.in:
15ac_help="$ac_help
16  --with-memman(=<memman>) specify Factory memory manager.
17                          <memman> is either \`old' (default), \`new', or \`no'."
18ac_help="$ac_help
19  --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>))
20                          specify where to find gmp library."
21ac_help="$ac_help
22  --with-Singular         build for use with computer algebra system Singular."
23ac_help="$ac_help
24  --disable-streamio      build Factory without stream IO"
25ac_help="$ac_help
26  --enable-memdebug=<level> switch on memory management debugging.  Meaningful
27                          with \`--with-memman=new' only.  <level> may be either
28                          \`no' (default), \`normal', or \`full'."
29ac_help="$ac_help
30  --enable-assertions     build Factory with assertions activated"
31ac_help="$ac_help
32  --enable-timing         build Factory so it will print timing information"
33ac_help="$ac_help
34  --enable-debugoutput    build Factory so it will print debugging information"
35ac_help="$ac_help
36  --enable-gmp            together with \`--with-Singular' means: installation
37                          in process, be graceful when there is no \`gmp.h'"
38
39# Initialize some variables set by options.
40# The variables have the same names as the options, with
41# dashes changed to underlines.
42build=NONE
43cache_file=./config.cache
44exec_prefix=NONE
45host=NONE
46no_create=
47nonopt=NONE
48no_recursion=
49prefix=NONE
50program_prefix=NONE
51program_suffix=NONE
52program_transform_name=s,x,x,
53silent=
54site=
55srcdir=
56target=NONE
57verbose=
58x_includes=NONE
59x_libraries=NONE
60bindir='${exec_prefix}/bin'
61sbindir='${exec_prefix}/sbin'
62libexecdir='${exec_prefix}/libexec'
63datadir='${prefix}/share'
64sysconfdir='${prefix}/etc'
65sharedstatedir='${prefix}/com'
66localstatedir='${prefix}/var'
67libdir='${exec_prefix}/lib'
68includedir='${prefix}/include'
69oldincludedir='/usr/include'
70infodir='${prefix}/info'
71mandir='${prefix}/man'
72
73# Initialize some other variables.
74subdirs=
75MFLAGS= MAKEFLAGS=
76
77ac_prev=
78for ac_option
79do
80
81  # If the previous option needs an argument, assign it.
82  if test -n "$ac_prev"; then
83    eval "$ac_prev=\$ac_option"
84    ac_prev=
85    continue
86  fi
87
88  case "$ac_option" in
89  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90  *) ac_optarg= ;;
91  esac
92
93  # Accept the important Cygnus configure options, so we can diagnose typos.
94
95  case "$ac_option" in
96
97  -bindir | --bindir | --bindi | --bind | --bin | --bi)
98    ac_prev=bindir ;;
99  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100    bindir="$ac_optarg" ;;
101
102  -build | --build | --buil | --bui | --bu)
103    ac_prev=build ;;
104  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105    build="$ac_optarg" ;;
106
107  -cache-file | --cache-file | --cache-fil | --cache-fi \
108  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109    ac_prev=cache_file ;;
110  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112    cache_file="$ac_optarg" ;;
113
114  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115    ac_prev=datadir ;;
116  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117  | --da=*)
118    datadir="$ac_optarg" ;;
119
120  -disable-* | --disable-*)
121    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122    # Reject names that are not valid shell variable names.
123    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125    fi
126    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127    eval "enable_${ac_feature}=no" ;;
128
129  -enable-* | --enable-*)
130    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131    # Reject names that are not valid shell variable names.
132    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134    fi
135    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136    case "$ac_option" in
137      *=*) ;;
138      *) ac_optarg=yes ;;
139    esac
140    eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144  | --exec | --exe | --ex)
145    ac_prev=exec_prefix ;;
146  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148  | --exec=* | --exe=* | --ex=*)
149    exec_prefix="$ac_optarg" ;;
150
151  -gas | --gas | --ga | --g)
152    # Obsolete; use --with-gas.
153    with_gas=yes ;;
154
155  -help | --help | --hel | --he)
156    # Omit some internal or obsolete options to make the list less imposing.
157    # This message is too long to be a string in the A/UX 3.1 sh.
158    cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162  --cache-file=FILE       cache test results in FILE
163  --help                  print this message
164  --no-create             do not create output files
165  --quiet, --silent       do not print \`checking...' messages
166  --version               print the version of autoconf that created configure
167Directory and file names:
168  --prefix=PREFIX         install architecture-independent files in PREFIX
169                          [$ac_default_prefix]
170  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
171                          [same as prefix]
172  --bindir=DIR            user executables in DIR [EPREFIX/bin]
173  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
174  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
175  --datadir=DIR           read-only architecture-independent data in DIR
176                          [PREFIX/share]
177  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
178  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
179                          [PREFIX/com]
180  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
181  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
182  --includedir=DIR        C header files in DIR [PREFIX/include]
183  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
184  --infodir=DIR           info documentation in DIR [PREFIX/info]
185  --mandir=DIR            man documentation in DIR [PREFIX/man]
186  --srcdir=DIR            find the sources in DIR [configure dir or ..]
187  --program-prefix=PREFIX prepend PREFIX to installed program names
188  --program-suffix=SUFFIX append SUFFIX to installed program names
189  --program-transform-name=PROGRAM
190                          run sed PROGRAM on installed program names
191EOF
192    cat << EOF
193Host type:
194  --build=BUILD           configure for building on BUILD [BUILD=HOST]
195  --host=HOST             configure for HOST [guessed]
196  --target=TARGET         configure for TARGET [TARGET=HOST]
197Features and packages:
198  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
199  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
200  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
201  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
202  --x-includes=DIR        X include files are in DIR
203  --x-libraries=DIR       X library files are in DIR
204EOF
205    if test -n "$ac_help"; then
206      echo "--enable and --with options recognized:$ac_help"
207    fi
208    exit 0 ;;
209
210  -host | --host | --hos | --ho)
211    ac_prev=host ;;
212  -host=* | --host=* | --hos=* | --ho=*)
213    host="$ac_optarg" ;;
214
215  -includedir | --includedir | --includedi | --included | --include \
216  | --includ | --inclu | --incl | --inc)
217    ac_prev=includedir ;;
218  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219  | --includ=* | --inclu=* | --incl=* | --inc=*)
220    includedir="$ac_optarg" ;;
221
222  -infodir | --infodir | --infodi | --infod | --info | --inf)
223    ac_prev=infodir ;;
224  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225    infodir="$ac_optarg" ;;
226
227  -libdir | --libdir | --libdi | --libd)
228    ac_prev=libdir ;;
229  -libdir=* | --libdir=* | --libdi=* | --libd=*)
230    libdir="$ac_optarg" ;;
231
232  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233  | --libexe | --libex | --libe)
234    ac_prev=libexecdir ;;
235  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236  | --libexe=* | --libex=* | --libe=*)
237    libexecdir="$ac_optarg" ;;
238
239  -localstatedir | --localstatedir | --localstatedi | --localstated \
240  | --localstate | --localstat | --localsta | --localst \
241  | --locals | --local | --loca | --loc | --lo)
242    ac_prev=localstatedir ;;
243  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246    localstatedir="$ac_optarg" ;;
247
248  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249    ac_prev=mandir ;;
250  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251    mandir="$ac_optarg" ;;
252
253  -nfp | --nfp | --nf)
254    # Obsolete; use --without-fp.
255    with_fp=no ;;
256
257  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258  | --no-cr | --no-c)
259    no_create=yes ;;
260
261  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263    no_recursion=yes ;;
264
265  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267  | --oldin | --oldi | --old | --ol | --o)
268    ac_prev=oldincludedir ;;
269  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272    oldincludedir="$ac_optarg" ;;
273
274  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275    ac_prev=prefix ;;
276  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277    prefix="$ac_optarg" ;;
278
279  -program-prefix | --program-prefix | --program-prefi | --program-pref \
280  | --program-pre | --program-pr | --program-p)
281    ac_prev=program_prefix ;;
282  -program-prefix=* | --program-prefix=* | --program-prefi=* \
283  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284    program_prefix="$ac_optarg" ;;
285
286  -program-suffix | --program-suffix | --program-suffi | --program-suff \
287  | --program-suf | --program-su | --program-s)
288    ac_prev=program_suffix ;;
289  -program-suffix=* | --program-suffix=* | --program-suffi=* \
290  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291    program_suffix="$ac_optarg" ;;
292
293  -program-transform-name | --program-transform-name \
294  | --program-transform-nam | --program-transform-na \
295  | --program-transform-n | --program-transform- \
296  | --program-transform | --program-transfor \
297  | --program-transfo | --program-transf \
298  | --program-trans | --program-tran \
299  | --progr-tra | --program-tr | --program-t)
300    ac_prev=program_transform_name ;;
301  -program-transform-name=* | --program-transform-name=* \
302  | --program-transform-nam=* | --program-transform-na=* \
303  | --program-transform-n=* | --program-transform-=* \
304  | --program-transform=* | --program-transfor=* \
305  | --program-transfo=* | --program-transf=* \
306  | --program-trans=* | --program-tran=* \
307  | --progr-tra=* | --program-tr=* | --program-t=*)
308    program_transform_name="$ac_optarg" ;;
309
310  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311  | -silent | --silent | --silen | --sile | --sil)
312    silent=yes ;;
313
314  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315    ac_prev=sbindir ;;
316  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317  | --sbi=* | --sb=*)
318    sbindir="$ac_optarg" ;;
319
320  -sharedstatedir | --sharedstatedir | --sharedstatedi \
321  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322  | --sharedst | --shareds | --shared | --share | --shar \
323  | --sha | --sh)
324    ac_prev=sharedstatedir ;;
325  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328  | --sha=* | --sh=*)
329    sharedstatedir="$ac_optarg" ;;
330
331  -site | --site | --sit)
332    ac_prev=site ;;
333  -site=* | --site=* | --sit=*)
334    site="$ac_optarg" ;;
335
336  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337    ac_prev=srcdir ;;
338  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339    srcdir="$ac_optarg" ;;
340
341  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342  | --syscon | --sysco | --sysc | --sys | --sy)
343    ac_prev=sysconfdir ;;
344  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346    sysconfdir="$ac_optarg" ;;
347
348  -target | --target | --targe | --targ | --tar | --ta | --t)
349    ac_prev=target ;;
350  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351    target="$ac_optarg" ;;
352
353  -v | -verbose | --verbose | --verbos | --verbo | --verb)
354    verbose=yes ;;
355
356  -version | --version | --versio | --versi | --vers)
357    echo "configure generated by autoconf version 2.9"
358    exit 0 ;;
359
360  -with-* | --with-*)
361    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362    # Reject names that are not valid shell variable names.
363    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365    fi
366    ac_package=`echo $ac_package| sed 's/-/_/g'`
367    case "$ac_option" in
368      *=*) ;;
369      *) ac_optarg=yes ;;
370    esac
371    eval "with_${ac_package}='$ac_optarg'" ;;
372
373  -without-* | --without-*)
374    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375    # Reject names that are not valid shell variable names.
376    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378    fi
379    ac_package=`echo $ac_package| sed 's/-/_/g'`
380    eval "with_${ac_package}=no" ;;
381
382  --x)
383    # Obsolete; use --with-x.
384    with_x=yes ;;
385
386  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387  | --x-incl | --x-inc | --x-in | --x-i)
388    ac_prev=x_includes ;;
389  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391    x_includes="$ac_optarg" ;;
392
393  -x-libraries | --x-libraries | --x-librarie | --x-librari \
394  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395    ac_prev=x_libraries ;;
396  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398    x_libraries="$ac_optarg" ;;
399
400  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401    ;;
402
403  *)
404    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405      echo "configure: warning: $ac_option: invalid host type" 1>&2
406    fi
407    if test "x$nonopt" != xNONE; then
408      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409    fi
410    nonopt="$ac_option"
411    ;;
412
413  esac
414done
415
416if test -n "$ac_prev"; then
417  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431  exec 6>/dev/null
432else
433  exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447  case "$ac_arg" in
448  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449  | --no-cr | --no-c) ;;
450  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455  esac
456done
457
458# NLS nuisances.
459# Only set LANG and LC_ALL to C if already set.
460# These must not be set unconditionally because not all systems understand
461# e.g. LANG=C (notably SCO).
462if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
464
465# confdefs.h avoids OS command line length limits that DEFS can exceed.
466rm -rf conftest* confdefs.h
467# AIX cpp loses on an empty file, so make sure it contains at least a newline.
468echo > confdefs.h
469
470# A filename unique to this package, relative to the directory that
471# configure is in, which we can look for to find out if srcdir is correct.
472ac_unique_file=canonicalform.cc
473
474# Find the source files, if location was not specified.
475if test -z "$srcdir"; then
476  ac_srcdir_defaulted=yes
477  # Try the directory containing this script, then its parent.
478  ac_prog=$0
479  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481  srcdir=$ac_confdir
482  if test ! -r $srcdir/$ac_unique_file; then
483    srcdir=..
484  fi
485else
486  ac_srcdir_defaulted=no
487fi
488if test ! -r $srcdir/$ac_unique_file; then
489  if test "$ac_srcdir_defaulted" = yes; then
490    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491  else
492    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493  fi
494fi
495srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497# Prefer explicitly selected file to automatically selected ones.
498if test -z "$CONFIG_SITE"; then
499  if test "x$prefix" != xNONE; then
500    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501  else
502    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503  fi
504fi
505for ac_site_file in $CONFIG_SITE; do
506  if test -r "$ac_site_file"; then
507    echo "loading site script $ac_site_file"
508    . "$ac_site_file"
509  fi
510done
511
512if test -r "$cache_file"; then
513  echo "loading cache $cache_file"
514  . $cache_file
515else
516  echo "creating cache $cache_file"
517  > $cache_file
518fi
519
520ac_ext=c
521# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522ac_cpp='$CPP $CPPFLAGS'
523ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525
526if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529    ac_n= ac_c='
530' ac_t='        '
531  else
532    ac_n=-n ac_c= ac_t=
533  fi
534else
535  ac_n= ac_c='\c' ac_t=
536fi
537
538
539
540ac_aux_dir=
541for ac_dir in bin $srcdir/bin; do
542  if test -f $ac_dir/install-sh; then
543    ac_aux_dir=$ac_dir
544    ac_install_sh="$ac_aux_dir/install-sh -c"
545    break
546  elif test -f $ac_dir/install.sh; then
547    ac_aux_dir=$ac_dir
548    ac_install_sh="$ac_aux_dir/install.sh -c"
549    break
550  fi
551done
552if test -z "$ac_aux_dir"; then
553  { echo "configure: error: can not find install-sh or install.sh in bin $srcdir/bin" 1>&2; exit 1; }
554fi
555ac_config_guess=$ac_aux_dir/config.guess
556ac_config_sub=$ac_aux_dir/config.sub
557ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
558
559
560#
561# Do not change version here!!!
562#
563factory_version="1.3b"
564factory_configuration="'$ac_configure_args' in `pwd`"
565
566#
567# - check withs and enables.
568#
569# Check whether --with-memman or --without-memman was given.
570if test "${with_memman+set}" = set; then
571  withval="$with_memman"
572  :
573else
574   if test "x$with_Singular" = xyes; then
575      with_memman=no
576    else
577      with_memman=old
578    fi
579fi
580
581
582# font-lock-trick: '
583
584# Check whether --with-gmp or --without-gmp was given.
585if test "${with_gmp+set}" = set; then
586  withval="$with_gmp"
587  :
588fi
589
590
591# Check whether --with-Singular or --without-Singular was given.
592if test "${with_Singular+set}" = set; then
593  withval="$with_Singular"
594  :
595else
596  with_Singular=no
597fi
598
599
600# Check whether --enable-streamio or --disable-streamio was given.
601if test "${enable_streamio+set}" = set; then
602  enableval="$enable_streamio"
603  :
604else
605   if test "x$with_Singular" = xyes; then
606      enable_streamio=no
607    else
608      enable_streamio=yes
609    fi
610fi
611
612
613# Check whether --enable-memdebug or --disable-memdebug was given.
614if test "${enable_memdebug+set}" = set; then
615  enableval="$enable_memdebug"
616  :
617else
618  enable_memdebug=no
619fi
620
621
622# Check whether --enable-assertions or --disable-assertions was given.
623if test "${enable_assertions+set}" = set; then
624  enableval="$enable_assertions"
625  :
626else
627  enable_assertions=no
628fi
629
630
631# Check whether --enable-timing or --disable-timing was given.
632if test "${enable_timing+set}" = set; then
633  enableval="$enable_timing"
634  :
635else
636  enable_timing=no
637fi
638
639
640# Check whether --enable-debugoutput or --disable-debugoutput was given.
641if test "${enable_debugoutput+set}" = set; then
642  enableval="$enable_debugoutput"
643  :
644else
645  enable_debugoutput=no
646fi
647
648
649# an ugly tribute to Singular
650# Check whether --enable-gmp or --disable-gmp was given.
651if test "${enable_gmp+set}" = set; then
652  enableval="$enable_gmp"
653   if test "x$with_Singular" = xyes && test "x$enable_gmp" != xno; then
654      with_gmp='$(includedir)'
655    fi
656fi
657
658
659#
660# - check the results of --with-gmp.
661#
662case "$with_gmp" in
663  yes|no|"")
664    gmp_in_installation=no ;;
665  '$(includedir)'|'${includedir}')
666    gmp_in_installation=yes ;;
667  *,*)
668    saveIFS="$IFS"; IFS="${IFS},"
669    set dummy $with_gmp
670    IFS="$saveIFS"
671    CPPFLAGS="-I$2 $CPPFLAGS"
672    LDFLAGS="-L$3 $LDFLAGS"
673    gmp_in_installation=no ;;
674  *)
675    CPPFLAGS="-I$with_gmp $CPPFLAGS"
676    LDFLAGS="-L$with_gmp/../lib $LDFLAGS"
677    gmp_in_installation=no ;;
678esac
679
680#
681# - check for CC and CXX but be careful about CFLAGS.
682#
683test "${CFLAGS+set}" = set || cflags_expl_set=no
684# Extract the first word of "gcc", so it can be a program name with args.
685set dummy gcc; ac_word=$2
686echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
687if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
688  echo $ac_n "(cached) $ac_c" 1>&6
689else
690  if test -n "$CC"; then
691  ac_cv_prog_CC="$CC" # Let the user override the test.
692else
693  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
694  for ac_dir in $PATH; do
695    test -z "$ac_dir" && ac_dir=.
696    if test -f $ac_dir/$ac_word; then
697      ac_cv_prog_CC="gcc"
698      break
699    fi
700  done
701  IFS="$ac_save_ifs"
702fi
703fi
704CC="$ac_cv_prog_CC"
705if test -n "$CC"; then
706  echo "$ac_t""$CC" 1>&6
707else
708  echo "$ac_t""no" 1>&6
709fi
710
711if test -z "$CC"; then
712  # Extract the first word of "cc", so it can be a program name with args.
713set dummy cc; ac_word=$2
714echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
715if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
716  echo $ac_n "(cached) $ac_c" 1>&6
717else
718  if test -n "$CC"; then
719  ac_cv_prog_CC="$CC" # Let the user override the test.
720else
721  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
722  ac_prog_rejected=no
723  for ac_dir in $PATH; do
724    test -z "$ac_dir" && ac_dir=.
725    if test -f $ac_dir/$ac_word; then
726      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
727        ac_prog_rejected=yes
728        continue
729      fi
730      ac_cv_prog_CC="cc"
731      break
732    fi
733  done
734  IFS="$ac_save_ifs"
735if test $ac_prog_rejected = yes; then
736  # We found a bogon in the path, so make sure we never use it.
737  set dummy $ac_cv_prog_CC
738  shift
739  if test $# -gt 0; then
740    # We chose a different compiler from the bogus one.
741    # However, it has the same basename, so the bogon will be chosen
742    # first if we set CC to just the basename; use the full file name.
743    shift
744    set dummy "$ac_dir/$ac_word" "$@"
745    shift
746    ac_cv_prog_CC="$@"
747  fi
748fi
749fi
750fi
751CC="$ac_cv_prog_CC"
752if test -n "$CC"; then
753  echo "$ac_t""$CC" 1>&6
754else
755  echo "$ac_t""no" 1>&6
756fi
757
758  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
759fi
760
761echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
762if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
763  echo $ac_n "(cached) $ac_c" 1>&6
764else
765  cat > conftest.c <<EOF
766#ifdef __GNUC__
767  yes;
768#endif
769EOF
770if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
771  ac_cv_prog_gcc=yes
772else
773  ac_cv_prog_gcc=no
774fi
775fi
776
777echo "$ac_t""$ac_cv_prog_gcc" 1>&6
778if test $ac_cv_prog_gcc = yes; then
779  GCC=yes
780  if test "${CFLAGS+set}" != set; then
781    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
782if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
783  echo $ac_n "(cached) $ac_c" 1>&6
784else
785  echo 'void f(){}' > conftest.c
786if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
787  ac_cv_prog_gcc_g=yes
788else
789  ac_cv_prog_gcc_g=no
790fi
791rm -f conftest*
792
793fi
794
795echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
796    if test $ac_cv_prog_gcc_g = yes; then
797      CFLAGS="-g -O"
798    else
799      CFLAGS="-O"
800    fi
801  fi
802else
803  GCC=
804  test "${CFLAGS+set}" = set || CFLAGS="-g"
805fi
806
807test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
808for ac_prog in $CCC c++ g++ gcc CC cxx
809do
810# Extract the first word of "$ac_prog", so it can be a program name with args.
811set dummy $ac_prog; ac_word=$2
812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
814  echo $ac_n "(cached) $ac_c" 1>&6
815else
816  if test -n "$CXX"; then
817  ac_cv_prog_CXX="$CXX" # Let the user override the test.
818else
819  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
820  for ac_dir in $PATH; do
821    test -z "$ac_dir" && ac_dir=.
822    if test -f $ac_dir/$ac_word; then
823      ac_cv_prog_CXX="$ac_prog"
824      break
825    fi
826  done
827  IFS="$ac_save_ifs"
828fi
829fi
830CXX="$ac_cv_prog_CXX"
831if test -n "$CXX"; then
832  echo "$ac_t""$CXX" 1>&6
833else
834  echo "$ac_t""no" 1>&6
835fi
836
837test -n "$CXX" && break
838done
839test -n "$CXX" || CXX="gcc"
840
841
842echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
843if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
844  echo $ac_n "(cached) $ac_c" 1>&6
845else
846  cat > conftest.C <<EOF
847#ifdef __GNUC__
848  yes;
849#endif
850EOF
851if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
852  ac_cv_prog_gxx=yes
853else
854  ac_cv_prog_gxx=no
855fi
856fi
857
858echo "$ac_t""$ac_cv_prog_gxx" 1>&6
859if test $ac_cv_prog_gxx = yes; then
860  GXX=yes
861  if test "${CXXFLAGS+set}" != set; then
862    echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
863if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
864  echo $ac_n "(cached) $ac_c" 1>&6
865else
866  echo 'void f(){}' > conftest.cc
867if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
868  ac_cv_prog_gxx_g=yes
869else
870  ac_cv_prog_gxx_g=no
871fi
872rm -f conftest*
873
874fi
875
876echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
877    if test $ac_cv_prog_gxx_g = yes; then
878      CXXFLAGS="-g -O"
879    else
880      CXXFLAGS="-O"
881    fi
882  fi
883else
884  GXX=
885  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
886fi
887
888if test "x$GCC" != xyes && test "x$GXX" != xyes; then
889  echo "configure: warning: you better use gcc to compile Factory" 1>&2
890else
891  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
892    echo "configure: warning: we will use \`-O2 -fomit-frame-pointer' as default for \`CXXFLAGS'
893                    (instead of the configure default \`-g -O')" 1>&2
894  fi
895  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
896    echo "configure: warning: we will use \`-O2 -fomit-frame-pointer' as default for \`CFLAGS'
897                    (instead of the configure default \`-g -O')" 1>&2
898  fi
899fi
900
901#
902# - check for some other programs.
903#
904echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
905# On Suns, sometimes $CPP names a directory.
906if test -n "$CPP" && test -d "$CPP"; then
907  CPP=
908fi
909if test -z "$CPP"; then
910if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
911  echo $ac_n "(cached) $ac_c" 1>&6
912else
913    # This must be in double quotes, not single quotes, because CPP may get
914  # substituted into the Makefile and "${CC-cc}" will confuse make.
915  CPP="${CC-cc} -E"
916  # On the NeXT, cc -E runs the code through the compiler's parser,
917  # not just through cpp.
918  cat > conftest.$ac_ext <<EOF
919#line 920 "configure"
920#include "confdefs.h"
921#include <assert.h>
922Syntax Error
923EOF
924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
925{ (eval echo configure:926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
926ac_err=`grep -v '^ *+' conftest.out`
927if test -z "$ac_err"; then
928  :
929else
930  echo "$ac_err" >&5
931  rm -rf conftest*
932  CPP="${CC-cc} -E -traditional-cpp"
933  cat > conftest.$ac_ext <<EOF
934#line 935 "configure"
935#include "confdefs.h"
936#include <assert.h>
937Syntax Error
938EOF
939ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
940{ (eval echo configure:941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
941ac_err=`grep -v '^ *+' conftest.out`
942if test -z "$ac_err"; then
943  :
944else
945  echo "$ac_err" >&5
946  rm -rf conftest*
947  CPP=/lib/cpp
948fi
949rm -f conftest*
950fi
951rm -f conftest*
952  ac_cv_prog_CPP="$CPP"
953fi
954  CPP="$ac_cv_prog_CPP"
955else
956  ac_cv_prog_CPP="$CPP"
957fi
958echo "$ac_t""$CPP" 1>&6
959
960echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
961if test -z "$CXXCPP"; then
962if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
963  echo $ac_n "(cached) $ac_c" 1>&6
964else
965  ac_ext=C
966# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
967ac_cpp='$CXXCPP $CPPFLAGS'
968ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
969ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
970  CXXCPP="${CXX-g++} -E"
971  cat > conftest.$ac_ext <<EOF
972#line 973 "configure"
973#include "confdefs.h"
974#include <stdlib.h>
975EOF
976ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
977{ (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
978ac_err=`grep -v '^ *+' conftest.out`
979if test -z "$ac_err"; then
980  :
981else
982  echo "$ac_err" >&5
983  rm -rf conftest*
984  CXXCPP=/lib/cpp
985fi
986rm -f conftest*
987  ac_cv_prog_CXXCPP="$CXXCPP"
988ac_ext=c
989# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
990ac_cpp='$CPP $CPPFLAGS'
991ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
992ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
993fi
994fi
995CXXCPP="$ac_cv_prog_CXXCPP"
996echo "$ac_t""$CXXCPP" 1>&6
997
998echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
999if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1000  echo $ac_n "(cached) $ac_c" 1>&6
1001else
1002  rm -f conftestdata
1003if ln -s X conftestdata 2>/dev/null
1004then
1005  rm -f conftestdata
1006  ac_cv_prog_LN_S="ln -s"
1007else
1008  ac_cv_prog_LN_S=ln
1009fi
1010fi
1011LN_S="$ac_cv_prog_LN_S"
1012if test "$ac_cv_prog_LN_S" = "ln -s"; then
1013  echo "$ac_t""yes" 1>&6
1014else
1015  echo "$ac_t""no" 1>&6
1016fi
1017
1018# Find a good install program.  We prefer a C program (faster),
1019# so one script is as good as another.  But avoid the broken or
1020# incompatible versions:
1021# SysV /etc/install, /usr/sbin/install
1022# SunOS /usr/etc/install
1023# IRIX /sbin/install
1024# AIX /bin/install
1025# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1026# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1027# ./install, which can be erroneously created by make from ./install.sh.
1028echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1029if test -z "$INSTALL"; then
1030if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1031  echo $ac_n "(cached) $ac_c" 1>&6
1032else
1033    IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1034  for ac_dir in $PATH; do
1035    # Account for people who put trailing slashes in PATH elements.
1036    case "$ac_dir/" in
1037    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1038    *)
1039      # OSF1 and SCO ODT 3.0 have their own names for install.
1040      for ac_prog in ginstall installbsd scoinst install; do
1041        if test -f $ac_dir/$ac_prog; then
1042          if test $ac_prog = install &&
1043            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1044            # AIX install.  It has an incompatible calling convention.
1045            # OSF/1 installbsd also uses dspmsg, but is usable.
1046            :
1047          else
1048            ac_cv_path_install="$ac_dir/$ac_prog -c"
1049            break 2
1050          fi
1051        fi
1052      done
1053      ;;
1054    esac
1055  done
1056  IFS="$ac_save_ifs"
1057
1058fi
1059  if test "${ac_cv_path_install+set}" = set; then
1060    INSTALL="$ac_cv_path_install"
1061  else
1062    # As a last resort, use the slow shell script.  We don't cache a
1063    # path for INSTALL within a source directory, because that will
1064    # break other packages using the cache if that directory is
1065    # removed, or if the path is relative.
1066    INSTALL="$ac_install_sh"
1067  fi
1068fi
1069echo "$ac_t""$INSTALL" 1>&6
1070
1071# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1072# It thinks the first close brace ends the variable substitution.
1073test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1074
1075test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1076
1077# Extract the first word of "ranlib", so it can be a program name with args.
1078set dummy ranlib; ac_word=$2
1079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1080if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1081  echo $ac_n "(cached) $ac_c" 1>&6
1082else
1083  if test -n "$RANLIB"; then
1084  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1085else
1086  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1087  for ac_dir in $PATH; do
1088    test -z "$ac_dir" && ac_dir=.
1089    if test -f $ac_dir/$ac_word; then
1090      ac_cv_prog_RANLIB="ranlib"
1091      break
1092    fi
1093  done
1094  IFS="$ac_save_ifs"
1095  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1096fi
1097fi
1098RANLIB="$ac_cv_prog_RANLIB"
1099if test -n "$RANLIB"; then
1100  echo "$ac_t""$RANLIB" 1>&6
1101else
1102  echo "$ac_t""no" 1>&6
1103fi
1104
1105echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1106set dummy ${MAKE-make}; ac_make=$2
1107if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1108  echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110  cat > conftestmake <<\EOF
1111all:
1112        @echo 'ac_maketemp="${MAKE}"'
1113EOF
1114# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1115eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1116if test -n "$ac_maketemp"; then
1117  eval ac_cv_prog_make_${ac_make}_set=yes
1118else
1119  eval ac_cv_prog_make_${ac_make}_set=no
1120fi
1121rm -f conftestmake
1122fi
1123if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1124  echo "$ac_t""yes" 1>&6
1125  SET_MAKE=
1126else
1127  echo "$ac_t""no" 1>&6
1128  SET_MAKE="MAKE=${MAKE-make}"
1129fi
1130
1131# Extract the first word of "ar", so it can be a program name with args.
1132set dummy ar; ac_word=$2
1133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1135  echo $ac_n "(cached) $ac_c" 1>&6
1136else
1137  if test -n "$AR"; then
1138  ac_cv_prog_AR="$AR" # Let the user override the test.
1139else
1140  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1141  for ac_dir in $PATH; do
1142    test -z "$ac_dir" && ac_dir=.
1143    if test -f $ac_dir/$ac_word; then
1144      ac_cv_prog_AR="ar"
1145      break
1146    fi
1147  done
1148  IFS="$ac_save_ifs"
1149  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="where-is-your-ar"
1150fi
1151fi
1152AR="$ac_cv_prog_AR"
1153if test -n "$AR"; then
1154  echo "$ac_t""$AR" 1>&6
1155else
1156  echo "$ac_t""no" 1>&6
1157fi
1158
1159# Extract the first word of "m4", so it can be a program name with args.
1160set dummy m4; ac_word=$2
1161echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
1163  echo $ac_n "(cached) $ac_c" 1>&6
1164else
1165  if test -n "$M4"; then
1166  ac_cv_prog_M4="$M4" # Let the user override the test.
1167else
1168  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1169  for ac_dir in $PATH; do
1170    test -z "$ac_dir" && ac_dir=.
1171    if test -f $ac_dir/$ac_word; then
1172      ac_cv_prog_M4="m4"
1173      break
1174    fi
1175  done
1176  IFS="$ac_save_ifs"
1177  test -z "$ac_cv_prog_M4" && ac_cv_prog_M4="where-is-your-m4"
1178fi
1179fi
1180M4="$ac_cv_prog_M4"
1181if test -n "$M4"; then
1182  echo "$ac_t""$M4" 1>&6
1183else
1184  echo "$ac_t""no" 1>&6
1185fi
1186
1187# Extract the first word of "bison", so it can be a program name with args.
1188set dummy bison; ac_word=$2
1189echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1191  echo $ac_n "(cached) $ac_c" 1>&6
1192else
1193  if test -n "$BISON"; then
1194  ac_cv_prog_BISON="$BISON" # Let the user override the test.
1195else
1196  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1197  for ac_dir in $PATH; do
1198    test -z "$ac_dir" && ac_dir=.
1199    if test -f $ac_dir/$ac_word; then
1200      ac_cv_prog_BISON="bison"
1201      break
1202    fi
1203  done
1204  IFS="$ac_save_ifs"
1205  test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="where-is-your-bison"
1206fi
1207fi
1208BISON="$ac_cv_prog_BISON"
1209if test -n "$BISON"; then
1210  echo "$ac_t""$BISON" 1>&6
1211else
1212  echo "$ac_t""no" 1>&6
1213fi
1214
1215
1216# get absolute path of srcdir to avoid some funny problems when
1217# feeding our results to other peoples configure via cache
1218if echo "$srcdir" | grep '^/' > /dev/null 2> /dev/null; then
1219  abssrcdir="$srcdir"
1220else
1221  abssrcdir="`pwd`/$srcdir"
1222fi
1223# Extract the first word of "mkinstalldirs", so it can be a program name with args.
1224set dummy mkinstalldirs; ac_word=$2
1225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226if eval "test \"`echo '$''{'ac_cv_path_MKINSTALLDIRS'+set}'`\" = set"; then
1227  echo $ac_n "(cached) $ac_c" 1>&6
1228else
1229  case "$MKINSTALLDIRS" in
1230  /*)
1231  ac_cv_path_MKINSTALLDIRS="$MKINSTALLDIRS" # Let the user override the test with a path.
1232  ;;
1233  *)
1234  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1235  for ac_dir in $PATH:$abssrcdir/bin; do
1236    test -z "$ac_dir" && ac_dir=.
1237    if test -f $ac_dir/$ac_word; then
1238      ac_cv_path_MKINSTALLDIRS="$ac_dir/$ac_word"
1239      break
1240    fi
1241  done
1242  IFS="$ac_save_ifs"
1243  test -z "$ac_cv_path_MKINSTALLDIRS" && ac_cv_path_MKINSTALLDIRS="-mkdir"
1244  ;;
1245esac
1246fi
1247MKINSTALLDIRS="$ac_cv_path_MKINSTALLDIRS"
1248if test -n "$MKINSTALLDIRS"; then
1249  echo "$ac_t""$MKINSTALLDIRS" 1>&6
1250else
1251  echo "$ac_t""no" 1>&6
1252fi
1253
1254# Extract the first word of "makeheader", so it can be a program name with args.
1255set dummy makeheader; ac_word=$2
1256echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257if eval "test \"`echo '$''{'ac_cv_path_MAKEHEADER'+set}'`\" = set"; then
1258  echo $ac_n "(cached) $ac_c" 1>&6
1259else
1260  case "$MAKEHEADER" in
1261  /*)
1262  ac_cv_path_MAKEHEADER="$MAKEHEADER" # Let the user override the test with a path.
1263  ;;
1264  *)
1265  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1266  for ac_dir in $abssrcdir/bin:$PATH; do
1267    test -z "$ac_dir" && ac_dir=.
1268    if test -f $ac_dir/$ac_word; then
1269      ac_cv_path_MAKEHEADER="$ac_dir/$ac_word"
1270      break
1271    fi
1272  done
1273  IFS="$ac_save_ifs"
1274  ;;
1275esac
1276fi
1277MAKEHEADER="$ac_cv_path_MAKEHEADER"
1278if test -n "$MAKEHEADER"; then
1279  echo "$ac_t""$MAKEHEADER" 1>&6
1280else
1281  echo "$ac_t""no" 1>&6
1282fi
1283
1284
1285#
1286# - check for libraries.
1287#
1288echo $ac_n "checking for -lm""... $ac_c" 1>&6
1289ac_lib_var=`echo m_atof | tr '.-/+' '___p'`
1290if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1291  echo $ac_n "(cached) $ac_c" 1>&6
1292else
1293  ac_save_LIBS="$LIBS"
1294LIBS="-lm  $LIBS"
1295cat > conftest.$ac_ext <<EOF
1296#line 1297 "configure"
1297#include "confdefs.h"
1298/* Override any gcc2 internal prototype to avoid an error.  */
1299char atof();
1300
1301int main() { return 0; }
1302int t() {
1303atof()
1304; return 0; }
1305EOF
1306if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1307  rm -rf conftest*
1308  eval "ac_cv_lib_$ac_lib_var=yes"
1309else
1310  rm -rf conftest*
1311  eval "ac_cv_lib_$ac_lib_var=no"
1312fi
1313rm -f conftest*
1314LIBS="$ac_save_LIBS"
1315
1316fi
1317if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1318  echo "$ac_t""yes" 1>&6
1319    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1320  cat >> confdefs.h <<EOF
1321#define $ac_tr_lib 1
1322EOF
1323
1324  LIBS="-lm $LIBS"
1325
1326else
1327  echo "$ac_t""no" 1>&6
1328 { echo "configure: error: libm.a not found" 1>&2; exit 1; }
1329fi
1330
1331
1332if test "x$gmp_in_installation" != xyes; then
1333  echo $ac_n "checking for -lgmp""... $ac_c" 1>&6
1334ac_lib_var=`echo gmp_mpz_init | tr '.-/+' '___p'`
1335if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1336  echo $ac_n "(cached) $ac_c" 1>&6
1337else
1338  ac_save_LIBS="$LIBS"
1339LIBS="-lgmp  $LIBS"
1340cat > conftest.$ac_ext <<EOF
1341#line 1342 "configure"
1342#include "confdefs.h"
1343/* Override any gcc2 internal prototype to avoid an error.  */
1344char mpz_init();
1345
1346int main() { return 0; }
1347int t() {
1348mpz_init()
1349; return 0; }
1350EOF
1351if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1352  rm -rf conftest*
1353  eval "ac_cv_lib_$ac_lib_var=yes"
1354else
1355  rm -rf conftest*
1356  eval "ac_cv_lib_$ac_lib_var=no"
1357fi
1358rm -f conftest*
1359LIBS="$ac_save_LIBS"
1360
1361fi
1362if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1363  echo "$ac_t""yes" 1>&6
1364    ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1365  cat >> confdefs.h <<EOF
1366#define $ac_tr_lib 1
1367EOF
1368
1369  LIBS="-lgmp $LIBS"
1370
1371else
1372  echo "$ac_t""no" 1>&6
1373 { echo "configure: error: libgmp.a not found.  Use option --with-gmp to specify path" 1>&2; exit 1; }
1374fi
1375
1376fi
1377
1378#
1379# - check for header files.
1380#
1381ac_ext=C
1382# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1383ac_cpp='$CXXCPP $CPPFLAGS'
1384ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1385ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1386
1387
1388if test "x$gmp_in_installation" != xyes; then
1389  for ac_hdr in gmp.h
1390do
1391ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1392echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1393if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1394  echo $ac_n "(cached) $ac_c" 1>&6
1395else
1396  cat > conftest.$ac_ext <<EOF
1397#line 1398 "configure"
1398#include "confdefs.h"
1399#include <$ac_hdr>
1400EOF
1401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1402{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1403ac_err=`grep -v '^ *+' conftest.out`
1404if test -z "$ac_err"; then
1405  rm -rf conftest*
1406  eval "ac_cv_header_$ac_safe=yes"
1407else
1408  echo "$ac_err" >&5
1409  rm -rf conftest*
1410  eval "ac_cv_header_$ac_safe=no"
1411fi
1412rm -f conftest*
1413fi
1414if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1415  echo "$ac_t""yes" 1>&6
1416    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1417  cat >> confdefs.h <<EOF
1418#define $ac_tr_hdr 1
1419EOF
1420 
1421else
1422  echo "$ac_t""no" 1>&6
1423{ echo "configure: error: gmp.h not found.  Use option --with-gmp to specify path" 1>&2; exit 1; }
1424fi
1425done
1426
1427fi
1428
1429for ac_hdr in stdio.h stdlib.h string.h time.h math.h
1430do
1431ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1432echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1433if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1434  echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436  cat > conftest.$ac_ext <<EOF
1437#line 1438 "configure"
1438#include "confdefs.h"
1439#include <$ac_hdr>
1440EOF
1441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442{ (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443ac_err=`grep -v '^ *+' conftest.out`
1444if test -z "$ac_err"; then
1445  rm -rf conftest*
1446  eval "ac_cv_header_$ac_safe=yes"
1447else
1448  echo "$ac_err" >&5
1449  rm -rf conftest*
1450  eval "ac_cv_header_$ac_safe=no"
1451fi
1452rm -f conftest*
1453fi
1454if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1455  echo "$ac_t""yes" 1>&6
1456    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1457  cat >> confdefs.h <<EOF
1458#define $ac_tr_hdr 1
1459EOF
1460 
1461else
1462  echo "$ac_t""no" 1>&6
1463{ echo "configure: error: C header files not found" 1>&2; exit 1; }
1464fi
1465done
1466
1467
1468if test "x$enable_streamio" != xno; then
1469  for ac_hdr in iostream.h strstream.h fstream.h
1470do
1471ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1472echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1473if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1474  echo $ac_n "(cached) $ac_c" 1>&6
1475else
1476  cat > conftest.$ac_ext <<EOF
1477#line 1478 "configure"
1478#include "confdefs.h"
1479#include <$ac_hdr>
1480EOF
1481ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1482{ (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1483ac_err=`grep -v '^ *+' conftest.out`
1484if test -z "$ac_err"; then
1485  rm -rf conftest*
1486  eval "ac_cv_header_$ac_safe=yes"
1487else
1488  echo "$ac_err" >&5
1489  rm -rf conftest*
1490  eval "ac_cv_header_$ac_safe=no"
1491fi
1492rm -f conftest*
1493fi
1494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1495  echo "$ac_t""yes" 1>&6
1496    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1497  cat >> confdefs.h <<EOF
1498#define $ac_tr_hdr 1
1499EOF
1500 
1501else
1502  echo "$ac_t""no" 1>&6
1503{ echo "configure: error: C++ header files not found" 1>&2; exit 1; }
1504fi
1505done
1506
1507  for ac_hdr in ctype.h
1508do
1509ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1510echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1511if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1512  echo $ac_n "(cached) $ac_c" 1>&6
1513else
1514  cat > conftest.$ac_ext <<EOF
1515#line 1516 "configure"
1516#include "confdefs.h"
1517#include <$ac_hdr>
1518EOF
1519ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1520{ (eval echo configure:1521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1521ac_err=`grep -v '^ *+' conftest.out`
1522if test -z "$ac_err"; then
1523  rm -rf conftest*
1524  eval "ac_cv_header_$ac_safe=yes"
1525else
1526  echo "$ac_err" >&5
1527  rm -rf conftest*
1528  eval "ac_cv_header_$ac_safe=no"
1529fi
1530rm -f conftest*
1531fi
1532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1533  echo "$ac_t""yes" 1>&6
1534    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1535  cat >> confdefs.h <<EOF
1536#define $ac_tr_hdr 1
1537EOF
1538 
1539else
1540  echo "$ac_t""no" 1>&6
1541{ echo "configure: error: standard C header files not found" 1>&2; exit 1; }
1542fi
1543done
1544
1545
1546  # since the FTE will compile only with stream IO enabled we will not
1547  # check for the necessary header files if stream IO is disabled
1548  for ac_hdr in stdarg.h signal.h errno.h unistd.h
1549do
1550ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1551echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1552if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1553  echo $ac_n "(cached) $ac_c" 1>&6
1554else
1555  cat > conftest.$ac_ext <<EOF
1556#line 1557 "configure"
1557#include "confdefs.h"
1558#include <$ac_hdr>
1559EOF
1560ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1561{ (eval echo configure:1562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1562ac_err=`grep -v '^ *+' conftest.out`
1563if test -z "$ac_err"; then
1564  rm -rf conftest*
1565  eval "ac_cv_header_$ac_safe=yes"
1566else
1567  echo "$ac_err" >&5
1568  rm -rf conftest*
1569  eval "ac_cv_header_$ac_safe=no"
1570fi
1571rm -f conftest*
1572fi
1573if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1574  echo "$ac_t""yes" 1>&6
1575    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1576  cat >> confdefs.h <<EOF
1577#define $ac_tr_hdr 1
1578EOF
1579 
1580else
1581  echo "$ac_t""no" 1>&6
1582echo "configure: warning: C/C++ header files not found.
1583                    You will not be able to build the Factory Test Environment
1584                    (though Factory itself should compile)" 1>&2
1585fi
1586done
1587
1588fi
1589
1590if test "x$enable_timing" != xno; then
1591  for ac_hdr in sys/param.h sys/times.h
1592do
1593ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1595if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1596  echo $ac_n "(cached) $ac_c" 1>&6
1597else
1598  cat > conftest.$ac_ext <<EOF
1599#line 1600 "configure"
1600#include "confdefs.h"
1601#include <$ac_hdr>
1602EOF
1603ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1604{ (eval echo configure:1605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1605ac_err=`grep -v '^ *+' conftest.out`
1606if test -z "$ac_err"; then
1607  rm -rf conftest*
1608  eval "ac_cv_header_$ac_safe=yes"
1609else
1610  echo "$ac_err" >&5
1611  rm -rf conftest*
1612  eval "ac_cv_header_$ac_safe=no"
1613fi
1614rm -f conftest*
1615fi
1616if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1617  echo "$ac_t""yes" 1>&6
1618    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1619  cat >> confdefs.h <<EOF
1620#define $ac_tr_hdr 1
1621EOF
1622 
1623else
1624  echo "$ac_t""no" 1>&6
1625{ echo "configure: error: \`sys/times.h' or \`sys/param.h' not found.  Try
1626                  \`configure --disable-timing'" 1>&2; exit 1; }
1627fi
1628done
1629
1630fi
1631
1632# font-lock-trick: '
1633
1634#
1635# - check for compiler characteristics.
1636#
1637
1638# use C to check compiler characteristics instead of C++.  On
1639# nextstep, checking with C++ may fail.
1640ac_ext=c
1641# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1642ac_cpp='$CPP $CPPFLAGS'
1643ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1644ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1645
1646
1647# cross-compiling ?!
1648# If we cannot run a trivial program, we must be cross compiling.
1649echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1650if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1651  echo $ac_n "(cached) $ac_c" 1>&6
1652else
1653  if test "$cross_compiling" = yes; then
1654  ac_cv_c_cross=yes
1655else
1656cat > conftest.$ac_ext <<EOF
1657#line 1658 "configure"
1658#include "confdefs.h"
1659main(){return(0);}
1660EOF
1661{ (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1662if test -s conftest && (./conftest; exit) 2>/dev/null; then
1663  ac_cv_c_cross=no
1664else
1665  ac_cv_c_cross=yes
1666fi
1667fi
1668rm -fr conftest*
1669fi
1670
1671echo "$ac_t""$ac_cv_c_cross" 1>&6
1672cross_compiling=$ac_cv_c_cross
1673
1674if test "x$cross_compiling" = xyes; then
1675  echo "configure: warning: you better specify a cache file to get the values for
1676                    cross-compiling right (e.g., call \`configure
1677                    --cache-file=yourTarget.cache').  In particular, you
1678                    should make sure that your target machine supports
1679                    arithmetic shift." 1>&2
1680fi
1681
1682# font-lock-trick: '
1683
1684echo $ac_n "checking for working const""... $ac_c" 1>&6
1685if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1686  echo $ac_n "(cached) $ac_c" 1>&6
1687else
1688  cat > conftest.$ac_ext <<EOF
1689#line 1690 "configure"
1690#include "confdefs.h"
1691
1692int main() { return 0; }
1693int t() {
1694
1695/* Ultrix mips cc rejects this.  */
1696typedef int charset[2]; const charset x;
1697/* SunOS 4.1.1 cc rejects this.  */
1698char const *const *ccp;
1699char **p;
1700/* NEC SVR4.0.2 mips cc rejects this.  */
1701struct point {int x, y;};
1702static struct point const zero = {0,0};
1703/* AIX XL C 1.02.0.0 rejects this.
1704   It does not let you subtract one const X* pointer from another in an arm
1705   of an if-expression whose if-part is not a constant expression */
1706const char *g = "string";
1707ccp = &g + (g ? g-g : 0);
1708/* HPUX 7.0 cc rejects these. */
1709++ccp;
1710p = (char**) ccp;
1711ccp = (char const *const *) p;
1712{ /* SCO 3.2v4 cc rejects this.  */
1713  char *t;
1714  char const *s = 0 ? (char *) 0 : (char const *) 0;
1715
1716  *t++ = 0;
1717}
1718{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1719  int x[] = {25, 17};
1720  const int *foo = &x[0];
1721  ++foo;
1722}
1723{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1724  typedef const int *iptr;
1725  iptr p = 0;
1726  ++p;
1727}
1728{ /* AIX XL C 1.02.0.0 rejects this saying
1729     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1730  struct s { int j; const int *ap[3]; };
1731  struct s *b; b->j = 5;
1732}
1733{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1734  const int foo = 10;
1735}
1736
1737; return 0; }
1738EOF
1739if { (eval echo configure:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740  rm -rf conftest*
1741  ac_cv_c_const=yes
1742else
1743  rm -rf conftest*
1744  ac_cv_c_const=no
1745fi
1746rm -f conftest*
1747
1748fi
1749
1750echo "$ac_t""$ac_cv_c_const" 1>&6
1751if test $ac_cv_c_const = no; then
1752  cat >> confdefs.h <<\EOF
1753#define const
1754EOF
1755
1756fi
1757
1758echo $ac_n "checking for inline""... $ac_c" 1>&6
1759if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1760  echo $ac_n "(cached) $ac_c" 1>&6
1761else
1762  ac_cv_c_inline=no
1763for ac_kw in inline __inline__ __inline; do
1764  cat > conftest.$ac_ext <<EOF
1765#line 1766 "configure"
1766#include "confdefs.h"
1767
1768int main() { return 0; }
1769int t() {
1770} $ac_kw foo() {
1771; return 0; }
1772EOF
1773if { (eval echo configure:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1774  rm -rf conftest*
1775  ac_cv_c_inline=$ac_kw; break
1776fi
1777rm -f conftest*
1778
1779done
1780
1781fi
1782
1783echo "$ac_t""$ac_cv_c_inline" 1>&6
1784case "$ac_cv_c_inline" in
1785  inline | yes) ;;
1786  no) cat >> confdefs.h <<\EOF
1787#define inline
1788EOF
1789 ;;
1790  *)  cat >> confdefs.h <<EOF
1791#define inline $ac_cv_c_inline
1792EOF
1793 ;;
1794esac
1795
1796
1797# arithmetic shift
1798echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6
1799if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
1800  echo $ac_n "(cached) $ac_c" 1>&6
1801else
1802   if test "$cross_compiling" = yes; then
1803  ac_cv_shift=yes
1804else
1805cat > conftest.$ac_ext <<EOF
1806#line 1807 "configure"
1807#include "confdefs.h"
1808 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
1809EOF
1810{ (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1811if test -s conftest && (./conftest; exit) 2>/dev/null; then
1812  ac_cv_shift=yes
1813else
1814  ac_cv_shift=no
1815fi
1816fi
1817rm -fr conftest*
1818fi
1819
1820if test "x$ac_cv_shift" = xyes; then   
1821  echo "$ac_t""yes" 1>&6
1822else
1823  echo "$ac_t""no" 1>&6
1824fi
1825
1826#
1827# - paths.
1828#
1829
1830# we have to get datadir explicitely for config.h
1831save_prefix="$prefix"
1832test "x$prefix" = xNONE && prefix="$ac_default_prefix"
1833expl_datadir=`eval echo "$datadir"`
1834prefix="$save_prefix"
1835# get absolute path of expl_datadir
1836if echo "$expl_datadir" | grep -v '^/' > /dev/null 2> /dev/null; then
1837  expl_datadir="`pwd`/$expl_datadir"
1838fi
1839
1840if test "x$with_Singular" = xyes; then
1841  gftabledir='${datadir}/Singular/gftables'
1842  expl_gftabledir="$expl_datadir/Singular/gftables"
1843  templatedir='${includedir}/templates'
1844else
1845  gftabledir='${datadir}/factory/gftables'
1846  expl_gftabledir="$expl_datadir/factory/gftables"
1847  templatedir='${includedir}/templates'
1848fi
1849
1850#
1851# - the name of the game and the targets to create.
1852#
1853if test "x$with_Singular" = xyes; then
1854  libfactory=libsingcf.a
1855
1856  factorysrc='$(basefactorysrc) $(singfactorysrc)'
1857  factoryincl='$(basefactoryincl) $(singfactoryincl)'
1858  memmansrc=
1859  memmanincl=
1860
1861  alltargets=cf
1862  installtargets=installcf
1863  uninstalltargets=uninstallcf
1864else
1865  libfactory=libcf.a
1866
1867  factorysrc='$(basefactorysrc)'
1868  factoryincl='$(basefactoryincl)'
1869  memmansrc='$(basememmansrc)'
1870  memmanincl=
1871
1872  alltargets=cf
1873  installtargets=installcf
1874  uninstalltargets=uninstallcf
1875fi
1876
1877#
1878# - set defines and variables according to our tests.
1879#
1880
1881# CFLAGS
1882if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
1883  CFLAGS="-O2 -fomit-frame-pointer"
1884fi
1885
1886# CXXFLAGS
1887if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
1888  CXXFLAGS="-O2 -fomit-frame-pointer"
1889fi
1890
1891# ARFLAGS
1892test "${ARFLAGS+set}" = set || ARFLAGS=cr
1893
1894# M4FLAGS
1895test "${M4FLAGS+set}" = set || M4FLAGS=
1896
1897# Singular
1898if test "x$with_Singular" = xyes; then
1899  cat >> confdefs.h <<\EOF
1900#define SINGULAR 1
1901EOF
1902
1903fi
1904
1905# arithmetic shift
1906if test "x$ac_cv_shift" = xyes; then   
1907  cat >> confdefs.h <<\EOF
1908#define HAS_ARITHMETIC_SHIFT 1
1909EOF
1910
1911fi
1912
1913# gmp-stuff.  we must not set these flags before the tests
1914# are finished!
1915if test "x$gmp_in_installation" = xyes; then
1916  CPPFLAGS="-I\$(includedir) $CPPFLAGS"
1917  LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS"
1918fi
1919
1920# memory manager
1921if test "x$with_memman" != xno; then
1922  alltargets="$alltargets mem"
1923  installtargets="$installtargets installmem"
1924  uninstalltargets="$uninstalltargets uninstallmem"
1925  cat >> confdefs.h <<\EOF
1926#define USE_MEMUTIL 1
1927EOF
1928
1929
1930  if test "x$with_memman" != xnew; then
1931    memmansrc="$memmansrc \$(oldmemmansrc)"
1932    memmanincl='$(oldmemmanincl)'
1933    cat >> confdefs.h <<\EOF
1934#define USE_OLD_MEMMAN 1
1935EOF
1936
1937  else
1938    memmansrc="$memmansrc \$(newmemmansrc)"
1939    memmanincl='$(newmemmanincl)'
1940
1941    if test "x$enable_memdebug" = xfull; then
1942      cat >> confdefs.h <<\EOF
1943#define MDEBUG 1
1944EOF
1945
1946    elif test "x$enable_memdebug" != xno; then
1947      cat >> confdefs.h <<\EOF
1948#define MDEBUG 0
1949EOF
1950
1951    fi
1952  fi
1953fi
1954
1955# iostream
1956if test "x$enable_streamio" = xno; then
1957  cat >> confdefs.h <<\EOF
1958#define NOSTREAMIO 1
1959EOF
1960
1961else
1962  factorysrc="$factorysrc \$(useiofactorysrc)"
1963  factoryincl="$factoryincl \$(useiofactoryincl)"
1964fi
1965
1966# assertions
1967if test "x$enable_assertions" = xno; then
1968  cat >> confdefs.h <<\EOF
1969#define NOASSERT 1
1970EOF
1971
1972fi
1973
1974#
1975# - debugoutput and timing magic.
1976#
1977# For those who do not like this: As long as you do not specify
1978# --enable-timing or --enable-debugoutput the following code will
1979# not be executed.
1980#
1981timingtargets=/dev/null
1982debouttargets=/dev/null
1983debtimingtargets=/dev/null
1984enhanceddebtime=no
1985
1986# timing
1987if test "x$enable_timing" != xno; then
1988  if test "x$enable_timing" = xyes; then
1989    cat >> confdefs.h <<\EOF
1990#define TIMING 1
1991EOF
1992
1993  else
1994    echo "$enable_timing" | tr ',' '\n' | sed 's/\..*$//' | sort > conftest.time
1995    timingtargets=conftest.time
1996    enhanceddebtime=yes
1997  fi
1998fi
1999
2000# debugoutput
2001if test "x$enable_debugoutput" != xno; then
2002  if test "x$enable_debugoutput" = xyes; then
2003    cat >> confdefs.h <<\EOF
2004#define DEBUGOUTPUT 1
2005EOF
2006
2007  else
2008    echo "$enable_debugoutput" | tr ',' '\n' | sed 's/\..*$//' | sort > conftest.debout
2009    debouttargets=conftest.debout
2010    enhanceddebtime=yes
2011  fi
2012fi
2013
2014# create makefile fragments
2015if test "x$enhanceddebtime" = xyes; then
2016  # get the intersection of timingtargets and debouttargets
2017  sort "$timingtargets" "$debouttargets" | uniq -d > conftest.debtime
2018  if test -s conftest.debtime; then
2019    debtimingtargets=conftest.debtime
2020  fi
2021  if test "x$timingtargets" != x/dev/null; then
2022    # get difference of timingtargets and debtimingtargets
2023    sort "$timingtargets" "$debtimingtargets" | uniq -u |
2024      while read line; do
2025        echo "$line.o: $line.cc config.h;" '$(CXX) -c $< -DTIMING $(LIBCXXFLAGS) -o $@'
2026      done > conftest.tmp
2027    mv conftest.tmp "$timingtargets"
2028  fi
2029  if test "x$debouttargets" != x/dev/null; then
2030    # get difference of debouttargets and debtimingtargets
2031    sort "$debouttargets" "$debtimingtargets" | uniq -u |
2032      while read line; do
2033        echo "$line.o: $line.cc config.h;" '$(CXX) -c $< -DDEBUGOUTPUT $(LIBCXXFLAGS) -o $@'
2034      done > conftest.tmp
2035    mv conftest.tmp "$debouttargets"
2036  fi
2037  if test "x$debtimingtargets" != x/dev/null; then
2038    while read line; do
2039      echo "$line.o: $line.cc config.h;" '$(CXX) -c $< -DTIMING -DDEBUGOUTPUT $(LIBCXXFLAGS) -o $@'
2040    done < "$debtimingtargets" > conftest.tmp
2041    mv conftest.tmp "$debtimingtargets"
2042  fi
2043fi
2044
2045#
2046# - complete and substitute variables, defines.
2047#
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072cat >> confdefs.h <<EOF
2073#define FACTORYVERSION "$factory_version"
2074EOF
2075
2076cat >> confdefs.h <<EOF
2077#define FACTORYCONFIGURATION "$factory_configuration"
2078EOF
2079
2080cat >> confdefs.h <<EOF
2081#define GFTABLEDIR "$expl_gftabledir"
2082EOF
2083
2084
2085trap '' 1 2 15
2086cat > confcache <<\EOF
2087# This file is a shell script that caches the results of configure
2088# tests run on this system so they can be shared between configure
2089# scripts and configure runs.  It is not useful on other systems.
2090# If it contains results you don't want to keep, you may remove or edit it.
2091#
2092# By default, configure uses ./config.cache as the cache file,
2093# creating it if it does not exist already.  You can give configure
2094# the --cache-file=FILE option to use a different cache file; that is
2095# what configure does when it calls configure scripts in
2096# subdirectories, so they share the cache.
2097# Giving --cache-file=/dev/null disables caching, for debugging configure.
2098# config.status only pays attention to the cache file if you give it the
2099# --recheck option to rerun configure.
2100#
2101EOF
2102# Ultrix sh set writes to stderr and can't be redirected directly,
2103# and sets the high bit in the cache file unless we assign to the vars.
2104(set) 2>&1 |
2105  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2106  >> confcache
2107if cmp -s $cache_file confcache; then
2108  :
2109else
2110  if test -w $cache_file; then
2111    echo "updating cache $cache_file"
2112    cat confcache > $cache_file
2113  else
2114    echo "not updating unwritable cache $cache_file"
2115  fi
2116fi
2117rm -f confcache
2118
2119trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2120
2121test "x$prefix" = xNONE && prefix=$ac_default_prefix
2122# Let make expand exec_prefix.
2123test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2124
2125# Any assignment to VPATH causes Sun make to only execute
2126# the first set of double-colon rules, so remove it if not needed.
2127# If there is a colon in the path, we need to keep it.
2128if test "x$srcdir" = x.; then
2129  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2130fi
2131
2132trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2133
2134DEFS=-DHAVE_CONFIG_H
2135
2136# Without the "./", some shells look in PATH for config.status.
2137: ${CONFIG_STATUS=./config.status}
2138
2139echo creating $CONFIG_STATUS
2140rm -f $CONFIG_STATUS
2141cat > $CONFIG_STATUS <<EOF
2142#! /bin/sh
2143# Generated automatically by configure.
2144# Run this file to recreate the current configuration.
2145# This directory was configured as follows,
2146# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2147#
2148# $0 $ac_configure_args
2149#
2150# Compiler output produced by configure, useful for debugging
2151# configure, is in ./config.log if it exists.
2152
2153ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2154for ac_option
2155do
2156  case "\$ac_option" in
2157  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2158    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2159    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2160  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2161    echo "$CONFIG_STATUS generated by autoconf version 2.9"
2162    exit 0 ;;
2163  -help | --help | --hel | --he | --h)
2164    echo "\$ac_cs_usage"; exit 0 ;;
2165  *) echo "\$ac_cs_usage"; exit 1 ;;
2166  esac
2167done
2168
2169ac_given_srcdir=$srcdir
2170ac_given_INSTALL="$INSTALL"
2171
2172trap 'rm -fr `echo "GNUmakefile ftest/GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2173EOF
2174cat >> $CONFIG_STATUS <<EOF
2175
2176# Protect against being on the right side of a sed subst in config.status.
2177sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2178 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2179$ac_vpsub
2180$extrasub
2181s%@CFLAGS@%$CFLAGS%g
2182s%@CPPFLAGS@%$CPPFLAGS%g
2183s%@CXXFLAGS@%$CXXFLAGS%g
2184s%@DEFS@%$DEFS%g
2185s%@LDFLAGS@%$LDFLAGS%g
2186s%@LIBS@%$LIBS%g
2187s%@exec_prefix@%$exec_prefix%g
2188s%@prefix@%$prefix%g
2189s%@program_transform_name@%$program_transform_name%g
2190s%@bindir@%$bindir%g
2191s%@sbindir@%$sbindir%g
2192s%@libexecdir@%$libexecdir%g
2193s%@datadir@%$datadir%g
2194s%@sysconfdir@%$sysconfdir%g
2195s%@sharedstatedir@%$sharedstatedir%g
2196s%@localstatedir@%$localstatedir%g
2197s%@libdir@%$libdir%g
2198s%@includedir@%$includedir%g
2199s%@oldincludedir@%$oldincludedir%g
2200s%@infodir@%$infodir%g
2201s%@mandir@%$mandir%g
2202s%@CC@%$CC%g
2203s%@CXX@%$CXX%g
2204s%@CPP@%$CPP%g
2205s%@CXXCPP@%$CXXCPP%g
2206s%@LN_S@%$LN_S%g
2207s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2208s%@INSTALL_DATA@%$INSTALL_DATA%g
2209s%@RANLIB@%$RANLIB%g
2210s%@SET_MAKE@%$SET_MAKE%g
2211s%@AR@%$AR%g
2212s%@M4@%$M4%g
2213s%@BISON@%$BISON%g
2214s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
2215s%@MAKEHEADER@%$MAKEHEADER%g
2216s%@gftabledir@%$gftabledir%g
2217s%@templatedir@%$templatedir%g
2218s%@factory_version@%$factory_version%g
2219s%@libfactory@%$libfactory%g
2220s%@ARFLAGS@%$ARFLAGS%g
2221s%@M4FLAGS@%$M4FLAGS%g
2222s%@MAKEHEADERFLAGS@%$MAKEHEADERFLAGS%g
2223s%@factorysrc@%$factorysrc%g
2224s%@factoryincl@%$factoryincl%g
2225s%@memmansrc@%$memmansrc%g
2226s%@memmanincl@%$memmanincl%g
2227s%@alltargets@%$alltargets%g
2228s%@installtargets@%$installtargets%g
2229s%@uninstalltargets@%$uninstalltargets%g
2230/@timingtargets@/r $timingtargets
2231s%@timingtargets@%%g
2232/@debouttargets@/r $debouttargets
2233s%@debouttargets@%%g
2234/@debtimingtargets@/r $debtimingtargets
2235s%@debtimingtargets@%%g
2236
2237CEOF
2238EOF
2239cat >> $CONFIG_STATUS <<EOF
2240
2241CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile ftest/GNUmakefile"}
2242EOF
2243cat >> $CONFIG_STATUS <<\EOF
2244for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2245  # Support "outfile[:infile]", defaulting infile="outfile.in".
2246  case "$ac_file" in
2247  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2248       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2249  *) ac_file_in="${ac_file}.in" ;;
2250  esac
2251
2252  # Adjust relative srcdir, etc. for subdirectories.
2253
2254  # Remove last slash and all that follows it.  Not all systems have dirname.
2255  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2256  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2257    # The file is in a subdirectory.
2258    test ! -d "$ac_dir" && mkdir "$ac_dir"
2259    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2260    # A "../" for each directory in $ac_dir_suffix.
2261    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2262  else
2263    ac_dir_suffix= ac_dots=
2264  fi
2265
2266  case "$ac_given_srcdir" in
2267  .)  srcdir=.
2268      if test -z "$ac_dots"; then top_srcdir=.
2269      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2270  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2271  *) # Relative path.
2272    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2273    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2274  esac
2275
2276  case "$ac_given_INSTALL" in
2277  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2278  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2279  esac
2280  echo creating "$ac_file"
2281  rm -f "$ac_file"
2282  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2283  case "$ac_file" in
2284  *Makefile*) ac_comsub="1i\\
2285# $configure_input" ;;
2286  *) ac_comsub= ;;
2287  esac
2288  sed -e "$ac_comsub
2289s%@configure_input@%$configure_input%g
2290s%@srcdir@%$srcdir%g
2291s%@top_srcdir@%$top_srcdir%g
2292s%@INSTALL@%$INSTALL%g
2293" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2294fi; done
2295rm -f conftest.subs
2296
2297# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2298# NAME is the cpp macro being defined and VALUE is the value it is being given.
2299#
2300# ac_d sets the value in "#define NAME VALUE" lines.
2301ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2302ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2303ac_dC='\3'
2304ac_dD='%g'
2305# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2306ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2307ac_uB='\([      ]\)%\1#\2define\3'
2308ac_uC=' '
2309ac_uD='\4%g'
2310# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2311ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2312ac_eB='$%\1#\2define\3'
2313ac_eC=' '
2314ac_eD='%g'
2315
2316CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
2317for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2318  # Support "outfile[:infile]", defaulting infile="outfile.in".
2319  case "$ac_file" in
2320  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2321       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2322  *) ac_file_in="${ac_file}.in" ;;
2323  esac
2324
2325  echo creating $ac_file
2326
2327  rm -f conftest.frag conftest.in conftest.out
2328  cp $ac_given_srcdir/$ac_file_in conftest.in
2329
2330EOF
2331
2332# Transform confdefs.h into a sed script conftest.vals that substitutes
2333# the proper values into config.h.in to produce config.h.  And first:
2334# Protect against being on the right side of a sed subst in config.status.
2335# Protect against being in an unquoted here document in config.status.
2336rm -f conftest.vals
2337cat > conftest.hdr <<\EOF
2338s/[\\&%]/\\&/g
2339s%[\\$`]%\\&%g
2340s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2341s%ac_d%ac_u%gp
2342s%ac_u%ac_e%gp
2343EOF
2344sed -n -f conftest.hdr confdefs.h > conftest.vals
2345rm -f conftest.hdr
2346
2347# This sed command replaces #undef with comments.  This is necessary, for
2348# example, in the case of _POSIX_SOURCE, which is predefined and required
2349# on some systems where configure will not decide to define it.
2350cat >> conftest.vals <<\EOF
2351s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2352EOF
2353
2354# Break up conftest.vals because some shells have a limit on
2355# the size of here documents, and old seds have small limits too.
2356# Maximum number of lines to put in a single here document.
2357ac_max_here_lines=12
2358
2359rm -f conftest.tail
2360while :
2361do
2362  ac_lines=`grep -c . conftest.vals`
2363  # grep -c gives empty output for an empty file on some AIX systems.
2364  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2365  # Write a limited-size here document to conftest.frag.
2366  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2367  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2368  echo 'CEOF
2369  sed -f conftest.frag conftest.in > conftest.out
2370  rm -f conftest.in
2371  mv conftest.out conftest.in
2372' >> $CONFIG_STATUS
2373  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2374  rm -f conftest.vals
2375  mv conftest.tail conftest.vals
2376done
2377rm -f conftest.vals
2378
2379cat >> $CONFIG_STATUS <<\EOF
2380  rm -f conftest.frag conftest.h
2381  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2382  cat conftest.in >> conftest.h
2383  rm -f conftest.in
2384  if cmp -s $ac_file conftest.h 2>/dev/null; then
2385    echo "$ac_file is unchanged"
2386    rm -f conftest.h
2387  else
2388    rm -f $ac_file
2389    mv conftest.h $ac_file
2390  fi
2391fi; done
2392
2393
2394
2395exit 0
2396EOF
2397chmod +x $CONFIG_STATUS
2398rm -fr confdefs* $ac_clean_files
2399test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2400
Note: See TracBrowser for help on using the repository browser.