source: git/configure @ a6a8b76

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