source: git/configure @ aac46c

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