source: git/configure @ c1cd11

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