source: git/configure @ 9ead31

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