3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared build shared libraries [default=yes]
19 --enable-shared=PKGS only build shared libraries if the current package
20 appears as an element in the PKGS list"
22 --enable-static build static libraries [default=yes]
23 --enable-static=PKGS only build shared libraries if the current package
24 appears as an element in the PKGS list"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.12"
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=ginac/basic.cpp
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
537 GINACLIB_MAJOR_VERSION=0
538 GINACLIB_MINOR_VERSION=4
539 GINACLIB_MICRO_VERSION=0
540 GINACLIB_INTERFACE_AGE=0
541 GINACLIB_BINARY_AGE=0
542 GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
551 LT_RELEASE=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION
552 LT_CURRENT=`expr $GINACLIB_MICRO_VERSION - $GINACLIB_INTERFACE_AGE`
553 LT_REVISION=$GINACLIB_INTERFACE_AGE
554 LT_AGE=`expr $GINACLIB_BINARY_AGE - $GINACLIB_INTERFACE_AGE`
565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
566 if test -f $ac_dir/install-sh; then
568 ac_install_sh="$ac_aux_dir/install-sh -c"
570 elif test -f $ac_dir/install.sh; then
572 ac_install_sh="$ac_aux_dir/install.sh -c"
576 if test -z "$ac_aux_dir"; then
577 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
579 ac_config_guess=$ac_aux_dir/config.guess
580 ac_config_sub=$ac_aux_dir/config.sub
581 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
583 # Find a good install program. We prefer a C program (faster),
584 # so one script is as good as another. But avoid the broken or
585 # incompatible versions:
586 # SysV /etc/install, /usr/sbin/install
587 # SunOS /usr/etc/install
590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
592 # ./install, which can be erroneously created by make from ./install.sh.
593 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
594 echo "configure:595: checking for a BSD compatible install" >&5
595 if test -z "$INSTALL"; then
596 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
599 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
600 for ac_dir in $PATH; do
601 # Account for people who put trailing slashes in PATH elements.
603 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
605 # OSF1 and SCO ODT 3.0 have their own names for install.
606 for ac_prog in ginstall installbsd scoinst install; do
607 if test -f $ac_dir/$ac_prog; then
608 if test $ac_prog = install &&
609 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
610 # AIX install. It has an incompatible calling convention.
611 # OSF/1 installbsd also uses dspmsg, but is usable.
614 ac_cv_path_install="$ac_dir/$ac_prog -c"
625 if test "${ac_cv_path_install+set}" = set; then
626 INSTALL="$ac_cv_path_install"
628 # As a last resort, use the slow shell script. We don't cache a
629 # path for INSTALL within a source directory, because that will
630 # break other packages using the cache if that directory is
631 # removed, or if the path is relative.
632 INSTALL="$ac_install_sh"
635 echo "$ac_t""$INSTALL" 1>&6
637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
638 # It thinks the first close brace ends the variable substitution.
639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
646 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
647 echo "configure:648: checking whether build environment is sane" >&5
650 echo timestamp > conftestfile
651 # Do `set' in a subshell so we don't clobber the current shell's
652 # arguments. Must try -L first in case configure is actually a
653 # symlink; some systems play weird games with the mod time of symlinks
654 # (eg FreeBSD returns the mod time of the symlink's containing
657 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
658 if test "$*" = "X"; then
660 set X `ls -t $srcdir/configure conftestfile`
662 if test "$*" != "X $srcdir/configure conftestfile" \
663 && test "$*" != "X conftestfile $srcdir/configure"; then
665 # If neither matched, then we have a broken ls. This can happen
666 # if, for instance, CONFIG_SHELL is bash and it inherits a
667 # broken ls alias from the environment. This has actually
668 # happened. Such a system could not be considered "sane".
669 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
670 alias in your environment" 1>&2; exit 1; }
673 test "$2" = conftestfile
679 { echo "configure: error: newly created file is older than distributed files!
680 Check your system clock" 1>&2; exit 1; }
683 echo "$ac_t""yes" 1>&6
684 if test "$program_transform_name" = s,x,x,; then
685 program_transform_name=
687 # Double any \ or $. echo might interpret backslashes.
688 cat <<\EOF_SED > conftestsed
689 s,\\,\\\\,g; s,\$,$$,g
691 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
694 test "$program_prefix" != NONE &&
695 program_transform_name="s,^,${program_prefix},; $program_transform_name"
696 # Use a double $ so make ignores it.
697 test "$program_suffix" != NONE &&
698 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
700 # sed with no file args requires a program.
701 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
703 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
704 echo "configure:705: checking whether ${MAKE-make} sets \${MAKE}" >&5
705 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
706 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 cat > conftestmake <<\EOF
711 @echo 'ac_maketemp="${MAKE}"'
713 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
714 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
715 if test -n "$ac_maketemp"; then
716 eval ac_cv_prog_make_${ac_make}_set=yes
718 eval ac_cv_prog_make_${ac_make}_set=no
722 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
723 echo "$ac_t""yes" 1>&6
726 echo "$ac_t""no" 1>&6
727 SET_MAKE="MAKE=${MAKE-make}"
733 VERSION=$GINACLIB_VERSION
735 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
736 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
738 cat >> confdefs.h <<EOF
739 #define PACKAGE "$PACKAGE"
742 cat >> confdefs.h <<EOF
743 #define VERSION "$VERSION"
748 missing_dir=`cd $ac_aux_dir && pwd`
749 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
750 echo "configure:751: checking for working aclocal" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
756 echo "$ac_t""found" 1>&6
758 ACLOCAL="$missing_dir/missing aclocal"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoconf" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
769 echo "$ac_t""found" 1>&6
771 AUTOCONF="$missing_dir/missing autoconf"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working automake""... $ac_c" 1>&6
776 echo "configure:777: checking for working automake" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (automake --version) < /dev/null > /dev/null 2>&1; then
782 echo "$ac_t""found" 1>&6
784 AUTOMAKE="$missing_dir/missing automake"
785 echo "$ac_t""missing" 1>&6
788 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
789 echo "configure:790: checking for working autoheader" >&5
790 # Run test in a subshell; some versions of sh will print an error if
791 # an executable is not found, even if stderr is redirected.
792 # Redirect stdin to placate older versions of autoconf. Sigh.
793 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
794 AUTOHEADER=autoheader
795 echo "$ac_t""found" 1>&6
797 AUTOHEADER="$missing_dir/missing autoheader"
798 echo "$ac_t""missing" 1>&6
801 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
802 echo "configure:803: checking for working makeinfo" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
808 echo "$ac_t""found" 1>&6
810 MAKEINFO="$missing_dir/missing makeinfo"
811 echo "$ac_t""missing" 1>&6
815 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
816 echo "configure:817: checking whether to enable maintainer-specific portions of Makefiles" >&5
817 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
818 if test "${enable_maintainer_mode+set}" = set; then
819 enableval="$enable_maintainer_mode"
820 USE_MAINTAINER_MODE=$enableval
822 USE_MAINTAINER_MODE=no
825 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
826 if test $USE_MAINTAINER_MODE = yes; then
834 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
836 # Extract the first word of "$ac_prog", so it can be a program name with args.
837 set dummy $ac_prog; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 if test -n "$CXX"; then
844 ac_cv_prog_CXX="$CXX" # Let the user override the test.
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
847 for ac_dir in $PATH; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 ac_cv_prog_CXX="$ac_prog"
857 CXX="$ac_cv_prog_CXX"
858 if test -n "$CXX"; then
859 echo "$ac_t""$CXX" 1>&6
861 echo "$ac_t""no" 1>&6
864 test -n "$CXX" && break
866 test -n "$CXX" || CXX="gcc"
869 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
870 echo "configure:871: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
873 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp='$CXXCPP $CPPFLAGS'
875 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling=$ac_cv_prog_cxx_cross
879 cat > conftest.$ac_ext <<EOF
880 #line 881 "configure"
881 #include "confdefs.h"
884 if { (eval echo configure:885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
885 ac_cv_prog_cxx_works=yes
886 # If we can't run a trivial program, we are probably using a cross compiler.
887 if (./conftest; exit) 2>/dev/null; then
888 ac_cv_prog_cxx_cross=no
890 ac_cv_prog_cxx_cross=yes
893 echo "configure: failed program was:" >&5
894 cat conftest.$ac_ext >&5
895 ac_cv_prog_cxx_works=no
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
906 if test $ac_cv_prog_cxx_works = no; then
907 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
909 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
910 echo "configure:911: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
911 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
912 cross_compiling=$ac_cv_prog_cxx_cross
914 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
915 echo "configure:916: checking whether we are using GNU C++" >&5
916 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
917 echo $ac_n "(cached) $ac_c" 1>&6
919 cat > conftest.C <<EOF
924 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
931 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
933 if test $ac_cv_prog_gxx = yes; then
935 ac_test_CXXFLAGS="${CXXFLAGS+set}"
936 ac_save_CXXFLAGS="$CXXFLAGS"
938 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
939 echo "configure:940: checking whether ${CXX-g++} accepts -g" >&5
940 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
941 echo $ac_n "(cached) $ac_c" 1>&6
943 echo 'void f(){}' > conftest.cc
944 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
953 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
954 if test "$ac_test_CXXFLAGS" = set; then
955 CXXFLAGS="$ac_save_CXXFLAGS"
956 elif test $ac_cv_prog_cxx_g = yes; then
963 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
966 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
967 echo "configure:968: checking how to run the C++ preprocessor" >&5
968 if test -z "$CXXCPP"; then
969 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
973 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974 ac_cpp='$CXXCPP $CPPFLAGS'
975 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
976 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
977 cross_compiling=$ac_cv_prog_cxx_cross
978 CXXCPP="${CXX-g++} -E"
979 cat > conftest.$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
985 { (eval echo configure:986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
986 ac_err=`grep -v '^ *+' conftest.out`
987 if test -z "$ac_err"; then
991 echo "configure: failed program was:" >&5
992 cat conftest.$ac_ext >&5
997 ac_cv_prog_CXXCPP="$CXXCPP"
999 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1000 ac_cpp='$CPP $CPPFLAGS'
1001 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1002 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1003 cross_compiling=$ac_cv_prog_cc_cross
1006 CXXCPP="$ac_cv_prog_CXXCPP"
1007 echo "$ac_t""$CXXCPP" 1>&6
1010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1012 # Check whether --enable-shared or --disable-shared was given.
1013 if test "${enable_shared+set}" = set; then
1014 enableval="$enable_shared"
1015 p=${PACKAGE-default}
1016 case "$enableval" in
1017 yes) enable_shared=yes ;;
1018 no) enable_shared=no ;;
1021 # Look at the argument we got. We use all the common list separators.
1022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1023 for pkg in $enableval; do
1024 if test "X$pkg" = "X$p"; then
1035 # Check whether --enable-static or --disable-static was given.
1036 if test "${enable_static+set}" = set; then
1037 enableval="$enable_static"
1038 p=${PACKAGE-default}
1039 case "$enableval" in
1040 yes) enable_static=yes ;;
1041 no) enable_static=no ;;
1044 # Look at the argument we got. We use all the common list separators.
1045 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1046 for pkg in $enableval; do
1047 if test "X$pkg" = "X$p"; then
1059 # Make sure we can run config.sub.
1060 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1061 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1064 echo $ac_n "checking host system type""... $ac_c" 1>&6
1065 echo "configure:1066: checking host system type" >&5
1068 case "$host_alias" in
1072 if host_alias=`$ac_config_guess`; then :
1073 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1075 *) host_alias=$nonopt ;;
1079 host=`$ac_config_sub $host_alias`
1080 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1081 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1082 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1083 echo "$ac_t""$host" 1>&6
1085 # Extract the first word of "ranlib", so it can be a program name with args.
1086 set dummy ranlib; ac_word=$2
1087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088 echo "configure:1089: checking for $ac_word" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 if test -n "$RANLIB"; then
1093 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1096 for ac_dir in $PATH; do
1097 test -z "$ac_dir" && ac_dir=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_RANLIB="ranlib"
1104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1107 RANLIB="$ac_cv_prog_RANLIB"
1108 if test -n "$RANLIB"; then
1109 echo "$ac_t""$RANLIB" 1>&6
1111 echo "$ac_t""no" 1>&6
1114 # Extract the first word of "gcc", so it can be a program name with args.
1115 set dummy gcc; ac_word=$2
1116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1117 echo "configure:1118: checking for $ac_word" >&5
1118 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1119 echo $ac_n "(cached) $ac_c" 1>&6
1121 if test -n "$CC"; then
1122 ac_cv_prog_CC="$CC" # Let the user override the test.
1124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1125 for ac_dir in $PATH; do
1126 test -z "$ac_dir" && ac_dir=.
1127 if test -f $ac_dir/$ac_word; then
1136 if test -n "$CC"; then
1137 echo "$ac_t""$CC" 1>&6
1139 echo "$ac_t""no" 1>&6
1142 if test -z "$CC"; then
1143 # Extract the first word of "cc", so it can be a program name with args.
1144 set dummy cc; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 if test -n "$CC"; then
1151 ac_cv_prog_CC="$CC" # Let the user override the test.
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1155 for ac_dir in $PATH; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1159 ac_prog_rejected=yes
1167 if test $ac_prog_rejected = yes; then
1168 # We found a bogon in the path, so make sure we never use it.
1169 set dummy $ac_cv_prog_CC
1171 if test $# -gt 0; then
1172 # We chose a different compiler from the bogus one.
1173 # However, it has the same basename, so the bogon will be chosen
1174 # first if we set CC to just the basename; use the full file name.
1176 set dummy "$ac_dir/$ac_word" "$@"
1184 if test -n "$CC"; then
1185 echo "$ac_t""$CC" 1>&6
1187 echo "$ac_t""no" 1>&6
1190 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1193 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1200 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1201 cross_compiling=$ac_cv_prog_cc_cross
1203 cat > conftest.$ac_ext <<EOF
1204 #line 1205 "configure"
1205 #include "confdefs.h"
1208 if { (eval echo configure:1209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1209 ac_cv_prog_cc_works=yes
1210 # If we can't run a trivial program, we are probably using a cross compiler.
1211 if (./conftest; exit) 2>/dev/null; then
1212 ac_cv_prog_cc_cross=no
1214 ac_cv_prog_cc_cross=yes
1217 echo "configure: failed program was:" >&5
1218 cat conftest.$ac_ext >&5
1219 ac_cv_prog_cc_works=no
1223 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1224 if test $ac_cv_prog_cc_works = no; then
1225 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1227 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1229 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1230 cross_compiling=$ac_cv_prog_cc_cross
1232 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1233 echo "configure:1234: checking whether we are using GNU C" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 cat > conftest.c <<EOF
1242 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1249 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1251 if test $ac_cv_prog_gcc = yes; then
1253 ac_test_CFLAGS="${CFLAGS+set}"
1254 ac_save_CFLAGS="$CFLAGS"
1256 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1257 echo "configure:1258: checking whether ${CC-cc} accepts -g" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 echo 'void f(){}' > conftest.c
1262 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1271 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1272 if test "$ac_test_CFLAGS" = set; then
1273 CFLAGS="$ac_save_CFLAGS"
1274 elif test $ac_cv_prog_cc_g = yes; then
1281 test "${CFLAGS+set}" = set || CFLAGS="-g"
1284 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1285 if test "${with_gnu_ld+set}" = set; then
1286 withval="$with_gnu_ld"
1287 test "$withval" = no || with_gnu_ld=yes
1294 if test "$ac_cv_prog_gcc" = yes; then
1295 # Check if gcc -print-prog-name=ld gives a path.
1296 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1297 echo "configure:1298: checking for ld used by GCC" >&5
1298 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1300 # Accept absolute paths.
1302 test -z "$LD" && LD="$ac_prog"
1305 # If it fails, then pretend we aren't using GCC.
1309 # If it is relative, then search for the first ld in PATH.
1313 elif test "$with_gnu_ld" = yes; then
1314 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1315 echo "configure:1316: checking for GNU ld" >&5
1317 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1318 echo "configure:1319: checking for non-GNU ld" >&5
1320 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 if test -z "$LD"; then
1324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1325 for ac_dir in $PATH; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f "$ac_dir/$ac_prog"; then
1328 ac_cv_path_LD="$ac_dir/$ac_prog"
1329 # Check to see if the program is GNU ld. I'd rather use --version,
1330 # but apparently some GNU ld's only accept -v.
1331 # Break only if it was the GNU/non-GNU ld that we prefer.
1332 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1333 test "$with_gnu_ld" != no && break
1335 test "$with_gnu_ld" != yes && break
1341 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1346 if test -n "$LD"; then
1347 echo "$ac_t""$LD" 1>&6
1349 echo "$ac_t""no" 1>&6
1351 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1353 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1354 echo "configure:1355: checking if the linker ($LD) is GNU ld" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1359 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1360 ac_cv_prog_gnu_ld=yes
1362 ac_cv_prog_gnu_ld=no
1366 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1369 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1370 echo "configure:1371: checking for BSD-compatible nm" >&5
1371 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1376 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1379 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1380 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/nm; then
1383 # Check to see if the nm accepts a BSD-compat flag.
1384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1385 # nm: unknown option "B" ignored
1386 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1387 ac_cv_path_NM="$ac_dir/nm -B"
1388 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1389 ac_cv_path_NM="$ac_dir/nm -p"
1391 ac_cv_path_NM="$ac_dir/nm"
1397 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1403 echo "$ac_t""$NM" 1>&6
1406 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1407 echo "configure:1408: checking whether ln -s works" >&5
1408 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1412 if ln -s X conftestdata 2>/dev/null
1415 ac_cv_prog_LN_S="ln -s"
1420 LN_S="$ac_cv_prog_LN_S"
1421 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1422 echo "$ac_t""yes" 1>&6
1424 echo "$ac_t""no" 1>&6
1427 # Always use our own libtool.
1428 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1430 # Check for any special flags to pass to ltconfig.
1432 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1433 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1434 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1435 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1436 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1438 # Some flags need to be propagated to the compiler or linker for good
1442 # Find out which ABI we are using.
1443 echo '#line 1444 "configure"' > conftest.$ac_ext
1444 if { (eval echo configure:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1445 case "`/usr/bin/file conftest.o`" in
1461 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1462 CFLAGS="$CFLAGS -belf"
1466 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1467 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1468 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1469 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1470 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1471 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1473 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1474 echo "configure:1475: checking how to run the C preprocessor" >&5
1475 # On Suns, sometimes $CPP names a directory.
1476 if test -n "$CPP" && test -d "$CPP"; then
1479 if test -z "$CPP"; then
1480 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1483 # This must be in double quotes, not single quotes, because CPP may get
1484 # substituted into the Makefile and "${CC-cc}" will confuse make.
1486 # On the NeXT, cc -E runs the code through the compiler's parser,
1487 # not just through cpp.
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1495 { (eval echo configure:1496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1496 ac_err=`grep -v '^ *+' conftest.out`
1497 if test -z "$ac_err"; then
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1504 CPP="${CC-cc} -E -traditional-cpp"
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1512 { (eval echo configure:1513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1513 ac_err=`grep -v '^ *+' conftest.out`
1514 if test -z "$ac_err"; then
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1526 ac_cv_prog_CPP="$CPP"
1528 CPP="$ac_cv_prog_CPP"
1530 ac_cv_prog_CPP="$CPP"
1532 echo "$ac_t""$CPP" 1>&6
1534 missing_dir=`cd $ac_aux_dir && pwd`
1535 for ac_prog in flex lex
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_word" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 if test -n "$LEX"; then
1545 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1548 for ac_dir in $PATH; do
1549 test -z "$ac_dir" && ac_dir=.
1550 if test -f $ac_dir/$ac_word; then
1551 ac_cv_prog_LEX="$ac_prog"
1558 LEX="$ac_cv_prog_LEX"
1559 if test -n "$LEX"; then
1560 echo "$ac_t""$LEX" 1>&6
1562 echo "$ac_t""no" 1>&6
1565 test -n "$LEX" && break
1567 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1569 # Extract the first word of "flex", so it can be a program name with args.
1570 set dummy flex; ac_word=$2
1571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_word" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 if test -n "$LEX"; then
1577 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1580 for ac_dir in $PATH; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_LEX="flex"
1588 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1591 LEX="$ac_cv_prog_LEX"
1592 if test -n "$LEX"; then
1593 echo "$ac_t""$LEX" 1>&6
1595 echo "$ac_t""no" 1>&6
1598 if test -z "$LEXLIB"
1604 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1605 echo "configure:1606: checking for yywrap in -l$ac_lib" >&5
1606 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 ac_save_LIBS="$LIBS"
1611 LIBS="-l$ac_lib $LIBS"
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 /* Override any gcc2 internal prototype to avoid an error. */
1616 /* We use char because int might match the return type of a gcc2
1617 builtin and then its argument prototype would still apply. */
1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1626 eval "ac_cv_lib_$ac_lib_var=yes"
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1631 eval "ac_cv_lib_$ac_lib_var=no"
1634 LIBS="$ac_save_LIBS"
1637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1641 echo "$ac_t""no" 1>&6
1646 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1647 echo "configure:1648: checking lex output file root" >&5
1648 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1649 echo $ac_n "(cached) $ac_c" 1>&6
1651 # The minimal lex program is just a single line: %%. But some broken lexes
1652 # (Solaris, I think it was) want two %% lines, so accommodate them.
1655 if test -f lex.yy.c; then
1656 ac_cv_prog_lex_root=lex.yy
1657 elif test -f lexyy.c; then
1658 ac_cv_prog_lex_root=lexyy
1660 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1664 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1665 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1667 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1668 echo "configure:1669: checking whether yytext is a pointer" >&5
1669 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1672 # POSIX says lex can declare yytext either as a pointer or an array; the
1673 # default is implementation-dependent. Figure out which it is, since
1674 # not all implementations provide the %pointer and %array declarations.
1675 ac_cv_prog_lex_yytext_pointer=no
1676 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1677 ac_save_LIBS="$LIBS"
1678 LIBS="$LIBS $LEXLIB"
1679 cat > conftest.$ac_ext <<EOF
1680 #line 1681 "configure"
1681 #include "confdefs.h"
1682 `cat $LEX_OUTPUT_ROOT.c`
1687 if { (eval echo configure:1688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1689 ac_cv_prog_lex_yytext_pointer=yes
1691 echo "configure: failed program was:" >&5
1692 cat conftest.$ac_ext >&5
1695 LIBS="$ac_save_LIBS"
1696 rm -f "${LEX_OUTPUT_ROOT}.c"
1700 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1701 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1702 cat >> confdefs.h <<\EOF
1703 #define YYTEXT_POINTER 1
1708 for ac_prog in 'bison -y' byacc
1710 # Extract the first word of "$ac_prog", so it can be a program name with args.
1711 set dummy $ac_prog; ac_word=$2
1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1713 echo "configure:1714: checking for $ac_word" >&5
1714 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test -n "$YACC"; then
1718 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1721 for ac_dir in $PATH; do
1722 test -z "$ac_dir" && ac_dir=.
1723 if test -f $ac_dir/$ac_word; then
1724 ac_cv_prog_YACC="$ac_prog"
1731 YACC="$ac_cv_prog_YACC"
1732 if test -n "$YACC"; then
1733 echo "$ac_t""$YACC" 1>&6
1735 echo "$ac_t""no" 1>&6
1738 test -n "$YACC" && break
1740 test -n "$YACC" || YACC="yacc"
1744 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1745 ac_cpp='$CXXCPP $CPPFLAGS'
1746 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1747 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1748 cross_compiling=$ac_cv_prog_cxx_cross
1751 echo $ac_n "checking for cout in -lstdc++""... $ac_c" 1>&6
1752 echo "configure:1753: checking for cout in -lstdc++" >&5
1753 ac_lib_var=`echo stdc++'_'cout | sed 'y%./+-%__p_%'`
1754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 ac_save_LIBS="$LIBS"
1758 LIBS="-lstdc++ $LIBS"
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 /* Override any gcc2 internal prototype to avoid an error. */
1766 /* We use char because int might match the return type of a gcc2
1767 builtin and then its argument prototype would still apply. */
1774 if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1776 eval "ac_cv_lib_$ac_lib_var=yes"
1778 echo "configure: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1781 eval "ac_cv_lib_$ac_lib_var=no"
1784 LIBS="$ac_save_LIBS"
1787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1788 echo "$ac_t""yes" 1>&6
1789 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1790 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1791 cat >> confdefs.h <<EOF
1792 #define $ac_tr_lib 1
1795 LIBS="-lstdc++ $LIBS"
1798 echo "$ac_t""no" 1>&6
1802 for ac_hdr in iostream vector map string list typeinfo iterator strstream stdexcept algorithm
1804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1806 echo "configure:1807: checking for $ac_hdr" >&5
1807 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1810 cat > conftest.$ac_ext <<EOF
1811 #line 1812 "configure"
1812 #include "confdefs.h"
1815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816 { (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817 ac_err=`grep -v '^ *+' conftest.out`
1818 if test -z "$ac_err"; then
1820 eval "ac_cv_header_$ac_safe=yes"
1823 echo "configure: failed program was:" >&5
1824 cat conftest.$ac_ext >&5
1826 eval "ac_cv_header_$ac_safe=no"
1830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1831 echo "$ac_t""yes" 1>&6
1832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1833 cat >> confdefs.h <<EOF
1834 #define $ac_tr_hdr 1
1838 echo "$ac_t""no" 1>&6
1839 { echo "configure: error: need to have ANSI compliant headers" 1>&2; exit 1; }
1845 for ac_hdr in CLN/cln.h
1847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_hdr" >&5
1850 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1859 { (eval echo configure:1860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1860 ac_err=`grep -v '^ *+' conftest.out`
1861 if test -z "$ac_err"; then
1863 eval "ac_cv_header_$ac_safe=yes"
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 eval "ac_cv_header_$ac_safe=no"
1873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1874 echo "$ac_t""yes" 1>&6
1875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1876 cat >> confdefs.h <<EOF
1877 #define $ac_tr_hdr 1
1881 echo "$ac_t""no" 1>&6
1884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1886 echo "configure:1887: checking for $ac_hdr" >&5
1887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1896 { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1897 ac_err=`grep -v '^ *+' conftest.out`
1898 if test -z "$ac_err"; then
1900 eval "ac_cv_header_$ac_safe=yes"
1903 echo "configure: failed program was:" >&5
1904 cat conftest.$ac_ext >&5
1906 eval "ac_cv_header_$ac_safe=no"
1910 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1911 echo "$ac_t""yes" 1>&6
1912 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1913 cat >> confdefs.h <<EOF
1914 #define $ac_tr_hdr 1
1918 echo "$ac_t""no" 1>&6
1919 { echo "configure: error: cannot find header for Bruno Haible's CLN" 1>&2; exit 1; };
1930 echo $ac_n "checking how to link with libcln""... $ac_c" 1>&6
1931 echo "configure:1932: checking how to link with libcln" >&5
1932 saved_LIBS="${LIBS}"
1933 if eval "test \"`echo '$''{'ginac_cv_lib_cln_link'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1937 case "${ac_cv_header_CLN_cln_h}" in
1939 cat > conftest.$ac_ext <<EOF
1940 #line 1941 "configure"
1941 #include "confdefs.h"
1942 #include <CLN/cln.h>
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1949 ginac_cv_lib_cln_link="-lcln"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 ginac_cv_lib_cln_link="fail"
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1969 ginac_cv_lib_cln_link="-lcln"
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1974 ginac_cv_lib_cln_link="fail"
1982 case "${ginac_cv_lib_cln_link}" in
1984 LIBS="-lcln ${saved_LIBS}"
1985 echo "$ac_t""-lcln" 1>&6
1987 echo $ac_n "checking whether libcln behaves sane""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether libcln behaves sane" >&5
1989 if eval "test \"`echo '$''{'ginac_cv_lib_cln_integrity'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1993 case "${ac_cv_header_CLN_cln_h}" in
1995 if test "$cross_compiling" = yes; then
1996 ginac_cv_lib_cln_integrity="guessing sane"
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2002 extern "C" void exit(int);
2004 #include <CLN/cln.h>
2006 cl_RA q(3); q = q/2; cl_RA p(3); p = p/2;
2007 if (q+p != 3) return 1; else return 0;
2010 if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2012 ginac_cv_lib_cln_integrity="sane"
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2017 ginac_cv_lib_cln_integrity="insane"
2024 if test "$cross_compiling" = yes; then
2025 ginac_cv_lib_cln_integrity="guessing sane"
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2031 extern "C" void exit(int);
2035 cl_RA q(3); q = q/2; cl_RA p(3); p = p/2;
2036 if (q+p != 3) return 1; else return 0;
2039 if { (eval echo configure:2040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2041 ginac_cv_lib_cln_integrity="sane"
2043 echo "configure: failed program was:" >&5
2044 cat conftest.$ac_ext >&5
2046 ginac_cv_lib_cln_integrity="insane"
2056 case "${ginac_cv_lib_cln_integrity}" in
2058 echo "$ac_t""yes" 1>&6
2061 echo "$ac_t""no" 1>&6
2062 echo "configure: warning: maybe version of libcln is older than 1.0.2?" 1>&2
2065 echo "$ac_t""hopefully" 1>&6
2068 echo "configure: warning: you found a bug in the configure script!" 1>&2
2074 LIBS="${saved_LIBS}"
2076 echo "configure: warning: linking with libcln failed" 1>&2
2079 LIBS="${saved_LIBS}"
2084 for ac_hdr in unistd.h
2086 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2087 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2088 echo "configure:2089: checking for $ac_hdr" >&5
2089 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2090 echo $ac_n "(cached) $ac_c" 1>&6
2092 cat > conftest.$ac_ext <<EOF
2093 #line 2094 "configure"
2094 #include "confdefs.h"
2097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2098 { (eval echo configure:2099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2099 ac_err=`grep -v '^ *+' conftest.out`
2100 if test -z "$ac_err"; then
2102 eval "ac_cv_header_$ac_safe=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.$ac_ext >&5
2108 eval "ac_cv_header_$ac_safe=no"
2112 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_hdr 1
2120 echo "$ac_t""no" 1>&6
2124 for ac_hdr in readline/readline.h readline/history.h
2126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2128 echo "configure:2129: checking for $ac_hdr" >&5
2129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2138 { (eval echo configure:2139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2139 ac_err=`grep -v '^ *+' conftest.out`
2140 if test -z "$ac_err"; then
2142 eval "ac_cv_header_$ac_safe=yes"
2145 echo "configure: failed program was:" >&5
2146 cat conftest.$ac_ext >&5
2148 eval "ac_cv_header_$ac_safe=no"
2152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2153 echo "$ac_t""yes" 1>&6
2154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2155 cat >> confdefs.h <<EOF
2156 #define $ac_tr_hdr 1
2160 echo "$ac_t""no" 1>&6
2164 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2165 echo "configure:2166: checking for readline in -lreadline" >&5
2166 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 ac_save_LIBS="$LIBS"
2171 LIBS="-lreadline $LIBS"
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 /* Override any gcc2 internal prototype to avoid an error. */
2179 /* We use char because int might match the return type of a gcc2
2180 builtin and then its argument prototype would still apply. */
2187 if { (eval echo configure:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2189 eval "ac_cv_lib_$ac_lib_var=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 eval "ac_cv_lib_$ac_lib_var=no"
2197 LIBS="$ac_save_LIBS"
2200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2202 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2204 cat >> confdefs.h <<EOF
2205 #define $ac_tr_lib 1
2208 LIBS="-lreadline $LIBS"
2211 echo "$ac_t""no" 1>&6
2215 # Extract the first word of "doxygen", so it can be a program name with args.
2216 set dummy doxygen; ac_word=$2
2217 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_word" >&5
2219 if eval "test \"`echo '$''{'ac_cv_path_DOXYGEN'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2224 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
2227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2228 for ac_dir in $PATH; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_path_DOXYGEN="$ac_dir/$ac_word"
2236 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
2240 DOXYGEN="$ac_cv_path_DOXYGEN"
2241 if test -n "$DOXYGEN"; then
2242 echo "$ac_t""$DOXYGEN" 1>&6
2244 echo "$ac_t""no" 1>&6
2247 # Extract the first word of "latex", so it can be a program name with args.
2248 set dummy latex; ac_word=$2
2249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2250 echo "configure:2251: checking for $ac_word" >&5
2251 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2256 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
2259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2260 for ac_dir in $PATH; do
2261 test -z "$ac_dir" && ac_dir=.
2262 if test -f $ac_dir/$ac_word; then
2263 ac_cv_path_LATEX="$ac_dir/$ac_word"
2268 test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
2272 LATEX="$ac_cv_path_LATEX"
2273 if test -n "$LATEX"; then
2274 echo "$ac_t""$LATEX" 1>&6
2276 echo "$ac_t""no" 1>&6
2279 # Extract the first word of "makeindex", so it can be a program name with args.
2280 set dummy makeindex; ac_word=$2
2281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2282 echo "configure:2283: checking for $ac_word" >&5
2283 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
2284 echo $ac_n "(cached) $ac_c" 1>&6
2286 case "$MAKEINDEX" in
2288 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
2291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2292 for ac_dir in $PATH; do
2293 test -z "$ac_dir" && ac_dir=.
2294 if test -f $ac_dir/$ac_word; then
2295 ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
2300 test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
2304 MAKEINDEX="$ac_cv_path_MAKEINDEX"
2305 if test -n "$MAKEINDEX"; then
2306 echo "$ac_t""$MAKEINDEX" 1>&6
2308 echo "$ac_t""no" 1>&6
2311 # Extract the first word of "dvips", so it can be a program name with args.
2312 set dummy dvips; ac_word=$2
2313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_word" >&5
2315 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2320 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
2323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2324 for ac_dir in $PATH; do
2325 test -z "$ac_dir" && ac_dir=.
2326 if test -f $ac_dir/$ac_word; then
2327 ac_cv_path_DVIPS="$ac_dir/$ac_word"
2332 test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
2336 DVIPS="$ac_cv_path_DVIPS"
2337 if test -n "$DVIPS"; then
2338 echo "$ac_t""$DVIPS" 1>&6
2340 echo "$ac_t""no" 1>&6
2343 # Extract the first word of "fig2dev", so it can be a program name with args.
2344 set dummy fig2dev; ac_word=$2
2345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2346 echo "configure:2347: checking for $ac_word" >&5
2347 if eval "test \"`echo '$''{'ac_cv_path_FIG2DEV'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
2355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2356 for ac_dir in $PATH; do
2357 test -z "$ac_dir" && ac_dir=.
2358 if test -f $ac_dir/$ac_word; then
2359 ac_cv_path_FIG2DEV="$ac_dir/$ac_word"
2364 test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
2368 FIG2DEV="$ac_cv_path_FIG2DEV"
2369 if test -n "$FIG2DEV"; then
2370 echo "$ac_t""$FIG2DEV" 1>&6
2372 echo "$ac_t""no" 1>&6
2375 # Extract the first word of "jade", so it can be a program name with args.
2376 set dummy jade; ac_word=$2
2377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2378 echo "configure:2379: checking for $ac_word" >&5
2379 if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
2380 echo $ac_n "(cached) $ac_c" 1>&6
2384 ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
2387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2388 for ac_dir in $PATH; do
2389 test -z "$ac_dir" && ac_dir=.
2390 if test -f $ac_dir/$ac_word; then
2391 ac_cv_path_JADE="$ac_dir/$ac_word"
2396 test -z "$ac_cv_path_JADE" && ac_cv_path_JADE=""""
2400 JADE="$ac_cv_path_JADE"
2401 if test -n "$JADE"; then
2402 echo "$ac_t""$JADE" 1>&6
2404 echo "$ac_t""no" 1>&6
2407 # Extract the first word of "jadetex", so it can be a program name with args.
2408 set dummy jadetex; ac_word=$2
2409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2410 echo "configure:2411: checking for $ac_word" >&5
2411 if eval "test \"`echo '$''{'ac_cv_path_JADETEX'+set}'`\" = set"; then
2412 echo $ac_n "(cached) $ac_c" 1>&6
2416 ac_cv_path_JADETEX="$JADETEX" # Let the user override the test with a path.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2420 for ac_dir in $PATH; do
2421 test -z "$ac_dir" && ac_dir=.
2422 if test -f $ac_dir/$ac_word; then
2423 ac_cv_path_JADETEX="$ac_dir/$ac_word"
2428 test -z "$ac_cv_path_JADETEX" && ac_cv_path_JADETEX=""""
2432 JADETEX="$ac_cv_path_JADETEX"
2433 if test -n "$JADETEX"; then
2434 echo "$ac_t""$JADETEX" 1>&6
2436 echo "$ac_t""no" 1>&6
2441 cat > confcache <<\EOF
2442 # This file is a shell script that caches the results of configure
2443 # tests run on this system so they can be shared between configure
2444 # scripts and configure runs. It is not useful on other systems.
2445 # If it contains results you don't want to keep, you may remove or edit it.
2447 # By default, configure uses ./config.cache as the cache file,
2448 # creating it if it does not exist already. You can give configure
2449 # the --cache-file=FILE option to use a different cache file; that is
2450 # what configure does when it calls configure scripts in
2451 # subdirectories, so they share the cache.
2452 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2453 # config.status only pays attention to the cache file if you give it the
2454 # --recheck option to rerun configure.
2457 # The following way of writing the cache mishandles newlines in values,
2458 # but we know of no workaround that is simple, portable, and efficient.
2459 # So, don't put newlines in cache variables' values.
2460 # Ultrix sh set writes to stderr and can't be redirected directly,
2461 # and sets the high bit in the cache file unless we assign to the vars.
2463 case `(ac_space=' '; set) 2>&1` in
2465 # `set' does not quote correctly, so add quotes (double-quote substitution
2466 # turns \\\\ into \\, and sed turns \\ into \).
2468 -e "s/'/'\\\\''/g" \
2469 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2472 # `set' quotes correctly as required by POSIX, so do not add quotes.
2473 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2476 if cmp -s $cache_file confcache; then
2479 if test -w $cache_file; then
2480 echo "updating cache $cache_file"
2481 cat confcache > $cache_file
2483 echo "not updating unwritable cache $cache_file"
2488 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2490 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2491 # Let make expand exec_prefix.
2492 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2494 # Any assignment to VPATH causes Sun make to only execute
2495 # the first set of double-colon rules, so remove it if not needed.
2496 # If there is a colon in the path, we need to keep it.
2497 if test "x$srcdir" = x.; then
2498 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2501 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2503 DEFS=-DHAVE_CONFIG_H
2505 # Without the "./", some shells look in PATH for config.status.
2506 : ${CONFIG_STATUS=./config.status}
2508 echo creating $CONFIG_STATUS
2509 rm -f $CONFIG_STATUS
2510 cat > $CONFIG_STATUS <<EOF
2512 # Generated automatically by configure.
2513 # Run this file to recreate the current configuration.
2514 # This directory was configured as follows,
2515 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2517 # $0 $ac_configure_args
2519 # Compiler output produced by configure, useful for debugging
2520 # configure, is in ./config.log if it exists.
2522 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2525 case "\$ac_option" in
2526 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2527 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2528 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2529 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2530 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2532 -help | --help | --hel | --he | --h)
2533 echo "\$ac_cs_usage"; exit 0 ;;
2534 *) echo "\$ac_cs_usage"; exit 1 ;;
2538 ac_given_srcdir=$srcdir
2539 ac_given_INSTALL="$INSTALL"
2541 trap 'rm -fr `echo "Makefile ginac/Makefile check/Makefile ginsh/Makefile doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2543 cat >> $CONFIG_STATUS <<EOF
2545 # Protect against being on the right side of a sed subst in config.status.
2546 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2547 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2550 s%@CFLAGS@%$CFLAGS%g
2551 s%@CPPFLAGS@%$CPPFLAGS%g
2552 s%@CXXFLAGS@%$CXXFLAGS%g
2554 s%@LDFLAGS@%$LDFLAGS%g
2556 s%@exec_prefix@%$exec_prefix%g
2557 s%@prefix@%$prefix%g
2558 s%@program_transform_name@%$program_transform_name%g
2559 s%@bindir@%$bindir%g
2560 s%@sbindir@%$sbindir%g
2561 s%@libexecdir@%$libexecdir%g
2562 s%@datadir@%$datadir%g
2563 s%@sysconfdir@%$sysconfdir%g
2564 s%@sharedstatedir@%$sharedstatedir%g
2565 s%@localstatedir@%$localstatedir%g
2566 s%@libdir@%$libdir%g
2567 s%@includedir@%$includedir%g
2568 s%@oldincludedir@%$oldincludedir%g
2569 s%@infodir@%$infodir%g
2570 s%@mandir@%$mandir%g
2571 s%@GINACLIB_MAJOR_VERSION@%$GINACLIB_MAJOR_VERSION%g
2572 s%@GINACLIB_MINOR_VERSION@%$GINACLIB_MINOR_VERSION%g
2573 s%@GINACLIB_MICRO_VERSION@%$GINACLIB_MICRO_VERSION%g
2574 s%@GINACLIB_INTERFACE_AGE@%$GINACLIB_INTERFACE_AGE%g
2575 s%@GINACLIB_BINARY_AGE@%$GINACLIB_BINARY_AGE%g
2576 s%@GINACLIB_VERSION@%$GINACLIB_VERSION%g
2577 s%@LT_RELEASE@%$LT_RELEASE%g
2578 s%@LT_CURRENT@%$LT_CURRENT%g
2579 s%@LT_REVISION@%$LT_REVISION%g
2580 s%@LT_AGE@%$LT_AGE%g
2581 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2582 s%@INSTALL_DATA@%$INSTALL_DATA%g
2583 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2584 s%@PACKAGE@%$PACKAGE%g
2585 s%@VERSION@%$VERSION%g
2586 s%@ACLOCAL@%$ACLOCAL%g
2587 s%@AUTOCONF@%$AUTOCONF%g
2588 s%@AUTOMAKE@%$AUTOMAKE%g
2589 s%@AUTOHEADER@%$AUTOHEADER%g
2590 s%@MAKEINFO@%$MAKEINFO%g
2591 s%@SET_MAKE@%$SET_MAKE%g
2594 s%@CXXCPP@%$CXXCPP%g
2596 s%@host_alias@%$host_alias%g
2597 s%@host_cpu@%$host_cpu%g
2598 s%@host_vendor@%$host_vendor%g
2599 s%@host_os@%$host_os%g
2600 s%@RANLIB@%$RANLIB%g
2605 s%@LIBTOOL@%$LIBTOOL%g
2607 s%@LEXLIB@%$LEXLIB%g
2609 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2611 s%@DOXYGEN@%$DOXYGEN%g
2613 s%@MAKEINDEX@%$MAKEINDEX%g
2615 s%@FIG2DEV@%$FIG2DEV%g
2617 s%@JADETEX@%$JADETEX%g
2622 cat >> $CONFIG_STATUS <<\EOF
2624 # Split the substitutions into bite-sized pieces for seds with
2625 # small command number limits, like on Digital OSF/1 and HP-UX.
2626 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2627 ac_file=1 # Number of current file.
2628 ac_beg=1 # First line for current file.
2629 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2632 while $ac_more_lines; do
2633 if test $ac_beg -gt 1; then
2634 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2636 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2638 if test ! -s conftest.s$ac_file; then
2640 rm -f conftest.s$ac_file
2642 if test -z "$ac_sed_cmds"; then
2643 ac_sed_cmds="sed -f conftest.s$ac_file"
2645 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2647 ac_file=`expr $ac_file + 1`
2649 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2652 if test -z "$ac_sed_cmds"; then
2657 cat >> $CONFIG_STATUS <<EOF
2659 CONFIG_FILES=\${CONFIG_FILES-"Makefile ginac/Makefile check/Makefile ginsh/Makefile doc/Makefile"}
2661 cat >> $CONFIG_STATUS <<\EOF
2662 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2665 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2666 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2667 *) ac_file_in="${ac_file}.in" ;;
2670 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2672 # Remove last slash and all that follows it. Not all systems have dirname.
2673 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2674 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2675 # The file is in a subdirectory.
2676 test ! -d "$ac_dir" && mkdir "$ac_dir"
2677 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2678 # A "../" for each directory in $ac_dir_suffix.
2679 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2681 ac_dir_suffix= ac_dots=
2684 case "$ac_given_srcdir" in
2686 if test -z "$ac_dots"; then top_srcdir=.
2687 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2688 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2690 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2691 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2694 case "$ac_given_INSTALL" in
2695 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2696 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2699 echo creating "$ac_file"
2701 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2703 *Makefile*) ac_comsub="1i\\
2704 # $configure_input" ;;
2708 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2710 s%@configure_input@%$configure_input%g
2711 s%@srcdir@%$srcdir%g
2712 s%@top_srcdir@%$top_srcdir%g
2713 s%@INSTALL@%$INSTALL%g
2714 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2718 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2719 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2721 # ac_d sets the value in "#define NAME VALUE" lines.
2722 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2723 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2726 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2727 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2728 ac_uB='\([ ]\)%\1#\2define\3'
2731 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2732 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2733 ac_eB='$%\1#\2define\3'
2737 if test "${CONFIG_HEADERS+set}" != set; then
2739 cat >> $CONFIG_STATUS <<EOF
2740 CONFIG_HEADERS="config.h"
2742 cat >> $CONFIG_STATUS <<\EOF
2744 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2745 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2747 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2748 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2749 *) ac_file_in="${ac_file}.in" ;;
2752 echo creating $ac_file
2754 rm -f conftest.frag conftest.in conftest.out
2755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2756 cat $ac_file_inputs > conftest.in
2760 # Transform confdefs.h into a sed script conftest.vals that substitutes
2761 # the proper values into config.h.in to produce config.h. And first:
2762 # Protect against being on the right side of a sed subst in config.status.
2763 # Protect against being in an unquoted here document in config.status.
2765 cat > conftest.hdr <<\EOF
2768 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2772 sed -n -f conftest.hdr confdefs.h > conftest.vals
2775 # This sed command replaces #undef with comments. This is necessary, for
2776 # example, in the case of _POSIX_SOURCE, which is predefined and required
2777 # on some systems where configure will not decide to define it.
2778 cat >> conftest.vals <<\EOF
2779 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2782 # Break up conftest.vals because some shells have a limit on
2783 # the size of here documents, and old seds have small limits too.
2788 ac_lines=`grep -c . conftest.vals`
2789 # grep -c gives empty output for an empty file on some AIX systems.
2790 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2791 # Write a limited-size here document to conftest.frag.
2792 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2793 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2795 sed -f conftest.frag conftest.in > conftest.out
2797 mv conftest.out conftest.in
2799 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2801 mv conftest.tail conftest.vals
2805 cat >> $CONFIG_STATUS <<\EOF
2806 rm -f conftest.frag conftest.h
2807 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2808 cat conftest.in >> conftest.h
2810 if cmp -s $ac_file conftest.h 2>/dev/null; then
2811 echo "$ac_file is unchanged"
2814 # Remove last slash and all that follows it. Not all systems have dirname.
2815 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2816 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2817 # The file is in a subdirectory.
2818 test ! -d "$ac_dir" && mkdir "$ac_dir"
2821 mv conftest.h $ac_file
2826 cat >> $CONFIG_STATUS <<EOF
2830 cat >> $CONFIG_STATUS <<\EOF
2831 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2835 chmod +x $CONFIG_STATUS
2836 rm -fr confdefs* $ac_clean_files
2837 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2839 echo "Configuration done. Now type \"make\"."