source: git/factory/configure @ 43b476

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