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-html-doc build HTML documentation [default=yes]"
17 --enable-ps-doc build PostScript documentation [default=yes]"
19 --with-cint=CINTSYSDIR build GiNaC-cint C++ interpreter [default=no]"
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
24 --enable-shared[=PKGS] build shared libraries [default=yes]"
26 --enable-static[=PKGS] build static libraries [default=yes]"
28 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
30 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
32 --disable-libtool-lock avoid locking (might break parallel builds)"
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=
545 # Check whether --enable-html-doc or --disable-html-doc was given.
546 if test "${enable_html_doc+set}" = set; then
547 enableval="$enable_html_doc"
553 # Check whether --enable-ps-doc or --disable-ps-doc was given.
554 if test "${enable_ps_doc+set}" = set; then
555 enableval="$enable_ps_doc"
561 # Check whether --with-cint or --without-cint was given.
562 if test "${with_cint+set}" = set; then
571 GINACLIB_MAJOR_VERSION=0
572 GINACLIB_MINOR_VERSION=4
573 GINACLIB_MICRO_VERSION=1
574 GINACLIB_INTERFACE_AGE=0
575 GINACLIB_BINARY_AGE=1
576 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
591 cat >> confdefs.h <<EOF
592 #define ARCHIVE_VERSION $ARCHIVE_VERSION
595 cat >> confdefs.h <<EOF
596 #define ARCHIVE_AGE $ARCHIVE_AGE
600 LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
601 LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
602 LT_REVISION=$GINACLIB_INTERFACE_AGE
603 LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
614 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
615 if test -f $ac_dir/install-sh; then
617 ac_install_sh="$ac_aux_dir/install-sh -c"
619 elif test -f $ac_dir/install.sh; then
621 ac_install_sh="$ac_aux_dir/install.sh -c"
625 if test -z "$ac_aux_dir"; then
626 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
628 ac_config_guess=$ac_aux_dir/config.guess
629 ac_config_sub=$ac_aux_dir/config.sub
630 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632 # Find a good install program. We prefer a C program (faster),
633 # so one script is as good as another. But avoid the broken or
634 # incompatible versions:
635 # SysV /etc/install, /usr/sbin/install
636 # SunOS /usr/etc/install
639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
642 # ./install, which can be erroneously created by make from ./install.sh.
643 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
644 echo "configure:645: checking for a BSD compatible install" >&5
645 if test -z "$INSTALL"; then
646 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
650 for ac_dir in $PATH; do
651 # Account for people who put trailing slashes in PATH elements.
653 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
655 # OSF1 and SCO ODT 3.0 have their own names for install.
656 # Don't use installbsd from OSF since it installs stuff as root
658 for ac_prog in ginstall scoinst install; do
659 if test -f $ac_dir/$ac_prog; then
660 if test $ac_prog = install &&
661 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
662 # AIX install. It has an incompatible calling convention.
665 ac_cv_path_install="$ac_dir/$ac_prog -c"
676 if test "${ac_cv_path_install+set}" = set; then
677 INSTALL="$ac_cv_path_install"
679 # As a last resort, use the slow shell script. We don't cache a
680 # path for INSTALL within a source directory, because that will
681 # break other packages using the cache if that directory is
682 # removed, or if the path is relative.
683 INSTALL="$ac_install_sh"
686 echo "$ac_t""$INSTALL" 1>&6
688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
689 # It thinks the first close brace ends the variable substitution.
690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
696 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
697 echo "configure:698: checking whether build environment is sane" >&5
700 echo timestamp > conftestfile
701 # Do `set' in a subshell so we don't clobber the current shell's
702 # arguments. Must try -L first in case configure is actually a
703 # symlink; some systems play weird games with the mod time of symlinks
704 # (eg FreeBSD returns the mod time of the symlink's containing
707 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
708 if test "$*" = "X"; then
710 set X `ls -t $srcdir/configure conftestfile`
712 if test "$*" != "X $srcdir/configure conftestfile" \
713 && test "$*" != "X conftestfile $srcdir/configure"; then
715 # If neither matched, then we have a broken ls. This can happen
716 # if, for instance, CONFIG_SHELL is bash and it inherits a
717 # broken ls alias from the environment. This has actually
718 # happened. Such a system could not be considered "sane".
719 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
720 alias in your environment" 1>&2; exit 1; }
723 test "$2" = conftestfile
729 { echo "configure: error: newly created file is older than distributed files!
730 Check your system clock" 1>&2; exit 1; }
733 echo "$ac_t""yes" 1>&6
734 if test "$program_transform_name" = s,x,x,; then
735 program_transform_name=
737 # Double any \ or $. echo might interpret backslashes.
738 cat <<\EOF_SED > conftestsed
739 s,\\,\\\\,g; s,\$,$$,g
741 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
744 test "$program_prefix" != NONE &&
745 program_transform_name="s,^,${program_prefix},; $program_transform_name"
746 # Use a double $ so make ignores it.
747 test "$program_suffix" != NONE &&
748 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
750 # sed with no file args requires a program.
751 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
753 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
754 echo "configure:755: checking whether ${MAKE-make} sets \${MAKE}" >&5
755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
756 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 cat > conftestmake <<\EOF
761 @echo 'ac_maketemp="${MAKE}"'
763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
764 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
765 if test -n "$ac_maketemp"; then
766 eval ac_cv_prog_make_${ac_make}_set=yes
768 eval ac_cv_prog_make_${ac_make}_set=no
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773 echo "$ac_t""yes" 1>&6
776 echo "$ac_t""no" 1>&6
777 SET_MAKE="MAKE=${MAKE-make}"
783 VERSION=$GINACLIB_VERSION
785 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
786 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
788 cat >> confdefs.h <<EOF
789 #define PACKAGE "$PACKAGE"
792 cat >> confdefs.h <<EOF
793 #define VERSION "$VERSION"
798 missing_dir=`cd $ac_aux_dir && pwd`
799 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
800 echo "configure:801: checking for working aclocal" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
806 echo "$ac_t""found" 1>&6
808 ACLOCAL="$missing_dir/missing aclocal"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoconf" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
819 echo "$ac_t""found" 1>&6
821 AUTOCONF="$missing_dir/missing autoconf"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working automake""... $ac_c" 1>&6
826 echo "configure:827: checking for working automake" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (automake --version) < /dev/null > /dev/null 2>&1; then
832 echo "$ac_t""found" 1>&6
834 AUTOMAKE="$missing_dir/missing automake"
835 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
839 echo "configure:840: checking for working autoheader" >&5
840 # Run test in a subshell; some versions of sh will print an error if
841 # an executable is not found, even if stderr is redirected.
842 # Redirect stdin to placate older versions of autoconf. Sigh.
843 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
844 AUTOHEADER=autoheader
845 echo "$ac_t""found" 1>&6
847 AUTOHEADER="$missing_dir/missing autoheader"
848 echo "$ac_t""missing" 1>&6
851 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
852 echo "configure:853: checking for working makeinfo" >&5
853 # Run test in a subshell; some versions of sh will print an error if
854 # an executable is not found, even if stderr is redirected.
855 # Redirect stdin to placate older versions of autoconf. Sigh.
856 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
858 echo "$ac_t""found" 1>&6
860 MAKEINFO="$missing_dir/missing makeinfo"
861 echo "$ac_t""missing" 1>&6
865 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
866 echo "configure:867: checking whether to enable maintainer-specific portions of Makefiles" >&5
867 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
868 if test "${enable_maintainer_mode+set}" = set; then
869 enableval="$enable_maintainer_mode"
870 USE_MAINTAINER_MODE=$enableval
872 USE_MAINTAINER_MODE=no
875 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
878 if test $USE_MAINTAINER_MODE = yes; then
879 MAINTAINER_MODE_TRUE=
880 MAINTAINER_MODE_FALSE='#'
882 MAINTAINER_MODE_TRUE='#'
883 MAINTAINER_MODE_FALSE=
885 MAINT=$MAINTAINER_MODE_TRUE
889 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
891 # Extract the first word of "$ac_prog", so it can be a program name with args.
892 set dummy $ac_prog; ac_word=$2
893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
894 echo "configure:895: checking for $ac_word" >&5
895 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$CXX"; then
899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 ac_cv_prog_CXX="$ac_prog"
913 CXX="$ac_cv_prog_CXX"
914 if test -n "$CXX"; then
915 echo "$ac_t""$CXX" 1>&6
917 echo "$ac_t""no" 1>&6
920 test -n "$CXX" && break
922 test -n "$CXX" || CXX="gcc"
925 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
926 echo "configure:927: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
929 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
930 ac_cpp='$CXXCPP $CPPFLAGS'
931 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
932 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
933 cross_compiling=$ac_cv_prog_cxx_cross
935 cat > conftest.$ac_ext << EOF
937 #line 938 "configure"
938 #include "confdefs.h"
940 int main(){return(0);}
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
943 ac_cv_prog_cxx_works=yes
944 # If we can't run a trivial program, we are probably using a cross compiler.
945 if (./conftest; exit) 2>/dev/null; then
946 ac_cv_prog_cxx_cross=no
948 ac_cv_prog_cxx_cross=yes
951 echo "configure: failed program was:" >&5
952 cat conftest.$ac_ext >&5
953 ac_cv_prog_cxx_works=no
957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
958 ac_cpp='$CPP $CPPFLAGS'
959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
961 cross_compiling=$ac_cv_prog_cc_cross
963 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
964 if test $ac_cv_prog_cxx_works = no; then
965 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
967 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
968 echo "configure:969: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
969 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
970 cross_compiling=$ac_cv_prog_cxx_cross
972 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
973 echo "configure:974: checking whether we are using GNU C++" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 cat > conftest.C <<EOF
982 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
989 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
991 if test $ac_cv_prog_gxx = yes; then
997 ac_test_CXXFLAGS="${CXXFLAGS+set}"
998 ac_save_CXXFLAGS="$CXXFLAGS"
1000 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${CXX-g++} accepts -g" >&5
1002 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1003 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo 'void f(){}' > conftest.cc
1006 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1007 ac_cv_prog_cxx_g=yes
1015 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1016 if test "$ac_test_CXXFLAGS" = set; then
1017 CXXFLAGS="$ac_save_CXXFLAGS"
1018 elif test $ac_cv_prog_cxx_g = yes; then
1019 if test "$GXX" = yes; then
1025 if test "$GXX" = yes; then
1032 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1033 echo "configure:1034: checking how to run the C++ preprocessor" >&5
1034 if test -z "$CXXCPP"; then
1035 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1039 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1040 ac_cpp='$CXXCPP $CPPFLAGS'
1041 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1042 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1043 cross_compiling=$ac_cv_prog_cxx_cross
1044 CXXCPP="${CXX-g++} -E"
1045 cat > conftest.$ac_ext <<EOF
1046 #line 1047 "configure"
1047 #include "confdefs.h"
1050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1051 { (eval echo configure:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1053 if test -z "$ac_err"; then
1057 echo "configure: failed program was:" >&5
1058 cat conftest.$ac_ext >&5
1063 ac_cv_prog_CXXCPP="$CXXCPP"
1065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp='$CPP $CPPFLAGS'
1067 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling=$ac_cv_prog_cc_cross
1072 CXXCPP="$ac_cv_prog_CXXCPP"
1073 echo "$ac_t""$CXXCPP" 1>&6
1075 # Find a good install program. We prefer a C program (faster),
1076 # so one script is as good as another. But avoid the broken or
1077 # incompatible versions:
1078 # SysV /etc/install, /usr/sbin/install
1079 # SunOS /usr/etc/install
1080 # IRIX /sbin/install
1082 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1083 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1084 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1085 # ./install, which can be erroneously created by make from ./install.sh.
1086 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1087 echo "configure:1088: checking for a BSD compatible install" >&5
1088 if test -z "$INSTALL"; then
1089 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1093 for ac_dir in $PATH; do
1094 # Account for people who put trailing slashes in PATH elements.
1096 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1098 # OSF1 and SCO ODT 3.0 have their own names for install.
1099 # Don't use installbsd from OSF since it installs stuff as root
1101 for ac_prog in ginstall scoinst install; do
1102 if test -f $ac_dir/$ac_prog; then
1103 if test $ac_prog = install &&
1104 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1105 # AIX install. It has an incompatible calling convention.
1108 ac_cv_path_install="$ac_dir/$ac_prog -c"
1119 if test "${ac_cv_path_install+set}" = set; then
1120 INSTALL="$ac_cv_path_install"
1122 # As a last resort, use the slow shell script. We don't cache a
1123 # path for INSTALL within a source directory, because that will
1124 # break other packages using the cache if that directory is
1125 # removed, or if the path is relative.
1126 INSTALL="$ac_install_sh"
1129 echo "$ac_t""$INSTALL" 1>&6
1131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1132 # It thinks the first close brace ends the variable substitution.
1133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1137 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1139 # Check whether --enable-shared or --disable-shared was given.
1140 if test "${enable_shared+set}" = set; then
1141 enableval="$enable_shared"
1142 p=${PACKAGE-default}
1143 case "$enableval" in
1144 yes) enable_shared=yes ;;
1145 no) enable_shared=no ;;
1148 # Look at the argument we got. We use all the common list separators.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1150 for pkg in $enableval; do
1151 if test "X$pkg" = "X$p"; then
1162 # Check whether --enable-static or --disable-static was given.
1163 if test "${enable_static+set}" = set; then
1164 enableval="$enable_static"
1165 p=${PACKAGE-default}
1166 case "$enableval" in
1167 yes) enable_static=yes ;;
1168 no) enable_static=no ;;
1171 # Look at the argument we got. We use all the common list separators.
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1173 for pkg in $enableval; do
1174 if test "X$pkg" = "X$p"; then
1185 # Check whether --enable-fast-install or --disable-fast-install was given.
1186 if test "${enable_fast_install+set}" = set; then
1187 enableval="$enable_fast_install"
1188 p=${PACKAGE-default}
1189 case "$enableval" in
1190 yes) enable_fast_install=yes ;;
1191 no) enable_fast_install=no ;;
1193 enable_fast_install=no
1194 # Look at the argument we got. We use all the common list separators.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1196 for pkg in $enableval; do
1197 if test "X$pkg" = "X$p"; then
1198 enable_fast_install=yes
1205 enable_fast_install=yes
1209 # Make sure we can run config.sub.
1210 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1211 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1214 echo $ac_n "checking host system type""... $ac_c" 1>&6
1215 echo "configure:1216: checking host system type" >&5
1218 case "$host_alias" in
1222 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1223 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1225 *) host_alias=$nonopt ;;
1229 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1230 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1231 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1232 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1233 echo "$ac_t""$host" 1>&6
1235 echo $ac_n "checking build system type""... $ac_c" 1>&6
1236 echo "configure:1237: checking build system type" >&5
1239 case "$build_alias" in
1242 NONE) build_alias=$host_alias ;;
1243 *) build_alias=$nonopt ;;
1247 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1248 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1249 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1250 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1251 echo "$ac_t""$build" 1>&6
1253 # Extract the first word of "ranlib", so it can be a program name with args.
1254 set dummy ranlib; ac_word=$2
1255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1256 echo "configure:1257: checking for $ac_word" >&5
1257 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1258 echo $ac_n "(cached) $ac_c" 1>&6
1260 if test -n "$RANLIB"; then
1261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1263 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1265 for ac_dir in $ac_dummy; do
1266 test -z "$ac_dir" && ac_dir=.
1267 if test -f $ac_dir/$ac_word; then
1268 ac_cv_prog_RANLIB="ranlib"
1273 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1276 RANLIB="$ac_cv_prog_RANLIB"
1277 if test -n "$RANLIB"; then
1278 echo "$ac_t""$RANLIB" 1>&6
1280 echo "$ac_t""no" 1>&6
1283 # Extract the first word of "gcc", so it can be a program name with args.
1284 set dummy gcc; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test -n "$CC"; then
1291 ac_cv_prog_CC="$CC" # Let the user override the test.
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1295 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1306 if test -n "$CC"; then
1307 echo "$ac_t""$CC" 1>&6
1309 echo "$ac_t""no" 1>&6
1312 if test -z "$CC"; then
1313 # Extract the first word of "cc", so it can be a program name with args.
1314 set dummy cc; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 if test -n "$CC"; then
1321 ac_cv_prog_CC="$CC" # Let the user override the test.
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1326 for ac_dir in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir=.
1328 if test -f $ac_dir/$ac_word; then
1329 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1330 ac_prog_rejected=yes
1338 if test $ac_prog_rejected = yes; then
1339 # We found a bogon in the path, so make sure we never use it.
1340 set dummy $ac_cv_prog_CC
1342 if test $# -gt 0; then
1343 # We chose a different compiler from the bogus one.
1344 # However, it has the same basename, so the bogon will be chosen
1345 # first if we set CC to just the basename; use the full file name.
1347 set dummy "$ac_dir/$ac_word" "$@"
1355 if test -n "$CC"; then
1356 echo "$ac_t""$CC" 1>&6
1358 echo "$ac_t""no" 1>&6
1361 if test -z "$CC"; then
1362 case "`uname -s`" in
1364 # Extract the first word of "cl", so it can be a program name with args.
1365 set dummy cl; ac_word=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 if test -n "$CC"; then
1372 ac_cv_prog_CC="$CC" # Let the user override the test.
1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 if test -f $ac_dir/$ac_word; then
1387 if test -n "$CC"; then
1388 echo "$ac_t""$CC" 1>&6
1390 echo "$ac_t""no" 1>&6
1395 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1403 ac_cpp='$CPP $CPPFLAGS'
1404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406 cross_compiling=$ac_cv_prog_cc_cross
1408 cat > conftest.$ac_ext << EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1416 ac_cv_prog_cc_works=yes
1417 # If we can't run a trivial program, we are probably using a cross compiler.
1418 if (./conftest; exit) 2>/dev/null; then
1419 ac_cv_prog_cc_cross=no
1421 ac_cv_prog_cc_cross=yes
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 ac_cv_prog_cc_works=no
1430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1434 cross_compiling=$ac_cv_prog_cc_cross
1436 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1437 if test $ac_cv_prog_cc_works = no; then
1438 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1440 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1441 echo "configure:1442: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1442 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1443 cross_compiling=$ac_cv_prog_cc_cross
1445 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1446 echo "configure:1447: checking whether we are using GNU C" >&5
1447 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1448 echo $ac_n "(cached) $ac_c" 1>&6
1450 cat > conftest.c <<EOF
1455 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1462 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1464 if test $ac_cv_prog_gcc = yes; then
1470 ac_test_CFLAGS="${CFLAGS+set}"
1471 ac_save_CFLAGS="$CFLAGS"
1473 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1474 echo "configure:1475: checking whether ${CC-cc} accepts -g" >&5
1475 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1478 echo 'void f(){}' > conftest.c
1479 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1488 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1489 if test "$ac_test_CFLAGS" = set; then
1490 CFLAGS="$ac_save_CFLAGS"
1491 elif test $ac_cv_prog_cc_g = yes; then
1492 if test "$GCC" = yes; then
1498 if test "$GCC" = yes; then
1505 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1506 if test "${with_gnu_ld+set}" = set; then
1507 withval="$with_gnu_ld"
1508 test "$withval" = no || with_gnu_ld=yes
1514 if test "$ac_cv_prog_gcc" = yes; then
1515 # Check if gcc -print-prog-name=ld gives a path.
1516 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1517 echo "configure:1518: checking for ld used by GCC" >&5
1518 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1520 # Accept absolute paths.
1521 [\\/]* | [A-Za-z]:[\\/]*)
1522 re_direlt='/[^/][^/]*/\.\./'
1523 # Canonicalize the path of ld
1524 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1525 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1526 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1528 test -z "$LD" && LD="$ac_prog"
1531 # If it fails, then pretend we aren't using GCC.
1535 # If it is relative, then search for the first ld in PATH.
1539 elif test "$with_gnu_ld" = yes; then
1540 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1541 echo "configure:1542: checking for GNU ld" >&5
1543 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1544 echo "configure:1545: checking for non-GNU ld" >&5
1546 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1549 if test -z "$LD"; then
1550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1551 for ac_dir in $PATH; do
1552 test -z "$ac_dir" && ac_dir=.
1553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1554 ac_cv_path_LD="$ac_dir/$ac_prog"
1555 # Check to see if the program is GNU ld. I'd rather use --version,
1556 # but apparently some GNU ld's only accept -v.
1557 # Break only if it was the GNU/non-GNU ld that we prefer.
1558 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1559 test "$with_gnu_ld" != no && break
1561 test "$with_gnu_ld" != yes && break
1567 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1572 if test -n "$LD"; then
1573 echo "$ac_t""$LD" 1>&6
1575 echo "$ac_t""no" 1>&6
1577 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1579 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1580 echo "configure:1581: checking if the linker ($LD) is GNU ld" >&5
1581 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1585 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1586 ac_cv_prog_gnu_ld=yes
1588 ac_cv_prog_gnu_ld=no
1592 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1595 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1596 echo "configure:1597: checking for BSD-compatible nm" >&5
1597 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1598 echo $ac_n "(cached) $ac_c" 1>&6
1600 if test -n "$NM"; then
1601 # Let the user override the test.
1604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1605 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1606 test -z "$ac_dir" && ac_dir=.
1607 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1608 # Check to see if the nm accepts a BSD-compat flag.
1609 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1610 # nm: unknown option "B" ignored
1611 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1612 ac_cv_path_NM="$ac_dir/nm -B"
1614 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1615 ac_cv_path_NM="$ac_dir/nm -p"
1618 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1619 continue # so that we can try to find one that supports BSD flags
1624 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1629 echo "$ac_t""$NM" 1>&6
1632 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1633 echo "configure:1634: checking whether ln -s works" >&5
1634 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1638 if ln -s X conftestdata 2>/dev/null
1641 ac_cv_prog_LN_S="ln -s"
1646 LN_S="$ac_cv_prog_LN_S"
1647 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1648 echo "$ac_t""yes" 1>&6
1650 echo "$ac_t""no" 1>&6
1654 # Check for any special flags to pass to ltconfig.
1655 libtool_flags="--cache-file=$cache_file"
1656 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1657 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1658 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1659 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1660 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1663 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1664 if test "${enable_libtool_lock+set}" = set; then
1665 enableval="$enable_libtool_lock"
1669 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1670 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1672 # Some flags need to be propagated to the compiler or linker for good
1676 # Find out which ABI we are using.
1677 echo '#line 1678 "configure"' > conftest.$ac_ext
1678 if { (eval echo configure:1679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1679 case "`/usr/bin/file conftest.o`" in
1695 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1696 SAVE_CFLAGS="$CFLAGS"
1697 CFLAGS="$CFLAGS -belf"
1698 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether the C compiler needs -belf" >&5
1700 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1713 lt_cv_cc_needs_belf=yes
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1718 lt_cv_cc_needs_belf=no
1723 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1724 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1725 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1726 CFLAGS="$SAVE_CFLAGS"
1734 # Save cache, so that ltconfig can load it
1735 cat > confcache <<\EOF
1736 # This file is a shell script that caches the results of configure
1737 # tests run on this system so they can be shared between configure
1738 # scripts and configure runs. It is not useful on other systems.
1739 # If it contains results you don't want to keep, you may remove or edit it.
1741 # By default, configure uses ./config.cache as the cache file,
1742 # creating it if it does not exist already. You can give configure
1743 # the --cache-file=FILE option to use a different cache file; that is
1744 # what configure does when it calls configure scripts in
1745 # subdirectories, so they share the cache.
1746 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1747 # config.status only pays attention to the cache file if you give it the
1748 # --recheck option to rerun configure.
1751 # The following way of writing the cache mishandles newlines in values,
1752 # but we know of no workaround that is simple, portable, and efficient.
1753 # So, don't put newlines in cache variables' values.
1754 # Ultrix sh set writes to stderr and can't be redirected directly,
1755 # and sets the high bit in the cache file unless we assign to the vars.
1757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1759 # `set' does not quote correctly, so add quotes (double-quote substitution
1760 # turns \\\\ into \\, and sed turns \\ into \).
1762 -e "s/'/'\\\\''/g" \
1763 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1766 # `set' quotes correctly as required by POSIX, so do not add quotes.
1767 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1770 if cmp -s $cache_file confcache; then
1773 if test -w $cache_file; then
1774 echo "updating cache $cache_file"
1775 cat confcache > $cache_file
1777 echo "not updating unwritable cache $cache_file"
1783 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1784 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1785 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1786 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1787 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1788 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1789 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1790 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1792 # Reload cache, that may have been modified by ltconfig
1793 if test -r "$cache_file"; then
1794 echo "loading cache $cache_file"
1797 echo "creating cache $cache_file"
1802 # This can be used to rebuild libtool when needed
1803 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1805 # Always use our own libtool.
1806 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1808 # Redirect the config.log output again, so that the ltconfig log is not
1809 # clobbered by the next message.
1810 exec 5>>./config.log
1812 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1813 echo "configure:1814: checking how to run the C preprocessor" >&5
1814 # On Suns, sometimes $CPP names a directory.
1815 if test -n "$CPP" && test -d "$CPP"; then
1818 if test -z "$CPP"; then
1819 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 # This must be in double quotes, not single quotes, because CPP may get
1823 # substituted into the Makefile and "${CC-cc}" will confuse make.
1825 # On the NeXT, cc -E runs the code through the compiler's parser,
1826 # not just through cpp.
1827 cat > conftest.$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1833 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1834 { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1835 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1836 if test -z "$ac_err"; then
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1843 CPP="${CC-cc} -E -traditional-cpp"
1844 cat > conftest.$ac_ext <<EOF
1845 #line 1846 "configure"
1846 #include "confdefs.h"
1850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1851 { (eval echo configure:1852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1853 if test -z "$ac_err"; then
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 CPP="${CC-cc} -nologo -E"
1861 cat > conftest.$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1868 { (eval echo configure:1869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1870 if test -z "$ac_err"; then
1874 echo "configure: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1884 ac_cv_prog_CPP="$CPP"
1886 CPP="$ac_cv_prog_CPP"
1888 ac_cv_prog_CPP="$CPP"
1890 echo "$ac_t""$CPP" 1>&6
1892 missing_dir=`cd $ac_aux_dir && pwd`
1893 for ac_prog in flex lex
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_word" >&5
1899 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1902 if test -n "$LEX"; then
1903 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1907 for ac_dir in $ac_dummy; do
1908 test -z "$ac_dir" && ac_dir=.
1909 if test -f $ac_dir/$ac_word; then
1910 ac_cv_prog_LEX="$ac_prog"
1917 LEX="$ac_cv_prog_LEX"
1918 if test -n "$LEX"; then
1919 echo "$ac_t""$LEX" 1>&6
1921 echo "$ac_t""no" 1>&6
1924 test -n "$LEX" && break
1926 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1928 # Extract the first word of "flex", so it can be a program name with args.
1929 set dummy flex; ac_word=$2
1930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1931 echo "configure:1932: checking for $ac_word" >&5
1932 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1935 if test -n "$LEX"; then
1936 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1940 for ac_dir in $ac_dummy; do
1941 test -z "$ac_dir" && ac_dir=.
1942 if test -f $ac_dir/$ac_word; then
1943 ac_cv_prog_LEX="flex"
1948 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1951 LEX="$ac_cv_prog_LEX"
1952 if test -n "$LEX"; then
1953 echo "$ac_t""$LEX" 1>&6
1955 echo "$ac_t""no" 1>&6
1958 if test -z "$LEXLIB"
1964 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1965 echo "configure:1966: checking for yywrap in -l$ac_lib" >&5
1966 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 ac_save_LIBS="$LIBS"
1971 LIBS="-l$ac_lib $LIBS"
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 /* Override any gcc2 internal prototype to avoid an error. */
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1984 if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1986 eval "ac_cv_lib_$ac_lib_var=yes"
1988 echo "configure: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1991 eval "ac_cv_lib_$ac_lib_var=no"
1994 LIBS="$ac_save_LIBS"
1997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1998 echo "$ac_t""yes" 1>&6
2001 echo "$ac_t""no" 1>&6
2006 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2007 echo "configure:2008: checking lex output file root" >&5
2008 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2009 echo $ac_n "(cached) $ac_c" 1>&6
2011 # The minimal lex program is just a single line: %%. But some broken lexes
2012 # (Solaris, I think it was) want two %% lines, so accommodate them.
2015 if test -f lex.yy.c; then
2016 ac_cv_prog_lex_root=lex.yy
2017 elif test -f lexyy.c; then
2018 ac_cv_prog_lex_root=lexyy
2020 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2024 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2025 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2027 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2028 echo "configure:2029: checking whether yytext is a pointer" >&5
2029 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 # POSIX says lex can declare yytext either as a pointer or an array; the
2033 # default is implementation-dependent. Figure out which it is, since
2034 # not all implementations provide the %pointer and %array declarations.
2035 ac_cv_prog_lex_yytext_pointer=no
2036 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2037 ac_save_LIBS="$LIBS"
2038 LIBS="$LIBS $LEXLIB"
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 `cat $LEX_OUTPUT_ROOT.c`
2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2049 ac_cv_prog_lex_yytext_pointer=yes
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2055 LIBS="$ac_save_LIBS"
2056 rm -f "${LEX_OUTPUT_ROOT}.c"
2060 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2061 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2062 cat >> confdefs.h <<\EOF
2063 #define YYTEXT_POINTER 1
2068 for ac_prog in 'bison -y' byacc
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2073 echo "configure:2074: checking for $ac_word" >&5
2074 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 if test -n "$YACC"; then
2078 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2082 for ac_dir in $ac_dummy; do
2083 test -z "$ac_dir" && ac_dir=.
2084 if test -f $ac_dir/$ac_word; then
2085 ac_cv_prog_YACC="$ac_prog"
2092 YACC="$ac_cv_prog_YACC"
2093 if test -n "$YACC"; then
2094 echo "$ac_t""$YACC" 1>&6
2096 echo "$ac_t""no" 1>&6
2099 test -n "$YACC" && break
2101 test -n "$YACC" || YACC="yacc"
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
2311 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2312 echo "configure:2313: checking for readline in -lreadline" >&5
2313 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2315 echo $ac_n "(cached) $ac_c" 1>&6
2317 ac_save_LIBS="$LIBS"
2318 LIBS="-lreadline $LIBS"
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2336 eval "ac_cv_lib_$ac_lib_var=yes"
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2341 eval "ac_cv_lib_$ac_lib_var=no"
2344 LIBS="$ac_save_LIBS"
2347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2348 echo "$ac_t""yes" 1>&6
2349 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2351 cat >> confdefs.h <<EOF
2352 #define $ac_tr_lib 1
2355 LIBS="-lreadline $LIBS"
2358 echo "$ac_t""no" 1>&6
2365 echo $ac_n "checking for cout in -lstdc++""... $ac_c" 1>&6
2366 echo "configure:2367: checking for cout in -lstdc++" >&5
2367 ac_lib_var=`echo stdc++'_'cout | sed 'y%./+-%__p_%'`
2368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2369 echo $ac_n "(cached) $ac_c" 1>&6
2371 ac_save_LIBS="$LIBS"
2372 LIBS="-lstdc++ $LIBS"
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 /* Override any gcc2 internal prototype to avoid an error. */
2380 /* We use char because int might match the return type of a gcc2
2381 builtin and then its argument prototype would still apply. */
2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2390 eval "ac_cv_lib_$ac_lib_var=yes"
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 eval "ac_cv_lib_$ac_lib_var=no"
2398 LIBS="$ac_save_LIBS"
2401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2405 cat >> confdefs.h <<EOF
2406 #define $ac_tr_lib 1
2409 LIBS="-lstdc++ $LIBS"
2412 echo "$ac_t""no" 1>&6
2416 for ac_hdr in iostream vector map string list typeinfo iterator stdexcept algorithm
2418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_hdr" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2447 cat >> confdefs.h <<EOF
2448 #define $ac_tr_hdr 1
2452 echo "$ac_t""no" 1>&6
2453 { echo "configure: error: need to have ANSI compliant headers" 1>&2; exit 1; }
2457 for ac_hdr in sstream strstream
2459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2475 eval "ac_cv_header_$ac_safe=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 eval "ac_cv_header_$ac_safe=no"
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_hdr 1
2493 echo "$ac_t""no" 1>&6
2499 for ac_hdr in cln/cln.h
2501 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2502 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2503 echo "configure:2504: checking for $ac_hdr" >&5
2504 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2505 echo $ac_n "(cached) $ac_c" 1>&6
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2513 { (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2515 if test -z "$ac_err"; then
2517 eval "ac_cv_header_$ac_safe=yes"
2520 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5
2523 eval "ac_cv_header_$ac_safe=no"
2527 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2528 echo "$ac_t""yes" 1>&6
2529 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2530 cat >> confdefs.h <<EOF
2531 #define $ac_tr_hdr 1
2535 echo "$ac_t""no" 1>&6
2538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_hdr 1
2572 echo "$ac_t""no" 1>&6
2573 { echo "configure: error: cannot find header for Bruno Haible's CLN" 1>&2; exit 1; };
2584 echo $ac_n "checking for doublefactorial in -lcln""... $ac_c" 1>&6
2585 echo "configure:2586: checking for doublefactorial in -lcln" >&5
2586 saved_LIBS="${LIBS}"
2587 if eval "test \"`echo '$''{'ginac_cv_lib_cln_link'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2591 case "${ac_cv_header_cln_cln_h}" in
2593 cat > conftest.$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2596 #include <cln/cln.h>
2601 if { (eval echo configure:2602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2603 ginac_cv_lib_cln_link="-lcln"
2605 echo "configure: failed program was:" >&5
2606 cat conftest.$ac_ext >&5
2608 ginac_cv_lib_cln_link="fail"
2613 cat > conftest.$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623 ginac_cv_lib_cln_link="-lcln"
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2628 ginac_cv_lib_cln_link="fail"
2636 case "${ginac_cv_lib_cln_link}" in
2638 LIBS="${ginac_cv_lib_cln_link} ${saved_LIBS}"
2639 echo "$ac_t"""yes"" 1>&6
2642 LIBS="${saved_LIBS}"
2643 echo "$ac_t""no" 1>&6
2644 { echo "configure: error: You either need to set \$LDFLAGS or update CLN" 1>&2; exit 1; }
2647 LIBS="${saved_LIBS}"
2648 echo "configure: warning: you found a bug in the configure script!" 1>&2
2653 GINACLIB_CPPFLAGS=$CPPFLAGS
2658 # Extract the first word of "doxygen", so it can be a program name with args.
2659 set dummy doxygen; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
2670 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a dos path.
2673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2675 for ac_dir in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir=.
2677 if test -f $ac_dir/$ac_word; then
2678 ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
2683 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
2687 DOXYGEN="$ac_cv_path_DOXYGEN"
2688 if test -n "$DOXYGEN"; then
2689 echo "$ac_t""$DOXYGEN" 1>&6
2691 echo "$ac_t""no" 1>&6
2694 # Extract the first word of "latex", so it can be a program name with args.
2695 set dummy latex; ac_word=$2
2696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_word" >&5
2698 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2703 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2706 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
2709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2711 for ac_dir in $ac_dummy; do
2712 test -z "$ac_dir" && ac_dir=.
2713 if test -f $ac_dir/$ac_word; then
2714 ac_cv_path_LATEX="$ac_dir/$ac_word"
2719 test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
2723 LATEX="$ac_cv_path_LATEX"
2724 if test -n "$LATEX"; then
2725 echo "$ac_t""$LATEX" 1>&6
2727 echo "$ac_t""no" 1>&6
2730 # Extract the first word of "makeindex", so it can be a program name with args.
2731 set dummy makeindex; ac_word=$2
2732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_word" >&5
2734 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 case "$MAKEINDEX" in
2739 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
2742 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a dos path.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2747 for ac_dir in $ac_dummy; do
2748 test -z "$ac_dir" && ac_dir=.
2749 if test -f $ac_dir/$ac_word; then
2750 ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
2755 test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
2759 MAKEINDEX="$ac_cv_path_MAKEINDEX"
2760 if test -n "$MAKEINDEX"; then
2761 echo "$ac_t""$MAKEINDEX" 1>&6
2763 echo "$ac_t""no" 1>&6
2766 # Extract the first word of "dvips", so it can be a program name with args.
2767 set dummy dvips; ac_word=$2
2768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2769 echo "configure:2770: checking for $ac_word" >&5
2770 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2775 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2778 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path.
2781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2783 for ac_dir in $ac_dummy; do
2784 test -z "$ac_dir" && ac_dir=.
2785 if test -f $ac_dir/$ac_word; then
2786 ac_cv_path_DVIPS="$ac_dir/$ac_word"
2791 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
2795 DVIPS="$ac_cv_path_DVIPS"
2796 if test -n "$DVIPS"; then
2797 echo "$ac_t""$DVIPS" 1>&6
2799 echo "$ac_t""no" 1>&6
2802 # Extract the first word of "fig2dev", so it can be a program name with args.
2803 set dummy fig2dev; ac_word=$2
2804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_word" >&5
2806 if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2811 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
2814 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a dos path.
2817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2819 for ac_dir in $ac_dummy; do
2820 test -z "$ac_dir" && ac_dir=.
2821 if test -f $ac_dir/$ac_word; then
2822 ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
2827 test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
2831 FIG2DEV="$ac_cv_path_FIG2DEV"
2832 if test -n "$FIG2DEV"; then
2833 echo "$ac_t""$FIG2DEV" 1>&6
2835 echo "$ac_t""no" 1>&6
2841 if [ "x$enable_html_doc" = "xyes" ]; then
2842 TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
2843 if [ "$DOXYGEN" ]; then
2844 REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
2847 if [ "x$enable_ps_doc" = "xyes" ]; then
2848 TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
2849 if [ "$DOXYGEN" ]; then
2850 REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
2856 if [ "x$with_cint" != "xno" ]; then
2857 echo "with_cint is set to: $with_cint"
2858 CINTSYSDIR=$with_cint
2859 # Extract the first word of "cint", so it can be a program name with args.
2860 set dummy cint; ac_word=$2
2861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2862 echo "configure:2863: checking for $ac_word" >&5
2863 if eval "test \"`echo '$''{'ac_cv_path_CINT'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2868 ac_cv_path_CINT="$CINT" # Let the user override the test with a path.
2871 ac_cv_path_CINT="$CINT" # Let the user override the test with a dos path.
2874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2875 ac_dummy="$CINTSYSDIR:$PATH"
2876 for ac_dir in $ac_dummy; do
2877 test -z "$ac_dir" && ac_dir=.
2878 if test -f $ac_dir/$ac_word; then
2879 ac_cv_path_CINT="$ac_dir/$ac_word"
2884 test -z "$ac_cv_path_CINT" && ac_cv_path_CINT=""""
2888 CINT="$ac_cv_path_CINT"
2889 if test -n "$CINT"; then
2890 echo "$ac_t""$CINT" 1>&6
2892 echo "$ac_t""no" 1>&6
2895 # Extract the first word of "makecint", so it can be a program name with args.
2896 set dummy makecint; ac_word=$2
2897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2898 echo "configure:2899: checking for $ac_word" >&5
2899 if eval "test \"`echo '$''{'ac_cv_path_MAKECINT'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2904 ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a path.
2907 ac_cv_path_MAKECINT="$MAKECINT" # Let the user override the test with a dos path.
2910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2911 ac_dummy="$CINTSYSDIR:$PATH"
2912 for ac_dir in $ac_dummy; do
2913 test -z "$ac_dir" && ac_dir=.
2914 if test -f $ac_dir/$ac_word; then
2915 ac_cv_path_MAKECINT="$ac_dir/$ac_word"
2920 test -z "$ac_cv_path_MAKECINT" && ac_cv_path_MAKECINT=""""
2924 MAKECINT="$ac_cv_path_MAKECINT"
2925 if test -n "$MAKECINT"; then
2926 echo "$ac_t""$MAKECINT" 1>&6
2928 echo "$ac_t""no" 1>&6
2931 if [ "$cint" -a "$makecint" ]; then
2932 echo "$ac_t""Configuring GiNaC-cint" 1>&6
2934 { echo "configure: error: Cannot configure GiNaC-cint" 1>&2; exit 1; }
2939 cat > confcache <<\EOF
2940 # This file is a shell script that caches the results of configure
2941 # tests run on this system so they can be shared between configure
2942 # scripts and configure runs. It is not useful on other systems.
2943 # If it contains results you don't want to keep, you may remove or edit it.
2945 # By default, configure uses ./config.cache as the cache file,
2946 # creating it if it does not exist already. You can give configure
2947 # the --cache-file=FILE option to use a different cache file; that is
2948 # what configure does when it calls configure scripts in
2949 # subdirectories, so they share the cache.
2950 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2951 # config.status only pays attention to the cache file if you give it the
2952 # --recheck option to rerun configure.
2955 # The following way of writing the cache mishandles newlines in values,
2956 # but we know of no workaround that is simple, portable, and efficient.
2957 # So, don't put newlines in cache variables' values.
2958 # Ultrix sh set writes to stderr and can't be redirected directly,
2959 # and sets the high bit in the cache file unless we assign to the vars.
2961 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2963 # `set' does not quote correctly, so add quotes (double-quote substitution
2964 # turns \\\\ into \\, and sed turns \\ into \).
2966 -e "s/'/'\\\\''/g" \
2967 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2970 # `set' quotes correctly as required by POSIX, so do not add quotes.
2971 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2974 if cmp -s $cache_file confcache; then
2977 if test -w $cache_file; then
2978 echo "updating cache $cache_file"
2979 cat confcache > $cache_file
2981 echo "not updating unwritable cache $cache_file"
2986 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2989 # Let make expand exec_prefix.
2990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2992 # Any assignment to VPATH causes Sun make to only execute
2993 # the first set of double-colon rules, so remove it if not needed.
2994 # If there is a colon in the path, we need to keep it.
2995 if test "x$srcdir" = x.; then
2996 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2999 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3001 DEFS=-DHAVE_CONFIG_H
3003 # Without the "./", some shells look in PATH for config.status.
3004 : ${CONFIG_STATUS=./config.status}
3006 echo creating $CONFIG_STATUS
3007 rm -f $CONFIG_STATUS
3008 cat > $CONFIG_STATUS <<EOF
3010 # Generated automatically by configure.
3011 # Run this file to recreate the current configuration.
3012 # This directory was configured as follows,
3013 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3015 # $0 $ac_configure_args
3017 # Compiler output produced by configure, useful for debugging
3018 # configure, is in ./config.log if it exists.
3020 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3023 case "\$ac_option" in
3024 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3025 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3026 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3027 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3028 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3030 -help | --help | --hel | --he | --h)
3031 echo "\$ac_cs_usage"; exit 0 ;;
3032 *) echo "\$ac_cs_usage"; exit 1 ;;
3036 ac_given_srcdir=$srcdir
3037 ac_given_INSTALL="$INSTALL"
3039 trap 'rm -fr `echo "
3048 doc/tutorial/Makefile
3049 doc/reference/Makefile
3050 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3052 cat >> $CONFIG_STATUS <<EOF
3054 # Protect against being on the right side of a sed subst in config.status.
3055 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3056 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3060 s%@CFLAGS@%$CFLAGS%g
3061 s%@CPPFLAGS@%$CPPFLAGS%g
3062 s%@CXXFLAGS@%$CXXFLAGS%g
3063 s%@FFLAGS@%$FFLAGS%g
3065 s%@LDFLAGS@%$LDFLAGS%g
3067 s%@exec_prefix@%$exec_prefix%g
3068 s%@prefix@%$prefix%g
3069 s%@program_transform_name@%$program_transform_name%g
3070 s%@bindir@%$bindir%g
3071 s%@sbindir@%$sbindir%g
3072 s%@libexecdir@%$libexecdir%g
3073 s%@datadir@%$datadir%g
3074 s%@sysconfdir@%$sysconfdir%g
3075 s%@sharedstatedir@%$sharedstatedir%g
3076 s%@localstatedir@%$localstatedir%g
3077 s%@libdir@%$libdir%g
3078 s%@includedir@%$includedir%g
3079 s%@oldincludedir@%$oldincludedir%g
3080 s%@infodir@%$infodir%g
3081 s%@mandir@%$mandir%g
3082 s%@GINACLIB_MAJOR_VERSION@%$GINACLIB_MAJOR_VERSION%g
3083 s%@GINACLIB_MINOR_VERSION@%$GINACLIB_MINOR_VERSION%g
3084 s%@GINACLIB_MICRO_VERSION@%$GINACLIB_MICRO_VERSION%g
3085 s%@GINACLIB_INTERFACE_AGE@%$GINACLIB_INTERFACE_AGE%g
3086 s%@GINACLIB_BINARY_AGE@%$GINACLIB_BINARY_AGE%g
3087 s%@GINACLIB_VERSION@%$GINACLIB_VERSION%g
3088 s%@ARCHIVE_VERSION@%$ARCHIVE_VERSION%g
3089 s%@ARCHIVE_AGE@%$ARCHIVE_AGE%g
3090 s%@LT_RELEASE@%$LT_RELEASE%g
3091 s%@LT_CURRENT@%$LT_CURRENT%g
3092 s%@LT_REVISION@%$LT_REVISION%g
3093 s%@LT_AGE@%$LT_AGE%g
3094 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3095 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3096 s%@INSTALL_DATA@%$INSTALL_DATA%g
3097 s%@PACKAGE@%$PACKAGE%g
3098 s%@VERSION@%$VERSION%g
3099 s%@ACLOCAL@%$ACLOCAL%g
3100 s%@AUTOCONF@%$AUTOCONF%g
3101 s%@AUTOMAKE@%$AUTOMAKE%g
3102 s%@AUTOHEADER@%$AUTOHEADER%g
3103 s%@MAKEINFO@%$MAKEINFO%g
3104 s%@SET_MAKE@%$SET_MAKE%g
3105 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3106 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3109 s%@CXXCPP@%$CXXCPP%g
3111 s%@host_alias@%$host_alias%g
3112 s%@host_cpu@%$host_cpu%g
3113 s%@host_vendor@%$host_vendor%g
3114 s%@host_os@%$host_os%g
3116 s%@build_alias@%$build_alias%g
3117 s%@build_cpu@%$build_cpu%g
3118 s%@build_vendor@%$build_vendor%g
3119 s%@build_os@%$build_os%g
3120 s%@RANLIB@%$RANLIB%g
3125 s%@LIBTOOL@%$LIBTOOL%g
3127 s%@LEXLIB@%$LEXLIB%g
3129 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3131 s%@GINSH_LIBS@%$GINSH_LIBS%g
3132 s%@GINACLIB_CPPFLAGS@%$GINACLIB_CPPFLAGS%g
3133 s%@GINACLIB_LIBS@%$GINACLIB_LIBS%g
3134 s%@DOXYGEN@%$DOXYGEN%g
3136 s%@MAKEINDEX@%$MAKEINDEX%g
3138 s%@FIG2DEV@%$FIG2DEV%g
3139 s%@TUTORIAL_TARGETS@%$TUTORIAL_TARGETS%g
3140 s%@REFERENCE_TARGETS@%$REFERENCE_TARGETS%g
3142 s%@MAKECINT@%$MAKECINT%g
3147 cat >> $CONFIG_STATUS <<\EOF
3149 # Split the substitutions into bite-sized pieces for seds with
3150 # small command number limits, like on Digital OSF/1 and HP-UX.
3151 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3152 ac_file=1 # Number of current file.
3153 ac_beg=1 # First line for current file.
3154 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3157 while $ac_more_lines; do
3158 if test $ac_beg -gt 1; then
3159 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3161 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3163 if test ! -s conftest.s$ac_file; then
3165 rm -f conftest.s$ac_file
3167 if test -z "$ac_sed_cmds"; then
3168 ac_sed_cmds="sed -f conftest.s$ac_file"
3170 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3172 ac_file=`expr $ac_file + 1`
3174 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3177 if test -z "$ac_sed_cmds"; then
3182 cat >> $CONFIG_STATUS <<EOF
3184 CONFIG_FILES=\${CONFIG_FILES-"Makefile
3192 doc/tutorial/Makefile
3193 doc/reference/Makefile
3196 cat >> $CONFIG_STATUS <<\EOF
3197 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3198 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3200 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3201 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3202 *) ac_file_in="${ac_file}.in" ;;
3205 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3207 # Remove last slash and all that follows it. Not all systems have dirname.
3208 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3210 # The file is in a subdirectory.
3211 test ! -d "$ac_dir" && mkdir "$ac_dir"
3212 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3213 # A "../" for each directory in $ac_dir_suffix.
3214 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3216 ac_dir_suffix= ac_dots=
3219 case "$ac_given_srcdir" in
3221 if test -z "$ac_dots"; then top_srcdir=.
3222 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3223 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3225 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3226 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3229 case "$ac_given_INSTALL" in
3230 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3231 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3234 echo creating "$ac_file"
3236 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3238 *Makefile*) ac_comsub="1i\\
3239 # $configure_input" ;;
3243 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3245 s%@configure_input@%$configure_input%g
3246 s%@srcdir@%$srcdir%g
3247 s%@top_srcdir@%$top_srcdir%g
3248 s%@INSTALL@%$INSTALL%g
3249 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3253 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3254 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3256 # ac_d sets the value in "#define NAME VALUE" lines.
3257 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3258 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3261 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3262 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3263 ac_uB='\([ ]\)%\1#\2define\3'
3266 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3267 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3268 ac_eB='$%\1#\2define\3'
3272 if test "${CONFIG_HEADERS+set}" != set; then
3274 cat >> $CONFIG_STATUS <<EOF
3275 CONFIG_HEADERS="config.h"
3277 cat >> $CONFIG_STATUS <<\EOF
3279 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3280 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3282 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3283 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3284 *) ac_file_in="${ac_file}.in" ;;
3287 echo creating $ac_file
3289 rm -f conftest.frag conftest.in conftest.out
3290 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3291 cat $ac_file_inputs > conftest.in
3295 # Transform confdefs.h into a sed script conftest.vals that substitutes
3296 # the proper values into config.h.in to produce config.h. And first:
3297 # Protect against being on the right side of a sed subst in config.status.
3298 # Protect against being in an unquoted here document in config.status.
3300 cat > conftest.hdr <<\EOF
3303 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3307 sed -n -f conftest.hdr confdefs.h > conftest.vals
3310 # This sed command replaces #undef with comments. This is necessary, for
3311 # example, in the case of _POSIX_SOURCE, which is predefined and required
3312 # on some systems where configure will not decide to define it.
3313 cat >> conftest.vals <<\EOF
3314 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3317 # Break up conftest.vals because some shells have a limit on
3318 # the size of here documents, and old seds have small limits too.
3323 ac_lines=`grep -c . conftest.vals`
3324 # grep -c gives empty output for an empty file on some AIX systems.
3325 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3326 # Write a limited-size here document to conftest.frag.
3327 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3328 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3330 sed -f conftest.frag conftest.in > conftest.out
3332 mv conftest.out conftest.in
3334 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3336 mv conftest.tail conftest.vals
3340 cat >> $CONFIG_STATUS <<\EOF
3341 rm -f conftest.frag conftest.h
3342 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3343 cat conftest.in >> conftest.h
3345 if cmp -s $ac_file conftest.h 2>/dev/null; then
3346 echo "$ac_file is unchanged"
3349 # Remove last slash and all that follows it. Not all systems have dirname.
3350 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3351 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3352 # The file is in a subdirectory.
3353 test ! -d "$ac_dir" && mkdir "$ac_dir"
3356 mv conftest.h $ac_file
3361 cat >> $CONFIG_STATUS <<EOF
3365 cat >> $CONFIG_STATUS <<\EOF
3366 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3367 chmod +x ginac-config
3370 chmod +x $CONFIG_STATUS
3371 rm -fr confdefs* $ac_clean_files
3372 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3374 echo "Configuration done. Now type \"make\"."