source: git/configure @ 08b7a76

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