]> www.ginac.de Git - ginac.git/blob - configure
- renamed archive::dump() to archive::printraw() for consistency with the
[ginac.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --enable-html-doc       build HTML documentation [default=yes]"
16 ac_help="$ac_help
17   --enable-ps-doc         build PostScript documentation [default=yes]"
18 ac_help="$ac_help
19   --with-cint             build GiNaC-cint C++ interpreter [default=no]"
20 ac_help="$ac_help
21   --enable-maintainer-mode enable make rules and dependencies not useful
22                           (and sometimes confusing) to the casual installer"
23 ac_help="$ac_help
24   --enable-shared[=PKGS]  build shared libraries [default=yes]"
25 ac_help="$ac_help
26   --enable-static[=PKGS]  build static libraries [default=yes]"
27 ac_help="$ac_help
28   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
29 ac_help="$ac_help
30   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
31 ac_help="$ac_help
32   --disable-libtool-lock  avoid locking (might break parallel builds)"
33
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
37 build=NONE
38 cache_file=./config.cache
39 exec_prefix=NONE
40 host=NONE
41 no_create=
42 nonopt=NONE
43 no_recursion=
44 prefix=NONE
45 program_prefix=NONE
46 program_suffix=NONE
47 program_transform_name=s,x,x,
48 silent=
49 site=
50 srcdir=
51 target=NONE
52 verbose=
53 x_includes=NONE
54 x_libraries=NONE
55 bindir='${exec_prefix}/bin'
56 sbindir='${exec_prefix}/sbin'
57 libexecdir='${exec_prefix}/libexec'
58 datadir='${prefix}/share'
59 sysconfdir='${prefix}/etc'
60 sharedstatedir='${prefix}/com'
61 localstatedir='${prefix}/var'
62 libdir='${exec_prefix}/lib'
63 includedir='${prefix}/include'
64 oldincludedir='/usr/include'
65 infodir='${prefix}/info'
66 mandir='${prefix}/man'
67
68 # Initialize some other variables.
69 subdirs=
70 MFLAGS= MAKEFLAGS=
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
73 ac_max_here_lines=12
74
75 ac_prev=
76 for ac_option
77 do
78
79   # If the previous option needs an argument, assign it.
80   if test -n "$ac_prev"; then
81     eval "$ac_prev=\$ac_option"
82     ac_prev=
83     continue
84   fi
85
86   case "$ac_option" in
87   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88   *) ac_optarg= ;;
89   esac
90
91   # Accept the important Cygnus configure options, so we can diagnose typos.
92
93   case "$ac_option" in
94
95   -bindir | --bindir | --bindi | --bind | --bin | --bi)
96     ac_prev=bindir ;;
97   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98     bindir="$ac_optarg" ;;
99
100   -build | --build | --buil | --bui | --bu)
101     ac_prev=build ;;
102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103     build="$ac_optarg" ;;
104
105   -cache-file | --cache-file | --cache-fil | --cache-fi \
106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
107     ac_prev=cache_file ;;
108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
110     cache_file="$ac_optarg" ;;
111
112   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113     ac_prev=datadir ;;
114   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115   | --da=*)
116     datadir="$ac_optarg" ;;
117
118   -disable-* | --disable-*)
119     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
120     # Reject names that are not valid shell variable names.
121     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123     fi
124     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125     eval "enable_${ac_feature}=no" ;;
126
127   -enable-* | --enable-*)
128     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129     # Reject names that are not valid shell variable names.
130     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132     fi
133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134     case "$ac_option" in
135       *=*) ;;
136       *) ac_optarg=yes ;;
137     esac
138     eval "enable_${ac_feature}='$ac_optarg'" ;;
139
140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
142   | --exec | --exe | --ex)
143     ac_prev=exec_prefix ;;
144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
146   | --exec=* | --exe=* | --ex=*)
147     exec_prefix="$ac_optarg" ;;
148
149   -gas | --gas | --ga | --g)
150     # Obsolete; use --with-gas.
151     with_gas=yes ;;
152
153   -help | --help | --hel | --he)
154     # Omit some internal or obsolete options to make the list less imposing.
155     # This message is too long to be a string in the A/UX 3.1 sh.
156     cat << EOF
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
159 Configuration:
160   --cache-file=FILE       cache test results in FILE
161   --help                  print this message
162   --no-create             do not create output files
163   --quiet, --silent       do not print \`checking...' messages
164   --version               print the version of autoconf that created configure
165 Directory and file names:
166   --prefix=PREFIX         install architecture-independent files in PREFIX
167                           [$ac_default_prefix]
168   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
169                           [same as prefix]
170   --bindir=DIR            user executables in DIR [EPREFIX/bin]
171   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
172   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
173   --datadir=DIR           read-only architecture-independent data in DIR
174                           [PREFIX/share]
175   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
176   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
177                           [PREFIX/com]
178   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
179   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
180   --includedir=DIR        C header files in DIR [PREFIX/include]
181   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
182   --infodir=DIR           info documentation in DIR [PREFIX/info]
183   --mandir=DIR            man documentation in DIR [PREFIX/man]
184   --srcdir=DIR            find the sources in DIR [configure dir or ..]
185   --program-prefix=PREFIX prepend PREFIX to installed program names
186   --program-suffix=SUFFIX append SUFFIX to installed program names
187   --program-transform-name=PROGRAM
188                           run sed PROGRAM on installed program names
189 EOF
190     cat << EOF
191 Host type:
192   --build=BUILD           configure for building on BUILD [BUILD=HOST]
193   --host=HOST             configure for HOST [guessed]
194   --target=TARGET         configure for TARGET [TARGET=HOST]
195 Features and packages:
196   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
197   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
198   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
199   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
200   --x-includes=DIR        X include files are in DIR
201   --x-libraries=DIR       X library files are in DIR
202 EOF
203     if test -n "$ac_help"; then
204       echo "--enable and --with options recognized:$ac_help"
205     fi
206     exit 0 ;;
207
208   -host | --host | --hos | --ho)
209     ac_prev=host ;;
210   -host=* | --host=* | --hos=* | --ho=*)
211     host="$ac_optarg" ;;
212
213   -includedir | --includedir | --includedi | --included | --include \
214   | --includ | --inclu | --incl | --inc)
215     ac_prev=includedir ;;
216   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
217   | --includ=* | --inclu=* | --incl=* | --inc=*)
218     includedir="$ac_optarg" ;;
219
220   -infodir | --infodir | --infodi | --infod | --info | --inf)
221     ac_prev=infodir ;;
222   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223     infodir="$ac_optarg" ;;
224
225   -libdir | --libdir | --libdi | --libd)
226     ac_prev=libdir ;;
227   -libdir=* | --libdir=* | --libdi=* | --libd=*)
228     libdir="$ac_optarg" ;;
229
230   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
231   | --libexe | --libex | --libe)
232     ac_prev=libexecdir ;;
233   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
234   | --libexe=* | --libex=* | --libe=*)
235     libexecdir="$ac_optarg" ;;
236
237   -localstatedir | --localstatedir | --localstatedi | --localstated \
238   | --localstate | --localstat | --localsta | --localst \
239   | --locals | --local | --loca | --loc | --lo)
240     ac_prev=localstatedir ;;
241   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
242   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
243   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
244     localstatedir="$ac_optarg" ;;
245
246   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247     ac_prev=mandir ;;
248   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249     mandir="$ac_optarg" ;;
250
251   -nfp | --nfp | --nf)
252     # Obsolete; use --without-fp.
253     with_fp=no ;;
254
255   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256   | --no-cr | --no-c)
257     no_create=yes ;;
258
259   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261     no_recursion=yes ;;
262
263   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
264   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
265   | --oldin | --oldi | --old | --ol | --o)
266     ac_prev=oldincludedir ;;
267   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
268   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
269   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
270     oldincludedir="$ac_optarg" ;;
271
272   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273     ac_prev=prefix ;;
274   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275     prefix="$ac_optarg" ;;
276
277   -program-prefix | --program-prefix | --program-prefi | --program-pref \
278   | --program-pre | --program-pr | --program-p)
279     ac_prev=program_prefix ;;
280   -program-prefix=* | --program-prefix=* | --program-prefi=* \
281   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
282     program_prefix="$ac_optarg" ;;
283
284   -program-suffix | --program-suffix | --program-suffi | --program-suff \
285   | --program-suf | --program-su | --program-s)
286     ac_prev=program_suffix ;;
287   -program-suffix=* | --program-suffix=* | --program-suffi=* \
288   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
289     program_suffix="$ac_optarg" ;;
290
291   -program-transform-name | --program-transform-name \
292   | --program-transform-nam | --program-transform-na \
293   | --program-transform-n | --program-transform- \
294   | --program-transform | --program-transfor \
295   | --program-transfo | --program-transf \
296   | --program-trans | --program-tran \
297   | --progr-tra | --program-tr | --program-t)
298     ac_prev=program_transform_name ;;
299   -program-transform-name=* | --program-transform-name=* \
300   | --program-transform-nam=* | --program-transform-na=* \
301   | --program-transform-n=* | --program-transform-=* \
302   | --program-transform=* | --program-transfor=* \
303   | --program-transfo=* | --program-transf=* \
304   | --program-trans=* | --program-tran=* \
305   | --progr-tra=* | --program-tr=* | --program-t=*)
306     program_transform_name="$ac_optarg" ;;
307
308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309   | -silent | --silent | --silen | --sile | --sil)
310     silent=yes ;;
311
312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313     ac_prev=sbindir ;;
314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315   | --sbi=* | --sb=*)
316     sbindir="$ac_optarg" ;;
317
318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320   | --sharedst | --shareds | --shared | --share | --shar \
321   | --sha | --sh)
322     ac_prev=sharedstatedir ;;
323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326   | --sha=* | --sh=*)
327     sharedstatedir="$ac_optarg" ;;
328
329   -site | --site | --sit)
330     ac_prev=site ;;
331   -site=* | --site=* | --sit=*)
332     site="$ac_optarg" ;;
333
334   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335     ac_prev=srcdir ;;
336   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337     srcdir="$ac_optarg" ;;
338
339   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
340   | --syscon | --sysco | --sysc | --sys | --sy)
341     ac_prev=sysconfdir ;;
342   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
343   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
344     sysconfdir="$ac_optarg" ;;
345
346   -target | --target | --targe | --targ | --tar | --ta | --t)
347     ac_prev=target ;;
348   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349     target="$ac_optarg" ;;
350
351   -v | -verbose | --verbose | --verbos | --verbo | --verb)
352     verbose=yes ;;
353
354   -version | --version | --versio | --versi | --vers)
355     echo "configure generated by autoconf version 2.13"
356     exit 0 ;;
357
358   -with-* | --with-*)
359     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360     # Reject names that are not valid shell variable names.
361     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363     fi
364     ac_package=`echo $ac_package| sed 's/-/_/g'`
365     case "$ac_option" in
366       *=*) ;;
367       *) ac_optarg=yes ;;
368     esac
369     eval "with_${ac_package}='$ac_optarg'" ;;
370
371   -without-* | --without-*)
372     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
373     # Reject names that are not valid shell variable names.
374     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376     fi
377     ac_package=`echo $ac_package| sed 's/-/_/g'`
378     eval "with_${ac_package}=no" ;;
379
380   --x)
381     # Obsolete; use --with-x.
382     with_x=yes ;;
383
384   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
385   | --x-incl | --x-inc | --x-in | --x-i)
386     ac_prev=x_includes ;;
387   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
388   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
389     x_includes="$ac_optarg" ;;
390
391   -x-libraries | --x-libraries | --x-librarie | --x-librari \
392   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
393     ac_prev=x_libraries ;;
394   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
395   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
396     x_libraries="$ac_optarg" ;;
397
398   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399     ;;
400
401   *)
402     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403       echo "configure: warning: $ac_option: invalid host type" 1>&2
404     fi
405     if test "x$nonopt" != xNONE; then
406       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407     fi
408     nonopt="$ac_option"
409     ;;
410
411   esac
412 done
413
414 if test -n "$ac_prev"; then
415   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 fi
417
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419
420 # File descriptor usage:
421 # 0 standard input
422 # 1 file creation
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
429   exec 6>/dev/null
430 else
431   exec 6>&1
432 fi
433 exec 5>./config.log
434
435 echo "\
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
438 " 1>&5
439
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
442 ac_configure_args=
443 for ac_arg
444 do
445   case "$ac_arg" in
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c) ;;
448   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
449   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
450   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
452   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453   esac
454 done
455
456 # NLS nuisances.
457 # Only set these to C if already set.  These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
462 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
464 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
465
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 echo > confdefs.h
470
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
473 ac_unique_file=ginac/basic.cpp
474
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477   ac_srcdir_defaulted=yes
478   # Try the directory containing this script, then its parent.
479   ac_prog=$0
480   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482   srcdir=$ac_confdir
483   if test ! -r $srcdir/$ac_unique_file; then
484     srcdir=..
485   fi
486 else
487   ac_srcdir_defaulted=no
488 fi
489 if test ! -r $srcdir/$ac_unique_file; then
490   if test "$ac_srcdir_defaulted" = yes; then
491     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492   else
493     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494   fi
495 fi
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500   if test "x$prefix" != xNONE; then
501     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502   else
503     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504   fi
505 fi
506 for ac_site_file in $CONFIG_SITE; do
507   if test -r "$ac_site_file"; then
508     echo "loading site script $ac_site_file"
509     . "$ac_site_file"
510   fi
511 done
512
513 if test -r "$cache_file"; then
514   echo "loading cache $cache_file"
515   . $cache_file
516 else
517   echo "creating cache $cache_file"
518   > $cache_file
519 fi
520
521 ac_ext=c
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp='$CPP $CPPFLAGS'
524 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling=$ac_cv_prog_cc_cross
527
528 ac_exeext=
529 ac_objext=o
530 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
531   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533     ac_n= ac_c='
534 ' ac_t='        '
535   else
536     ac_n=-n ac_c= ac_t=
537   fi
538 else
539   ac_n= ac_c='\c' ac_t=
540 fi
541
542
543
544
545 # Check whether --enable-html-doc or --disable-html-doc was given.
546 if test "${enable_html_doc+set}" = set; then
547   enableval="$enable_html_doc"
548   :
549 else
550   enable_html_doc=yes
551 fi
552
553 # Check whether --enable-ps-doc or --disable-ps-doc was given.
554 if test "${enable_ps_doc+set}" = set; then
555   enableval="$enable_ps_doc"
556   :
557 else
558   enable_ps_doc=yes
559 fi
560
561 # Check whether --with-cint or --without-cint was given.
562 if test "${with_cint+set}" = set; then
563   withval="$with_cint"
564   with_cint=no]
565 fi
566
567
568
569 GINACLIB_MAJOR_VERSION=0
570 GINACLIB_MINOR_VERSION=4
571 GINACLIB_MICRO_VERSION=1
572 GINACLIB_INTERFACE_AGE=0
573 GINACLIB_BINARY_AGE=1
574 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
575
576
577
578
579
580
581
582
583
584 ARCHIVE_VERSION=0
585 ARCHIVE_AGE=0
586
587
588
589 cat >> confdefs.h <<EOF
590 #define ARCHIVE_VERSION $ARCHIVE_VERSION
591 EOF
592
593 cat >> confdefs.h <<EOF
594 #define ARCHIVE_AGE $ARCHIVE_AGE
595 EOF
596
597
598 LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
599 LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
600 LT_REVISION=$GINACLIB_INTERFACE_AGE
601 LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
602
603
604
605
606
607
608
609
610
611 ac_aux_dir=
612 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
613   if test -f $ac_dir/install-sh; then
614     ac_aux_dir=$ac_dir
615     ac_install_sh="$ac_aux_dir/install-sh -c"
616     break
617   elif test -f $ac_dir/install.sh; then
618     ac_aux_dir=$ac_dir
619     ac_install_sh="$ac_aux_dir/install.sh -c"
620     break
621   fi
622 done
623 if test -z "$ac_aux_dir"; then
624   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
625 fi
626 ac_config_guess=$ac_aux_dir/config.guess
627 ac_config_sub=$ac_aux_dir/config.sub
628 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
629
630 # Find a good install program.  We prefer a C program (faster),
631 # so one script is as good as another.  But avoid the broken or
632 # incompatible versions:
633 # SysV /etc/install, /usr/sbin/install
634 # SunOS /usr/etc/install
635 # IRIX /sbin/install
636 # AIX /bin/install
637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
640 # ./install, which can be erroneously created by make from ./install.sh.
641 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
642 echo "configure:643: checking for a BSD compatible install" >&5
643 if test -z "$INSTALL"; then
644 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
645   echo $ac_n "(cached) $ac_c" 1>&6
646 else
647     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
648   for ac_dir in $PATH; do
649     # Account for people who put trailing slashes in PATH elements.
650     case "$ac_dir/" in
651     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
652     *)
653       # OSF1 and SCO ODT 3.0 have their own names for install.
654       # Don't use installbsd from OSF since it installs stuff as root
655       # by default.
656       for ac_prog in ginstall scoinst install; do
657         if test -f $ac_dir/$ac_prog; then
658           if test $ac_prog = install &&
659             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
660             # AIX install.  It has an incompatible calling convention.
661             :
662           else
663             ac_cv_path_install="$ac_dir/$ac_prog -c"
664             break 2
665           fi
666         fi
667       done
668       ;;
669     esac
670   done
671   IFS="$ac_save_IFS"
672
673 fi
674   if test "${ac_cv_path_install+set}" = set; then
675     INSTALL="$ac_cv_path_install"
676   else
677     # As a last resort, use the slow shell script.  We don't cache a
678     # path for INSTALL within a source directory, because that will
679     # break other packages using the cache if that directory is
680     # removed, or if the path is relative.
681     INSTALL="$ac_install_sh"
682   fi
683 fi
684 echo "$ac_t""$INSTALL" 1>&6
685
686 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
687 # It thinks the first close brace ends the variable substitution.
688 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
689
690 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
691
692 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
693
694 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
695 echo "configure:696: checking whether build environment is sane" >&5
696 # Just in case
697 sleep 1
698 echo timestamp > conftestfile
699 # Do `set' in a subshell so we don't clobber the current shell's
700 # arguments.  Must try -L first in case configure is actually a
701 # symlink; some systems play weird games with the mod time of symlinks
702 # (eg FreeBSD returns the mod time of the symlink's containing
703 # directory).
704 if (
705    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
706    if test "$*" = "X"; then
707       # -L didn't work.
708       set X `ls -t $srcdir/configure conftestfile`
709    fi
710    if test "$*" != "X $srcdir/configure conftestfile" \
711       && test "$*" != "X conftestfile $srcdir/configure"; then
712
713       # If neither matched, then we have a broken ls.  This can happen
714       # if, for instance, CONFIG_SHELL is bash and it inherits a
715       # broken ls alias from the environment.  This has actually
716       # happened.  Such a system could not be considered "sane".
717       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
718 alias in your environment" 1>&2; exit 1; }
719    fi
720
721    test "$2" = conftestfile
722    )
723 then
724    # Ok.
725    :
726 else
727    { echo "configure: error: newly created file is older than distributed files!
728 Check your system clock" 1>&2; exit 1; }
729 fi
730 rm -f conftest*
731 echo "$ac_t""yes" 1>&6
732 if test "$program_transform_name" = s,x,x,; then
733   program_transform_name=
734 else
735   # Double any \ or $.  echo might interpret backslashes.
736   cat <<\EOF_SED > conftestsed
737 s,\\,\\\\,g; s,\$,$$,g
738 EOF_SED
739   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
740   rm -f conftestsed
741 fi
742 test "$program_prefix" != NONE &&
743   program_transform_name="s,^,${program_prefix},; $program_transform_name"
744 # Use a double $ so make ignores it.
745 test "$program_suffix" != NONE &&
746   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
747
748 # sed with no file args requires a program.
749 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
750
751 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
752 echo "configure:753: checking whether ${MAKE-make} sets \${MAKE}" >&5
753 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
754 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
755   echo $ac_n "(cached) $ac_c" 1>&6
756 else
757   cat > conftestmake <<\EOF
758 all:
759         @echo 'ac_maketemp="${MAKE}"'
760 EOF
761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
762 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
763 if test -n "$ac_maketemp"; then
764   eval ac_cv_prog_make_${ac_make}_set=yes
765 else
766   eval ac_cv_prog_make_${ac_make}_set=no
767 fi
768 rm -f conftestmake
769 fi
770 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
771   echo "$ac_t""yes" 1>&6
772   SET_MAKE=
773 else
774   echo "$ac_t""no" 1>&6
775   SET_MAKE="MAKE=${MAKE-make}"
776 fi
777
778
779 PACKAGE=GiNaC
780
781 VERSION=$GINACLIB_VERSION
782
783 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
784   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
785 fi
786 cat >> confdefs.h <<EOF
787 #define PACKAGE "$PACKAGE"
788 EOF
789
790 cat >> confdefs.h <<EOF
791 #define VERSION "$VERSION"
792 EOF
793
794
795
796 missing_dir=`cd $ac_aux_dir && pwd`
797 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
798 echo "configure:799: checking for working aclocal" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf.  Sigh.
802 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
803    ACLOCAL=aclocal
804    echo "$ac_t""found" 1>&6
805 else
806    ACLOCAL="$missing_dir/missing aclocal"
807    echo "$ac_t""missing" 1>&6
808 fi
809
810 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoconf" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf.  Sigh.
815 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
816    AUTOCONF=autoconf
817    echo "$ac_t""found" 1>&6
818 else
819    AUTOCONF="$missing_dir/missing autoconf"
820    echo "$ac_t""missing" 1>&6
821 fi
822
823 echo $ac_n "checking for working automake""... $ac_c" 1>&6
824 echo "configure:825: checking for working automake" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf.  Sigh.
828 if (automake --version) < /dev/null > /dev/null 2>&1; then
829    AUTOMAKE=automake
830    echo "$ac_t""found" 1>&6
831 else
832    AUTOMAKE="$missing_dir/missing automake"
833    echo "$ac_t""missing" 1>&6
834 fi
835
836 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
837 echo "configure:838: checking for working autoheader" >&5
838 # Run test in a subshell; some versions of sh will print an error if
839 # an executable is not found, even if stderr is redirected.
840 # Redirect stdin to placate older versions of autoconf.  Sigh.
841 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
842    AUTOHEADER=autoheader
843    echo "$ac_t""found" 1>&6
844 else
845    AUTOHEADER="$missing_dir/missing autoheader"
846    echo "$ac_t""missing" 1>&6
847 fi
848
849 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
850 echo "configure:851: checking for working makeinfo" >&5
851 # Run test in a subshell; some versions of sh will print an error if
852 # an executable is not found, even if stderr is redirected.
853 # Redirect stdin to placate older versions of autoconf.  Sigh.
854 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
855    MAKEINFO=makeinfo
856    echo "$ac_t""found" 1>&6
857 else
858    MAKEINFO="$missing_dir/missing makeinfo"
859    echo "$ac_t""missing" 1>&6
860 fi
861
862
863 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
864 echo "configure:865: checking whether to enable maintainer-specific portions of Makefiles" >&5
865     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
866 if test "${enable_maintainer_mode+set}" = set; then
867   enableval="$enable_maintainer_mode"
868   USE_MAINTAINER_MODE=$enableval
869 else
870   USE_MAINTAINER_MODE=no
871 fi
872
873   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
874   
875
876 if test $USE_MAINTAINER_MODE = yes; then
877   MAINTAINER_MODE_TRUE=
878   MAINTAINER_MODE_FALSE='#'
879 else
880   MAINTAINER_MODE_TRUE='#'
881   MAINTAINER_MODE_FALSE=
882 fi
883   MAINT=$MAINTAINER_MODE_TRUE
884   
885
886
887 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
888 do
889 # Extract the first word of "$ac_prog", so it can be a program name with args.
890 set dummy $ac_prog; ac_word=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
894   echo $ac_n "(cached) $ac_c" 1>&6
895 else
896   if test -n "$CXX"; then
897   ac_cv_prog_CXX="$CXX" # Let the user override the test.
898 else
899   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
900   ac_dummy="$PATH"
901   for ac_dir in $ac_dummy; do
902     test -z "$ac_dir" && ac_dir=.
903     if test -f $ac_dir/$ac_word; then
904       ac_cv_prog_CXX="$ac_prog"
905       break
906     fi
907   done
908   IFS="$ac_save_ifs"
909 fi
910 fi
911 CXX="$ac_cv_prog_CXX"
912 if test -n "$CXX"; then
913   echo "$ac_t""$CXX" 1>&6
914 else
915   echo "$ac_t""no" 1>&6
916 fi
917
918 test -n "$CXX" && break
919 done
920 test -n "$CXX" || CXX="gcc"
921
922
923 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
924 echo "configure:925: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
925
926 ac_ext=C
927 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CXXCPP $CPPFLAGS'
929 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cxx_cross
932
933 cat > conftest.$ac_ext << EOF
934
935 #line 936 "configure"
936 #include "confdefs.h"
937
938 int main(){return(0);}
939 EOF
940 if { (eval echo configure:941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
941   ac_cv_prog_cxx_works=yes
942   # If we can't run a trivial program, we are probably using a cross compiler.
943   if (./conftest; exit) 2>/dev/null; then
944     ac_cv_prog_cxx_cross=no
945   else
946     ac_cv_prog_cxx_cross=yes
947   fi
948 else
949   echo "configure: failed program was:" >&5
950   cat conftest.$ac_ext >&5
951   ac_cv_prog_cxx_works=no
952 fi
953 rm -fr conftest*
954 ac_ext=c
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
960
961 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
962 if test $ac_cv_prog_cxx_works = no; then
963   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
964 fi
965 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
966 echo "configure:967: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
967 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
968 cross_compiling=$ac_cv_prog_cxx_cross
969
970 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
971 echo "configure:972: checking whether we are using GNU C++" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
973   echo $ac_n "(cached) $ac_c" 1>&6
974 else
975   cat > conftest.C <<EOF
976 #ifdef __GNUC__
977   yes;
978 #endif
979 EOF
980 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
981   ac_cv_prog_gxx=yes
982 else
983   ac_cv_prog_gxx=no
984 fi
985 fi
986
987 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
988
989 if test $ac_cv_prog_gxx = yes; then
990   GXX=yes
991 else
992   GXX=
993 fi
994
995 ac_test_CXXFLAGS="${CXXFLAGS+set}"
996 ac_save_CXXFLAGS="$CXXFLAGS"
997 CXXFLAGS=
998 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
999 echo "configure:1000: checking whether ${CXX-g++} accepts -g" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1001   echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003   echo 'void f(){}' > conftest.cc
1004 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1005   ac_cv_prog_cxx_g=yes
1006 else
1007   ac_cv_prog_cxx_g=no
1008 fi
1009 rm -f conftest*
1010
1011 fi
1012
1013 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1014 if test "$ac_test_CXXFLAGS" = set; then
1015   CXXFLAGS="$ac_save_CXXFLAGS"
1016 elif test $ac_cv_prog_cxx_g = yes; then
1017   if test "$GXX" = yes; then
1018     CXXFLAGS="-g -O2"
1019   else
1020     CXXFLAGS="-g"
1021   fi
1022 else
1023   if test "$GXX" = yes; then
1024     CXXFLAGS="-O2"
1025   else
1026     CXXFLAGS=
1027   fi
1028 fi
1029
1030 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1031 echo "configure:1032: checking how to run the C++ preprocessor" >&5
1032 if test -z "$CXXCPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1034   echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1036   ac_ext=C
1037 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1038 ac_cpp='$CXXCPP $CPPFLAGS'
1039 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1040 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1041 cross_compiling=$ac_cv_prog_cxx_cross
1042   CXXCPP="${CXX-g++} -E"
1043   cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1046 #include <stdlib.h>
1047 EOF
1048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1049 { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1051 if test -z "$ac_err"; then
1052   :
1053 else
1054   echo "$ac_err" >&5
1055   echo "configure: failed program was:" >&5
1056   cat conftest.$ac_ext >&5
1057   rm -rf conftest*
1058   CXXCPP=/lib/cpp
1059 fi
1060 rm -f conftest*
1061   ac_cv_prog_CXXCPP="$CXXCPP"
1062 ac_ext=c
1063 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1064 ac_cpp='$CPP $CPPFLAGS'
1065 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1066 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1067 cross_compiling=$ac_cv_prog_cc_cross
1068 fi
1069 fi
1070 CXXCPP="$ac_cv_prog_CXXCPP"
1071 echo "$ac_t""$CXXCPP" 1>&6
1072
1073 # Find a good install program.  We prefer a C program (faster),
1074 # so one script is as good as another.  But avoid the broken or
1075 # incompatible versions:
1076 # SysV /etc/install, /usr/sbin/install
1077 # SunOS /usr/etc/install
1078 # IRIX /sbin/install
1079 # AIX /bin/install
1080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1083 # ./install, which can be erroneously created by make from ./install.sh.
1084 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1085 echo "configure:1086: checking for a BSD compatible install" >&5
1086 if test -z "$INSTALL"; then
1087 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1088   echo $ac_n "(cached) $ac_c" 1>&6
1089 else
1090     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1091   for ac_dir in $PATH; do
1092     # Account for people who put trailing slashes in PATH elements.
1093     case "$ac_dir/" in
1094     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1095     *)
1096       # OSF1 and SCO ODT 3.0 have their own names for install.
1097       # Don't use installbsd from OSF since it installs stuff as root
1098       # by default.
1099       for ac_prog in ginstall scoinst install; do
1100         if test -f $ac_dir/$ac_prog; then
1101           if test $ac_prog = install &&
1102             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1103             # AIX install.  It has an incompatible calling convention.
1104             :
1105           else
1106             ac_cv_path_install="$ac_dir/$ac_prog -c"
1107             break 2
1108           fi
1109         fi
1110       done
1111       ;;
1112     esac
1113   done
1114   IFS="$ac_save_IFS"
1115
1116 fi
1117   if test "${ac_cv_path_install+set}" = set; then
1118     INSTALL="$ac_cv_path_install"
1119   else
1120     # As a last resort, use the slow shell script.  We don't cache a
1121     # path for INSTALL within a source directory, because that will
1122     # break other packages using the cache if that directory is
1123     # removed, or if the path is relative.
1124     INSTALL="$ac_install_sh"
1125   fi
1126 fi
1127 echo "$ac_t""$INSTALL" 1>&6
1128
1129 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1130 # It thinks the first close brace ends the variable substitution.
1131 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1132
1133 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1134
1135 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1136
1137 # Check whether --enable-shared or --disable-shared was given.
1138 if test "${enable_shared+set}" = set; then
1139   enableval="$enable_shared"
1140   p=${PACKAGE-default}
1141 case "$enableval" in
1142 yes) enable_shared=yes ;;
1143 no) enable_shared=no ;;
1144 *)
1145   enable_shared=no
1146   # Look at the argument we got.  We use all the common list separators.
1147   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1148   for pkg in $enableval; do
1149     if test "X$pkg" = "X$p"; then
1150       enable_shared=yes
1151     fi
1152   done
1153   IFS="$ac_save_ifs"
1154   ;;
1155 esac
1156 else
1157   enable_shared=yes
1158 fi
1159
1160 # Check whether --enable-static or --disable-static was given.
1161 if test "${enable_static+set}" = set; then
1162   enableval="$enable_static"
1163   p=${PACKAGE-default}
1164 case "$enableval" in
1165 yes) enable_static=yes ;;
1166 no) enable_static=no ;;
1167 *)
1168   enable_static=no
1169   # Look at the argument we got.  We use all the common list separators.
1170   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1171   for pkg in $enableval; do
1172     if test "X$pkg" = "X$p"; then
1173       enable_static=yes
1174     fi
1175   done
1176   IFS="$ac_save_ifs"
1177   ;;
1178 esac
1179 else
1180   enable_static=yes
1181 fi
1182
1183 # Check whether --enable-fast-install or --disable-fast-install was given.
1184 if test "${enable_fast_install+set}" = set; then
1185   enableval="$enable_fast_install"
1186   p=${PACKAGE-default}
1187 case "$enableval" in
1188 yes) enable_fast_install=yes ;;
1189 no) enable_fast_install=no ;;
1190 *)
1191   enable_fast_install=no
1192   # Look at the argument we got.  We use all the common list separators.
1193   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1194   for pkg in $enableval; do
1195     if test "X$pkg" = "X$p"; then
1196       enable_fast_install=yes
1197     fi
1198   done
1199   IFS="$ac_save_ifs"
1200   ;;
1201 esac
1202 else
1203   enable_fast_install=yes
1204 fi
1205
1206
1207 # Make sure we can run config.sub.
1208 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1209 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1210 fi
1211
1212 echo $ac_n "checking host system type""... $ac_c" 1>&6
1213 echo "configure:1214: checking host system type" >&5
1214
1215 host_alias=$host
1216 case "$host_alias" in
1217 NONE)
1218   case $nonopt in
1219   NONE)
1220     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1221     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1222     fi ;;
1223   *) host_alias=$nonopt ;;
1224   esac ;;
1225 esac
1226
1227 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1228 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1229 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1230 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1231 echo "$ac_t""$host" 1>&6
1232
1233 echo $ac_n "checking build system type""... $ac_c" 1>&6
1234 echo "configure:1235: checking build system type" >&5
1235
1236 build_alias=$build
1237 case "$build_alias" in
1238 NONE)
1239   case $nonopt in
1240   NONE) build_alias=$host_alias ;;
1241   *) build_alias=$nonopt ;;
1242   esac ;;
1243 esac
1244
1245 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1246 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1247 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1248 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1249 echo "$ac_t""$build" 1>&6
1250
1251 # Extract the first word of "ranlib", so it can be a program name with args.
1252 set dummy ranlib; ac_word=$2
1253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_word" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1256   echo $ac_n "(cached) $ac_c" 1>&6
1257 else
1258   if test -n "$RANLIB"; then
1259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1260 else
1261   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1262   ac_dummy="$PATH"
1263   for ac_dir in $ac_dummy; do
1264     test -z "$ac_dir" && ac_dir=.
1265     if test -f $ac_dir/$ac_word; then
1266       ac_cv_prog_RANLIB="ranlib"
1267       break
1268     fi
1269   done
1270   IFS="$ac_save_ifs"
1271   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1272 fi
1273 fi
1274 RANLIB="$ac_cv_prog_RANLIB"
1275 if test -n "$RANLIB"; then
1276   echo "$ac_t""$RANLIB" 1>&6
1277 else
1278   echo "$ac_t""no" 1>&6
1279 fi
1280
1281 # Extract the first word of "gcc", so it can be a program name with args.
1282 set dummy gcc; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1286   echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288   if test -n "$CC"; then
1289   ac_cv_prog_CC="$CC" # Let the user override the test.
1290 else
1291   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1292   ac_dummy="$PATH"
1293   for ac_dir in $ac_dummy; do
1294     test -z "$ac_dir" && ac_dir=.
1295     if test -f $ac_dir/$ac_word; then
1296       ac_cv_prog_CC="gcc"
1297       break
1298     fi
1299   done
1300   IFS="$ac_save_ifs"
1301 fi
1302 fi
1303 CC="$ac_cv_prog_CC"
1304 if test -n "$CC"; then
1305   echo "$ac_t""$CC" 1>&6
1306 else
1307   echo "$ac_t""no" 1>&6
1308 fi
1309
1310 if test -z "$CC"; then
1311   # Extract the first word of "cc", so it can be a program name with args.
1312 set dummy cc; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1316   echo $ac_n "(cached) $ac_c" 1>&6
1317 else
1318   if test -n "$CC"; then
1319   ac_cv_prog_CC="$CC" # Let the user override the test.
1320 else
1321   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1322   ac_prog_rejected=no
1323   ac_dummy="$PATH"
1324   for ac_dir in $ac_dummy; do
1325     test -z "$ac_dir" && ac_dir=.
1326     if test -f $ac_dir/$ac_word; then
1327       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1328         ac_prog_rejected=yes
1329         continue
1330       fi
1331       ac_cv_prog_CC="cc"
1332       break
1333     fi
1334   done
1335   IFS="$ac_save_ifs"
1336 if test $ac_prog_rejected = yes; then
1337   # We found a bogon in the path, so make sure we never use it.
1338   set dummy $ac_cv_prog_CC
1339   shift
1340   if test $# -gt 0; then
1341     # We chose a different compiler from the bogus one.
1342     # However, it has the same basename, so the bogon will be chosen
1343     # first if we set CC to just the basename; use the full file name.
1344     shift
1345     set dummy "$ac_dir/$ac_word" "$@"
1346     shift
1347     ac_cv_prog_CC="$@"
1348   fi
1349 fi
1350 fi
1351 fi
1352 CC="$ac_cv_prog_CC"
1353 if test -n "$CC"; then
1354   echo "$ac_t""$CC" 1>&6
1355 else
1356   echo "$ac_t""no" 1>&6
1357 fi
1358
1359   if test -z "$CC"; then
1360     case "`uname -s`" in
1361     *win32* | *WIN32*)
1362       # Extract the first word of "cl", so it can be a program name with args.
1363 set dummy cl; ac_word=$2
1364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_word" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1367   echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369   if test -n "$CC"; then
1370   ac_cv_prog_CC="$CC" # Let the user override the test.
1371 else
1372   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1373   ac_dummy="$PATH"
1374   for ac_dir in $ac_dummy; do
1375     test -z "$ac_dir" && ac_dir=.
1376     if test -f $ac_dir/$ac_word; then
1377       ac_cv_prog_CC="cl"
1378       break
1379     fi
1380   done
1381   IFS="$ac_save_ifs"
1382 fi
1383 fi
1384 CC="$ac_cv_prog_CC"
1385 if test -n "$CC"; then
1386   echo "$ac_t""$CC" 1>&6
1387 else
1388   echo "$ac_t""no" 1>&6
1389 fi
1390  ;;
1391     esac
1392   fi
1393   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1394 fi
1395
1396 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1397 echo "configure:1398: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1398
1399 ac_ext=c
1400 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1401 ac_cpp='$CPP $CPPFLAGS'
1402 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1403 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1404 cross_compiling=$ac_cv_prog_cc_cross
1405
1406 cat > conftest.$ac_ext << EOF
1407
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1410
1411 main(){return(0);}
1412 EOF
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1414   ac_cv_prog_cc_works=yes
1415   # If we can't run a trivial program, we are probably using a cross compiler.
1416   if (./conftest; exit) 2>/dev/null; then
1417     ac_cv_prog_cc_cross=no
1418   else
1419     ac_cv_prog_cc_cross=yes
1420   fi
1421 else
1422   echo "configure: failed program was:" >&5
1423   cat conftest.$ac_ext >&5
1424   ac_cv_prog_cc_works=no
1425 fi
1426 rm -fr conftest*
1427 ac_ext=c
1428 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1431 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1432 cross_compiling=$ac_cv_prog_cc_cross
1433
1434 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1435 if test $ac_cv_prog_cc_works = no; then
1436   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1437 fi
1438 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1439 echo "configure:1440: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1440 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1441 cross_compiling=$ac_cv_prog_cc_cross
1442
1443 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether we are using GNU C" >&5
1445 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1446   echo $ac_n "(cached) $ac_c" 1>&6
1447 else
1448   cat > conftest.c <<EOF
1449 #ifdef __GNUC__
1450   yes;
1451 #endif
1452 EOF
1453 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1454   ac_cv_prog_gcc=yes
1455 else
1456   ac_cv_prog_gcc=no
1457 fi
1458 fi
1459
1460 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1461
1462 if test $ac_cv_prog_gcc = yes; then
1463   GCC=yes
1464 else
1465   GCC=
1466 fi
1467
1468 ac_test_CFLAGS="${CFLAGS+set}"
1469 ac_save_CFLAGS="$CFLAGS"
1470 CFLAGS=
1471 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1472 echo "configure:1473: checking whether ${CC-cc} accepts -g" >&5
1473 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1474   echo $ac_n "(cached) $ac_c" 1>&6
1475 else
1476   echo 'void f(){}' > conftest.c
1477 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1478   ac_cv_prog_cc_g=yes
1479 else
1480   ac_cv_prog_cc_g=no
1481 fi
1482 rm -f conftest*
1483
1484 fi
1485
1486 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1487 if test "$ac_test_CFLAGS" = set; then
1488   CFLAGS="$ac_save_CFLAGS"
1489 elif test $ac_cv_prog_cc_g = yes; then
1490   if test "$GCC" = yes; then
1491     CFLAGS="-g -O2"
1492   else
1493     CFLAGS="-g"
1494   fi
1495 else
1496   if test "$GCC" = yes; then
1497     CFLAGS="-O2"
1498   else
1499     CFLAGS=
1500   fi
1501 fi
1502
1503 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1504 if test "${with_gnu_ld+set}" = set; then
1505   withval="$with_gnu_ld"
1506   test "$withval" = no || with_gnu_ld=yes
1507 else
1508   with_gnu_ld=no
1509 fi
1510
1511 ac_prog=ld
1512 if test "$ac_cv_prog_gcc" = yes; then
1513   # Check if gcc -print-prog-name=ld gives a path.
1514   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1515 echo "configure:1516: checking for ld used by GCC" >&5
1516   ac_prog=`($CC -print-prog-name=ld) 2>&5`
1517   case "$ac_prog" in
1518     # Accept absolute paths.
1519     [\\/]* | [A-Za-z]:[\\/]*)
1520       re_direlt='/[^/][^/]*/\.\./'
1521       # Canonicalize the path of ld
1522       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1523       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1524         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1525       done
1526       test -z "$LD" && LD="$ac_prog"
1527       ;;
1528   "")
1529     # If it fails, then pretend we aren't using GCC.
1530     ac_prog=ld
1531     ;;
1532   *)
1533     # If it is relative, then search for the first ld in PATH.
1534     with_gnu_ld=unknown
1535     ;;
1536   esac
1537 elif test "$with_gnu_ld" = yes; then
1538   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1539 echo "configure:1540: checking for GNU ld" >&5
1540 else
1541   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1542 echo "configure:1543: checking for non-GNU ld" >&5
1543 fi
1544 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1545   echo $ac_n "(cached) $ac_c" 1>&6
1546 else
1547   if test -z "$LD"; then
1548   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1549   for ac_dir in $PATH; do
1550     test -z "$ac_dir" && ac_dir=.
1551     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1552       ac_cv_path_LD="$ac_dir/$ac_prog"
1553       # Check to see if the program is GNU ld.  I'd rather use --version,
1554       # but apparently some GNU ld's only accept -v.
1555       # Break only if it was the GNU/non-GNU ld that we prefer.
1556       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1557         test "$with_gnu_ld" != no && break
1558       else
1559         test "$with_gnu_ld" != yes && break
1560       fi
1561     fi
1562   done
1563   IFS="$ac_save_ifs"
1564 else
1565   ac_cv_path_LD="$LD" # Let the user override the test with a path.
1566 fi
1567 fi
1568
1569 LD="$ac_cv_path_LD"
1570 if test -n "$LD"; then
1571   echo "$ac_t""$LD" 1>&6
1572 else
1573   echo "$ac_t""no" 1>&6
1574 fi
1575 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1576
1577 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1578 echo "configure:1579: checking if the linker ($LD) is GNU ld" >&5
1579 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1580   echo $ac_n "(cached) $ac_c" 1>&6
1581 else
1582   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1583 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1584   ac_cv_prog_gnu_ld=yes
1585 else
1586   ac_cv_prog_gnu_ld=no
1587 fi
1588 fi
1589
1590 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1591
1592
1593 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1594 echo "configure:1595: checking for BSD-compatible nm" >&5
1595 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1596   echo $ac_n "(cached) $ac_c" 1>&6
1597 else
1598   if test -n "$NM"; then
1599   # Let the user override the test.
1600   ac_cv_path_NM="$NM"
1601 else
1602   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1603   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1604     test -z "$ac_dir" && ac_dir=.
1605     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1606       # Check to see if the nm accepts a BSD-compat flag.
1607       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1608       #   nm: unknown option "B" ignored
1609       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1610         ac_cv_path_NM="$ac_dir/nm -B"
1611         break
1612       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1613         ac_cv_path_NM="$ac_dir/nm -p"
1614         break
1615       else
1616         ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1617         continue # so that we can try to find one that supports BSD flags
1618       fi
1619     fi
1620   done
1621   IFS="$ac_save_ifs"
1622   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1623 fi
1624 fi
1625
1626 NM="$ac_cv_path_NM"
1627 echo "$ac_t""$NM" 1>&6
1628
1629
1630 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1631 echo "configure:1632: checking whether ln -s works" >&5
1632 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1633   echo $ac_n "(cached) $ac_c" 1>&6
1634 else
1635   rm -f conftestdata
1636 if ln -s X conftestdata 2>/dev/null
1637 then
1638   rm -f conftestdata
1639   ac_cv_prog_LN_S="ln -s"
1640 else
1641   ac_cv_prog_LN_S=ln
1642 fi
1643 fi
1644 LN_S="$ac_cv_prog_LN_S"
1645 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1646   echo "$ac_t""yes" 1>&6
1647 else
1648   echo "$ac_t""no" 1>&6
1649 fi
1650
1651
1652 # Check for any special flags to pass to ltconfig.
1653 libtool_flags="--cache-file=$cache_file"
1654 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1655 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1656 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1657 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1658 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1659
1660
1661 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1662 if test "${enable_libtool_lock+set}" = set; then
1663   enableval="$enable_libtool_lock"
1664   :
1665 fi
1666
1667 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1668 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1669
1670 # Some flags need to be propagated to the compiler or linker for good
1671 # libtool support.
1672 case "$host" in
1673 *-*-irix6*)
1674   # Find out which ABI we are using.
1675   echo '#line 1676 "configure"' > conftest.$ac_ext
1676   if { (eval echo configure:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1677     case "`/usr/bin/file conftest.o`" in
1678     *32-bit*)
1679       LD="${LD-ld} -32"
1680       ;;
1681     *N32*)
1682       LD="${LD-ld} -n32"
1683       ;;
1684     *64-bit*)
1685       LD="${LD-ld} -64"
1686       ;;
1687     esac
1688   fi
1689   rm -rf conftest*
1690   ;;
1691
1692 *-*-sco3.2v5*)
1693   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1694   SAVE_CFLAGS="$CFLAGS"
1695   CFLAGS="$CFLAGS -belf"
1696   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1697 echo "configure:1698: checking whether the C compiler needs -belf" >&5
1698 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1699   echo $ac_n "(cached) $ac_c" 1>&6
1700 else
1701   cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704
1705 int main() {
1706
1707 ; return 0; }
1708 EOF
1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1710   rm -rf conftest*
1711   lt_cv_cc_needs_belf=yes
1712 else
1713   echo "configure: failed program was:" >&5
1714   cat conftest.$ac_ext >&5
1715   rm -rf conftest*
1716   lt_cv_cc_needs_belf=no
1717 fi
1718 rm -f conftest*
1719 fi
1720
1721 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1722   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1723     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1724     CFLAGS="$SAVE_CFLAGS"
1725   fi
1726   ;;
1727
1728
1729 esac
1730
1731
1732 # Save cache, so that ltconfig can load it
1733 cat > confcache <<\EOF
1734 # This file is a shell script that caches the results of configure
1735 # tests run on this system so they can be shared between configure
1736 # scripts and configure runs.  It is not useful on other systems.
1737 # If it contains results you don't want to keep, you may remove or edit it.
1738 #
1739 # By default, configure uses ./config.cache as the cache file,
1740 # creating it if it does not exist already.  You can give configure
1741 # the --cache-file=FILE option to use a different cache file; that is
1742 # what configure does when it calls configure scripts in
1743 # subdirectories, so they share the cache.
1744 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1745 # config.status only pays attention to the cache file if you give it the
1746 # --recheck option to rerun configure.
1747 #
1748 EOF
1749 # The following way of writing the cache mishandles newlines in values,
1750 # but we know of no workaround that is simple, portable, and efficient.
1751 # So, don't put newlines in cache variables' values.
1752 # Ultrix sh set writes to stderr and can't be redirected directly,
1753 # and sets the high bit in the cache file unless we assign to the vars.
1754 (set) 2>&1 |
1755   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1756   *ac_space=\ *)
1757     # `set' does not quote correctly, so add quotes (double-quote substitution
1758     # turns \\\\ into \\, and sed turns \\ into \).
1759     sed -n \
1760       -e "s/'/'\\\\''/g" \
1761       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1762     ;;
1763   *)
1764     # `set' quotes correctly as required by POSIX, so do not add quotes.
1765     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1766     ;;
1767   esac >> confcache
1768 if cmp -s $cache_file confcache; then
1769   :
1770 else
1771   if test -w $cache_file; then
1772     echo "updating cache $cache_file"
1773     cat confcache > $cache_file
1774   else
1775     echo "not updating unwritable cache $cache_file"
1776   fi
1777 fi
1778 rm -f confcache
1779
1780
1781 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
1782 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1783 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1784 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1785 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1786 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1787 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1788 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1789
1790 # Reload cache, that may have been modified by ltconfig
1791 if test -r "$cache_file"; then
1792   echo "loading cache $cache_file"
1793   . $cache_file
1794 else
1795   echo "creating cache $cache_file"
1796   > $cache_file
1797 fi
1798
1799
1800 # This can be used to rebuild libtool when needed
1801 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1802
1803 # Always use our own libtool.
1804 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1805
1806 # Redirect the config.log output again, so that the ltconfig log is not
1807 # clobbered by the next message.
1808 exec 5>>./config.log
1809
1810 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1811 echo "configure:1812: checking how to run the C preprocessor" >&5
1812 # On Suns, sometimes $CPP names a directory.
1813 if test -n "$CPP" && test -d "$CPP"; then
1814   CPP=
1815 fi
1816 if test -z "$CPP"; then
1817 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1818   echo $ac_n "(cached) $ac_c" 1>&6
1819 else
1820     # This must be in double quotes, not single quotes, because CPP may get
1821   # substituted into the Makefile and "${CC-cc}" will confuse make.
1822   CPP="${CC-cc} -E"
1823   # On the NeXT, cc -E runs the code through the compiler's parser,
1824   # not just through cpp.
1825   cat > conftest.$ac_ext <<EOF
1826 #line 1827 "configure"
1827 #include "confdefs.h"
1828 #include <assert.h>
1829 Syntax Error
1830 EOF
1831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1832 { (eval echo configure:1833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1834 if test -z "$ac_err"; then
1835   :
1836 else
1837   echo "$ac_err" >&5
1838   echo "configure: failed program was:" >&5
1839   cat conftest.$ac_ext >&5
1840   rm -rf conftest*
1841   CPP="${CC-cc} -E -traditional-cpp"
1842   cat > conftest.$ac_ext <<EOF
1843 #line 1844 "configure"
1844 #include "confdefs.h"
1845 #include <assert.h>
1846 Syntax Error
1847 EOF
1848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1849 { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1851 if test -z "$ac_err"; then
1852   :
1853 else
1854   echo "$ac_err" >&5
1855   echo "configure: failed program was:" >&5
1856   cat conftest.$ac_ext >&5
1857   rm -rf conftest*
1858   CPP="${CC-cc} -nologo -E"
1859   cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 #include <assert.h>
1863 Syntax Error
1864 EOF
1865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1866 { (eval echo configure:1867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1868 if test -z "$ac_err"; then
1869   :
1870 else
1871   echo "$ac_err" >&5
1872   echo "configure: failed program was:" >&5
1873   cat conftest.$ac_ext >&5
1874   rm -rf conftest*
1875   CPP=/lib/cpp
1876 fi
1877 rm -f conftest*
1878 fi
1879 rm -f conftest*
1880 fi
1881 rm -f conftest*
1882   ac_cv_prog_CPP="$CPP"
1883 fi
1884   CPP="$ac_cv_prog_CPP"
1885 else
1886   ac_cv_prog_CPP="$CPP"
1887 fi
1888 echo "$ac_t""$CPP" 1>&6
1889
1890 missing_dir=`cd $ac_aux_dir && pwd`
1891 for ac_prog in flex lex
1892 do
1893 # Extract the first word of "$ac_prog", so it can be a program name with args.
1894 set dummy $ac_prog; ac_word=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1898   echo $ac_n "(cached) $ac_c" 1>&6
1899 else
1900   if test -n "$LEX"; then
1901   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1902 else
1903   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1904   ac_dummy="$PATH"
1905   for ac_dir in $ac_dummy; do
1906     test -z "$ac_dir" && ac_dir=.
1907     if test -f $ac_dir/$ac_word; then
1908       ac_cv_prog_LEX="$ac_prog"
1909       break
1910     fi
1911   done
1912   IFS="$ac_save_ifs"
1913 fi
1914 fi
1915 LEX="$ac_cv_prog_LEX"
1916 if test -n "$LEX"; then
1917   echo "$ac_t""$LEX" 1>&6
1918 else
1919   echo "$ac_t""no" 1>&6
1920 fi
1921
1922 test -n "$LEX" && break
1923 done
1924 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1925
1926 # Extract the first word of "flex", so it can be a program name with args.
1927 set dummy flex; ac_word=$2
1928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1929 echo "configure:1930: checking for $ac_word" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1931   echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933   if test -n "$LEX"; then
1934   ac_cv_prog_LEX="$LEX" # Let the user override the test.
1935 else
1936   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1937   ac_dummy="$PATH"
1938   for ac_dir in $ac_dummy; do
1939     test -z "$ac_dir" && ac_dir=.
1940     if test -f $ac_dir/$ac_word; then
1941       ac_cv_prog_LEX="flex"
1942       break
1943     fi
1944   done
1945   IFS="$ac_save_ifs"
1946   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1947 fi
1948 fi
1949 LEX="$ac_cv_prog_LEX"
1950 if test -n "$LEX"; then
1951   echo "$ac_t""$LEX" 1>&6
1952 else
1953   echo "$ac_t""no" 1>&6
1954 fi
1955
1956 if test -z "$LEXLIB"
1957 then
1958   case "$LEX" in
1959   flex*) ac_lib=fl ;;
1960   *) ac_lib=l ;;
1961   esac
1962   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1963 echo "configure:1964: checking for yywrap in -l$ac_lib" >&5
1964 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1966   echo $ac_n "(cached) $ac_c" 1>&6
1967 else
1968   ac_save_LIBS="$LIBS"
1969 LIBS="-l$ac_lib  $LIBS"
1970 cat > conftest.$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 /* Override any gcc2 internal prototype to avoid an error.  */
1974 /* We use char because int might match the return type of a gcc2
1975     builtin and then its argument prototype would still apply.  */
1976 char yywrap();
1977
1978 int main() {
1979 yywrap()
1980 ; return 0; }
1981 EOF
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1983   rm -rf conftest*
1984   eval "ac_cv_lib_$ac_lib_var=yes"
1985 else
1986   echo "configure: failed program was:" >&5
1987   cat conftest.$ac_ext >&5
1988   rm -rf conftest*
1989   eval "ac_cv_lib_$ac_lib_var=no"
1990 fi
1991 rm -f conftest*
1992 LIBS="$ac_save_LIBS"
1993
1994 fi
1995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1996   echo "$ac_t""yes" 1>&6
1997   LEXLIB="-l$ac_lib"
1998 else
1999   echo "$ac_t""no" 1>&6
2000 fi
2001
2002 fi
2003
2004 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2005 echo "configure:2006: checking lex output file root" >&5
2006 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2007   echo $ac_n "(cached) $ac_c" 1>&6
2008 else
2009   # The minimal lex program is just a single line: %%.  But some broken lexes
2010 # (Solaris, I think it was) want two %% lines, so accommodate them.
2011 echo '%%
2012 %%' | $LEX
2013 if test -f lex.yy.c; then
2014   ac_cv_prog_lex_root=lex.yy
2015 elif test -f lexyy.c; then
2016   ac_cv_prog_lex_root=lexyy
2017 else
2018   { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2019 fi
2020 fi
2021
2022 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2023 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2024
2025 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2026 echo "configure:2027: checking whether yytext is a pointer" >&5
2027 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2028   echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030   # POSIX says lex can declare yytext either as a pointer or an array; the
2031 # default is implementation-dependent. Figure out which it is, since
2032 # not all implementations provide the %pointer and %array declarations.
2033 ac_cv_prog_lex_yytext_pointer=no
2034 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2035 ac_save_LIBS="$LIBS"
2036 LIBS="$LIBS $LEXLIB"
2037 cat > conftest.$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 `cat $LEX_OUTPUT_ROOT.c`
2041 int main() {
2042
2043 ; return 0; }
2044 EOF
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2046   rm -rf conftest*
2047   ac_cv_prog_lex_yytext_pointer=yes
2048 else
2049   echo "configure: failed program was:" >&5
2050   cat conftest.$ac_ext >&5
2051 fi
2052 rm -f conftest*
2053 LIBS="$ac_save_LIBS"
2054 rm -f "${LEX_OUTPUT_ROOT}.c"
2055
2056 fi
2057
2058 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2059 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2060   cat >> confdefs.h <<\EOF
2061 #define YYTEXT_POINTER 1
2062 EOF
2063
2064 fi
2065
2066 for ac_prog in 'bison -y' byacc
2067 do
2068 # Extract the first word of "$ac_prog", so it can be a program name with args.
2069 set dummy $ac_prog; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5
2072 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2073   echo $ac_n "(cached) $ac_c" 1>&6
2074 else
2075   if test -n "$YACC"; then
2076   ac_cv_prog_YACC="$YACC" # Let the user override the test.
2077 else
2078   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2079   ac_dummy="$PATH"
2080   for ac_dir in $ac_dummy; do
2081     test -z "$ac_dir" && ac_dir=.
2082     if test -f $ac_dir/$ac_word; then
2083       ac_cv_prog_YACC="$ac_prog"
2084       break
2085     fi
2086   done
2087   IFS="$ac_save_ifs"
2088 fi
2089 fi
2090 YACC="$ac_cv_prog_YACC"
2091 if test -n "$YACC"; then
2092   echo "$ac_t""$YACC" 1>&6
2093 else
2094   echo "$ac_t""no" 1>&6
2095 fi
2096
2097 test -n "$YACC" && break
2098 done
2099 test -n "$YACC" || YACC="yacc"
2100
2101
2102 echo $ac_n "checking size of long""... $ac_c" 1>&6
2103 echo "configure:2104: checking size of long" >&5
2104 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2105   echo $ac_n "(cached) $ac_c" 1>&6
2106 else
2107   if test "$cross_compiling" = yes; then
2108   ac_cv_sizeof_long=4
2109 else
2110   cat > conftest.$ac_ext <<EOF
2111 #line 2112 "configure"
2112 #include "confdefs.h"
2113 #include <stdio.h>
2114 main()
2115 {
2116   FILE *f=fopen("conftestval", "w");
2117   if (!f) exit(1);
2118   fprintf(f, "%d\n", sizeof(long));
2119   exit(0);
2120 }
2121 EOF
2122 if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2123 then
2124   ac_cv_sizeof_long=`cat conftestval`
2125 else
2126   echo "configure: failed program was:" >&5
2127   cat conftest.$ac_ext >&5
2128   rm -fr conftest*
2129   ac_cv_sizeof_long=0
2130 fi
2131 rm -fr conftest*
2132 fi
2133
2134 fi
2135 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2136 cat >> confdefs.h <<EOF
2137 #define SIZEOF_LONG $ac_cv_sizeof_long
2138 EOF
2139
2140
2141 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2142 echo "configure:2143: checking size of long long" >&5
2143 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2144   echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146   if test "$cross_compiling" = yes; then
2147   ac_cv_sizeof_long_long=8
2148 else
2149   cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 #include <stdio.h>
2153 main()
2154 {
2155   FILE *f=fopen("conftestval", "w");
2156   if (!f) exit(1);
2157   fprintf(f, "%d\n", sizeof(long long));
2158   exit(0);
2159 }
2160 EOF
2161 if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2162 then
2163   ac_cv_sizeof_long_long=`cat conftestval`
2164 else
2165   echo "configure: failed program was:" >&5
2166   cat conftest.$ac_ext >&5
2167   rm -fr conftest*
2168   ac_cv_sizeof_long_long=0
2169 fi
2170 rm -fr conftest*
2171 fi
2172
2173 fi
2174 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2175 cat >> confdefs.h <<EOF
2176 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2177 EOF
2178
2179
2180 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2181 echo "configure:2182: checking size of long double" >&5
2182 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2183   echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185   if test "$cross_compiling" = yes; then
2186   ac_cv_sizeof_long_double=12
2187 else
2188   cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2191 #include <stdio.h>
2192 main()
2193 {
2194   FILE *f=fopen("conftestval", "w");
2195   if (!f) exit(1);
2196   fprintf(f, "%d\n", sizeof(long double));
2197   exit(0);
2198 }
2199 EOF
2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2201 then
2202   ac_cv_sizeof_long_double=`cat conftestval`
2203 else
2204   echo "configure: failed program was:" >&5
2205   cat conftest.$ac_ext >&5
2206   rm -fr conftest*
2207   ac_cv_sizeof_long_double=0
2208 fi
2209 rm -fr conftest*
2210 fi
2211
2212 fi
2213 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2214 cat >> confdefs.h <<EOF
2215 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2216 EOF
2217
2218
2219
2220 ac_ext=C
2221 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2222 ac_cpp='$CXXCPP $CPPFLAGS'
2223 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2224 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2225 cross_compiling=$ac_cv_prog_cxx_cross
2226
2227
2228 for ac_hdr in unistd.h
2229 do
2230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2232 echo "configure:2233: checking for $ac_hdr" >&5
2233 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2234   echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236   cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <$ac_hdr>
2240 EOF
2241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2242 { (eval echo configure:2243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2244 if test -z "$ac_err"; then
2245   rm -rf conftest*
2246   eval "ac_cv_header_$ac_safe=yes"
2247 else
2248   echo "$ac_err" >&5
2249   echo "configure: failed program was:" >&5
2250   cat conftest.$ac_ext >&5
2251   rm -rf conftest*
2252   eval "ac_cv_header_$ac_safe=no"
2253 fi
2254 rm -f conftest*
2255 fi
2256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2257   echo "$ac_t""yes" 1>&6
2258     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2259   cat >> confdefs.h <<EOF
2260 #define $ac_tr_hdr 1
2261 EOF
2262  
2263 else
2264   echo "$ac_t""no" 1>&6
2265 fi
2266 done
2267
2268 for ac_hdr in readline/readline.h readline/history.h
2269 do
2270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2272 echo "configure:2273: checking for $ac_hdr" >&5
2273 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2274   echo $ac_n "(cached) $ac_c" 1>&6
2275 else
2276   cat > conftest.$ac_ext <<EOF
2277 #line 2278 "configure"
2278 #include "confdefs.h"
2279 #include <$ac_hdr>
2280 EOF
2281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2282 { (eval echo configure:2283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2284 if test -z "$ac_err"; then
2285   rm -rf conftest*
2286   eval "ac_cv_header_$ac_safe=yes"
2287 else
2288   echo "$ac_err" >&5
2289   echo "configure: failed program was:" >&5
2290   cat conftest.$ac_ext >&5
2291   rm -rf conftest*
2292   eval "ac_cv_header_$ac_safe=no"
2293 fi
2294 rm -f conftest*
2295 fi
2296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2297   echo "$ac_t""yes" 1>&6
2298     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2299   cat >> confdefs.h <<EOF
2300 #define $ac_tr_hdr 1
2301 EOF
2302  
2303 else
2304   echo "$ac_t""no" 1>&6
2305 fi
2306 done
2307
2308 save_LIBS=$LIBS
2309 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2310 echo "configure:2311: checking for readline in -lreadline" >&5
2311 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2313   echo $ac_n "(cached) $ac_c" 1>&6
2314 else
2315   ac_save_LIBS="$LIBS"
2316 LIBS="-lreadline  $LIBS"
2317 cat > conftest.$ac_ext <<EOF
2318 #line 2319 "configure"
2319 #include "confdefs.h"
2320 /* Override any gcc2 internal prototype to avoid an error.  */
2321 #ifdef __cplusplus
2322 extern "C"
2323 #endif
2324 /* We use char because int might match the return type of a gcc2
2325     builtin and then its argument prototype would still apply.  */
2326 char readline();
2327
2328 int main() {
2329 readline()
2330 ; return 0; }
2331 EOF
2332 if { (eval echo configure:2333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2333   rm -rf conftest*
2334   eval "ac_cv_lib_$ac_lib_var=yes"
2335 else
2336   echo "configure: failed program was:" >&5
2337   cat conftest.$ac_ext >&5
2338   rm -rf conftest*
2339   eval "ac_cv_lib_$ac_lib_var=no"
2340 fi
2341 rm -f conftest*
2342 LIBS="$ac_save_LIBS"
2343
2344 fi
2345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2346   echo "$ac_t""yes" 1>&6
2347     ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2348     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2349   cat >> confdefs.h <<EOF
2350 #define $ac_tr_lib 1
2351 EOF
2352
2353   LIBS="-lreadline $LIBS"
2354
2355 else
2356   echo "$ac_t""no" 1>&6
2357 fi
2358
2359 GINSH_LIBS=$LIBS
2360 LIBS=$save_LIBS
2361
2362
2363 echo $ac_n "checking for cout in -lstdc++""... $ac_c" 1>&6
2364 echo "configure:2365: checking for cout in -lstdc++" >&5
2365 ac_lib_var=`echo stdc++'_'cout | sed 'y%./+-%__p_%'`
2366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2367   echo $ac_n "(cached) $ac_c" 1>&6
2368 else
2369   ac_save_LIBS="$LIBS"
2370 LIBS="-lstdc++  $LIBS"
2371 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* Override any gcc2 internal prototype to avoid an error.  */
2375 #ifdef __cplusplus
2376 extern "C"
2377 #endif
2378 /* We use char because int might match the return type of a gcc2
2379     builtin and then its argument prototype would still apply.  */
2380 char cout();
2381
2382 int main() {
2383 cout()
2384 ; return 0; }
2385 EOF
2386 if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2387   rm -rf conftest*
2388   eval "ac_cv_lib_$ac_lib_var=yes"
2389 else
2390   echo "configure: failed program was:" >&5
2391   cat conftest.$ac_ext >&5
2392   rm -rf conftest*
2393   eval "ac_cv_lib_$ac_lib_var=no"
2394 fi
2395 rm -f conftest*
2396 LIBS="$ac_save_LIBS"
2397
2398 fi
2399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2400   echo "$ac_t""yes" 1>&6
2401     ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2402     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2403   cat >> confdefs.h <<EOF
2404 #define $ac_tr_lib 1
2405 EOF
2406
2407   LIBS="-lstdc++ $LIBS"
2408
2409 else
2410   echo "$ac_t""no" 1>&6
2411 fi
2412
2413
2414 for ac_hdr in iostream vector map string list typeinfo iterator stdexcept algorithm
2415 do
2416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2418 echo "configure:2419: checking for $ac_hdr" >&5
2419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2420   echo $ac_n "(cached) $ac_c" 1>&6
2421 else
2422   cat > conftest.$ac_ext <<EOF
2423 #line 2424 "configure"
2424 #include "confdefs.h"
2425 #include <$ac_hdr>
2426 EOF
2427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2428 { (eval echo configure:2429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2430 if test -z "$ac_err"; then
2431   rm -rf conftest*
2432   eval "ac_cv_header_$ac_safe=yes"
2433 else
2434   echo "$ac_err" >&5
2435   echo "configure: failed program was:" >&5
2436   cat conftest.$ac_ext >&5
2437   rm -rf conftest*
2438   eval "ac_cv_header_$ac_safe=no"
2439 fi
2440 rm -f conftest*
2441 fi
2442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2443   echo "$ac_t""yes" 1>&6
2444     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2445   cat >> confdefs.h <<EOF
2446 #define $ac_tr_hdr 1
2447 EOF
2448  
2449 else
2450   echo "$ac_t""no" 1>&6
2451 { echo "configure: error: need to have ANSI compliant headers" 1>&2; exit 1; }
2452 fi
2453 done
2454
2455 for ac_hdr in sstream strstream
2456 do
2457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2459 echo "configure:2460: checking for $ac_hdr" >&5
2460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2461   echo $ac_n "(cached) $ac_c" 1>&6
2462 else
2463   cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 #include <$ac_hdr>
2467 EOF
2468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2469 { (eval echo configure:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2471 if test -z "$ac_err"; then
2472   rm -rf conftest*
2473   eval "ac_cv_header_$ac_safe=yes"
2474 else
2475   echo "$ac_err" >&5
2476   echo "configure: failed program was:" >&5
2477   cat conftest.$ac_ext >&5
2478   rm -rf conftest*
2479   eval "ac_cv_header_$ac_safe=no"
2480 fi
2481 rm -f conftest*
2482 fi
2483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2484   echo "$ac_t""yes" 1>&6
2485     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2486   cat >> confdefs.h <<EOF
2487 #define $ac_tr_hdr 1
2488 EOF
2489  
2490 else
2491   echo "$ac_t""no" 1>&6
2492 fi
2493 done
2494
2495
2496
2497     for ac_hdr in cln/cln.h
2498 do
2499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_hdr" >&5
2502 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2503   echo $ac_n "(cached) $ac_c" 1>&6
2504 else
2505   cat > conftest.$ac_ext <<EOF
2506 #line 2507 "configure"
2507 #include "confdefs.h"
2508 #include <$ac_hdr>
2509 EOF
2510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2511 { (eval echo configure:2512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2513 if test -z "$ac_err"; then
2514   rm -rf conftest*
2515   eval "ac_cv_header_$ac_safe=yes"
2516 else
2517   echo "$ac_err" >&5
2518   echo "configure: failed program was:" >&5
2519   cat conftest.$ac_ext >&5
2520   rm -rf conftest*
2521   eval "ac_cv_header_$ac_safe=no"
2522 fi
2523 rm -f conftest*
2524 fi
2525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2526   echo "$ac_t""yes" 1>&6
2527     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2528   cat >> confdefs.h <<EOF
2529 #define $ac_tr_hdr 1
2530 EOF
2531  
2532 else
2533   echo "$ac_t""no" 1>&6
2534 for ac_hdr in cln.h
2535 do
2536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_hdr" >&5
2539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2540   echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542   cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2545 #include <$ac_hdr>
2546 EOF
2547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2551   rm -rf conftest*
2552   eval "ac_cv_header_$ac_safe=yes"
2553 else
2554   echo "$ac_err" >&5
2555   echo "configure: failed program was:" >&5
2556   cat conftest.$ac_ext >&5
2557   rm -rf conftest*
2558   eval "ac_cv_header_$ac_safe=no"
2559 fi
2560 rm -f conftest*
2561 fi
2562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2563   echo "$ac_t""yes" 1>&6
2564     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2565   cat >> confdefs.h <<EOF
2566 #define $ac_tr_hdr 1
2567 EOF
2568  
2569 else
2570   echo "$ac_t""no" 1>&6
2571 { echo "configure: error: cannot find header for Bruno Haible's CLN" 1>&2; exit 1; };
2572         
2573 fi
2574 done
2575
2576     
2577 fi
2578 done
2579
2580
2581
2582     echo $ac_n "checking for doublefactorial in -lcln""... $ac_c" 1>&6
2583 echo "configure:2584: checking for doublefactorial in -lcln" >&5
2584     saved_LIBS="${LIBS}"
2585     if eval "test \"`echo '$''{'ginac_cv_lib_cln_link'+set}'`\" = set"; then
2586   echo $ac_n "(cached) $ac_c" 1>&6
2587 else
2588   LIBS="-lcln"
2589         case "${ac_cv_header_CLN_cln_h}" in
2590         "yes")
2591             cat > conftest.$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2594 #include <cln/cln.h>
2595 int main() {
2596 doublefactorial(2);
2597 ; return 0; }
2598 EOF
2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2600   rm -rf conftest*
2601   ginac_cv_lib_cln_link="-lcln"
2602 else
2603   echo "configure: failed program was:" >&5
2604   cat conftest.$ac_ext >&5
2605   rm -rf conftest*
2606   ginac_cv_lib_cln_link="fail"
2607 fi
2608 rm -f conftest*
2609             ;;
2610         *)
2611             cat > conftest.$ac_ext <<EOF
2612 #line 2613 "configure"
2613 #include "confdefs.h"
2614 #include <cln.h>
2615 int main() {
2616 doublefactorial(2);
2617 ; return 0; }
2618 EOF
2619 if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2620   rm -rf conftest*
2621   ginac_cv_lib_cln_link="-lcln"
2622 else
2623   echo "configure: failed program was:" >&5
2624   cat conftest.$ac_ext >&5
2625   rm -rf conftest*
2626   ginac_cv_lib_cln_link="fail"
2627 fi
2628 rm -f conftest*
2629             ;;
2630         esac
2631     
2632 fi
2633
2634     case "${ginac_cv_lib_cln_link}" in
2635     "-lcln")
2636         LIBS="${ginac_cv_lib_cln_link} ${saved_LIBS}"
2637         echo "$ac_t"""yes"" 1>&6
2638     ;;
2639     "fail")
2640         LIBS="${saved_LIBS}"
2641         echo "$ac_t""no" 1>&6
2642         { echo "configure: error: You either need to set \$LDFLAGS or update CLN" 1>&2; exit 1; }
2643     ;;
2644     *)
2645         LIBS="${saved_LIBS}"
2646         echo "configure: warning: you found a bug in the configure script!" 1>&2
2647     ;;
2648     esac
2649
2650
2651 GINACLIB_CPPFLAGS=$CPPFLAGS
2652 GINACLIB_LIBS=$LIBS
2653
2654
2655
2656 # Extract the first word of "doxygen", so it can be a program name with args.
2657 set dummy doxygen; ac_word=$2
2658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2659 echo "configure:2660: checking for $ac_word" >&5
2660 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
2661   echo $ac_n "(cached) $ac_c" 1>&6
2662 else
2663   case "$DOXYGEN" in
2664   /*)
2665   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
2666   ;;
2667   ?:/*)                  
2668   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
2669   ;;
2670   *)
2671   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2672   ac_dummy="$PATH"
2673   for ac_dir in $ac_dummy; do 
2674     test -z "$ac_dir" && ac_dir=.
2675     if test -f $ac_dir/$ac_word; then
2676       ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
2677       break
2678     fi
2679   done
2680   IFS="$ac_save_ifs"
2681   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
2682   ;;
2683 esac
2684 fi
2685 DOXYGEN="$ac_cv_path_DOXYGEN"
2686 if test -n "$DOXYGEN"; then
2687   echo "$ac_t""$DOXYGEN" 1>&6
2688 else
2689   echo "$ac_t""no" 1>&6
2690 fi
2691
2692 # Extract the first word of "latex", so it can be a program name with args.
2693 set dummy latex; ac_word=$2
2694 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_word" >&5
2696 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
2697   echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699   case "$LATEX" in
2700   /*)
2701   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2702   ;;
2703   ?:/*)                  
2704   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
2705   ;;
2706   *)
2707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2708   ac_dummy="$PATH"
2709   for ac_dir in $ac_dummy; do 
2710     test -z "$ac_dir" && ac_dir=.
2711     if test -f $ac_dir/$ac_word; then
2712       ac_cv_path_LATEX="$ac_dir/$ac_word"
2713       break
2714     fi
2715   done
2716   IFS="$ac_save_ifs"
2717   test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
2718   ;;
2719 esac
2720 fi
2721 LATEX="$ac_cv_path_LATEX"
2722 if test -n "$LATEX"; then
2723   echo "$ac_t""$LATEX" 1>&6
2724 else
2725   echo "$ac_t""no" 1>&6
2726 fi
2727
2728 # Extract the first word of "makeindex", so it can be a program name with args.
2729 set dummy makeindex; ac_word=$2
2730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_word" >&5
2732 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
2733   echo $ac_n "(cached) $ac_c" 1>&6
2734 else
2735   case "$MAKEINDEX" in
2736   /*)
2737   ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
2738   ;;
2739   ?:/*)                  
2740   ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a dos path.
2741   ;;
2742   *)
2743   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2744   ac_dummy="$PATH"
2745   for ac_dir in $ac_dummy; do 
2746     test -z "$ac_dir" && ac_dir=.
2747     if test -f $ac_dir/$ac_word; then
2748       ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
2749       break
2750     fi
2751   done
2752   IFS="$ac_save_ifs"
2753   test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
2754   ;;
2755 esac
2756 fi
2757 MAKEINDEX="$ac_cv_path_MAKEINDEX"
2758 if test -n "$MAKEINDEX"; then
2759   echo "$ac_t""$MAKEINDEX" 1>&6
2760 else
2761   echo "$ac_t""no" 1>&6
2762 fi
2763
2764 # Extract the first word of "dvips", so it can be a program name with args.
2765 set dummy dvips; ac_word=$2
2766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2767 echo "configure:2768: checking for $ac_word" >&5
2768 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
2769   echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771   case "$DVIPS" in
2772   /*)
2773   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2774   ;;
2775   ?:/*)                  
2776   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path.
2777   ;;
2778   *)
2779   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2780   ac_dummy="$PATH"
2781   for ac_dir in $ac_dummy; do 
2782     test -z "$ac_dir" && ac_dir=.
2783     if test -f $ac_dir/$ac_word; then
2784       ac_cv_path_DVIPS="$ac_dir/$ac_word"
2785       break
2786     fi
2787   done
2788   IFS="$ac_save_ifs"
2789   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
2790   ;;
2791 esac
2792 fi
2793 DVIPS="$ac_cv_path_DVIPS"
2794 if test -n "$DVIPS"; then
2795   echo "$ac_t""$DVIPS" 1>&6
2796 else
2797   echo "$ac_t""no" 1>&6
2798 fi
2799
2800 # Extract the first word of "fig2dev", so it can be a program name with args.
2801 set dummy fig2dev; ac_word=$2
2802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2803 echo "configure:2804: checking for $ac_word" >&5
2804 if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
2805   echo $ac_n "(cached) $ac_c" 1>&6
2806 else
2807   case "$FIG2DEV" in
2808   /*)
2809   ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
2810   ;;
2811   ?:/*)                  
2812   ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a dos path.
2813   ;;
2814   *)
2815   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2816   ac_dummy="$PATH"
2817   for ac_dir in $ac_dummy; do 
2818     test -z "$ac_dir" && ac_dir=.
2819     if test -f $ac_dir/$ac_word; then
2820       ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
2821       break
2822     fi
2823   done
2824   IFS="$ac_save_ifs"
2825   test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
2826   ;;
2827 esac
2828 fi
2829 FIG2DEV="$ac_cv_path_FIG2DEV"
2830 if test -n "$FIG2DEV"; then
2831   echo "$ac_t""$FIG2DEV" 1>&6
2832 else
2833   echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 TUTORIAL_TARGETS=
2838 REFERENCE_TARGETS=
2839 if [ "x$enable_html_doc" = "xyes" ]; then
2840   TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
2841   if [ "$DOXYGEN" ]; then
2842     REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
2843   fi
2844 fi
2845 if [ "x$enable_ps_doc" = "xyes" ]; then
2846   TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
2847   if [ "$DOXYGEN" ]; then
2848     REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
2849   fi
2850 fi
2851
2852
2853
2854 trap '' 1 2 15
2855 cat > confcache <<\EOF
2856 # This file is a shell script that caches the results of configure
2857 # tests run on this system so they can be shared between configure
2858 # scripts and configure runs.  It is not useful on other systems.
2859 # If it contains results you don't want to keep, you may remove or edit it.
2860 #
2861 # By default, configure uses ./config.cache as the cache file,
2862 # creating it if it does not exist already.  You can give configure
2863 # the --cache-file=FILE option to use a different cache file; that is
2864 # what configure does when it calls configure scripts in
2865 # subdirectories, so they share the cache.
2866 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2867 # config.status only pays attention to the cache file if you give it the
2868 # --recheck option to rerun configure.
2869 #
2870 EOF
2871 # The following way of writing the cache mishandles newlines in values,
2872 # but we know of no workaround that is simple, portable, and efficient.
2873 # So, don't put newlines in cache variables' values.
2874 # Ultrix sh set writes to stderr and can't be redirected directly,
2875 # and sets the high bit in the cache file unless we assign to the vars.
2876 (set) 2>&1 |
2877   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2878   *ac_space=\ *)
2879     # `set' does not quote correctly, so add quotes (double-quote substitution
2880     # turns \\\\ into \\, and sed turns \\ into \).
2881     sed -n \
2882       -e "s/'/'\\\\''/g" \
2883       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2884     ;;
2885   *)
2886     # `set' quotes correctly as required by POSIX, so do not add quotes.
2887     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2888     ;;
2889   esac >> confcache
2890 if cmp -s $cache_file confcache; then
2891   :
2892 else
2893   if test -w $cache_file; then
2894     echo "updating cache $cache_file"
2895     cat confcache > $cache_file
2896   else
2897     echo "not updating unwritable cache $cache_file"
2898   fi
2899 fi
2900 rm -f confcache
2901
2902 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2903
2904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2905 # Let make expand exec_prefix.
2906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2907
2908 # Any assignment to VPATH causes Sun make to only execute
2909 # the first set of double-colon rules, so remove it if not needed.
2910 # If there is a colon in the path, we need to keep it.
2911 if test "x$srcdir" = x.; then
2912   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2913 fi
2914
2915 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2916
2917 DEFS=-DHAVE_CONFIG_H
2918
2919 # Without the "./", some shells look in PATH for config.status.
2920 : ${CONFIG_STATUS=./config.status}
2921
2922 echo creating $CONFIG_STATUS
2923 rm -f $CONFIG_STATUS
2924 cat > $CONFIG_STATUS <<EOF
2925 #! /bin/sh
2926 # Generated automatically by configure.
2927 # Run this file to recreate the current configuration.
2928 # This directory was configured as follows,
2929 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2930 #
2931 # $0 $ac_configure_args
2932 #
2933 # Compiler output produced by configure, useful for debugging
2934 # configure, is in ./config.log if it exists.
2935
2936 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2937 for ac_option
2938 do
2939   case "\$ac_option" in
2940   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2941     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2942     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2943   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2944     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2945     exit 0 ;;
2946   -help | --help | --hel | --he | --h)
2947     echo "\$ac_cs_usage"; exit 0 ;;
2948   *) echo "\$ac_cs_usage"; exit 1 ;;
2949   esac
2950 done
2951
2952 ac_given_srcdir=$srcdir
2953 ac_given_INSTALL="$INSTALL"
2954
2955 trap 'rm -fr `echo "
2956 Makefile
2957 GiNaC.spec
2958 ginac-config
2959 ginac/Makefile
2960 check/Makefile
2961 ginsh/Makefile
2962 tools/Makefile
2963 doc/Makefile
2964 doc/tutorial/Makefile
2965 doc/reference/Makefile
2966  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2967 EOF
2968 cat >> $CONFIG_STATUS <<EOF
2969
2970 # Protect against being on the right side of a sed subst in config.status.
2971 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2972  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2973 $ac_vpsub
2974 $extrasub
2975 s%@SHELL@%$SHELL%g
2976 s%@CFLAGS@%$CFLAGS%g
2977 s%@CPPFLAGS@%$CPPFLAGS%g
2978 s%@CXXFLAGS@%$CXXFLAGS%g
2979 s%@FFLAGS@%$FFLAGS%g
2980 s%@DEFS@%$DEFS%g
2981 s%@LDFLAGS@%$LDFLAGS%g
2982 s%@LIBS@%$LIBS%g
2983 s%@exec_prefix@%$exec_prefix%g
2984 s%@prefix@%$prefix%g
2985 s%@program_transform_name@%$program_transform_name%g
2986 s%@bindir@%$bindir%g
2987 s%@sbindir@%$sbindir%g
2988 s%@libexecdir@%$libexecdir%g
2989 s%@datadir@%$datadir%g
2990 s%@sysconfdir@%$sysconfdir%g
2991 s%@sharedstatedir@%$sharedstatedir%g
2992 s%@localstatedir@%$localstatedir%g
2993 s%@libdir@%$libdir%g
2994 s%@includedir@%$includedir%g
2995 s%@oldincludedir@%$oldincludedir%g
2996 s%@infodir@%$infodir%g
2997 s%@mandir@%$mandir%g
2998 s%@GINACLIB_MAJOR_VERSION@%$GINACLIB_MAJOR_VERSION%g
2999 s%@GINACLIB_MINOR_VERSION@%$GINACLIB_MINOR_VERSION%g
3000 s%@GINACLIB_MICRO_VERSION@%$GINACLIB_MICRO_VERSION%g
3001 s%@GINACLIB_INTERFACE_AGE@%$GINACLIB_INTERFACE_AGE%g
3002 s%@GINACLIB_BINARY_AGE@%$GINACLIB_BINARY_AGE%g
3003 s%@GINACLIB_VERSION@%$GINACLIB_VERSION%g
3004 s%@ARCHIVE_VERSION@%$ARCHIVE_VERSION%g
3005 s%@ARCHIVE_AGE@%$ARCHIVE_AGE%g
3006 s%@LT_RELEASE@%$LT_RELEASE%g
3007 s%@LT_CURRENT@%$LT_CURRENT%g
3008 s%@LT_REVISION@%$LT_REVISION%g
3009 s%@LT_AGE@%$LT_AGE%g
3010 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3011 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3012 s%@INSTALL_DATA@%$INSTALL_DATA%g
3013 s%@PACKAGE@%$PACKAGE%g
3014 s%@VERSION@%$VERSION%g
3015 s%@ACLOCAL@%$ACLOCAL%g
3016 s%@AUTOCONF@%$AUTOCONF%g
3017 s%@AUTOMAKE@%$AUTOMAKE%g
3018 s%@AUTOHEADER@%$AUTOHEADER%g
3019 s%@MAKEINFO@%$MAKEINFO%g
3020 s%@SET_MAKE@%$SET_MAKE%g
3021 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3022 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3023 s%@MAINT@%$MAINT%g
3024 s%@CXX@%$CXX%g
3025 s%@CXXCPP@%$CXXCPP%g
3026 s%@host@%$host%g
3027 s%@host_alias@%$host_alias%g
3028 s%@host_cpu@%$host_cpu%g
3029 s%@host_vendor@%$host_vendor%g
3030 s%@host_os@%$host_os%g
3031 s%@build@%$build%g
3032 s%@build_alias@%$build_alias%g
3033 s%@build_cpu@%$build_cpu%g
3034 s%@build_vendor@%$build_vendor%g
3035 s%@build_os@%$build_os%g
3036 s%@RANLIB@%$RANLIB%g
3037 s%@CC@%$CC%g
3038 s%@LD@%$LD%g
3039 s%@NM@%$NM%g
3040 s%@LN_S@%$LN_S%g
3041 s%@LIBTOOL@%$LIBTOOL%g
3042 s%@LEX@%$LEX%g
3043 s%@LEXLIB@%$LEXLIB%g
3044 s%@CPP@%$CPP%g
3045 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3046 s%@YACC@%$YACC%g
3047 s%@GINSH_LIBS@%$GINSH_LIBS%g
3048 s%@GINACLIB_CPPFLAGS@%$GINACLIB_CPPFLAGS%g
3049 s%@GINACLIB_LIBS@%$GINACLIB_LIBS%g
3050 s%@DOXYGEN@%$DOXYGEN%g
3051 s%@LATEX@%$LATEX%g
3052 s%@MAKEINDEX@%$MAKEINDEX%g
3053 s%@DVIPS@%$DVIPS%g
3054 s%@FIG2DEV@%$FIG2DEV%g
3055 s%@TUTORIAL_TARGETS@%$TUTORIAL_TARGETS%g
3056 s%@REFERENCE_TARGETS@%$REFERENCE_TARGETS%g
3057
3058 CEOF
3059 EOF
3060
3061 cat >> $CONFIG_STATUS <<\EOF
3062
3063 # Split the substitutions into bite-sized pieces for seds with
3064 # small command number limits, like on Digital OSF/1 and HP-UX.
3065 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3066 ac_file=1 # Number of current file.
3067 ac_beg=1 # First line for current file.
3068 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3069 ac_more_lines=:
3070 ac_sed_cmds=""
3071 while $ac_more_lines; do
3072   if test $ac_beg -gt 1; then
3073     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3074   else
3075     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3076   fi
3077   if test ! -s conftest.s$ac_file; then
3078     ac_more_lines=false
3079     rm -f conftest.s$ac_file
3080   else
3081     if test -z "$ac_sed_cmds"; then
3082       ac_sed_cmds="sed -f conftest.s$ac_file"
3083     else
3084       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3085     fi
3086     ac_file=`expr $ac_file + 1`
3087     ac_beg=$ac_end
3088     ac_end=`expr $ac_end + $ac_max_sed_cmds`
3089   fi
3090 done
3091 if test -z "$ac_sed_cmds"; then
3092   ac_sed_cmds=cat
3093 fi
3094 EOF
3095
3096 cat >> $CONFIG_STATUS <<EOF
3097
3098 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3099 GiNaC.spec
3100 ginac-config
3101 ginac/Makefile
3102 check/Makefile
3103 ginsh/Makefile
3104 tools/Makefile
3105 doc/Makefile
3106 doc/tutorial/Makefile
3107 doc/reference/Makefile
3108 "}
3109 EOF
3110 cat >> $CONFIG_STATUS <<\EOF
3111 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3112   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3113   case "$ac_file" in
3114   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3115        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3116   *) ac_file_in="${ac_file}.in" ;;
3117   esac
3118
3119   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3120
3121   # Remove last slash and all that follows it.  Not all systems have dirname.
3122   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3123   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3124     # The file is in a subdirectory.
3125     test ! -d "$ac_dir" && mkdir "$ac_dir"
3126     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3127     # A "../" for each directory in $ac_dir_suffix.
3128     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3129   else
3130     ac_dir_suffix= ac_dots=
3131   fi
3132
3133   case "$ac_given_srcdir" in
3134   .)  srcdir=.
3135       if test -z "$ac_dots"; then top_srcdir=.
3136       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3137   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3138   *) # Relative path.
3139     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3140     top_srcdir="$ac_dots$ac_given_srcdir" ;;
3141   esac
3142
3143   case "$ac_given_INSTALL" in
3144   [/$]*) INSTALL="$ac_given_INSTALL" ;;
3145   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3146   esac
3147
3148   echo creating "$ac_file"
3149   rm -f "$ac_file"
3150   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3151   case "$ac_file" in
3152   *Makefile*) ac_comsub="1i\\
3153 # $configure_input" ;;
3154   *) ac_comsub= ;;
3155   esac
3156
3157   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3158   sed -e "$ac_comsub
3159 s%@configure_input@%$configure_input%g
3160 s%@srcdir@%$srcdir%g
3161 s%@top_srcdir@%$top_srcdir%g
3162 s%@INSTALL@%$INSTALL%g
3163 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3164 fi; done
3165 rm -f conftest.s*
3166
3167 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3168 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3169 #
3170 # ac_d sets the value in "#define NAME VALUE" lines.
3171 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3172 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3173 ac_dC='\3'
3174 ac_dD='%g'
3175 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3176 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3177 ac_uB='\([      ]\)%\1#\2define\3'
3178 ac_uC=' '
3179 ac_uD='\4%g'
3180 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3181 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3182 ac_eB='$%\1#\2define\3'
3183 ac_eC=' '
3184 ac_eD='%g'
3185
3186 if test "${CONFIG_HEADERS+set}" != set; then
3187 EOF
3188 cat >> $CONFIG_STATUS <<EOF
3189   CONFIG_HEADERS="config.h"
3190 EOF
3191 cat >> $CONFIG_STATUS <<\EOF
3192 fi
3193 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3194   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3195   case "$ac_file" in
3196   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3197        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3198   *) ac_file_in="${ac_file}.in" ;;
3199   esac
3200
3201   echo creating $ac_file
3202
3203   rm -f conftest.frag conftest.in conftest.out
3204   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3205   cat $ac_file_inputs > conftest.in
3206
3207 EOF
3208
3209 # Transform confdefs.h into a sed script conftest.vals that substitutes
3210 # the proper values into config.h.in to produce config.h.  And first:
3211 # Protect against being on the right side of a sed subst in config.status.
3212 # Protect against being in an unquoted here document in config.status.
3213 rm -f conftest.vals
3214 cat > conftest.hdr <<\EOF
3215 s/[\\&%]/\\&/g
3216 s%[\\$`]%\\&%g
3217 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3218 s%ac_d%ac_u%gp
3219 s%ac_u%ac_e%gp
3220 EOF
3221 sed -n -f conftest.hdr confdefs.h > conftest.vals
3222 rm -f conftest.hdr
3223
3224 # This sed command replaces #undef with comments.  This is necessary, for
3225 # example, in the case of _POSIX_SOURCE, which is predefined and required
3226 # on some systems where configure will not decide to define it.
3227 cat >> conftest.vals <<\EOF
3228 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3229 EOF
3230
3231 # Break up conftest.vals because some shells have a limit on
3232 # the size of here documents, and old seds have small limits too.
3233
3234 rm -f conftest.tail
3235 while :
3236 do
3237   ac_lines=`grep -c . conftest.vals`
3238   # grep -c gives empty output for an empty file on some AIX systems.
3239   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3240   # Write a limited-size here document to conftest.frag.
3241   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3242   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3243   echo 'CEOF
3244   sed -f conftest.frag conftest.in > conftest.out
3245   rm -f conftest.in
3246   mv conftest.out conftest.in
3247 ' >> $CONFIG_STATUS
3248   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3249   rm -f conftest.vals
3250   mv conftest.tail conftest.vals
3251 done
3252 rm -f conftest.vals
3253
3254 cat >> $CONFIG_STATUS <<\EOF
3255   rm -f conftest.frag conftest.h
3256   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3257   cat conftest.in >> conftest.h
3258   rm -f conftest.in
3259   if cmp -s $ac_file conftest.h 2>/dev/null; then
3260     echo "$ac_file is unchanged"
3261     rm -f conftest.h
3262   else
3263     # Remove last slash and all that follows it.  Not all systems have dirname.
3264       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3265       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3266       # The file is in a subdirectory.
3267       test ! -d "$ac_dir" && mkdir "$ac_dir"
3268     fi
3269     rm -f $ac_file
3270     mv conftest.h $ac_file
3271   fi
3272 fi; done
3273
3274 EOF
3275 cat >> $CONFIG_STATUS <<EOF
3276
3277
3278 EOF
3279 cat >> $CONFIG_STATUS <<\EOF
3280 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3281 chmod +x ginac-config
3282 exit 0
3283 EOF
3284 chmod +x $CONFIG_STATUS
3285 rm -fr confdefs* $ac_clean_files
3286 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3287
3288 echo "Configuration done. Now type \"make\"."