source: git/configure @ e3663f1

spielwiese
Last change on this file since e3663f1 was 463f21c, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* increased version to 1.3.6 * Makefile changes git-svn-id: file:///usr/local/Singular/svn/trunk@3786 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 79.0 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 "rpm"; then
579   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/Makefile"
580   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" rpm/rpmrc rpm/Singular.spec"
581fi
582if test -d "modules"; then
583   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/Makefile"
584fi
585if test -d "modules/tools"; then
586   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" modules/tools/Makefile"
587fi
588if test -d "emacs"; then
589   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" emacs/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=6
621SINGULAR_SHORT_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}"
622SINGULAR_VERSION="${SINGULAR_SHORT_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
623VERSION_DATE="October 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 -d 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"
1087fi
1088
1089
1090# expand prefix and pass it to subsequent configures
1091if test "x$prefix" = xNONE; then
1092  prefix=${ac_default_prefix}
1093  ac_configure_args="$ac_configure_args --prefix=${prefix}"
1094fi
1095
1096# expand exec_prefix
1097if test "x$exec_prefix" = xNONE; then
1098 exec_prefix=${prefix}/${ac_cv_singuname}
1099 ac_configure_args="$ac_configure_args --exec_prefix=${exec_prefix}"
1100fi
1101
1102# expand bindir
1103if test "x$bindir" = 'x${exec_prefix}/bin'; then
1104  bindir="${exec_prefix}"
1105  ac_configure_args="$ac_configure_args --bindir=${bindir}"
1106fi
1107
1108# expand libdir
1109if test "x$libdir" = 'x${exec_prefix}/lib'; then
1110  libdir="${exec_prefix}/lib"
1111  ac_configure_args="$ac_configure_args --libdir=${libdir}"
1112fi
1113
1114# expand includedir
1115if test "x$includedir" = 'x${prefix}/include'; then
1116  includedir="${exec_prefix}/include"
1117  ac_configure_args="$ac_configure_args --includedir=${includedir}"
1118fi
1119
1120# construct name of installed Singular executable
1121SINGULAR=${bindir}/Singular-${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}
1122export SINGULAR
1123
1124
1125
1126# add -I to CPPFLAGS and -L to LDFLAGS, just to be sure
1127LDFLAGS="-L${libdir} ${LDFLAGS}"
1128CPPFLAGS="-I${includedir} ${CPPFLAGS}"
1129
1130# check for AIX
1131echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
1132echo "configure:1133: checking whether _AIX is defined" >&5
1133if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
1134  echo $ac_n "(cached) $ac_c" 1>&6
1135else
1136  cat > conftest.$ac_ext <<EOF
1137#line 1138 "configure"
1138#include "confdefs.h"
1139#ifdef _AIX
1140    yes
1141#endif
1142
1143EOF
1144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1145  egrep "yes" >/dev/null 2>&1; then
1146  rm -rf conftest*
1147  ac_cv_is_aix=yes
1148else
1149  rm -rf conftest*
1150  ac_cv_is_aix=no
1151fi
1152rm -f conftest*
1153
1154fi
1155
1156if test "$ac_cv_is_aix" = yes; then
1157  echo "$ac_t""yes" 1>&6
1158else
1159  echo "$ac_t""no" 1>&6
1160fi
1161
1162echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
1163echo "configure:1164: checking for atof in -lm" >&5
1164ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
1165if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1166  echo $ac_n "(cached) $ac_c" 1>&6
1167else
1168  ac_save_LIBS="$LIBS"
1169LIBS="-lm  $LIBS"
1170cat > conftest.$ac_ext <<EOF
1171#line 1172 "configure"
1172#include "confdefs.h"
1173/* Override any gcc2 internal prototype to avoid an error.  */
1174/* We use char because int might match the return type of a gcc2
1175    builtin and then its argument prototype would still apply.  */
1176char atof();
1177
1178int main() {
1179atof()
1180; return 0; }
1181EOF
1182if { (eval echo configure:1183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1183  rm -rf conftest*
1184  eval "ac_cv_lib_$ac_lib_var=yes"
1185else
1186  echo "configure: failed program was:" >&5
1187  cat conftest.$ac_ext >&5
1188  rm -rf conftest*
1189  eval "ac_cv_lib_$ac_lib_var=no"
1190fi
1191rm -f conftest*
1192LIBS="$ac_save_LIBS"
1193
1194fi
1195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1196  echo "$ac_t""yes" 1>&6
1197    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1198    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1199  cat >> confdefs.h <<EOF
1200#define $ac_tr_lib 1
1201EOF
1202
1203  LIBS="-lm $LIBS"
1204
1205else
1206  echo "$ac_t""no" 1>&6
1207fi
1208
1209echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
1210echo "configure:1211: checking for socket in -lbsd" >&5
1211ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
1212if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1213  echo $ac_n "(cached) $ac_c" 1>&6
1214else
1215  ac_save_LIBS="$LIBS"
1216LIBS="-lbsd  $LIBS"
1217cat > conftest.$ac_ext <<EOF
1218#line 1219 "configure"
1219#include "confdefs.h"
1220/* Override any gcc2 internal prototype to avoid an error.  */
1221/* We use char because int might match the return type of a gcc2
1222    builtin and then its argument prototype would still apply.  */
1223char socket();
1224
1225int main() {
1226socket()
1227; return 0; }
1228EOF
1229if { (eval echo configure:1230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1230  rm -rf conftest*
1231  eval "ac_cv_lib_$ac_lib_var=yes"
1232else
1233  echo "configure: failed program was:" >&5
1234  cat conftest.$ac_ext >&5
1235  rm -rf conftest*
1236  eval "ac_cv_lib_$ac_lib_var=no"
1237fi
1238rm -f conftest*
1239LIBS="$ac_save_LIBS"
1240
1241fi
1242if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1243  echo "$ac_t""yes" 1>&6
1244    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1245    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1246  cat >> confdefs.h <<EOF
1247#define $ac_tr_lib 1
1248EOF
1249
1250  LIBS="-lbsd $LIBS"
1251
1252else
1253  echo "$ac_t""no" 1>&6
1254fi
1255
1256echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
1257echo "configure:1258: checking for listen in -lsocket" >&5
1258ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
1259if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1260  echo $ac_n "(cached) $ac_c" 1>&6
1261else
1262  ac_save_LIBS="$LIBS"
1263LIBS="-lsocket  $LIBS"
1264cat > conftest.$ac_ext <<EOF
1265#line 1266 "configure"
1266#include "confdefs.h"
1267/* Override any gcc2 internal prototype to avoid an error.  */
1268/* We use char because int might match the return type of a gcc2
1269    builtin and then its argument prototype would still apply.  */
1270char listen();
1271
1272int main() {
1273listen()
1274; return 0; }
1275EOF
1276if { (eval echo configure:1277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1277  rm -rf conftest*
1278  eval "ac_cv_lib_$ac_lib_var=yes"
1279else
1280  echo "configure: failed program was:" >&5
1281  cat conftest.$ac_ext >&5
1282  rm -rf conftest*
1283  eval "ac_cv_lib_$ac_lib_var=no"
1284fi
1285rm -f conftest*
1286LIBS="$ac_save_LIBS"
1287
1288fi
1289if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1290  echo "$ac_t""yes" 1>&6
1291    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1292    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1293  cat >> confdefs.h <<EOF
1294#define $ac_tr_lib 1
1295EOF
1296
1297  LIBS="-lsocket $LIBS"
1298
1299else
1300  echo "$ac_t""no" 1>&6
1301fi
1302
1303echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1304echo "configure:1305: checking for gethostbyname in -lnsl" >&5
1305ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1307  echo $ac_n "(cached) $ac_c" 1>&6
1308else
1309  ac_save_LIBS="$LIBS"
1310LIBS="-lnsl  $LIBS"
1311cat > conftest.$ac_ext <<EOF
1312#line 1313 "configure"
1313#include "confdefs.h"
1314/* Override any gcc2 internal prototype to avoid an error.  */
1315/* We use char because int might match the return type of a gcc2
1316    builtin and then its argument prototype would still apply.  */
1317char gethostbyname();
1318
1319int main() {
1320gethostbyname()
1321; return 0; }
1322EOF
1323if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324  rm -rf conftest*
1325  eval "ac_cv_lib_$ac_lib_var=yes"
1326else
1327  echo "configure: failed program was:" >&5
1328  cat conftest.$ac_ext >&5
1329  rm -rf conftest*
1330  eval "ac_cv_lib_$ac_lib_var=no"
1331fi
1332rm -f conftest*
1333LIBS="$ac_save_LIBS"
1334
1335fi
1336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337  echo "$ac_t""yes" 1>&6
1338    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1339    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1340  cat >> confdefs.h <<EOF
1341#define $ac_tr_lib 1
1342EOF
1343
1344  LIBS="-lnsl $LIBS"
1345
1346else
1347  echo "$ac_t""no" 1>&6
1348fi
1349
1350echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
1351echo "configure:1352: checking for mpq_init in -lgmp" >&5
1352ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
1353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354  echo $ac_n "(cached) $ac_c" 1>&6
1355else
1356  ac_save_LIBS="$LIBS"
1357LIBS="-lgmp  $LIBS"
1358cat > conftest.$ac_ext <<EOF
1359#line 1360 "configure"
1360#include "confdefs.h"
1361/* Override any gcc2 internal prototype to avoid an error.  */
1362/* We use char because int might match the return type of a gcc2
1363    builtin and then its argument prototype would still apply.  */
1364char mpq_init();
1365
1366int main() {
1367mpq_init()
1368; return 0; }
1369EOF
1370if { (eval echo configure:1371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1371  rm -rf conftest*
1372  eval "ac_cv_lib_$ac_lib_var=yes"
1373else
1374  echo "configure: failed program was:" >&5
1375  cat conftest.$ac_ext >&5
1376  rm -rf conftest*
1377  eval "ac_cv_lib_$ac_lib_var=no"
1378fi
1379rm -f conftest*
1380LIBS="$ac_save_LIBS"
1381
1382fi
1383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1384  echo "$ac_t""yes" 1>&6
1385    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1386    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1387  cat >> confdefs.h <<EOF
1388#define $ac_tr_lib 1
1389EOF
1390
1391  LIBS="-lgmp $LIBS"
1392
1393else
1394  echo "$ac_t""no" 1>&6
1395fi
1396
1397echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
1398echo "configure:1399: checking for mpz_init in -lsmallgmp" >&5
1399ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
1400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1401  echo $ac_n "(cached) $ac_c" 1>&6
1402else
1403  ac_save_LIBS="$LIBS"
1404LIBS="-lsmallgmp  $LIBS"
1405cat > conftest.$ac_ext <<EOF
1406#line 1407 "configure"
1407#include "confdefs.h"
1408/* Override any gcc2 internal prototype to avoid an error.  */
1409/* We use char because int might match the return type of a gcc2
1410    builtin and then its argument prototype would still apply.  */
1411char mpz_init();
1412
1413int main() {
1414mpz_init()
1415; return 0; }
1416EOF
1417if { (eval echo configure:1418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1418  rm -rf conftest*
1419  eval "ac_cv_lib_$ac_lib_var=yes"
1420else
1421  echo "configure: failed program was:" >&5
1422  cat conftest.$ac_ext >&5
1423  rm -rf conftest*
1424  eval "ac_cv_lib_$ac_lib_var=no"
1425fi
1426rm -f conftest*
1427LIBS="$ac_save_LIBS"
1428
1429fi
1430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1431  echo "$ac_t""yes" 1>&6
1432    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1433    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1434  cat >> confdefs.h <<EOF
1435#define $ac_tr_lib 1
1436EOF
1437
1438  LIBS="-lsmallgmp $LIBS"
1439
1440else
1441  echo "$ac_t""no" 1>&6
1442fi
1443
1444echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
1445echo "configure:1446: checking for IMP_PutGmpInt in -lMP" >&5
1446ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
1447if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1448  echo $ac_n "(cached) $ac_c" 1>&6
1449else
1450  ac_save_LIBS="$LIBS"
1451LIBS="-lMP  $LIBS"
1452cat > conftest.$ac_ext <<EOF
1453#line 1454 "configure"
1454#include "confdefs.h"
1455/* Override any gcc2 internal prototype to avoid an error.  */
1456/* We use char because int might match the return type of a gcc2
1457    builtin and then its argument prototype would still apply.  */
1458char IMP_PutGmpInt();
1459
1460int main() {
1461IMP_PutGmpInt()
1462; return 0; }
1463EOF
1464if { (eval echo configure:1465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1465  rm -rf conftest*
1466  eval "ac_cv_lib_$ac_lib_var=yes"
1467else
1468  echo "configure: failed program was:" >&5
1469  cat conftest.$ac_ext >&5
1470  rm -rf conftest*
1471  eval "ac_cv_lib_$ac_lib_var=no"
1472fi
1473rm -f conftest*
1474LIBS="$ac_save_LIBS"
1475
1476fi
1477if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1478  echo "$ac_t""yes" 1>&6
1479    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1480    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1481  cat >> confdefs.h <<EOF
1482#define $ac_tr_lib 1
1483EOF
1484
1485  LIBS="-lMP $LIBS"
1486
1487else
1488  echo "$ac_t""no" 1>&6
1489fi
1490
1491echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
1492echo "configure:1493: checking for MPT_GetTree in -lMPT" >&5
1493ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
1494if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1495  echo $ac_n "(cached) $ac_c" 1>&6
1496else
1497  ac_save_LIBS="$LIBS"
1498LIBS="-lMPT  $LIBS"
1499cat > conftest.$ac_ext <<EOF
1500#line 1501 "configure"
1501#include "confdefs.h"
1502/* Override any gcc2 internal prototype to avoid an error.  */
1503/* We use char because int might match the return type of a gcc2
1504    builtin and then its argument prototype would still apply.  */
1505char MPT_GetTree();
1506
1507int main() {
1508MPT_GetTree()
1509; return 0; }
1510EOF
1511if { (eval echo configure:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1512  rm -rf conftest*
1513  eval "ac_cv_lib_$ac_lib_var=yes"
1514else
1515  echo "configure: failed program was:" >&5
1516  cat conftest.$ac_ext >&5
1517  rm -rf conftest*
1518  eval "ac_cv_lib_$ac_lib_var=no"
1519fi
1520rm -f conftest*
1521LIBS="$ac_save_LIBS"
1522
1523fi
1524if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1525  echo "$ac_t""yes" 1>&6
1526    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1527    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1528  cat >> confdefs.h <<EOF
1529#define $ac_tr_lib 1
1530EOF
1531
1532  LIBS="-lMPT $LIBS"
1533
1534else
1535  echo "$ac_t""no" 1>&6
1536fi
1537
1538echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
1539echo "configure:1540: checking for atof in -lsingcf" >&5
1540ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
1541if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1542  echo $ac_n "(cached) $ac_c" 1>&6
1543else
1544  ac_save_LIBS="$LIBS"
1545LIBS="-lsingcf  $LIBS"
1546cat > conftest.$ac_ext <<EOF
1547#line 1548 "configure"
1548#include "confdefs.h"
1549/* Override any gcc2 internal prototype to avoid an error.  */
1550/* We use char because int might match the return type of a gcc2
1551    builtin and then its argument prototype would still apply.  */
1552char atof();
1553
1554int main() {
1555atof()
1556; return 0; }
1557EOF
1558if { (eval echo configure:1559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559  rm -rf conftest*
1560  eval "ac_cv_lib_$ac_lib_var=yes"
1561else
1562  echo "configure: failed program was:" >&5
1563  cat conftest.$ac_ext >&5
1564  rm -rf conftest*
1565  eval "ac_cv_lib_$ac_lib_var=no"
1566fi
1567rm -f conftest*
1568LIBS="$ac_save_LIBS"
1569
1570fi
1571if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1572  echo "$ac_t""yes" 1>&6
1573    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1574    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1575  cat >> confdefs.h <<EOF
1576#define $ac_tr_lib 1
1577EOF
1578
1579  LIBS="-lsingcf $LIBS"
1580
1581else
1582  echo "$ac_t""no" 1>&6
1583fi
1584
1585echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
1586echo "configure:1587: checking for atof in -lsingfac" >&5
1587ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
1588if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1589  echo $ac_n "(cached) $ac_c" 1>&6
1590else
1591  ac_save_LIBS="$LIBS"
1592LIBS="-lsingfac  $LIBS"
1593cat > conftest.$ac_ext <<EOF
1594#line 1595 "configure"
1595#include "confdefs.h"
1596/* Override any gcc2 internal prototype to avoid an error.  */
1597/* We use char because int might match the return type of a gcc2
1598    builtin and then its argument prototype would still apply.  */
1599char atof();
1600
1601int main() {
1602atof()
1603; return 0; }
1604EOF
1605if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1606  rm -rf conftest*
1607  eval "ac_cv_lib_$ac_lib_var=yes"
1608else
1609  echo "configure: failed program was:" >&5
1610  cat conftest.$ac_ext >&5
1611  rm -rf conftest*
1612  eval "ac_cv_lib_$ac_lib_var=no"
1613fi
1614rm -f conftest*
1615LIBS="$ac_save_LIBS"
1616
1617fi
1618if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1619  echo "$ac_t""yes" 1>&6
1620    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1621    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1622  cat >> confdefs.h <<EOF
1623#define $ac_tr_lib 1
1624EOF
1625
1626  LIBS="-lsingfac $LIBS"
1627
1628else
1629  echo "$ac_t""no" 1>&6
1630fi
1631
1632
1633for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
1634do
1635ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1636echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1637echo "configure:1638: checking for $ac_hdr" >&5
1638if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1639  echo $ac_n "(cached) $ac_c" 1>&6
1640else
1641  cat > conftest.$ac_ext <<EOF
1642#line 1643 "configure"
1643#include "confdefs.h"
1644#include <$ac_hdr>
1645EOF
1646ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1647{ (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1648ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1649if test -z "$ac_err"; then
1650  rm -rf conftest*
1651  eval "ac_cv_header_$ac_safe=yes"
1652else
1653  echo "$ac_err" >&5
1654  echo "configure: failed program was:" >&5
1655  cat conftest.$ac_ext >&5
1656  rm -rf conftest*
1657  eval "ac_cv_header_$ac_safe=no"
1658fi
1659rm -f conftest*
1660fi
1661if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1662  echo "$ac_t""yes" 1>&6
1663    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1664  cat >> confdefs.h <<EOF
1665#define $ac_tr_hdr 1
1666EOF
1667 
1668else
1669  echo "$ac_t""no" 1>&6
1670fi
1671done
1672
1673
1674if test "$ac_cv_lib_gmp_mpq_init" = yes && \
1675 test "$ac_cv_header_gmp_h" = yes; then
1676  ac_gmp_ok=yes
1677fi
1678
1679if test "$ac_cv_lib_smallgmp_mpz_init" = yes && \
1680 test "$ac_cv_header_smallgmp_h" = yes && \
1681 test "$ac_cv_header_gmp_h" = yes; then
1682  ac_smallgmp_ok=yes
1683fi
1684
1685if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1686 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1687 test "$ac_cv_header_MP_h" = yes && \
1688 test "$ac_cv_header_MPT_h" = yes; then
1689  ac_MP_ok=yes
1690fi
1691
1692if test "$ac_cv_lib_singcf_atof" = yes && \
1693 test "$ac_cv_header_factory_h" = yes; then
1694  ac_factory_ok=yes
1695fi
1696
1697if test "$ac_cv_lib_singfac_atof" = yes && \
1698 test "$ac_cv_header_factor_h" = yes; then
1699  ac_libfac_ok=yes
1700fi
1701
1702 
1703# Check whether --with-tmpdir or --without-tmpdir was given.
1704if test "${with_tmpdir+set}" = set; then
1705  withval="$with_tmpdir"
1706  :
1707fi
1708
1709# Check whether --with-perl5 or --without-perl5 was given.
1710if test "${with_perl5+set}" = set; then
1711  withval="$with_perl5"
1712  :
1713fi
1714
1715# Check whether --enable-smallgmp or --disable-smallgmp was given.
1716if test "${enable_smallgmp+set}" = set; then
1717  enableval="$enable_smallgmp"
1718  :
1719fi
1720
1721# Check whether --enable-gmp or --disable-gmp was given.
1722if test "${enable_gmp+set}" = set; then
1723  enableval="$enable_gmp"
1724  :
1725fi
1726
1727# Check whether --enable-MP or --disable-MP was given.
1728if test "${enable_MP+set}" = set; then
1729  enableval="$enable_MP"
1730  :
1731fi
1732
1733# Check whether --enable-factory or --disable-factory was given.
1734if test "${enable_factory+set}" = set; then
1735  enableval="$enable_factory"
1736  :
1737fi
1738
1739# Check whether --enable-libfac or --disable-libfac was given.
1740if test "${enable_libfac+set}" = set; then
1741  enableval="$enable_libfac"
1742  :
1743fi
1744
1745# Check whether --enable-sgroup or --disable-sgroup was given.
1746if test "${enable_sgroup+set}" = set; then
1747  enableval="$enable_sgroup"
1748  :
1749fi
1750
1751# Check whether --enable-Singular or --disable-Singular was given.
1752if test "${enable_Singular+set}" = set; then
1753  enableval="$enable_Singular"
1754  :
1755fi
1756
1757# Check whether --enable-Texinfo or --disable-Texinfo was given.
1758if test "${enable_Texinfo+set}" = set; then
1759  enableval="$enable_Texinfo"
1760  :
1761fi
1762
1763# Check whether --with-MP or --without-MP was given.
1764if test "${with_MP+set}" = set; then
1765  withval="$with_MP"
1766  :
1767fi
1768
1769# Check whether --with-factory or --without-factory was given.
1770if test "${with_factory+set}" = set; then
1771  withval="$with_factory"
1772  :
1773fi
1774
1775# Check whether --with-libfac or --without-libfac was given.
1776if test "${with_libfac+set}" = set; then
1777  withval="$with_libfac"
1778  :
1779fi
1780
1781# Check whether --with-gmp or --without-gmp was given.
1782if test "${with_gmp+set}" = set; then
1783  withval="$with_gmp"
1784  :
1785fi
1786
1787
1788echo $ac_n "checking which tmp dir to use""... $ac_c" 1>&6
1789echo "configure:1790: checking which tmp dir to use" >&5
1790if test "${with_tmpdir+set}" = set && test -d ${with_tmpdir}; then
1791  if (echo "${with_tmpdir}" | egrep "\." >/dev/null 2>&1)
1792  then
1793    TMP_DIR="/tmp"
1794  else
1795    TMP_DIR=${with_tmpdir}
1796  fi
1797else
1798  TMP_DIR="/tmp"
1799fi
1800echo "$ac_t""$TMP_DIR" 1>&6
1801
1802
1803# perl version 5
1804if test "${with_perl5+set}" != set; then
1805  echo $ac_n "checking for perl5""... $ac_c" 1>&6
1806echo "configure:1807: checking for perl5" >&5
1807    if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
1808  echo $ac_n "(cached) $ac_c" 1>&6
1809else
1810  if (perl5 -v >/dev/null 2>&1)
1811  then
1812   if (perl5 -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
1813    then
1814    ac_cv_prog_perl5=perl5
1815   fi
1816  elif (perl -v >/dev/null 2>&1)
1817  then
1818    if (perl -v | egrep "version 5\.[0-9]" >/dev/null 2>&1 )
1819    then
1820      ac_cv_prog_perl5=perl
1821    fi
1822  fi
1823 
1824fi
1825
1826    if test "${ac_cv_prog_perl5+set}" = set; then
1827    echo "$ac_t""${ac_cv_prog_perl5}" 1>&6
1828    PERL5=${ac_cv_prog_perl5}
1829   
1830  else
1831    { echo "configure: error: can not find perl version 5" 1>&2; exit 1; }
1832  fi
1833elif test "${with_perl5}" = no; then
1834  echo "configure: warning: building without perl5 --  make might fail" 1>&2
1835else
1836  unset PERL5
1837  unset ac_cv_prog_PERL5
1838  for ac_prog in ${with_perl5}
1839do
1840# Extract the first word of "$ac_prog", so it can be a program name with args.
1841set dummy $ac_prog; ac_word=$2
1842echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1843echo "configure:1844: checking for $ac_word" >&5
1844if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
1845  echo $ac_n "(cached) $ac_c" 1>&6
1846else
1847  if test -n "$PERL5"; then
1848  ac_cv_prog_PERL5="$PERL5" # Let the user override the test.
1849else
1850  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1851  ac_dummy="$PATH"
1852  for ac_dir in $ac_dummy; do
1853    test -z "$ac_dir" && ac_dir=.
1854    if test -f $ac_dir/$ac_word; then
1855      ac_cv_prog_PERL5="$ac_prog"
1856      break
1857    fi
1858  done
1859  IFS="$ac_save_ifs"
1860fi
1861fi
1862PERL5="$ac_cv_prog_PERL5"
1863if test -n "$PERL5"; then
1864  echo "$ac_t""$PERL5" 1>&6
1865else
1866  echo "$ac_t""no" 1>&6
1867fi
1868
1869test -n "$PERL5" && break
1870done
1871
1872  if test "x${PERL5}" = x; then
1873    echo "configure: warning: building without perl5 -- make might fail" 1>&2
1874  fi
1875fi
1876
1877
1878echo $ac_n "checking whether to configure and build texinfo""... $ac_c" 1>&6
1879echo "configure:1880: checking whether to configure and build texinfo" >&5
1880if test "$enable_texinfo" != no && test -d Texinfo; then
1881  echo "$ac_t""yes" 1>&6
1882  enable_texinfo=yes
1883  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Texinfo"
1884  TEXI2DVI=${bindir}/texi2dvi
1885  MAKEINFO="${bindir}/makeinfo --force"
1886  TEXINDEX=${bindir}/texindex
1887else
1888  echo "$ac_t""no" 1>&6
1889  echo "configure: warning: Building of doc might fail. Need Texinfo" 1>&2
1890  enable_texinfo=no
1891  TEXI2DVI=texi2dvi
1892  MAKEINFO=makeinfo
1893  TEXINDEX=${bindir}/texindex
1894fi 
1895
1896
1897
1898
1899
1900echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1901echo "configure:1902: checking whether to configure and build gmp lib" >&5
1902if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1903  if test "$ac_gmp_ok" != yes && test -d gmp; then
1904    echo "$ac_t""yes" 1>&6
1905    enable_gmp=yes
1906    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1907    ac_configure_args="$ac_configure_args --enable-gmp"
1908    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1909  else
1910    echo "$ac_t""no" 1>&6
1911    enable_gmp=no
1912  fi
1913elif test "$enable_gmp" = yes; then
1914  if test ! -d gmp; then
1915    echo "$ac_t""no" 1>&6
1916    { echo "configure: error: Can not find gmp subdir" 1>&2; exit 1; }
1917  else
1918    echo "$ac_t""yes" 1>&6
1919    CONFIG_SUBDIRS="$CONFIG_SUBDIRS gmp"
1920    OUTPUT_MAKEFILES="$OUTPUT_MAKEFILES gmp/Makefile.in"
1921  fi
1922else
1923  echo "$ac_t""no" 1>&6
1924fi
1925
1926echo $ac_n "checking whether to configure and build smallgmp lib""... $ac_c" 1>&6
1927echo "configure:1928: checking whether to configure and build smallgmp lib" >&5
1928if test "$enable_smallgmp" != yes && test "$enable_smallgmp" != no; then
1929  if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1930     test "$enable_gmp" != yes && test -d smallgmp; then
1931    echo "$ac_t""yes" 1>&6
1932    enable_smallgmp=yes
1933    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1934    ac_configure_args="$ac_configure_args --enable-smallgmp --enable-gmp"
1935  else
1936    echo "$ac_t""no" 1>&6
1937    enable_smallgmp=no
1938  fi
1939elif test "$enable_smallgmp" = yes; then
1940  if test ! -d smallgmp; then
1941    echo "$ac_t""no" 1>&6
1942    { echo "configure: error: Can not find smallgmp subdir" 1>&2; exit 1; }
1943  else
1944    echo "$ac_t""yes" 1>&6
1945    CONFIG_SUBDIRS="$CONFIG_SUBDIRS smallgmp"
1946    if test "$ac_gmp_ok" != yes && test "$enable_gmp" != yes; then
1947      ac_configure_args="$ac_configure_args --enable-gmp"
1948    fi
1949  fi
1950else
1951  echo "$ac_t""${enable_smallgmp}" 1>&6
1952fi
1953
1954# Check whether we have at least one of smallgmp or gmp
1955if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes && \
1956   test "$enable_smallgmp" != yes && test "$enable_gmp" != yes; then
1957  { echo "configure: error: can neither find nor built gmp or smallgmp" 1>&2; exit 1; }
1958fi
1959
1960# Check whether we need to cheat subsequent configures with --enable-gmp
1961if test "$ac_smallgmp_ok" != yes && test "$ac_gmp_ok" != yes; then
1962  ac_configure_args="$ac_configure_args --enable-gmp"
1963fi
1964
1965echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1966echo "configure:1967: checking whether to configure and build MP lib" >&5
1967if test "$enable_MP" != yes && test "$enable_MP" != no; then
1968  if test "$with_MP" != no && test "$ac_MP_ok" != yes && test -d MP && \
1969     (test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes); then
1970    echo "$ac_t""yes" 1>&6
1971    enable_MP=yes
1972    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1973    ac_configure_args="$ac_configure_args --enable-MP"
1974  else
1975    echo "$ac_t""no" 1>&6
1976    enable_MP=no
1977  fi
1978elif test "$enable_MP" = yes; then
1979  if test ! -d MP; then
1980    echo "$ac_t""no" 1>&6
1981    { echo "configure: error: can not build MP without MP directory" 1>&2; exit 1; }
1982  fi
1983  if test "$enable_gmp" = yes || test "$ac_gmp_ok" = yes; then
1984    echo "$ac_t""yes" 1>&6
1985    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1986  else
1987    echo "$ac_t""no" 1>&6
1988    { echo "configure: error: can not build MP without gmp" 1>&2; exit 1; }
1989  fi
1990else
1991  echo "$ac_t""no" 1>&6
1992fi
1993 
1994echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1995echo "configure:1996: checking whether to configure and build factory lib" >&5
1996if test "$enable_factory" != yes && test "$enable_factory" != no; then
1997  if test "$with_factory" != no && test "$ac_factory_ok" != yes && \
1998     test -d factory; then
1999    enable_factory=yes
2000    echo "$ac_t""yes" 1>&6
2001    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2002    ac_configure_args="$ac_configure_args --enable-factory"
2003  else
2004    enable_factory=no
2005    echo "$ac_t""no" 1>&6
2006  fi
2007elif test "$enable_factory" = yes; then
2008  if test -d factory; then
2009    echo "$ac_t""yes" 1>&6
2010    CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
2011  else
2012    echo "$ac_t""no" 1>&6
2013    { echo "configure: error: can not build factory without factory directory" 1>&2; exit 1; }
2014  fi
2015else
2016  echo "$ac_t""no" 1>&6
2017fi
2018
2019echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
2020echo "configure:2021: checking whether to configure and build libfac lib" >&5
2021if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
2022  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes && \
2023     test -d libfac && \
2024     (test "$ac_factory_ok" = yes || test "$enable_factory" = yes); then
2025    enable_libfac=yes
2026    echo "$ac_t""yes" 1>&6
2027    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2028    ac_configure_args="$ac_configure_args --enable-libfac"
2029  else
2030    enable_libfac=no
2031    echo "$ac_t""no" 1>&6
2032  fi
2033elif  test "$enable_libfac" = yes; then
2034  if test ! -d libfac; then
2035    echo "$ac_t""no" 1>&6
2036    { echo "configure: error: can not build libfac without libfac directory" 1>&2; exit 1; }
2037  fi
2038  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2039    echo "$ac_t""yes" 1>&6
2040    CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
2041  else
2042    echo "$ac_t""no" 1>&6
2043    { echo "configure: error: Can not build libfac without factory" 1>&2; exit 1; }
2044  fi
2045else
2046  echo "$ac_t""no" 1>&6
2047fi
2048
2049echo $ac_n "checking whether to configure and build sgroup lib""... $ac_c" 1>&6
2050echo "configure:2051: checking whether to configure and build sgroup lib" >&5
2051if test "$enable_sgroup" != yes && test "$enable_sgroup" != no; then
2052  if test "$with_sgroup" != no && test "$ac_sgroup_ok" != yes && \
2053     test -d sgroup && \
2054     (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then
2055    enable_sgroup=yes
2056    echo "$ac_t""yes" 1>&6
2057    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
2058    ac_configure_args="$ac_configure_args --enable-sgroup"
2059  else
2060    enable_sgroup=no
2061    echo "$ac_t""no" 1>&6
2062  fi
2063elif  test "$enable_sgroup" = yes; then
2064  if test ! -d sgroup; then
2065    echo "$ac_t""no" 1>&6
2066    { echo "configure: error: can not build sgroup without sgroup directory" 1>&2; exit 1; }
2067  fi
2068  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2069    echo "$ac_t""yes" 1>&6
2070    CONFIG_SUBDIRS="$CONFIG_SUBDIRS sgroup"
2071  else
2072    echo "$ac_t""no" 1>&6
2073    { echo "configure: error: Can not build sgroup without MP" 1>&2; exit 1; }
2074  fi
2075else
2076  echo "$ac_t""no" 1>&6
2077fi
2078
2079echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
2080echo "configure:2081: checking whether to configure and build Singular" >&5
2081if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
2082  if test "$with_Singular" != no && test -d Singular; then
2083    enable_Singular=yes
2084    echo "$ac_t""yes" 1>&6
2085    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2086    ac_configure_args="$ac_configure_args --enable-Singular"
2087  else
2088    enable_Singular=no
2089    echo "$ac_t""no" 1>&6
2090  fi
2091elif test "$enable_Singular" = yes; then
2092  if test -d Singular; then
2093    echo "$ac_t""yes" 1>&6
2094    CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
2095  else
2096    echo "$ac_t""no" 1>&6
2097    { echo "configure: error: can not build Singular without Singular directory" 1>&2; exit 1; }
2098  fi
2099else
2100  echo "$ac_t""no" 1>&6
2101fi
2102
2103
2104echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
2105echo "configure:2106: checking which apint package to use" >&5
2106if test "$with_apint" = gmp; then
2107  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
2108    echo "$ac_t""gmp" 1>&6
2109  else
2110    echo "$ac_t""none" 1>&6
2111    { echo "configure: error: can not use with gmp without finding or building it" 1>&2; exit 1; }
2112  fi
2113elif test "$with_apint" = smallgmp; then
2114  if test "$ac_smallgmp_ok" = yes || test "$enable_smallgmp" = yes; then
2115    echo "$ac_t""smallgmp" 1>&6
2116  else
2117    echo "$ac_t""none" 1>&6
2118    { echo "configure: error: can not use with smallgmp without finding or building it" 1>&2; exit 1; }
2119  fi
2120elif test "$ac_gmp_ok" = yes || test "$enable_gmp"; then
2121    echo "$ac_t""gmp" 1>&6
2122    ac_configure_args="$ac_configure_args --with-apint=gmp"
2123else
2124   echo "$ac_t""smallgmp" 1>&6
2125   ac_configure_args="$ac_configure_args --with-apint=smallgmp"
2126fi
2127
2128echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
2129echo "configure:2130: checking whether to use with MP" >&5
2130if test "$with_MP" = yes; then
2131  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2132    echo "$ac_t""yes" 1>&6
2133  else
2134    echo "$ac_t""none" 1>&6
2135    { echo "configure: error: can not use with MP without finding or building it" 1>&2; exit 1; }
2136  fi
2137elif test "$with_MP" = no; then
2138  echo "$ac_t""no" 1>&6
2139elif test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
2140  echo "$ac_t""yes" 1>&6
2141  ac_configure_args="$ac_configure_args --with-MP"
2142else
2143  echo "$ac_t""no" 1>&6
2144  ac_configure_args="$ac_configure_args --without-MP"
2145fi
2146
2147echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
2148echo "configure:2149: checking whether to use with factory" >&5
2149if test "$with_factory" = yes; then
2150  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2151    echo "$ac_t""yes" 1>&6
2152  else
2153    echo "$ac_t""none" 1>&6
2154    { echo "configure: error: can not use with factory without finding or building it" 1>&2; exit 1; }
2155  fi
2156elif test "$with_factory" = no; then
2157  echo "$ac_t""no" 1>&6
2158elif test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
2159  echo "$ac_t""yes" 1>&6
2160  ac_configure_args="$ac_configure_args --with-factory"
2161else
2162  echo "$ac_t""no" 1>&6
2163  ac_configure_args="$ac_configure_args --without-factory"
2164fi
2165 
2166echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
2167echo "configure:2168: checking whether to use with libfac" >&5
2168if test "$with_libfac" = yes; then
2169  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2170    echo "$ac_t""yes" 1>&6
2171  else
2172    echo "$ac_t""none" 1>&6
2173    { echo "configure: error: can not use with libfac without finding or building it" 1>&2; exit 1; }
2174  fi
2175elif test "$with_libfac" = no; then
2176  echo "$ac_t""no" 1>&6
2177elif test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
2178  echo "$ac_t""yes" 1>&6
2179  ac_configure_args="$ac_configure_args --with-libfac"
2180else
2181  echo "$ac_t""no" 1>&6
2182  ac_configure_args="$ac_configure_args --without-libfac"
2183fi
2184
2185echo $ac_n "checking whether to use mtrack""... $ac_c" 1>&6
2186echo "configure:2187: checking whether to use mtrack" >&5
2187if test -d mpr && test "$ac_cv_singuname" = ix86-Linux; then
2188   echo "$ac_t""yes" 1>&6
2189   ac_configure_args="$ac_configure_args --with-mtrack"
2190   OUTPUT_MAKEFILES=$OUTPUT_MAKEFILES" mpr/Makefile"
2191   BUILD_SUBDIRS="$BUILD_SUBDIRS mpr"
2192fi
2193
2194echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
2195echo "configure:2196: checking whether to use with Singular" >&5
2196if test "$with_Singular" != no && test "$with_Singular" != yes; then
2197  if test "$enable_Singular" = yes; then
2198    with_Singular=yes
2199  else
2200    with_Singular=no
2201  fi
2202  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
2203fi
2204
2205if test "$with_Singular" != no; then
2206  echo "$ac_t""yes" 1>&6
2207else
2208  echo "$ac_t""no" 1>&6
2209fi
2210
2211
2212SUBDIRS=""
2213if test -d doc; then
2214  SUBDIRS="$SUBDIRS doc"
2215fi
2216if test -d smallgmp; then
2217  SUBDIRS="$SUBDIRS smallgmp"
2218fi
2219if test -d gmp; then
2220  SUBDIRS="$SUBDIRS gmp"
2221fi
2222if test -d MP; then
2223  SUBDIRS="$SUBDIRS MP"
2224fi
2225if test -d factory; then
2226  SUBDIRS="$SUBDIRS factory"
2227fi
2228if test -d libfac; then
2229  SUBDIRS="$SUBDIRS libfac"
2230fi
2231if test -d rpm; then
2232  SUBDIRS="$SUBDIRS rpm"
2233fi
2234if test -d mpr; then
2235  SUBDIRS="$SUBDIRS mpr"
2236fi
2237if test -d Singular; then
2238  SUBDIRS="$SUBDIRS Singular"
2239fi
2240if test -d emacs; then
2241  SUBDIRS="$SUBDIRS emacs"
2242  BUILD_SUBDIRS="$BUILD_SUBDIRS emacs"
2243fi
2244if test -d Texi2html; then
2245  SUBDIRS="$SUBDIRS Texi2html"
2246  BUILD_SUBDIRS="$BUILD_SUBDIRS Texi2html"
2247fi
2248if test -d sgroup; then
2249  SUBDIRS="$SUBDIRS sgroup"
2250fi
2251 
2252
2253echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2254echo "configure:2255: checking whether ${MAKE-make} sets \${MAKE}" >&5
2255set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2256if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2257  echo $ac_n "(cached) $ac_c" 1>&6
2258else
2259  cat > conftestmake <<\EOF
2260all:
2261        @echo 'ac_maketemp="${MAKE}"'
2262EOF
2263# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2264eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2265if test -n "$ac_maketemp"; then
2266  eval ac_cv_prog_make_${ac_make}_set=yes
2267else
2268  eval ac_cv_prog_make_${ac_make}_set=no
2269fi
2270rm -f conftestmake
2271fi
2272if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2273  echo "$ac_t""yes" 1>&6
2274  SET_MAKE=
2275else
2276  echo "$ac_t""no" 1>&6
2277  SET_MAKE="MAKE=${MAKE-make}"
2278fi
2279
2280
2281
2282
2283ac_aux_dir=
2284for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2285  if test -f $ac_dir/install-sh; then
2286    ac_aux_dir=$ac_dir
2287    ac_install_sh="$ac_aux_dir/install-sh -c"
2288    break
2289  elif test -f $ac_dir/install.sh; then
2290    ac_aux_dir=$ac_dir
2291    ac_install_sh="$ac_aux_dir/install.sh -c"
2292    break
2293  fi
2294done
2295if test -z "$ac_aux_dir"; then
2296  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2297fi
2298ac_config_guess=$ac_aux_dir/config.guess
2299ac_config_sub=$ac_aux_dir/config.sub
2300ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2301
2302subdirs="$CONFIG_SUBDIRS"
2303 
2304
2305trap '' 1 2 15
2306cat > confcache <<\EOF
2307# This file is a shell script that caches the results of configure
2308# tests run on this system so they can be shared between configure
2309# scripts and configure runs.  It is not useful on other systems.
2310# If it contains results you don't want to keep, you may remove or edit it.
2311#
2312# By default, configure uses ./config.cache as the cache file,
2313# creating it if it does not exist already.  You can give configure
2314# the --cache-file=FILE option to use a different cache file; that is
2315# what configure does when it calls configure scripts in
2316# subdirectories, so they share the cache.
2317# Giving --cache-file=/dev/null disables caching, for debugging configure.
2318# config.status only pays attention to the cache file if you give it the
2319# --recheck option to rerun configure.
2320#
2321EOF
2322# The following way of writing the cache mishandles newlines in values,
2323# but we know of no workaround that is simple, portable, and efficient.
2324# So, don't put newlines in cache variables' values.
2325# Ultrix sh set writes to stderr and can't be redirected directly,
2326# and sets the high bit in the cache file unless we assign to the vars.
2327(set) 2>&1 |
2328  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2329  *ac_space=\ *)
2330    # `set' does not quote correctly, so add quotes (double-quote substitution
2331    # turns \\\\ into \\, and sed turns \\ into \).
2332    sed -n \
2333      -e "s/'/'\\\\''/g" \
2334      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2335    ;;
2336  *)
2337    # `set' quotes correctly as required by POSIX, so do not add quotes.
2338    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2339    ;;
2340  esac >> confcache
2341if cmp -s $cache_file confcache; then
2342  :
2343else
2344  if test -w $cache_file; then
2345    echo "updating cache $cache_file"
2346    cat confcache > $cache_file
2347  else
2348    echo "not updating unwritable cache $cache_file"
2349  fi
2350fi
2351rm -f confcache
2352
2353trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2354
2355test "x$prefix" = xNONE && prefix=$ac_default_prefix
2356# Let make expand exec_prefix.
2357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2358
2359# Any assignment to VPATH causes Sun make to only execute
2360# the first set of double-colon rules, so remove it if not needed.
2361# If there is a colon in the path, we need to keep it.
2362if test "x$srcdir" = x.; then
2363  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2364fi
2365
2366trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2367
2368# Transform confdefs.h into DEFS.
2369# Protect against shell expansion while executing Makefile rules.
2370# Protect against Makefile macro expansion.
2371cat > conftest.defs <<\EOF
2372s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2373s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2374s%\[%\\&%g
2375s%\]%\\&%g
2376s%\$%$$%g
2377EOF
2378DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2379rm -f conftest.defs
2380
2381
2382# Without the "./", some shells look in PATH for config.status.
2383: ${CONFIG_STATUS=./config.status}
2384
2385echo creating $CONFIG_STATUS
2386rm -f $CONFIG_STATUS
2387cat > $CONFIG_STATUS <<EOF
2388#! /bin/sh
2389# Generated automatically by configure.
2390# Run this file to recreate the current configuration.
2391# This directory was configured as follows,
2392# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2393#
2394# $0 $ac_configure_args
2395#
2396# Compiler output produced by configure, useful for debugging
2397# configure, is in ./config.log if it exists.
2398
2399ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2400for ac_option
2401do
2402  case "\$ac_option" in
2403  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2404    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2405    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2406  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2407    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2408    exit 0 ;;
2409  -help | --help | --hel | --he | --h)
2410    echo "\$ac_cs_usage"; exit 0 ;;
2411  *) echo "\$ac_cs_usage"; exit 1 ;;
2412  esac
2413done
2414
2415ac_given_srcdir=$srcdir
2416
2417trap 'rm -fr `echo "${OUTPUT_MAKEFILES}" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2418EOF
2419cat >> $CONFIG_STATUS <<EOF
2420
2421# Protect against being on the right side of a sed subst in config.status.
2422sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2423 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2424$ac_vpsub
2425$extrasub
2426s%@SHELL@%$SHELL%g
2427s%@CFLAGS@%$CFLAGS%g
2428s%@CPPFLAGS@%$CPPFLAGS%g
2429s%@CXXFLAGS@%$CXXFLAGS%g
2430s%@FFLAGS@%$FFLAGS%g
2431s%@DEFS@%$DEFS%g
2432s%@LDFLAGS@%$LDFLAGS%g
2433s%@LIBS@%$LIBS%g
2434s%@exec_prefix@%$exec_prefix%g
2435s%@prefix@%$prefix%g
2436s%@program_transform_name@%$program_transform_name%g
2437s%@bindir@%$bindir%g
2438s%@sbindir@%$sbindir%g
2439s%@libexecdir@%$libexecdir%g
2440s%@datadir@%$datadir%g
2441s%@sysconfdir@%$sysconfdir%g
2442s%@sharedstatedir@%$sharedstatedir%g
2443s%@localstatedir@%$localstatedir%g
2444s%@libdir@%$libdir%g
2445s%@includedir@%$includedir%g
2446s%@oldincludedir@%$oldincludedir%g
2447s%@infodir@%$infodir%g
2448s%@mandir@%$mandir%g
2449s%@SINGUNAME@%$SINGUNAME%g
2450s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g
2451s%@VERSION_DATE@%$VERSION_DATE%g
2452s%@SINGULAR_SHORT_VERSION@%$SINGULAR_SHORT_VERSION%g
2453s%@CC@%$CC%g
2454s%@CPP@%$CPP%g
2455s%@PERL@%$PERL%g
2456s%@LATEX2HTML@%$LATEX2HTML%g
2457s%@LN_S@%$LN_S%g
2458s%@TEXI2HTML@%$TEXI2HTML%g
2459s%@TEXI2HTML_OPTS@%$TEXI2HTML_OPTS%g
2460s%@SINGULAR@%$SINGULAR%g
2461s%@TMP_DIR@%$TMP_DIR%g
2462s%@PERL5@%$PERL5%g
2463s%@TEXI2DVI@%$TEXI2DVI%g
2464s%@MAKEINFO@%$MAKEINFO%g
2465s%@TEXINDEX@%$TEXINDEX%g
2466s%@SET_MAKE@%$SET_MAKE%g
2467s%@SUBDIRS@%$SUBDIRS%g
2468s%@BUILD_SUBDIRS@%$BUILD_SUBDIRS%g
2469s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
2470s%@subdirs@%$subdirs%g
2471
2472CEOF
2473EOF
2474
2475cat >> $CONFIG_STATUS <<\EOF
2476
2477# Split the substitutions into bite-sized pieces for seds with
2478# small command number limits, like on Digital OSF/1 and HP-UX.
2479ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2480ac_file=1 # Number of current file.
2481ac_beg=1 # First line for current file.
2482ac_end=$ac_max_sed_cmds # Line after last line for current file.
2483ac_more_lines=:
2484ac_sed_cmds=""
2485while $ac_more_lines; do
2486  if test $ac_beg -gt 1; then
2487    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2488  else
2489    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2490  fi
2491  if test ! -s conftest.s$ac_file; then
2492    ac_more_lines=false
2493    rm -f conftest.s$ac_file
2494  else
2495    if test -z "$ac_sed_cmds"; then
2496      ac_sed_cmds="sed -f conftest.s$ac_file"
2497    else
2498      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2499    fi
2500    ac_file=`expr $ac_file + 1`
2501    ac_beg=$ac_end
2502    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2503  fi
2504done
2505if test -z "$ac_sed_cmds"; then
2506  ac_sed_cmds=cat
2507fi
2508EOF
2509
2510cat >> $CONFIG_STATUS <<EOF
2511
2512CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"}
2513EOF
2514cat >> $CONFIG_STATUS <<\EOF
2515for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2516  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2517  case "$ac_file" in
2518  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2519       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2520  *) ac_file_in="${ac_file}.in" ;;
2521  esac
2522
2523  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2524
2525  # Remove last slash and all that follows it.  Not all systems have dirname.
2526  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2527  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2528    # The file is in a subdirectory.
2529    test ! -d "$ac_dir" && mkdir "$ac_dir"
2530    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2531    # A "../" for each directory in $ac_dir_suffix.
2532    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2533  else
2534    ac_dir_suffix= ac_dots=
2535  fi
2536
2537  case "$ac_given_srcdir" in
2538  .)  srcdir=.
2539      if test -z "$ac_dots"; then top_srcdir=.
2540      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2541  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2542  *) # Relative path.
2543    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2544    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2545  esac
2546
2547
2548  echo creating "$ac_file"
2549  rm -f "$ac_file"
2550  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2551  case "$ac_file" in
2552  *Makefile*) ac_comsub="1i\\
2553# $configure_input" ;;
2554  *) ac_comsub= ;;
2555  esac
2556
2557  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2558  sed -e "$ac_comsub
2559s%@configure_input@%$configure_input%g
2560s%@srcdir@%$srcdir%g
2561s%@top_srcdir@%$top_srcdir%g
2562" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2563fi; done
2564rm -f conftest.s*
2565
2566EOF
2567cat >> $CONFIG_STATUS <<EOF
2568
2569EOF
2570cat >> $CONFIG_STATUS <<\EOF
2571
2572exit 0
2573EOF
2574chmod +x $CONFIG_STATUS
2575rm -fr confdefs* $ac_clean_files
2576test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2577
2578if test "$no_recursion" != yes; then
2579
2580  # Remove --cache-file and --srcdir arguments so they do not pile up.
2581  ac_sub_configure_args=
2582  ac_prev=
2583  for ac_arg in $ac_configure_args; do
2584    if test -n "$ac_prev"; then
2585      ac_prev=
2586      continue
2587    fi
2588    case "$ac_arg" in
2589    -cache-file | --cache-file | --cache-fil | --cache-fi \
2590    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2591      ac_prev=cache_file ;;
2592    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2593    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2594      ;;
2595    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2596      ac_prev=srcdir ;;
2597    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2598      ;;
2599    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2600    esac
2601  done
2602
2603  for ac_config_dir in $CONFIG_SUBDIRS; do
2604
2605    # Do not complain, so a configure script can configure whichever
2606    # parts of a large source tree are present.
2607    if test ! -d $srcdir/$ac_config_dir; then
2608      continue
2609    fi
2610
2611    echo configuring in $ac_config_dir
2612
2613    case "$srcdir" in
2614    .) ;;
2615    *)
2616      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2617      else
2618        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2619      fi
2620      ;;
2621    esac
2622
2623    ac_popdir=`pwd`
2624    cd $ac_config_dir
2625
2626      # A "../" for each directory in /$ac_config_dir.
2627      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2628
2629    case "$srcdir" in
2630    .) # No --srcdir option.  We are building in place.
2631      ac_sub_srcdir=$srcdir ;;
2632    /*) # Absolute path.
2633      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2634    *) # Relative path.
2635      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2636    esac
2637
2638    # Check for guested configure; otherwise get Cygnus style configure.
2639    if test -f $ac_sub_srcdir/configure; then
2640      ac_sub_configure=$ac_sub_srcdir/configure
2641    elif test -f $ac_sub_srcdir/configure.in; then
2642      ac_sub_configure=$ac_configure
2643    else
2644      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2645      ac_sub_configure=
2646    fi
2647
2648    # The recursion is here.
2649    if test -n "$ac_sub_configure"; then
2650
2651      # Make the cache file name correct relative to the subdirectory.
2652      case "$cache_file" in
2653      /*) ac_sub_cache_file=$cache_file ;;
2654      *) # Relative path.
2655        ac_sub_cache_file="$ac_dots$cache_file" ;;
2656      esac
2657
2658      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2659      # The eval makes quoting arguments work.
2660      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2661      then :
2662      else
2663        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2664      fi
2665    fi
2666
2667    cd $ac_popdir
2668  done
2669fi
2670
Note: See TracBrowser for help on using the repository browser.