source: git/factory/configure @ 01a62d

spielwiese
Last change on this file since 01a62d was 01a62d, checked in by Jens Schmidt <schmidt@…>, 27 years ago
* configure: configure.in changed git-svn-id: file:///usr/local/Singular/svn/trunk@534 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 63.2 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.10
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 streamio"
25ac_help="$ac_help
26  --enable-memdebug=<level> switch on memory managment 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 gracefull 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.10"
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.2c"
564
565#
566# - check withs and enables.
567#
568# Check whether --with-memman or --without-memman was given.
569if test "${with_memman+set}" = set; then
570  withval="$with_memman"
571  :
572else
573   if test "x$with_Singular" = xyes; then
574      with_memman=no
575    else
576      with_memman=old
577    fi
578fi
579
580
581# Check whether --with-gmp or --without-gmp was given.
582if test "${with_gmp+set}" = set; then
583  withval="$with_gmp"
584  :
585fi
586
587
588# Check whether --with-Singular or --without-Singular was given.
589if test "${with_Singular+set}" = set; then
590  withval="$with_Singular"
591  :
592else
593  with_Singular=no
594fi
595
596
597# Check whether --enable-streamio or --disable-streamio was given.
598if test "${enable_streamio+set}" = set; then
599  enableval="$enable_streamio"
600  :
601else
602   if test "x$with_Singular" = xyes; then
603      enable_streamio=no
604    else
605      enable_streamio=yes
606    fi
607fi
608
609
610# Check whether --enable-memdebug or --disable-memdebug was given.
611if test "${enable_memdebug+set}" = set; then
612  enableval="$enable_memdebug"
613  :
614else
615  enable_memdebug=no
616fi
617
618
619# Check whether --enable-assertions or --disable-assertions was given.
620if test "${enable_assertions+set}" = set; then
621  enableval="$enable_assertions"
622  :
623else
624  enable_assertions=no
625fi
626
627
628# Check whether --enable-timing or --disable-timing was given.
629if test "${enable_timing+set}" = set; then
630  enableval="$enable_timing"
631  :
632else
633  enable_timing=no
634fi
635
636
637# Check whether --enable-debugoutput or --disable-debugoutput was given.
638if test "${enable_debugoutput+set}" = set; then
639  enableval="$enable_debugoutput"
640  :
641else
642  enable_debugoutput=no
643fi
644
645
646# an ugly tribute to Singular
647# Check whether --enable-gmp or --disable-gmp was given.
648if test "${enable_gmp+set}" = set; then
649  enableval="$enable_gmp"
650   if test "x$with_Singular" = xyes && test "x$enable_gmp" != xno; then
651      with_gmp='$(includedir)'
652    fi
653fi
654
655
656#
657# - check the results of --with-gmp.
658#
659case "$with_gmp" in
660  yes|no|"")
661    gmp_in_installation=no ;;
662  '$(includedir)'|'${includedir}')
663    gmp_in_installation=yes ;;
664  *,*)
665    saveIFS="$IFS"; IFS="${IFS},"
666    set dummy $with_gmp
667    IFS="$saveIFS"
668    CPPFLAGS="-I$2 $CPPFLAGS"
669    LDFLAGS="-L$3 $LDFLAGS"
670    gmp_in_installation=no ;;
671  *)
672    CPPFLAGS="-I$with_gmp $CPPFLAGS"
673    LDFLAGS="-L$with_gmp/../lib $LDFLAGS"
674    gmp_in_installation=no ;;
675esac
676
677#
678# - check for CC and CXX but be careful about CFLAGS.
679#
680test "${CFLAGS+set}" = set || cflags_expl_set=no
681# Extract the first word of "gcc", so it can be a program name with args.
682set dummy gcc; ac_word=$2
683echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685  echo $ac_n "(cached) $ac_c" 1>&6
686else
687  if test -n "$CC"; then
688  ac_cv_prog_CC="$CC" # Let the user override the test.
689else
690  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
691  for ac_dir in $PATH; do
692    test -z "$ac_dir" && ac_dir=.
693    if test -f $ac_dir/$ac_word; then
694      ac_cv_prog_CC="gcc"
695      break
696    fi
697  done
698  IFS="$ac_save_ifs"
699fi
700fi
701CC="$ac_cv_prog_CC"
702if test -n "$CC"; then
703  echo "$ac_t""$CC" 1>&6
704else
705  echo "$ac_t""no" 1>&6
706fi
707
708if test -z "$CC"; then
709  # Extract the first word of "cc", so it can be a program name with args.
710set dummy cc; ac_word=$2
711echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
712if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713  echo $ac_n "(cached) $ac_c" 1>&6
714else
715  if test -n "$CC"; then
716  ac_cv_prog_CC="$CC" # Let the user override the test.
717else
718  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
719  ac_prog_rejected=no
720  for ac_dir in $PATH; do
721    test -z "$ac_dir" && ac_dir=.
722    if test -f $ac_dir/$ac_word; then
723      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
724        ac_prog_rejected=yes
725        continue
726      fi
727      ac_cv_prog_CC="cc"
728      break
729    fi
730  done
731  IFS="$ac_save_ifs"
732if test $ac_prog_rejected = yes; then
733  # We found a bogon in the path, so make sure we never use it.
734  set dummy $ac_cv_prog_CC
735  shift
736  if test $# -gt 0; then
737    # We chose a different compiler from the bogus one.
738    # However, it has the same basename, so the bogon will be chosen
739    # first if we set CC to just the basename; use the full file name.
740    shift
741    set dummy "$ac_dir/$ac_word" "$@"
742    shift
743    ac_cv_prog_CC="$@"
744  fi
745fi
746fi
747fi
748CC="$ac_cv_prog_CC"
749if test -n "$CC"; then
750  echo "$ac_t""$CC" 1>&6
751else
752  echo "$ac_t""no" 1>&6
753fi
754
755  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
756fi
757
758echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
759if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
760  echo $ac_n "(cached) $ac_c" 1>&6
761else
762  cat > conftest.c <<EOF
763#ifdef __GNUC__
764  yes;
765#endif
766EOF
767if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
768  ac_cv_prog_gcc=yes
769else
770  ac_cv_prog_gcc=no
771fi
772fi
773
774echo "$ac_t""$ac_cv_prog_gcc" 1>&6
775if test $ac_cv_prog_gcc = yes; then
776  GCC=yes
777  if test "${CFLAGS+set}" != set; then
778    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
779if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
780  echo $ac_n "(cached) $ac_c" 1>&6
781else
782  echo 'void f(){}' > conftest.c
783if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
784  ac_cv_prog_gcc_g=yes
785else
786  ac_cv_prog_gcc_g=no
787fi
788rm -f conftest*
789
790fi
791
792echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
793    if test $ac_cv_prog_gcc_g = yes; then
794      CFLAGS="-g -O"
795    else
796      CFLAGS="-O"
797    fi
798  fi
799else
800  GCC=
801  test "${CFLAGS+set}" = set || CFLAGS="-g"
802fi
803
804test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
805for ac_prog in $CCC c++ g++ gcc CC cxx
806do
807# Extract the first word of "$ac_prog", so it can be a program name with args.
808set dummy $ac_prog; ac_word=$2
809echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
811  echo $ac_n "(cached) $ac_c" 1>&6
812else
813  if test -n "$CXX"; then
814  ac_cv_prog_CXX="$CXX" # Let the user override the test.
815else
816  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
817  for ac_dir in $PATH; do
818    test -z "$ac_dir" && ac_dir=.
819    if test -f $ac_dir/$ac_word; then
820      ac_cv_prog_CXX="$ac_prog"
821      break
822    fi
823  done
824  IFS="$ac_save_ifs"
825fi
826fi
827CXX="$ac_cv_prog_CXX"
828if test -n "$CXX"; then
829  echo "$ac_t""$CXX" 1>&6
830else
831  echo "$ac_t""no" 1>&6
832fi
833
834test -n "$CXX" && break
835done
836test -n "$CXX" || CXX="gcc"
837
838
839echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
840if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
841  echo $ac_n "(cached) $ac_c" 1>&6
842else
843  cat > conftest.C <<EOF
844#ifdef __GNUC__
845  yes;
846#endif
847EOF
848if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
849  ac_cv_prog_gxx=yes
850else
851  ac_cv_prog_gxx=no
852fi
853fi
854
855echo "$ac_t""$ac_cv_prog_gxx" 1>&6
856if test $ac_cv_prog_gxx = yes; then
857  GXX=yes
858  if test "${CXXFLAGS+set}" != set; then
859    echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
860if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
861  echo $ac_n "(cached) $ac_c" 1>&6
862else
863  echo 'void f(){}' > conftest.cc
864if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
865  ac_cv_prog_gxx_g=yes
866else
867  ac_cv_prog_gxx_g=no
868fi
869rm -f conftest*
870
871fi
872
873echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
874    if test $ac_cv_prog_gxx_g = yes; then
875      CXXFLAGS="-g -O"
876    else
877      CXXFLAGS="-O"
878    fi
879  fi
880else
881  GXX=
882  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
883fi
884
885if test "x$GCC" != xyes && test "x$GXX" != xyes; then
886  echo "configure: warning: you better use gcc to compile factory" 1>&2
887else
888  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
889    echo "configure: warning: we will use '-O2 -fomit-frame-pointer' as default for CXXFLAGS
890                      (instead of the configure default '-g -O')" 1>&2
891  fi
892  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
893    echo "configure: warning: we will use '-O2 -fomit-frame-pointer' as default for CFLAGS
894                      (instead of the configure default '-g -O')" 1>&2
895  fi
896fi
897
898#
899# - check for some other programs.
900#
901echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
902if test -z "$CXXCPP"; then
903if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
904  echo $ac_n "(cached) $ac_c" 1>&6
905else
906  ac_ext=C
907# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
908ac_cpp='$CXXCPP $CPPFLAGS'
909ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
910ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
911  CXXCPP="${CXX-g++} -E"
912  cat > conftest.$ac_ext <<EOF
913#line 914 "configure"
914#include "confdefs.h"
915#include <stdlib.h>
916EOF
917ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
918{ (eval echo configure:919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
919ac_err=`grep -v '^ *+' conftest.out`
920if test -z "$ac_err"; then
921  :
922else
923  echo "$ac_err" >&5
924  rm -rf conftest*
925  CXXCPP=/lib/cpp
926fi
927rm -f conftest*
928  ac_cv_prog_CXXCPP="$CXXCPP"
929ac_ext=c
930# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
931ac_cpp='$CPP $CPPFLAGS'
932ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
933ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
934fi
935fi
936CXXCPP="$ac_cv_prog_CXXCPP"
937echo "$ac_t""$CXXCPP" 1>&6
938
939# Find a good install program.  We prefer a C program (faster),
940# so one script is as good as another.  But avoid the broken or
941# incompatible versions:
942# SysV /etc/install, /usr/sbin/install
943# SunOS /usr/etc/install
944# IRIX /sbin/install
945# AIX /bin/install
946# AFS /usr/afsws/bin/install, which mishandles nonexistent args
947# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
948# ./install, which can be erroneously created by make from ./install.sh.
949echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
950if test -z "$INSTALL"; then
951if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
952  echo $ac_n "(cached) $ac_c" 1>&6
953else
954    IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
955  for ac_dir in $PATH; do
956    # Account for people who put trailing slashes in PATH elements.
957    case "$ac_dir/" in
958    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
959    *)
960      # OSF1 and SCO ODT 3.0 have their own names for install.
961      for ac_prog in ginstall installbsd scoinst install; do
962        if test -f $ac_dir/$ac_prog; then
963          if test $ac_prog = install &&
964            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
965            # AIX install.  It has an incompatible calling convention.
966            # OSF/1 installbsd also uses dspmsg, but is usable.
967            :
968          else
969            ac_cv_path_install="$ac_dir/$ac_prog -c"
970            break 2
971          fi
972        fi
973      done
974      ;;
975    esac
976  done
977  IFS="$ac_save_ifs"
978
979fi
980  if test "${ac_cv_path_install+set}" = set; then
981    INSTALL="$ac_cv_path_install"
982  else
983    # As a last resort, use the slow shell script.  We don't cache a
984    # path for INSTALL within a source directory, because that will
985    # break other packages using the cache if that directory is
986    # removed, or if the path is relative.
987    INSTALL="$ac_install_sh"
988  fi
989fi
990echo "$ac_t""$INSTALL" 1>&6
991
992# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
993# It thinks the first close brace ends the variable substitution.
994test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
995
996test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
997
998# Extract the first word of "ranlib", so it can be a program name with args.
999set dummy ranlib; ac_word=$2
1000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1001if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1002  echo $ac_n "(cached) $ac_c" 1>&6
1003else
1004  if test -n "$RANLIB"; then
1005  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1006else
1007  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1008  for ac_dir in $PATH; do
1009    test -z "$ac_dir" && ac_dir=.
1010    if test -f $ac_dir/$ac_word; then
1011      ac_cv_prog_RANLIB="ranlib"
1012      break
1013    fi
1014  done
1015  IFS="$ac_save_ifs"
1016  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1017fi
1018fi
1019RANLIB="$ac_cv_prog_RANLIB"
1020if test -n "$RANLIB"; then
1021  echo "$ac_t""$RANLIB" 1>&6
1022else
1023  echo "$ac_t""no" 1>&6
1024fi
1025
1026echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1027set dummy ${MAKE-make}; ac_make=$2
1028if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1029  echo $ac_n "(cached) $ac_c" 1>&6
1030else
1031  cat > conftestmake <<\EOF
1032all:
1033        @echo 'ac_maketemp="${MAKE}"'
1034EOF
1035# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1036eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1037if test -n "$ac_maketemp"; then
1038  eval ac_cv_prog_make_${ac_make}_set=yes
1039else
1040  eval ac_cv_prog_make_${ac_make}_set=no
1041fi
1042rm -f conftestmake
1043fi
1044if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1045  echo "$ac_t""yes" 1>&6
1046  SET_MAKE=
1047else
1048  echo "$ac_t""no" 1>&6
1049  SET_MAKE="MAKE=${MAKE-make}"
1050fi
1051
1052# Extract the first word of "ar", so it can be a program name with args.
1053set dummy ar; ac_word=$2
1054echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1056  echo $ac_n "(cached) $ac_c" 1>&6
1057else
1058  if test -n "$AR"; then
1059  ac_cv_prog_AR="$AR" # Let the user override the test.
1060else
1061  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1062  for ac_dir in $PATH; do
1063    test -z "$ac_dir" && ac_dir=.
1064    if test -f $ac_dir/$ac_word; then
1065      ac_cv_prog_AR="ar"
1066      break
1067    fi
1068  done
1069  IFS="$ac_save_ifs"
1070  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="where-is-your-ar"
1071fi
1072fi
1073AR="$ac_cv_prog_AR"
1074if test -n "$AR"; then
1075  echo "$ac_t""$AR" 1>&6
1076else
1077  echo "$ac_t""no" 1>&6
1078fi
1079
1080# Extract the first word of "bison", so it can be a program name with args.
1081set dummy bison; ac_word=$2
1082echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
1084  echo $ac_n "(cached) $ac_c" 1>&6
1085else
1086  if test -n "$BISON"; then
1087  ac_cv_prog_BISON="$BISON" # Let the user override the test.
1088else
1089  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1090  for ac_dir in $PATH; do
1091    test -z "$ac_dir" && ac_dir=.
1092    if test -f $ac_dir/$ac_word; then
1093      ac_cv_prog_BISON="bison"
1094      break
1095    fi
1096  done
1097  IFS="$ac_save_ifs"
1098  test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="where-is-your-bison"
1099fi
1100fi
1101BISON="$ac_cv_prog_BISON"
1102if test -n "$BISON"; then
1103  echo "$ac_t""$BISON" 1>&6
1104else
1105  echo "$ac_t""no" 1>&6
1106fi
1107
1108
1109# get absolute path of srcdir to avoid some funny problems when
1110# feeding our results to other peoples configure via cache
1111if echo "$srcdir" | grep '^/' > /dev/null 2> /dev/null; then
1112  abssrcdir="$srcdir"
1113else
1114  abssrcdir="`pwd`/$srcdir"
1115fi
1116# Extract the first word of "mkinstalldirs", so it can be a program name with args.
1117set dummy mkinstalldirs; ac_word=$2
1118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1119if eval "test \"`echo '$''{'ac_cv_path_MKINSTALLDIRS'+set}'`\" = set"; then
1120  echo $ac_n "(cached) $ac_c" 1>&6
1121else
1122  case "$MKINSTALLDIRS" in
1123  /*)
1124  ac_cv_path_MKINSTALLDIRS="$MKINSTALLDIRS" # Let the user override the test with a path.
1125  ;;
1126  *)
1127  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1128  for ac_dir in $PATH:$abssrcdir/bin; do
1129    test -z "$ac_dir" && ac_dir=.
1130    if test -f $ac_dir/$ac_word; then
1131      ac_cv_path_MKINSTALLDIRS="$ac_dir/$ac_word"
1132      break
1133    fi
1134  done
1135  IFS="$ac_save_ifs"
1136  test -z "$ac_cv_path_MKINSTALLDIRS" && ac_cv_path_MKINSTALLDIRS="-mkdir"
1137  ;;
1138esac
1139fi
1140MKINSTALLDIRS="$ac_cv_path_MKINSTALLDIRS"
1141if test -n "$MKINSTALLDIRS"; then
1142  echo "$ac_t""$MKINSTALLDIRS" 1>&6
1143else
1144  echo "$ac_t""no" 1>&6
1145fi
1146
1147# Extract the first word of "makeheader", so it can be a program name with args.
1148set dummy makeheader; ac_word=$2
1149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1150if eval "test \"`echo '$''{'ac_cv_path_MAKEHEADER'+set}'`\" = set"; then
1151  echo $ac_n "(cached) $ac_c" 1>&6
1152else
1153  case "$MAKEHEADER" in
1154  /*)
1155  ac_cv_path_MAKEHEADER="$MAKEHEADER" # Let the user override the test with a path.
1156  ;;
1157  *)
1158  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1159  for ac_dir in $abssrcdir/bin:$PATH; do
1160    test -z "$ac_dir" && ac_dir=.
1161    if test -f $ac_dir/$ac_word; then
1162      ac_cv_path_MAKEHEADER="$ac_dir/$ac_word"
1163      break
1164    fi
1165  done
1166  IFS="$ac_save_ifs"
1167  ;;
1168esac
1169fi
1170MAKEHEADER="$ac_cv_path_MAKEHEADER"
1171if test -n "$MAKEHEADER"; then
1172  echo "$ac_t""$MAKEHEADER" 1>&6
1173else
1174  echo "$ac_t""no" 1>&6
1175fi
1176
1177
1178#
1179# - check for libraries.
1180#
1181if test "x$gmp_in_installation" != xyes; then
1182  echo $ac_n "checking for -lgmp""... $ac_c" 1>&6
1183ac_lib_var=`echo gmp'_'mpz_init | tr './+\055' '__p_'`
1184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1185  echo $ac_n "(cached) $ac_c" 1>&6
1186else
1187  ac_save_LIBS="$LIBS"
1188LIBS="-lgmp  $LIBS"
1189cat > conftest.$ac_ext <<EOF
1190#line 1191 "configure"
1191#include "confdefs.h"
1192/* Override any gcc2 internal prototype to avoid an error.  */
1193/* We use char because int might match the return type of a gcc2
1194    builtin and then its argument prototype would still apply.  */
1195char mpz_init();
1196
1197int main() { return 0; }
1198int t() {
1199mpz_init()
1200; return 0; }
1201EOF
1202if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1203  rm -rf conftest*
1204  eval "ac_cv_lib_$ac_lib_var=yes"
1205else
1206  rm -rf conftest*
1207  eval "ac_cv_lib_$ac_lib_var=no"
1208fi
1209rm -f conftest*
1210LIBS="$ac_save_LIBS"
1211
1212fi
1213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1214  echo "$ac_t""yes" 1>&6
1215    ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1216  cat >> confdefs.h <<EOF
1217#define $ac_tr_lib 1
1218EOF
1219
1220  LIBS="-lgmp $LIBS"
1221
1222else
1223  echo "$ac_t""no" 1>&6
1224fi
1225
1226fi
1227echo $ac_n "checking for -lm""... $ac_c" 1>&6
1228ac_lib_var=`echo m'_'sqrt | tr './+\055' '__p_'`
1229if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1230  echo $ac_n "(cached) $ac_c" 1>&6
1231else
1232  ac_save_LIBS="$LIBS"
1233LIBS="-lm  $LIBS"
1234cat > conftest.$ac_ext <<EOF
1235#line 1236 "configure"
1236#include "confdefs.h"
1237/* Override any gcc2 internal prototype to avoid an error.  */
1238/* We use char because int might match the return type of a gcc2
1239    builtin and then its argument prototype would still apply.  */
1240char sqrt();
1241
1242int main() { return 0; }
1243int t() {
1244sqrt()
1245; return 0; }
1246EOF
1247if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1248  rm -rf conftest*
1249  eval "ac_cv_lib_$ac_lib_var=yes"
1250else
1251  rm -rf conftest*
1252  eval "ac_cv_lib_$ac_lib_var=no"
1253fi
1254rm -f conftest*
1255LIBS="$ac_save_LIBS"
1256
1257fi
1258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1259  echo "$ac_t""yes" 1>&6
1260    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1261  cat >> confdefs.h <<EOF
1262#define $ac_tr_lib 1
1263EOF
1264
1265  LIBS="-lm $LIBS"
1266
1267else
1268  echo "$ac_t""no" 1>&6
1269fi
1270
1271
1272#
1273# - check for header files.
1274#
1275ac_ext=C
1276# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1277ac_cpp='$CXXCPP $CPPFLAGS'
1278ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1279ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1280
1281
1282if test "x$gmp_in_installation" != xyes; then
1283  for ac_hdr in gmp.h
1284do
1285ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1286echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1287if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1288  echo $ac_n "(cached) $ac_c" 1>&6
1289else
1290  cat > conftest.$ac_ext <<EOF
1291#line 1292 "configure"
1292#include "confdefs.h"
1293#include <$ac_hdr>
1294EOF
1295ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1296{ (eval echo configure:1297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1297ac_err=`grep -v '^ *+' conftest.out`
1298if test -z "$ac_err"; then
1299  rm -rf conftest*
1300  eval "ac_cv_header_$ac_safe=yes"
1301else
1302  echo "$ac_err" >&5
1303  rm -rf conftest*
1304  eval "ac_cv_header_$ac_safe=no"
1305fi
1306rm -f conftest*
1307fi
1308if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1309  echo "$ac_t""yes" 1>&6
1310    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1311  cat >> confdefs.h <<EOF
1312#define $ac_tr_hdr 1
1313EOF
1314 
1315else
1316  echo "$ac_t""no" 1>&6
1317{ echo "configure: error: gmp.h not found.  Use option --with-gmp to specify path" 1>&2; exit 1; }
1318fi
1319done
1320
1321fi
1322
1323for ac_hdr in stdio.h stdlib.h string.h time.h math.h
1324do
1325ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1326echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1327if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1328  echo $ac_n "(cached) $ac_c" 1>&6
1329else
1330  cat > conftest.$ac_ext <<EOF
1331#line 1332 "configure"
1332#include "confdefs.h"
1333#include <$ac_hdr>
1334EOF
1335ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1336{ (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1337ac_err=`grep -v '^ *+' conftest.out`
1338if test -z "$ac_err"; then
1339  rm -rf conftest*
1340  eval "ac_cv_header_$ac_safe=yes"
1341else
1342  echo "$ac_err" >&5
1343  rm -rf conftest*
1344  eval "ac_cv_header_$ac_safe=no"
1345fi
1346rm -f conftest*
1347fi
1348if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1349  echo "$ac_t""yes" 1>&6
1350    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1351  cat >> confdefs.h <<EOF
1352#define $ac_tr_hdr 1
1353EOF
1354 
1355else
1356  echo "$ac_t""no" 1>&6
1357{ echo "configure: error: standard C header files not found" 1>&2; exit 1; }
1358fi
1359done
1360
1361
1362if test "x$enable_streamio" != xno; then
1363  for ac_hdr in iostream.h strstream.h fstream.h
1364do
1365ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1366echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1367if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1368  echo $ac_n "(cached) $ac_c" 1>&6
1369else
1370  cat > conftest.$ac_ext <<EOF
1371#line 1372 "configure"
1372#include "confdefs.h"
1373#include <$ac_hdr>
1374EOF
1375ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1376{ (eval echo configure:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1377ac_err=`grep -v '^ *+' conftest.out`
1378if test -z "$ac_err"; then
1379  rm -rf conftest*
1380  eval "ac_cv_header_$ac_safe=yes"
1381else
1382  echo "$ac_err" >&5
1383  rm -rf conftest*
1384  eval "ac_cv_header_$ac_safe=no"
1385fi
1386rm -f conftest*
1387fi
1388if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1389  echo "$ac_t""yes" 1>&6
1390    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1391  cat >> confdefs.h <<EOF
1392#define $ac_tr_hdr 1
1393EOF
1394 
1395else
1396  echo "$ac_t""no" 1>&6
1397{ echo "configure: error: C++ header files not found" 1>&2; exit 1; }
1398fi
1399done
1400
1401  for ac_hdr in ctype.h
1402do
1403ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1404echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1405if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1406  echo $ac_n "(cached) $ac_c" 1>&6
1407else
1408  cat > conftest.$ac_ext <<EOF
1409#line 1410 "configure"
1410#include "confdefs.h"
1411#include <$ac_hdr>
1412EOF
1413ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414{ (eval echo configure:1415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415ac_err=`grep -v '^ *+' conftest.out`
1416if test -z "$ac_err"; then
1417  rm -rf conftest*
1418  eval "ac_cv_header_$ac_safe=yes"
1419else
1420  echo "$ac_err" >&5
1421  rm -rf conftest*
1422  eval "ac_cv_header_$ac_safe=no"
1423fi
1424rm -f conftest*
1425fi
1426if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1427  echo "$ac_t""yes" 1>&6
1428    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1429  cat >> confdefs.h <<EOF
1430#define $ac_tr_hdr 1
1431EOF
1432 
1433else
1434  echo "$ac_t""no" 1>&6
1435{ echo "configure: error: standard C header files not found" 1>&2; exit 1; }
1436fi
1437done
1438
1439fi
1440
1441if test "x$enable_timing" != xno; then
1442  for ac_hdr in sys/param.h sys/times.h
1443do
1444ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1445echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1446if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1447  echo $ac_n "(cached) $ac_c" 1>&6
1448else
1449  cat > conftest.$ac_ext <<EOF
1450#line 1451 "configure"
1451#include "confdefs.h"
1452#include <$ac_hdr>
1453EOF
1454ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1455{ (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1456ac_err=`grep -v '^ *+' conftest.out`
1457if test -z "$ac_err"; then
1458  rm -rf conftest*
1459  eval "ac_cv_header_$ac_safe=yes"
1460else
1461  echo "$ac_err" >&5
1462  rm -rf conftest*
1463  eval "ac_cv_header_$ac_safe=no"
1464fi
1465rm -f conftest*
1466fi
1467if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1468  echo "$ac_t""yes" 1>&6
1469    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1470  cat >> confdefs.h <<EOF
1471#define $ac_tr_hdr 1
1472EOF
1473 
1474else
1475  echo "$ac_t""no" 1>&6
1476{ echo "configure: error: sys/times.h or sys/param.h not found.  Try
1477                  configure --disable-timing" 1>&2; exit 1; }
1478fi
1479done
1480
1481fi
1482
1483#
1484# - check for compiler characteristics.
1485#
1486
1487# cross-compiling ?!
1488# If we cannot run a trivial program, we must be cross compiling.
1489echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1490if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1491  echo $ac_n "(cached) $ac_c" 1>&6
1492else
1493  if test "$cross_compiling" = yes; then
1494  ac_cv_c_cross=yes
1495else
1496cat > conftest.$ac_ext <<EOF
1497#line 1498 "configure"
1498#include "confdefs.h"
1499#ifdef __cplusplus
1500extern "C" void exit(int);
1501#endif
1502main(){return(0);}
1503EOF
1504{ (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1505if test -s conftest && (./conftest; exit) 2>/dev/null; then
1506  ac_cv_c_cross=no
1507else
1508  ac_cv_c_cross=yes
1509fi
1510fi
1511rm -fr conftest*
1512fi
1513
1514echo "$ac_t""$ac_cv_c_cross" 1>&6
1515cross_compiling=$ac_cv_c_cross
1516
1517if test "x$cross_compiling" = xyes; then
1518  echo "configure: warning: you better specify a cache file to get the values for
1519                    cross-compiling right (call configure --cache-file=target.cache)" 1>&2
1520fi
1521
1522echo $ac_n "checking for working const""... $ac_c" 1>&6
1523if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1524  echo $ac_n "(cached) $ac_c" 1>&6
1525else
1526  cat > conftest.$ac_ext <<EOF
1527#line 1528 "configure"
1528#include "confdefs.h"
1529
1530int main() { return 0; }
1531int t() {
1532
1533/* Ultrix mips cc rejects this.  */
1534typedef int charset[2]; const charset x;
1535/* SunOS 4.1.1 cc rejects this.  */
1536char const *const *ccp;
1537char **p;
1538/* NEC SVR4.0.2 mips cc rejects this.  */
1539struct point {int x, y;};
1540static struct point const zero = {0,0};
1541/* AIX XL C 1.02.0.0 rejects this.
1542   It does not let you subtract one const X* pointer from another in an arm
1543   of an if-expression whose if-part is not a constant expression */
1544const char *g = "string";
1545ccp = &g + (g ? g-g : 0);
1546/* HPUX 7.0 cc rejects these. */
1547++ccp;
1548p = (char**) ccp;
1549ccp = (char const *const *) p;
1550{ /* SCO 3.2v4 cc rejects this.  */
1551  char *t;
1552  char const *s = 0 ? (char *) 0 : (char const *) 0;
1553
1554  *t++ = 0;
1555}
1556{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1557  int x[] = {25, 17};
1558  const int *foo = &x[0];
1559  ++foo;
1560}
1561{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1562  typedef const int *iptr;
1563  iptr p = 0;
1564  ++p;
1565}
1566{ /* AIX XL C 1.02.0.0 rejects this saying
1567     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1568  struct s { int j; const int *ap[3]; };
1569  struct s *b; b->j = 5;
1570}
1571{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1572  const int foo = 10;
1573}
1574
1575; return 0; }
1576EOF
1577if { (eval echo configure:1578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1578  rm -rf conftest*
1579  ac_cv_c_const=yes
1580else
1581  rm -rf conftest*
1582  ac_cv_c_const=no
1583fi
1584rm -f conftest*
1585
1586fi
1587
1588echo "$ac_t""$ac_cv_c_const" 1>&6
1589if test $ac_cv_c_const = no; then
1590  cat >> confdefs.h <<\EOF
1591#define const
1592EOF
1593
1594fi
1595
1596echo $ac_n "checking for inline""... $ac_c" 1>&6
1597if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1598  echo $ac_n "(cached) $ac_c" 1>&6
1599else
1600  ac_cv_c_inline=no
1601for ac_kw in inline __inline__ __inline; do
1602  cat > conftest.$ac_ext <<EOF
1603#line 1604 "configure"
1604#include "confdefs.h"
1605
1606int main() { return 0; }
1607int t() {
1608} $ac_kw foo() {
1609; return 0; }
1610EOF
1611if { (eval echo configure:1612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1612  rm -rf conftest*
1613  ac_cv_c_inline=$ac_kw; break
1614fi
1615rm -f conftest*
1616
1617done
1618
1619fi
1620
1621echo "$ac_t""$ac_cv_c_inline" 1>&6
1622case "$ac_cv_c_inline" in
1623  inline | yes) ;;
1624  no) cat >> confdefs.h <<\EOF
1625#define inline
1626EOF
1627 ;;
1628  *)  cat >> confdefs.h <<EOF
1629#define inline $ac_cv_c_inline
1630EOF
1631 ;;
1632esac
1633
1634
1635# arithmetic shift
1636echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6
1637if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
1638  echo $ac_n "(cached) $ac_c" 1>&6
1639else
1640   if test "$cross_compiling" = yes; then
1641  ac_cv_shift=no
1642else
1643cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646#ifdef __cplusplus
1647extern "C" void exit(int);
1648#endif
1649 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
1650EOF
1651{ (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1652if test -s conftest && (./conftest; exit) 2>/dev/null; then
1653  ac_cv_shift=yes
1654else
1655  ac_cv_shift=no
1656fi
1657fi
1658rm -fr conftest*
1659fi
1660
1661if test "x$ac_cv_shift" = xyes; then   
1662  echo "$ac_t""yes" 1>&6
1663else
1664  echo "$ac_t""no" 1>&6
1665fi
1666
1667#
1668# - paths.
1669#
1670
1671# we have to get datadir explicitely for config.h
1672save_prefix="$prefix"
1673test "x$prefix" = xNONE && prefix="$ac_default_prefix"
1674expl_datadir=`eval echo "$datadir"`
1675prefix="$save_prefix"
1676
1677if test "x$with_Singular" = xyes; then
1678  gftabledir='${datadir}/Singular/gftables'
1679  expl_gftabledir="$expl_datadir/Singular/gftables"
1680  templatedir='${includedir}/templates'
1681else
1682  gftabledir='${datadir}/factory/gftables'
1683  expl_gftabledir="$expl_datadir/factory/gftables"
1684  templatedir='${includedir}/templates'
1685fi
1686
1687#
1688# - the name of the game and the targets to create.
1689#
1690if test "x$with_Singular" = xyes; then
1691  libfactory=libsingcf.a
1692
1693  factorysrc='$(basefactorysrc) $(singfactorysrc)'
1694  factoryincl='$(basefactoryincl) $(singfactoryincl)'
1695  memmansrc=
1696  memmanincl=
1697
1698  alltargets=cf
1699  installtargets=installcf
1700  uninstalltargets=uninstallcf
1701else
1702  libfactory=libcf.a
1703
1704  factorysrc='$(basefactorysrc)'
1705  factoryincl='$(basefactoryincl)'
1706  memmansrc='$(basememmansrc)'
1707  memmanincl=
1708
1709  alltargets=cf
1710  installtargets=installcf
1711  uninstalltargets=uninstallcf
1712fi
1713
1714#
1715# - set defines and variables according to our tests.
1716#
1717
1718# CFLAGS
1719if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
1720  CFLAGS="-O2 -fomit-frame-pointer"
1721fi
1722
1723# CXXFLAGS
1724if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
1725  CXXFLAGS="-O2 -fomit-frame-pointer"
1726fi
1727
1728# ARFLAGS
1729test "${ARFLAGS+set}" = set || ARFLAGS=cr
1730
1731# Singular
1732if test "x$with_Singular" = xyes; then
1733  cat >> confdefs.h <<\EOF
1734#define SINGULAR 1
1735EOF
1736
1737fi
1738
1739# arithmetic shift
1740if test "x$ac_cv_shift" = xyes; then   
1741  cat >> confdefs.h <<\EOF
1742#define HAS_ARITHMETIC_SHIFT 1
1743EOF
1744
1745fi
1746
1747# gmp-stuff.  we must not set these flags before the tests
1748# are finished!
1749if test "x$gmp_in_installation" = xyes; then
1750  CPPFLAGS="-I\$(includedir) $CPPFLAGS"
1751  LDFLAGS="-L\$(libdir) -lgmp $LDFLAGS"
1752fi
1753
1754# memory manager
1755if test "x$with_memman" != xno; then
1756  alltargets="$alltargets mem"
1757  installtargets="$installtargets installmem"
1758  uninstalltargets="$uninstalltargets uninstallmem"
1759  cat >> confdefs.h <<\EOF
1760#define USE_MEMUTIL 1
1761EOF
1762
1763
1764  if test "x$with_memman" != xnew; then
1765    memmansrc="$memmansrc \$(oldmemmansrc)"
1766    memmanincl='$(oldmemmanincl)'
1767    cat >> confdefs.h <<\EOF
1768#define USE_OLD_MEMMAN 1
1769EOF
1770
1771  else
1772    memmansrc="$memmansrc \$(newmemmansrc)"
1773    memmanincl='$(newmemmanincl)'
1774
1775    if test "x$enable_memdebug" = xfull; then
1776      cat >> confdefs.h <<\EOF
1777#define MDEBUG 1
1778EOF
1779
1780    elif test "x$enable_memdebug" != xno; then
1781      cat >> confdefs.h <<\EOF
1782#define MDEBUG 0
1783EOF
1784
1785    fi
1786  fi
1787fi
1788
1789# iostream
1790if test "x$enable_streamio" = xno; then
1791  cat >> confdefs.h <<\EOF
1792#define NOSTREAMIO 1
1793EOF
1794
1795else
1796  factorysrc="$factorysrc \$(useiofactorysrc)"
1797  factoryincl="$factoryincl \$(useiofactoryincl)"
1798fi
1799
1800# assertions
1801if test "x$enable_assertions" = xno; then
1802  cat >> confdefs.h <<\EOF
1803#define NOASSERT 1
1804EOF
1805
1806fi
1807
1808#
1809# - debugoutput and timing magic.
1810#
1811# For those who do not like this: As long as you do not specify
1812# --enable-timing or --enable-debugoutput the following code will
1813# not be executed.
1814#
1815timingtargets=/dev/null
1816debouttargets=/dev/null
1817debtimingtargets=/dev/null
1818enhanceddebtime=no
1819
1820# timing
1821if test "x$enable_timing" != xno; then
1822  if test "x$enable_timing" = xyes; then
1823    cat >> confdefs.h <<\EOF
1824#define TIMING 1
1825EOF
1826
1827  else
1828    echo "$enable_timing" | tr ',' '\n' | sed 's/\..*$//' | sort > conftest.time
1829    timingtargets=conftest.time
1830    enhanceddebtime=yes
1831  fi
1832fi
1833
1834# debugoutput
1835if test "x$enable_debugoutput" != xno; then
1836  if test "x$enable_debugoutput" = xyes; then
1837    cat >> confdefs.h <<\EOF
1838#define DEBUGOUTPUT 1
1839EOF
1840
1841  else
1842    echo "$enable_debugoutput" | tr ',' '\n' | sed 's/\..*$//' | sort > conftest.debout
1843    debouttargets=conftest.debout
1844    enhanceddebtime=yes
1845  fi
1846fi
1847
1848# create makefile fragments
1849if test "x$enhanceddebtime" = xyes; then
1850  # get the intersection of timingtargets and debouttargets
1851  sort "$timingtargets" "$debouttargets" | uniq -d > conftest.debtime
1852  if test -s conftest.debtime; then
1853    debtimingtargets=conftest.debtime
1854  fi
1855  if test "x$timingtargets" != x/dev/null; then
1856    # get difference of timingtargets and debtimingtargets
1857    sort "$timingtargets" "$debtimingtargets" | uniq -u |
1858      while read line; do
1859        echo "$line.o: $line.cc config.h;" '$(CXX) -c $< -DTIMING $(LIBCXXFLAGS) -o $@'
1860      done > conftest.tmp
1861    mv conftest.tmp "$timingtargets"
1862  fi
1863  if test "x$debouttargets" != x/dev/null; then
1864    # get difference of debouttargets and debtimingtargets
1865    sort "$debouttargets" "$debtimingtargets" | uniq -u |
1866      while read line; do
1867        echo "$line.o: $line.cc config.h;" '$(CXX) -c $< -DDEBUGOUTPUT $(LIBCXXFLAGS) -o $@'
1868      done > conftest.tmp
1869    mv conftest.tmp "$debouttargets"
1870  fi
1871  if test "x$debtimingtargets" != x/dev/null; then
1872    while read line; do
1873      echo "$line.o: $line.cc config.h;" '$(CXX) -c $< -DTIMING -DDEBUGOUTPUT $(LIBCXXFLAGS) -o $@'
1874    done < "$debtimingtargets" > conftest.tmp
1875    mv conftest.tmp "$debtimingtargets"
1876  fi
1877fi
1878
1879#
1880# - complete and substitute variables, defines.
1881#
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905cat >> confdefs.h <<EOF
1906#define FACTORYVERSION "$factory_version"
1907EOF
1908
1909cat >> confdefs.h <<EOF
1910#define GFTABLEDIR "$expl_gftabledir"
1911EOF
1912
1913
1914trap '' 1 2 15
1915cat > confcache <<\EOF
1916# This file is a shell script that caches the results of configure
1917# tests run on this system so they can be shared between configure
1918# scripts and configure runs.  It is not useful on other systems.
1919# If it contains results you don't want to keep, you may remove or edit it.
1920#
1921# By default, configure uses ./config.cache as the cache file,
1922# creating it if it does not exist already.  You can give configure
1923# the --cache-file=FILE option to use a different cache file; that is
1924# what configure does when it calls configure scripts in
1925# subdirectories, so they share the cache.
1926# Giving --cache-file=/dev/null disables caching, for debugging configure.
1927# config.status only pays attention to the cache file if you give it the
1928# --recheck option to rerun configure.
1929#
1930EOF
1931# Ultrix sh set writes to stderr and can't be redirected directly,
1932# and sets the high bit in the cache file unless we assign to the vars.
1933(set) 2>&1 |
1934  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1935  >> confcache
1936if cmp -s $cache_file confcache; then
1937  :
1938else
1939  if test -w $cache_file; then
1940    echo "updating cache $cache_file"
1941    cat confcache > $cache_file
1942  else
1943    echo "not updating unwritable cache $cache_file"
1944  fi
1945fi
1946rm -f confcache
1947
1948trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1949
1950test "x$prefix" = xNONE && prefix=$ac_default_prefix
1951# Let make expand exec_prefix.
1952test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1953
1954# Any assignment to VPATH causes Sun make to only execute
1955# the first set of double-colon rules, so remove it if not needed.
1956# If there is a colon in the path, we need to keep it.
1957if test "x$srcdir" = x.; then
1958  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1959fi
1960
1961trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1962
1963DEFS=-DHAVE_CONFIG_H
1964
1965# Without the "./", some shells look in PATH for config.status.
1966: ${CONFIG_STATUS=./config.status}
1967
1968echo creating $CONFIG_STATUS
1969rm -f $CONFIG_STATUS
1970cat > $CONFIG_STATUS <<EOF
1971#! /bin/sh
1972# Generated automatically by configure.
1973# Run this file to recreate the current configuration.
1974# This directory was configured as follows,
1975# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1976#
1977# $0 $ac_configure_args
1978#
1979# Compiler output produced by configure, useful for debugging
1980# configure, is in ./config.log if it exists.
1981
1982ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1983for ac_option
1984do
1985  case "\$ac_option" in
1986  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1987    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1988    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1989  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1990    echo "$CONFIG_STATUS generated by autoconf version 2.10"
1991    exit 0 ;;
1992  -help | --help | --hel | --he | --h)
1993    echo "\$ac_cs_usage"; exit 0 ;;
1994  *) echo "\$ac_cs_usage"; exit 1 ;;
1995  esac
1996done
1997
1998ac_given_srcdir=$srcdir
1999ac_given_INSTALL="$INSTALL"
2000
2001trap 'rm -fr `echo "GNUmakefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2002EOF
2003cat >> $CONFIG_STATUS <<EOF
2004
2005# Protect against being on the right side of a sed subst in config.status.
2006sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2007 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2008$ac_vpsub
2009$extrasub
2010s%@CFLAGS@%$CFLAGS%g
2011s%@CPPFLAGS@%$CPPFLAGS%g
2012s%@CXXFLAGS@%$CXXFLAGS%g
2013s%@DEFS@%$DEFS%g
2014s%@LDFLAGS@%$LDFLAGS%g
2015s%@LIBS@%$LIBS%g
2016s%@exec_prefix@%$exec_prefix%g
2017s%@prefix@%$prefix%g
2018s%@program_transform_name@%$program_transform_name%g
2019s%@bindir@%$bindir%g
2020s%@sbindir@%$sbindir%g
2021s%@libexecdir@%$libexecdir%g
2022s%@datadir@%$datadir%g
2023s%@sysconfdir@%$sysconfdir%g
2024s%@sharedstatedir@%$sharedstatedir%g
2025s%@localstatedir@%$localstatedir%g
2026s%@libdir@%$libdir%g
2027s%@includedir@%$includedir%g
2028s%@oldincludedir@%$oldincludedir%g
2029s%@infodir@%$infodir%g
2030s%@mandir@%$mandir%g
2031s%@CC@%$CC%g
2032s%@CXX@%$CXX%g
2033s%@CXXCPP@%$CXXCPP%g
2034s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2035s%@INSTALL_DATA@%$INSTALL_DATA%g
2036s%@RANLIB@%$RANLIB%g
2037s%@SET_MAKE@%$SET_MAKE%g
2038s%@AR@%$AR%g
2039s%@BISON@%$BISON%g
2040s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
2041s%@MAKEHEADER@%$MAKEHEADER%g
2042s%@gftabledir@%$gftabledir%g
2043s%@templatedir@%$templatedir%g
2044s%@factory_version@%$factory_version%g
2045s%@libfactory@%$libfactory%g
2046s%@ARFLAGS@%$ARFLAGS%g
2047s%@MAKEHEADERFLAGS@%$MAKEHEADERFLAGS%g
2048s%@factorysrc@%$factorysrc%g
2049s%@factoryincl@%$factoryincl%g
2050s%@memmansrc@%$memmansrc%g
2051s%@memmanincl@%$memmanincl%g
2052s%@alltargets@%$alltargets%g
2053s%@installtargets@%$installtargets%g
2054s%@uninstalltargets@%$uninstalltargets%g
2055/@timingtargets@/r $timingtargets
2056s%@timingtargets@%%g
2057/@debouttargets@/r $debouttargets
2058s%@debouttargets@%%g
2059/@debtimingtargets@/r $debtimingtargets
2060s%@debtimingtargets@%%g
2061
2062CEOF
2063EOF
2064cat >> $CONFIG_STATUS <<EOF
2065
2066CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile"}
2067EOF
2068cat >> $CONFIG_STATUS <<\EOF
2069for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2070  # Support "outfile[:infile]", defaulting infile="outfile.in".
2071  case "$ac_file" in
2072  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2073       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2074  *) ac_file_in="${ac_file}.in" ;;
2075  esac
2076
2077  # Adjust relative srcdir, etc. for subdirectories.
2078
2079  # Remove last slash and all that follows it.  Not all systems have dirname.
2080  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2081  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2082    # The file is in a subdirectory.
2083    test ! -d "$ac_dir" && mkdir "$ac_dir"
2084    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2085    # A "../" for each directory in $ac_dir_suffix.
2086    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2087  else
2088    ac_dir_suffix= ac_dots=
2089  fi
2090
2091  case "$ac_given_srcdir" in
2092  .)  srcdir=.
2093      if test -z "$ac_dots"; then top_srcdir=.
2094      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2095  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2096  *) # Relative path.
2097    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2098    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2099  esac
2100
2101  case "$ac_given_INSTALL" in
2102  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2103  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2104  esac
2105  echo creating "$ac_file"
2106  rm -f "$ac_file"
2107  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2108  case "$ac_file" in
2109  *Makefile*) ac_comsub="1i\\
2110# $configure_input" ;;
2111  *) ac_comsub= ;;
2112  esac
2113  sed -e "$ac_comsub
2114s%@configure_input@%$configure_input%g
2115s%@srcdir@%$srcdir%g
2116s%@top_srcdir@%$top_srcdir%g
2117s%@INSTALL@%$INSTALL%g
2118" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2119fi; done
2120rm -f conftest.subs
2121
2122# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2123# NAME is the cpp macro being defined and VALUE is the value it is being given.
2124#
2125# ac_d sets the value in "#define NAME VALUE" lines.
2126ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
2127ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
2128ac_dC='\3'
2129ac_dD='%g'
2130# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2131ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2132ac_uB='\([      ]\)%\1#\2define\3'
2133ac_uC=' '
2134ac_uD='\4%g'
2135# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2136ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
2137ac_eB='$%\1#\2define\3'
2138ac_eC=' '
2139ac_eD='%g'
2140
2141CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
2142for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2143  # Support "outfile[:infile]", defaulting infile="outfile.in".
2144  case "$ac_file" in
2145  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2146       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2147  *) ac_file_in="${ac_file}.in" ;;
2148  esac
2149
2150  echo creating $ac_file
2151
2152  rm -f conftest.frag conftest.in conftest.out
2153  cp $ac_given_srcdir/$ac_file_in conftest.in
2154
2155EOF
2156
2157# Transform confdefs.h into a sed script conftest.vals that substitutes
2158# the proper values into config.h.in to produce config.h.  And first:
2159# Protect against being on the right side of a sed subst in config.status.
2160# Protect against being in an unquoted here document in config.status.
2161rm -f conftest.vals
2162cat > conftest.hdr <<\EOF
2163s/[\\&%]/\\&/g
2164s%[\\$`]%\\&%g
2165s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2166s%ac_d%ac_u%gp
2167s%ac_u%ac_e%gp
2168EOF
2169sed -n -f conftest.hdr confdefs.h > conftest.vals
2170rm -f conftest.hdr
2171
2172# This sed command replaces #undef with comments.  This is necessary, for
2173# example, in the case of _POSIX_SOURCE, which is predefined and required
2174# on some systems where configure will not decide to define it.
2175cat >> conftest.vals <<\EOF
2176s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2177EOF
2178
2179# Break up conftest.vals because some shells have a limit on
2180# the size of here documents, and old seds have small limits too.
2181# Maximum number of lines to put in a single here document.
2182ac_max_here_lines=12
2183
2184rm -f conftest.tail
2185while :
2186do
2187  ac_lines=`grep -c . conftest.vals`
2188  # grep -c gives empty output for an empty file on some AIX systems.
2189  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2190  # Write a limited-size here document to conftest.frag.
2191  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2192  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2193  echo 'CEOF
2194  sed -f conftest.frag conftest.in > conftest.out
2195  rm -f conftest.in
2196  mv conftest.out conftest.in
2197' >> $CONFIG_STATUS
2198  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2199  rm -f conftest.vals
2200  mv conftest.tail conftest.vals
2201done
2202rm -f conftest.vals
2203
2204cat >> $CONFIG_STATUS <<\EOF
2205  rm -f conftest.frag conftest.h
2206  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2207  cat conftest.in >> conftest.h
2208  rm -f conftest.in
2209  if cmp -s $ac_file conftest.h 2>/dev/null; then
2210    echo "$ac_file is unchanged"
2211    rm -f conftest.h
2212  else
2213    # Remove last slash and all that follows it.  Not all systems have dirname.
2214      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2215      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2216      # The file is in a subdirectory.
2217      test ! -d "$ac_dir" && mkdir "$ac_dir"
2218    fi
2219    rm -f $ac_file
2220    mv conftest.h $ac_file
2221  fi
2222fi; done
2223
2224
2225
2226exit 0
2227EOF
2228chmod +x $CONFIG_STATUS
2229rm -fr confdefs* $ac_clean_files
2230test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2231
Note: See TracBrowser for help on using the repository browser.