source: git/configure @ 4f006f

spielwiese
Last change on this file since 4f006f was bd63e0, checked in by Viktor Levandovskyy <levandov@…>, 21 years ago
plural adjustments git-svn-id: file:///usr/local/Singular/svn/trunk@6362 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 99.1 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
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  --with-tmpdir=DIR       use DIR as temporary directory"
18ac_help="$ac_help
19\
20  --enable-PACKAGE        configure and/or build PACKAGE
21  --disable-PACKAGE       do not configure and/or build PACKAGE
22   where PACKAGE can be:
23     smallgmp             minimal version of gmp written in C only"
24ac_help="$ac_help
25\
26     omalloc              omalloc memory managment"
27ac_help="$ac_help
28\
29     gmp                  Gnu Multiple Precision package"
30ac_help="$ac_help
31\
32     MP                   Multi Protocol library"
33ac_help="$ac_help
34\
35     factory              polynomial factorization library"
36ac_help="$ac_help
37\
38     libfac               char set and modp poly factorization library"
39ac_help="$ac_help
40\
41     sgroup               numerical semigroup computations"
42ac_help="$ac_help
43\
44     Singular             CAS for Polynomial Computations"
45ac_help="$ac_help
46\
47     IntegerProgramming   IntegerProgramming"
48ac_help="$ac_help
49\
50     Plural               Plural"
51ac_help="$ac_help
52\
53     Texinfo              Texinfo for info, texi2dvi, makeinfo"
54ac_help="$ac_help
55\
56     Texi2html            Texinfo to HTML converter"
57ac_help="$ac_help
58\
59     doc                  Singular documentation"
60ac_help="$ac_help
61\
62     emacs                emacs completion files"
63ac_help="$ac_help
64\
65  --with-PACKAGE          use PACKAGE, provide dependent functionality
66  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
67   where PACKAGE can be:
68     MP                   Multi Protocol library"
69ac_help="$ac_help
70\
71     factory              polynomial factorization library"
72ac_help="$ac_help
73\
74     libfac               char set and modp poly factorization library"
75ac_help="$ac_help
76\
77  --with-apint=PACKAGE    use PACKAGE for arbitary integer arithmetic
78                          where PACKAGE can be gmp or smallgmp
79All additional --enable and --with options are passed to subsequent calls
80to configure of the packages to be built. See also configure --help in
81these packages (resp. subdirs). "
82
83# Initialize some variables set by options.
84# The variables have the same names as the options, with
85# dashes changed to underlines.
86build=NONE
87cache_file=./config.cache
88exec_prefix=NONE
89host=NONE
90no_create=
91nonopt=NONE
92no_recursion=
93prefix=NONE
94program_prefix=NONE
95program_suffix=NONE
96program_transform_name=s,x,x,
97silent=
98site=
99srcdir=
100target=NONE
101verbose=
102x_includes=NONE
103x_libraries=NONE
104bindir='${exec_prefix}/bin'
105sbindir='${exec_prefix}/sbin'
106libexecdir='${exec_prefix}/libexec'
107datadir='${prefix}/share'
108sysconfdir='${prefix}/etc'
109sharedstatedir='${prefix}/com'
110localstatedir='${prefix}/var'
111libdir='${exec_prefix}/lib'
112includedir='${prefix}/include'
113oldincludedir='/usr/include'
114infodir='${prefix}/info'
115mandir='${prefix}/man'
116
117# Initialize some other variables.
118subdirs=
119MFLAGS= MAKEFLAGS=
120SHELL=${CONFIG_SHELL-/bin/sh}
121# Maximum number of lines to put in a shell here document.
122ac_max_here_lines=12
123
124ac_prev=
125for ac_option
126do
127
128  # If the previous option needs an argument, assign it.
129  if test -n "$ac_prev"; then
130    eval "$ac_prev=\$ac_option"
131    ac_prev=
132    continue
133  fi
134
135  case "$ac_option" in
136  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
137  *) ac_optarg= ;;
138  esac
139
140  # Accept the important Cygnus configure options, so we can diagnose typos.
141
142  case "$ac_option" in
143
144  -bindir | --bindir | --bindi | --bind | --bin | --bi)
145    ac_prev=bindir ;;
146  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
147    bindir="$ac_optarg" ;;
148
149  -build | --build | --buil | --bui | --bu)
150    ac_prev=build ;;
151  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
152    build="$ac_optarg" ;;
153
154  -cache-file | --cache-file | --cache-fil | --cache-fi \
155  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
156    ac_prev=cache_file ;;
157  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
158  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
159    cache_file="$ac_optarg" ;;
160
161  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
162    ac_prev=datadir ;;
163  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
164  | --da=*)
165    datadir="$ac_optarg" ;;
166
167  -disable-* | --disable-*)
168    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
169    # Reject names that are not valid shell variable names.
170    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
171      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172    fi
173    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
174    eval "enable_${ac_feature}=no" ;;
175
176  -enable-* | --enable-*)
177    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
178    # Reject names that are not valid shell variable names.
179    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
180      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181    fi
182    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
183    case "$ac_option" in
184      *=*) ;;
185      *) ac_optarg=yes ;;
186    esac
187    eval "enable_${ac_feature}='$ac_optarg'" ;;
188
189  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
190  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
191  | --exec | --exe | --ex)
192    ac_prev=exec_prefix ;;
193  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
194  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
195  | --exec=* | --exe=* | --ex=*)
196    exec_prefix="$ac_optarg" ;;
197
198  -gas | --gas | --ga | --g)
199    # Obsolete; use --with-gas.
200    with_gas=yes ;;
201
202  -help | --help | --hel | --he)
203    # Omit some internal or obsolete options to make the list less imposing.
204    # This message is too long to be a string in the A/UX 3.1 sh.
205    cat << EOF
206Usage: configure [options] [host]
207Options: [defaults in brackets after descriptions]
208Configuration:
209  --cache-file=FILE       cache test results in FILE
210  --help                  print this message
211  --no-create             do not create output files
212  --quiet, --silent       do not print \`checking...' messages
213  --version               print the version of autoconf that created configure
214Directory and file names:
215  --prefix=PREFIX         install architecture-independent files in PREFIX
216                          [$ac_default_prefix]
217  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
218                          [same as prefix]
219  --bindir=DIR            user executables in DIR [EPREFIX/bin]
220  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
221  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
222  --datadir=DIR           read-only architecture-independent data in DIR
223                          [PREFIX/share]
224  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
225  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
226                          [PREFIX/com]
227  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
228  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
229  --includedir=DIR        C header files in DIR [PREFIX/include]
230  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
231  --infodir=DIR           info documentation in DIR [PREFIX/info]
232  --mandir=DIR            man documentation in DIR [PREFIX/man]
233  --srcdir=DIR            find the sources in DIR [configure dir or ..]
234  --program-prefix=PREFIX prepend PREFIX to installed program names
235  --program-suffix=SUFFIX append SUFFIX to installed program names
236  --program-transform-name=PROGRAM
237                          run sed PROGRAM on installed program names
238EOF
239    cat << EOF
240Host type:
241  --build=BUILD           configure for building on BUILD [BUILD=HOST]
242  --host=HOST             configure for HOST [guessed]
243  --target=TARGET         configure for TARGET [TARGET=HOST]
244Features and packages:
245  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
246  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
247  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
248  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
249  --x-includes=DIR        X include files are in DIR
250  --x-libraries=DIR       X library files are in DIR
251EOF
252    if test -n "$ac_help"; then
253      echo "--enable and --with options recognized:$ac_help"
254    fi
255    exit 0 ;;
256
257  -host | --host | --hos | --ho)
258    ac_prev=host ;;
259  -host=* | --host=* | --hos=* | --ho=*)
260    host="$ac_optarg" ;;
261
262  -includedir | --includedir | --includedi | --included | --include \
263  | --includ | --inclu | --incl | --inc)
264    ac_prev=includedir ;;
265  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
266  | --includ=* | --inclu=* | --incl=* | --inc=*)
267    includedir="$ac_optarg" ;;
268
269  -infodir | --infodir | --infodi | --infod | --info | --inf)
270    ac_prev=infodir ;;
271  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
272    infodir="$ac_optarg" ;;
273
274  -libdir | --libdir | --libdi | --libd)
275    ac_prev=libdir ;;
276  -libdir=* | --libdir=* | --libdi=* | --libd=*)
277    libdir="$ac_optarg" ;;
278
279  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
280  | --libexe | --libex | --libe)
281    ac_prev=libexecdir ;;
282  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
283  | --libexe=* | --libex=* | --libe=*)
284    libexecdir="$ac_optarg" ;;
285
286  -localstatedir | --localstatedir | --localstatedi | --localstated \
287  | --localstate | --localstat | --localsta | --localst \
288  | --locals | --local | --loca | --loc | --lo)
289    ac_prev=localstatedir ;;
290  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
291  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
292  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
293    localstatedir="$ac_optarg" ;;
294
295  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296    ac_prev=mandir ;;
297  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
298    mandir="$ac_optarg" ;;
299
300  -nfp | --nfp | --nf)
301    # Obsolete; use --without-fp.
302    with_fp=no ;;
303
304  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
305  | --no-cr | --no-c)
306    no_create=yes ;;
307
308  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
309  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
310    no_recursion=yes ;;
311
312  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
313  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
314  | --oldin | --oldi | --old | --ol | --o)
315    ac_prev=oldincludedir ;;
316  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
317  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
318  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
319    oldincludedir="$ac_optarg" ;;
320
321  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322    ac_prev=prefix ;;
323  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
324    prefix="$ac_optarg" ;;
325
326  -program-prefix | --program-prefix | --program-prefi | --program-pref \
327  | --program-pre | --program-pr | --program-p)
328    ac_prev=program_prefix ;;
329  -program-prefix=* | --program-prefix=* | --program-prefi=* \
330  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
331    program_prefix="$ac_optarg" ;;
332
333  -program-suffix | --program-suffix | --program-suffi | --program-suff \
334  | --program-suf | --program-su | --program-s)
335    ac_prev=program_suffix ;;
336  -program-suffix=* | --program-suffix=* | --program-suffi=* \
337  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
338    program_suffix="$ac_optarg" ;;
339
340  -program-transform-name | --program-transform-name \
341  | --program-transform-nam | --program-transform-na \
342  | --program-transform-n | --program-transform- \
343  | --program-transform | --program-transfor \
344  | --program-transfo | --program-transf \
345  | --program-trans | --program-tran \
346  | --progr-tra | --program-tr | --program-t)
347    ac_prev=program_transform_name ;;
348  -program-transform-name=* | --program-transform-name=* \
349  | --program-transform-nam=* | --program-transform-na=* \
350  | --program-transform-n=* | --program-transform-=* \
351  | --program-transform=* | --program-transfor=* \
352  | --program-transfo=* | --program-transf=* \
353  | --program-trans=* | --program-tran=* \
354  | --progr-tra=* | --program-tr=* | --program-t=*)
355    program_transform_name="$ac_optarg" ;;
356
357  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
358  | -silent | --silent | --silen | --sile | --sil)
359    silent=yes ;;
360
361  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362    ac_prev=sbindir ;;
363  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364  | --sbi=* | --sb=*)
365    sbindir="$ac_optarg" ;;
366
367  -sharedstatedir | --sharedstatedir | --sharedstatedi \
368  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
369  | --sharedst | --shareds | --shared | --share | --shar \
370  | --sha | --sh)
371    ac_prev=sharedstatedir ;;
372  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
373  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
374  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375  | --sha=* | --sh=*)
376    sharedstatedir="$ac_optarg" ;;
377
378  -site | --site | --sit)
379    ac_prev=site ;;
380  -site=* | --site=* | --sit=*)
381    site="$ac_optarg" ;;
382
383  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384    ac_prev=srcdir ;;
385  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
386    srcdir="$ac_optarg" ;;
387
388  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
389  | --syscon | --sysco | --sysc | --sys | --sy)
390    ac_prev=sysconfdir ;;
391  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
392  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
393    sysconfdir="$ac_optarg" ;;
394
395  -target | --target | --targe | --targ | --tar | --ta | --t)
396    ac_prev=target ;;
397  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
398    target="$ac_optarg" ;;
399
400  -v | -verbose | --verbose | --verbos | --verbo | --verb)
401    verbose=yes ;;
402
403  -version | --version | --versio | --versi | --vers)
404    echo "configure generated by autoconf version 2.13"
405    exit 0 ;;
406
407  -with-* | --with-*)
408    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
409    # Reject names that are not valid shell variable names.
410    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
411      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412    fi
413    ac_package=`echo $ac_package| sed 's/-/_/g'`
414    case "$ac_option" in
415      *=*) ;;
416      *) ac_optarg=yes ;;
417    esac
418    eval "with_${ac_package}='$ac_optarg'" ;;
419
420  -without-* | --without-*)
421    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
422    # Reject names that are not valid shell variable names.
423    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
424      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
425    fi
426    ac_package=`echo $ac_package| sed 's/-/_/g'`
427    eval "with_${ac_package}=no" ;;
428
429  --x)
430    # Obsolete; use --with-x.
431    with_x=yes ;;
432
433  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
434  | --x-incl | --x-inc | --x-in | --x-i)
435    ac_prev=x_includes ;;
436  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
437  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
438    x_includes="$ac_optarg" ;;
439
440  -x-libraries | --x-libraries | --x-librarie | --x-librari \
441  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
442    ac_prev=x_libraries ;;
443  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
444  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
445    x_libraries="$ac_optarg" ;;
446
447  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
448    ;;
449
450  *)
451    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
452      echo "configure: warning: $ac_option: invalid host type" 1>&2
453    fi
454    if test "x$nonopt" != xNONE; then
455      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456    fi
457    nonopt="$ac_option"
458    ;;
459
460  esac
461done
462
463if test -n "$ac_prev"; then
464  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
465fi
466
467trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
468
469# File descriptor usage:
470# 0 standard input
471# 1 file creation
472# 2 errors and warnings
473# 3 some systems may open it to /dev/tty
474# 4 used on the Kubota Titan
475# 6 checking for... messages and results
476# 5 compiler messages saved in config.log
477if test "$silent" = yes; then
478  exec 6>/dev/null
479else
480  exec 6>&1
481fi
482exec 5>./config.log
483
484echo "\
485This file contains any messages produced by compilers while
486running configure, to aid debugging if configure makes a mistake.
487" 1>&5
488
489# Strip out --no-create and --no-recursion so they do not pile up.
490# Also quote any args containing shell metacharacters.
491ac_configure_args=
492for ac_arg
493do
494  case "$ac_arg" in
495  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
496  | --no-cr | --no-c) ;;
497  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
498  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
499  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
500  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
501  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
502  esac
503done
504
505# NLS nuisances.
506# Only set these to C if already set.  These must not be set unconditionally
507# because not all systems understand e.g. LANG=C (notably SCO).
508# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
509# Non-C LC_CTYPE values break the ctype check.
510if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
511if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
512if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
513if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
514
515# confdefs.h avoids OS command line length limits that DEFS can exceed.
516rm -rf conftest* confdefs.h
517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
518echo > confdefs.h
519
520# A filename unique to this package, relative to the directory that
521# configure is in, which we can look for to find out if srcdir is correct.
522ac_unique_file=Singular/matpol.h
523
524# Find the source files, if location was not specified.
525if test -z "$srcdir"; then
526  ac_srcdir_defaulted=yes
527  # Try the directory containing this script, then its parent.
528  ac_prog=$0
529  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
530  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
531  srcdir=$ac_confdir
532  if test ! -r $srcdir/$ac_unique_file; then
533    srcdir=..
534  fi
535else
536  ac_srcdir_defaulted=no
537fi
538if test ! -r $srcdir/$ac_unique_file; then
539  if test "$ac_srcdir_defaulted" = yes; then
540    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
541  else
542    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
543  fi
544fi
545srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
546
547# Prefer explicitly selected file to automatically selected ones.
548if test -z "$CONFIG_SITE"; then
549  if test "x$prefix" != xNONE; then
550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
551  else
552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
553  fi
554fi
555for ac_site_file in $CONFIG_SITE; do
556  if test -r "$ac_site_file"; then
557    echo "loading site script $ac_site_file"
558    . "$ac_site_file"
559  fi
560done
561
562if test -r "$cache_file"; then
563  echo "loading cache $cache_file"
564  . $cache_file
565else
566  echo "creating cache $cache_file"
567  > $cache_file
568fi
569
570ac_ext=c
571# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
572ac_cpp='$CPP $CPPFLAGS'
573ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
574ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
575cross_compiling=$ac_cv_prog_cc_cross
576
577ac_exeext=
578ac_objext=o
579if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
580  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
581  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
582    ac_n= ac_c='
583' ac_t='        '
584  else
585    ac_n=-n ac_c= ac_t=
586  fi
587else
588  ac_n= ac_c='\c' ac_t=
589fi
590
591
592
593pwd=`pwd`
594
595# make them to env variables
596# pass them indirectly to subsequent configures
597SINGULAR_MAJOR_VERSION=2
598SINGULAR_MINOR_VERSION=1
599SINGULAR_SUB_VERSION=2
600VERSION_SEP="-"
601SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
602SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
603SINGULAR_RPM_VERSION="${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.${SINGULAR_SUB_VERSION}"
604VERSION_DATE="August 2001"
605SINGULAR_ROOT_DIR=$pwd
606
607export SINGULAR_MINOR_VERSION
608export SINGULAR_MAJOR_VERSION
609export SINGULAR_SUB_VERSION
610export SINGULAR_VERSION
611export SINGULAR_RPM_VERSION
612export VERSION_DATE
613export SINGULAR_ROOT_DIR
614
615
616
617
618
619
620
621
622# determine Makefiles to output
623OUTPUT_MAKEFILES="Makefile"
624if test -d "doc"; then
625   OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES doc/Makefile doc/version.texi doc/uname.texi"
626fi
627if test -d "rpm"; then
628   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
629   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec"
630fi
631if test -d "modules"; then
632   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile"
633fi
634if test -d "modules/tools"; then
635   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile"
636fi
637if test -d "modules/modgen"; then
638   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/modgen/Makefile"
639fi
640if test -d "emacs"; then
641   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile"
642fi
643if test -d "IntegerProgramming"; then
644   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile"
645fi
646if test -d "Plural"; then
647   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile"
648fi
649if test -d "InstallShield"; then
650   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile"
651fi
652
653
654echo $ac_n "checking uname for singular""... $ac_c" 1>&6
655echo "configure:656: checking uname for singular" >&5
656if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
657  echo $ac_n "(cached) $ac_c" 1>&6
658else
659  ac_cv_singuname="unknown"
660if test -r "singuname.sh"; then
661  if (/bin/sh singuname.sh >/dev/null 2>&1) then
662    ac_cv_singuname=`/bin/sh singuname.sh`
663  fi
664fi
665
666fi
667
668echo "$ac_t""$ac_cv_singuname" 1>&6
669if test "$ac_cv_singuname" = unknown; then
670  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
671else
672  SINGUNAME=$ac_cv_singuname
673 
674fi
675
676SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
677
678
679
680# Extract the first word of "gcc", so it can be a program name with args.
681set dummy gcc; ac_word=$2
682echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683echo "configure:684: checking for $ac_word" >&5
684if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685  echo $ac_n "(cached) $ac_c" 1>&6
686else
687  if test -n "$CC"; then
688  ac_cv_prog_CC="$CC" # Let the user override the test.
689else
690  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
691  ac_dummy="$PATH"
692  for ac_dir in $ac_dummy; do
693    test -z "$ac_dir" && ac_dir=.
694    if test -f $ac_dir/$ac_word; then
695      ac_cv_prog_CC="gcc"
696      break
697    fi
698  done
699  IFS="$ac_save_ifs"
700fi
701fi
702CC="$ac_cv_prog_CC"
703if test -n "$CC"; then
704  echo "$ac_t""$CC" 1>&6
705else
706  echo "$ac_t""no" 1>&6
707fi
708
709if test -z "$CC"; then
710  # Extract the first word of "cc", so it can be a program name with args.
711set dummy cc; ac_word=$2
712echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
713echo "configure:714: checking for $ac_word" >&5
714if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
715  echo $ac_n "(cached) $ac_c" 1>&6
716else
717  if test -n "$CC"; then
718  ac_cv_prog_CC="$CC" # Let the user override the test.
719else
720  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
721  ac_prog_rejected=no
722  ac_dummy="$PATH"
723  for ac_dir in $ac_dummy; do
724    test -z "$ac_dir" && ac_dir=.
725    if test -f $ac_dir/$ac_word; then
726      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
727        ac_prog_rejected=yes
728        continue
729      fi
730      ac_cv_prog_CC="cc"
731      break
732    fi
733  done
734  IFS="$ac_save_ifs"
735if test $ac_prog_rejected = yes; then
736  # We found a bogon in the path, so make sure we never use it.
737  set dummy $ac_cv_prog_CC
738  shift
739  if test $# -gt 0; then
740    # We chose a different compiler from the bogus one.
741    # However, it has the same basename, so the bogon will be chosen
742    # first if we set CC to just the basename; use the full file name.
743    shift
744    set dummy "$ac_dir/$ac_word" "$@"
745    shift
746    ac_cv_prog_CC="$@"
747  fi
748fi
749fi
750fi
751CC="$ac_cv_prog_CC"
752if test -n "$CC"; then
753  echo "$ac_t""$CC" 1>&6
754else
755  echo "$ac_t""no" 1>&6
756fi
757
758  if test -z "$CC"; then
759    case "`uname -s`" in
760    *win32* | *WIN32*)
761      # Extract the first word of "cl", so it can be a program name with args.
762set dummy cl; ac_word=$2
763echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
764echo "configure:765: checking for $ac_word" >&5
765if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
766  echo $ac_n "(cached) $ac_c" 1>&6
767else
768  if test -n "$CC"; then
769  ac_cv_prog_CC="$CC" # Let the user override the test.
770else
771  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
772  ac_dummy="$PATH"
773  for ac_dir in $ac_dummy; do
774    test -z "$ac_dir" && ac_dir=.
775    if test -f $ac_dir/$ac_word; then
776      ac_cv_prog_CC="cl"
777      break
778    fi
779  done
780  IFS="$ac_save_ifs"
781fi
782fi
783CC="$ac_cv_prog_CC"
784if test -n "$CC"; then
785  echo "$ac_t""$CC" 1>&6
786else
787  echo "$ac_t""no" 1>&6
788fi
789 ;;
790    esac
791  fi
792  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
793fi
794
795echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
796echo "configure:797: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
797
798ac_ext=c
799# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
800ac_cpp='$CPP $CPPFLAGS'
801ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
802ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
803cross_compiling=$ac_cv_prog_cc_cross
804
805cat > conftest.$ac_ext << EOF
806
807#line 808 "configure"
808#include "confdefs.h"
809
810main(){return(0);}
811EOF
812if { (eval echo configure:813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
813  ac_cv_prog_cc_works=yes
814  # If we can't run a trivial program, we are probably using a cross compiler.
815  if (./conftest; exit) 2>/dev/null; then
816    ac_cv_prog_cc_cross=no
817  else
818    ac_cv_prog_cc_cross=yes
819  fi
820else
821  echo "configure: failed program was:" >&5
822  cat conftest.$ac_ext >&5
823  ac_cv_prog_cc_works=no
824fi
825rm -fr conftest*
826ac_ext=c
827# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
828ac_cpp='$CPP $CPPFLAGS'
829ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
830ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
831cross_compiling=$ac_cv_prog_cc_cross
832
833echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
834if test $ac_cv_prog_cc_works = no; then
835  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
836fi
837echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
838echo "configure:839: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
839echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
840cross_compiling=$ac_cv_prog_cc_cross
841
842echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
843echo "configure:844: checking whether we are using GNU C" >&5
844if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
845  echo $ac_n "(cached) $ac_c" 1>&6
846else
847  cat > conftest.c <<EOF
848#ifdef __GNUC__
849  yes;
850#endif
851EOF
852if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
853  ac_cv_prog_gcc=yes
854else
855  ac_cv_prog_gcc=no
856fi
857fi
858
859echo "$ac_t""$ac_cv_prog_gcc" 1>&6
860
861if test $ac_cv_prog_gcc = yes; then
862  GCC=yes
863else
864  GCC=
865fi
866
867ac_test_CFLAGS="${CFLAGS+set}"
868ac_save_CFLAGS="$CFLAGS"
869CFLAGS=
870echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
871echo "configure:872: checking whether ${CC-cc} accepts -g" >&5
872if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
873  echo $ac_n "(cached) $ac_c" 1>&6
874else
875  echo 'void f(){}' > conftest.c
876if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
877  ac_cv_prog_cc_g=yes
878else
879  ac_cv_prog_cc_g=no
880fi
881rm -f conftest*
882
883fi
884
885echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
886if test "$ac_test_CFLAGS" = set; then
887  CFLAGS="$ac_save_CFLAGS"
888elif test $ac_cv_prog_cc_g = yes; then
889  if test "$GCC" = yes; then
890    CFLAGS="-g -O2"
891  else
892    CFLAGS="-g"
893  fi
894else
895  if test "$GCC" = yes; then
896    CFLAGS="-O2"
897  else
898    CFLAGS=
899  fi
900fi
901
902echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
903echo "configure:904: checking how to run the C preprocessor" >&5
904# On Suns, sometimes $CPP names a directory.
905if test -n "$CPP" && test -d "$CPP"; then
906  CPP=
907fi
908if test -z "$CPP"; then
909if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
910  echo $ac_n "(cached) $ac_c" 1>&6
911else
912    # This must be in double quotes, not single quotes, because CPP may get
913  # substituted into the Makefile and "${CC-cc}" will confuse make.
914  CPP="${CC-cc} -E"
915  # On the NeXT, cc -E runs the code through the compiler's parser,
916  # not just through cpp.
917  cat > conftest.$ac_ext <<EOF
918#line 919 "configure"
919#include "confdefs.h"
920#include <assert.h>
921Syntax Error
922EOF
923ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924{ (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926if test -z "$ac_err"; then
927  :
928else
929  echo "$ac_err" >&5
930  echo "configure: failed program was:" >&5
931  cat conftest.$ac_ext >&5
932  rm -rf conftest*
933  CPP="${CC-cc} -E -traditional-cpp"
934  cat > conftest.$ac_ext <<EOF
935#line 936 "configure"
936#include "confdefs.h"
937#include <assert.h>
938Syntax Error
939EOF
940ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
941{ (eval echo configure:942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
942ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
943if test -z "$ac_err"; then
944  :
945else
946  echo "$ac_err" >&5
947  echo "configure: failed program was:" >&5
948  cat conftest.$ac_ext >&5
949  rm -rf conftest*
950  CPP="${CC-cc} -nologo -E"
951  cat > conftest.$ac_ext <<EOF
952#line 953 "configure"
953#include "confdefs.h"
954#include <assert.h>
955Syntax Error
956EOF
957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
958{ (eval echo configure:959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
959ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
960if test -z "$ac_err"; then
961  :
962else
963  echo "$ac_err" >&5
964  echo "configure: failed program was:" >&5
965  cat conftest.$ac_ext >&5
966  rm -rf conftest*
967  CPP=/lib/cpp
968fi
969rm -f conftest*
970fi
971rm -f conftest*
972fi
973rm -f conftest*
974  ac_cv_prog_CPP="$CPP"
975fi
976  CPP="$ac_cv_prog_CPP"
977else
978  ac_cv_prog_CPP="$CPP"
979fi
980echo "$ac_t""$CPP" 1>&6
981
982ac_aux_dir=
983for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984  if test -f $ac_dir/install-sh; then
985    ac_aux_dir=$ac_dir
986    ac_install_sh="$ac_aux_dir/install-sh -c"
987    break
988  elif test -f $ac_dir/install.sh; then
989    ac_aux_dir=$ac_dir
990    ac_install_sh="$ac_aux_dir/install.sh -c"
991    break
992  fi
993done
994if test -z "$ac_aux_dir"; then
995  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
996fi
997ac_config_guess=$ac_aux_dir/config.guess
998ac_config_sub=$ac_aux_dir/config.sub
999ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1000
1001# Find a good install program.  We prefer a C program (faster),
1002# so one script is as good as another.  But avoid the broken or
1003# incompatible versions:
1004# SysV /etc/install, /usr/sbin/install
1005# SunOS /usr/etc/install
1006# IRIX /sbin/install
1007# AIX /bin/install
1008# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1009# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1010# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1011# ./install, which can be erroneously created by make from ./install.sh.
1012echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1013echo "configure:1014: checking for a BSD compatible install" >&5
1014if test -z "$INSTALL"; then
1015if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1016  echo $ac_n "(cached) $ac_c" 1>&6
1017else
1018    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1019  for ac_dir in $PATH; do
1020    # Account for people who put trailing slashes in PATH elements.
1021    case "$ac_dir/" in
1022    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1023    *)
1024      # OSF1 and SCO ODT 3.0 have their own names for install.
1025      # Don't use installbsd from OSF since it installs stuff as root
1026      # by default.
1027      for ac_prog in ginstall scoinst install; do
1028        if test -f $ac_dir/$ac_prog; then
1029          if test $ac_prog = install &&
1030            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1031            # AIX install.  It has an incompatible calling convention.
1032            :
1033          else
1034            ac_cv_path_install="$ac_dir/$ac_prog -c"
1035            break 2
1036          fi
1037        fi
1038      done
1039      ;;
1040    esac
1041  done
1042  IFS="$ac_save_IFS"
1043
1044fi
1045  if test "${ac_cv_path_install+set}" = set; then
1046    INSTALL="$ac_cv_path_install"
1047  else
1048    # As a last resort, use the slow shell script.  We don't cache a
1049    # path for INSTALL within a source directory, because that will
1050    # break other packages using the cache if that directory is
1051    # removed, or if the path is relative.
1052    INSTALL="$ac_install_sh"
1053  fi
1054fi
1055echo "$ac_t""$INSTALL" 1>&6
1056
1057# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1058# It thinks the first close brace ends the variable substitution.
1059test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1060
1061test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1062
1063test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1064
1065echo $ac_n "checking for AIX""... $ac_c" 1>&6
1066echo "configure:1067: checking for AIX" >&5
1067cat > conftest.$ac_ext <<EOF
1068#line 1069 "configure"
1069#include "confdefs.h"
1070#ifdef _AIX
1071  yes
1072#endif
1073
1074EOF
1075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1076  egrep "yes" >/dev/null 2>&1; then
1077  rm -rf conftest*
1078  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1079#define _ALL_SOURCE 1
1080EOF
1081
1082else
1083  rm -rf conftest*
1084  echo "$ac_t""no" 1>&6
1085fi
1086rm -f conftest*
1087
1088
1089for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1090do
1091# Extract the first word of "$ac_prog", so it can be a program name with args.
1092set dummy $ac_prog; ac_word=$2
1093echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094echo "configure:1095: checking for $ac_word" >&5
1095if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1096  echo $ac_n "(cached) $ac_c" 1>&6
1097else
1098  if test -n "$CXX"; then
1099  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1100else
1101  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1102  ac_dummy="$PATH"
1103  for ac_dir in $ac_dummy; do
1104    test -z "$ac_dir" && ac_dir=.
1105    if test -f $ac_dir/$ac_word; then
1106      ac_cv_prog_CXX="$ac_prog"
1107      break
1108    fi
1109  done
1110  IFS="$ac_save_ifs"
1111fi
1112fi
1113CXX="$ac_cv_prog_CXX"
1114if test -n "$CXX"; then
1115  echo "$ac_t""$CXX" 1>&6
1116else
1117  echo "$ac_t""no" 1>&6
1118fi
1119
1120test -n "$CXX" && break
1121done
1122test -n "$CXX" || CXX="gcc"
1123
1124
1125echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1126echo "configure:1127: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1127
1128ac_ext=C
1129# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1130ac_cpp='$CXXCPP $CPPFLAGS'
1131ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1132ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1133cross_compiling=$ac_cv_prog_cxx_cross
1134
1135cat > conftest.$ac_ext << EOF
1136
1137#line 1138 "configure"
1138#include "confdefs.h"
1139
1140int main(){return(0);}
1141EOF
1142if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1143  ac_cv_prog_cxx_works=yes
1144  # If we can't run a trivial program, we are probably using a cross compiler.
1145  if (./conftest; exit) 2>/dev/null; then
1146    ac_cv_prog_cxx_cross=no
1147  else
1148    ac_cv_prog_cxx_cross=yes
1149  fi
1150else
1151  echo "configure: failed program was:" >&5
1152  cat conftest.$ac_ext >&5
1153  ac_cv_prog_cxx_works=no
1154fi
1155rm -fr conftest*
1156ac_ext=c
1157# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158ac_cpp='$CPP $CPPFLAGS'
1159ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161cross_compiling=$ac_cv_prog_cc_cross
1162
1163echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1164if test $ac_cv_prog_cxx_works = no; then
1165  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1166fi
1167echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1168echo "configure:1169: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1169echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1170cross_compiling=$ac_cv_prog_cxx_cross
1171
1172echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1173echo "configure:1174: checking whether we are using GNU C++" >&5
1174if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1175  echo $ac_n "(cached) $ac_c" 1>&6
1176else
1177  cat > conftest.C <<EOF
1178#ifdef __GNUC__
1179  yes;
1180#endif
1181EOF
1182if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1183  ac_cv_prog_gxx=yes
1184else
1185  ac_cv_prog_gxx=no
1186fi
1187fi
1188
1189echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1190
1191if test $ac_cv_prog_gxx = yes; then
1192  GXX=yes
1193else
1194  GXX=
1195fi
1196
1197ac_test_CXXFLAGS="${CXXFLAGS+set}"
1198ac_save_CXXFLAGS="$CXXFLAGS"
1199CXXFLAGS=
1200echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1201echo "configure:1202: checking whether ${CXX-g++} accepts -g" >&5
1202if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1203  echo $ac_n "(cached) $ac_c" 1>&6
1204else
1205  echo 'void f(){}' > conftest.cc
1206if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1207  ac_cv_prog_cxx_g=yes
1208else
1209  ac_cv_prog_cxx_g=no
1210fi
1211rm -f conftest*
1212
1213fi
1214
1215echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1216if test "$ac_test_CXXFLAGS" = set; then
1217  CXXFLAGS="$ac_save_CXXFLAGS"
1218elif test $ac_cv_prog_cxx_g = yes; then
1219  if test "$GXX" = yes; then
1220    CXXFLAGS="-g -O2"
1221  else
1222    CXXFLAGS="-g"
1223  fi
1224else
1225  if test "$GXX" = yes; then
1226    CXXFLAGS="-O2"
1227  else
1228    CXXFLAGS=
1229  fi
1230fi
1231
1232
1233# check whether the compiler accepts -pipe
1234echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
1235echo "configure:1236: checking whether compiler accepts -pipe" >&5
1236temp_cflags=${CFLAGS}
1237CFLAGS="${CFLAGS} -pipe"
1238if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
1239  echo $ac_n "(cached) $ac_c" 1>&6
1240else
1241  cat > conftest.$ac_ext <<EOF
1242#line 1243 "configure"
1243#include "confdefs.h"
1244
1245int main() {
1246
1247; return 0; }
1248EOF
1249if { (eval echo configure:1250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1250  rm -rf conftest*
1251  ac_cv_cxx_have_pipe=yes
1252else
1253  echo "configure: failed program was:" >&5
1254  cat conftest.$ac_ext >&5
1255  rm -rf conftest*
1256  ac_cv_cxx_have_pipe=no
1257fi
1258rm -f conftest*
1259
1260fi
1261
1262echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
1263CFLAGS=${temp_cflags}
1264if test "${ac_cv_cxx_have_pipe}" != yes; then
1265  PIPE=
1266else
1267  PIPE="-pipe"
1268fi
1269
1270
1271for ac_prog in perl5 perl
1272do
1273# Extract the first word of "$ac_prog", so it can be a program name with args.
1274set dummy $ac_prog; ac_word=$2
1275echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1276echo "configure:1277: checking for $ac_word" >&5
1277if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
1278  echo $ac_n "(cached) $ac_c" 1>&6
1279else
1280  if test -n "$PERL"; then
1281  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1282else
1283  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1284  ac_dummy="$PATH"
1285  for ac_dir in $ac_dummy; do
1286    test -z "$ac_dir" && ac_dir=.
1287    if test -f $ac_dir/$ac_word; then
1288      ac_cv_prog_PERL="$ac_prog"
1289      break
1290    fi
1291  done
1292  IFS="$ac_save_ifs"
1293fi
1294fi
1295PERL="$ac_cv_prog_PERL"
1296if test -n "$PERL"; then
1297  echo "$ac_t""$PERL" 1>&6
1298else
1299  echo "$ac_t""no" 1>&6
1300fi
1301
1302test -n "$PERL" && break
1303done
1304
1305for ac_prog in uudecode "uudeview -i"
1306do
1307# Extract the first word of "$ac_prog", so it can be a program name with args.
1308set dummy $ac_prog; ac_word=$2
1309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1310echo "configure:1311: checking for $ac_word" >&5
1311if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then
1312  echo $ac_n "(cached) $ac_c" 1>&6
1313else
1314  if test -n "$UUDECODE"; then
1315  ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test.
1316else
1317  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1318  ac_dummy="$PATH"
1319  for ac_dir in $ac_dummy; do
1320    test -z "$ac_dir" && ac_dir=.
1321    if test -f $ac_dir/$ac_word; then
1322      ac_cv_prog_UUDECODE="$ac_prog"
1323      break
1324    fi
1325  done
1326  IFS="$ac_save_ifs"
1327fi
1328fi
1329UUDECODE="$ac_cv_prog_UUDECODE"
1330if test -n "$UUDECODE"; then
1331  echo "$ac_t""$UUDECODE" 1>&6
1332else
1333  echo "$ac_t""no" 1>&6
1334fi
1335
1336test -n "$UUDECODE" && break
1337done
1338
1339for ac_prog in gunzip
1340do
1341# Extract the first word of "$ac_prog", so it can be a program name with args.
1342set dummy $ac_prog; ac_word=$2
1343echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344echo "configure:1345: checking for $ac_word" >&5
1345if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then
1346  echo $ac_n "(cached) $ac_c" 1>&6
1347else
1348  if test -n "$GUNZIP"; then
1349  ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test.
1350else
1351  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1352  ac_dummy="$PATH"
1353  for ac_dir in $ac_dummy; do
1354    test -z "$ac_dir" && ac_dir=.
1355    if test -f $ac_dir/$ac_word; then
1356      ac_cv_prog_GUNZIP="$ac_prog"
1357      break
1358    fi
1359  done
1360  IFS="$ac_save_ifs"
1361fi
1362fi
1363GUNZIP="$ac_cv_prog_GUNZIP"
1364if test -n "$GUNZIP"; then
1365  echo "$ac_t""$GUNZIP" 1>&6
1366else
1367  echo "$ac_t""no" 1>&6
1368fi
1369
1370test -n "$GUNZIP" && break
1371done
1372test -n "$GUNZIP" || GUNZIP="${pwd}/warn_not_found.sh gunzip"
1373
1374# don't use GZIP this breaks configure
1375for ac_prog in gzip
1376do
1377# Extract the first word of "$ac_prog", so it can be a program name with args.
1378set dummy $ac_prog; ac_word=$2
1379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1380echo "configure:1381: checking for $ac_word" >&5
1381if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then
1382  echo $ac_n "(cached) $ac_c" 1>&6
1383else
1384  if test -n "$MYGZIP"; then
1385  ac_cv_prog_MYGZIP="$MYGZIP" # Let the user override the test.
1386else
1387  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1388  ac_dummy="$PATH"
1389  for ac_dir in $ac_dummy; do
1390    test -z "$ac_dir" && ac_dir=.
1391    if test -f $ac_dir/$ac_word; then
1392      ac_cv_prog_MYGZIP="$ac_prog"
1393      break
1394    fi
1395  done
1396  IFS="$ac_save_ifs"
1397fi
1398fi
1399MYGZIP="$ac_cv_prog_MYGZIP"
1400if test -n "$MYGZIP"; then
1401  echo "$ac_t""$MYGZIP" 1>&6
1402else
1403  echo "$ac_t""no" 1>&6
1404fi
1405
1406test -n "$MYGZIP" && break
1407done
1408test -n "$MYGZIP" || MYGZIP="${pwd}/warn_not_found.sh gzip"
1409
1410# Extract the first word of "latex2html", so it can be a program name with args.
1411set dummy latex2html; ac_word=$2
1412echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1413echo "configure:1414: checking for $ac_word" >&5
1414if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
1415  echo $ac_n "(cached) $ac_c" 1>&6
1416else
1417  if test -n "$LATEX2HTML"; then
1418  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
1419else
1420  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1421  ac_dummy="$PATH"
1422  for ac_dir in $ac_dummy; do
1423    test -z "$ac_dir" && ac_dir=.
1424    if test -f $ac_dir/$ac_word; then
1425      ac_cv_prog_LATEX2HTML="latex2html"
1426      break
1427    fi
1428  done
1429  IFS="$ac_save_ifs"
1430fi
1431fi
1432LATEX2HTML="$ac_cv_prog_LATEX2HTML"
1433if test -n "$LATEX2HTML"; then
1434  echo "$ac_t""$LATEX2HTML" 1>&6
1435else
1436  echo "$ac_t""no" 1>&6
1437fi
1438
1439echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1440echo "configure:1441: checking whether ln -s works" >&5
1441if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1442  echo $ac_n "(cached) $ac_c" 1>&6
1443else
1444  rm -f conftestdata
1445if ln -s X conftestdata 2>/dev/null
1446then
1447  rm -f conftestdata
1448  ac_cv_prog_LN_S="ln -s"
1449else
1450  ac_cv_prog_LN_S=ln
1451fi
1452fi
1453LN_S="$ac_cv_prog_LN_S"
1454if test "$ac_cv_prog_LN_S" = "ln -s"; then
1455  echo "$ac_t""yes" 1>&6
1456else
1457  echo "$ac_t""no" 1>&6
1458fi
1459
1460
1461if test -r "${pwd}/mkinstalldirs"; then
1462  MKINSTALLDIRS=${pwd}/mkinstalldirs
1463 
1464else
1465  { echo "configure: error: mkinstalldirs not foind in ${pwd}" 1>&2; exit 1; }
1466fi
1467
1468# expand prefix and pass it to subsequent configures
1469if test "x$prefix" = xNONE; then
1470  prefix=${ac_default_prefix}
1471  ac_configure_args="$ac_configure_args --prefix=${prefix}"
1472fi
1473
1474# expand exec_prefix
1475if test "x$exec_prefix" = xNONE; then
1476 exec_prefix=${prefix}/${ac_cv_singuname}
1477 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
1478fi
1479
1480# expand bindir
1481if test "x$bindir" = 'x${exec_prefix}/bin'; then
1482  bindir="${exec_prefix}"
1483  ac_configure_args="$ac_configure_args --bindir=${bindir}"
1484fi
1485
1486# expand libdir
1487if test "x$libdir" = 'x${exec_prefix}/lib'; then
1488  libdir="${exec_prefix}/lib"
1489  ac_configure_args="$ac_configure_args --libdir=${libdir}"
1490fi
1491
1492# expand includedir
1493if test "x$includedir" = 'x${prefix}/include'; then
1494  includedir="${exec_prefix}/include"
1495  ac_configure_args="$ac_configure_args --includedir=${includedir}"
1496fi
1497
1498# construct name of installed Singular executable
1499SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
1500export SINGULAR
1501
1502
1503
1504# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
1505LDFLAGS="-L${libdir} ${LDFLAGS}"
1506CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1507
1508# check for AIX
1509echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1510echo "configure:1511: checking whether _AIX is defined" >&5
1511if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1512  echo $ac_n "(cached) $ac_c" 1>&6
1513else
1514  cat > conftest.$ac_ext <<EOF
1515#line 1516 "configure"
1516#include "confdefs.h"
1517#ifdef _AIX
1518    yes
1519#endif
1520
1521EOF
1522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1523  egrep "yes" >/dev/null 2>&1; then
1524  rm -rf conftest*
1525  ac_cv_is_aix=yes
1526else
1527  rm -rf conftest*
1528  ac_cv_is_aix=no
1529fi
1530rm -f conftest*
1531
1532fi
1533
1534if test "$ac_cv_is_aix" = yes; then
1535  echo "$ac_t""yes" 1>&6
1536else
1537  echo "$ac_t""no" 1>&6
1538fi
1539
1540echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1541echo "configure:1542: checking for atof in -lm" >&5
1542ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544  echo $ac_n "(cached) $ac_c" 1>&6
1545else
1546  ac_save_LIBS="$LIBS"
1547LIBS="-lm  $LIBS"
1548cat > conftest.$ac_ext <<EOF
1549#line 1550 "configure"
1550#include "confdefs.h"
1551/* Override any gcc2 internal prototype to avoid an error.  */
1552/* We use char because int might match the return type of a gcc2
1553    builtin and then its argument prototype would still apply.  */
1554char atof();
1555
1556int main() {
1557atof()
1558; return 0; }
1559EOF
1560if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1561  rm -rf conftest*
1562  eval "ac_cv_lib_$ac_lib_var=yes"
1563else
1564  echo "configure: failed program was:" >&5
1565  cat conftest.$ac_ext >&5
1566  rm -rf conftest*
1567  eval "ac_cv_lib_$ac_lib_var=no"
1568fi
1569rm -f conftest*
1570LIBS="$ac_save_LIBS"
1571
1572fi
1573if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1574  echo "$ac_t""yes" 1>&6
1575    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1576    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1577  cat >> confdefs.h <<EOF
1578#define $ac_tr_lib 1
1579EOF
1580
1581  LIBS="-lm $LIBS"
1582
1583else
1584  echo "$ac_t""no" 1>&6
1585fi
1586
1587echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1588echo "configure:1589: checking for socket in -lbsd" >&5
1589ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1591  echo $ac_n "(cached) $ac_c" 1>&6
1592else
1593  ac_save_LIBS="$LIBS"
1594LIBS="-lbsd  $LIBS"
1595cat > conftest.$ac_ext <<EOF
1596#line 1597 "configure"
1597#include "confdefs.h"
1598/* Override any gcc2 internal prototype to avoid an error.  */
1599/* We use char because int might match the return type of a gcc2
1600    builtin and then its argument prototype would still apply.  */
1601char socket();
1602
1603int main() {
1604socket()
1605; return 0; }
1606EOF
1607if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1608  rm -rf conftest*
1609  eval "ac_cv_lib_$ac_lib_var=yes"
1610else
1611  echo "configure: failed program was:" >&5
1612  cat conftest.$ac_ext >&5
1613  rm -rf conftest*
1614  eval "ac_cv_lib_$ac_lib_var=no"
1615fi
1616rm -f conftest*
1617LIBS="$ac_save_LIBS"
1618
1619fi
1620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1621  echo "$ac_t""yes" 1>&6
1622    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1623    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1624  cat >> confdefs.h <<EOF
1625#define $ac_tr_lib 1
1626EOF
1627
1628  LIBS="-lbsd $LIBS"
1629
1630else
1631  echo "$ac_t""no" 1>&6
1632fi
1633
1634echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1635echo "configure:1636: checking for listen in -lsocket" >&5
1636ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1637if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1638  echo $ac_n "(cached) $ac_c" 1>&6
1639else
1640  ac_save_LIBS="$LIBS"
1641LIBS="-lsocket  $LIBS"
1642cat > conftest.$ac_ext <<EOF
1643#line 1644 "configure"
1644#include "confdefs.h"
1645/* Override any gcc2 internal prototype to avoid an error.  */
1646/* We use char because int might match the return type of a gcc2
1647    builtin and then its argument prototype would still apply.  */
1648char listen();
1649
1650int main() {
1651listen()
1652; return 0; }
1653EOF
1654if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1655  rm -rf conftest*
1656  eval "ac_cv_lib_$ac_lib_var=yes"
1657else
1658  echo "configure: failed program was:" >&5
1659  cat conftest.$ac_ext >&5
1660  rm -rf conftest*
1661  eval "ac_cv_lib_$ac_lib_var=no"
1662fi
1663rm -f conftest*
1664LIBS="$ac_save_LIBS"
1665
1666fi
1667if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1668  echo "$ac_t""yes" 1>&6
1669    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1670    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1671  cat >> confdefs.h <<EOF
1672#define $ac_tr_lib 1
1673EOF
1674
1675  LIBS="-lsocket $LIBS"
1676
1677else
1678  echo "$ac_t""no" 1>&6
1679fi
1680
1681echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1682echo "configure:1683: checking for gethostbyname in -lnsl" >&5
1683ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1684if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1685  echo $ac_n "(cached) $ac_c" 1>&6
1686else
1687  ac_save_LIBS="$LIBS"
1688LIBS="-lnsl  $LIBS"
1689cat > conftest.$ac_ext <<EOF
1690#line 1691 "configure"
1691#include "confdefs.h"
1692/* Override any gcc2 internal prototype to avoid an error.  */
1693/* We use char because int might match the return type of a gcc2
1694    builtin and then its argument prototype would still apply.  */
1695char gethostbyname();
1696
1697int main() {
1698gethostbyname()
1699; return 0; }
1700EOF
1701if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1702  rm -rf conftest*
1703  eval "ac_cv_lib_$ac_lib_var=yes"
1704else
1705  echo "configure: failed program was:" >&5
1706  cat conftest.$ac_ext >&5
1707  rm -rf conftest*
1708  eval "ac_cv_lib_$ac_lib_var=no"
1709fi
1710rm -f conftest*
1711LIBS="$ac_save_LIBS"
1712
1713fi
1714if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1715  echo "$ac_t""yes" 1>&6
1716    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1717    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1718  cat >> confdefs.h <<EOF
1719#define $ac_tr_lib 1
1720EOF
1721
1722  LIBS="-lnsl $LIBS"
1723
1724else
1725  echo "$ac_t""no" 1>&6
1726fi
1727
1728echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1729echo "configure:1730: checking for main in -lgmp" >&5
1730ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1732  echo $ac_n "(cached) $ac_c" 1>&6
1733else
1734  ac_save_LIBS="$LIBS"
1735LIBS="-lgmp  $LIBS"
1736cat > conftest.$ac_ext <<EOF
1737#line 1738 "configure"
1738#include "confdefs.h"
1739
1740int main() {
1741main()
1742; return 0; }
1743EOF
1744if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1745  rm -rf conftest*
1746  eval "ac_cv_lib_$ac_lib_var=yes"
1747else
1748  echo "configure: failed program was:" >&5
1749  cat conftest.$ac_ext >&5
1750  rm -rf conftest*
1751  eval "ac_cv_lib_$ac_lib_var=no"
1752fi
1753rm -f conftest*
1754LIBS="$ac_save_LIBS"
1755
1756fi
1757if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1758  echo "$ac_t""yes" 1>&6
1759    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1760    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1761  cat >> confdefs.h <<EOF
1762#define $ac_tr_lib 1
1763EOF
1764
1765  LIBS="-lgmp $LIBS"
1766
1767else
1768  echo "$ac_t""no" 1>&6
1769fi
1770
1771echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1772echo "configure:1773: checking for mpz_init in -lsmallgmp" >&5
1773ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1774if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1775  echo $ac_n "(cached) $ac_c" 1>&6
1776else
1777  ac_save_LIBS="$LIBS"
1778LIBS="-lsmallgmp  $LIBS"
1779cat > conftest.$ac_ext <<EOF
1780#line 1781 "configure"
1781#include "confdefs.h"
1782/* Override any gcc2 internal prototype to avoid an error.  */
1783/* We use char because int might match the return type of a gcc2
1784    builtin and then its argument prototype would still apply.  */
1785char mpz_init();
1786
1787int main() {
1788mpz_init()
1789; return 0; }
1790EOF
1791if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1792  rm -rf conftest*
1793  eval "ac_cv_lib_$ac_lib_var=yes"
1794else
1795  echo "configure: failed program was:" >&5
1796  cat conftest.$ac_ext >&5
1797  rm -rf conftest*
1798  eval "ac_cv_lib_$ac_lib_var=no"
1799fi
1800rm -f conftest*
1801LIBS="$ac_save_LIBS"
1802
1803fi
1804if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1805  echo "$ac_t""yes" 1>&6
1806    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1807    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1808  cat >> confdefs.h <<EOF
1809#define $ac_tr_lib 1
1810EOF
1811
1812  LIBS="-lsmallgmp $LIBS"
1813
1814else
1815  echo "$ac_t""no" 1>&6
1816fi
1817
1818echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1819echo "configure:1820: checking for IMP_PutGmpInt in -lMP" >&5
1820ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1821if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1822  echo $ac_n "(cached) $ac_c" 1>&6
1823else
1824  ac_save_LIBS="$LIBS"
1825LIBS="-lMP  $LIBS"
1826cat > conftest.$ac_ext <<EOF
1827#line 1828 "configure"
1828#include "confdefs.h"
1829/* Override any gcc2 internal prototype to avoid an error.  */
1830/* We use char because int might match the return type of a gcc2
1831    builtin and then its argument prototype would still apply.  */
1832char IMP_PutGmpInt();
1833
1834int main() {
1835IMP_PutGmpInt()
1836; return 0; }
1837EOF
1838if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1839  rm -rf conftest*
1840  eval "ac_cv_lib_$ac_lib_var=yes"
1841else
1842  echo "configure: failed program was:" >&5
1843  cat conftest.$ac_ext >&5
1844  rm -rf conftest*
1845  eval "ac_cv_lib_$ac_lib_var=no"
1846fi
1847rm -f conftest*
1848LIBS="$ac_save_LIBS"
1849
1850fi
1851if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1852  echo "$ac_t""yes" 1>&6
1853    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1854    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1855  cat >> confdefs.h <<EOF
1856#define $ac_tr_lib 1
1857EOF
1858
1859  LIBS="-lMP $LIBS"
1860
1861else
1862  echo "$ac_t""no" 1>&6
1863fi
1864
1865echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1866echo "configure:1867: checking for MPT_GetTree in -lMPT" >&5
1867ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1869  echo $ac_n "(cached) $ac_c" 1>&6
1870else
1871  ac_save_LIBS="$LIBS"
1872LIBS="-lMPT  $LIBS"
1873cat > conftest.$ac_ext <<EOF
1874#line 1875 "configure"
1875#include "confdefs.h"
1876/* Override any gcc2 internal prototype to avoid an error.  */
1877/* We use char because int might match the return type of a gcc2
1878    builtin and then its argument prototype would still apply.  */
1879char MPT_GetTree();
1880
1881int main() {
1882MPT_GetTree()
1883; return 0; }
1884EOF
1885if { (eval echo configure:1886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1886  rm -rf conftest*
1887  eval "ac_cv_lib_$ac_lib_var=yes"
1888else
1889  echo "configure: failed program was:" >&5
1890  cat conftest.$ac_ext >&5
1891  rm -rf conftest*
1892  eval "ac_cv_lib_$ac_lib_var=no"
1893fi
1894rm -f conftest*
1895LIBS="$ac_save_LIBS"
1896
1897fi
1898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1899  echo "$ac_t""yes" 1>&6
1900    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1901    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1902  cat >> confdefs.h <<EOF
1903#define $ac_tr_lib 1
1904EOF
1905
1906  LIBS="-lMPT $LIBS"
1907
1908else
1909  echo "$ac_t""no" 1>&6
1910fi
1911
1912echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1913echo "configure:1914: checking for atof in -lsingcf" >&5
1914ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1915if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1916  echo $ac_n "(cached) $ac_c" 1>&6
1917else
1918  ac_save_LIBS="$LIBS"
1919LIBS="-lsingcf  $LIBS"
1920cat > conftest.$ac_ext <<EOF
1921#line 1922 "configure"
1922#include "confdefs.h"
1923/* Override any gcc2 internal prototype to avoid an error.  */
1924/* We use char because int might match the return type of a gcc2
1925    builtin and then its argument prototype would still apply.  */
1926char atof();
1927
1928int main() {
1929atof()
1930; return 0; }
1931EOF
1932if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1933  rm -rf conftest*
1934  eval "ac_cv_lib_$ac_lib_var=yes"
1935else
1936  echo "configure: failed program was:" >&5
1937  cat conftest.$ac_ext >&5
1938  rm -rf conftest*
1939  eval "ac_cv_lib_$ac_lib_var=no"
1940fi
1941rm -f conftest*
1942LIBS="$ac_save_LIBS"
1943
1944fi
1945if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1946  echo "$ac_t""yes" 1>&6
1947    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1948    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1949  cat >> confdefs.h <<EOF
1950#define $ac_tr_lib 1
1951EOF
1952
1953  LIBS="-lsingcf $LIBS"
1954
1955else
1956  echo "$ac_t""no" 1>&6
1957fi
1958
1959echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1960echo "configure:1961: checking for atof in -lsingfac" >&5
1961ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1963  echo $ac_n "(cached) $ac_c" 1>&6
1964else
1965  ac_save_LIBS="$LIBS"
1966LIBS="-lsingfac  $LIBS"
1967cat > conftest.$ac_ext <<EOF
1968#line 1969 "configure"
1969#include "confdefs.h"
1970/* Override any gcc2 internal prototype to avoid an error.  */
1971/* We use char because int might match the return type of a gcc2
1972    builtin and then its argument prototype would still apply.  */
1973char atof();
1974
1975int main() {
1976atof()
1977; return 0; }
1978EOF
1979if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1980  rm -rf conftest*
1981  eval "ac_cv_lib_$ac_lib_var=yes"
1982else
1983  echo "configure: failed program was:" >&5
1984  cat conftest.$ac_ext >&5
1985  rm -rf conftest*
1986  eval "ac_cv_lib_$ac_lib_var=no"
1987fi
1988rm -f conftest*
1989LIBS="$ac_save_LIBS"
1990
1991fi
1992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1993  echo "$ac_t""yes" 1>&6
1994    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1995    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1996  cat >> confdefs.h <<EOF
1997#define $ac_tr_lib 1
1998EOF
1999
2000  LIBS="-lsingfac $LIBS"
2001
2002else
2003  echo "$ac_t""no" 1>&6
2004fi
2005
2006echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
2007echo "configure:2008: checking for omTestAddr in -lomalloc" >&5
2008ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
2009if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2010  echo $ac_n "(cached) $ac_c" 1>&6
2011else
2012  ac_save_LIBS="$LIBS"
2013LIBS="-lomalloc  $LIBS"
2014cat > conftest.$ac_ext <<EOF
2015#line 2016 "configure"
2016#include "confdefs.h"
2017/* Override any gcc2 internal prototype to avoid an error.  */
2018/* We use char because int might match the return type of a gcc2
2019    builtin and then its argument prototype would still apply.  */
2020char omTestAddr();
2021
2022int main() {
2023omTestAddr()
2024; return 0; }
2025EOF
2026if { (eval echo configure:2027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2027  rm -rf conftest*
2028  eval "ac_cv_lib_$ac_lib_var=yes"
2029else
2030  echo "configure: failed program was:" >&5
2031  cat conftest.$ac_ext >&5
2032  rm -rf conftest*
2033  eval "ac_cv_lib_$ac_lib_var=no"
2034fi
2035rm -f conftest*
2036LIBS="$ac_save_LIBS"
2037
2038fi
2039if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2040  echo "$ac_t""yes" 1>&6
2041    ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2042    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2043  cat >> confdefs.h <<EOF
2044#define $ac_tr_lib 1
2045EOF
2046
2047  LIBS="-lomalloc $LIBS"
2048
2049else
2050  echo "$ac_t""no" 1>&6
2051fi
2052
2053echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
2054echo "configure:2055: checking for main in -lomalloc_ndebug" >&5
2055ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
2056if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2057  echo $ac_n "(cached) $ac_c" 1>&6
2058else
2059  ac_save_LIBS="$LIBS"
2060LIBS="-lomalloc_ndebug  $LIBS"
2061cat > conftest.$ac_ext <<EOF
2062#line 2063 "configure"
2063#include "confdefs.h"
2064
2065int main() {
2066main()
2067; return 0; }
2068EOF
2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2070  rm -rf conftest*
2071  eval "ac_cv_lib_$ac_lib_var=yes"
2072else
2073  echo "configure: failed program was:" >&5
2074  cat conftest.$ac_ext >&5
2075  rm -rf conftest*
2076  eval "ac_cv_lib_$ac_lib_var=no"
2077fi
2078rm -f conftest*
2079LIBS="$ac_save_LIBS"
2080
2081fi
2082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2083  echo "$ac_t""yes" 1>&6
2084    ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2085    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2086  cat >> confdefs.h <<EOF
2087#define $ac_tr_lib 1
2088EOF
2089
2090  LIBS="-lomalloc_ndebug $LIBS"
2091
2092else
2093  echo "$ac_t""no" 1>&6
2094fi
2095
2096
2097for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h
2098do
2099ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2100echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2101echo "configure:2102: checking for $ac_hdr" >&5
2102if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2103  echo $ac_n "(cached) $ac_c" 1>&6
2104else
2105  cat > conftest.$ac_ext <<EOF
2106#line 2107 "configure"
2107#include "confdefs.h"
2108#include <$ac_hdr>
2109EOF
2110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2111{ (eval echo configure:2112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2112ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2113if test -z "$ac_err"; then
2114  rm -rf conftest*
2115  eval "ac_cv_header_$ac_safe=yes"
2116else
2117  echo "$ac_err" >&5
2118  echo "configure: failed program was:" >&5
2119  cat conftest.$ac_ext >&5
2120  rm -rf conftest*
2121  eval "ac_cv_header_$ac_safe=no"
2122fi
2123rm -f conftest*
2124fi
2125if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2126  echo "$ac_t""yes" 1>&6
2127    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2128  cat >> confdefs.h <<EOF
2129#define $ac_tr_hdr 1
2130EOF
2131 
2132else
2133  echo "$ac_t""no" 1>&6
2134fi
2135done
2136
2137
2138if test "$ac_cv_lib_gmp_main" = yes && \
2139 test "$ac_cv_header_gmp_h" = yes; then
2140  ac_gmp_ok=yes
2141fi
2142
2143if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
2144 test "$ac_cv_header_smallgmp_h" = yes && \
2145 test "$ac_cv_header_gmp_h" = yes; then
2146  ac_smallgmp_ok=yes
2147fi
2148
2149if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
2150 test "$ac_cv_lib_MPT_MPT_GetTree" && \
2151 test "$ac_cv_header_MP_h" = yes && \
2152 test "$ac_cv_header_MPT_h" = yes; then
2153  ac_MP_ok=yes
2154fi
2155
2156if test "$ac_cv_lib_singcf_atof" = yes && \
2157 test "$ac_cv_header_factory_h" = yes; then
2158  ac_factory_ok=yes
2159fi
2160
2161if test "$ac_cv_lib_singfac_atof" = yes && \
2162 test "$ac_cv_header_factor_h" = yes; then
2163  ac_libfac_ok=yes
2164fi
2165
2166if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \
2167   test "$ac_cv_lib_omalloc_ndebug_main" = yes && \
2168   test "$ac_cv_header_omalloc_c" = yes && \
2169   test "$ac_cv_header_omalloc_h" = yes; then
2170  ac_cv_omalloc_ok=yes
2171fi
2172 
2173# Check whether --with-tmpdir or --without-tmpdir was given.
2174if test "${with_tmpdir+set}" = set; then
2175  withval="$with_tmpdir"
2176  :
2177fi
2178
2179# Check whether --enable-smallgmp or --disable-smallgmp was given.
2180if test "${enable_smallgmp+set}" = set; then
2181  enableval="$enable_smallgmp"
2182  :
2183fi
2184
2185# Check whether --enable-omalloc or --disable-omalloc was given.
2186if test "${enable_omalloc+set}" = set; then
2187  enableval="$enable_omalloc"
2188  :
2189fi
2190
2191# Check whether --enable-gmp or --disable-gmp was given.
2192if test "${enable_gmp+set}" = set; then
2193  enableval="$enable_gmp"
2194  :
2195fi
2196
2197# Check whether --enable-MP or --disable-MP was given.
2198if test "${enable_MP+set}" = set; then
2199  enableval="$enable_MP"
2200  :
2201fi
2202
2203# Check whether --enable-factory or --disable-factory was given.
2204if test "${enable_factory+set}" = set; then
2205  enableval="$enable_factory"
2206  :
2207fi
2208
2209# Check whether --enable-libfac or --disable-libfac was given.
2210if test "${enable_libfac+set}" = set; then
2211  enableval="$enable_libfac"
2212  :
2213fi
2214
2215# Check whether --enable-sgroup or --disable-sgroup was given.
2216if test "${enable_sgroup+set}" = set; then
2217  enableval="$enable_sgroup"
2218  :
2219fi
2220
2221# Check whether --enable-Singular or --disable-Singular was given.
2222if test "${enable_Singular+set}" = set; then
2223  enableval="$enable_Singular"
2224  :
2225fi
2226
2227# Check whether --enable-IntegerProgramming or --disable-IntegerProgramming was given.
2228if test "${enable_IntegerProgramming+set}" = set; then
2229  enableval="$enable_IntegerProgramming"
2230  :
2231fi
2232
2233# Check whether --enable-Plural or --disable-Plural was given.
2234if test "${enable_Plural+set}" = set; then
2235  enableval="$enable_Plural"
2236  :
2237fi
2238
2239# Check whether --enable-Texinfo or --disable-Texinfo was given.
2240if test "${enable_Texinfo+set}" = set; then
2241  enableval="$enable_Texinfo"
2242  :
2243fi
2244
2245# Check whether --enable-Texi2html or --disable-Texi2html was given.
2246if test "${enable_Texi2html+set}" = set; then
2247  enableval="$enable_Texi2html"
2248  :
2249fi
2250
2251# Check whether --enable-doc or --disable-doc was given.
2252if test "${enable_doc+set}" = set; then
2253  enableval="$enable_doc"
2254  :
2255fi
2256
2257# Check whether --enable-emacs or --disable-emacs was given.
2258if test "${enable_emacs+set}" = set; then
2259  enableval="$enable_emacs"
2260  :
2261fi
2262
2263# Check whether --with-MP or --without-MP was given.
2264if test "${with_MP+set}" = set; then
2265  withval="$with_MP"
2266  :
2267fi
2268
2269# Check whether --with-factory or --without-factory was given.
2270if test "${with_factory+set}" = set; then
2271  withval="$with_factory"
2272  :
2273fi
2274
2275# Check whether --with-libfac or --without-libfac was given.
2276if test "${with_libfac+set}" = set; then
2277  withval="$with_libfac"
2278  :
2279fi
2280
2281# Check whether --with-gmp or --without-gmp was given.
2282if test "${with_gmp+set}" = set; then
2283  withval="$with_gmp"
2284  :
2285fi
2286
2287
2288echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
2289echo "configure:2290: checking which tmp dir to use" >&5
2290if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
2291  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
2292  then
2293    TMP_DIR="${pwd}/tmp"
2294  else
2295    TMP_DIR=${with_tmpdir}
2296  fi
2297else
2298  TMP_DIR="${pwd}/tmp"
2299fi
2300echo "$ac_t""$TMP_DIR" 1>&6
2301
2302
2303echo $ac_n "checking whether to configure and build omalloc""... $ac_c" 1>&6
2304echo "configure:2305: checking whether to configure and build omalloc" >&5
2305if test "${enable_omalloc+set}" != set; then
2306   if test "$ac_cv_omalloc_ok" = yes; then
2307     enable_omalloc=no
2308   fi
2309   enable_omalloc_not_set=yes
2310fi
2311if test "$enable_omalloc" = no; then
2312  if test "$ac_cv_omalloc_ok" != yes; then
2313    { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
2314  fi
2315  echo "$ac_t""no" 1>&6
2316else
2317  if test -d omalloc; then
2318    echo "$ac_t""yes" 1>&6
2319    if test "$enable_omalloc_not_set" = yes; then
2320      ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom"
2321    fi
2322    CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc"
2323    if test "${with_malloc+set}" != set; then
2324case "$ac_cv_singuname" in
2325# under windows, it is best to use the provided malloc
2326        ix86-Win*)
2327        with_malloc=system
2328        ac_configure_args="$ac_configure_args --with-malloc=system"
2329        ;;
2330        PowerMacintosh-darwin*)
2331        with_malloc=system
2332        ac_configure_args="$ac_configure_args --with-malloc=system"
2333        ;;
2334esac
2335fi
2336  else
2337    { echo "configure: error: need omalloc subdir" 1>&2; exit 1; }
2338  fi
2339fi
2340
2341echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
2342echo "configure:2343: checking whether to configure and build gmp lib" >&5
2343if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
2344  if test "$ac_gmp_ok" != yes && test -d gmp; then
2345    echo "$ac_t""yes" 1>&6
2346    enable_gmp=yes
2347    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2348    ac_configure_args="$ac_configure_args --enable-gmp"
2349    enable_gmp=yes
2350#    This we used to need for our patched version of gmp 2.x
2351#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2352  else
2353    echo "$ac_t""no" 1>&6
2354    enable_gmp=no
2355  fi
2356elif test "$enable_gmp" = yes; then
2357  if test ! -d gmp; then
2358    echo "$ac_t""no" 1>&6
2359    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
2360  else
2361    echo "$ac_t""yes" 1>&6
2362    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2363#    This we used to need for our patched version of gmp 2.x
2364#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2365  fi
2366else
2367  echo "$ac_t""no" 1>&6
2368fi
2369
2370if test "$enable_gmp" = yes; then
2371# for gmp-3.0 to work for all ix86 processors, set generic target
2372if test "$target" = NONE; then
2373case "$ac_cv_singuname" in
2374        ix86*)
2375        gmp_target=`./config.guess | sed 's/^\w*-/i386-/'`
2376        ac_configure_args="$ac_configure_args --target=$gmp_target"
2377        ;;
2378esac
2379fi
2380# furthermore, disable building of dynamic libraries, for we want to
2381# link against the static ones
2382if test "$enable_shared" != no; then
2383  ac_configure_args="$ac_configure_args --disable-shared"
2384fi
2385fi
2386
2387echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
2388echo "configure:2389: checking whether to configure and build smallgmp lib" >&5
2389if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
2390  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2391     test "$enable_gmp" != yes && test -d smallgmp; then
2392    echo "$ac_t""yes" 1>&6
2393    enable_smallgmp=yes
2394    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2395    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
2396    enable_gmp=yes
2397  else
2398    echo "$ac_t""no" 1>&6
2399    enable_smallgmp=no
2400  fi
2401elif test "$enable_smallgmp" = yes; then
2402  if test ! -d smallgmp; then
2403    echo "$ac_t""no" 1>&6
2404    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
2405  else
2406    echo "$ac_t""yes" 1>&6
2407    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2408    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2409      ac_configure_args="$ac_configure_args --enable-gmp"
2410      enable_gmp=yes
2411    fi
2412  fi
2413else
2414  echo "$ac_t""${enable_smallgmp}" 1>&6
2415fi
2416
2417# Check whether we have at least one of smallgmp or gmp
2418if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2419   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
2420  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
2421fi
2422
2423# Check whether we need to cheat subsequent configures with --enable-gmp
2424if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2425  ac_configure_args="$ac_configure_args --enable-gmp"
2426fi
2427
2428echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
2429echo "configure:2430: checking whether to configure and build MP lib" >&5
2430if test "$enable_MP" != yes && test "$enable_MP" != no; then
2431  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
2432     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
2433    echo "$ac_t""yes" 1>&6
2434    enable_MP=yes
2435    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2436    ac_configure_args="$ac_configure_args --enable-MP"
2437  else
2438    echo "$ac_t""no" 1>&6
2439    enable_MP=no
2440  fi
2441elif test "$enable_MP" = yes; then
2442  if test ! -d MP; then
2443    echo "$ac_t""no" 1>&6
2444    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
2445  fi
2446  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
2447    echo "$ac_t""yes" 1>&6
2448    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2449  else
2450    echo "$ac_t""no" 1>&6
2451    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
2452  fi
2453else
2454  echo "$ac_t""no" 1>&6
2455fi
2456
2457# need MP code to be compiled with -fPIC, should not hurt anybody else
2458if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then
2459ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC"
2460fi
2461
2462echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6
2463echo "configure:2464: checking whether to configure and build NTL lib" >&5
2464if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
2465  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
2466     test -d ntl; then
2467    enable_NTL=yes
2468    echo "$ac_t""yes" 1>&6
2469    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2470    ac_configure_args="$ac_configure_args --enable-NTL"
2471  else
2472    enable_NTL=no
2473    echo "$ac_t""no" 1>&6
2474  fi
2475elif test "$enable_NTL" = yes; then
2476  if test -d ntl; then
2477    echo "$ac_t""yes" 1>&6
2478    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2479  else
2480    echo "$ac_t""no" 1>&6
2481    { echo "configure: error: can not build NTL without ntl directory" 1>&2; exit 1; }
2482  fi
2483else
2484  echo "$ac_t""no" 1>&6
2485fi
2486
2487echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
2488echo "configure:2489: checking whether to configure and build factory lib" >&5
2489if test "$enable_factory" != yes && test "$enable_factory" != no; then
2490  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
2491     test -d factory; then
2492    enable_factory=yes
2493    echo "$ac_t""yes" 1>&6
2494    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2495    ac_configure_args="$ac_configure_args --enable-factory"
2496  else
2497    enable_factory=no
2498    echo "$ac_t""no" 1>&6
2499  fi
2500elif test "$enable_factory" = yes; then
2501  if test -d factory; then
2502    echo "$ac_t""yes" 1>&6
2503    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2504  else
2505    echo "$ac_t""no" 1>&6
2506    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
2507  fi
2508else
2509  echo "$ac_t""no" 1>&6
2510fi
2511
2512echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
2513echo "configure:2514: checking whether to configure and build libfac lib" >&5
2514if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
2515  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
2516     test -d libfac && \
2517     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
2518    enable_libfac=yes
2519    echo "$ac_t""yes" 1>&6
2520    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2521    ac_configure_args="$ac_configure_args --enable-libfac"
2522  else
2523    enable_libfac=no
2524    echo "$ac_t""no" 1>&6
2525  fi
2526elif  test "$enable_libfac" = yes; then
2527  if test ! -d libfac; then
2528    echo "$ac_t""no" 1>&6
2529    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
2530  fi
2531  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2532    echo "$ac_t""yes" 1>&6
2533    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2534  else
2535    echo "$ac_t""no" 1>&6
2536    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
2537  fi
2538else
2539  echo "$ac_t""no" 1>&6
2540fi
2541
2542echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
2543echo "configure:2544: checking whether to configure and build sgroup lib" >&5
2544if test "$enable_sgroup" = yes; then
2545  if test ! -d sgroup; then
2546    echo "$ac_t""no" 1>&6
2547    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
2548  fi
2549  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2550    echo "$ac_t""yes" 1>&6
2551    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
2552  else
2553    echo "$ac_t""no" 1>&6
2554    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
2555  fi
2556else
2557  echo "$ac_t""no" 1>&6
2558fi
2559
2560BUILD_SUBDIRS="$CONFIG_SUBDIRS"
2561
2562echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
2563echo "configure:2564: checking whether to configure and build Singular" >&5
2564if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
2565  if test "$with_Singular" != no && test -d Singular; then
2566    enable_Singular=yes
2567    echo "$ac_t""yes" 1>&6
2568    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2569    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
2570    ac_configure_args="$ac_configure_args --enable-Singular"
2571  else
2572    enable_Singular=no
2573    echo "$ac_t""no" 1>&6
2574  fi
2575elif test "$enable_Singular" = yes; then
2576  if test -d Singular; then
2577    echo "$ac_t""yes" 1>&6
2578    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2579    BUILD_SUBDIRS="$BUILD_SUBDIRS Singular"     
2580  else
2581    echo "$ac_t""no" 1>&6
2582    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2583  fi
2584else
2585  echo "$ac_t""no" 1>&6
2586fi
2587
2588
2589# test if IntegerProgramming should be built:
2590
2591echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
2592echo "configure:2593: checking whether to build IntegerProgramming" >&5
2593if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
2594   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
2595   echo "$ac_t""yes" 1>&6
2596   if test "$enable_IntegerProgramming" != yes; then
2597     ac_configure_args="$ac_configure_args --enable-IntegerProgramming"
2598   fi
2599else
2600   echo "$ac_t""no" 1>&6
2601fi
2602
2603echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
2604echo "configure:2605: checking whether to build Plural" >&5
2605if test "$enable_Plural" != no || test "$with_Plural" != no; then
2606   echo "$ac_t""yes" 1>&6
2607   if test "$enable_Plural" != yes; then
2608     ac_configure_args="$ac_configure_args --enable-Plural"
2609   fi
2610else
2611   echo "$ac_t""no" 1>&6
2612fi
2613
2614
2615echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
2616echo "configure:2617: checking whether to configure and build Texinfo" >&5
2617if test "$enable_Texinfo" != no && test -d Texinfo; then
2618  echo "$ac_t""yes" 1>&6
2619  enable_texinfo=yes
2620  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
2621  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"       
2622  TEXI2DVI=${bindir}/texi2dvi
2623  MAKEINFO="${bindir}/makeinfo"
2624  TEXINDEX=${bindir}/texindex
2625 
2626 
2627 
2628  if test "$enable_Texinfo" != yes; then
2629    ac_configure_args="$ac_configure_args --enable-Texinfo"
2630  fi
2631else
2632  echo "$ac_t""no" 1>&6
2633  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
2634  enable_texinfo=no
2635  # Extract the first word of "makeinfo", so it can be a program name with args.
2636set dummy makeinfo; ac_word=$2
2637echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2638echo "configure:2639: checking for $ac_word" >&5
2639if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2640  echo $ac_n "(cached) $ac_c" 1>&6
2641else
2642  if test -n "$MAKEINFO"; then
2643  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2644else
2645  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2646  ac_dummy="$PATH"
2647  for ac_dir in $ac_dummy; do
2648    test -z "$ac_dir" && ac_dir=.
2649    if test -f $ac_dir/$ac_word; then
2650      ac_cv_prog_MAKEINFO="makeinfo"
2651      break
2652    fi
2653  done
2654  IFS="$ac_save_ifs"
2655  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo"
2656fi
2657fi
2658MAKEINFO="$ac_cv_prog_MAKEINFO"
2659if test -n "$MAKEINFO"; then
2660  echo "$ac_t""$MAKEINFO" 1>&6
2661else
2662  echo "$ac_t""no" 1>&6
2663fi
2664
2665  # Extract the first word of "texi2dvi", so it can be a program name with args.
2666set dummy texi2dvi; ac_word=$2
2667echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2668echo "configure:2669: checking for $ac_word" >&5
2669if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
2670  echo $ac_n "(cached) $ac_c" 1>&6
2671else
2672  if test -n "$TEXI2DVI"; then
2673  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
2674else
2675  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2676  ac_dummy="$PATH"
2677  for ac_dir in $ac_dummy; do
2678    test -z "$ac_dir" && ac_dir=.
2679    if test -f $ac_dir/$ac_word; then
2680      ac_cv_prog_TEXI2DVI="texi2dvi"
2681      break
2682    fi
2683  done
2684  IFS="$ac_save_ifs"
2685  test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="${pwd}/warn_not_found.sh texi2dvi"
2686fi
2687fi
2688TEXI2DVI="$ac_cv_prog_TEXI2DVI"
2689if test -n "$TEXI2DVI"; then
2690  echo "$ac_t""$TEXI2DVI" 1>&6
2691else
2692  echo "$ac_t""no" 1>&6
2693fi
2694
2695  # Extract the first word of "texindex", so it can be a program name with args.
2696set dummy texindex; ac_word=$2
2697echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2698echo "configure:2699: checking for $ac_word" >&5
2699if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
2700  echo $ac_n "(cached) $ac_c" 1>&6
2701else
2702  if test -n "$TEXINDEX"; then
2703  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
2704else
2705  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2706  ac_dummy="$PATH"
2707  for ac_dir in $ac_dummy; do
2708    test -z "$ac_dir" && ac_dir=.
2709    if test -f $ac_dir/$ac_word; then
2710      ac_cv_prog_TEXINDEX="texindex"
2711      break
2712    fi
2713  done
2714  IFS="$ac_save_ifs"
2715  test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex"
2716fi
2717fi
2718TEXINDEX="$ac_cv_prog_TEXINDEX"
2719if test -n "$TEXINDEX"; then
2720  echo "$ac_t""$TEXINDEX" 1>&6
2721else
2722  echo "$ac_t""no" 1>&6
2723fi
2724
2725fi 
2726
2727echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
2728echo "configure:2729: checking whether to configure and build Texi2html" >&5
2729if test "$enable_Texi2html" != no && test -d Texi2html; then
2730 echo "$ac_t""yes" 1>&6
2731 CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html"
2732 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
2733 if test "$enable_Texi2html" != yes; then
2734   ac_configure_args="$ac_configure_args --enable-Texi2html"
2735 fi
2736 TEXI2HTML=${bindir}/texi2html
2737 
2738else
2739 echo "$ac_t""no" 1>&6
2740 # Extract the first word of "texi2html", so it can be a program name with args.
2741set dummy texi2html; ac_word=$2
2742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2743echo "configure:2744: checking for $ac_word" >&5
2744if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
2745  echo $ac_n "(cached) $ac_c" 1>&6
2746else
2747  if test -n "$TEXI2HTML"; then
2748  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
2749else
2750  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2751  ac_dummy="$PATH"
2752  for ac_dir in $ac_dummy; do
2753    test -z "$ac_dir" && ac_dir=.
2754    if test -f $ac_dir/$ac_word; then
2755      ac_cv_prog_TEXI2HTML="texi2html"
2756      break
2757    fi
2758  done
2759  IFS="$ac_save_ifs"
2760fi
2761fi
2762TEXI2HTML="$ac_cv_prog_TEXI2HTML"
2763if test -n "$TEXI2HTML"; then
2764  echo "$ac_t""$TEXI2HTML" 1>&6
2765else
2766  echo "$ac_t""no" 1>&6
2767fi
2768
2769fi
2770
2771if test "${TEXI2HTML+set}" != set; then
2772echo "configure: warning: texi2html not found. HTML doc generation will fail" 1>&2
2773fi
2774if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
2775  TEXI2HTML_OPTS="-l2h"
2776fi
2777
2778
2779
2780echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
2781echo "configure:2782: checking whether to build doc" >&5
2782if test "$enable_doc" != no && test -d doc; then
2783 echo "$ac_t""yes" 1>&6
2784 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
2785 if test "$enable_doc" != yes; then
2786   enable_doc=yes
2787   ac_configure_args="$ac_configure_args --enable-doc"
2788 fi
2789else
2790 enable_doc=no
2791 echo "$ac_t""no" 1>&6
2792fi
2793
2794echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
2795echo "configure:2796: checking whether to build emacs" >&5
2796if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
2797 echo "$ac_t""yes" 1>&6
2798 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
2799 if test "$enable_emacs" != yes; then
2800   ac_configure_args="$ac_configure_args --enable-emacs"
2801 fi
2802else
2803 echo "$ac_t""no" 1>&6
2804fi
2805
2806echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2807echo "configure:2808: checking which apint package to use" >&5
2808if test "$with_apint" = gmp; then
2809  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2810    echo "$ac_t""gmp" 1>&6
2811  else
2812    echo "$ac_t""none" 1>&6
2813    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2814  fi
2815elif test "$with_apint" = smallgmp; then
2816  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2817    echo "$ac_t""smallgmp" 1>&6
2818  else
2819    echo "$ac_t""none" 1>&6
2820    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2821  fi
2822elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2823    echo "$ac_t""gmp" 1>&6
2824    ac_configure_args="$ac_configure_args --with-apint=gmp"
2825else
2826   echo "$ac_t""smallgmp" 1>&6
2827   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2828fi
2829
2830echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2831echo "configure:2832: checking whether to use with MP" >&5
2832if test "$with_MP" = yes; then
2833  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2834    echo "$ac_t""yes" 1>&6
2835  else
2836    echo "$ac_t""none" 1>&6
2837    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2838  fi
2839elif test "$with_MP" = no; then
2840  echo "$ac_t""no" 1>&6
2841elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2842  echo "$ac_t""yes" 1>&6
2843  ac_configure_args="$ac_configure_args --with-MP"
2844else
2845  echo "$ac_t""no" 1>&6
2846  ac_configure_args="$ac_configure_args --without-MP"
2847fi
2848
2849echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2850echo "configure:2851: checking whether to use with factory" >&5
2851if test "$with_factory" = yes; then
2852  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2853    echo "$ac_t""yes" 1>&6
2854  else
2855    echo "$ac_t""none" 1>&6
2856    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2857  fi
2858elif test "$with_factory" = no; then
2859  echo "$ac_t""no" 1>&6
2860elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2861  echo "$ac_t""yes" 1>&6
2862  ac_configure_args="$ac_configure_args --with-factory"
2863else
2864  echo "$ac_t""no" 1>&6
2865  ac_configure_args="$ac_configure_args --without-factory"
2866fi
2867 
2868echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2869echo "configure:2870: checking whether to use with libfac" >&5
2870if test "$with_libfac" = yes; then
2871  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2872    echo "$ac_t""yes" 1>&6
2873  else
2874    echo "$ac_t""none" 1>&6
2875    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2876  fi
2877elif test "$with_libfac" = no; then
2878  echo "$ac_t""no" 1>&6
2879elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2880  echo "$ac_t""yes" 1>&6
2881  ac_configure_args="$ac_configure_args --with-libfac"
2882else
2883  echo "$ac_t""no" 1>&6
2884  ac_configure_args="$ac_configure_args --without-libfac"
2885fi
2886
2887
2888
2889echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2890echo "configure:2891: checking whether to use with Singular" >&5
2891if test "$with_Singular" != no && test "$with_Singular" != yes; then
2892  if test "$enable_Singular" = yes; then
2893    with_Singular=yes
2894  else
2895    with_Singular=no
2896  fi
2897  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2898fi
2899
2900if test "$with_Singular" != no; then
2901  echo "$ac_t""yes" 1>&6
2902else
2903  echo "$ac_t""no" 1>&6
2904fi
2905
2906
2907SUBDIRS=""
2908if test -d omalloc; then
2909  SUBDIRS="$SUBDIRS omalloc"
2910fi
2911if test -d smallgmp; then
2912  SUBDIRS="$SUBDIRS smallgmp"
2913fi
2914if test -d gmp; then
2915  SUBDIRS="$SUBDIRS gmp"
2916fi
2917if test -d MP; then
2918  SUBDIRS="$SUBDIRS MP"
2919fi
2920if test -d ntl; then
2921  SUBDIRS="$SUBDIRS ntl"
2922fi
2923if test -d factory; then
2924  SUBDIRS="$SUBDIRS factory"
2925fi
2926if test -d libfac; then
2927  SUBDIRS="$SUBDIRS libfac"
2928fi
2929if test -d sgroup; then
2930  SUBDIRS="$SUBDIRS sgroup"
2931fi
2932if test -d Singular; then
2933  SUBDIRS="$SUBDIRS Singular"
2934fi
2935if test -d Texinfo; then
2936  SUBDIRS="$SUBDIRS Texinfo"
2937fi
2938if test -d Texi2html; then
2939  SUBDIRS="$SUBDIRS Texi2html"
2940fi
2941if test -d doc; then
2942  SUBDIRS="$SUBDIRS doc"
2943fi
2944if test -d emacs; then
2945  SUBDIRS="$SUBDIRS emacs"
2946fi
2947if test -d rpm; then
2948  SUBDIRS="$SUBDIRS rpm"
2949fi
2950 
2951echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2952echo "configure:2953: checking whether ${MAKE-make} sets \${MAKE}" >&5
2953set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2954if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2955  echo $ac_n "(cached) $ac_c" 1>&6
2956else
2957  cat > conftestmake <<\EOF
2958all:
2959        @echo 'ac_maketemp="${MAKE}"'
2960EOF
2961# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2962eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2963if test -n "$ac_maketemp"; then
2964  eval ac_cv_prog_make_${ac_make}_set=yes
2965else
2966  eval ac_cv_prog_make_${ac_make}_set=no
2967fi
2968rm -f conftestmake
2969fi
2970if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2971  echo "$ac_t""yes" 1>&6
2972  SET_MAKE=
2973else
2974  echo "$ac_t""no" 1>&6
2975  SET_MAKE="MAKE=${MAKE-make}"
2976fi
2977
2978
2979
2980
2981subdirs="$CONFIG_SUBDIRS"
2982 
2983
2984trap '' 1 2 15
2985cat > confcache <<\EOF
2986# This file is a shell script that caches the results of configure
2987# tests run on this system so they can be shared between configure
2988# scripts and configure runs.  It is not useful on other systems.
2989# If it contains results you don't want to keep, you may remove or edit it.
2990#
2991# By default, configure uses ./config.cache as the cache file,
2992# creating it if it does not exist already.  You can give configure
2993# the --cache-file=FILE option to use a different cache file; that is
2994# what configure does when it calls configure scripts in
2995# subdirectories, so they share the cache.
2996# Giving --cache-file=/dev/null disables caching, for debugging configure.
2997# config.status only pays attention to the cache file if you give it the
2998# --recheck option to rerun configure.
2999#
3000EOF
3001# The following way of writing the cache mishandles newlines in values,
3002# but we know of no workaround that is simple, portable, and efficient.
3003# So, don't put newlines in cache variables' values.
3004# Ultrix sh set writes to stderr and can't be redirected directly,
3005# and sets the high bit in the cache file unless we assign to the vars.
3006(set) 2>&1 |
3007  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3008  *ac_space=\ *)
3009    # `set' does not quote correctly, so add quotes (double-quote substitution
3010    # turns \\\\ into \\, and sed turns \\ into \).
3011    sed -n \
3012      -e "s/'/'\\\\''/g" \
3013      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3014    ;;
3015  *)
3016    # `set' quotes correctly as required by POSIX, so do not add quotes.
3017    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3018    ;;
3019  esac >> confcache
3020if cmp -s $cache_file confcache; then
3021  :
3022else
3023  if test -w $cache_file; then
3024    echo "updating cache $cache_file"
3025    cat confcache > $cache_file
3026  else
3027    echo "not updating unwritable cache $cache_file"
3028  fi
3029fi
3030rm -f confcache
3031
3032trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3033
3034test "x$prefix" = xNONE && prefix=$ac_default_prefix
3035# Let make expand exec_prefix.
3036test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3037
3038# Any assignment to VPATH causes Sun make to only execute
3039# the first set of double-colon rules, so remove it if not needed.
3040# If there is a colon in the path, we need to keep it.
3041if test "x$srcdir" = x.; then
3042  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3043fi
3044
3045trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3046
3047# Transform confdefs.h into DEFS.
3048# Protect against shell expansion while executing Makefile rules.
3049# Protect against Makefile macro expansion.
3050cat > conftest.defs <<\EOF
3051s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3052s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3053s%\[%\\&%g
3054s%\]%\\&%g
3055s%\$%$$%g
3056EOF
3057DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3058rm -f conftest.defs
3059
3060
3061# Without the "./", some shells look in PATH for config.status.
3062: ${CONFIG_STATUS=./config.status}
3063
3064echo creating $CONFIG_STATUS
3065rm -f $CONFIG_STATUS
3066cat > $CONFIG_STATUS <<EOF
3067#! /bin/sh
3068# Generated automatically by configure.
3069# Run this file to recreate the current configuration.
3070# This directory was configured as follows,
3071# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3072#
3073# $0 $ac_configure_args
3074#
3075# Compiler output produced by configure, useful for debugging
3076# configure, is in ./config.log if it exists.
3077
3078ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3079for ac_option
3080do
3081  case "\$ac_option" in
3082  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3083    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3084    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3085  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3086    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3087    exit 0 ;;
3088  -help | --help | --hel | --he | --h)
3089    echo "\$ac_cs_usage"; exit 0 ;;
3090  *) echo "\$ac_cs_usage"; exit 1 ;;
3091  esac
3092done
3093
3094ac_given_srcdir=$srcdir
3095ac_given_INSTALL="$INSTALL"
3096
3097trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3098EOF
3099cat >> $CONFIG_STATUS <<EOF
3100
3101# Protect against being on the right side of a sed subst in config.status.
3102sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3103 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3104$ac_vpsub
3105$extrasub
3106s%@SHELL@%$SHELL%g
3107s%@CFLAGS@%$CFLAGS%g
3108s%@CPPFLAGS@%$CPPFLAGS%g
3109s%@CXXFLAGS@%$CXXFLAGS%g
3110s%@FFLAGS@%$FFLAGS%g
3111s%@DEFS@%$DEFS%g
3112s%@LDFLAGS@%$LDFLAGS%g
3113s%@LIBS@%$LIBS%g
3114s%@exec_prefix@%$exec_prefix%g
3115s%@prefix@%$prefix%g
3116s%@program_transform_name@%$program_transform_name%g
3117s%@bindir@%$bindir%g
3118s%@sbindir@%$sbindir%g
3119s%@libexecdir@%$libexecdir%g
3120s%@datadir@%$datadir%g
3121s%@sysconfdir@%$sysconfdir%g
3122s%@sharedstatedir@%$sharedstatedir%g
3123s%@localstatedir@%$localstatedir%g
3124s%@libdir@%$libdir%g
3125s%@includedir@%$includedir%g
3126s%@oldincludedir@%$oldincludedir%g
3127s%@infodir@%$infodir%g
3128s%@mandir@%$mandir%g
3129s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
3130s%@VERSION_DATE@%$VERSION_DATE%g
3131s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
3132s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g
3133s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g
3134s%@SINGUNAME@%$SINGUNAME%g
3135s%@SING_UNAME@%$SING_UNAME%g
3136s%@CC@%$CC%g
3137s%@CPP@%$CPP%g
3138s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3139s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3140s%@INSTALL_DATA@%$INSTALL_DATA%g
3141s%@CXX@%$CXX%g
3142s%@PIPE@%$PIPE%g
3143s%@PERL@%$PERL%g
3144s%@UUDECODE@%$UUDECODE%g
3145s%@GUNZIP@%$GUNZIP%g
3146s%@MYGZIP@%$MYGZIP%g
3147s%@LATEX2HTML@%$LATEX2HTML%g
3148s%@LN_S@%$LN_S%g
3149s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3150s%@SINGULAR@%$SINGULAR%g
3151s%@TMP_DIR@%$TMP_DIR%g
3152s%@TEXI2DVI@%$TEXI2DVI%g
3153s%@MAKEINFO@%$MAKEINFO%g
3154s%@TEXINDEX@%$TEXINDEX%g
3155s%@TEXI2HTML@%$TEXI2HTML%g
3156s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
3157s%@SET_MAKE@%$SET_MAKE%g
3158s%@SUBDIRS@%$SUBDIRS%g
3159s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
3160s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
3161s%@subdirs@%$subdirs%g
3162
3163CEOF
3164EOF
3165
3166cat >> $CONFIG_STATUS <<\EOF
3167
3168# Split the substitutions into bite-sized pieces for seds with
3169# small command number limits, like on Digital OSF/1 and HP-UX.
3170ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3171ac_file=1 # Number of current file.
3172ac_beg=1 # First line for current file.
3173ac_end=$ac_max_sed_cmds # Line after last line for current file.
3174ac_more_lines=:
3175ac_sed_cmds=""
3176while $ac_more_lines; do
3177  if test $ac_beg -gt 1; then
3178    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3179  else
3180    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3181  fi
3182  if test ! -s conftest.s$ac_file; then
3183    ac_more_lines=false
3184    rm -f conftest.s$ac_file
3185  else
3186    if test -z "$ac_sed_cmds"; then
3187      ac_sed_cmds="sed -f conftest.s$ac_file"
3188    else
3189      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3190    fi
3191    ac_file=`expr $ac_file + 1`
3192    ac_beg=$ac_end
3193    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3194  fi
3195done
3196if test -z "$ac_sed_cmds"; then
3197  ac_sed_cmds=cat
3198fi
3199EOF
3200
3201cat >> $CONFIG_STATUS <<EOF
3202
3203CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
3204EOF
3205cat >> $CONFIG_STATUS <<\EOF
3206for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3207  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3208  case "$ac_file" in
3209  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3210       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3211  *) ac_file_in="${ac_file}.in" ;;
3212  esac
3213
3214  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3215
3216  # Remove last slash and all that follows it.  Not all systems have dirname.
3217  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3218  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3219    # The file is in a subdirectory.
3220    test ! -d "$ac_dir" && mkdir "$ac_dir"
3221    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3222    # A "../" for each directory in $ac_dir_suffix.
3223    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3224  else
3225    ac_dir_suffix= ac_dots=
3226  fi
3227
3228  case "$ac_given_srcdir" in
3229  .)  srcdir=.
3230      if test -z "$ac_dots"; then top_srcdir=.
3231      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3232  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3233  *) # Relative path.
3234    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3235    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3236  esac
3237
3238  case "$ac_given_INSTALL" in
3239  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3240  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3241  esac
3242
3243  echo creating "$ac_file"
3244  rm -f "$ac_file"
3245  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3246  case "$ac_file" in
3247  *Makefile*) ac_comsub="1i\\
3248# $configure_input" ;;
3249  *) ac_comsub= ;;
3250  esac
3251
3252  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3253  sed -e "$ac_comsub
3254s%@configure_input@%$configure_input%g
3255s%@srcdir@%$srcdir%g
3256s%@top_srcdir@%$top_srcdir%g
3257s%@INSTALL@%$INSTALL%g
3258" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3259fi; done
3260rm -f conftest.s*
3261
3262EOF
3263cat >> $CONFIG_STATUS <<EOF
3264
3265EOF
3266cat >> $CONFIG_STATUS <<\EOF
3267
3268exit 0
3269EOF
3270chmod +x $CONFIG_STATUS
3271rm -fr confdefs* $ac_clean_files
3272test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3273
3274if test "$no_recursion" != yes; then
3275
3276  # Remove --cache-file and --srcdir arguments so they do not pile up.
3277  ac_sub_configure_args=
3278  ac_prev=
3279  for ac_arg in $ac_configure_args; do
3280    if test -n "$ac_prev"; then
3281      ac_prev=
3282      continue
3283    fi
3284    case "$ac_arg" in
3285    -cache-file | --cache-file | --cache-fil | --cache-fi \
3286    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3287      ac_prev=cache_file ;;
3288    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3289    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3290      ;;
3291    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3292      ac_prev=srcdir ;;
3293    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3294      ;;
3295    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3296    esac
3297  done
3298
3299  for ac_config_dir in $CONFIG_SUBDIRS; do
3300
3301    # Do not complain, so a configure script can configure whichever
3302    # parts of a large source tree are present.
3303    if test ! -d $srcdir/$ac_config_dir; then
3304      continue
3305    fi
3306
3307    echo configuring in $ac_config_dir
3308
3309    case "$srcdir" in
3310    .) ;;
3311    *)
3312      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3313      else
3314        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3315      fi
3316      ;;
3317    esac
3318
3319    ac_popdir=`pwd`
3320    cd $ac_config_dir
3321
3322      # A "../" for each directory in /$ac_config_dir.
3323      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3324
3325    case "$srcdir" in
3326    .) # No --srcdir option.  We are building in place.
3327      ac_sub_srcdir=$srcdir ;;
3328    /*) # Absolute path.
3329      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3330    *) # Relative path.
3331      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3332    esac
3333
3334    # Check for guested configure; otherwise get Cygnus style configure.
3335    if test -f $ac_sub_srcdir/configure; then
3336      ac_sub_configure=$ac_sub_srcdir/configure
3337    elif test -f $ac_sub_srcdir/configure.in; then
3338      ac_sub_configure=$ac_configure
3339    else
3340      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3341      ac_sub_configure=
3342    fi
3343
3344    # The recursion is here.
3345    if test -n "$ac_sub_configure"; then
3346
3347      # Make the cache file name correct relative to the subdirectory.
3348      case "$cache_file" in
3349      /*) ac_sub_cache_file=$cache_file ;;
3350      *) # Relative path.
3351        ac_sub_cache_file="$ac_dots$cache_file" ;;
3352      esac
3353  case "$ac_given_INSTALL" in
3354        [/$]*) INSTALL="$ac_given_INSTALL" ;;
3355        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3356        esac
3357
3358      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3359      # The eval makes quoting arguments work.
3360      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3361      then :
3362      else
3363        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3364      fi
3365    fi
3366
3367    cd $ac_popdir
3368  done
3369fi
3370
Note: See TracBrowser for help on using the repository browser.