source: git/configure @ 01c7a4

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