source: git/configure @ 9282f3

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