source: git/configure @ 1242cf

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