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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --enable-html-doc build HTML documentation [default=no]"
30 --enable-ps-doc build PostScript documentation [default=no]"
32 --with-cint=CINTSYSDIR build GiNaC-cint C++ interpreter [default=no]"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file=./config.cache
47 program_transform_name=s,x,x,
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'
68 # Initialize some other variables.
71 SHELL=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir | --bindir | --bindi | --bind | --bin | --bi)
97 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
98 bindir="$ac_optarg" ;;
100 -build | --build | --buil | --bui | --bu)
102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
103 build="$ac_optarg" ;;
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" ;;
112 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116 datadir="$ac_optarg" ;;
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; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
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; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
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" ;;
149 -gas | --gas | --ga | --g)
150 # Obsolete; use --with-gas.
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.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
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
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host | --host | --hos | --ho)
210 -host=* | --host=* | --hos=* | --ho=*)
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" ;;
220 -infodir | --infodir | --infodi | --infod | --info | --inf)
222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
223 infodir="$ac_optarg" ;;
225 -libdir | --libdir | --libdi | --libd)
227 -libdir=* | --libdir=* | --libdi=* | --libd=*)
228 libdir="$ac_optarg" ;;
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" ;;
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" ;;
246 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
249 mandir="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
260 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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" ;;
272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
275 prefix="$ac_optarg" ;;
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" ;;
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" ;;
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" ;;
308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
309 | -silent | --silent | --silen | --sile | --sil)
312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316 sbindir="$ac_optarg" ;;
318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
320 | --sharedst | --shareds | --shared | --share | --shar \
322 ac_prev=sharedstatedir ;;
323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327 sharedstatedir="$ac_optarg" ;;
329 -site | --site | --sit)
331 -site=* | --site=* | --sit=*)
334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
337 srcdir="$ac_optarg" ;;
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" ;;
346 -target | --target | --targe | --targ | --tar | --ta | --t)
348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
349 target="$ac_optarg" ;;
351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 -version | --version | --versio | --versi | --vers)
355 echo "configure generated by autoconf version 2.13"
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; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
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; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
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" ;;
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" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
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
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; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
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
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
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" ;;
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
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.
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
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.
480 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted=no
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; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
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"
503 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
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
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
539 ac_n= ac_c='\c' ac_t=
546 GINACLIB_MAJOR_VERSION=0
547 GINACLIB_MINOR_VERSION=6
548 GINACLIB_MICRO_VERSION=1
549 GINACLIB_INTERFACE_AGE=1
550 GINACLIB_BINARY_AGE=1
551 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
566 cat >> confdefs.h <<EOF
567 #define ARCHIVE_VERSION $ARCHIVE_VERSION
570 cat >> confdefs.h <<EOF
571 #define ARCHIVE_AGE $ARCHIVE_AGE
575 LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
576 LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
577 LT_REVISION=$GINACLIB_INTERFACE_AGE
578 LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
592 ac_install_sh="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh; then
596 ac_install_sh="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
607 # Find a good install program. We prefer a C program (faster),
608 # so one script is as good as another. But avoid the broken or
609 # incompatible versions:
610 # SysV /etc/install, /usr/sbin/install
611 # SunOS /usr/etc/install
614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
617 # ./install, which can be erroneously created by make from ./install.sh.
618 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
619 echo "configure:620: checking for a BSD compatible install" >&5
620 if test -z "$INSTALL"; then
621 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
624 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
625 for ac_dir in $PATH; do
626 # Account for people who put trailing slashes in PATH elements.
628 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
630 # OSF1 and SCO ODT 3.0 have their own names for install.
631 # Don't use installbsd from OSF since it installs stuff as root
633 for ac_prog in ginstall scoinst install; do
634 if test -f $ac_dir/$ac_prog; then
635 if test $ac_prog = install &&
636 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
637 # AIX install. It has an incompatible calling convention.
640 ac_cv_path_install="$ac_dir/$ac_prog -c"
651 if test "${ac_cv_path_install+set}" = set; then
652 INSTALL="$ac_cv_path_install"
654 # As a last resort, use the slow shell script. We don't cache a
655 # path for INSTALL within a source directory, because that will
656 # break other packages using the cache if that directory is
657 # removed, or if the path is relative.
658 INSTALL="$ac_install_sh"
661 echo "$ac_t""$INSTALL" 1>&6
663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
664 # It thinks the first close brace ends the variable substitution.
665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
669 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
671 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
672 echo "configure:673: checking whether build environment is sane" >&5
675 echo timestamp > conftestfile
676 # Do `set' in a subshell so we don't clobber the current shell's
677 # arguments. Must try -L first in case configure is actually a
678 # symlink; some systems play weird games with the mod time of symlinks
679 # (eg FreeBSD returns the mod time of the symlink's containing
682 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
683 if test "$*" = "X"; then
685 set X `ls -t $srcdir/configure conftestfile`
687 if test "$*" != "X $srcdir/configure conftestfile" \
688 && test "$*" != "X conftestfile $srcdir/configure"; then
690 # If neither matched, then we have a broken ls. This can happen
691 # if, for instance, CONFIG_SHELL is bash and it inherits a
692 # broken ls alias from the environment. This has actually
693 # happened. Such a system could not be considered "sane".
694 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
695 alias in your environment" 1>&2; exit 1; }
698 test "$2" = conftestfile
704 { echo "configure: error: newly created file is older than distributed files!
705 Check your system clock" 1>&2; exit 1; }
708 echo "$ac_t""yes" 1>&6
709 if test "$program_transform_name" = s,x,x,; then
710 program_transform_name=
712 # Double any \ or $. echo might interpret backslashes.
713 cat <<\EOF_SED > conftestsed
714 s,\\,\\\\,g; s,\$,$$,g
716 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
719 test "$program_prefix" != NONE &&
720 program_transform_name="s,^,${program_prefix},; $program_transform_name"
721 # Use a double $ so make ignores it.
722 test "$program_suffix" != NONE &&
723 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
725 # sed with no file args requires a program.
726 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
728 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
729 echo "configure:730: checking whether ${MAKE-make} sets \${MAKE}" >&5
730 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
731 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
732 echo $ac_n "(cached) $ac_c" 1>&6
734 cat > conftestmake <<\EOF
736 @echo 'ac_maketemp="${MAKE}"'
738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
739 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
740 if test -n "$ac_maketemp"; then
741 eval ac_cv_prog_make_${ac_make}_set=yes
743 eval ac_cv_prog_make_${ac_make}_set=no
747 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
748 echo "$ac_t""yes" 1>&6
751 echo "$ac_t""no" 1>&6
752 SET_MAKE="MAKE=${MAKE-make}"
758 VERSION=$GINACLIB_VERSION
760 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
761 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
763 cat >> confdefs.h <<EOF
764 #define PACKAGE "$PACKAGE"
767 cat >> confdefs.h <<EOF
768 #define VERSION "$VERSION"
773 missing_dir=`cd $ac_aux_dir && pwd`
774 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
775 echo "configure:776: checking for working aclocal" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 ACLOCAL="$missing_dir/missing aclocal"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
788 echo "configure:789: checking for working autoconf" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
794 echo "$ac_t""found" 1>&6
796 AUTOCONF="$missing_dir/missing autoconf"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working automake""... $ac_c" 1>&6
801 echo "configure:802: checking for working automake" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (automake --version) < /dev/null > /dev/null 2>&1; then
807 echo "$ac_t""found" 1>&6
809 AUTOMAKE="$missing_dir/missing automake"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoheader" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
819 AUTOHEADER=autoheader
820 echo "$ac_t""found" 1>&6
822 AUTOHEADER="$missing_dir/missing autoheader"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
827 echo "configure:828: checking for working makeinfo" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
833 echo "$ac_t""found" 1>&6
835 MAKEINFO="$missing_dir/missing makeinfo"
836 echo "$ac_t""missing" 1>&6
840 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
841 echo "configure:842: checking whether to enable maintainer-specific portions of Makefiles" >&5
842 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
843 if test "${enable_maintainer_mode+set}" = set; then
844 enableval="$enable_maintainer_mode"
845 USE_MAINTAINER_MODE=$enableval
847 USE_MAINTAINER_MODE=no
850 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
853 if test $USE_MAINTAINER_MODE = yes; then
854 MAINTAINER_MODE_TRUE=
855 MAINTAINER_MODE_FALSE='#'
857 MAINTAINER_MODE_TRUE='#'
858 MAINTAINER_MODE_FALSE=
860 MAINT=$MAINTAINER_MODE_TRUE
864 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
866 # Extract the first word of "$ac_prog", so it can be a program name with args.
867 set dummy $ac_prog; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
873 if test -n "$CXX"; then
874 ac_cv_prog_CXX="$CXX" # Let the user override the test.
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
878 for ac_dir in $ac_dummy; do
879 test -z "$ac_dir" && ac_dir=.
880 if test -f $ac_dir/$ac_word; then
881 ac_cv_prog_CXX="$ac_prog"
888 CXX="$ac_cv_prog_CXX"
889 if test -n "$CXX"; then
890 echo "$ac_t""$CXX" 1>&6
892 echo "$ac_t""no" 1>&6
895 test -n "$CXX" && break
897 test -n "$CXX" || CXX="gcc"
900 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
901 echo "configure:902: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
904 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
905 ac_cpp='$CXXCPP $CPPFLAGS'
906 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
907 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
908 cross_compiling=$ac_cv_prog_cxx_cross
910 cat > conftest.$ac_ext << EOF
912 #line 913 "configure"
913 #include "confdefs.h"
915 int main(){return(0);}
917 if { (eval echo configure:918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
918 ac_cv_prog_cxx_works=yes
919 # If we can't run a trivial program, we are probably using a cross compiler.
920 if (./conftest; exit) 2>/dev/null; then
921 ac_cv_prog_cxx_cross=no
923 ac_cv_prog_cxx_cross=yes
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 ac_cv_prog_cxx_works=no
932 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
933 ac_cpp='$CPP $CPPFLAGS'
934 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
935 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
936 cross_compiling=$ac_cv_prog_cc_cross
938 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
939 if test $ac_cv_prog_cxx_works = no; then
940 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
942 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
943 echo "configure:944: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
944 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
945 cross_compiling=$ac_cv_prog_cxx_cross
947 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
948 echo "configure:949: checking whether we are using GNU C++" >&5
949 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
950 echo $ac_n "(cached) $ac_c" 1>&6
952 cat > conftest.C <<EOF
957 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
964 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
966 if test $ac_cv_prog_gxx = yes; then
972 ac_test_CXXFLAGS="${CXXFLAGS+set}"
973 ac_save_CXXFLAGS="$CXXFLAGS"
975 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
976 echo "configure:977: checking whether ${CXX-g++} accepts -g" >&5
977 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 echo 'void f(){}' > conftest.cc
981 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
990 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
991 if test "$ac_test_CXXFLAGS" = set; then
992 CXXFLAGS="$ac_save_CXXFLAGS"
993 elif test $ac_cv_prog_cxx_g = yes; then
994 if test "$GXX" = yes; then
1000 if test "$GXX" = yes; then
1007 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1008 echo "configure:1009: checking how to run the C++ preprocessor" >&5
1009 if test -z "$CXXCPP"; then
1010 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1011 echo $ac_n "(cached) $ac_c" 1>&6
1014 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1015 ac_cpp='$CXXCPP $CPPFLAGS'
1016 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1017 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1018 cross_compiling=$ac_cv_prog_cxx_cross
1019 CXXCPP="${CXX-g++} -E"
1020 cat > conftest.$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1026 { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1028 if test -z "$ac_err"; then
1032 echo "configure: failed program was:" >&5
1033 cat conftest.$ac_ext >&5
1038 ac_cv_prog_CXXCPP="$CXXCPP"
1040 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1041 ac_cpp='$CPP $CPPFLAGS'
1042 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1043 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1044 cross_compiling=$ac_cv_prog_cc_cross
1047 CXXCPP="$ac_cv_prog_CXXCPP"
1048 echo "$ac_t""$CXXCPP" 1>&6
1050 # Find a good install program. We prefer a C program (faster),
1051 # so one script is as good as another. But avoid the broken or
1052 # incompatible versions:
1053 # SysV /etc/install, /usr/sbin/install
1054 # SunOS /usr/etc/install
1055 # IRIX /sbin/install
1057 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1058 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1059 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1060 # ./install, which can be erroneously created by make from ./install.sh.
1061 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1062 echo "configure:1063: checking for a BSD compatible install" >&5
1063 if test -z "$INSTALL"; then
1064 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1068 for ac_dir in $PATH; do
1069 # Account for people who put trailing slashes in PATH elements.
1071 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1073 # OSF1 and SCO ODT 3.0 have their own names for install.
1074 # Don't use installbsd from OSF since it installs stuff as root
1076 for ac_prog in ginstall scoinst install; do
1077 if test -f $ac_dir/$ac_prog; then
1078 if test $ac_prog = install &&
1079 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1080 # AIX install. It has an incompatible calling convention.
1083 ac_cv_path_install="$ac_dir/$ac_prog -c"
1094 if test "${ac_cv_path_install+set}" = set; then
1095 INSTALL="$ac_cv_path_install"
1097 # As a last resort, use the slow shell script. We don't cache a
1098 # path for INSTALL within a source directory, because that will
1099 # break other packages using the cache if that directory is
1100 # removed, or if the path is relative.
1101 INSTALL="$ac_install_sh"
1104 echo "$ac_t""$INSTALL" 1>&6
1106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1107 # It thinks the first close brace ends the variable substitution.
1108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1114 # Check whether --enable-shared or --disable-shared was given.
1115 if test "${enable_shared+set}" = set; then
1116 enableval="$enable_shared"
1117 p=${PACKAGE-default}
1118 case "$enableval" in
1119 yes) enable_shared=yes ;;
1120 no) enable_shared=no ;;
1123 # Look at the argument we got. We use all the common list separators.
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1125 for pkg in $enableval; do
1126 if test "X$pkg" = "X$p"; then
1137 # Check whether --enable-static or --disable-static was given.
1138 if test "${enable_static+set}" = set; then
1139 enableval="$enable_static"
1140 p=${PACKAGE-default}
1141 case "$enableval" in
1142 yes) enable_static=yes ;;
1143 no) enable_static=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
1160 # Check whether --enable-fast-install or --disable-fast-install was given.
1161 if test "${enable_fast_install+set}" = set; then
1162 enableval="$enable_fast_install"
1163 p=${PACKAGE-default}
1164 case "$enableval" in
1165 yes) enable_fast_install=yes ;;
1166 no) enable_fast_install=no ;;
1168 enable_fast_install=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_fast_install=yes
1180 enable_fast_install=yes
1184 # Make sure we can run config.sub.
1185 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1186 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1189 echo $ac_n "checking host system type""... $ac_c" 1>&6
1190 echo "configure:1191: checking host system type" >&5
1193 case "$host_alias" in
1197 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1198 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1200 *) host_alias=$nonopt ;;
1204 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1205 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1206 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1207 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1208 echo "$ac_t""$host" 1>&6
1210 echo $ac_n "checking build system type""... $ac_c" 1>&6
1211 echo "configure:1212: checking build system type" >&5
1214 case "$build_alias" in
1217 NONE) build_alias=$host_alias ;;
1218 *) build_alias=$nonopt ;;
1222 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1223 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1224 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1225 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1226 echo "$ac_t""$build" 1>&6
1228 # Extract the first word of "ranlib", so it can be a program name with args.
1229 set dummy ranlib; ac_word=$2
1230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231 echo "configure:1232: checking for $ac_word" >&5
1232 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 if test -n "$RANLIB"; then
1236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1240 for ac_dir in $ac_dummy; do
1241 test -z "$ac_dir" && ac_dir=.
1242 if test -f $ac_dir/$ac_word; then
1243 ac_cv_prog_RANLIB="ranlib"
1248 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1251 RANLIB="$ac_cv_prog_RANLIB"
1252 if test -n "$RANLIB"; then
1253 echo "$ac_t""$RANLIB" 1>&6
1255 echo "$ac_t""no" 1>&6
1258 # Extract the first word of "gcc", so it can be a program name with args.
1259 set dummy gcc; ac_word=$2
1260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1261 echo "configure:1262: checking for $ac_word" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC="$CC" # Let the user override the test.
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1270 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 if test -f $ac_dir/$ac_word; then
1281 if test -n "$CC"; then
1282 echo "$ac_t""$CC" 1>&6
1284 echo "$ac_t""no" 1>&6
1287 if test -z "$CC"; then
1288 # Extract the first word of "cc", so it can be a program name with args.
1289 set dummy cc; ac_word=$2
1290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1291 echo "configure:1292: checking for $ac_word" >&5
1292 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 if test -n "$CC"; then
1296 ac_cv_prog_CC="$CC" # Let the user override the test.
1298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1301 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 if test -f $ac_dir/$ac_word; then
1304 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1305 ac_prog_rejected=yes
1313 if test $ac_prog_rejected = yes; then
1314 # We found a bogon in the path, so make sure we never use it.
1315 set dummy $ac_cv_prog_CC
1317 if test $# -gt 0; then
1318 # We chose a different compiler from the bogus one.
1319 # However, it has the same basename, so the bogon will be chosen
1320 # first if we set CC to just the basename; use the full file name.
1322 set dummy "$ac_dir/$ac_word" "$@"
1330 if test -n "$CC"; then
1331 echo "$ac_t""$CC" 1>&6
1333 echo "$ac_t""no" 1>&6
1336 if test -z "$CC"; then
1337 case "`uname -s`" in
1339 # Extract the first word of "cl", so it can be a program name with args.
1340 set dummy cl; ac_word=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 if test -n "$CC"; then
1347 ac_cv_prog_CC="$CC" # Let the user override the test.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f $ac_dir/$ac_word; then
1362 if test -n "$CC"; then
1363 echo "$ac_t""$CC" 1>&6
1365 echo "$ac_t""no" 1>&6
1370 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1373 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1374 echo "configure:1375: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1378 ac_cpp='$CPP $CPPFLAGS'
1379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1381 cross_compiling=$ac_cv_prog_cc_cross
1383 cat > conftest.$ac_ext << EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1391 ac_cv_prog_cc_works=yes
1392 # If we can't run a trivial program, we are probably using a cross compiler.
1393 if (./conftest; exit) 2>/dev/null; then
1394 ac_cv_prog_cc_cross=no
1396 ac_cv_prog_cc_cross=yes
1399 echo "configure: failed program was:" >&5
1400 cat conftest.$ac_ext >&5
1401 ac_cv_prog_cc_works=no
1405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1406 ac_cpp='$CPP $CPPFLAGS'
1407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1409 cross_compiling=$ac_cv_prog_cc_cross
1411 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1412 if test $ac_cv_prog_cc_works = no; then
1413 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1415 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1416 echo "configure:1417: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1417 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1418 cross_compiling=$ac_cv_prog_cc_cross
1420 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether we are using GNU C" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 cat > conftest.c <<EOF
1430 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1437 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1439 if test $ac_cv_prog_gcc = yes; then
1445 ac_test_CFLAGS="${CFLAGS+set}"
1446 ac_save_CFLAGS="$CFLAGS"
1448 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1449 echo "configure:1450: checking whether ${CC-cc} accepts -g" >&5
1450 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 echo 'void f(){}' > conftest.c
1454 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1463 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1464 if test "$ac_test_CFLAGS" = set; then
1465 CFLAGS="$ac_save_CFLAGS"
1466 elif test $ac_cv_prog_cc_g = yes; then
1467 if test "$GCC" = yes; then
1473 if test "$GCC" = yes; then
1480 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1481 if test "${with_gnu_ld+set}" = set; then
1482 withval="$with_gnu_ld"
1483 test "$withval" = no || with_gnu_ld=yes
1489 if test "$ac_cv_prog_gcc" = yes; then
1490 # Check if gcc -print-prog-name=ld gives a path.
1491 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1492 echo "configure:1493: checking for ld used by GCC" >&5
1493 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1495 # Accept absolute paths.
1496 [\\/]* | [A-Za-z]:[\\/]*)
1497 re_direlt='/[^/][^/]*/\.\./'
1498 # Canonicalize the path of ld
1499 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1500 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1501 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1503 test -z "$LD" && LD="$ac_prog"
1506 # If it fails, then pretend we aren't using GCC.
1510 # If it is relative, then search for the first ld in PATH.
1514 elif test "$with_gnu_ld" = yes; then
1515 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1516 echo "configure:1517: checking for GNU ld" >&5
1518 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1519 echo "configure:1520: checking for non-GNU ld" >&5
1521 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -z "$LD"; then
1525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1526 for ac_dir in $PATH; do
1527 test -z "$ac_dir" && ac_dir=.
1528 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1529 ac_cv_path_LD="$ac_dir/$ac_prog"
1530 # Check to see if the program is GNU ld. I'd rather use --version,
1531 # but apparently some GNU ld's only accept -v.
1532 # Break only if it was the GNU/non-GNU ld that we prefer.
1533 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1534 test "$with_gnu_ld" != no && break
1536 test "$with_gnu_ld" != yes && break
1542 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1547 if test -n "$LD"; then
1548 echo "$ac_t""$LD" 1>&6
1550 echo "$ac_t""no" 1>&6
1552 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1554 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1555 echo "configure:1556: checking if the linker ($LD) is GNU ld" >&5
1556 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1560 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1561 ac_cv_prog_gnu_ld=yes
1563 ac_cv_prog_gnu_ld=no
1567 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1570 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1571 echo "configure:1572: checking for BSD-compatible nm" >&5
1572 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 if test -n "$NM"; then
1576 # Let the user override the test.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1580 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1583 # Check to see if the nm accepts a BSD-compat flag.
1584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1585 # nm: unknown option "B" ignored
1586 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1587 ac_cv_path_NM="$ac_dir/nm -B"
1589 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1590 ac_cv_path_NM="$ac_dir/nm -p"
1593 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1594 continue # so that we can try to find one that supports BSD flags
1599 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1604 echo "$ac_t""$NM" 1>&6
1607 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether ln -s works" >&5
1609 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1613 if ln -s X conftestdata 2>/dev/null
1616 ac_cv_prog_LN_S="ln -s"
1621 LN_S="$ac_cv_prog_LN_S"
1622 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1623 echo "$ac_t""yes" 1>&6
1625 echo "$ac_t""no" 1>&6
1629 # Check for any special flags to pass to ltconfig.
1630 libtool_flags="--cache-file=$cache_file"
1631 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1632 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1633 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1634 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1635 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1638 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1639 if test "${enable_libtool_lock+set}" = set; then
1640 enableval="$enable_libtool_lock"
1644 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1645 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1647 # Some flags need to be propagated to the compiler or linker for good
1651 # Find out which ABI we are using.
1652 echo '#line 1653 "configure"' > conftest.$ac_ext
1653 if { (eval echo configure:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1654 case "`/usr/bin/file conftest.o`" in
1670 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1671 SAVE_CFLAGS="$CFLAGS"
1672 CFLAGS="$CFLAGS -belf"
1673 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1674 echo "configure:1675: checking whether the C compiler needs -belf" >&5
1675 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 cat > conftest.$ac_ext <<EOF
1679 #line 1680 "configure"
1680 #include "confdefs.h"
1686 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1688 lt_cv_cc_needs_belf=yes
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1693 lt_cv_cc_needs_belf=no
1698 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1699 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1701 CFLAGS="$SAVE_CFLAGS"
1709 # Save cache, so that ltconfig can load it
1710 cat > confcache <<\EOF
1711 # This file is a shell script that caches the results of configure
1712 # tests run on this system so they can be shared between configure
1713 # scripts and configure runs. It is not useful on other systems.
1714 # If it contains results you don't want to keep, you may remove or edit it.
1716 # By default, configure uses ./config.cache as the cache file,
1717 # creating it if it does not exist already. You can give configure
1718 # the --cache-file=FILE option to use a different cache file; that is
1719 # what configure does when it calls configure scripts in
1720 # subdirectories, so they share the cache.
1721 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1722 # config.status only pays attention to the cache file if you give it the
1723 # --recheck option to rerun configure.
1726 # The following way of writing the cache mishandles newlines in values,
1727 # but we know of no workaround that is simple, portable, and efficient.
1728 # So, don't put newlines in cache variables' values.
1729 # Ultrix sh set writes to stderr and can't be redirected directly,
1730 # and sets the high bit in the cache file unless we assign to the vars.
1732 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1734 # `set' does not quote correctly, so add quotes (double-quote substitution
1735 # turns \\\\ into \\, and sed turns \\ into \).
1737 -e "s/'/'\\\\''/g" \
1738 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1741 # `set' quotes correctly as required by POSIX, so do not add quotes.
1742 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1745 if cmp -s $cache_file confcache; then
1748 if test -w $cache_file; then
1749 echo "updating cache $cache_file"
1750 cat confcache > $cache_file
1752 echo "not updating unwritable cache $cache_file"
1758 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1759 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1760 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1761 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1762 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1763 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1764 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1765 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1767 # Reload cache, that may have been modified by ltconfig
1768 if test -r "$cache_file"; then
1769 echo "loading cache $cache_file"
1772 echo "creating cache $cache_file"
1777 # This can be used to rebuild libtool when needed
1778 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1780 # Always use our own libtool.
1781 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1783 # Redirect the config.log output again, so that the ltconfig log is not
1784 # clobbered by the next message.
1785 exec 5>>./config.log
1787 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1788 echo "configure:1789: checking how to run the C preprocessor" >&5
1789 # On Suns, sometimes $CPP names a directory.
1790 if test -n "$CPP" && test -d "$CPP"; then
1793 if test -z "$CPP"; then
1794 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 # This must be in double quotes, not single quotes, because CPP may get
1798 # substituted into the Makefile and "${CC-cc}" will confuse make.
1800 # On the NeXT, cc -E runs the code through the compiler's parser,
1801 # not just through cpp.
1802 cat > conftest.$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1809 { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1811 if test -z "$ac_err"; then
1815 echo "configure: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1818 CPP="${CC-cc} -E -traditional-cpp"
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1826 { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1828 if test -z "$ac_err"; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 CPP="${CC-cc} -nologo -E"
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1843 { (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1845 if test -z "$ac_err"; then
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1859 ac_cv_prog_CPP="$CPP"
1861 CPP="$ac_cv_prog_CPP"
1863 ac_cv_prog_CPP="$CPP"
1865 echo "$ac_t""$CPP" 1>&6
1867 missing_dir=`cd $ac_aux_dir && pwd`
1868 for ac_prog in flex lex
1870 # Extract the first word of "$ac_prog", so it can be a program name with args.
1871 set dummy $ac_prog; ac_word=$2
1872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1873 echo "configure:1874: checking for $ac_word" >&5
1874 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1877 if test -n "$LEX"; then
1878 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1882 for ac_dir in $ac_dummy; do
1883 test -z "$ac_dir" && ac_dir=.
1884 if test -f $ac_dir/$ac_word; then
1885 ac_cv_prog_LEX="$ac_prog"
1892 LEX="$ac_cv_prog_LEX"
1893 if test -n "$LEX"; then
1894 echo "$ac_t""$LEX" 1>&6
1896 echo "$ac_t""no" 1>&6
1899 test -n "$LEX" && break
1901 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1903 # Extract the first word of "flex", so it can be a program name with args.
1904 set dummy flex; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5
1907 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1908 echo $ac_n "(cached) $ac_c" 1>&6
1910 if test -n "$LEX"; then
1911 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1915 for ac_dir in $ac_dummy; do
1916 test -z "$ac_dir" && ac_dir=.
1917 if test -f $ac_dir/$ac_word; then
1918 ac_cv_prog_LEX="flex"
1923 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1926 LEX="$ac_cv_prog_LEX"
1927 if test -n "$LEX"; then
1928 echo "$ac_t""$LEX" 1>&6
1930 echo "$ac_t""no" 1>&6
1933 if test -z "$LEXLIB"
1939 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1940 echo "configure:1941: checking for yywrap in -l$ac_lib" >&5
1941 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 ac_save_LIBS="$LIBS"
1946 LIBS="-l$ac_lib $LIBS"
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* Override any gcc2 internal prototype to avoid an error. */
1951 /* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1961 eval "ac_cv_lib_$ac_lib_var=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_lib_$ac_lib_var=no"
1969 LIBS="$ac_save_LIBS"
1972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1976 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1982 echo "configure:1983: checking lex output file root" >&5
1983 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 # The minimal lex program is just a single line: %%. But some broken lexes
1987 # (Solaris, I think it was) want two %% lines, so accommodate them.
1990 if test -f lex.yy.c; then
1991 ac_cv_prog_lex_root=lex.yy
1992 elif test -f lexyy.c; then
1993 ac_cv_prog_lex_root=lexyy
1995 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1999 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2000 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2002 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2003 echo "configure:2004: checking whether yytext is a pointer" >&5
2004 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2007 # POSIX says lex can declare yytext either as a pointer or an array; the
2008 # default is implementation-dependent. Figure out which it is, since
2009 # not all implementations provide the %pointer and %array declarations.
2010 ac_cv_prog_lex_yytext_pointer=no
2011 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2012 ac_save_LIBS="$LIBS"
2013 LIBS="$LIBS $LEXLIB"
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2017 `cat $LEX_OUTPUT_ROOT.c`
2022 if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024 ac_cv_prog_lex_yytext_pointer=yes
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2030 LIBS="$ac_save_LIBS"
2031 rm -f "${LEX_OUTPUT_ROOT}.c"
2035 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2036 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2037 cat >> confdefs.h <<\EOF
2038 #define YYTEXT_POINTER 1
2043 for ac_prog in 'bison -y' byacc
2045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_word" >&5
2049 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 if test -n "$YACC"; then
2053 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2057 for ac_dir in $ac_dummy; do
2058 test -z "$ac_dir" && ac_dir=.
2059 if test -f $ac_dir/$ac_word; then
2060 ac_cv_prog_YACC="$ac_prog"
2067 YACC="$ac_cv_prog_YACC"
2068 if test -n "$YACC"; then
2069 echo "$ac_t""$YACC" 1>&6
2071 echo "$ac_t""no" 1>&6
2074 test -n "$YACC" && break
2076 test -n "$YACC" || YACC="yacc"
2079 # Check whether --enable-html-doc or --disable-html-doc was given.
2080 if test "${enable_html_doc+set}" = set; then
2081 enableval="$enable_html_doc"
2087 # Check whether --enable-ps-doc or --disable-ps-doc was given.
2088 if test "${enable_ps_doc+set}" = set; then
2089 enableval="$enable_ps_doc"
2095 # Check whether --with-cint or --without-cint was given.
2096 if test "${with_cint+set}" = set; then
2097 withval="$with_cint"
2104 echo $ac_n "checking size of long""... $ac_c" 1>&6
2105 echo "configure:2106: checking size of long" >&5
2106 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test "$cross_compiling" = yes; then
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2118 FILE *f=fopen("conftestval", "w");
2120 fprintf(f, "%d\n", sizeof(long));
2124 if { (eval echo configure:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2126 ac_cv_sizeof_long=`cat conftestval`
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2137 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2138 cat >> confdefs.h <<EOF
2139 #define SIZEOF_LONG $ac_cv_sizeof_long
2143 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2144 echo "configure:2145: checking size of long long" >&5
2145 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 if test "$cross_compiling" = yes; then
2149 ac_cv_sizeof_long_long=8
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2157 FILE *f=fopen("conftestval", "w");
2159 fprintf(f, "%d\n", sizeof(long long));
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2165 ac_cv_sizeof_long_long=`cat conftestval`
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2170 ac_cv_sizeof_long_long=0
2176 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2177 cat >> confdefs.h <<EOF
2178 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2182 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2183 echo "configure:2184: checking size of long double" >&5
2184 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 if test "$cross_compiling" = yes; then
2188 ac_cv_sizeof_long_double=12
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2196 FILE *f=fopen("conftestval", "w");
2198 fprintf(f, "%d\n", sizeof(long double));
2202 if { (eval echo configure:2203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2204 ac_cv_sizeof_long_double=`cat conftestval`
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2209 ac_cv_sizeof_long_double=0
2215 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2216 cat >> confdefs.h <<EOF
2217 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2223 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2224 ac_cpp='$CXXCPP $CPPFLAGS'
2225 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2226 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2227 cross_compiling=$ac_cv_prog_cxx_cross
2230 for ac_hdr in unistd.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_hdr in readline/readline.h readline/history.h
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301 cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2306 echo "$ac_t""no" 1>&6
2310 if test "x${ac_cv_header_readline_readline_h}" != "xyes" -o "x${ac_cv_header_readline_history_h}" != "xyes"; then
2312 ginac_warning_txt="$ginac_warning_txt
2313 == I could not find the headers for libreadline (needed for building ginsh).
2318 for ac_func in tgetent
2320 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2321 echo "configure:2322: checking for $ac_func" >&5
2322 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2323 echo $ac_n "(cached) $ac_c" 1>&6
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 /* System header to define __stub macros and hopefully few prototypes,
2329 which can conflict with char $ac_func(); below. */
2331 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2354 eval "ac_cv_func_$ac_func=yes"
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2359 eval "ac_cv_func_$ac_func=no"
2364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_func 1
2372 echo "$ac_t""no" 1>&6
2376 if test "x$ac_cv_func_tgetent" = "xyes"; then
2379 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
2380 echo "configure:2381: checking for tgetent in -lncurses" >&5
2381 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
2382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 ac_save_LIBS="$LIBS"
2386 LIBS="-lncurses $LIBS"
2387 cat > conftest.$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* Override any gcc2 internal prototype to avoid an error. */
2394 /* We use char because int might match the return type of a gcc2
2395 builtin and then its argument prototype would still apply. */
2402 if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2404 eval "ac_cv_lib_$ac_lib_var=yes"
2406 echo "configure: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2409 eval "ac_cv_lib_$ac_lib_var=no"
2412 LIBS="$ac_save_LIBS"
2415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 LIBTERMCAP="-lncurses"
2419 echo "$ac_t""no" 1>&6
2422 if test -z "$LIBTERMCAP"; then
2423 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
2424 echo "configure:2425: checking for tgetent in -ltermcap" >&5
2425 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
2426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 ac_save_LIBS="$LIBS"
2430 LIBS="-ltermcap $LIBS"
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2434 /* Override any gcc2 internal prototype to avoid an error. */
2438 /* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2446 if { (eval echo configure:2447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2448 eval "ac_cv_lib_$ac_lib_var=yes"
2450 echo "configure: failed program was:" >&5
2451 cat conftest.$ac_ext >&5
2453 eval "ac_cv_lib_$ac_lib_var=no"
2456 LIBS="$ac_save_LIBS"
2459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2460 echo "$ac_t""yes" 1>&6
2461 LIBTERMCAP="-ltermcap"
2463 echo "$ac_t""no" 1>&6
2471 LIBS="$LIBTERMCAP $LIBS"
2472 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2473 echo "configure:2474: checking for readline in -lreadline" >&5
2474 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2475 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 ac_save_LIBS="$LIBS"
2479 LIBS="-lreadline $LIBS"
2480 cat > conftest.$ac_ext <<EOF
2481 #line 2482 "configure"
2482 #include "confdefs.h"
2483 /* Override any gcc2 internal prototype to avoid an error. */
2487 /* We use char because int might match the return type of a gcc2
2488 builtin and then its argument prototype would still apply. */
2495 if { (eval echo configure:2496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2497 eval "ac_cv_lib_$ac_lib_var=yes"
2499 echo "configure: failed program was:" >&5
2500 cat conftest.$ac_ext >&5
2502 eval "ac_cv_lib_$ac_lib_var=no"
2505 LIBS="$ac_save_LIBS"
2508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2510 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2512 cat >> confdefs.h <<EOF
2513 #define $ac_tr_lib 1
2516 LIBS="-lreadline $LIBS"
2519 echo "$ac_t""no" 1>&6
2522 if test "x${ac_cv_lib_readline_readline}" != "xyes"; then
2524 ginac_warning_txt="$ginac_warning_txt
2525 == I could not find libreadline (needed by ginsh).
2533 for ac_hdr in iostream vector map string list typeinfo iterator stdexcept algorithm
2535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2537 echo "configure:2538: checking for $ac_hdr" >&5
2538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2547 { (eval echo configure:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2549 if test -z "$ac_err"; then
2551 eval "ac_cv_header_$ac_safe=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 eval "ac_cv_header_$ac_safe=no"
2561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2562 echo "$ac_t""yes" 1>&6
2563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2564 cat >> confdefs.h <<EOF
2565 #define $ac_tr_hdr 1
2569 echo "$ac_t""no" 1>&6
2570 { echo "configure: error: need to have ANSI compliant headers" 1>&2; exit 1; }
2574 for ac_hdr in sstream strstream
2576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2578 echo "configure:2579: checking for $ac_hdr" >&5
2579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2588 { (eval echo configure:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2590 if test -z "$ac_err"; then
2592 eval "ac_cv_header_$ac_safe=yes"
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 eval "ac_cv_header_$ac_safe=no"
2602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2603 echo "$ac_t""yes" 1>&6
2604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2605 cat >> confdefs.h <<EOF
2606 #define $ac_tr_hdr 1
2610 echo "$ac_t""no" 1>&6
2616 for ac_hdr in cln/cln.h
2618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2620 echo "configure:2621: checking for $ac_hdr" >&5
2621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2630 { (eval echo configure:2631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2632 if test -z "$ac_err"; then
2634 eval "ac_cv_header_$ac_safe=yes"
2637 echo "configure: failed program was:" >&5
2638 cat conftest.$ac_ext >&5
2640 eval "ac_cv_header_$ac_safe=no"
2644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2645 echo "$ac_t""yes" 1>&6
2646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2647 cat >> confdefs.h <<EOF
2648 #define $ac_tr_hdr 1
2652 echo "$ac_t""no" 1>&6
2655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_hdr" >&5
2658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 cat > conftest.$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2669 if test -z "$ac_err"; then
2671 eval "ac_cv_header_$ac_safe=yes"
2674 echo "configure: failed program was:" >&5
2675 cat conftest.$ac_ext >&5
2677 eval "ac_cv_header_$ac_safe=no"
2681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2684 cat >> confdefs.h <<EOF
2685 #define $ac_tr_hdr 1
2689 echo "$ac_t""no" 1>&6
2690 { echo "configure: error: cannot find header for Bruno Haible's CLN" 1>&2; exit 1; };
2701 echo $ac_n "checking for doublefactorial in -lcln""... $ac_c" 1>&6
2702 echo "configure:2703: checking for doublefactorial in -lcln" >&5
2703 saved_LIBS="${LIBS}"
2704 if eval "test \"`echo '$''{'ginac_cv_lib_cln_link'+set}'`\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2708 case "${ac_cv_header_cln_cln_h}" in
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 #include <cln/cl_integer.h>
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2720 ginac_cv_lib_cln_link="-lcln"
2722 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5
2725 ginac_cv_lib_cln_link="fail"
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 #include <cl_integer.h>
2738 if { (eval echo configure:2739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2740 ginac_cv_lib_cln_link="-lcln"
2742 echo "configure: failed program was:" >&5
2743 cat conftest.$ac_ext >&5
2745 ginac_cv_lib_cln_link="fail"
2753 case "${ginac_cv_lib_cln_link}" in
2755 LIBS="${ginac_cv_lib_cln_link} ${saved_LIBS}"
2756 echo "$ac_t"""yes"" 1>&6
2759 LIBS="${saved_LIBS}"
2760 echo "$ac_t""no" 1>&6
2762 ginac_error_txt="$ginac_error_txt
2763 ** I could not successfully link a test-program against libcln.
2764 You either need to set \$LDFLAGS or install/update the CLN library.
2771 GINACLIB_CPPFLAGS=$CPPFLAGS
2776 # Extract the first word of "doxygen", so it can be a program name with args.
2777 set dummy doxygen; ac_word=$2
2778 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_word" >&5
2780 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
2788 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2793 for ac_dir in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
2801 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
2805 DOXYGEN="$ac_cv_path_DOXYGEN"
2806 if test -n "$DOXYGEN"; then
2807 echo "$ac_t""$DOXYGEN" 1>&6
2809 echo "$ac_t""no" 1>&6
2812 # Extract the first word of "latex", so it can be a program name with args.
2813 set dummy latex; ac_word=$2
2814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_word" >&5
2816 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2821 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2824 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
2827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2829 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=.
2831 if test -f $ac_dir/$ac_word; then
2832 ac_cv_path_LATEX="$ac_dir/$ac_word"
2837 test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
2841 LATEX="$ac_cv_path_LATEX"
2842 if test -n "$LATEX"; then
2843 echo "$ac_t""$LATEX" 1>&6
2845 echo "$ac_t""no" 1>&6
2848 # Extract the first word of "makeindex", so it can be a program name with args.
2849 set dummy makeindex; ac_word=$2
2850 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2851 echo "configure:2852: checking for $ac_word" >&5
2852 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2855 case "$MAKEINDEX" in
2857 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
2860 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a dos path.
2863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2865 for ac_dir in $ac_dummy; do
2866 test -z "$ac_dir" && ac_dir=.
2867 if test -f $ac_dir/$ac_word; then
2868 ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
2873 test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
2877 MAKEINDEX="$ac_cv_path_MAKEINDEX"
2878 if test -n "$MAKEINDEX"; then
2879 echo "$ac_t""$MAKEINDEX" 1>&6
2881 echo "$ac_t""no" 1>&6
2884 # Extract the first word of "dvips", so it can be a program name with args.
2885 set dummy dvips; ac_word=$2
2886 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2887 echo "configure:2888: checking for $ac_word" >&5
2888 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2893 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2896 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path.
2899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2901 for ac_dir in $ac_dummy; do
2902 test -z "$ac_dir" && ac_dir=.
2903 if test -f $ac_dir/$ac_word; then
2904 ac_cv_path_DVIPS="$ac_dir/$ac_word"
2909 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
2913 DVIPS="$ac_cv_path_DVIPS"
2914 if test -n "$DVIPS"; then
2915 echo "$ac_t""$DVIPS" 1>&6
2917 echo "$ac_t""no" 1>&6
2920 # Extract the first word of "fig2dev", so it can be a program name with args.
2921 set dummy fig2dev; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2929 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
2932 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a dos path.
2935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2937 for ac_dir in $ac_dummy; do
2938 test -z "$ac_dir" && ac_dir=.
2939 if test -f $ac_dir/$ac_word; then
2940 ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
2945 test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
2949 FIG2DEV="$ac_cv_path_FIG2DEV"
2950 if test -n "$FIG2DEV"; then
2951 echo "$ac_t""$FIG2DEV" 1>&6
2953 echo "$ac_t""no" 1>&6
2959 if test "x${enable_html_doc}" = "xyes"; then
2960 TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
2961 if [ "$DOXYGEN" ]; then
2962 REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
2965 if test "x${enable_ps_doc}" = "xyes"; then
2966 TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
2967 if [ "$DOXYGEN" ]; then
2968 REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
2975 if test "x$with_cint" != "xno"; then
2976 if test "x$with_cint" = "xyes"; then
2977 if test "x$CINTSYSDIR" = "x"; then
2978 { echo "configure: error: please export \$CINTSYSDIR or specify --with-cint=CINTSYSDIR" 1>&2; exit 1; }
2981 CINTSYSDIR=$with_cint
2984 # Extract the first word of "cint", so it can be a program name with args.
2985 set dummy cint; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"`echo '$''{'ac_cv_path_CINT'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2993 ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
2996 ac_cv_path_CINT="$CINT" # Let the user override the test with a dos path.
2999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3000 ac_dummy="$CINTSYSDIR:$PATH"
3001 for ac_dir in $ac_dummy; do
3002 test -z "$ac_dir" && ac_dir=.
3003 if test -f $ac_dir/$ac_word; then
3004 ac_cv_path_CINT="$ac_dir/$ac_word"
3009 test -z "$ac_cv_path_CINT" && ac_cv_path_CINT=""""
3013 CINT="$ac_cv_path_CINT"
3014 if test -n "$CINT"; then
3015 echo "$ac_t""$CINT" 1>&6
3017 echo "$ac_t""no" 1>&6
3020 # Extract the first word of "makecint", so it can be a program name with args.
3021 set dummy makecint; ac_word=$2
3022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3023 echo "configure:3024: checking for $ac_word" >&5
3024 if eval "test \"`echo '$''{'ac_cv_path_MAKECINT'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3029 ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a path.
3032 ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a dos path.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 ac_dummy="$CINTSYSDIR:$PATH"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_path_MAKECINT="$ac_dir/$ac_word"
3045 test -z "$ac_cv_path_MAKECINT" && ac_cv_path_MAKECINT=""""
3049 MAKECINT="$ac_cv_path_MAKECINT"
3050 if test -n "$MAKECINT"; then
3051 echo "$ac_t""$MAKECINT" 1>&6
3053 echo "$ac_t""no" 1>&6
3056 if [ "$CINT" -a "$MAKECINT" ]; then
3057 echo "$ac_t""creating cint/Makefile" 1>&6
3059 $MAKECINT -mk Makefile.makecint -o ginaccint.bin -m \
3060 -D OBSCURE_CINT_HACK "$CPPFLAGS" -cc "$CXXFLAGS" \
3061 -I .. -I $CINTSYSDIR -m -H ../ginac/ginac.h \
3062 -C++ ginaccint.bin.cpp \
3063 -l -L../ginac/.libs -lginac -lcln \
3068 { echo "configure: error: Cannot configure GiNaC-cint" 1>&2; exit 1; }
3075 cat > confcache <<\EOF
3076 # This file is a shell script that caches the results of configure
3077 # tests run on this system so they can be shared between configure
3078 # scripts and configure runs. It is not useful on other systems.
3079 # If it contains results you don't want to keep, you may remove or edit it.
3081 # By default, configure uses ./config.cache as the cache file,
3082 # creating it if it does not exist already. You can give configure
3083 # the --cache-file=FILE option to use a different cache file; that is
3084 # what configure does when it calls configure scripts in
3085 # subdirectories, so they share the cache.
3086 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3087 # config.status only pays attention to the cache file if you give it the
3088 # --recheck option to rerun configure.
3091 # The following way of writing the cache mishandles newlines in values,
3092 # but we know of no workaround that is simple, portable, and efficient.
3093 # So, don't put newlines in cache variables' values.
3094 # Ultrix sh set writes to stderr and can't be redirected directly,
3095 # and sets the high bit in the cache file unless we assign to the vars.
3097 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3099 # `set' does not quote correctly, so add quotes (double-quote substitution
3100 # turns \\\\ into \\, and sed turns \\ into \).
3102 -e "s/'/'\\\\''/g" \
3103 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3106 # `set' quotes correctly as required by POSIX, so do not add quotes.
3107 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3110 if cmp -s $cache_file confcache; then
3113 if test -w $cache_file; then
3114 echo "updating cache $cache_file"
3115 cat confcache > $cache_file
3117 echo "not updating unwritable cache $cache_file"
3122 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3124 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3125 # Let make expand exec_prefix.
3126 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3128 # Any assignment to VPATH causes Sun make to only execute
3129 # the first set of double-colon rules, so remove it if not needed.
3130 # If there is a colon in the path, we need to keep it.
3131 if test "x$srcdir" = x.; then
3132 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3135 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3137 DEFS=-DHAVE_CONFIG_H
3139 # Without the "./", some shells look in PATH for config.status.
3140 : ${CONFIG_STATUS=./config.status}
3142 echo creating $CONFIG_STATUS
3143 rm -f $CONFIG_STATUS
3144 cat > $CONFIG_STATUS <<EOF
3146 # Generated automatically by configure.
3147 # Run this file to recreate the current configuration.
3148 # This directory was configured as follows,
3149 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3151 # $0 $ac_configure_args
3153 # Compiler output produced by configure, useful for debugging
3154 # configure, is in ./config.log if it exists.
3156 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3159 case "\$ac_option" in
3160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3161 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3162 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3163 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3164 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3166 -help | --help | --hel | --he | --h)
3167 echo "\$ac_cs_usage"; exit 0 ;;
3168 *) echo "\$ac_cs_usage"; exit 1 ;;
3172 ac_given_srcdir=$srcdir
3173 ac_given_INSTALL="$INSTALL"
3175 trap 'rm -fr `echo "
3185 doc/tutorial/Makefile
3186 doc/reference/Makefile
3189 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3191 cat >> $CONFIG_STATUS <<EOF
3193 # Protect against being on the right side of a sed subst in config.status.
3194 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3195 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3199 s%@CFLAGS@%$CFLAGS%g
3200 s%@CPPFLAGS@%$CPPFLAGS%g
3201 s%@CXXFLAGS@%$CXXFLAGS%g
3202 s%@FFLAGS@%$FFLAGS%g
3204 s%@LDFLAGS@%$LDFLAGS%g
3206 s%@exec_prefix@%$exec_prefix%g
3207 s%@prefix@%$prefix%g
3208 s%@program_transform_name@%$program_transform_name%g
3209 s%@bindir@%$bindir%g
3210 s%@sbindir@%$sbindir%g
3211 s%@libexecdir@%$libexecdir%g
3212 s%@datadir@%$datadir%g
3213 s%@sysconfdir@%$sysconfdir%g
3214 s%@sharedstatedir@%$sharedstatedir%g
3215 s%@localstatedir@%$localstatedir%g
3216 s%@libdir@%$libdir%g
3217 s%@includedir@%$includedir%g
3218 s%@oldincludedir@%$oldincludedir%g
3219 s%@infodir@%$infodir%g
3220 s%@mandir@%$mandir%g
3221 s%@GINACLIB_MAJOR_VERSION@%$GINACLIB_MAJOR_VERSION%g
3222 s%@GINACLIB_MINOR_VERSION@%$GINACLIB_MINOR_VERSION%g
3223 s%@GINACLIB_MICRO_VERSION@%$GINACLIB_MICRO_VERSION%g
3224 s%@GINACLIB_INTERFACE_AGE@%$GINACLIB_INTERFACE_AGE%g
3225 s%@GINACLIB_BINARY_AGE@%$GINACLIB_BINARY_AGE%g
3226 s%@GINACLIB_VERSION@%$GINACLIB_VERSION%g
3227 s%@ARCHIVE_VERSION@%$ARCHIVE_VERSION%g
3228 s%@ARCHIVE_AGE@%$ARCHIVE_AGE%g
3229 s%@LT_RELEASE@%$LT_RELEASE%g
3230 s%@LT_CURRENT@%$LT_CURRENT%g
3231 s%@LT_REVISION@%$LT_REVISION%g
3232 s%@LT_AGE@%$LT_AGE%g
3233 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3234 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3235 s%@INSTALL_DATA@%$INSTALL_DATA%g
3236 s%@PACKAGE@%$PACKAGE%g
3237 s%@VERSION@%$VERSION%g
3238 s%@ACLOCAL@%$ACLOCAL%g
3239 s%@AUTOCONF@%$AUTOCONF%g
3240 s%@AUTOMAKE@%$AUTOMAKE%g
3241 s%@AUTOHEADER@%$AUTOHEADER%g
3242 s%@MAKEINFO@%$MAKEINFO%g
3243 s%@SET_MAKE@%$SET_MAKE%g
3244 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3245 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3248 s%@CXXCPP@%$CXXCPP%g
3250 s%@host_alias@%$host_alias%g
3251 s%@host_cpu@%$host_cpu%g
3252 s%@host_vendor@%$host_vendor%g
3253 s%@host_os@%$host_os%g
3255 s%@build_alias@%$build_alias%g
3256 s%@build_cpu@%$build_cpu%g
3257 s%@build_vendor@%$build_vendor%g
3258 s%@build_os@%$build_os%g
3259 s%@RANLIB@%$RANLIB%g
3264 s%@LIBTOOL@%$LIBTOOL%g
3266 s%@LEXLIB@%$LEXLIB%g
3268 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3270 s%@LIBTERMCAP@%$LIBTERMCAP%g
3271 s%@GINSH_LIBS@%$GINSH_LIBS%g
3272 s%@GINACLIB_CPPFLAGS@%$GINACLIB_CPPFLAGS%g
3273 s%@GINACLIB_LIBS@%$GINACLIB_LIBS%g
3274 s%@DOXYGEN@%$DOXYGEN%g
3276 s%@MAKEINDEX@%$MAKEINDEX%g
3278 s%@FIG2DEV@%$FIG2DEV%g
3279 s%@TUTORIAL_TARGETS@%$TUTORIAL_TARGETS%g
3280 s%@REFERENCE_TARGETS@%$REFERENCE_TARGETS%g
3282 s%@MAKECINT@%$MAKECINT%g
3283 s%@CINTSYSDIR@%$CINTSYSDIR%g
3284 s%@GINACCINTDIR@%$GINACCINTDIR%g
3289 cat >> $CONFIG_STATUS <<\EOF
3291 # Split the substitutions into bite-sized pieces for seds with
3292 # small command number limits, like on Digital OSF/1 and HP-UX.
3293 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3294 ac_file=1 # Number of current file.
3295 ac_beg=1 # First line for current file.
3296 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3299 while $ac_more_lines; do
3300 if test $ac_beg -gt 1; then
3301 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3303 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3305 if test ! -s conftest.s$ac_file; then
3307 rm -f conftest.s$ac_file
3309 if test -z "$ac_sed_cmds"; then
3310 ac_sed_cmds="sed -f conftest.s$ac_file"
3312 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3314 ac_file=`expr $ac_file + 1`
3316 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3319 if test -z "$ac_sed_cmds"; then
3324 cat >> $CONFIG_STATUS <<EOF
3326 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3335 doc/tutorial/Makefile
3336 doc/reference/Makefile
3341 cat >> $CONFIG_STATUS <<\EOF
3342 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3343 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3345 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3346 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3347 *) ac_file_in="${ac_file}.in" ;;
3350 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3352 # Remove last slash and all that follows it. Not all systems have dirname.
3353 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3354 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3355 # The file is in a subdirectory.
3356 test ! -d "$ac_dir" && mkdir "$ac_dir"
3357 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3358 # A "../" for each directory in $ac_dir_suffix.
3359 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3361 ac_dir_suffix= ac_dots=
3364 case "$ac_given_srcdir" in
3366 if test -z "$ac_dots"; then top_srcdir=.
3367 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3368 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3370 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3371 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3374 case "$ac_given_INSTALL" in
3375 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3376 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3379 echo creating "$ac_file"
3381 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3383 *Makefile*) ac_comsub="1i\\
3384 # $configure_input" ;;
3388 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3390 s%@configure_input@%$configure_input%g
3391 s%@srcdir@%$srcdir%g
3392 s%@top_srcdir@%$top_srcdir%g
3393 s%@INSTALL@%$INSTALL%g
3394 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3398 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3399 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3401 # ac_d sets the value in "#define NAME VALUE" lines.
3402 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3403 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3406 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3407 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3408 ac_uB='\([ ]\)%\1#\2define\3'
3411 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3412 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3413 ac_eB='$%\1#\2define\3'
3417 if test "${CONFIG_HEADERS+set}" != set; then
3419 cat >> $CONFIG_STATUS <<EOF
3420 CONFIG_HEADERS="config.h"
3422 cat >> $CONFIG_STATUS <<\EOF
3424 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3425 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3427 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3428 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3429 *) ac_file_in="${ac_file}.in" ;;
3432 echo creating $ac_file
3434 rm -f conftest.frag conftest.in conftest.out
3435 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3436 cat $ac_file_inputs > conftest.in
3440 # Transform confdefs.h into a sed script conftest.vals that substitutes
3441 # the proper values into config.h.in to produce config.h. And first:
3442 # Protect against being on the right side of a sed subst in config.status.
3443 # Protect against being in an unquoted here document in config.status.
3445 cat > conftest.hdr <<\EOF
3448 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3452 sed -n -f conftest.hdr confdefs.h > conftest.vals
3455 # This sed command replaces #undef with comments. This is necessary, for
3456 # example, in the case of _POSIX_SOURCE, which is predefined and required
3457 # on some systems where configure will not decide to define it.
3458 cat >> conftest.vals <<\EOF
3459 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3462 # Break up conftest.vals because some shells have a limit on
3463 # the size of here documents, and old seds have small limits too.
3468 ac_lines=`grep -c . conftest.vals`
3469 # grep -c gives empty output for an empty file on some AIX systems.
3470 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3471 # Write a limited-size here document to conftest.frag.
3472 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3473 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3475 sed -f conftest.frag conftest.in > conftest.out
3477 mv conftest.out conftest.in
3479 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3481 mv conftest.tail conftest.vals
3485 cat >> $CONFIG_STATUS <<\EOF
3486 rm -f conftest.frag conftest.h
3487 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3488 cat conftest.in >> conftest.h
3490 if cmp -s $ac_file conftest.h 2>/dev/null; then
3491 echo "$ac_file is unchanged"
3494 # Remove last slash and all that follows it. Not all systems have dirname.
3495 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3496 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3497 # The file is in a subdirectory.
3498 test ! -d "$ac_dir" && mkdir "$ac_dir"
3501 mv conftest.h $ac_file
3506 cat >> $CONFIG_STATUS <<EOF
3510 cat >> $CONFIG_STATUS <<\EOF
3511 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3512 chmod +x ginac-config cint/ginaccint
3515 chmod +x $CONFIG_STATUS
3516 rm -fr confdefs* $ac_clean_files
3517 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3520 if test "x${ginac_error}" = "xyes"; then
3521 echo "**** The following problems have been detected by configure."
3522 echo "**** Please check the messages below before running \"make\"."
3523 echo "**** (see the section 'Common Problems' in the INSTALL file)"
3524 echo "$ginac_error_txt"
3525 if test "x${ginac_warning_txt}" != "x"; then
3526 echo "${ginac_warning_txt}"
3528 echo "deleting cache ${cache_file}"
3531 if test x$ginac_warning = xyes; then
3532 echo "=== The following minor problems have been detected by configure."
3533 echo "=== Please check the messages below before running \"make\"."
3534 echo "=== (see the section 'Common Problems' in the INSTALL file)"
3535 echo "$ginac_warning_txt"
3537 echo "Configuration of GiNaC $VERSION done. Now type \"make\"."