source: git/configure @ 03f074

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