source: git/configure @ 5f0f19

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