source: git/configure @ dc32d42

spielwiese
Last change on this file since dc32d42 was dc32d42, checked in by Olaf Bachmann <obachman@…>, 27 years ago
Merged fixes from 1-0 branch git-svn-id: file:///usr/local/Singular/svn/trunk@311 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100755
File size: 52.8 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.9
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  --enable-PACKAGE        configure and build PACKAGE
18  --disable-PACKAGE       do not configure and build PACKAGE
19  --with-PACKAGE          use PACKAGE, provide dependent functionality
20  --without-PACKAGE       do not use PACKAGE, disable dependent functionality
21 where PACKAGE can be:
22     gmp                  GNU multiple precision library"
23ac_help="$ac_help
24\
25     MP                   Multi Protocol library"
26ac_help="$ac_help
27\
28     factory              polynomial factorization library"
29ac_help="$ac_help
30\
31     libfac               char set and modp poly factorization library"
32ac_help="$ac_help
33\
34     Singular,            CAS for commutative algebra"
35
36# Initialize some variables set by options.
37# The variables have the same names as the options, with
38# dashes changed to underlines.
39build=NONE
40cache_file=./config.cache
41exec_prefix=NONE
42host=NONE
43no_create=
44nonopt=NONE
45no_recursion=
46prefix=NONE
47program_prefix=NONE
48program_suffix=NONE
49program_transform_name=s,x,x,
50silent=
51site=
52srcdir=
53target=NONE
54verbose=
55x_includes=NONE
56x_libraries=NONE
57bindir='${exec_prefix}/bin'
58sbindir='${exec_prefix}/sbin'
59libexecdir='${exec_prefix}/libexec'
60datadir='${prefix}/share'
61sysconfdir='${prefix}/etc'
62sharedstatedir='${prefix}/com'
63localstatedir='${prefix}/var'
64libdir='${exec_prefix}/lib'
65includedir='${prefix}/include'
66oldincludedir='/usr/include'
67infodir='${prefix}/info'
68mandir='${prefix}/man'
69
70# Initialize some other variables.
71subdirs=
72MFLAGS= MAKEFLAGS=
73
74ac_prev=
75for ac_option
76do
77
78  # If the previous option needs an argument, assign it.
79  if test -n "$ac_prev"; then
80    eval "$ac_prev=\$ac_option"
81    ac_prev=
82    continue
83  fi
84
85  case "$ac_option" in
86  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87  *) ac_optarg= ;;
88  esac
89
90  # Accept the important Cygnus configure options, so we can diagnose typos.
91
92  case "$ac_option" in
93
94  -bindir | --bindir | --bindi | --bind | --bin | --bi)
95    ac_prev=bindir ;;
96  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97    bindir="$ac_optarg" ;;
98
99  -build | --build | --buil | --bui | --bu)
100    ac_prev=build ;;
101  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102    build="$ac_optarg" ;;
103
104  -cache-file | --cache-file | --cache-fil | --cache-fi \
105  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106    ac_prev=cache_file ;;
107  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109    cache_file="$ac_optarg" ;;
110
111  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112    ac_prev=datadir ;;
113  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114  | --da=*)
115    datadir="$ac_optarg" ;;
116
117  -disable-* | --disable-*)
118    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119    # Reject names that are not valid shell variable names.
120    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122    fi
123    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124    eval "enable_${ac_feature}=no" ;;
125
126  -enable-* | --enable-*)
127    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128    # Reject names that are not valid shell variable names.
129    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131    fi
132    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133    case "$ac_option" in
134      *=*) ;;
135      *) ac_optarg=yes ;;
136    esac
137    eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141  | --exec | --exe | --ex)
142    ac_prev=exec_prefix ;;
143  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145  | --exec=* | --exe=* | --ex=*)
146    exec_prefix="$ac_optarg" ;;
147
148  -gas | --gas | --ga | --g)
149    # Obsolete; use --with-gas.
150    with_gas=yes ;;
151
152  -help | --help | --hel | --he)
153    # Omit some internal or obsolete options to make the list less imposing.
154    # This message is too long to be a string in the A/UX 3.1 sh.
155    cat << EOF
156Usage: configure [options] [host]
157Options: [defaults in brackets after descriptions]
158Configuration:
159  --cache-file=FILE       cache test results in FILE
160  --help                  print this message
161  --no-create             do not create output files
162  --quiet, --silent       do not print \`checking...' messages
163  --version               print the version of autoconf that created configure
164Directory and file names:
165  --prefix=PREFIX         install architecture-independent files in PREFIX
166                          [$ac_default_prefix]
167  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
168                          [same as prefix]
169  --bindir=DIR            user executables in DIR [EPREFIX/bin]
170  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
171  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
172  --datadir=DIR           read-only architecture-independent data in DIR
173                          [PREFIX/share]
174  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
175  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
176                          [PREFIX/com]
177  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
178  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
179  --includedir=DIR        C header files in DIR [PREFIX/include]
180  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
181  --infodir=DIR           info documentation in DIR [PREFIX/info]
182  --mandir=DIR            man documentation in DIR [PREFIX/man]
183  --srcdir=DIR            find the sources in DIR [configure dir or ..]
184  --program-prefix=PREFIX prepend PREFIX to installed program names
185  --program-suffix=SUFFIX append SUFFIX to installed program names
186  --program-transform-name=PROGRAM
187                          run sed PROGRAM on installed program names
188EOF
189    cat << EOF
190Host type:
191  --build=BUILD           configure for building on BUILD [BUILD=HOST]
192  --host=HOST             configure for HOST [guessed]
193  --target=TARGET         configure for TARGET [TARGET=HOST]
194Features and packages:
195  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
196  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
197  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
198  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
199  --x-includes=DIR        X include files are in DIR
200  --x-libraries=DIR       X library files are in DIR
201EOF
202    if test -n "$ac_help"; then
203      echo "--enable and --with options recognized:$ac_help"
204    fi
205    exit 0 ;;
206
207  -host | --host | --hos | --ho)
208    ac_prev=host ;;
209  -host=* | --host=* | --hos=* | --ho=*)
210    host="$ac_optarg" ;;
211
212  -includedir | --includedir | --includedi | --included | --include \
213  | --includ | --inclu | --incl | --inc)
214    ac_prev=includedir ;;
215  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216  | --includ=* | --inclu=* | --incl=* | --inc=*)
217    includedir="$ac_optarg" ;;
218
219  -infodir | --infodir | --infodi | --infod | --info | --inf)
220    ac_prev=infodir ;;
221  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222    infodir="$ac_optarg" ;;
223
224  -libdir | --libdir | --libdi | --libd)
225    ac_prev=libdir ;;
226  -libdir=* | --libdir=* | --libdi=* | --libd=*)
227    libdir="$ac_optarg" ;;
228
229  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230  | --libexe | --libex | --libe)
231    ac_prev=libexecdir ;;
232  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233  | --libexe=* | --libex=* | --libe=*)
234    libexecdir="$ac_optarg" ;;
235
236  -localstatedir | --localstatedir | --localstatedi | --localstated \
237  | --localstate | --localstat | --localsta | --localst \
238  | --locals | --local | --loca | --loc | --lo)
239    ac_prev=localstatedir ;;
240  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243    localstatedir="$ac_optarg" ;;
244
245  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246    ac_prev=mandir ;;
247  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248    mandir="$ac_optarg" ;;
249
250  -nfp | --nfp | --nf)
251    # Obsolete; use --without-fp.
252    with_fp=no ;;
253
254  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255  | --no-cr | --no-c)
256    no_create=yes ;;
257
258  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260    no_recursion=yes ;;
261
262  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264  | --oldin | --oldi | --old | --ol | --o)
265    ac_prev=oldincludedir ;;
266  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269    oldincludedir="$ac_optarg" ;;
270
271  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272    ac_prev=prefix ;;
273  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274    prefix="$ac_optarg" ;;
275
276  -program-prefix | --program-prefix | --program-prefi | --program-pref \
277  | --program-pre | --program-pr | --program-p)
278    ac_prev=program_prefix ;;
279  -program-prefix=* | --program-prefix=* | --program-prefi=* \
280  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281    program_prefix="$ac_optarg" ;;
282
283  -program-suffix | --program-suffix | --program-suffi | --program-suff \
284  | --program-suf | --program-su | --program-s)
285    ac_prev=program_suffix ;;
286  -program-suffix=* | --program-suffix=* | --program-suffi=* \
287  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288    program_suffix="$ac_optarg" ;;
289
290  -program-transform-name | --program-transform-name \
291  | --program-transform-nam | --program-transform-na \
292  | --program-transform-n | --program-transform- \
293  | --program-transform | --program-transfor \
294  | --program-transfo | --program-transf \
295  | --program-trans | --program-tran \
296  | --progr-tra | --program-tr | --program-t)
297    ac_prev=program_transform_name ;;
298  -program-transform-name=* | --program-transform-name=* \
299  | --program-transform-nam=* | --program-transform-na=* \
300  | --program-transform-n=* | --program-transform-=* \
301  | --program-transform=* | --program-transfor=* \
302  | --program-transfo=* | --program-transf=* \
303  | --program-trans=* | --program-tran=* \
304  | --progr-tra=* | --program-tr=* | --program-t=*)
305    program_transform_name="$ac_optarg" ;;
306
307  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308  | -silent | --silent | --silen | --sile | --sil)
309    silent=yes ;;
310
311  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312    ac_prev=sbindir ;;
313  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314  | --sbi=* | --sb=*)
315    sbindir="$ac_optarg" ;;
316
317  -sharedstatedir | --sharedstatedir | --sharedstatedi \
318  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319  | --sharedst | --shareds | --shared | --share | --shar \
320  | --sha | --sh)
321    ac_prev=sharedstatedir ;;
322  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325  | --sha=* | --sh=*)
326    sharedstatedir="$ac_optarg" ;;
327
328  -site | --site | --sit)
329    ac_prev=site ;;
330  -site=* | --site=* | --sit=*)
331    site="$ac_optarg" ;;
332
333  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334    ac_prev=srcdir ;;
335  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336    srcdir="$ac_optarg" ;;
337
338  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339  | --syscon | --sysco | --sysc | --sys | --sy)
340    ac_prev=sysconfdir ;;
341  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343    sysconfdir="$ac_optarg" ;;
344
345  -target | --target | --targe | --targ | --tar | --ta | --t)
346    ac_prev=target ;;
347  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348    target="$ac_optarg" ;;
349
350  -v | -verbose | --verbose | --verbos | --verbo | --verb)
351    verbose=yes ;;
352
353  -version | --version | --versio | --versi | --vers)
354    echo "configure generated by autoconf version 2.9"
355    exit 0 ;;
356
357  -with-* | --with-*)
358    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359    # Reject names that are not valid shell variable names.
360    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362    fi
363    ac_package=`echo $ac_package| sed 's/-/_/g'`
364    case "$ac_option" in
365      *=*) ;;
366      *) ac_optarg=yes ;;
367    esac
368    eval "with_${ac_package}='$ac_optarg'" ;;
369
370  -without-* | --without-*)
371    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372    # Reject names that are not valid shell variable names.
373    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375    fi
376    ac_package=`echo $ac_package| sed 's/-/_/g'`
377    eval "with_${ac_package}=no" ;;
378
379  --x)
380    # Obsolete; use --with-x.
381    with_x=yes ;;
382
383  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384  | --x-incl | --x-inc | --x-in | --x-i)
385    ac_prev=x_includes ;;
386  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388    x_includes="$ac_optarg" ;;
389
390  -x-libraries | --x-libraries | --x-librarie | --x-librari \
391  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392    ac_prev=x_libraries ;;
393  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395    x_libraries="$ac_optarg" ;;
396
397  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398    ;;
399
400  *)
401    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402      echo "configure: warning: $ac_option: invalid host type" 1>&2
403    fi
404    if test "x$nonopt" != xNONE; then
405      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406    fi
407    nonopt="$ac_option"
408    ;;
409
410  esac
411done
412
413if test -n "$ac_prev"; then
414  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415fi
416
417trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419# File descriptor usage:
420# 0 standard input
421# 1 file creation
422# 2 errors and warnings
423# 3 some systems may open it to /dev/tty
424# 4 used on the Kubota Titan
425# 6 checking for... messages and results
426# 5 compiler messages saved in config.log
427if test "$silent" = yes; then
428  exec 6>/dev/null
429else
430  exec 6>&1
431fi
432exec 5>./config.log
433
434echo "\
435This file contains any messages produced by compilers while
436running configure, to aid debugging if configure makes a mistake.
437" 1>&5
438
439# Strip out --no-create and --no-recursion so they do not pile up.
440# Also quote any args containing shell metacharacters.
441ac_configure_args=
442for ac_arg
443do
444  case "$ac_arg" in
445  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446  | --no-cr | --no-c) ;;
447  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452  esac
453done
454
455# NLS nuisances.
456# Only set LANG and LC_ALL to C if already set.
457# These must not be set unconditionally because not all systems understand
458# e.g. LANG=C (notably SCO).
459if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461
462# confdefs.h avoids OS command line length limits that DEFS can exceed.
463rm -rf conftest* confdefs.h
464# AIX cpp loses on an empty file, so make sure it contains at least a newline.
465echo > confdefs.h
466
467# A filename unique to this package, relative to the directory that
468# configure is in, which we can look for to find out if srcdir is correct.
469ac_unique_file=Singular/matpol.h
470
471# Find the source files, if location was not specified.
472if test -z "$srcdir"; then
473  ac_srcdir_defaulted=yes
474  # Try the directory containing this script, then its parent.
475  ac_prog=$0
476  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
478  srcdir=$ac_confdir
479  if test ! -r $srcdir/$ac_unique_file; then
480    srcdir=..
481  fi
482else
483  ac_srcdir_defaulted=no
484fi
485if test ! -r $srcdir/$ac_unique_file; then
486  if test "$ac_srcdir_defaulted" = yes; then
487    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488  else
489    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490  fi
491fi
492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493
494# Prefer explicitly selected file to automatically selected ones.
495if test -z "$CONFIG_SITE"; then
496  if test "x$prefix" != xNONE; then
497    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
498  else
499    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500  fi
501fi
502for ac_site_file in $CONFIG_SITE; do
503  if test -r "$ac_site_file"; then
504    echo "loading site script $ac_site_file"
505    . "$ac_site_file"
506  fi
507done
508
509if test -r "$cache_file"; then
510  echo "loading cache $cache_file"
511  . $cache_file
512else
513  echo "creating cache $cache_file"
514  > $cache_file
515fi
516
517ac_ext=c
518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519ac_cpp='$CPP $CPPFLAGS'
520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522
523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526    ac_n= ac_c='
527' ac_t='        '
528  else
529    ac_n=-n ac_c= ac_t=
530  fi
531else
532  ac_n= ac_c='\c' ac_t=
533fi
534
535
536
537
538ac_aux_dir=
539for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
540  if test -f $ac_dir/install-sh; then
541    ac_aux_dir=$ac_dir
542    ac_install_sh="$ac_aux_dir/install-sh -c"
543    break
544  elif test -f $ac_dir/install.sh; then
545    ac_aux_dir=$ac_dir
546    ac_install_sh="$ac_aux_dir/install.sh -c"
547    break
548  fi
549done
550if test -z "$ac_aux_dir"; then
551  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552fi
553ac_config_guess=$ac_aux_dir/config.guess
554ac_config_sub=$ac_aux_dir/config.sub
555ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
556
557
558# Do some error checking and defaulting for the host and target type.
559# The inputs are:
560#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
561#
562# The rules are:
563# 1. You are not allowed to specify --host, --target, and nonopt at the
564#    same time.
565# 2. Host defaults to nonopt.
566# 3. If nonopt is not specified, then host defaults to the current host,
567#    as determined by config.guess.
568# 4. Target and build default to nonopt.
569# 5. If nonopt is not specified, then target and build default to host.
570
571# The aliases save the names the user supplied, while $host etc.
572# will get canonicalized.
573case $host---$target---$nonopt in
574NONE---*---* | *---NONE---* | *---*---NONE) ;;
575*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
576esac
577
578
579# Make sure we can run config.sub.
580if $ac_config_sub sun4 >/dev/null 2>&1; then :
581else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
582fi
583
584echo $ac_n "checking host system type""... $ac_c" 1>&6
585
586host_alias=$host
587case "$host_alias" in
588NONE)
589  case $nonopt in
590  NONE)
591    if host_alias=`$ac_config_guess`; then :
592    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
593    fi ;;
594  *) host_alias=$nonopt ;;
595  esac ;;
596esac
597
598host=`$ac_config_sub $host_alias`
599host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
600host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
601host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
602echo "$ac_t""$host" 1>&6
603
604echo $ac_n "checking target system type""... $ac_c" 1>&6
605
606target_alias=$target
607case "$target_alias" in
608NONE)
609  case $nonopt in
610  NONE) target_alias=$host_alias ;;
611  *) target_alias=$nonopt ;;
612  esac ;;
613esac
614
615target=`$ac_config_sub $target_alias`
616target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
617target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
618target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
619echo "$ac_t""$target" 1>&6
620
621echo $ac_n "checking build system type""... $ac_c" 1>&6
622
623build_alias=$build
624case "$build_alias" in
625NONE)
626  case $nonopt in
627  NONE) build_alias=$host_alias ;;
628  *) build_alias=$nonopt ;;
629  esac ;;
630esac
631
632build=`$ac_config_sub $build_alias`
633build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
634build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
635build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
636echo "$ac_t""$build" 1>&6
637
638test "$host_alias" != "$target_alias" &&
639  test "$program_prefix$program_suffix$program_transform_name" = \
640    NONENONEs,x,x, &&
641  program_prefix=${target_alias}-
642
643
644
645# Extract the first word of "gcc", so it can be a program name with args.
646set dummy gcc; ac_word=$2
647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
649  echo $ac_n "(cached) $ac_c" 1>&6
650else
651  if test -n "$CC"; then
652  ac_cv_prog_CC="$CC" # Let the user override the test.
653else
654  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
655  for ac_dir in $PATH; do
656    test -z "$ac_dir" && ac_dir=.
657    if test -f $ac_dir/$ac_word; then
658      ac_cv_prog_CC="gcc"
659      break
660    fi
661  done
662  IFS="$ac_save_ifs"
663fi
664fi
665CC="$ac_cv_prog_CC"
666if test -n "$CC"; then
667  echo "$ac_t""$CC" 1>&6
668else
669  echo "$ac_t""no" 1>&6
670fi
671
672if test -z "$CC"; then
673  # Extract the first word of "cc", so it can be a program name with args.
674set dummy cc; ac_word=$2
675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
676if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
677  echo $ac_n "(cached) $ac_c" 1>&6
678else
679  if test -n "$CC"; then
680  ac_cv_prog_CC="$CC" # Let the user override the test.
681else
682  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
683  ac_prog_rejected=no
684  for ac_dir in $PATH; do
685    test -z "$ac_dir" && ac_dir=.
686    if test -f $ac_dir/$ac_word; then
687      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
688        ac_prog_rejected=yes
689        continue
690      fi
691      ac_cv_prog_CC="cc"
692      break
693    fi
694  done
695  IFS="$ac_save_ifs"
696if test $ac_prog_rejected = yes; then
697  # We found a bogon in the path, so make sure we never use it.
698  set dummy $ac_cv_prog_CC
699  shift
700  if test $# -gt 0; then
701    # We chose a different compiler from the bogus one.
702    # However, it has the same basename, so the bogon will be chosen
703    # first if we set CC to just the basename; use the full file name.
704    shift
705    set dummy "$ac_dir/$ac_word" "$@"
706    shift
707    ac_cv_prog_CC="$@"
708  fi
709fi
710fi
711fi
712CC="$ac_cv_prog_CC"
713if test -n "$CC"; then
714  echo "$ac_t""$CC" 1>&6
715else
716  echo "$ac_t""no" 1>&6
717fi
718
719  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
720fi
721
722echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
723if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
724  echo $ac_n "(cached) $ac_c" 1>&6
725else
726  cat > conftest.c <<EOF
727#ifdef __GNUC__
728  yes;
729#endif
730EOF
731if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
732  ac_cv_prog_gcc=yes
733else
734  ac_cv_prog_gcc=no
735fi
736fi
737
738echo "$ac_t""$ac_cv_prog_gcc" 1>&6
739if test $ac_cv_prog_gcc = yes; then
740  GCC=yes
741  if test "${CFLAGS+set}" != set; then
742    echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
743if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
744  echo $ac_n "(cached) $ac_c" 1>&6
745else
746  echo 'void f(){}' > conftest.c
747if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
748  ac_cv_prog_gcc_g=yes
749else
750  ac_cv_prog_gcc_g=no
751fi
752rm -f conftest*
753
754fi
755
756echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
757    if test $ac_cv_prog_gcc_g = yes; then
758      CFLAGS="-g -O"
759    else
760      CFLAGS="-O"
761    fi
762  fi
763else
764  GCC=
765  test "${CFLAGS+set}" = set || CFLAGS="-g"
766fi
767
768echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
769# On Suns, sometimes $CPP names a directory.
770if test -n "$CPP" && test -d "$CPP"; then
771  CPP=
772fi
773if test -z "$CPP"; then
774if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
775  echo $ac_n "(cached) $ac_c" 1>&6
776else
777    # This must be in double quotes, not single quotes, because CPP may get
778  # substituted into the Makefile and "${CC-cc}" will confuse make.
779  CPP="${CC-cc} -E"
780  # On the NeXT, cc -E runs the code through the compiler's parser,
781  # not just through cpp.
782  cat > conftest.$ac_ext <<EOF
783#line 784 "configure"
784#include "confdefs.h"
785#include <assert.h>
786Syntax Error
787EOF
788ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
789{ (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
790ac_err=`grep -v '^ *+' conftest.out`
791if test -z "$ac_err"; then
792  :
793else
794  echo "$ac_err" >&5
795  rm -rf conftest*
796  CPP="${CC-cc} -E -traditional-cpp"
797  cat > conftest.$ac_ext <<EOF
798#line 799 "configure"
799#include "confdefs.h"
800#include <assert.h>
801Syntax Error
802EOF
803ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
804{ (eval echo configure:805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
805ac_err=`grep -v '^ *+' conftest.out`
806if test -z "$ac_err"; then
807  :
808else
809  echo "$ac_err" >&5
810  rm -rf conftest*
811  CPP=/lib/cpp
812fi
813rm -f conftest*
814fi
815rm -f conftest*
816  ac_cv_prog_CPP="$CPP"
817fi
818  CPP="$ac_cv_prog_CPP"
819else
820  ac_cv_prog_CPP="$CPP"
821fi
822echo "$ac_t""$CPP" 1>&6
823
824echo $ac_n "checking for AIX""... $ac_c" 1>&6
825cat > conftest.$ac_ext <<EOF
826#line 827 "configure"
827#include "confdefs.h"
828#ifdef _AIX
829  yes
830#endif
831
832EOF
833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
834  egrep "yes" >/dev/null 2>&1; then
835  rm -rf conftest*
836  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
837#define _ALL_SOURCE 1
838EOF
839
840else
841  rm -rf conftest*
842  echo "$ac_t""no" 1>&6
843fi
844rm -f conftest*
845
846
847
848if test "$libdir" = '${exec_prefix}/lib'; then
849  if test "x$exec_prefix" = xNONE; then
850    if test "x$prefix" = xNONE; then
851      LDFLAGS="-L${ac_default_prefix}/lib ${LDFLAGS}"
852    else
853      LDFLAGS="-L${prefix}/lib ${LDFLAGS}"
854    fi
855  else
856    LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}"
857  fi
858else
859  LDFLAGS="-L${libdir} ${LDFLAGS}"
860fi
861
862if test "$includedir" = '${prefix}/include'; then
863  if test "x$prefix" = xNONE; then
864    CPPFLAGS="-I${ac_default_prefix}/include ${CPPFLAGS}"
865  else
866    CPPFLAGS="-I${prefix}/include ${CPPFLAGS}"
867  fi
868else
869  CPPFLAGS="-I${includedir} ${CPPFLAGS}"
870fi
871
872if test "x$prefix" = xNONE; then
873  ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix"
874fi
875
876echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
877if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
878  echo $ac_n "(cached) $ac_c" 1>&6
879else
880  cat > conftest.$ac_ext <<EOF
881#line 882 "configure"
882#include "confdefs.h"
883#ifdef _AIX
884    yes
885#endif
886
887EOF
888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
889  egrep "yes" >/dev/null 2>&1; then
890  rm -rf conftest*
891  ac_cv_is_aix=yes
892else
893  rm -rf conftest*
894  ac_cv_is_aix=no
895fi
896rm -f conftest*
897
898fi
899
900if test "$ac_cv_is_aix" = yes; then
901  echo "$ac_t""yes" 1>&6
902else
903  echo "$ac_t""no" 1>&6
904fi
905
906
907echo $ac_n "checking for -lm""... $ac_c" 1>&6
908ac_lib_var=`echo m_atof | tr '.-/+' '___p'`
909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
910  echo $ac_n "(cached) $ac_c" 1>&6
911else
912  ac_save_LIBS="$LIBS"
913LIBS="-lm  $LIBS"
914cat > conftest.$ac_ext <<EOF
915#line 916 "configure"
916#include "confdefs.h"
917/* Override any gcc2 internal prototype to avoid an error.  */
918char atof();
919
920int main() { return 0; }
921int t() {
922atof()
923; return 0; }
924EOF
925if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
926  rm -rf conftest*
927  eval "ac_cv_lib_$ac_lib_var=yes"
928else
929  rm -rf conftest*
930  eval "ac_cv_lib_$ac_lib_var=no"
931fi
932rm -f conftest*
933LIBS="$ac_save_LIBS"
934
935fi
936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
937  echo "$ac_t""yes" 1>&6
938    ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
939  cat >> confdefs.h <<EOF
940#define $ac_tr_lib 1
941EOF
942
943  LIBS="-lm $LIBS"
944
945else
946  echo "$ac_t""no" 1>&6
947fi
948
949echo $ac_n "checking for -lgmp""... $ac_c" 1>&6
950ac_lib_var=`echo gmp_mpz_init | tr '.-/+' '___p'`
951if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
952  echo $ac_n "(cached) $ac_c" 1>&6
953else
954  ac_save_LIBS="$LIBS"
955LIBS="-lgmp  $LIBS"
956cat > conftest.$ac_ext <<EOF
957#line 958 "configure"
958#include "confdefs.h"
959/* Override any gcc2 internal prototype to avoid an error.  */
960char mpz_init();
961
962int main() { return 0; }
963int t() {
964mpz_init()
965; return 0; }
966EOF
967if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
968  rm -rf conftest*
969  eval "ac_cv_lib_$ac_lib_var=yes"
970else
971  rm -rf conftest*
972  eval "ac_cv_lib_$ac_lib_var=no"
973fi
974rm -f conftest*
975LIBS="$ac_save_LIBS"
976
977fi
978if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
979  echo "$ac_t""yes" 1>&6
980    ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
981  cat >> confdefs.h <<EOF
982#define $ac_tr_lib 1
983EOF
984
985  LIBS="-lgmp $LIBS"
986
987else
988  echo "$ac_t""no" 1>&6
989fi
990
991echo $ac_n "checking for -lMP""... $ac_c" 1>&6
992ac_lib_var=`echo MP_IMP_PutGmpInt | tr '.-/+' '___p'`
993if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
994  echo $ac_n "(cached) $ac_c" 1>&6
995else
996  ac_save_LIBS="$LIBS"
997LIBS="-lMP  $LIBS"
998cat > conftest.$ac_ext <<EOF
999#line 1000 "configure"
1000#include "confdefs.h"
1001/* Override any gcc2 internal prototype to avoid an error.  */
1002char IMP_PutGmpInt();
1003
1004int main() { return 0; }
1005int t() {
1006IMP_PutGmpInt()
1007; return 0; }
1008EOF
1009if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1010  rm -rf conftest*
1011  eval "ac_cv_lib_$ac_lib_var=yes"
1012else
1013  rm -rf conftest*
1014  eval "ac_cv_lib_$ac_lib_var=no"
1015fi
1016rm -f conftest*
1017LIBS="$ac_save_LIBS"
1018
1019fi
1020if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1021  echo "$ac_t""yes" 1>&6
1022    ac_tr_lib=HAVE_LIB`echo MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1023  cat >> confdefs.h <<EOF
1024#define $ac_tr_lib 1
1025EOF
1026
1027  LIBS="-lMP $LIBS"
1028
1029else
1030  echo "$ac_t""no" 1>&6
1031fi
1032
1033echo $ac_n "checking for -lMPT""... $ac_c" 1>&6
1034ac_lib_var=`echo MPT_MPT_GetTree | tr '.-/+' '___p'`
1035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1036  echo $ac_n "(cached) $ac_c" 1>&6
1037else
1038  ac_save_LIBS="$LIBS"
1039LIBS="-lMPT  $LIBS"
1040cat > conftest.$ac_ext <<EOF
1041#line 1042 "configure"
1042#include "confdefs.h"
1043/* Override any gcc2 internal prototype to avoid an error.  */
1044char MPT_GetTree();
1045
1046int main() { return 0; }
1047int t() {
1048MPT_GetTree()
1049; return 0; }
1050EOF
1051if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1052  rm -rf conftest*
1053  eval "ac_cv_lib_$ac_lib_var=yes"
1054else
1055  rm -rf conftest*
1056  eval "ac_cv_lib_$ac_lib_var=no"
1057fi
1058rm -f conftest*
1059LIBS="$ac_save_LIBS"
1060
1061fi
1062if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1063  echo "$ac_t""yes" 1>&6
1064    ac_tr_lib=HAVE_LIB`echo MPT | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1065  cat >> confdefs.h <<EOF
1066#define $ac_tr_lib 1
1067EOF
1068
1069  LIBS="-lMPT $LIBS"
1070
1071else
1072  echo "$ac_t""no" 1>&6
1073fi
1074
1075echo $ac_n "checking for -lsingcf""... $ac_c" 1>&6
1076ac_lib_var=`echo singcf_atof | tr '.-/+' '___p'`
1077if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1078  echo $ac_n "(cached) $ac_c" 1>&6
1079else
1080  ac_save_LIBS="$LIBS"
1081LIBS="-lsingcf  $LIBS"
1082cat > conftest.$ac_ext <<EOF
1083#line 1084 "configure"
1084#include "confdefs.h"
1085/* Override any gcc2 internal prototype to avoid an error.  */
1086char atof();
1087
1088int main() { return 0; }
1089int t() {
1090atof()
1091; return 0; }
1092EOF
1093if { (eval echo configure:1094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1094  rm -rf conftest*
1095  eval "ac_cv_lib_$ac_lib_var=yes"
1096else
1097  rm -rf conftest*
1098  eval "ac_cv_lib_$ac_lib_var=no"
1099fi
1100rm -f conftest*
1101LIBS="$ac_save_LIBS"
1102
1103fi
1104if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1105  echo "$ac_t""yes" 1>&6
1106    ac_tr_lib=HAVE_LIB`echo singcf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1107  cat >> confdefs.h <<EOF
1108#define $ac_tr_lib 1
1109EOF
1110
1111  LIBS="-lsingcf $LIBS"
1112
1113else
1114  echo "$ac_t""no" 1>&6
1115fi
1116
1117echo $ac_n "checking for -lsingfac""... $ac_c" 1>&6
1118ac_lib_var=`echo singfac_atof | tr '.-/+' '___p'`
1119if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1120  echo $ac_n "(cached) $ac_c" 1>&6
1121else
1122  ac_save_LIBS="$LIBS"
1123LIBS="-lsingfac  $LIBS"
1124cat > conftest.$ac_ext <<EOF
1125#line 1126 "configure"
1126#include "confdefs.h"
1127/* Override any gcc2 internal prototype to avoid an error.  */
1128char atof();
1129
1130int main() { return 0; }
1131int t() {
1132atof()
1133; return 0; }
1134EOF
1135if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1136  rm -rf conftest*
1137  eval "ac_cv_lib_$ac_lib_var=yes"
1138else
1139  rm -rf conftest*
1140  eval "ac_cv_lib_$ac_lib_var=no"
1141fi
1142rm -f conftest*
1143LIBS="$ac_save_LIBS"
1144
1145fi
1146if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1147  echo "$ac_t""yes" 1>&6
1148    ac_tr_lib=HAVE_LIB`echo singfac | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1149  cat >> confdefs.h <<EOF
1150#define $ac_tr_lib 1
1151EOF
1152
1153  LIBS="-lsingfac $LIBS"
1154
1155else
1156  echo "$ac_t""no" 1>&6
1157fi
1158
1159
1160for ac_hdr in gmp.h MP.h  MPT.h factory.h factor.h
1161do
1162ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1163echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1164if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1165  echo $ac_n "(cached) $ac_c" 1>&6
1166else
1167  cat > conftest.$ac_ext <<EOF
1168#line 1169 "configure"
1169#include "confdefs.h"
1170#include <$ac_hdr>
1171EOF
1172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1173{ (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1174ac_err=`grep -v '^ *+' conftest.out`
1175if test -z "$ac_err"; then
1176  rm -rf conftest*
1177  eval "ac_cv_header_$ac_safe=yes"
1178else
1179  echo "$ac_err" >&5
1180  rm -rf conftest*
1181  eval "ac_cv_header_$ac_safe=no"
1182fi
1183rm -f conftest*
1184fi
1185if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1186  echo "$ac_t""yes" 1>&6
1187    ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1188  cat >> confdefs.h <<EOF
1189#define $ac_tr_hdr 1
1190EOF
1191 
1192else
1193  echo "$ac_t""no" 1>&6
1194fi
1195done
1196
1197
1198if test "$ac_cv_lib_gmp_mpz_init" = yes && \
1199 test "$ac_cv_header_gmp_h" = yes; then
1200    ac_gmp_ok=yes
1201fi
1202
1203if test "$ac_cv_lib_MP_IMP_PutGmpInt" = yes && \
1204 test "$ac_cv_lib_MPT_MPT_GetTree" && \
1205 test "$ac_cv_header_MP_h" = yes && \
1206 test "$ac_cv_header_MPT_h" = yes; then
1207  ac_MP_ok=yes
1208fi
1209
1210if test "$ac_cv_lib_singcf_initCanonicalForm" = yes && \
1211 test "$ac_cv_header_factory_h" = yes; then
1212  ac_factory_ok=yes
1213fi
1214
1215if test "$ac_cv_lib_singfac_IrrCharSeries" = yes && \
1216 test "$ac_cv_header_factor_h" = yes; then
1217  ac_libfac_ok=yes
1218fi
1219
1220
1221 
1222# Check whether --enable-gmp or --disable-gmp was given.
1223if test "${enable_gmp+set}" = set; then
1224  enableval="$enable_gmp"
1225  :
1226fi
1227
1228# Check whether --enable-MP or --disable-MP was given.
1229if test "${enable_MP+set}" = set; then
1230  enableval="$enable_MP"
1231  :
1232fi
1233
1234# Check whether --enable-factory or --disable-factory was given.
1235if test "${enable_factory+set}" = set; then
1236  enableval="$enable_factory"
1237  :
1238fi
1239
1240# Check whether --enable-libfac or --disable-libfac was given.
1241if test "${enable_libfac+set}" = set; then
1242  enableval="$enable_libfac"
1243  :
1244fi
1245
1246# Check whether --enable-Singular or --disable-Singular was given.
1247if test "${enable_Singular+set}" = set; then
1248  enableval="$enable_Singular"
1249  :
1250fi
1251
1252
1253echo $ac_n "checking whether to configure and build gmp lib""... $ac_c" 1>&6
1254if test "$enable_gmp" != yes && test "$enable_gmp" != no; then
1255  if test "$with_gmp" != no && test "$ac_gmp_ok" != yes; then
1256    enable_gmp=yes
1257  else
1258    enable_gmp=no
1259  fi
1260fi
1261if test "$enable_gmp" = yes && test -d gmp; then
1262  if test "$ac_cv_is_aix" = yes && test "$GCC" = yes; then
1263    echo "$ac_t""no" 1>&6
1264    echo "configure: warning: Building gmp v2 with gcc results in a gmp lib with bugs" 1>&2
1265    echo "configure: warning: Install gmp v2 with another compiler first or use gmp v1.3" 1>&2
1266    echo "configure: warning: For the time being gmp is neither configured/built nor used" 1>&2
1267    enable_gmp=no
1268    ac_configure_args="$ac_configure_args --disable-gmp"
1269  else
1270    echo "$ac_t""yes" 1>&6
1271    CONFIG_SUBDIRS="gmp"
1272    ac_configure_args="$ac_configure_args --enable-gmp"
1273  fi
1274else
1275  echo "$ac_t""no" 1>&6
1276  if  test "$enable_gmp" = yes && test ! -d gmp; then
1277    echo "configure: warning: Did not find gmp subdirectory" 1>&2
1278  fi
1279  enable_gmp=no
1280  ac_configure_args="$ac_configure_args --disable-gmp"
1281fi
1282
1283echo $ac_n "checking whether to configure and build MP lib""... $ac_c" 1>&6
1284if test "$enable_MP" != yes && test "$enable_MP" != no; then
1285  if test "$with_MP" != no && test "$ac_MP_ok" != yes; then
1286    enable_MP=yes
1287  else
1288    enable_MP=no
1289  fi
1290fi
1291if test "$enable_MP" = yes && test -d MP; then
1292  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
1293    echo "$ac_t""yes" 1>&6
1294    CONFIG_SUBDIRS="$CONFIG_SUBDIRS MP"
1295    ac_configure_args="$ac_configure_args --enable-MP"
1296  else
1297    echo "$ac_t""no" 1>&6
1298    echo "configure: warning: Can not build MP for Singular without having gmp" 1>&2
1299    enable_MP=no
1300    ac_configure_args="$ac_configure_args --disable-MP"
1301  fi
1302else
1303  echo "$ac_t""no" 1>&6
1304  if  test "$enable_MP" = yes && test ! -d MP; then
1305    echo "configure: warning: Did not find MP subdirectory" 1>&2
1306  fi
1307  enable_MP=no
1308  ac_configure_args="$ac_configure_args --disable-MP"
1309fi
1310
1311echo $ac_n "checking whether to configure and build factory lib""... $ac_c" 1>&6
1312if test "$enable_factory" != yes && test "$enable_factory" != no; then
1313  if test "$with_factory" != no && test "$ac_factory_ok" != yes; then
1314    enable_factory=yes
1315  else
1316    enable_factory=no
1317  fi
1318fi
1319if test "$enable_factory" = yes && test -d factory; then
1320  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
1321  echo "$ac_t""yes" 1>&6
1322  CONFIG_SUBDIRS="$CONFIG_SUBDIRS factory"
1323  ac_configure_args="$ac_configure_args --enable-factory"
1324  else
1325    echo "$ac_t""no" 1>&6
1326    echo "configure: warning: Can not build factory without having gmp" 1>&2
1327    enable_factory=no
1328    ac_configure_args="$ac_configure_args --disable-factory"
1329  fi
1330else
1331  echo "$ac_t""no" 1>&6
1332  if  test "$enable_factory" = yes && test ! -d factory; then
1333    echo "configure: warning: Did not find factory subdirectory" 1>&2
1334  fi
1335  enable_factory=no
1336  ac_configure_args="$ac_configure_args --disable-factory"
1337fi
1338
1339echo $ac_n "checking whether to configure and build libfac lib""... $ac_c" 1>&6
1340if test "$enable_libfac" != yes && test "$enable_libfac" != no; then
1341  if test "$with_libfac" != no && test "$ac_libfac_ok" != yes; then
1342    enable_libfac=yes
1343  else
1344    enable_libfac=no
1345  fi
1346fi
1347if test "$enable_libfac" = yes && test -d libfac; then
1348  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1349  echo "$ac_t""yes" 1>&6
1350  CONFIG_SUBDIRS="$CONFIG_SUBDIRS libfac"
1351  ac_configure_args="$ac_configure_args --enable-libfac"
1352  else
1353    echo "$ac_t""no" 1>&6
1354    echo "configure: warning: Can not build libfac without factory" 1>&2
1355    enable_libfac=no
1356    ac_configure_args="$ac_configure_args --disable-libfac"
1357  fi
1358else
1359  echo "$ac_t""no" 1>&6
1360  if  test "$enable_libfac" = yes && test ! -d libfac; then
1361    echo "configure: warning: Did not find libfac subdirectory" 1>&2
1362  fi
1363  enable_libfac=no
1364  ac_configure_args="$ac_configure_args --disable-libfac"
1365fi
1366
1367echo $ac_n "checking whether to configure and build Singular""... $ac_c" 1>&6
1368if test "$enable_Singular" != yes && test "$enable_Singular" != no; then
1369  if test "$with_Singular" != no; then
1370    enable_Singular=yes
1371  else
1372    enable_Singular=no
1373  fi
1374fi
1375if test "$enable_Singular" = yes && test -d Singular; then
1376  echo "$ac_t""yes" 1>&6
1377  CONFIG_SUBDIRS="$CONFIG_SUBDIRS Singular"
1378  ac_configure_args="$ac_configure_args --enable-Singular"
1379else
1380  echo "$ac_t""no" 1>&6
1381  if  test "$enable_Singular" = yes && test ! -d Singular; then
1382    echo "configure: warning: Did not find Singular subdirectory" 1>&2
1383  fi
1384  enable_Singular=no
1385  ac_configure_args="$ac_configure_args --disable-Singular"
1386fi
1387
1388
1389echo $ac_n "checking whether to use with gmp""... $ac_c" 1>&6
1390if test "$with_gmp" != no && test "$with_gmp" != yes; then
1391  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
1392    with_gmp=yes
1393  else
1394    with_gmp=no
1395  fi
1396  ac_configure_args="$ac_configure_args --with-gmp=$with_gmp"
1397fi
1398if test "$with_gmp" = yes; then
1399  echo "$ac_t""yes" 1>&6
1400else
1401  echo "$ac_t""no" 1>&6
1402fi
1403
1404echo $ac_n "checking whether to use with MP""... $ac_c" 1>&6
1405if test "$with_MP" != no && test "$with_MP" != yes; then
1406  if test "$ac_MP_ok" = yes || test "$enable_MP" = yes; then
1407    with_MP=yes
1408  else
1409    with_MP=no
1410  fi
1411  ac_configure_args="$ac_configure_args --with-MP=$with_MP"
1412fi
1413if test "$with_MP" = yes; then
1414  echo "$ac_t""yes" 1>&6
1415else
1416  echo "$ac_t""no" 1>&6
1417fi
1418
1419echo $ac_n "checking whether to use with factory""... $ac_c" 1>&6
1420if test "$with_factory" != no && test "$with_factory" != yes; then
1421  if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then
1422    with_factory=yes
1423  else
1424    with_factory=no
1425  fi
1426  ac_configure_args="$ac_configure_args --with-factory=$with_factory"
1427fi
1428if test "$with_factory" = yes; then
1429  echo "$ac_t""yes" 1>&6
1430else
1431  echo "$ac_t""no" 1>&6
1432fi
1433
1434echo $ac_n "checking whether to use with libfac""... $ac_c" 1>&6
1435if test "$with_libfac" != no && test "$with_libfac" != yes; then
1436  if test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes; then
1437    with_libfac=yes
1438  else
1439    with_libfac=no
1440  fi
1441  ac_configure_args="$ac_configure_args --with-libfac=$with_libfac"
1442fi
1443if test "$with_libfac" = yes; then
1444  echo "$ac_t""yes" 1>&6
1445else
1446  echo "$ac_t""no" 1>&6
1447fi
1448
1449echo $ac_n "checking whether to use with Singular""... $ac_c" 1>&6
1450if test "$with_Singular" != no && test "$with_Singular" != yes; then
1451  if test "$enable_Singular" = yes; then
1452    with_Singular=yes
1453  else
1454    with_Singular=no
1455  fi
1456  ac_configure_args="$ac_configure_args --with-Singular=$with_Singular"
1457fi
1458
1459if test "$with_Singular" != no; then
1460  echo "$ac_t""yes" 1>&6
1461else
1462  echo "$ac_t""no" 1>&6
1463fi
1464
1465if test -d gmp; then
1466  SUBDIRS="gmp"
1467fi
1468if test -d MP; then
1469  SUBDIRS="$SUBDIRS MP"
1470fi
1471if test -d factory; then
1472  SUBDIRS="$SUBDIRS factory"
1473fi
1474if test -d libfac; then
1475  SUBDIRS="$SUBDIRS libfac"
1476fi
1477if test -d Singular; then
1478  SUBDIRS="$SUBDIRS Singular"
1479fi
1480 
1481
1482echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1483set dummy ${MAKE-make}; ac_make=$2
1484if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1485  echo $ac_n "(cached) $ac_c" 1>&6
1486else
1487  cat > conftestmake <<\EOF
1488all:
1489        @echo 'ac_maketemp="${MAKE}"'
1490EOF
1491# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1493if test -n "$ac_maketemp"; then
1494  eval ac_cv_prog_make_${ac_make}_set=yes
1495else
1496  eval ac_cv_prog_make_${ac_make}_set=no
1497fi
1498rm -f conftestmake
1499fi
1500if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501  echo "$ac_t""yes" 1>&6
1502  SET_MAKE=
1503else
1504  echo "$ac_t""no" 1>&6
1505  SET_MAKE="MAKE=${MAKE-make}"
1506fi
1507
1508
1509
1510subdirs="$CONFIG_SUBDIRS"
1511 
1512
1513trap '' 1 2 15
1514cat > confcache <<\EOF
1515# This file is a shell script that caches the results of configure
1516# tests run on this system so they can be shared between configure
1517# scripts and configure runs.  It is not useful on other systems.
1518# If it contains results you don't want to keep, you may remove or edit it.
1519#
1520# By default, configure uses ./config.cache as the cache file,
1521# creating it if it does not exist already.  You can give configure
1522# the --cache-file=FILE option to use a different cache file; that is
1523# what configure does when it calls configure scripts in
1524# subdirectories, so they share the cache.
1525# Giving --cache-file=/dev/null disables caching, for debugging configure.
1526# config.status only pays attention to the cache file if you give it the
1527# --recheck option to rerun configure.
1528#
1529EOF
1530# Ultrix sh set writes to stderr and can't be redirected directly,
1531# and sets the high bit in the cache file unless we assign to the vars.
1532(set) 2>&1 |
1533  sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1534  >> confcache
1535if cmp -s $cache_file confcache; then
1536  :
1537else
1538  if test -w $cache_file; then
1539    echo "updating cache $cache_file"
1540    cat confcache > $cache_file
1541  else
1542    echo "not updating unwritable cache $cache_file"
1543  fi
1544fi
1545rm -f confcache
1546
1547trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1548
1549test "x$prefix" = xNONE && prefix=$ac_default_prefix
1550# Let make expand exec_prefix.
1551test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1552
1553# Any assignment to VPATH causes Sun make to only execute
1554# the first set of double-colon rules, so remove it if not needed.
1555# If there is a colon in the path, we need to keep it.
1556if test "x$srcdir" = x.; then
1557  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1558fi
1559
1560trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1561
1562# Transform confdefs.h into DEFS.
1563# Protect against shell expansion while executing Makefile rules.
1564# Protect against Makefile macro expansion.
1565cat > conftest.defs <<\EOF
1566s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1567s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1568s%\[%\\&%g
1569s%\]%\\&%g
1570s%\$%$$%g
1571EOF
1572DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1573rm -f conftest.defs
1574
1575
1576# Without the "./", some shells look in PATH for config.status.
1577: ${CONFIG_STATUS=./config.status}
1578
1579echo creating $CONFIG_STATUS
1580rm -f $CONFIG_STATUS
1581cat > $CONFIG_STATUS <<EOF
1582#! /bin/sh
1583# Generated automatically by configure.
1584# Run this file to recreate the current configuration.
1585# This directory was configured as follows,
1586# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1587#
1588# $0 $ac_configure_args
1589#
1590# Compiler output produced by configure, useful for debugging
1591# configure, is in ./config.log if it exists.
1592
1593ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1594for ac_option
1595do
1596  case "\$ac_option" in
1597  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1598    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1599    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1600  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1601    echo "$CONFIG_STATUS generated by autoconf version 2.9"
1602    exit 0 ;;
1603  -help | --help | --hel | --he | --h)
1604    echo "\$ac_cs_usage"; exit 0 ;;
1605  *) echo "\$ac_cs_usage"; exit 1 ;;
1606  esac
1607done
1608
1609ac_given_srcdir=$srcdir
1610
1611trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1612EOF
1613cat >> $CONFIG_STATUS <<EOF
1614
1615# Protect against being on the right side of a sed subst in config.status.
1616sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1617 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1618$ac_vpsub
1619$extrasub
1620s%@CFLAGS@%$CFLAGS%g
1621s%@CPPFLAGS@%$CPPFLAGS%g
1622s%@CXXFLAGS@%$CXXFLAGS%g
1623s%@DEFS@%$DEFS%g
1624s%@LDFLAGS@%$LDFLAGS%g
1625s%@LIBS@%$LIBS%g
1626s%@exec_prefix@%$exec_prefix%g
1627s%@prefix@%$prefix%g
1628s%@program_transform_name@%$program_transform_name%g
1629s%@bindir@%$bindir%g
1630s%@sbindir@%$sbindir%g
1631s%@libexecdir@%$libexecdir%g
1632s%@datadir@%$datadir%g
1633s%@sysconfdir@%$sysconfdir%g
1634s%@sharedstatedir@%$sharedstatedir%g
1635s%@localstatedir@%$localstatedir%g
1636s%@libdir@%$libdir%g
1637s%@includedir@%$includedir%g
1638s%@oldincludedir@%$oldincludedir%g
1639s%@infodir@%$infodir%g
1640s%@mandir@%$mandir%g
1641s%@host@%$host%g
1642s%@host_alias@%$host_alias%g
1643s%@host_cpu@%$host_cpu%g
1644s%@host_vendor@%$host_vendor%g
1645s%@host_os@%$host_os%g
1646s%@target@%$target%g
1647s%@target_alias@%$target_alias%g
1648s%@target_cpu@%$target_cpu%g
1649s%@target_vendor@%$target_vendor%g
1650s%@target_os@%$target_os%g
1651s%@build@%$build%g
1652s%@build_alias@%$build_alias%g
1653s%@build_cpu@%$build_cpu%g
1654s%@build_vendor@%$build_vendor%g
1655s%@build_os@%$build_os%g
1656s%@CC@%$CC%g
1657s%@CPP@%$CPP%g
1658s%@SET_MAKE@%$SET_MAKE%g
1659s%@SUBDIRS@%$SUBDIRS%g
1660s%@CONFIG_SUBDIRS@%$CONFIG_SUBDIRS%g
1661s%@subdirs@%$subdirs%g
1662
1663CEOF
1664EOF
1665cat >> $CONFIG_STATUS <<EOF
1666
1667CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1668EOF
1669cat >> $CONFIG_STATUS <<\EOF
1670for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1671  # Support "outfile[:infile]", defaulting infile="outfile.in".
1672  case "$ac_file" in
1673  *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1674       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1675  *) ac_file_in="${ac_file}.in" ;;
1676  esac
1677
1678  # Adjust relative srcdir, etc. for subdirectories.
1679
1680  # Remove last slash and all that follows it.  Not all systems have dirname.
1681  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1682  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1683    # The file is in a subdirectory.
1684    test ! -d "$ac_dir" && mkdir "$ac_dir"
1685    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1686    # A "../" for each directory in $ac_dir_suffix.
1687    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1688  else
1689    ac_dir_suffix= ac_dots=
1690  fi
1691
1692  case "$ac_given_srcdir" in
1693  .)  srcdir=.
1694      if test -z "$ac_dots"; then top_srcdir=.
1695      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1696  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1697  *) # Relative path.
1698    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1699    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1700  esac
1701
1702  echo creating "$ac_file"
1703  rm -f "$ac_file"
1704  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1705  case "$ac_file" in
1706  *Makefile*) ac_comsub="1i\\
1707# $configure_input" ;;
1708  *) ac_comsub= ;;
1709  esac
1710  sed -e "$ac_comsub
1711s%@configure_input@%$configure_input%g
1712s%@srcdir@%$srcdir%g
1713s%@top_srcdir@%$top_srcdir%g
1714" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1715fi; done
1716rm -f conftest.subs
1717
1718
1719
1720exit 0
1721EOF
1722chmod +x $CONFIG_STATUS
1723rm -fr confdefs* $ac_clean_files
1724test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1725
1726if test "$no_recursion" != yes; then
1727
1728  # Remove --cache-file and --srcdir arguments so they do not pile up.
1729  ac_sub_configure_args=
1730  ac_prev=
1731  for ac_arg in $ac_configure_args; do
1732    if test -n "$ac_prev"; then
1733      ac_prev=
1734      continue
1735    fi
1736    case "$ac_arg" in
1737    -cache-file | --cache-file | --cache-fil | --cache-fi \
1738    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1739      ac_prev=cache_file ;;
1740    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1741    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1742      ;;
1743    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1744      ac_prev=srcdir ;;
1745    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1746      ;;
1747    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1748    esac
1749  done
1750
1751  for ac_config_dir in $CONFIG_SUBDIRS; do
1752
1753    # Do not complain, so a configure script can configure whichever
1754    # parts of a large source tree are present.
1755    if test ! -d $srcdir/$ac_config_dir; then
1756      continue
1757    fi
1758
1759    echo configuring in $ac_config_dir
1760
1761    case "$srcdir" in
1762    .) ;;
1763    *)
1764      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
1765      else
1766        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
1767      fi
1768      ;;
1769    esac
1770
1771    ac_popdir=`pwd`
1772    cd $ac_config_dir
1773
1774    case "$srcdir" in
1775    .) # No --srcdir option.  We are building in place.
1776      ac_sub_srcdir=$srcdir ;;
1777    /*) # Absolute path.
1778      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
1779    *) # Relative path.
1780      ac_sub_srcdir=../$srcdir/$ac_config_dir ;;
1781    esac
1782
1783    # Check for guested configure; otherwise get Cygnus style configure.
1784    if test -f $ac_sub_srcdir/configure; then
1785      ac_sub_configure=$ac_sub_srcdir/configure
1786    elif test -f $ac_sub_srcdir/configure.in; then
1787      ac_sub_configure=$ac_configure
1788    else
1789      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
1790      ac_sub_configure=
1791    fi
1792
1793    # The recursion is here.
1794    if test -n "$ac_sub_configure"; then
1795
1796      # Make the cache file name correct relative to the subdirectory.
1797      # A "../" for each directory in /$ac_config_dir.
1798      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
1799      case "$cache_file" in
1800      /*) ac_sub_cache_file=$cache_file ;;
1801      *) # Relative path.
1802        ac_sub_cache_file="$ac_dots$cache_file" ;;
1803      esac
1804
1805      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
1806      # The eval makes quoting arguments work.
1807      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
1808      then :
1809      else
1810        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
1811      fi
1812    fi
1813
1814    cd $ac_popdir
1815  done
1816fi
1817
Note: See TracBrowser for help on using the repository browser.