source: git/configure @ 6b9532

spielwiese
Last change on this file since 6b9532 was 4a6242, checked in by Hans Schönemann <hannes@…>, 19 years ago
*hannes: 3-0-0 git-svn-id: file:///usr/local/Singular/svn/trunk@7937 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 99.7 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=kernel/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=3
598SINGULAR_MINOR_VERSION=0
599SINGULAR_SUB_VERSION=0
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="May 2005"
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 "modules"; then
628   CONFIG_SUBDIRS=$CONFIG_SUBDIRS" modules"
629fi
630if test -d "emacs"; then
631   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/Makefile"
632fi
633if test -d "IntegerProgramming"; then
634   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" IntegerProgramming/Makefile"
635fi
636if test -d "Plural"; then
637   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" Plural/Makefile"
638fi
639if test -d "InstallShield"; then
640   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" InstallShield/Makefile InstallShield/Etc/Makefile InstallShield/Cygwin/Makefile InstallShield/Singular/Makefile InstallShield/Xemacs/Makefile"
641fi
642
643
644echo $ac_n "checking uname for singular""... $ac_c" 1>&6
645echo "configure:646: checking uname for singular" >&5
646if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
647  echo $ac_n "(cached) $ac_c" 1>&6
648else
649  ac_cv_singuname="unknown"
650if test -r "singuname.sh"; then
651  if (/bin/sh singuname.sh >/dev/null 2>&1) then
652    ac_cv_singuname=`/bin/sh singuname.sh`
653  fi
654fi
655
656fi
657
658echo "$ac_t""$ac_cv_singuname" 1>&6
659if test "$ac_cv_singuname" = unknown; then
660  { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
661else
662  SINGUNAME=$ac_cv_singuname
663 
664fi
665
666SING_UNAME=`echo $SINGUNAME | tr '-' '_' `
667
668
669
670# Extract the first word of "gcc", so it can be a program name with args.
671set dummy gcc; ac_word=$2
672echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673echo "configure:674: checking for $ac_word" >&5
674if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675  echo $ac_n "(cached) $ac_c" 1>&6
676else
677  if test -n "$CC"; then
678  ac_cv_prog_CC="$CC" # Let the user override the test.
679else
680  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
681  ac_dummy="$PATH"
682  for ac_dir in $ac_dummy; do
683    test -z "$ac_dir" && ac_dir=.
684    if test -f $ac_dir/$ac_word; then
685      ac_cv_prog_CC="gcc"
686      break
687    fi
688  done
689  IFS="$ac_save_ifs"
690fi
691fi
692CC="$ac_cv_prog_CC"
693if test -n "$CC"; then
694  echo "$ac_t""$CC" 1>&6
695else
696  echo "$ac_t""no" 1>&6
697fi
698
699if test -z "$CC"; then
700  # Extract the first word of "cc", so it can be a program name with args.
701set dummy cc; ac_word=$2
702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703echo "configure:704: checking for $ac_word" >&5
704if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705  echo $ac_n "(cached) $ac_c" 1>&6
706else
707  if test -n "$CC"; then
708  ac_cv_prog_CC="$CC" # Let the user override the test.
709else
710  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
711  ac_prog_rejected=no
712  ac_dummy="$PATH"
713  for ac_dir in $ac_dummy; do
714    test -z "$ac_dir" && ac_dir=.
715    if test -f $ac_dir/$ac_word; then
716      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
717        ac_prog_rejected=yes
718        continue
719      fi
720      ac_cv_prog_CC="cc"
721      break
722    fi
723  done
724  IFS="$ac_save_ifs"
725if test $ac_prog_rejected = yes; then
726  # We found a bogon in the path, so make sure we never use it.
727  set dummy $ac_cv_prog_CC
728  shift
729  if test $# -gt 0; then
730    # We chose a different compiler from the bogus one.
731    # However, it has the same basename, so the bogon will be chosen
732    # first if we set CC to just the basename; use the full file name.
733    shift
734    set dummy "$ac_dir/$ac_word" "$@"
735    shift
736    ac_cv_prog_CC="$@"
737  fi
738fi
739fi
740fi
741CC="$ac_cv_prog_CC"
742if test -n "$CC"; then
743  echo "$ac_t""$CC" 1>&6
744else
745  echo "$ac_t""no" 1>&6
746fi
747
748  if test -z "$CC"; then
749    case "`uname -s`" in
750    *win32* | *WIN32*)
751      # Extract the first word of "cl", so it can be a program name with args.
752set dummy cl; ac_word=$2
753echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
754echo "configure:755: checking for $ac_word" >&5
755if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
756  echo $ac_n "(cached) $ac_c" 1>&6
757else
758  if test -n "$CC"; then
759  ac_cv_prog_CC="$CC" # Let the user override the test.
760else
761  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
762  ac_dummy="$PATH"
763  for ac_dir in $ac_dummy; do
764    test -z "$ac_dir" && ac_dir=.
765    if test -f $ac_dir/$ac_word; then
766      ac_cv_prog_CC="cl"
767      break
768    fi
769  done
770  IFS="$ac_save_ifs"
771fi
772fi
773CC="$ac_cv_prog_CC"
774if test -n "$CC"; then
775  echo "$ac_t""$CC" 1>&6
776else
777  echo "$ac_t""no" 1>&6
778fi
779 ;;
780    esac
781  fi
782  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
783fi
784
785echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
786echo "configure:787: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
787
788ac_ext=c
789# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
790ac_cpp='$CPP $CPPFLAGS'
791ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
792ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
793cross_compiling=$ac_cv_prog_cc_cross
794
795cat > conftest.$ac_ext << EOF
796
797#line 798 "configure"
798#include "confdefs.h"
799
800main(){return(0);}
801EOF
802if { (eval echo configure:803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
803  ac_cv_prog_cc_works=yes
804  # If we can't run a trivial program, we are probably using a cross compiler.
805  if (./conftest; exit) 2>/dev/null; then
806    ac_cv_prog_cc_cross=no
807  else
808    ac_cv_prog_cc_cross=yes
809  fi
810else
811  echo "configure: failed program was:" >&5
812  cat conftest.$ac_ext >&5
813  ac_cv_prog_cc_works=no
814fi
815rm -fr conftest*
816ac_ext=c
817# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
818ac_cpp='$CPP $CPPFLAGS'
819ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
820ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
821cross_compiling=$ac_cv_prog_cc_cross
822
823echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
824if test $ac_cv_prog_cc_works = no; then
825  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
826fi
827echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
828echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
829echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
830cross_compiling=$ac_cv_prog_cc_cross
831
832echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
833echo "configure:834: checking whether we are using GNU C" >&5
834if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
835  echo $ac_n "(cached) $ac_c" 1>&6
836else
837  cat > conftest.c <<EOF
838#ifdef __GNUC__
839  yes;
840#endif
841EOF
842if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
843  ac_cv_prog_gcc=yes
844else
845  ac_cv_prog_gcc=no
846fi
847fi
848
849echo "$ac_t""$ac_cv_prog_gcc" 1>&6
850
851if test $ac_cv_prog_gcc = yes; then
852  GCC=yes
853else
854  GCC=
855fi
856
857ac_test_CFLAGS="${CFLAGS+set}"
858ac_save_CFLAGS="$CFLAGS"
859CFLAGS=
860echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
861echo "configure:862: checking whether ${CC-cc} accepts -g" >&5
862if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
863  echo $ac_n "(cached) $ac_c" 1>&6
864else
865  echo 'void f(){}' > conftest.c
866if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
867  ac_cv_prog_cc_g=yes
868else
869  ac_cv_prog_cc_g=no
870fi
871rm -f conftest*
872
873fi
874
875echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
876if test "$ac_test_CFLAGS" = set; then
877  CFLAGS="$ac_save_CFLAGS"
878elif test $ac_cv_prog_cc_g = yes; then
879  if test "$GCC" = yes; then
880    CFLAGS="-g -O2"
881  else
882    CFLAGS="-g"
883  fi
884else
885  if test "$GCC" = yes; then
886    CFLAGS="-O2"
887  else
888    CFLAGS=
889  fi
890fi
891
892echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
893echo "configure:894: checking how to run the C preprocessor" >&5
894# On Suns, sometimes $CPP names a directory.
895if test -n "$CPP" && test -d "$CPP"; then
896  CPP=
897fi
898if test -z "$CPP"; then
899if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
900  echo $ac_n "(cached) $ac_c" 1>&6
901else
902    # This must be in double quotes, not single quotes, because CPP may get
903  # substituted into the Makefile and "${CC-cc}" will confuse make.
904  CPP="${CC-cc} -E"
905  # On the NeXT, cc -E runs the code through the compiler's parser,
906  # not just through cpp.
907  cat > conftest.$ac_ext <<EOF
908#line 909 "configure"
909#include "confdefs.h"
910#include <assert.h>
911Syntax Error
912EOF
913ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
914{ (eval echo configure:915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
915ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
916if test -z "$ac_err"; then
917  :
918else
919  echo "$ac_err" >&5
920  echo "configure: failed program was:" >&5
921  cat conftest.$ac_ext >&5
922  rm -rf conftest*
923  CPP="${CC-cc} -E -traditional-cpp"
924  cat > conftest.$ac_ext <<EOF
925#line 926 "configure"
926#include "confdefs.h"
927#include <assert.h>
928Syntax Error
929EOF
930ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
931{ (eval echo configure:932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
932ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
933if test -z "$ac_err"; then
934  :
935else
936  echo "$ac_err" >&5
937  echo "configure: failed program was:" >&5
938  cat conftest.$ac_ext >&5
939  rm -rf conftest*
940  CPP="${CC-cc} -nologo -E"
941  cat > conftest.$ac_ext <<EOF
942#line 943 "configure"
943#include "confdefs.h"
944#include <assert.h>
945Syntax Error
946EOF
947ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
948{ (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
949ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
950if test -z "$ac_err"; then
951  :
952else
953  echo "$ac_err" >&5
954  echo "configure: failed program was:" >&5
955  cat conftest.$ac_ext >&5
956  rm -rf conftest*
957  CPP=/lib/cpp
958fi
959rm -f conftest*
960fi
961rm -f conftest*
962fi
963rm -f conftest*
964  ac_cv_prog_CPP="$CPP"
965fi
966  CPP="$ac_cv_prog_CPP"
967else
968  ac_cv_prog_CPP="$CPP"
969fi
970echo "$ac_t""$CPP" 1>&6
971
972ac_aux_dir=
973for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
974  if test -f $ac_dir/install-sh; then
975    ac_aux_dir=$ac_dir
976    ac_install_sh="$ac_aux_dir/install-sh -c"
977    break
978  elif test -f $ac_dir/install.sh; then
979    ac_aux_dir=$ac_dir
980    ac_install_sh="$ac_aux_dir/install.sh -c"
981    break
982  fi
983done
984if test -z "$ac_aux_dir"; then
985  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
986fi
987ac_config_guess=$ac_aux_dir/config.guess
988ac_config_sub=$ac_aux_dir/config.sub
989ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
990
991# Find a good install program.  We prefer a C program (faster),
992# so one script is as good as another.  But avoid the broken or
993# incompatible versions:
994# SysV /etc/install, /usr/sbin/install
995# SunOS /usr/etc/install
996# IRIX /sbin/install
997# AIX /bin/install
998# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
999# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1000# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1001# ./install, which can be erroneously created by make from ./install.sh.
1002echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1003echo "configure:1004: checking for a BSD compatible install" >&5
1004if test -z "$INSTALL"; then
1005if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1006  echo $ac_n "(cached) $ac_c" 1>&6
1007else
1008    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1009  for ac_dir in $PATH; do
1010    # Account for people who put trailing slashes in PATH elements.
1011    case "$ac_dir/" in
1012    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1013    *)
1014      # OSF1 and SCO ODT 3.0 have their own names for install.
1015      # Don't use installbsd from OSF since it installs stuff as root
1016      # by default.
1017      for ac_prog in ginstall scoinst install; do
1018        if test -f $ac_dir/$ac_prog; then
1019          if test $ac_prog = install &&
1020            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1021            # AIX install.  It has an incompatible calling convention.
1022            :
1023          else
1024            ac_cv_path_install="$ac_dir/$ac_prog -c"
1025            break 2
1026          fi
1027        fi
1028      done
1029      ;;
1030    esac
1031  done
1032  IFS="$ac_save_IFS"
1033
1034fi
1035  if test "${ac_cv_path_install+set}" = set; then
1036    INSTALL="$ac_cv_path_install"
1037  else
1038    # As a last resort, use the slow shell script.  We don't cache a
1039    # path for INSTALL within a source directory, because that will
1040    # break other packages using the cache if that directory is
1041    # removed, or if the path is relative.
1042    INSTALL="$ac_install_sh"
1043  fi
1044fi
1045echo "$ac_t""$INSTALL" 1>&6
1046
1047# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1048# It thinks the first close brace ends the variable substitution.
1049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1050
1051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1052
1053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1054
1055echo $ac_n "checking for AIX""... $ac_c" 1>&6
1056echo "configure:1057: checking for AIX" >&5
1057cat > conftest.$ac_ext <<EOF
1058#line 1059 "configure"
1059#include "confdefs.h"
1060#ifdef _AIX
1061  yes
1062#endif
1063
1064EOF
1065if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1066  egrep "yes" >/dev/null 2>&1; then
1067  rm -rf conftest*
1068  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1069#define _ALL_SOURCE 1
1070EOF
1071
1072else
1073  rm -rf conftest*
1074  echo "$ac_t""no" 1>&6
1075fi
1076rm -f conftest*
1077
1078
1079for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1080do
1081# Extract the first word of "$ac_prog", so it can be a program name with args.
1082set dummy $ac_prog; ac_word=$2
1083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084echo "configure:1085: checking for $ac_word" >&5
1085if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1086  echo $ac_n "(cached) $ac_c" 1>&6
1087else
1088  if test -n "$CXX"; then
1089  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1090else
1091  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1092  ac_dummy="$PATH"
1093  for ac_dir in $ac_dummy; do
1094    test -z "$ac_dir" && ac_dir=.
1095    if test -f $ac_dir/$ac_word; then
1096      ac_cv_prog_CXX="$ac_prog"
1097      break
1098    fi
1099  done
1100  IFS="$ac_save_ifs"
1101fi
1102fi
1103CXX="$ac_cv_prog_CXX"
1104if test -n "$CXX"; then
1105  echo "$ac_t""$CXX" 1>&6
1106else
1107  echo "$ac_t""no" 1>&6
1108fi
1109
1110test -n "$CXX" && break
1111done
1112test -n "$CXX" || CXX="gcc"
1113
1114
1115echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1116echo "configure:1117: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1117
1118ac_ext=C
1119# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1120ac_cpp='$CXXCPP $CPPFLAGS'
1121ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1122ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1123cross_compiling=$ac_cv_prog_cxx_cross
1124
1125cat > conftest.$ac_ext << EOF
1126
1127#line 1128 "configure"
1128#include "confdefs.h"
1129
1130int main(){return(0);}
1131EOF
1132if { (eval echo configure:1133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1133  ac_cv_prog_cxx_works=yes
1134  # If we can't run a trivial program, we are probably using a cross compiler.
1135  if (./conftest; exit) 2>/dev/null; then
1136    ac_cv_prog_cxx_cross=no
1137  else
1138    ac_cv_prog_cxx_cross=yes
1139  fi
1140else
1141  echo "configure: failed program was:" >&5
1142  cat conftest.$ac_ext >&5
1143  ac_cv_prog_cxx_works=no
1144fi
1145rm -fr conftest*
1146ac_ext=c
1147# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148ac_cpp='$CPP $CPPFLAGS'
1149ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151cross_compiling=$ac_cv_prog_cc_cross
1152
1153echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1154if test $ac_cv_prog_cxx_works = no; then
1155  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1156fi
1157echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1158echo "configure:1159: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1159echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1160cross_compiling=$ac_cv_prog_cxx_cross
1161
1162echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1163echo "configure:1164: checking whether we are using GNU C++" >&5
1164if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1165  echo $ac_n "(cached) $ac_c" 1>&6
1166else
1167  cat > conftest.C <<EOF
1168#ifdef __GNUC__
1169  yes;
1170#endif
1171EOF
1172if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1173  ac_cv_prog_gxx=yes
1174else
1175  ac_cv_prog_gxx=no
1176fi
1177fi
1178
1179echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1180
1181if test $ac_cv_prog_gxx = yes; then
1182  GXX=yes
1183else
1184  GXX=
1185fi
1186
1187ac_test_CXXFLAGS="${CXXFLAGS+set}"
1188ac_save_CXXFLAGS="$CXXFLAGS"
1189CXXFLAGS=
1190echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1191echo "configure:1192: checking whether ${CXX-g++} accepts -g" >&5
1192if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1193  echo $ac_n "(cached) $ac_c" 1>&6
1194else
1195  echo 'void f(){}' > conftest.cc
1196if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1197  ac_cv_prog_cxx_g=yes
1198else
1199  ac_cv_prog_cxx_g=no
1200fi
1201rm -f conftest*
1202
1203fi
1204
1205echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1206if test "$ac_test_CXXFLAGS" = set; then
1207  CXXFLAGS="$ac_save_CXXFLAGS"
1208elif test $ac_cv_prog_cxx_g = yes; then
1209  if test "$GXX" = yes; then
1210    CXXFLAGS="-g -O2"
1211  else
1212    CXXFLAGS="-g"
1213  fi
1214else
1215  if test "$GXX" = yes; then
1216    CXXFLAGS="-O2"
1217  else
1218    CXXFLAGS=
1219  fi
1220fi
1221
1222
1223SING_CC=${CC}; export SING_CC
1224SING_CXX=${CXX}; export SING_CXX
1225
1226# check whether the compiler accepts -pipe
1227echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
1228echo "configure:1229: checking whether compiler accepts -pipe" >&5
1229temp_cflags=${CFLAGS}
1230CFLAGS="${CFLAGS} -pipe"
1231if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then
1232  echo $ac_n "(cached) $ac_c" 1>&6
1233else
1234  cat > conftest.$ac_ext <<EOF
1235#line 1236 "configure"
1236#include "confdefs.h"
1237
1238int main() {
1239
1240; return 0; }
1241EOF
1242if { (eval echo configure:1243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1243  rm -rf conftest*
1244  ac_cv_cxx_have_pipe=yes
1245else
1246  echo "configure: failed program was:" >&5
1247  cat conftest.$ac_ext >&5
1248  rm -rf conftest*
1249  ac_cv_cxx_have_pipe=no
1250fi
1251rm -f conftest*
1252
1253fi
1254
1255echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6
1256CFLAGS=${temp_cflags}
1257if test "${ac_cv_cxx_have_pipe}" != yes; then
1258  PIPE=
1259else
1260  PIPE="-pipe"
1261fi
1262
1263
1264for ac_prog in perl5 perl
1265do
1266# Extract the first word of "$ac_prog", so it can be a program name with args.
1267set dummy $ac_prog; ac_word=$2
1268echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269echo "configure:1270: checking for $ac_word" >&5
1270if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then
1271  echo $ac_n "(cached) $ac_c" 1>&6
1272else
1273  if test -n "$PERL"; then
1274  ac_cv_prog_PERL="$PERL" # Let the user override the test.
1275else
1276  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1277  ac_dummy="$PATH"
1278  for ac_dir in $ac_dummy; do
1279    test -z "$ac_dir" && ac_dir=.
1280    if test -f $ac_dir/$ac_word; then
1281      ac_cv_prog_PERL="$ac_prog"
1282      break
1283    fi
1284  done
1285  IFS="$ac_save_ifs"
1286fi
1287fi
1288PERL="$ac_cv_prog_PERL"
1289if test -n "$PERL"; then
1290  echo "$ac_t""$PERL" 1>&6
1291else
1292  echo "$ac_t""no" 1>&6
1293fi
1294
1295test -n "$PERL" && break
1296done
1297
1298for ac_prog in uudecode "uudeview -i"
1299do
1300# Extract the first word of "$ac_prog", so it can be a program name with args.
1301set dummy $ac_prog; ac_word=$2
1302echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303echo "configure:1304: checking for $ac_word" >&5
1304if eval "test \"`echo '$''{'ac_cv_prog_UUDECODE'+set}'`\" = set"; then
1305  echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307  if test -n "$UUDECODE"; then
1308  ac_cv_prog_UUDECODE="$UUDECODE" # Let the user override the test.
1309else
1310  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1311  ac_dummy="$PATH"
1312  for ac_dir in $ac_dummy; do
1313    test -z "$ac_dir" && ac_dir=.
1314    if test -f $ac_dir/$ac_word; then
1315      ac_cv_prog_UUDECODE="$ac_prog"
1316      break
1317    fi
1318  done
1319  IFS="$ac_save_ifs"
1320fi
1321fi
1322UUDECODE="$ac_cv_prog_UUDECODE"
1323if test -n "$UUDECODE"; then
1324  echo "$ac_t""$UUDECODE" 1>&6
1325else
1326  echo "$ac_t""no" 1>&6
1327fi
1328
1329test -n "$UUDECODE" && break
1330done
1331
1332for ac_prog in gunzip
1333do
1334# Extract the first word of "$ac_prog", so it can be a program name with args.
1335set dummy $ac_prog; ac_word=$2
1336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1337echo "configure:1338: checking for $ac_word" >&5
1338if eval "test \"`echo '$''{'ac_cv_prog_GUNZIP'+set}'`\" = set"; then
1339  echo $ac_n "(cached) $ac_c" 1>&6
1340else
1341  if test -n "$GUNZIP"; then
1342  ac_cv_prog_GUNZIP="$GUNZIP" # Let the user override the test.
1343else
1344  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1345  ac_dummy="$PATH"
1346  for ac_dir in $ac_dummy; do
1347    test -z "$ac_dir" && ac_dir=.
1348    if test -f $ac_dir/$ac_word; then
1349      ac_cv_prog_GUNZIP="$ac_prog"
1350      break
1351    fi
1352  done
1353  IFS="$ac_save_ifs"
1354fi
1355fi
1356GUNZIP="$ac_cv_prog_GUNZIP"
1357if test -n "$GUNZIP"; then
1358  echo "$ac_t""$GUNZIP" 1>&6
1359else
1360  echo "$ac_t""no" 1>&6
1361fi
1362
1363test -n "$GUNZIP" && break
1364done
1365test -n "$GUNZIP" || GUNZIP="${pwd}/warn_not_found.sh gunzip"
1366
1367# don't use GZIP this breaks configure
1368for ac_prog in gzip
1369do
1370# Extract the first word of "$ac_prog", so it can be a program name with args.
1371set dummy $ac_prog; ac_word=$2
1372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373echo "configure:1374: checking for $ac_word" >&5
1374if eval "test \"`echo '$''{'ac_cv_prog_MYGZIP'+set}'`\" = set"; then
1375  echo $ac_n "(cached) $ac_c" 1>&6
1376else
1377  if test -n "$MYGZIP"; then
1378  ac_cv_prog_MYGZIP="$MYGZIP" # Let the user override the test.
1379else
1380  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1381  ac_dummy="$PATH"
1382  for ac_dir in $ac_dummy; do
1383    test -z "$ac_dir" && ac_dir=.
1384    if test -f $ac_dir/$ac_word; then
1385      ac_cv_prog_MYGZIP="$ac_prog"
1386      break
1387    fi
1388  done
1389  IFS="$ac_save_ifs"
1390fi
1391fi
1392MYGZIP="$ac_cv_prog_MYGZIP"
1393if test -n "$MYGZIP"; then
1394  echo "$ac_t""$MYGZIP" 1>&6
1395else
1396  echo "$ac_t""no" 1>&6
1397fi
1398
1399test -n "$MYGZIP" && break
1400done
1401test -n "$MYGZIP" || MYGZIP="${pwd}/warn_not_found.sh gzip"
1402
1403# Extract the first word of "latex2html", so it can be a program name with args.
1404set dummy latex2html; ac_word=$2
1405echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406echo "configure:1407: checking for $ac_word" >&5
1407if eval "test \"`echo '$''{'ac_cv_prog_LATEX2HTML'+set}'`\" = set"; then
1408  echo $ac_n "(cached) $ac_c" 1>&6
1409else
1410  if test -n "$LATEX2HTML"; then
1411  ac_cv_prog_LATEX2HTML="$LATEX2HTML" # Let the user override the test.
1412else
1413  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1414  ac_dummy="$PATH"
1415  for ac_dir in $ac_dummy; do
1416    test -z "$ac_dir" && ac_dir=.
1417    if test -f $ac_dir/$ac_word; then
1418      ac_cv_prog_LATEX2HTML="latex2html"
1419      break
1420    fi
1421  done
1422  IFS="$ac_save_ifs"
1423fi
1424fi
1425LATEX2HTML="$ac_cv_prog_LATEX2HTML"
1426if test -n "$LATEX2HTML"; then
1427  echo "$ac_t""$LATEX2HTML" 1>&6
1428else
1429  echo "$ac_t""no" 1>&6
1430fi
1431
1432echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1433echo "configure:1434: checking whether ln -s works" >&5
1434if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1435  echo $ac_n "(cached) $ac_c" 1>&6
1436else
1437  rm -f conftestdata
1438if ln -s X conftestdata 2>/dev/null
1439then
1440  rm -f conftestdata
1441  ac_cv_prog_LN_S="ln -s"
1442else
1443  ac_cv_prog_LN_S=ln
1444fi
1445fi
1446LN_S="$ac_cv_prog_LN_S"
1447if test "$ac_cv_prog_LN_S" = "ln -s"; then
1448  echo "$ac_t""yes" 1>&6
1449else
1450  echo "$ac_t""no" 1>&6
1451fi
1452
1453
1454if test -r "${pwd}/mkinstalldirs"; then
1455  MKINSTALLDIRS=${pwd}/mkinstalldirs
1456 
1457else
1458  { echo "configure: error: mkinstalldirs not foind in ${pwd}" 1>&2; exit 1; }
1459fi
1460
1461# expand prefix and pass it to subsequent configures
1462if test "x$prefix" = xNONE; then
1463  prefix=${ac_default_prefix}
1464  ac_configure_args="$ac_configure_args --prefix=${prefix}"
1465fi
1466
1467# expand exec_prefix
1468if test "x$exec_prefix" = xNONE; then
1469 exec_prefix=${prefix}/${ac_cv_singuname}
1470 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
1471fi
1472
1473# expand bindir
1474if test "x$bindir" = 'x${exec_prefix}/bin'; then
1475  bindir="${exec_prefix}"
1476  ac_configure_args="$ac_configure_args --bindir=${bindir}"
1477fi
1478
1479# expand libdir
1480if test "x$libdir" = 'x${exec_prefix}/lib'; then
1481  libdir="${exec_prefix}/lib"
1482  ac_configure_args="$ac_configure_args --libdir=${libdir}"
1483fi
1484
1485# expand includedir
1486if test "x$includedir" = 'x${prefix}/include'; then
1487  includedir="${exec_prefix}/include"
1488  ac_configure_args="$ac_configure_args --includedir=${includedir}"
1489fi
1490
1491# construct name of installed Singular executable
1492SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
1493export SINGULAR
1494
1495
1496
1497# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
1498LDFLAGS="-L${libdir} ${LDFLAGS}"
1499CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1500
1501# check for AIX
1502echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1503echo "configure:1504: checking whether _AIX is defined" >&5
1504if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1505  echo $ac_n "(cached) $ac_c" 1>&6
1506else
1507  cat > conftest.$ac_ext <<EOF
1508#line 1509 "configure"
1509#include "confdefs.h"
1510#ifdef _AIX
1511    yes
1512#endif
1513
1514EOF
1515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1516  egrep "yes" >/dev/null 2>&1; then
1517  rm -rf conftest*
1518  ac_cv_is_aix=yes
1519else
1520  rm -rf conftest*
1521  ac_cv_is_aix=no
1522fi
1523rm -f conftest*
1524
1525fi
1526
1527if test "$ac_cv_is_aix" = yes; then
1528  echo "$ac_t""yes" 1>&6
1529else
1530  echo "$ac_t""no" 1>&6
1531fi
1532
1533echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1534echo "configure:1535: checking for atof in -lm" >&5
1535ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1537  echo $ac_n "(cached) $ac_c" 1>&6
1538else
1539  ac_save_LIBS="$LIBS"
1540LIBS="-lm  $LIBS"
1541cat > conftest.$ac_ext <<EOF
1542#line 1543 "configure"
1543#include "confdefs.h"
1544/* Override any gcc2 internal prototype to avoid an error.  */
1545/* We use char because int might match the return type of a gcc2
1546    builtin and then its argument prototype would still apply.  */
1547char atof();
1548
1549int main() {
1550atof()
1551; return 0; }
1552EOF
1553if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1554  rm -rf conftest*
1555  eval "ac_cv_lib_$ac_lib_var=yes"
1556else
1557  echo "configure: failed program was:" >&5
1558  cat conftest.$ac_ext >&5
1559  rm -rf conftest*
1560  eval "ac_cv_lib_$ac_lib_var=no"
1561fi
1562rm -f conftest*
1563LIBS="$ac_save_LIBS"
1564
1565fi
1566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1567  echo "$ac_t""yes" 1>&6
1568    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1569    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1570  cat >> confdefs.h <<EOF
1571#define $ac_tr_lib 1
1572EOF
1573
1574  LIBS="-lm $LIBS"
1575
1576else
1577  echo "$ac_t""no" 1>&6
1578fi
1579
1580echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1581echo "configure:1582: checking for socket in -lbsd" >&5
1582ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1583if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1584  echo $ac_n "(cached) $ac_c" 1>&6
1585else
1586  ac_save_LIBS="$LIBS"
1587LIBS="-lbsd  $LIBS"
1588cat > conftest.$ac_ext <<EOF
1589#line 1590 "configure"
1590#include "confdefs.h"
1591/* Override any gcc2 internal prototype to avoid an error.  */
1592/* We use char because int might match the return type of a gcc2
1593    builtin and then its argument prototype would still apply.  */
1594char socket();
1595
1596int main() {
1597socket()
1598; return 0; }
1599EOF
1600if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1601  rm -rf conftest*
1602  eval "ac_cv_lib_$ac_lib_var=yes"
1603else
1604  echo "configure: failed program was:" >&5
1605  cat conftest.$ac_ext >&5
1606  rm -rf conftest*
1607  eval "ac_cv_lib_$ac_lib_var=no"
1608fi
1609rm -f conftest*
1610LIBS="$ac_save_LIBS"
1611
1612fi
1613if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1614  echo "$ac_t""yes" 1>&6
1615    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1616    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1617  cat >> confdefs.h <<EOF
1618#define $ac_tr_lib 1
1619EOF
1620
1621  LIBS="-lbsd $LIBS"
1622
1623else
1624  echo "$ac_t""no" 1>&6
1625fi
1626
1627echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1628echo "configure:1629: checking for listen in -lsocket" >&5
1629ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1631  echo $ac_n "(cached) $ac_c" 1>&6
1632else
1633  ac_save_LIBS="$LIBS"
1634LIBS="-lsocket  $LIBS"
1635cat > conftest.$ac_ext <<EOF
1636#line 1637 "configure"
1637#include "confdefs.h"
1638/* Override any gcc2 internal prototype to avoid an error.  */
1639/* We use char because int might match the return type of a gcc2
1640    builtin and then its argument prototype would still apply.  */
1641char listen();
1642
1643int main() {
1644listen()
1645; return 0; }
1646EOF
1647if { (eval echo configure:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1648  rm -rf conftest*
1649  eval "ac_cv_lib_$ac_lib_var=yes"
1650else
1651  echo "configure: failed program was:" >&5
1652  cat conftest.$ac_ext >&5
1653  rm -rf conftest*
1654  eval "ac_cv_lib_$ac_lib_var=no"
1655fi
1656rm -f conftest*
1657LIBS="$ac_save_LIBS"
1658
1659fi
1660if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1661  echo "$ac_t""yes" 1>&6
1662    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1663    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1664  cat >> confdefs.h <<EOF
1665#define $ac_tr_lib 1
1666EOF
1667
1668  LIBS="-lsocket $LIBS"
1669
1670else
1671  echo "$ac_t""no" 1>&6
1672fi
1673
1674echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1675echo "configure:1676: checking for gethostbyname in -lnsl" >&5
1676ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1677if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1678  echo $ac_n "(cached) $ac_c" 1>&6
1679else
1680  ac_save_LIBS="$LIBS"
1681LIBS="-lnsl  $LIBS"
1682cat > conftest.$ac_ext <<EOF
1683#line 1684 "configure"
1684#include "confdefs.h"
1685/* Override any gcc2 internal prototype to avoid an error.  */
1686/* We use char because int might match the return type of a gcc2
1687    builtin and then its argument prototype would still apply.  */
1688char gethostbyname();
1689
1690int main() {
1691gethostbyname()
1692; return 0; }
1693EOF
1694if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1695  rm -rf conftest*
1696  eval "ac_cv_lib_$ac_lib_var=yes"
1697else
1698  echo "configure: failed program was:" >&5
1699  cat conftest.$ac_ext >&5
1700  rm -rf conftest*
1701  eval "ac_cv_lib_$ac_lib_var=no"
1702fi
1703rm -f conftest*
1704LIBS="$ac_save_LIBS"
1705
1706fi
1707if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1708  echo "$ac_t""yes" 1>&6
1709    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1710    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1711  cat >> confdefs.h <<EOF
1712#define $ac_tr_lib 1
1713EOF
1714
1715  LIBS="-lnsl $LIBS"
1716
1717else
1718  echo "$ac_t""no" 1>&6
1719fi
1720
1721echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
1722echo "configure:1723: checking for main in -lgmp" >&5
1723ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
1724if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1725  echo $ac_n "(cached) $ac_c" 1>&6
1726else
1727  ac_save_LIBS="$LIBS"
1728LIBS="-lgmp  $LIBS"
1729cat > conftest.$ac_ext <<EOF
1730#line 1731 "configure"
1731#include "confdefs.h"
1732
1733int main() {
1734main()
1735; return 0; }
1736EOF
1737if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1738  rm -rf conftest*
1739  eval "ac_cv_lib_$ac_lib_var=yes"
1740else
1741  echo "configure: failed program was:" >&5
1742  cat conftest.$ac_ext >&5
1743  rm -rf conftest*
1744  eval "ac_cv_lib_$ac_lib_var=no"
1745fi
1746rm -f conftest*
1747LIBS="$ac_save_LIBS"
1748
1749fi
1750if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1751  echo "$ac_t""yes" 1>&6
1752    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1753    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1754  cat >> confdefs.h <<EOF
1755#define $ac_tr_lib 1
1756EOF
1757
1758  LIBS="-lgmp $LIBS"
1759
1760else
1761  echo "$ac_t""no" 1>&6
1762fi
1763
1764echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1765echo "configure:1766: checking for mpz_init in -lsmallgmp" >&5
1766ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1767if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1768  echo $ac_n "(cached) $ac_c" 1>&6
1769else
1770  ac_save_LIBS="$LIBS"
1771LIBS="-lsmallgmp  $LIBS"
1772cat > conftest.$ac_ext <<EOF
1773#line 1774 "configure"
1774#include "confdefs.h"
1775/* Override any gcc2 internal prototype to avoid an error.  */
1776/* We use char because int might match the return type of a gcc2
1777    builtin and then its argument prototype would still apply.  */
1778char mpz_init();
1779
1780int main() {
1781mpz_init()
1782; return 0; }
1783EOF
1784if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1785  rm -rf conftest*
1786  eval "ac_cv_lib_$ac_lib_var=yes"
1787else
1788  echo "configure: failed program was:" >&5
1789  cat conftest.$ac_ext >&5
1790  rm -rf conftest*
1791  eval "ac_cv_lib_$ac_lib_var=no"
1792fi
1793rm -f conftest*
1794LIBS="$ac_save_LIBS"
1795
1796fi
1797if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1798  echo "$ac_t""yes" 1>&6
1799    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1800    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1801  cat >> confdefs.h <<EOF
1802#define $ac_tr_lib 1
1803EOF
1804
1805  LIBS="-lsmallgmp $LIBS"
1806
1807else
1808  echo "$ac_t""no" 1>&6
1809fi
1810
1811echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1812echo "configure:1813: checking for IMP_PutGmpInt in -lMP" >&5
1813ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1815  echo $ac_n "(cached) $ac_c" 1>&6
1816else
1817  ac_save_LIBS="$LIBS"
1818LIBS="-lMP  $LIBS"
1819cat > conftest.$ac_ext <<EOF
1820#line 1821 "configure"
1821#include "confdefs.h"
1822/* Override any gcc2 internal prototype to avoid an error.  */
1823/* We use char because int might match the return type of a gcc2
1824    builtin and then its argument prototype would still apply.  */
1825char IMP_PutGmpInt();
1826
1827int main() {
1828IMP_PutGmpInt()
1829; return 0; }
1830EOF
1831if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1832  rm -rf conftest*
1833  eval "ac_cv_lib_$ac_lib_var=yes"
1834else
1835  echo "configure: failed program was:" >&5
1836  cat conftest.$ac_ext >&5
1837  rm -rf conftest*
1838  eval "ac_cv_lib_$ac_lib_var=no"
1839fi
1840rm -f conftest*
1841LIBS="$ac_save_LIBS"
1842
1843fi
1844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1845  echo "$ac_t""yes" 1>&6
1846    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1847    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1848  cat >> confdefs.h <<EOF
1849#define $ac_tr_lib 1
1850EOF
1851
1852  LIBS="-lMP $LIBS"
1853
1854else
1855  echo "$ac_t""no" 1>&6
1856fi
1857
1858echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1859echo "configure:1860: checking for MPT_GetTree in -lMPT" >&5
1860ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1861if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1862  echo $ac_n "(cached) $ac_c" 1>&6
1863else
1864  ac_save_LIBS="$LIBS"
1865LIBS="-lMPT  $LIBS"
1866cat > conftest.$ac_ext <<EOF
1867#line 1868 "configure"
1868#include "confdefs.h"
1869/* Override any gcc2 internal prototype to avoid an error.  */
1870/* We use char because int might match the return type of a gcc2
1871    builtin and then its argument prototype would still apply.  */
1872char MPT_GetTree();
1873
1874int main() {
1875MPT_GetTree()
1876; return 0; }
1877EOF
1878if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1879  rm -rf conftest*
1880  eval "ac_cv_lib_$ac_lib_var=yes"
1881else
1882  echo "configure: failed program was:" >&5
1883  cat conftest.$ac_ext >&5
1884  rm -rf conftest*
1885  eval "ac_cv_lib_$ac_lib_var=no"
1886fi
1887rm -f conftest*
1888LIBS="$ac_save_LIBS"
1889
1890fi
1891if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1892  echo "$ac_t""yes" 1>&6
1893    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1894    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1895  cat >> confdefs.h <<EOF
1896#define $ac_tr_lib 1
1897EOF
1898
1899  LIBS="-lMPT $LIBS"
1900
1901else
1902  echo "$ac_t""no" 1>&6
1903fi
1904
1905echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1906echo "configure:1907: checking for atof in -lsingcf" >&5
1907ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1908if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1909  echo $ac_n "(cached) $ac_c" 1>&6
1910else
1911  ac_save_LIBS="$LIBS"
1912LIBS="-lsingcf  $LIBS"
1913cat > conftest.$ac_ext <<EOF
1914#line 1915 "configure"
1915#include "confdefs.h"
1916/* Override any gcc2 internal prototype to avoid an error.  */
1917/* We use char because int might match the return type of a gcc2
1918    builtin and then its argument prototype would still apply.  */
1919char atof();
1920
1921int main() {
1922atof()
1923; return 0; }
1924EOF
1925if { (eval echo configure:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1926  rm -rf conftest*
1927  eval "ac_cv_lib_$ac_lib_var=yes"
1928else
1929  echo "configure: failed program was:" >&5
1930  cat conftest.$ac_ext >&5
1931  rm -rf conftest*
1932  eval "ac_cv_lib_$ac_lib_var=no"
1933fi
1934rm -f conftest*
1935LIBS="$ac_save_LIBS"
1936
1937fi
1938if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939  echo "$ac_t""yes" 1>&6
1940    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1941    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1942  cat >> confdefs.h <<EOF
1943#define $ac_tr_lib 1
1944EOF
1945
1946  LIBS="-lsingcf $LIBS"
1947
1948else
1949  echo "$ac_t""no" 1>&6
1950fi
1951
1952echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1953echo "configure:1954: checking for atof in -lsingfac" >&5
1954ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1955if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956  echo $ac_n "(cached) $ac_c" 1>&6
1957else
1958  ac_save_LIBS="$LIBS"
1959LIBS="-lsingfac  $LIBS"
1960cat > conftest.$ac_ext <<EOF
1961#line 1962 "configure"
1962#include "confdefs.h"
1963/* Override any gcc2 internal prototype to avoid an error.  */
1964/* We use char because int might match the return type of a gcc2
1965    builtin and then its argument prototype would still apply.  */
1966char atof();
1967
1968int main() {
1969atof()
1970; return 0; }
1971EOF
1972if { (eval echo configure:1973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1973  rm -rf conftest*
1974  eval "ac_cv_lib_$ac_lib_var=yes"
1975else
1976  echo "configure: failed program was:" >&5
1977  cat conftest.$ac_ext >&5
1978  rm -rf conftest*
1979  eval "ac_cv_lib_$ac_lib_var=no"
1980fi
1981rm -f conftest*
1982LIBS="$ac_save_LIBS"
1983
1984fi
1985if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1986  echo "$ac_t""yes" 1>&6
1987    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1988    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1989  cat >> confdefs.h <<EOF
1990#define $ac_tr_lib 1
1991EOF
1992
1993  LIBS="-lsingfac $LIBS"
1994
1995else
1996  echo "$ac_t""no" 1>&6
1997fi
1998
1999echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
2000echo "configure:2001: checking for omTestAddr in -lomalloc" >&5
2001ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
2002if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2003  echo $ac_n "(cached) $ac_c" 1>&6
2004else
2005  ac_save_LIBS="$LIBS"
2006LIBS="-lomalloc  $LIBS"
2007cat > conftest.$ac_ext <<EOF
2008#line 2009 "configure"
2009#include "confdefs.h"
2010/* Override any gcc2 internal prototype to avoid an error.  */
2011/* We use char because int might match the return type of a gcc2
2012    builtin and then its argument prototype would still apply.  */
2013char omTestAddr();
2014
2015int main() {
2016omTestAddr()
2017; return 0; }
2018EOF
2019if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2020  rm -rf conftest*
2021  eval "ac_cv_lib_$ac_lib_var=yes"
2022else
2023  echo "configure: failed program was:" >&5
2024  cat conftest.$ac_ext >&5
2025  rm -rf conftest*
2026  eval "ac_cv_lib_$ac_lib_var=no"
2027fi
2028rm -f conftest*
2029LIBS="$ac_save_LIBS"
2030
2031fi
2032if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2033  echo "$ac_t""yes" 1>&6
2034    ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2035    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2036  cat >> confdefs.h <<EOF
2037#define $ac_tr_lib 1
2038EOF
2039
2040  LIBS="-lomalloc $LIBS"
2041
2042else
2043  echo "$ac_t""no" 1>&6
2044fi
2045
2046echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
2047echo "configure:2048: checking for main in -lomalloc_ndebug" >&5
2048ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
2049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2050  echo $ac_n "(cached) $ac_c" 1>&6
2051else
2052  ac_save_LIBS="$LIBS"
2053LIBS="-lomalloc_ndebug  $LIBS"
2054cat > conftest.$ac_ext <<EOF
2055#line 2056 "configure"
2056#include "confdefs.h"
2057
2058int main() {
2059main()
2060; return 0; }
2061EOF
2062if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2063  rm -rf conftest*
2064  eval "ac_cv_lib_$ac_lib_var=yes"
2065else
2066  echo "configure: failed program was:" >&5
2067  cat conftest.$ac_ext >&5
2068  rm -rf conftest*
2069  eval "ac_cv_lib_$ac_lib_var=no"
2070fi
2071rm -f conftest*
2072LIBS="$ac_save_LIBS"
2073
2074fi
2075if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2076  echo "$ac_t""yes" 1>&6
2077    ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2078    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2079  cat >> confdefs.h <<EOF
2080#define $ac_tr_lib 1
2081EOF
2082
2083  LIBS="-lomalloc_ndebug $LIBS"
2084
2085else
2086  echo "$ac_t""no" 1>&6
2087fi
2088
2089
2090for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h omalloc.h
2091do
2092ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2093echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2094echo "configure:2095: checking for $ac_hdr" >&5
2095if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2096  echo $ac_n "(cached) $ac_c" 1>&6
2097else
2098  cat > conftest.$ac_ext <<EOF
2099#line 2100 "configure"
2100#include "confdefs.h"
2101#include <$ac_hdr>
2102EOF
2103ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2104{ (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2105ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2106if test -z "$ac_err"; then
2107  rm -rf conftest*
2108  eval "ac_cv_header_$ac_safe=yes"
2109else
2110  echo "$ac_err" >&5
2111  echo "configure: failed program was:" >&5
2112  cat conftest.$ac_ext >&5
2113  rm -rf conftest*
2114  eval "ac_cv_header_$ac_safe=no"
2115fi
2116rm -f conftest*
2117fi
2118if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2119  echo "$ac_t""yes" 1>&6
2120    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2121  cat >> confdefs.h <<EOF
2122#define $ac_tr_hdr 1
2123EOF
2124 
2125else
2126  echo "$ac_t""no" 1>&6
2127fi
2128done
2129
2130
2131if test "$ac_cv_lib_gmp_main" = yes && \
2132 test "$ac_cv_header_gmp_h" = yes; then
2133  ac_gmp_ok=yes
2134fi
2135
2136if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
2137 test "$ac_cv_header_smallgmp_h" = yes && \
2138 test "$ac_cv_header_gmp_h" = yes; then
2139  ac_smallgmp_ok=yes
2140fi
2141
2142if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
2143 test "$ac_cv_lib_MPT_MPT_GetTree" && \
2144 test "$ac_cv_header_MP_h" = yes && \
2145 test "$ac_cv_header_MPT_h" = yes; then
2146  ac_MP_ok=yes
2147fi
2148
2149if test "$ac_cv_lib_singcf_atof" = yes && \
2150 test "$ac_cv_header_factory_h" = yes; then
2151  ac_factory_ok=yes
2152fi
2153
2154if test "$ac_cv_lib_singfac_atof" = yes && \
2155 test "$ac_cv_header_factor_h" = yes; then
2156  ac_libfac_ok=yes
2157fi
2158
2159if test "$ac_cv_lib_omalloc_omTestAddr" = yes && \
2160   test "$ac_cv_lib_omalloc_ndebug_main" = yes && \
2161   test "$ac_cv_header_omalloc_c" = yes && \
2162   test "$ac_cv_header_omalloc_h" = yes; then
2163  ac_cv_omalloc_ok=yes
2164fi
2165 
2166# Check whether --with-tmpdir or --without-tmpdir was given.
2167if test "${with_tmpdir+set}" = set; then
2168  withval="$with_tmpdir"
2169  :
2170fi
2171
2172# Check whether --enable-smallgmp or --disable-smallgmp was given.
2173if test "${enable_smallgmp+set}" = set; then
2174  enableval="$enable_smallgmp"
2175  :
2176fi
2177
2178# Check whether --enable-omalloc or --disable-omalloc was given.
2179if test "${enable_omalloc+set}" = set; then
2180  enableval="$enable_omalloc"
2181  :
2182fi
2183
2184# Check whether --enable-gmp or --disable-gmp was given.
2185if test "${enable_gmp+set}" = set; then
2186  enableval="$enable_gmp"
2187  :
2188fi
2189
2190# Check whether --enable-MP or --disable-MP was given.
2191if test "${enable_MP+set}" = set; then
2192  enableval="$enable_MP"
2193  :
2194fi
2195
2196# Check whether --enable-factory or --disable-factory was given.
2197if test "${enable_factory+set}" = set; then
2198  enableval="$enable_factory"
2199  :
2200fi
2201
2202# Check whether --enable-libfac or --disable-libfac was given.
2203if test "${enable_libfac+set}" = set; then
2204  enableval="$enable_libfac"
2205  :
2206fi
2207
2208# Check whether --enable-sgroup or --disable-sgroup was given.
2209if test "${enable_sgroup+set}" = set; then
2210  enableval="$enable_sgroup"
2211  :
2212fi
2213
2214# Check whether --enable-Singular or --disable-Singular was given.
2215if test "${enable_Singular+set}" = set; then
2216  enableval="$enable_Singular"
2217  :
2218fi
2219
2220# Check whether --enable-IntegerProgramming or --disable-IntegerProgramming was given.
2221if test "${enable_IntegerProgramming+set}" = set; then
2222  enableval="$enable_IntegerProgramming"
2223  :
2224fi
2225
2226# Check whether --enable-Plural or --disable-Plural was given.
2227if test "${enable_Plural+set}" = set; then
2228  enableval="$enable_Plural"
2229  :
2230fi
2231
2232# Check whether --enable-Texinfo or --disable-Texinfo was given.
2233if test "${enable_Texinfo+set}" = set; then
2234  enableval="$enable_Texinfo"
2235  :
2236fi
2237
2238# Check whether --enable-Texi2html or --disable-Texi2html was given.
2239if test "${enable_Texi2html+set}" = set; then
2240  enableval="$enable_Texi2html"
2241  :
2242fi
2243
2244# Check whether --enable-doc or --disable-doc was given.
2245if test "${enable_doc+set}" = set; then
2246  enableval="$enable_doc"
2247  :
2248fi
2249
2250# Check whether --enable-emacs or --disable-emacs was given.
2251if test "${enable_emacs+set}" = set; then
2252  enableval="$enable_emacs"
2253  :
2254fi
2255
2256# Check whether --with-MP or --without-MP was given.
2257if test "${with_MP+set}" = set; then
2258  withval="$with_MP"
2259  :
2260fi
2261
2262# Check whether --with-factory or --without-factory was given.
2263if test "${with_factory+set}" = set; then
2264  withval="$with_factory"
2265  :
2266fi
2267
2268# Check whether --with-libfac or --without-libfac was given.
2269if test "${with_libfac+set}" = set; then
2270  withval="$with_libfac"
2271  :
2272fi
2273
2274# Check whether --with-gmp or --without-gmp was given.
2275if test "${with_gmp+set}" = set; then
2276  withval="$with_gmp"
2277  :
2278fi
2279
2280
2281echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
2282echo "configure:2283: checking which tmp dir to use" >&5
2283if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
2284  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
2285  then
2286    TMP_DIR="${pwd}/tmp"
2287  else
2288    TMP_DIR=${with_tmpdir}
2289  fi
2290else
2291  TMP_DIR="${pwd}/tmp"
2292fi
2293echo "$ac_t""$TMP_DIR" 1>&6
2294
2295
2296echo $ac_n "checking whether to configure and build omalloc""... $ac_c" 1>&6
2297echo "configure:2298: checking whether to configure and build omalloc" >&5
2298if test "${enable_omalloc+set}" != set; then
2299   if test "$ac_cv_omalloc_ok" = yes; then
2300     enable_omalloc=no
2301   fi
2302   enable_omalloc_not_set=yes
2303fi
2304if test "$enable_omalloc" = no; then
2305  if test "$ac_cv_omalloc_ok" != yes; then
2306    { echo "configure: error: can not build without omalloc" 1>&2; exit 1; }
2307  fi
2308  echo "$ac_t""no" 1>&6
2309else
2310  if test -d omalloc; then
2311    echo "$ac_t""yes" 1>&6
2312    if test "$enable_omalloc_not_set" = yes; then
2313      ac_configure_args="$ac_configure_args --enable-omalloc --with-external-config_h='$pwd/Singular/omSingularConfig.h' --with-track-custom"
2314    fi
2315    CONFIG_SUBDIRS="$CONFIG_SUBDIRS omalloc"
2316    if test "${with_malloc+set}" != set; then
2317case "$ac_cv_singuname" in
2318# under windows, it is best to use the provided malloc
2319        ix86-Win*)
2320        with_malloc=system
2321        ac_configure_args="$ac_configure_args --with-malloc=system"
2322        ;;
2323        PowerMacintosh-darwin*)
2324        with_malloc=system
2325        ac_configure_args="$ac_configure_args --with-malloc=system"
2326        ;;
2327esac
2328fi
2329  else
2330    { echo "configure: error: need omalloc subdir" 1>&2; exit 1; }
2331  fi
2332fi
2333
2334echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
2335echo "configure:2336: checking whether to configure and build gmp lib" >&5
2336if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
2337  if test "$ac_gmp_ok" != yes && test -d gmp; then
2338    echo "$ac_t""yes" 1>&6
2339    enable_gmp=yes
2340    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2341    ac_configure_args="$ac_configure_args --enable-gmp"
2342    enable_gmp=yes
2343#    This we used to need for our patched version of gmp 2.x
2344#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2345  else
2346    echo "$ac_t""no" 1>&6
2347    enable_gmp=no
2348  fi
2349elif test "$enable_gmp" = yes; then
2350  if test ! -d gmp; then
2351    echo "$ac_t""no" 1>&6
2352    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
2353  else
2354    echo "$ac_t""yes" 1>&6
2355    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
2356#    This we used to need for our patched version of gmp 2.x
2357#    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
2358  fi
2359else
2360  echo "$ac_t""no" 1>&6
2361fi
2362
2363if test "$enable_gmp" = yes; then
2364# for gmp-3.0 to work for all ix86 processors, set generic target
2365if test "$target" = NONE; then
2366case "$ac_cv_singuname" in
2367        ix86*)
2368        gmp_target=`./config.guess | sed 's/^\w*-/i386-/'`
2369        ac_configure_args="$ac_configure_args --target=$gmp_target"
2370        ;;
2371esac
2372fi
2373# furthermore, disable building of dynamic libraries, for we want to
2374# link against the static ones
2375if test "$enable_shared" != no; then
2376  ac_configure_args="$ac_configure_args --disable-shared"
2377fi
2378fi
2379
2380echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
2381echo "configure:2382: checking whether to configure and build smallgmp lib" >&5
2382if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
2383  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2384     test "$enable_gmp" != yes && test -d smallgmp; then
2385    echo "$ac_t""yes" 1>&6
2386    enable_smallgmp=yes
2387    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2388    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
2389    enable_gmp=yes
2390  else
2391    echo "$ac_t""no" 1>&6
2392    enable_smallgmp=no
2393  fi
2394elif test "$enable_smallgmp" = yes; then
2395  if test ! -d smallgmp; then
2396    echo "$ac_t""no" 1>&6
2397    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
2398  else
2399    echo "$ac_t""yes" 1>&6
2400    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
2401    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2402      ac_configure_args="$ac_configure_args --enable-gmp"
2403      enable_gmp=yes
2404    fi
2405  fi
2406else
2407  echo "$ac_t""${enable_smallgmp}" 1>&6
2408fi
2409
2410# Check whether we have at least one of smallgmp or gmp
2411if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
2412   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
2413  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
2414fi
2415
2416# Check whether we need to cheat subsequent configures with --enable-gmp
2417if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
2418  ac_configure_args="$ac_configure_args --enable-gmp"
2419fi
2420
2421echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
2422echo "configure:2423: checking whether to configure and build MP lib" >&5
2423if test "$enable_MP" != yes && test "$enable_MP" != no; then
2424  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
2425     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
2426    echo "$ac_t""yes" 1>&6
2427    enable_MP=yes
2428    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2429    ac_configure_args="$ac_configure_args --enable-MP"
2430  else
2431    echo "$ac_t""no" 1>&6
2432    enable_MP=no
2433  fi
2434elif test "$enable_MP" = yes; then
2435  if test ! -d MP; then
2436    echo "$ac_t""no" 1>&6
2437    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
2438  fi
2439  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
2440    echo "$ac_t""yes" 1>&6
2441    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
2442  else
2443    echo "$ac_t""no" 1>&6
2444    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
2445  fi
2446else
2447  echo "$ac_t""no" 1>&6
2448fi
2449
2450# need MP code to be compiled with -fPIC, should not hurt anybody else
2451if test "$enable_MP" = yes && test "${with_extra_cflags+set}" != set; then
2452ac_configure_args="$ac_configure_args --with-extra_cflags=-fPIC"
2453fi
2454
2455echo $ac_n "checking whether to configure and build NTL lib""... $ac_c" 1>&6
2456echo "configure:2457: checking whether to configure and build NTL lib" >&5
2457if test "$enable_NTL" != yes && test "$enable_NTL" != no; then
2458  if test "$with_NTL" != no && test "$ac_NTL_ok" != yes && \
2459     test -d ntl; then
2460    enable_NTL=yes
2461    echo "$ac_t""yes" 1>&6
2462    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2463    ac_configure_args="$ac_configure_args --enable-NTL"
2464  else
2465    enable_NTL=no
2466    echo "$ac_t""no" 1>&6
2467  fi
2468elif test "$enable_NTL" = yes; then
2469  if test -d ntl; then
2470    echo "$ac_t""yes" 1>&6
2471    CONFIG_SUBDIRS="$CONFIG_SUBDIRS ntl"
2472  else
2473    echo "$ac_t""no" 1>&6
2474    { echo "configure: error: can not build NTL without ntl directory" 1>&2; exit 1; }
2475  fi
2476else
2477  echo "$ac_t""no" 1>&6
2478fi
2479
2480echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
2481echo "configure:2482: checking whether to configure and build factory lib" >&5
2482if test "$enable_factory" != yes && test "$enable_factory" != no; then
2483  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
2484     test -d factory; then
2485    enable_factory=yes
2486    echo "$ac_t""yes" 1>&6
2487    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2488    ac_configure_args="$ac_configure_args --enable-factory"
2489  else
2490    enable_factory=no
2491    echo "$ac_t""no" 1>&6
2492  fi
2493elif test "$enable_factory" = yes; then
2494  if test -d factory; then
2495    echo "$ac_t""yes" 1>&6
2496    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2497  else
2498    echo "$ac_t""no" 1>&6
2499    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
2500  fi
2501else
2502  echo "$ac_t""no" 1>&6
2503fi
2504
2505echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
2506echo "configure:2507: checking whether to configure and build libfac lib" >&5
2507if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
2508  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
2509     test -d libfac && \
2510     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
2511    enable_libfac=yes
2512    echo "$ac_t""yes" 1>&6
2513    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2514    ac_configure_args="$ac_configure_args --enable-libfac"
2515  else
2516    enable_libfac=no
2517    echo "$ac_t""no" 1>&6
2518  fi
2519elif  test "$enable_libfac" = yes; then
2520  if test ! -d libfac; then
2521    echo "$ac_t""no" 1>&6
2522    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
2523  fi
2524  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2525    echo "$ac_t""yes" 1>&6
2526    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2527  else
2528    echo "$ac_t""no" 1>&6
2529    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
2530  fi
2531else
2532  echo "$ac_t""no" 1>&6
2533fi
2534
2535echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
2536echo "configure:2537: checking whether to configure and build sgroup lib" >&5
2537if test "$enable_sgroup" = yes; then
2538  if test ! -d sgroup; then
2539    echo "$ac_t""no" 1>&6
2540    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
2541  fi
2542  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2543    echo "$ac_t""yes" 1>&6
2544    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
2545  else
2546    echo "$ac_t""no" 1>&6
2547    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
2548  fi
2549else
2550  echo "$ac_t""no" 1>&6
2551fi
2552
2553BUILD_SUBDIRS="$CONFIG_SUBDIRS"
2554
2555echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
2556echo "configure:2557: checking whether to configure and build Singular" >&5
2557if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
2558  if test "$with_Singular" != no && test -d Singular; then
2559    enable_Singular=yes
2560    echo "$ac_t""yes" 1>&6
2561    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2562    BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular"     
2563    ac_configure_args="$ac_configure_args --enable-Singular"
2564  else
2565    enable_Singular=no
2566    echo "$ac_t""no" 1>&6
2567  fi
2568elif test "$enable_Singular" = yes; then
2569  if test -d Singular; then
2570    echo "$ac_t""yes" 1>&6
2571    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2572    BUILD_SUBDIRS="$BUILD_SUBDIRS kernel Singular"     
2573  else
2574    echo "$ac_t""no" 1>&6
2575    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2576  fi
2577else
2578  echo "$ac_t""no" 1>&6
2579fi
2580
2581
2582# test if IntegerProgramming should be built:
2583
2584echo $ac_n "checking whether to build IntegerProgramming""... $ac_c" 1>&6
2585echo "configure:2586: checking whether to build IntegerProgramming" >&5
2586if test "$enable_IntegerProgramming" != no && test -d "IntegerProgramming"; then
2587   BUILD_SUBDIRS="$BUILD_SUBDIRS IntegerProgramming"
2588   echo "$ac_t""yes" 1>&6
2589   if test "$enable_IntegerProgramming" != yes; then
2590     ac_configure_args="$ac_configure_args --enable-IntegerProgramming"
2591   fi
2592else
2593   echo "$ac_t""no" 1>&6
2594fi
2595
2596echo $ac_n "checking whether to build Plural""... $ac_c" 1>&6
2597echo "configure:2598: checking whether to build Plural" >&5
2598if test "$enable_Plural" != no || test "$with_Plural" != no; then
2599   echo "$ac_t""yes" 1>&6
2600   if test "$enable_Plural" != yes; then
2601     ac_configure_args="$ac_configure_args --enable-Plural"
2602   fi
2603else
2604   echo "$ac_t""no" 1>&6
2605fi
2606
2607
2608echo $ac_n "checking whether to configure and build Texinfo""... $ac_c" 1>&6
2609echo "configure:2610: checking whether to configure and build Texinfo" >&5
2610if test "$enable_Texinfo" != no && test -d Texinfo; then
2611  echo "$ac_t""yes" 1>&6
2612  enable_texinfo=yes
2613  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
2614  BUILD_SUBDIRS="$BUILD_SUBDIRS Texinfo"       
2615  TEXI2DVI=${bindir}/texi2dvi
2616  TEXI2PDF=${bindir}/texi2pdf
2617  MAKEINFO="${bindir}/makeinfo"
2618  TEXINDEX=${bindir}/texindex
2619 
2620 
2621 
2622 
2623  if test "$enable_Texinfo" != yes; then
2624    ac_configure_args="$ac_configure_args --enable-Texinfo"
2625  fi
2626else
2627  echo "$ac_t""no" 1>&6
2628  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
2629  enable_texinfo=no
2630  # Extract the first word of "makeinfo", so it can be a program name with args.
2631set dummy makeinfo; ac_word=$2
2632echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2633echo "configure:2634: checking for $ac_word" >&5
2634if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
2635  echo $ac_n "(cached) $ac_c" 1>&6
2636else
2637  if test -n "$MAKEINFO"; then
2638  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2639else
2640  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2641  ac_dummy="$PATH"
2642  for ac_dir in $ac_dummy; do
2643    test -z "$ac_dir" && ac_dir=.
2644    if test -f $ac_dir/$ac_word; then
2645      ac_cv_prog_MAKEINFO="makeinfo"
2646      break
2647    fi
2648  done
2649  IFS="$ac_save_ifs"
2650  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="${pwd}/warn_not_found.sh makeinfo"
2651fi
2652fi
2653MAKEINFO="$ac_cv_prog_MAKEINFO"
2654if test -n "$MAKEINFO"; then
2655  echo "$ac_t""$MAKEINFO" 1>&6
2656else
2657  echo "$ac_t""no" 1>&6
2658fi
2659
2660  # Extract the first word of "texi2dvi", so it can be a program name with args.
2661set dummy texi2dvi; ac_word=$2
2662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2663echo "configure:2664: checking for $ac_word" >&5
2664if eval "test \"`echo '$''{'ac_cv_prog_TEXI2DVI'+set}'`\" = set"; then
2665  echo $ac_n "(cached) $ac_c" 1>&6
2666else
2667  if test -n "$TEXI2DVI"; then
2668  ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test.
2669else
2670  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2671  ac_dummy="$PATH"
2672  for ac_dir in $ac_dummy; do
2673    test -z "$ac_dir" && ac_dir=.
2674    if test -f $ac_dir/$ac_word; then
2675      ac_cv_prog_TEXI2DVI="texi2dvi"
2676      break
2677    fi
2678  done
2679  IFS="$ac_save_ifs"
2680  test -z "$ac_cv_prog_TEXI2DVI" && ac_cv_prog_TEXI2DVI="${pwd}/warn_not_found.sh texi2dvi"
2681fi
2682fi
2683TEXI2DVI="$ac_cv_prog_TEXI2DVI"
2684if test -n "$TEXI2DVI"; then
2685  echo "$ac_t""$TEXI2DVI" 1>&6
2686else
2687  echo "$ac_t""no" 1>&6
2688fi
2689
2690  # Extract the first word of "texindex", so it can be a program name with args.
2691set dummy texindex; ac_word=$2
2692echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2693echo "configure:2694: checking for $ac_word" >&5
2694if eval "test \"`echo '$''{'ac_cv_prog_TEXINDEX'+set}'`\" = set"; then
2695  echo $ac_n "(cached) $ac_c" 1>&6
2696else
2697  if test -n "$TEXINDEX"; then
2698  ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
2699else
2700  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2701  ac_dummy="$PATH"
2702  for ac_dir in $ac_dummy; do
2703    test -z "$ac_dir" && ac_dir=.
2704    if test -f $ac_dir/$ac_word; then
2705      ac_cv_prog_TEXINDEX="texindex"
2706      break
2707    fi
2708  done
2709  IFS="$ac_save_ifs"
2710  test -z "$ac_cv_prog_TEXINDEX" && ac_cv_prog_TEXINDEX="${pwd}/warn_not_found.sh texindex"
2711fi
2712fi
2713TEXINDEX="$ac_cv_prog_TEXINDEX"
2714if test -n "$TEXINDEX"; then
2715  echo "$ac_t""$TEXINDEX" 1>&6
2716else
2717  echo "$ac_t""no" 1>&6
2718fi
2719
2720  # Extract the first word of "texi2pdf", so it can be a program name with args.
2721set dummy texi2pdf; ac_word=$2
2722echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2723echo "configure:2724: checking for $ac_word" >&5
2724if eval "test \"`echo '$''{'ac_cv_prog_TEXI2PDF'+set}'`\" = set"; then
2725  echo $ac_n "(cached) $ac_c" 1>&6
2726else
2727  if test -n "$TEXI2PDF"; then
2728  ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
2729else
2730  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2731  ac_dummy="$PATH"
2732  for ac_dir in $ac_dummy; do
2733    test -z "$ac_dir" && ac_dir=.
2734    if test -f $ac_dir/$ac_word; then
2735      ac_cv_prog_TEXI2PDF="texi2pdf"
2736      break
2737    fi
2738  done
2739  IFS="$ac_save_ifs"
2740  test -z "$ac_cv_prog_TEXI2PDF" && ac_cv_prog_TEXI2PDF="${pwd}/warn_not_found.sh texi2pdf"
2741fi
2742fi
2743TEXI2PDF="$ac_cv_prog_TEXI2PDF"
2744if test -n "$TEXI2PDF"; then
2745  echo "$ac_t""$TEXI2PDF" 1>&6
2746else
2747  echo "$ac_t""no" 1>&6
2748fi
2749
2750fi 
2751
2752echo $ac_n "checking whether to configure and build Texi2html""... $ac_c" 1>&6
2753echo "configure:2754: checking whether to configure and build Texi2html" >&5
2754if test "$enable_Texi2html" != no && test -d Texi2html; then
2755 echo "$ac_t""yes" 1>&6
2756 CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texi2html"
2757 BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
2758 if test "$enable_Texi2html" != yes; then
2759   ac_configure_args="$ac_configure_args --enable-Texi2html"
2760 fi
2761 TEXI2HTML=${bindir}/texi2html
2762 
2763else
2764 echo "$ac_t""no" 1>&6
2765 # Extract the first word of "texi2html", so it can be a program name with args.
2766set dummy texi2html; ac_word=$2
2767echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2768echo "configure:2769: checking for $ac_word" >&5
2769if eval "test \"`echo '$''{'ac_cv_prog_TEXI2HTML'+set}'`\" = set"; then
2770  echo $ac_n "(cached) $ac_c" 1>&6
2771else
2772  if test -n "$TEXI2HTML"; then
2773  ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
2774else
2775  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2776  ac_dummy="$PATH"
2777  for ac_dir in $ac_dummy; do
2778    test -z "$ac_dir" && ac_dir=.
2779    if test -f $ac_dir/$ac_word; then
2780      ac_cv_prog_TEXI2HTML="texi2html"
2781      break
2782    fi
2783  done
2784  IFS="$ac_save_ifs"
2785fi
2786fi
2787TEXI2HTML="$ac_cv_prog_TEXI2HTML"
2788if test -n "$TEXI2HTML"; then
2789  echo "$ac_t""$TEXI2HTML" 1>&6
2790else
2791  echo "$ac_t""no" 1>&6
2792fi
2793
2794fi
2795
2796if test "${TEXI2HTML+set}" != set; then
2797echo "configure: warning: texi2html not found. HTML doc generation will fail" 1>&2
2798fi
2799if test "$ac_cv_prog_LATEX2HTML" = latex2html; then
2800  TEXI2HTML_OPTS="-l2h"
2801fi
2802
2803
2804
2805echo $ac_n "checking whether to build doc""... $ac_c" 1>&6
2806echo "configure:2807: checking whether to build doc" >&5
2807if test "$enable_doc" != no && test -d doc; then
2808 echo "$ac_t""yes" 1>&6
2809 BUILD_SUBDIRS="$BUILD_SUBDIRS doc"
2810 if test "$enable_doc" != yes; then
2811   enable_doc=yes
2812   ac_configure_args="$ac_configure_args --enable-doc"
2813 fi
2814else
2815 enable_doc=no
2816 echo "$ac_t""no" 1>&6
2817fi
2818
2819echo $ac_n "checking whether to build emacs""... $ac_c" 1>&6
2820echo "configure:2821: checking whether to build emacs" >&5
2821if test "$enable_doc" = yes && test "$enable_emacs" != no && test -d emacs; then
2822 echo "$ac_t""yes" 1>&6
2823 BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
2824 if test "$enable_emacs" != yes; then
2825   ac_configure_args="$ac_configure_args --enable-emacs"
2826 fi
2827else
2828 echo "$ac_t""no" 1>&6
2829fi
2830
2831echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2832echo "configure:2833: checking which apint package to use" >&5
2833if test "$with_apint" = gmp; then
2834  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2835    echo "$ac_t""gmp" 1>&6
2836  else
2837    echo "$ac_t""none" 1>&6
2838    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2839  fi
2840elif test "$with_apint" = smallgmp; then
2841  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2842    echo "$ac_t""smallgmp" 1>&6
2843  else
2844    echo "$ac_t""none" 1>&6
2845    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2846  fi
2847elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2848    echo "$ac_t""gmp" 1>&6
2849    ac_configure_args="$ac_configure_args --with-apint=gmp"
2850else
2851   echo "$ac_t""smallgmp" 1>&6
2852   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2853fi
2854
2855echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2856echo "configure:2857: checking whether to use with MP" >&5
2857if test "$with_MP" = yes; then
2858  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2859    echo "$ac_t""yes" 1>&6
2860  else
2861    echo "$ac_t""none" 1>&6
2862    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2863  fi
2864elif test "$with_MP" = no; then
2865  echo "$ac_t""no" 1>&6
2866elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2867  echo "$ac_t""yes" 1>&6
2868  ac_configure_args="$ac_configure_args --with-MP"
2869else
2870  echo "$ac_t""no" 1>&6
2871  ac_configure_args="$ac_configure_args --without-MP"
2872fi
2873
2874echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2875echo "configure:2876: checking whether to use with factory" >&5
2876if test "$with_factory" = yes; then
2877  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2878    echo "$ac_t""yes" 1>&6
2879  else
2880    echo "$ac_t""none" 1>&6
2881    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2882  fi
2883elif test "$with_factory" = no; then
2884  echo "$ac_t""no" 1>&6
2885elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2886  echo "$ac_t""yes" 1>&6
2887  ac_configure_args="$ac_configure_args --with-factory"
2888else
2889  echo "$ac_t""no" 1>&6
2890  ac_configure_args="$ac_configure_args --without-factory"
2891fi
2892 
2893echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2894echo "configure:2895: checking whether to use with libfac" >&5
2895if test "$with_libfac" = yes; then
2896  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2897    echo "$ac_t""yes" 1>&6
2898  else
2899    echo "$ac_t""none" 1>&6
2900    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2901  fi
2902elif test "$with_libfac" = no; then
2903  echo "$ac_t""no" 1>&6
2904elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2905  echo "$ac_t""yes" 1>&6
2906  ac_configure_args="$ac_configure_args --with-libfac"
2907else
2908  echo "$ac_t""no" 1>&6
2909  ac_configure_args="$ac_configure_args --without-libfac"
2910fi
2911
2912
2913
2914echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2915echo "configure:2916: checking whether to use with Singular" >&5
2916if test "$with_Singular" != no && test "$with_Singular" != yes; then
2917  if test "$enable_Singular" = yes; then
2918    with_Singular=yes
2919  else
2920    with_Singular=no
2921  fi
2922  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2923fi
2924
2925if test "$with_Singular" != no; then
2926  echo "$ac_t""yes" 1>&6
2927else
2928  echo "$ac_t""no" 1>&6
2929fi
2930
2931
2932SUBDIRS=""
2933if test -d omalloc; then
2934  SUBDIRS="$SUBDIRS omalloc"
2935fi
2936if test -d smallgmp; then
2937  SUBDIRS="$SUBDIRS smallgmp"
2938fi
2939if test -d gmp; then
2940  SUBDIRS="$SUBDIRS gmp"
2941fi
2942if test -d MP; then
2943  SUBDIRS="$SUBDIRS MP"
2944fi
2945if test -d ntl; then
2946  SUBDIRS="$SUBDIRS ntl"
2947fi
2948if test -d factory; then
2949  SUBDIRS="$SUBDIRS factory"
2950fi
2951if test -d libfac; then
2952  SUBDIRS="$SUBDIRS libfac"
2953fi
2954if test -d sgroup; then
2955  SUBDIRS="$SUBDIRS sgroup"
2956fi
2957if test -d Singular; then
2958  SUBDIRS="$SUBDIRS Singular"
2959fi
2960if test -d Texinfo; then
2961  SUBDIRS="$SUBDIRS Texinfo"
2962fi
2963if test -d Texi2html; then
2964  SUBDIRS="$SUBDIRS Texi2html"
2965fi
2966if test -d doc; then
2967  SUBDIRS="$SUBDIRS doc"
2968fi
2969if test -d emacs; then
2970  SUBDIRS="$SUBDIRS emacs"
2971fi
2972if test -d modules; then
2973  SUBDIRS="$SUBDIRS modules"
2974fi
2975 
2976echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2977echo "configure:2978: checking whether ${MAKE-make} sets \${MAKE}" >&5
2978set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2979if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2980  echo $ac_n "(cached) $ac_c" 1>&6
2981else
2982  cat > conftestmake <<\EOF
2983all:
2984        @echo 'ac_maketemp="${MAKE}"'
2985EOF
2986# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2987eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2988if test -n "$ac_maketemp"; then
2989  eval ac_cv_prog_make_${ac_make}_set=yes
2990else
2991  eval ac_cv_prog_make_${ac_make}_set=no
2992fi
2993rm -f conftestmake
2994fi
2995if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2996  echo "$ac_t""yes" 1>&6
2997  SET_MAKE=
2998else
2999  echo "$ac_t""no" 1>&6
3000  SET_MAKE="MAKE=${MAKE-make}"
3001fi
3002
3003
3004
3005
3006subdirs="$CONFIG_SUBDIRS"
3007 
3008
3009trap '' 1 2 15
3010cat > confcache <<\EOF
3011# This file is a shell script that caches the results of configure
3012# tests run on this system so they can be shared between configure
3013# scripts and configure runs.  It is not useful on other systems.
3014# If it contains results you don't want to keep, you may remove or edit it.
3015#
3016# By default, configure uses ./config.cache as the cache file,
3017# creating it if it does not exist already.  You can give configure
3018# the --cache-file=FILE option to use a different cache file; that is
3019# what configure does when it calls configure scripts in
3020# subdirectories, so they share the cache.
3021# Giving --cache-file=/dev/null disables caching, for debugging configure.
3022# config.status only pays attention to the cache file if you give it the
3023# --recheck option to rerun configure.
3024#
3025EOF
3026# The following way of writing the cache mishandles newlines in values,
3027# but we know of no workaround that is simple, portable, and efficient.
3028# So, don't put newlines in cache variables' values.
3029# Ultrix sh set writes to stderr and can't be redirected directly,
3030# and sets the high bit in the cache file unless we assign to the vars.
3031(set) 2>&1 |
3032  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3033  *ac_space=\ *)
3034    # `set' does not quote correctly, so add quotes (double-quote substitution
3035    # turns \\\\ into \\, and sed turns \\ into \).
3036    sed -n \
3037      -e "s/'/'\\\\''/g" \
3038      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3039    ;;
3040  *)
3041    # `set' quotes correctly as required by POSIX, so do not add quotes.
3042    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3043    ;;
3044  esac >> confcache
3045if cmp -s $cache_file confcache; then
3046  :
3047else
3048  if test -w $cache_file; then
3049    echo "updating cache $cache_file"
3050    cat confcache > $cache_file
3051  else
3052    echo "not updating unwritable cache $cache_file"
3053  fi
3054fi
3055rm -f confcache
3056
3057trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3058
3059test "x$prefix" = xNONE && prefix=$ac_default_prefix
3060# Let make expand exec_prefix.
3061test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3062
3063# Any assignment to VPATH causes Sun make to only execute
3064# the first set of double-colon rules, so remove it if not needed.
3065# If there is a colon in the path, we need to keep it.
3066if test "x$srcdir" = x.; then
3067  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3068fi
3069
3070trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3071
3072# Transform confdefs.h into DEFS.
3073# Protect against shell expansion while executing Makefile rules.
3074# Protect against Makefile macro expansion.
3075cat > conftest.defs <<\EOF
3076s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3077s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3078s%\[%\\&%g
3079s%\]%\\&%g
3080s%\$%$$%g
3081EOF
3082DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3083rm -f conftest.defs
3084
3085
3086# Without the "./", some shells look in PATH for config.status.
3087: ${CONFIG_STATUS=./config.status}
3088
3089echo creating $CONFIG_STATUS
3090rm -f $CONFIG_STATUS
3091cat > $CONFIG_STATUS <<EOF
3092#! /bin/sh
3093# Generated automatically by configure.
3094# Run this file to recreate the current configuration.
3095# This directory was configured as follows,
3096# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3097#
3098# $0 $ac_configure_args
3099#
3100# Compiler output produced by configure, useful for debugging
3101# configure, is in ./config.log if it exists.
3102
3103ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3104for ac_option
3105do
3106  case "\$ac_option" in
3107  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3108    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3109    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3110  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3111    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3112    exit 0 ;;
3113  -help | --help | --hel | --he | --h)
3114    echo "\$ac_cs_usage"; exit 0 ;;
3115  *) echo "\$ac_cs_usage"; exit 1 ;;
3116  esac
3117done
3118
3119ac_given_srcdir=$srcdir
3120ac_given_INSTALL="$INSTALL"
3121
3122trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3123EOF
3124cat >> $CONFIG_STATUS <<EOF
3125
3126# Protect against being on the right side of a sed subst in config.status.
3127sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3128 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3129$ac_vpsub
3130$extrasub
3131s%@SHELL@%$SHELL%g
3132s%@CFLAGS@%$CFLAGS%g
3133s%@CPPFLAGS@%$CPPFLAGS%g
3134s%@CXXFLAGS@%$CXXFLAGS%g
3135s%@FFLAGS@%$FFLAGS%g
3136s%@DEFS@%$DEFS%g
3137s%@LDFLAGS@%$LDFLAGS%g
3138s%@LIBS@%$LIBS%g
3139s%@exec_prefix@%$exec_prefix%g
3140s%@prefix@%$prefix%g
3141s%@program_transform_name@%$program_transform_name%g
3142s%@bindir@%$bindir%g
3143s%@sbindir@%$sbindir%g
3144s%@libexecdir@%$libexecdir%g
3145s%@datadir@%$datadir%g
3146s%@sysconfdir@%$sysconfdir%g
3147s%@sharedstatedir@%$sharedstatedir%g
3148s%@localstatedir@%$localstatedir%g
3149s%@libdir@%$libdir%g
3150s%@includedir@%$includedir%g
3151s%@oldincludedir@%$oldincludedir%g
3152s%@infodir@%$infodir%g
3153s%@mandir@%$mandir%g
3154s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
3155s%@VERSION_DATE@%$VERSION_DATE%g
3156s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
3157s%@SINGULAR_RPM_VERSION@%$SINGULAR_RPM_VERSION%g
3158s%@SINGULAR_ROOT_DIR@%$SINGULAR_ROOT_DIR%g
3159s%@SINGUNAME@%$SINGUNAME%g
3160s%@SING_UNAME@%$SING_UNAME%g
3161s%@CC@%$CC%g
3162s%@CPP@%$CPP%g
3163s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3164s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3165s%@INSTALL_DATA@%$INSTALL_DATA%g
3166s%@CXX@%$CXX%g
3167s%@PIPE@%$PIPE%g
3168s%@PERL@%$PERL%g
3169s%@UUDECODE@%$UUDECODE%g
3170s%@GUNZIP@%$GUNZIP%g
3171s%@MYGZIP@%$MYGZIP%g
3172s%@LATEX2HTML@%$LATEX2HTML%g
3173s%@LN_S@%$LN_S%g
3174s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
3175s%@SINGULAR@%$SINGULAR%g
3176s%@TMP_DIR@%$TMP_DIR%g
3177s%@TEXI2DVI@%$TEXI2DVI%g
3178s%@TEXI2PDF@%$TEXI2PDF%g
3179s%@MAKEINFO@%$MAKEINFO%g
3180s%@TEXINDEX@%$TEXINDEX%g
3181s%@TEXI2HTML@%$TEXI2HTML%g
3182s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
3183s%@SET_MAKE@%$SET_MAKE%g
3184s%@SUBDIRS@%$SUBDIRS%g
3185s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
3186s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
3187s%@subdirs@%$subdirs%g
3188
3189CEOF
3190EOF
3191
3192cat >> $CONFIG_STATUS <<\EOF
3193
3194# Split the substitutions into bite-sized pieces for seds with
3195# small command number limits, like on Digital OSF/1 and HP-UX.
3196ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3197ac_file=1 # Number of current file.
3198ac_beg=1 # First line for current file.
3199ac_end=$ac_max_sed_cmds # Line after last line for current file.
3200ac_more_lines=:
3201ac_sed_cmds=""
3202while $ac_more_lines; do
3203  if test $ac_beg -gt 1; then
3204    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3205  else
3206    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3207  fi
3208  if test ! -s conftest.s$ac_file; then
3209    ac_more_lines=false
3210    rm -f conftest.s$ac_file
3211  else
3212    if test -z "$ac_sed_cmds"; then
3213      ac_sed_cmds="sed -f conftest.s$ac_file"
3214    else
3215      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3216    fi
3217    ac_file=`expr $ac_file + 1`
3218    ac_beg=$ac_end
3219    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3220  fi
3221done
3222if test -z "$ac_sed_cmds"; then
3223  ac_sed_cmds=cat
3224fi
3225EOF
3226
3227cat >> $CONFIG_STATUS <<EOF
3228
3229CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
3230EOF
3231cat >> $CONFIG_STATUS <<\EOF
3232for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3233  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3234  case "$ac_file" in
3235  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3236       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3237  *) ac_file_in="${ac_file}.in" ;;
3238  esac
3239
3240  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3241
3242  # Remove last slash and all that follows it.  Not all systems have dirname.
3243  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3244  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3245    # The file is in a subdirectory.
3246    test ! -d "$ac_dir" && mkdir "$ac_dir"
3247    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3248    # A "../" for each directory in $ac_dir_suffix.
3249    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3250  else
3251    ac_dir_suffix= ac_dots=
3252  fi
3253
3254  case "$ac_given_srcdir" in
3255  .)  srcdir=.
3256      if test -z "$ac_dots"; then top_srcdir=.
3257      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3258  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3259  *) # Relative path.
3260    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3261    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3262  esac
3263
3264  case "$ac_given_INSTALL" in
3265  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3266  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3267  esac
3268
3269  echo creating "$ac_file"
3270  rm -f "$ac_file"
3271  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3272  case "$ac_file" in
3273  *Makefile*) ac_comsub="1i\\
3274# $configure_input" ;;
3275  *) ac_comsub= ;;
3276  esac
3277
3278  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3279  sed -e "$ac_comsub
3280s%@configure_input@%$configure_input%g
3281s%@srcdir@%$srcdir%g
3282s%@top_srcdir@%$top_srcdir%g
3283s%@INSTALL@%$INSTALL%g
3284" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3285fi; done
3286rm -f conftest.s*
3287
3288EOF
3289cat >> $CONFIG_STATUS <<EOF
3290
3291EOF
3292cat >> $CONFIG_STATUS <<\EOF
3293
3294exit 0
3295EOF
3296chmod +x $CONFIG_STATUS
3297rm -fr confdefs* $ac_clean_files
3298test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3299
3300if test "$no_recursion" != yes; then
3301
3302  # Remove --cache-file and --srcdir arguments so they do not pile up.
3303  ac_sub_configure_args=
3304  ac_prev=
3305  for ac_arg in $ac_configure_args; do
3306    if test -n "$ac_prev"; then
3307      ac_prev=
3308      continue
3309    fi
3310    case "$ac_arg" in
3311    -cache-file | --cache-file | --cache-fil | --cache-fi \
3312    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
3313      ac_prev=cache_file ;;
3314    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
3315    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3316      ;;
3317    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
3318      ac_prev=srcdir ;;
3319    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3320      ;;
3321    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
3322    esac
3323  done
3324
3325  for ac_config_dir in $CONFIG_SUBDIRS; do
3326
3327    # Do not complain, so a configure script can configure whichever
3328    # parts of a large source tree are present.
3329    if test ! -d $srcdir/$ac_config_dir; then
3330      continue
3331    fi
3332
3333    echo configuring in $ac_config_dir
3334
3335    case "$srcdir" in
3336    .) ;;
3337    *)
3338      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
3339      else
3340        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
3341      fi
3342      ;;
3343    esac
3344
3345    ac_popdir=`pwd`
3346    cd $ac_config_dir
3347
3348      # A "../" for each directory in /$ac_config_dir.
3349      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
3350
3351    case "$srcdir" in
3352    .) # No --srcdir option.  We are building in place.
3353      ac_sub_srcdir=$srcdir ;;
3354    /*) # Absolute path.
3355      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
3356    *) # Relative path.
3357      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
3358    esac
3359
3360    # Check for guested configure; otherwise get Cygnus style configure.
3361    if test -f $ac_sub_srcdir/configure; then
3362      ac_sub_configure=$ac_sub_srcdir/configure
3363    elif test -f $ac_sub_srcdir/configure.in; then
3364      ac_sub_configure=$ac_configure
3365    else
3366      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
3367      ac_sub_configure=
3368    fi
3369
3370    # The recursion is here.
3371    if test -n "$ac_sub_configure"; then
3372
3373      # Make the cache file name correct relative to the subdirectory.
3374      case "$cache_file" in
3375      /*) ac_sub_cache_file=$cache_file ;;
3376      *) # Relative path.
3377        ac_sub_cache_file="$ac_dots$cache_file" ;;
3378      esac
3379  case "$ac_given_INSTALL" in
3380        [/$]*) INSTALL="$ac_given_INSTALL" ;;
3381        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3382        esac
3383
3384      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
3385      # The eval makes quoting arguments work.
3386      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
3387      then :
3388      else
3389        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
3390      fi
3391    fi
3392
3393    cd $ac_popdir
3394  done
3395fi
3396
Note: See TracBrowser for help on using the repository browser.