source: git/configure @ 64c6d1

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