source: git/configure @ f5a734

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