source: git/configure @ d815c9

fieker-DuValspielwiese
Last change on this file since d815c9 was d815c9, checked in by Hans Schönemann <hannes@…>, 26 years ago
* hannes: removed bash-features: export xx=<val> git-svn-id: file:///usr/local/Singular/svn/trunk@2030 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 68.1 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
566SINGULAR_MAJOR_VERSION=1
567SINGULAR_MINOR_VERSION=2
568SINGULAR_SUB_VERSION=0
569SINGULAR_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}"
570VERSION_DATE="June 1998"
571export SINGULAR_MINOR_VERSION
572export SINGULAR_MAJOR_VERSION
573export SINGULAR_SUB_VERSION
574export SINGULAR_VERSION
575export VERSION_DATE
576
577
578
579
580
581# Extract the first word of "gcc", so it can be a program name with args.
582set dummy gcc; ac_word=$2
583echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584echo "configure:585: checking for $ac_word" >&5
585if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586  echo $ac_n "(cached) $ac_c" 1>&6
587else
588  if test -n "$CC"; then
589  ac_cv_prog_CC="$CC" # Let the user override the test.
590else
591  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
592  for ac_dir in $PATH; do
593    test -z "$ac_dir" && ac_dir=.
594    if test -f $ac_dir/$ac_word; then
595      ac_cv_prog_CC="gcc"
596      break
597    fi
598  done
599  IFS="$ac_save_ifs"
600fi
601fi
602CC="$ac_cv_prog_CC"
603if test -n "$CC"; then
604  echo "$ac_t""$CC" 1>&6
605else
606  echo "$ac_t""no" 1>&6
607fi
608
609if test -z "$CC"; then
610  # Extract the first word of "cc", so it can be a program name with args.
611set dummy cc; ac_word=$2
612echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613echo "configure:614: checking for $ac_word" >&5
614if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615  echo $ac_n "(cached) $ac_c" 1>&6
616else
617  if test -n "$CC"; then
618  ac_cv_prog_CC="$CC" # Let the user override the test.
619else
620  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
621  ac_prog_rejected=no
622  for ac_dir in $PATH; do
623    test -z "$ac_dir" && ac_dir=.
624    if test -f $ac_dir/$ac_word; then
625      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
626        ac_prog_rejected=yes
627        continue
628      fi
629      ac_cv_prog_CC="cc"
630      break
631    fi
632  done
633  IFS="$ac_save_ifs"
634if test $ac_prog_rejected = yes; then
635  # We found a bogon in the path, so make sure we never use it.
636  set dummy $ac_cv_prog_CC
637  shift
638  if test $# -gt 0; then
639    # We chose a different compiler from the bogus one.
640    # However, it has the same basename, so the bogon will be chosen
641    # first if we set CC to just the basename; use the full file name.
642    shift
643    set dummy "$ac_dir/$ac_word" "$@"
644    shift
645    ac_cv_prog_CC="$@"
646  fi
647fi
648fi
649fi
650CC="$ac_cv_prog_CC"
651if test -n "$CC"; then
652  echo "$ac_t""$CC" 1>&6
653else
654  echo "$ac_t""no" 1>&6
655fi
656
657  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
658fi
659
660echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
661echo "configure:662: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
662
663ac_ext=c
664# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
665ac_cpp='$CPP $CPPFLAGS'
666ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
667ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
668cross_compiling=$ac_cv_prog_cc_cross
669
670cat > conftest.$ac_ext <<EOF
671#line 672 "configure"
672#include "confdefs.h"
673main(){return(0);}
674EOF
675if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
676  ac_cv_prog_cc_works=yes
677  # If we can't run a trivial program, we are probably using a cross compiler.
678  if (./conftest; exit) 2>/dev/null; then
679    ac_cv_prog_cc_cross=no
680  else
681    ac_cv_prog_cc_cross=yes
682  fi
683else
684  echo "configure: failed program was:" >&5
685  cat conftest.$ac_ext >&5
686  ac_cv_prog_cc_works=no
687fi
688rm -fr conftest*
689
690echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
691if test $ac_cv_prog_cc_works = no; then
692  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
693fi
694echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
695echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
696echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
697cross_compiling=$ac_cv_prog_cc_cross
698
699echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
700echo "configure:701: checking whether we are using GNU C" >&5
701if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
702  echo $ac_n "(cached) $ac_c" 1>&6
703else
704  cat > conftest.c <<EOF
705#ifdef __GNUC__
706  yes;
707#endif
708EOF
709if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
710  ac_cv_prog_gcc=yes
711else
712  ac_cv_prog_gcc=no
713fi
714fi
715
716echo "$ac_t""$ac_cv_prog_gcc" 1>&6
717
718if test $ac_cv_prog_gcc = yes; then
719  GCC=yes
720  ac_test_CFLAGS="${CFLAGS+set}"
721  ac_save_CFLAGS="$CFLAGS"
722  CFLAGS=
723  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
724echo "configure:725: checking whether ${CC-cc} accepts -g" >&5
725if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
726  echo $ac_n "(cached) $ac_c" 1>&6
727else
728  echo 'void f(){}' > conftest.c
729if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
730  ac_cv_prog_cc_g=yes
731else
732  ac_cv_prog_cc_g=no
733fi
734rm -f conftest*
735
736fi
737
738echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
739  if test "$ac_test_CFLAGS" = set; then
740    CFLAGS="$ac_save_CFLAGS"
741  elif test $ac_cv_prog_cc_g = yes; then
742    CFLAGS="-g -O2"
743  else
744    CFLAGS="-O2"
745  fi
746else
747  GCC=
748  test "${CFLAGS+set}" = set || CFLAGS="-g"
749fi
750
751echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
752echo "configure:753: checking how to run the C preprocessor" >&5
753# On Suns, sometimes $CPP names a directory.
754if test -n "$CPP" && test -d "$CPP"; then
755  CPP=
756fi
757if test -z "$CPP"; then
758if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
759  echo $ac_n "(cached) $ac_c" 1>&6
760else
761    # This must be in double quotes, not single quotes, because CPP may get
762  # substituted into the Makefile and "${CC-cc}" will confuse make.
763  CPP="${CC-cc} -E"
764  # On the NeXT, cc -E runs the code through the compiler's parser,
765  # not just through cpp.
766  cat > conftest.$ac_ext <<EOF
767#line 768 "configure"
768#include "confdefs.h"
769#include <assert.h>
770Syntax Error
771EOF
772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
773{ (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
774ac_err=`grep -v '^ *+' conftest.out`
775if test -z "$ac_err"; then
776  :
777else
778  echo "$ac_err" >&5
779  echo "configure: failed program was:" >&5
780  cat conftest.$ac_ext >&5
781  rm -rf conftest*
782  CPP="${CC-cc} -E -traditional-cpp"
783  cat > conftest.$ac_ext <<EOF
784#line 785 "configure"
785#include "confdefs.h"
786#include <assert.h>
787Syntax Error
788EOF
789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
790{ (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
791ac_err=`grep -v '^ *+' conftest.out`
792if test -z "$ac_err"; then
793  :
794else
795  echo "$ac_err" >&5
796  echo "configure: failed program was:" >&5
797  cat conftest.$ac_ext >&5
798  rm -rf conftest*
799  CPP=/lib/cpp
800fi
801rm -f conftest*
802fi
803rm -f conftest*
804  ac_cv_prog_CPP="$CPP"
805fi
806  CPP="$ac_cv_prog_CPP"
807else
808  ac_cv_prog_CPP="$CPP"
809fi
810echo "$ac_t""$CPP" 1>&6
811
812echo $ac_n "checking for AIX""... $ac_c" 1>&6
813echo "configure:814: checking for AIX" >&5
814cat > conftest.$ac_ext <<EOF
815#line 816 "configure"
816#include "confdefs.h"
817#ifdef _AIX
818  yes
819#endif
820
821EOF
822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
823  egrep "yes" >/dev/null 2>&1; then
824  rm -rf conftest*
825  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
826#define _ALL_SOURCE 1
827EOF
828
829else
830  rm -rf conftest*
831  echo "$ac_t""no" 1>&6
832fi
833rm -f conftest*
834
835
836
837
838# expand prefix and pass it to subsequent configures
839test "x$prefix" = xNONE && prefix=${ac_default_prefix}; \
840    ac_configure_args="$ac_configure_args --prefix=${prefix}"
841
842# expand exec_prefix
843if test "x$exec_prefix" = xNONE; then
844  if test -r "singuname.sh"; then
845    if (/bin/sh singuname.sh >/dev/null 2>&1) then
846        exec_prefix=${prefix}/`/bin/sh singuname.sh`
847        ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
848    else
849      { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
850    fi
851  else
852    { echo "configure: error: Need singuname.sh" 1>&2; exit 1; }
853  fi
854fi
855
856# expand bindir
857test "x$bindir" = 'x${exec_prefix}/bin' && \
858  bindir="${exec_prefix}/bin" ; \
859   ac_configure_args="$ac_configure_args --bindir=${bindir}"
860
861# construct name of installed Singular executable
862export SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}
863
864
865# expand libdir
866test "x$libdir" = 'x${exec_prefix}/lib' && \
867  libdir="${exec_prefix}/lib/${SINGULAR_VERSION}" ; \
868   ac_configure_args="$ac_configure_args --libdir=${libdir}"
869
870# expand includedir
871test "x$includedir" = 'x${prefix}/include' &&  \
872  includedir="${exec_prefix}/include/${SINGULAR_VERSION}" ; \
873   ac_configure_args="$ac_configure_args --includedir=${includedir}"
874
875# add to -I to CPPFLAGS and and -L to LDFLAGS, just to be sure
876LDFLAGS="-L${libdir} ${LDFLAGS}"
877CPPFLAGS="-I${includedir} ${CPPFLAGS}"
878
879
880echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
881echo "configure:882: checking whether _AIX is defined" >&5
882if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
883  echo $ac_n "(cached) $ac_c" 1>&6
884else
885  cat > conftest.$ac_ext <<EOF
886#line 887 "configure"
887#include "confdefs.h"
888#ifdef _AIX
889    yes
890#endif
891
892EOF
893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
894  egrep "yes" >/dev/null 2>&1; then
895  rm -rf conftest*
896  ac_cv_is_aix=yes
897else
898  rm -rf conftest*
899  ac_cv_is_aix=no
900fi
901rm -f conftest*
902
903fi
904
905if test "$ac_cv_is_aix" = yes; then
906  echo "$ac_t""yes" 1>&6
907else
908  echo "$ac_t""no" 1>&6
909fi
910
911
912echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
913echo "configure:914: checking for atof in -lm" >&5
914ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
915if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
916  echo $ac_n "(cached) $ac_c" 1>&6
917else
918  ac_save_LIBS="$LIBS"
919LIBS="-lm  $LIBS"
920cat > conftest.$ac_ext <<EOF
921#line 922 "configure"
922#include "confdefs.h"
923/* Override any gcc2 internal prototype to avoid an error.  */
924/* We use char because int might match the return type of a gcc2
925    builtin and then its argument prototype would still apply.  */
926char atof();
927
928int main() {
929atof()
930; return 0; }
931EOF
932if { (eval echo configure:933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
933  rm -rf conftest*
934  eval "ac_cv_lib_$ac_lib_var=yes"
935else
936  echo "configure: failed program was:" >&5
937  cat conftest.$ac_ext >&5
938  rm -rf conftest*
939  eval "ac_cv_lib_$ac_lib_var=no"
940fi
941rm -f conftest*
942LIBS="$ac_save_LIBS"
943
944fi
945if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
946  echo "$ac_t""yes" 1>&6
947    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
948    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
949  cat >> confdefs.h <<EOF
950#define $ac_tr_lib 1
951EOF
952
953  LIBS="-lm $LIBS"
954
955else
956  echo "$ac_t""no" 1>&6
957fi
958
959echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
960echo "configure:961: checking for socket in -lbsd" >&5
961ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
963  echo $ac_n "(cached) $ac_c" 1>&6
964else
965  ac_save_LIBS="$LIBS"
966LIBS="-lbsd  $LIBS"
967cat > conftest.$ac_ext <<EOF
968#line 969 "configure"
969#include "confdefs.h"
970/* Override any gcc2 internal prototype to avoid an error.  */
971/* We use char because int might match the return type of a gcc2
972    builtin and then its argument prototype would still apply.  */
973char socket();
974
975int main() {
976socket()
977; return 0; }
978EOF
979if { (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
980  rm -rf conftest*
981  eval "ac_cv_lib_$ac_lib_var=yes"
982else
983  echo "configure: failed program was:" >&5
984  cat conftest.$ac_ext >&5
985  rm -rf conftest*
986  eval "ac_cv_lib_$ac_lib_var=no"
987fi
988rm -f conftest*
989LIBS="$ac_save_LIBS"
990
991fi
992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
993  echo "$ac_t""yes" 1>&6
994    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
995    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
996  cat >> confdefs.h <<EOF
997#define $ac_tr_lib 1
998EOF
999
1000  LIBS="-lbsd $LIBS"
1001
1002else
1003  echo "$ac_t""no" 1>&6
1004fi
1005
1006echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1007echo "configure:1008: checking for listen in -lsocket" >&5
1008ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1010  echo $ac_n "(cached) $ac_c" 1>&6
1011else
1012  ac_save_LIBS="$LIBS"
1013LIBS="-lsocket  $LIBS"
1014cat > conftest.$ac_ext <<EOF
1015#line 1016 "configure"
1016#include "confdefs.h"
1017/* Override any gcc2 internal prototype to avoid an error.  */
1018/* We use char because int might match the return type of a gcc2
1019    builtin and then its argument prototype would still apply.  */
1020char listen();
1021
1022int main() {
1023listen()
1024; return 0; }
1025EOF
1026if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1027  rm -rf conftest*
1028  eval "ac_cv_lib_$ac_lib_var=yes"
1029else
1030  echo "configure: failed program was:" >&5
1031  cat conftest.$ac_ext >&5
1032  rm -rf conftest*
1033  eval "ac_cv_lib_$ac_lib_var=no"
1034fi
1035rm -f conftest*
1036LIBS="$ac_save_LIBS"
1037
1038fi
1039if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1040  echo "$ac_t""yes" 1>&6
1041    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1042    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1043  cat >> confdefs.h <<EOF
1044#define $ac_tr_lib 1
1045EOF
1046
1047  LIBS="-lsocket $LIBS"
1048
1049else
1050  echo "$ac_t""no" 1>&6
1051fi
1052
1053echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1054echo "configure:1055: checking for gethostbyname in -lnsl" >&5
1055ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1056if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1057  echo $ac_n "(cached) $ac_c" 1>&6
1058else
1059  ac_save_LIBS="$LIBS"
1060LIBS="-lnsl  $LIBS"
1061cat > conftest.$ac_ext <<EOF
1062#line 1063 "configure"
1063#include "confdefs.h"
1064/* Override any gcc2 internal prototype to avoid an error.  */
1065/* We use char because int might match the return type of a gcc2
1066    builtin and then its argument prototype would still apply.  */
1067char gethostbyname();
1068
1069int main() {
1070gethostbyname()
1071; return 0; }
1072EOF
1073if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1074  rm -rf conftest*
1075  eval "ac_cv_lib_$ac_lib_var=yes"
1076else
1077  echo "configure: failed program was:" >&5
1078  cat conftest.$ac_ext >&5
1079  rm -rf conftest*
1080  eval "ac_cv_lib_$ac_lib_var=no"
1081fi
1082rm -f conftest*
1083LIBS="$ac_save_LIBS"
1084
1085fi
1086if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1087  echo "$ac_t""yes" 1>&6
1088    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1089    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1090  cat >> confdefs.h <<EOF
1091#define $ac_tr_lib 1
1092EOF
1093
1094  LIBS="-lnsl $LIBS"
1095
1096else
1097  echo "$ac_t""no" 1>&6
1098fi
1099
1100echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
1101echo "configure:1102: checking for mpq_init in -lgmp" >&5
1102ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
1103if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1104  echo $ac_n "(cached) $ac_c" 1>&6
1105else
1106  ac_save_LIBS="$LIBS"
1107LIBS="-lgmp  $LIBS"
1108cat > conftest.$ac_ext <<EOF
1109#line 1110 "configure"
1110#include "confdefs.h"
1111/* Override any gcc2 internal prototype to avoid an error.  */
1112/* We use char because int might match the return type of a gcc2
1113    builtin and then its argument prototype would still apply.  */
1114char mpq_init();
1115
1116int main() {
1117mpq_init()
1118; return 0; }
1119EOF
1120if { (eval echo configure:1121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1121  rm -rf conftest*
1122  eval "ac_cv_lib_$ac_lib_var=yes"
1123else
1124  echo "configure: failed program was:" >&5
1125  cat conftest.$ac_ext >&5
1126  rm -rf conftest*
1127  eval "ac_cv_lib_$ac_lib_var=no"
1128fi
1129rm -f conftest*
1130LIBS="$ac_save_LIBS"
1131
1132fi
1133if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1134  echo "$ac_t""yes" 1>&6
1135    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1136    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1137  cat >> confdefs.h <<EOF
1138#define $ac_tr_lib 1
1139EOF
1140
1141  LIBS="-lgmp $LIBS"
1142
1143else
1144  echo "$ac_t""no" 1>&6
1145fi
1146
1147echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1148echo "configure:1149: checking for mpz_init in -lsmallgmp" >&5
1149ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1150if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1151  echo $ac_n "(cached) $ac_c" 1>&6
1152else
1153  ac_save_LIBS="$LIBS"
1154LIBS="-lsmallgmp  $LIBS"
1155cat > conftest.$ac_ext <<EOF
1156#line 1157 "configure"
1157#include "confdefs.h"
1158/* Override any gcc2 internal prototype to avoid an error.  */
1159/* We use char because int might match the return type of a gcc2
1160    builtin and then its argument prototype would still apply.  */
1161char mpz_init();
1162
1163int main() {
1164mpz_init()
1165; return 0; }
1166EOF
1167if { (eval echo configure:1168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1168  rm -rf conftest*
1169  eval "ac_cv_lib_$ac_lib_var=yes"
1170else
1171  echo "configure: failed program was:" >&5
1172  cat conftest.$ac_ext >&5
1173  rm -rf conftest*
1174  eval "ac_cv_lib_$ac_lib_var=no"
1175fi
1176rm -f conftest*
1177LIBS="$ac_save_LIBS"
1178
1179fi
1180if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1181  echo "$ac_t""yes" 1>&6
1182    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1183    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1184  cat >> confdefs.h <<EOF
1185#define $ac_tr_lib 1
1186EOF
1187
1188  LIBS="-lsmallgmp $LIBS"
1189
1190else
1191  echo "$ac_t""no" 1>&6
1192fi
1193
1194echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1195echo "configure:1196: checking for IMP_PutGmpInt in -lMP" >&5
1196ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1198  echo $ac_n "(cached) $ac_c" 1>&6
1199else
1200  ac_save_LIBS="$LIBS"
1201LIBS="-lMP  $LIBS"
1202cat > conftest.$ac_ext <<EOF
1203#line 1204 "configure"
1204#include "confdefs.h"
1205/* Override any gcc2 internal prototype to avoid an error.  */
1206/* We use char because int might match the return type of a gcc2
1207    builtin and then its argument prototype would still apply.  */
1208char IMP_PutGmpInt();
1209
1210int main() {
1211IMP_PutGmpInt()
1212; return 0; }
1213EOF
1214if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1215  rm -rf conftest*
1216  eval "ac_cv_lib_$ac_lib_var=yes"
1217else
1218  echo "configure: failed program was:" >&5
1219  cat conftest.$ac_ext >&5
1220  rm -rf conftest*
1221  eval "ac_cv_lib_$ac_lib_var=no"
1222fi
1223rm -f conftest*
1224LIBS="$ac_save_LIBS"
1225
1226fi
1227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1228  echo "$ac_t""yes" 1>&6
1229    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1230    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1231  cat >> confdefs.h <<EOF
1232#define $ac_tr_lib 1
1233EOF
1234
1235  LIBS="-lMP $LIBS"
1236
1237else
1238  echo "$ac_t""no" 1>&6
1239fi
1240
1241echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1242echo "configure:1243: checking for MPT_GetTree in -lMPT" >&5
1243ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1245  echo $ac_n "(cached) $ac_c" 1>&6
1246else
1247  ac_save_LIBS="$LIBS"
1248LIBS="-lMPT  $LIBS"
1249cat > conftest.$ac_ext <<EOF
1250#line 1251 "configure"
1251#include "confdefs.h"
1252/* Override any gcc2 internal prototype to avoid an error.  */
1253/* We use char because int might match the return type of a gcc2
1254    builtin and then its argument prototype would still apply.  */
1255char MPT_GetTree();
1256
1257int main() {
1258MPT_GetTree()
1259; return 0; }
1260EOF
1261if { (eval echo configure:1262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1262  rm -rf conftest*
1263  eval "ac_cv_lib_$ac_lib_var=yes"
1264else
1265  echo "configure: failed program was:" >&5
1266  cat conftest.$ac_ext >&5
1267  rm -rf conftest*
1268  eval "ac_cv_lib_$ac_lib_var=no"
1269fi
1270rm -f conftest*
1271LIBS="$ac_save_LIBS"
1272
1273fi
1274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1275  echo "$ac_t""yes" 1>&6
1276    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1277    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1278  cat >> confdefs.h <<EOF
1279#define $ac_tr_lib 1
1280EOF
1281
1282  LIBS="-lMPT $LIBS"
1283
1284else
1285  echo "$ac_t""no" 1>&6
1286fi
1287
1288echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1289echo "configure:1290: checking for atof in -lsingcf" >&5
1290ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1291if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1292  echo $ac_n "(cached) $ac_c" 1>&6
1293else
1294  ac_save_LIBS="$LIBS"
1295LIBS="-lsingcf  $LIBS"
1296cat > conftest.$ac_ext <<EOF
1297#line 1298 "configure"
1298#include "confdefs.h"
1299/* Override any gcc2 internal prototype to avoid an error.  */
1300/* We use char because int might match the return type of a gcc2
1301    builtin and then its argument prototype would still apply.  */
1302char atof();
1303
1304int main() {
1305atof()
1306; return 0; }
1307EOF
1308if { (eval echo configure:1309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1309  rm -rf conftest*
1310  eval "ac_cv_lib_$ac_lib_var=yes"
1311else
1312  echo "configure: failed program was:" >&5
1313  cat conftest.$ac_ext >&5
1314  rm -rf conftest*
1315  eval "ac_cv_lib_$ac_lib_var=no"
1316fi
1317rm -f conftest*
1318LIBS="$ac_save_LIBS"
1319
1320fi
1321if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1322  echo "$ac_t""yes" 1>&6
1323    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1324    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1325  cat >> confdefs.h <<EOF
1326#define $ac_tr_lib 1
1327EOF
1328
1329  LIBS="-lsingcf $LIBS"
1330
1331else
1332  echo "$ac_t""no" 1>&6
1333fi
1334
1335echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1336echo "configure:1337: checking for atof in -lsingfac" >&5
1337ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1338if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339  echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341  ac_save_LIBS="$LIBS"
1342LIBS="-lsingfac  $LIBS"
1343cat > conftest.$ac_ext <<EOF
1344#line 1345 "configure"
1345#include "confdefs.h"
1346/* Override any gcc2 internal prototype to avoid an error.  */
1347/* We use char because int might match the return type of a gcc2
1348    builtin and then its argument prototype would still apply.  */
1349char atof();
1350
1351int main() {
1352atof()
1353; return 0; }
1354EOF
1355if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1356  rm -rf conftest*
1357  eval "ac_cv_lib_$ac_lib_var=yes"
1358else
1359  echo "configure: failed program was:" >&5
1360  cat conftest.$ac_ext >&5
1361  rm -rf conftest*
1362  eval "ac_cv_lib_$ac_lib_var=no"
1363fi
1364rm -f conftest*
1365LIBS="$ac_save_LIBS"
1366
1367fi
1368if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369  echo "$ac_t""yes" 1>&6
1370    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1371    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1372  cat >> confdefs.h <<EOF
1373#define $ac_tr_lib 1
1374EOF
1375
1376  LIBS="-lsingfac $LIBS"
1377
1378else
1379  echo "$ac_t""no" 1>&6
1380fi
1381
1382
1383for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1384do
1385ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1386echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1387echo "configure:1388: checking for $ac_hdr" >&5
1388if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1389  echo $ac_n "(cached) $ac_c" 1>&6
1390else
1391  cat > conftest.$ac_ext <<EOF
1392#line 1393 "configure"
1393#include "confdefs.h"
1394#include <$ac_hdr>
1395EOF
1396ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1397{ (eval echo configure:1398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1398ac_err=`grep -v '^ *+' conftest.out`
1399if test -z "$ac_err"; then
1400  rm -rf conftest*
1401  eval "ac_cv_header_$ac_safe=yes"
1402else
1403  echo "$ac_err" >&5
1404  echo "configure: failed program was:" >&5
1405  cat conftest.$ac_ext >&5
1406  rm -rf conftest*
1407  eval "ac_cv_header_$ac_safe=no"
1408fi
1409rm -f conftest*
1410fi
1411if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1412  echo "$ac_t""yes" 1>&6
1413    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1414  cat >> confdefs.h <<EOF
1415#define $ac_tr_hdr 1
1416EOF
1417 
1418else
1419  echo "$ac_t""no" 1>&6
1420fi
1421done
1422
1423
1424if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1425 test "$ac_cv_header_gmp_h" = yes; then
1426    ac_gmp_ok=yes
1427fi
1428
1429if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1430 test "$ac_cv_header_smallgmp_h" = yes && \
1431 test "$ac_cv_header_gmp_h" = yes; then
1432    ac_smallgmp_ok=yes
1433fi
1434
1435if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1436 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1437 test "$ac_cv_header_MP_h" = yes && \
1438 test "$ac_cv_header_MPT_h" = yes; then
1439  ac_MP_ok=yes
1440fi
1441
1442if test "$ac_cv_lib_singcf_atof" = yes && \
1443 test "$ac_cv_header_factory_h" = yes; then
1444  ac_factory_ok=yes
1445fi
1446
1447if test "$ac_cv_lib_singfac_atof" = yes && \
1448 test "$ac_cv_header_factor_h" = yes; then
1449  ac_libfac_ok=yes
1450fi
1451
1452
1453 
1454# Check whether --enable-smallgmp or --disable-smallgmp was given.
1455if test "${enable_smallgmp+set}" = set; then
1456  enableval="$enable_smallgmp"
1457  :
1458fi
1459
1460# Check whether --enable-gmp or --disable-gmp was given.
1461if test "${enable_gmp+set}" = set; then
1462  enableval="$enable_gmp"
1463  :
1464fi
1465
1466# Check whether --enable-MP or --disable-MP was given.
1467if test "${enable_MP+set}" = set; then
1468  enableval="$enable_MP"
1469  :
1470fi
1471
1472# Check whether --enable-factory or --disable-factory was given.
1473if test "${enable_factory+set}" = set; then
1474  enableval="$enable_factory"
1475  :
1476fi
1477
1478# Check whether --enable-libfac or --disable-libfac was given.
1479if test "${enable_libfac+set}" = set; then
1480  enableval="$enable_libfac"
1481  :
1482fi
1483
1484# Check whether --enable-sgroup or --disable-sgroup was given.
1485if test "${enable_sgroup+set}" = set; then
1486  enableval="$enable_sgroup"
1487  :
1488fi
1489
1490# Check whether --enable-Singular or --disable-Singular was given.
1491if test "${enable_Singular+set}" = set; then
1492  enableval="$enable_Singular"
1493  :
1494fi
1495
1496
1497# Check whether --with-MP or --without-MP was given.
1498if test "${with_MP+set}" = set; then
1499  withval="$with_MP"
1500  :
1501fi
1502
1503# Check whether --with-factory or --without-factory was given.
1504if test "${with_factory+set}" = set; then
1505  withval="$with_factory"
1506  :
1507fi
1508
1509# Check whether --with-libfac or --without-libfac was given.
1510if test "${with_libfac+set}" = set; then
1511  withval="$with_libfac"
1512  :
1513fi
1514
1515# Check whether --with-gmp or --without-gmp was given.
1516if test "${with_gmp+set}" = set; then
1517  withval="$with_gmp"
1518  :
1519fi
1520
1521
1522echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1523echo "configure:1524: checking whether to configure and build gmp lib" >&5
1524if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1525  if test "$ac_gmp_ok" != yes && test -d gmp; then
1526    echo "$ac_t""yes" 1>&6
1527    enable_gmp=yes
1528    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1529    ac_configure_args="$ac_configure_args --enable-gmp"
1530  else
1531    echo "$ac_t""no" 1>&6
1532    enable_gmp=no
1533  fi
1534elif test "$enable_gmp" = yes; then
1535  if test ! -d gmp; then
1536    echo "$ac_t""no" 1>&6
1537    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
1538  else
1539    echo "$ac_t""yes" 1>&6
1540    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1541  fi
1542else
1543  echo "$ac_t""no" 1>&6
1544fi
1545
1546echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1547echo "configure:1548: checking whether to configure and build smallgmp lib" >&5
1548if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1549  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1550     test "$enable_gmp" != yes && test -d smallgmp; then
1551    echo "$ac_t""yes" 1>&6
1552    enable_smallgmp=yes
1553    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1554    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
1555  else
1556    echo "$ac_t""no" 1>&6
1557    enable_smallgmp=no
1558  fi
1559elif test "$enable_smallgmp" = yes; then
1560  if test ! -d smallgmp; then
1561    echo "$ac_t""no" 1>&6
1562    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
1563  else
1564    echo "$ac_t""yes" 1>&6
1565    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1566    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
1567      ac_configure_args="$ac_configure_args --enable-gmp"
1568    fi
1569  fi
1570else
1571  echo "$ac_t""${enable_smallgmp}" 1>&6
1572fi
1573
1574# Check whether we have at least one of smallgmp or gmp
1575if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1576   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
1577  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
1578fi
1579
1580# Check whether we need to cheat subsequent configures with --enable-gmp
1581if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
1582  ac_configure_args="$ac_configure_args --enable-gmp"
1583fi
1584
1585echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1586echo "configure:1587: checking whether to configure and build MP lib" >&5
1587if test "$enable_MP" != yes && test "$enable_MP" != no; then
1588  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
1589     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
1590    echo "$ac_t""yes" 1>&6
1591    enable_MP=yes
1592    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1593    ac_configure_args="$ac_configure_args --enable-MP"
1594  else
1595    echo "$ac_t""no" 1>&6
1596    enable_MP=no
1597  fi
1598elif test "$enable_MP" = yes; then
1599  if test ! -d MP; then
1600    echo "$ac_t""no" 1>&6
1601    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
1602  fi
1603  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
1604    echo "$ac_t""yes" 1>&6
1605    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1606  else
1607    echo "$ac_t""no" 1>&6
1608    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
1609  fi
1610else
1611  echo "$ac_t""no" 1>&6
1612fi
1613
1614 
1615echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1616echo "configure:1617: checking whether to configure and build factory lib" >&5
1617if test "$enable_factory" != yes && test "$enable_factory" != no; then
1618  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
1619     test -d factory; then
1620    enable_factory=yes
1621    echo "$ac_t""yes" 1>&6
1622    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1623    ac_configure_args="$ac_configure_args --enable-factory"
1624  else
1625    enable_factory=no
1626    echo "$ac_t""no" 1>&6
1627  fi
1628elif test "$enable_factory" = yes; then
1629  if test -d factory; then
1630    echo "$ac_t""yes" 1>&6
1631    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1632  else
1633    echo "$ac_t""no" 1>&6
1634    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
1635  fi
1636else
1637  echo "$ac_t""no" 1>&6
1638fi
1639
1640echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1641echo "configure:1642: checking whether to configure and build libfac lib" >&5
1642if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1643  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
1644     test -d libfac && \
1645     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
1646    enable_libfac=yes
1647    echo "$ac_t""yes" 1>&6
1648    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1649    ac_configure_args="$ac_configure_args --enable-libfac"
1650  else
1651    enable_libfac=no
1652    echo "$ac_t""no" 1>&6
1653  fi
1654elif  test "$enable_libfac" = yes; then
1655  if test ! -d libfac; then
1656    echo "$ac_t""no" 1>&6
1657    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
1658  fi
1659  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1660    echo "$ac_t""yes" 1>&6
1661    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1662  else
1663    echo "$ac_t""no" 1>&6
1664    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
1665  fi
1666else
1667  echo "$ac_t""no" 1>&6
1668fi
1669
1670echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
1671echo "configure:1672: checking whether to configure and build sgroup lib" >&5
1672if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
1673  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
1674     test -d sgroup && \
1675     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
1676    enable_sgroup=yes
1677    echo "$ac_t""yes" 1>&6
1678    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1679    ac_configure_args="$ac_configure_args --enable-sgroup"
1680  else
1681    enable_sgroup=no
1682    echo "$ac_t""no" 1>&6
1683  fi
1684elif  test "$enable_sgroup" = yes; then
1685  if test ! -d sgroup; then
1686    echo "$ac_t""no" 1>&6
1687    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
1688  fi
1689  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1690    echo "$ac_t""yes" 1>&6
1691    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
1692  else
1693    echo "$ac_t""no" 1>&6
1694    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
1695  fi
1696else
1697  echo "$ac_t""no" 1>&6
1698fi
1699
1700
1701echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
1702echo "configure:1703: checking whether to configure and build Singular" >&5
1703if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
1704  if test "$with_Singular" != no && test -d Singular; then
1705    enable_Singular=yes
1706    echo "$ac_t""yes" 1>&6
1707    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1708    ac_configure_args="$ac_configure_args --enable-Singular"
1709  else
1710    enable_Singular=no
1711    echo "$ac_t""no" 1>&6
1712  fi
1713elif test "$enable_Singular" = yes; then
1714  if test -d Singular; then
1715    echo "$ac_t""yes" 1>&6
1716    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1717  else
1718    echo "$ac_t""no" 1>&6
1719    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
1720  fi
1721else
1722  echo "$ac_t""no" 1>&6
1723fi
1724
1725
1726echo $ac_n "checking wich apint package to use""... $ac_c" 1>&6
1727echo "configure:1728: checking wich apint package to use" >&5
1728if test "$with_apint" = gmp; then
1729  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
1730    echo "$ac_t""gmp" 1>&6
1731  else
1732    echo "$ac_t""none" 1>&6
1733    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
1734  fi
1735elif test "$with_apint" = smallgmp; then
1736  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
1737    echo "$ac_t""smallgmp" 1>&6
1738  else
1739    echo "$ac_t""none" 1>&6
1740    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
1741  fi
1742elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
1743    echo "$ac_t""gmp" 1>&6
1744    ac_configure_args="$ac_configure_args --with-apint=gmp"
1745else
1746   echo "$ac_t""smallgmp" 1>&6
1747   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
1748fi
1749
1750echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
1751echo "configure:1752: checking whether to use with MP" >&5
1752if test "$with_MP" = yes; then
1753  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1754    echo "$ac_t""yes" 1>&6
1755  else
1756    echo "$ac_t""none" 1>&6
1757    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
1758  fi
1759elif test "$with_MP" = no; then
1760  echo "$ac_t""no" 1>&6
1761elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1762  echo "$ac_t""yes" 1>&6
1763  ac_configure_args="$ac_configure_args --with-MP"
1764else
1765  echo "$ac_t""no" 1>&6
1766  ac_configure_args="$ac_configure_args --without-MP"
1767fi
1768
1769echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
1770echo "configure:1771: checking whether to use with factory" >&5
1771if test "$with_factory" = yes; then
1772  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1773    echo "$ac_t""yes" 1>&6
1774  else
1775    echo "$ac_t""none" 1>&6
1776    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
1777  fi
1778elif test "$with_factory" = no; then
1779  echo "$ac_t""no" 1>&6
1780elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1781  echo "$ac_t""yes" 1>&6
1782  ac_configure_args="$ac_configure_args --with-factory"
1783else
1784  echo "$ac_t""no" 1>&6
1785  ac_configure_args="$ac_configure_args --without-factory"
1786fi
1787 
1788echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
1789echo "configure:1790: checking whether to use with libfac" >&5
1790if test "$with_libfac" = yes; then
1791  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1792    echo "$ac_t""yes" 1>&6
1793  else
1794    echo "$ac_t""none" 1>&6
1795    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
1796  fi
1797elif test "$with_libfac" = no; then
1798  echo "$ac_t""no" 1>&6
1799elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1800  echo "$ac_t""yes" 1>&6
1801  ac_configure_args="$ac_configure_args --with-libfac"
1802else
1803  echo "$ac_t""no" 1>&6
1804  ac_configure_args="$ac_configure_args --without-libfac"
1805fi
1806
1807
1808echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
1809echo "configure:1810: checking whether to use with Singular" >&5
1810if test "$with_Singular" != no && test "$with_Singular" != yes; then
1811  if test "$enable_Singular" = yes; then
1812    with_Singular=yes
1813  else
1814    with_Singular=no
1815  fi
1816  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
1817fi
1818
1819if test "$with_Singular" != no; then
1820  echo "$ac_t""yes" 1>&6
1821else
1822  echo "$ac_t""no" 1>&6
1823fi
1824
1825if test -d smallgmp; then
1826  SUBDIRS="smallgmp"
1827fi
1828if test -d gmp; then
1829  SUBDIRS="gmp"
1830fi
1831if test -d MP; then
1832  SUBDIRS="$SUBDIRS MP"
1833fi
1834if test -d factory; then
1835  SUBDIRS="$SUBDIRS factory"
1836fi
1837if test -d libfac; then
1838  SUBDIRS="$SUBDIRS libfac"
1839fi
1840if test -d sgroup; then
1841  SUBDIRS="sgroup"
1842fi
1843if test -d Singular; then
1844  SUBDIRS="$SUBDIRS Singular"
1845fi
1846 
1847
1848echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1849echo "configure:1850: checking whether ${MAKE-make} sets \${MAKE}" >&5
1850set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1851if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1852  echo $ac_n "(cached) $ac_c" 1>&6
1853else
1854  cat > conftestmake <<\EOF
1855all:
1856        @echo 'ac_maketemp="${MAKE}"'
1857EOF
1858# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1860if test -n "$ac_maketemp"; then
1861  eval ac_cv_prog_make_${ac_make}_set=yes
1862else
1863  eval ac_cv_prog_make_${ac_make}_set=no
1864fi
1865rm -f conftestmake
1866fi
1867if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1868  echo "$ac_t""yes" 1>&6
1869  SET_MAKE=
1870else
1871  echo "$ac_t""no" 1>&6
1872  SET_MAKE="MAKE=${MAKE-make}"
1873fi
1874
1875
1876
1877ac_aux_dir=
1878for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1879  if test -f $ac_dir/install-sh; then
1880    ac_aux_dir=$ac_dir
1881    ac_install_sh="$ac_aux_dir/install-sh -c"
1882    break
1883  elif test -f $ac_dir/install.sh; then
1884    ac_aux_dir=$ac_dir
1885    ac_install_sh="$ac_aux_dir/install.sh -c"
1886    break
1887  fi
1888done
1889if test -z "$ac_aux_dir"; then
1890  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1891fi
1892ac_config_guess=$ac_aux_dir/config.guess
1893ac_config_sub=$ac_aux_dir/config.sub
1894ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1895
1896subdirs="$CONFIG_SUBDIRS"
1897 
1898
1899trap '' 1 2 15
1900cat > confcache <<\EOF
1901# This file is a shell script that caches the results of configure
1902# tests run on this system so they can be shared between configure
1903# scripts and configure runs.  It is not useful on other systems.
1904# If it contains results you don't want to keep, you may remove or edit it.
1905#
1906# By default, configure uses ./config.cache as the cache file,
1907# creating it if it does not exist already.  You can give configure
1908# the --cache-file=FILE option to use a different cache file; that is
1909# what configure does when it calls configure scripts in
1910# subdirectories, so they share the cache.
1911# Giving --cache-file=/dev/null disables caching, for debugging configure.
1912# config.status only pays attention to the cache file if you give it the
1913# --recheck option to rerun configure.
1914#
1915EOF
1916# The following way of writing the cache mishandles newlines in values,
1917# but we know of no workaround that is simple, portable, and efficient.
1918# So, don't put newlines in cache variables' values.
1919# Ultrix sh set writes to stderr and can't be redirected directly,
1920# and sets the high bit in the cache file unless we assign to the vars.
1921(set) 2>&1 |
1922  case `(ac_space=' '; set) 2>&1` in
1923  *ac_space=\ *)
1924    # `set' does not quote correctly, so add quotes (double-quote substitution
1925    # turns \\\\ into \\, and sed turns \\ into \).
1926    sed -n \
1927      -e "s/'/'\\\\''/g" \
1928      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1929    ;;
1930  *)
1931    # `set' quotes correctly as required by POSIX, so do not add quotes.
1932    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1933    ;;
1934  esac >> confcache
1935if cmp -s $cache_file confcache; then
1936  :
1937else
1938  if test -w $cache_file; then
1939    echo "updating cache $cache_file"
1940    cat confcache > $cache_file
1941  else
1942    echo "not updating unwritable cache $cache_file"
1943  fi
1944fi
1945rm -f confcache
1946
1947trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1948
1949test "x$prefix" = xNONE && prefix=$ac_default_prefix
1950# Let make expand exec_prefix.
1951test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1952
1953# Any assignment to VPATH causes Sun make to only execute
1954# the first set of double-colon rules, so remove it if not needed.
1955# If there is a colon in the path, we need to keep it.
1956if test "x$srcdir" = x.; then
1957  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1958fi
1959
1960trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1961
1962# Transform confdefs.h into DEFS.
1963# Protect against shell expansion while executing Makefile rules.
1964# Protect against Makefile macro expansion.
1965cat > conftest.defs <<\EOF
1966s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1967s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1968s%\[%\\&%g
1969s%\]%\\&%g
1970s%\$%$$%g
1971EOF
1972DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1973rm -f conftest.defs
1974
1975
1976# Without the "./", some shells look in PATH for config.status.
1977: ${CONFIG_STATUS=./config.status}
1978
1979echo creating $CONFIG_STATUS
1980rm -f $CONFIG_STATUS
1981cat > $CONFIG_STATUS <<EOF
1982#! /bin/sh
1983# Generated automatically by configure.
1984# Run this file to recreate the current configuration.
1985# This directory was configured as follows,
1986# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1987#
1988# $0 $ac_configure_args
1989#
1990# Compiler output produced by configure, useful for debugging
1991# configure, is in ./config.log if it exists.
1992
1993ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1994for ac_option
1995do
1996  case "\$ac_option" in
1997  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1998    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1999    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2000  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2001    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2002    exit 0 ;;
2003  -help | --help | --hel | --he | --h)
2004    echo "\$ac_cs_usage"; exit 0 ;;
2005  *) echo "\$ac_cs_usage"; exit 1 ;;
2006  esac
2007done
2008
2009ac_given_srcdir=$srcdir
2010
2011trap 'rm -fr `echo "Makefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2012EOF
2013cat >> $CONFIG_STATUS <<EOF
2014
2015# Protect against being on the right side of a sed subst in config.status.
2016sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2017 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2018$ac_vpsub
2019$extrasub
2020s%@CFLAGS@%$CFLAGS%g
2021s%@CPPFLAGS@%$CPPFLAGS%g
2022s%@CXXFLAGS@%$CXXFLAGS%g
2023s%@DEFS@%$DEFS%g
2024s%@LDFLAGS@%$LDFLAGS%g
2025s%@LIBS@%$LIBS%g
2026s%@exec_prefix@%$exec_prefix%g
2027s%@prefix@%$prefix%g
2028s%@program_transform_name@%$program_transform_name%g
2029s%@bindir@%$bindir%g
2030s%@sbindir@%$sbindir%g
2031s%@libexecdir@%$libexecdir%g
2032s%@datadir@%$datadir%g
2033s%@sysconfdir@%$sysconfdir%g
2034s%@sharedstatedir@%$sharedstatedir%g
2035s%@localstatedir@%$localstatedir%g
2036s%@libdir@%$libdir%g
2037s%@includedir@%$includedir%g
2038s%@oldincludedir@%$oldincludedir%g
2039s%@infodir@%$infodir%g
2040s%@mandir@%$mandir%g
2041s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g
2042s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g
2043s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g
2044s%@CC@%$CC%g
2045s%@CPP@%$CPP%g
2046s%@SINGULAR@%$SINGULAR%g
2047s%@SET_MAKE@%$SET_MAKE%g
2048s%@SUBDIRS@%$SUBDIRS%g
2049s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
2050s%@subdirs@%$subdirs%g
2051
2052CEOF
2053EOF
2054
2055cat >> $CONFIG_STATUS <<\EOF
2056
2057# Split the substitutions into bite-sized pieces for seds with
2058# small command number limits, like on Digital OSF/1 and HP-UX.
2059ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2060ac_file=1 # Number of current file.
2061ac_beg=1 # First line for current file.
2062ac_end=$ac_max_sed_cmds # Line after last line for current file.
2063ac_more_lines=:
2064ac_sed_cmds=""
2065while $ac_more_lines; do
2066  if test $ac_beg -gt 1; then
2067    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2068  else
2069    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2070  fi
2071  if test ! -s conftest.s$ac_file; then
2072    ac_more_lines=false
2073    rm -f conftest.s$ac_file
2074  else
2075    if test -z "$ac_sed_cmds"; then
2076      ac_sed_cmds="sed -f conftest.s$ac_file"
2077    else
2078      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2079    fi
2080    ac_file=`expr $ac_file + 1`
2081    ac_beg=$ac_end
2082    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2083  fi
2084done
2085if test -z "$ac_sed_cmds"; then
2086  ac_sed_cmds=cat
2087fi
2088EOF
2089
2090cat >> $CONFIG_STATUS <<EOF
2091
2092CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile"}
2093EOF
2094cat >> $CONFIG_STATUS <<\EOF
2095for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2096  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2097  case "$ac_file" in
2098  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2099       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2100  *) ac_file_in="${ac_file}.in" ;;
2101  esac
2102
2103  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2104
2105  # Remove last slash and all that follows it.  Not all systems have dirname.
2106  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2107  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2108    # The file is in a subdirectory.
2109    test ! -d "$ac_dir" && mkdir "$ac_dir"
2110    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2111    # A "../" for each directory in $ac_dir_suffix.
2112    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2113  else
2114    ac_dir_suffix= ac_dots=
2115  fi
2116
2117  case "$ac_given_srcdir" in
2118  .)  srcdir=.
2119      if test -z "$ac_dots"; then top_srcdir=.
2120      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2121  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2122  *) # Relative path.
2123    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2124    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2125  esac
2126
2127
2128  echo creating "$ac_file"
2129  rm -f "$ac_file"
2130  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2131  case "$ac_file" in
2132  *Makefile*) ac_comsub="1i\\
2133# $configure_input" ;;
2134  *) ac_comsub= ;;
2135  esac
2136
2137  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2138  sed -e "$ac_comsub
2139s%@configure_input@%$configure_input%g
2140s%@srcdir@%$srcdir%g
2141s%@top_srcdir@%$top_srcdir%g
2142" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2143fi; done
2144rm -f conftest.s*
2145
2146EOF
2147cat >> $CONFIG_STATUS <<EOF
2148
2149EOF
2150cat >> $CONFIG_STATUS <<\EOF
2151
2152exit 0
2153EOF
2154chmod +x $CONFIG_STATUS
2155rm -fr confdefs* $ac_clean_files
2156test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2157
2158if test "$no_recursion" != yes; then
2159
2160  # Remove --cache-file and --srcdir arguments so they do not pile up.
2161  ac_sub_configure_args=
2162  ac_prev=
2163  for ac_arg in $ac_configure_args; do
2164    if test -n "$ac_prev"; then
2165      ac_prev=
2166      continue
2167    fi
2168    case "$ac_arg" in
2169    -cache-file | --cache-file | --cache-fil | --cache-fi \
2170    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2171      ac_prev=cache_file ;;
2172    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2173    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2174      ;;
2175    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2176      ac_prev=srcdir ;;
2177    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2178      ;;
2179    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2180    esac
2181  done
2182
2183  for ac_config_dir in $CONFIG_SUBDIRS; do
2184
2185    # Do not complain, so a configure script can configure whichever
2186    # parts of a large source tree are present.
2187    if test ! -d $srcdir/$ac_config_dir; then
2188      continue
2189    fi
2190
2191    echo configuring in $ac_config_dir
2192
2193    case "$srcdir" in
2194    .) ;;
2195    *)
2196      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2197      else
2198        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2199      fi
2200      ;;
2201    esac
2202
2203    ac_popdir=`pwd`
2204    cd $ac_config_dir
2205
2206      # A "../" for each directory in /$ac_config_dir.
2207      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2208
2209    case "$srcdir" in
2210    .) # No --srcdir option.  We are building in place.
2211      ac_sub_srcdir=$srcdir ;;
2212    /*) # Absolute path.
2213      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2214    *) # Relative path.
2215      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2216    esac
2217
2218    # Check for guested configure; otherwise get Cygnus style configure.
2219    if test -f $ac_sub_srcdir/configure; then
2220      ac_sub_configure=$ac_sub_srcdir/configure
2221    elif test -f $ac_sub_srcdir/configure.in; then
2222      ac_sub_configure=$ac_configure
2223    else
2224      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2225      ac_sub_configure=
2226    fi
2227
2228    # The recursion is here.
2229    if test -n "$ac_sub_configure"; then
2230
2231      # Make the cache file name correct relative to the subdirectory.
2232      case "$cache_file" in
2233      /*) ac_sub_cache_file=$cache_file ;;
2234      *) # Relative path.
2235        ac_sub_cache_file="$ac_dots$cache_file" ;;
2236      esac
2237
2238      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2239      # The eval makes quoting arguments work.
2240      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2241      then :
2242      else
2243        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2244      fi
2245    fi
2246
2247    cd $ac_popdir
2248  done
2249fi
2250
Note: See TracBrowser for help on using the repository browser.