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 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
17 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
19 --disable-glibtest Do not try to compile and run a test GLIB program"
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
24 # Initialize some variables set by options.
25 # The variables have the same names as the options, with
26 # dashes changed to underlines.
28 cache_file=./config.cache
37 program_transform_name=s,x,x,
45 bindir='${exec_prefix}/bin'
46 sbindir='${exec_prefix}/sbin'
47 libexecdir='${exec_prefix}/libexec'
48 datadir='${prefix}/share'
49 sysconfdir='${prefix}/etc'
50 sharedstatedir='${prefix}/com'
51 localstatedir='${prefix}/var'
52 libdir='${exec_prefix}/lib'
53 includedir='${prefix}/include'
54 oldincludedir='/usr/include'
55 infodir='${prefix}/info'
56 mandir='${prefix}/man'
58 # Initialize some other variables.
61 SHELL=${CONFIG_SHELL-/bin/sh}
62 # Maximum number of lines to put in a shell here document.
69 # If the previous option needs an argument, assign it.
70 if test -n "$ac_prev"; then
71 eval "$ac_prev=\$ac_option"
77 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81 # Accept the important Cygnus configure options, so we can diagnose typos.
85 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
88 bindir="$ac_optarg" ;;
90 -build | --build | --buil | --bui | --bu)
92 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
95 -cache-file | --cache-file | --cache-fil | --cache-fi \
96 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
99 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
100 cache_file="$ac_optarg" ;;
102 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 datadir="$ac_optarg" ;;
108 -disable-* | --disable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 eval "enable_${ac_feature}=no" ;;
117 -enable-* | --enable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128 eval "enable_${ac_feature}='$ac_optarg'" ;;
130 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
131 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
132 | --exec | --exe | --ex)
133 ac_prev=exec_prefix ;;
134 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
135 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
136 | --exec=* | --exe=* | --ex=*)
137 exec_prefix="$ac_optarg" ;;
139 -gas | --gas | --ga | --g)
140 # Obsolete; use --with-gas.
143 -help | --help | --hel | --he)
144 # Omit some internal or obsolete options to make the list less imposing.
145 # This message is too long to be a string in the A/UX 3.1 sh.
147 Usage: configure [options] [host]
148 Options: [defaults in brackets after descriptions]
150 --cache-file=FILE cache test results in FILE
151 --help print this message
152 --no-create do not create output files
153 --quiet, --silent do not print \`checking...' messages
154 --version print the version of autoconf that created configure
155 Directory and file names:
156 --prefix=PREFIX install architecture-independent files in PREFIX
158 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 --bindir=DIR user executables in DIR [EPREFIX/bin]
161 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
162 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
163 --datadir=DIR read-only architecture-independent data in DIR
165 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
166 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
169 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
170 --includedir=DIR C header files in DIR [PREFIX/include]
171 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
172 --infodir=DIR info documentation in DIR [PREFIX/info]
173 --mandir=DIR man documentation in DIR [PREFIX/man]
174 --srcdir=DIR find the sources in DIR [configure dir or ..]
175 --program-prefix=PREFIX prepend PREFIX to installed program names
176 --program-suffix=SUFFIX append SUFFIX to installed program names
177 --program-transform-name=PROGRAM
178 run sed PROGRAM on installed program names
182 --build=BUILD configure for building on BUILD [BUILD=HOST]
183 --host=HOST configure for HOST [guessed]
184 --target=TARGET configure for TARGET [TARGET=HOST]
185 Features and packages:
186 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
187 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
188 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
189 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
190 --x-includes=DIR X include files are in DIR
191 --x-libraries=DIR X library files are in DIR
193 if test -n "$ac_help"; then
194 echo "--enable and --with options recognized:$ac_help"
198 -host | --host | --hos | --ho)
200 -host=* | --host=* | --hos=* | --ho=*)
203 -includedir | --includedir | --includedi | --included | --include \
204 | --includ | --inclu | --incl | --inc)
205 ac_prev=includedir ;;
206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
207 | --includ=* | --inclu=* | --incl=* | --inc=*)
208 includedir="$ac_optarg" ;;
210 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
213 infodir="$ac_optarg" ;;
215 -libdir | --libdir | --libdi | --libd)
217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
218 libdir="$ac_optarg" ;;
220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
221 | --libexe | --libex | --libe)
222 ac_prev=libexecdir ;;
223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
224 | --libexe=* | --libex=* | --libe=*)
225 libexecdir="$ac_optarg" ;;
227 -localstatedir | --localstatedir | --localstatedi | --localstated \
228 | --localstate | --localstat | --localsta | --localst \
229 | --locals | --local | --loca | --loc | --lo)
230 ac_prev=localstatedir ;;
231 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
232 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
233 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
234 localstatedir="$ac_optarg" ;;
236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
239 mandir="$ac_optarg" ;;
242 # Obsolete; use --without-fp.
245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
255 | --oldin | --oldi | --old | --ol | --o)
256 ac_prev=oldincludedir ;;
257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
260 oldincludedir="$ac_optarg" ;;
262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
265 prefix="$ac_optarg" ;;
267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
268 | --program-pre | --program-pr | --program-p)
269 ac_prev=program_prefix ;;
270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
272 program_prefix="$ac_optarg" ;;
274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
275 | --program-suf | --program-su | --program-s)
276 ac_prev=program_suffix ;;
277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
279 program_suffix="$ac_optarg" ;;
281 -program-transform-name | --program-transform-name \
282 | --program-transform-nam | --program-transform-na \
283 | --program-transform-n | --program-transform- \
284 | --program-transform | --program-transfor \
285 | --program-transfo | --program-transf \
286 | --program-trans | --program-tran \
287 | --progr-tra | --program-tr | --program-t)
288 ac_prev=program_transform_name ;;
289 -program-transform-name=* | --program-transform-name=* \
290 | --program-transform-nam=* | --program-transform-na=* \
291 | --program-transform-n=* | --program-transform-=* \
292 | --program-transform=* | --program-transfor=* \
293 | --program-transfo=* | --program-transf=* \
294 | --program-trans=* | --program-tran=* \
295 | --progr-tra=* | --program-tr=* | --program-t=*)
296 program_transform_name="$ac_optarg" ;;
298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
299 | -silent | --silent | --silen | --sile | --sil)
302 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 sbindir="$ac_optarg" ;;
308 -sharedstatedir | --sharedstatedir | --sharedstatedi \
309 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
310 | --sharedst | --shareds | --shared | --share | --shar \
312 ac_prev=sharedstatedir ;;
313 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
314 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
315 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 sharedstatedir="$ac_optarg" ;;
319 -site | --site | --sit)
321 -site=* | --site=* | --sit=*)
324 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
327 srcdir="$ac_optarg" ;;
329 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
330 | --syscon | --sysco | --sysc | --sys | --sy)
331 ac_prev=sysconfdir ;;
332 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
333 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
334 sysconfdir="$ac_optarg" ;;
336 -target | --target | --targe | --targ | --tar | --ta | --t)
338 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
339 target="$ac_optarg" ;;
341 -v | -verbose | --verbose | --verbos | --verbo | --verb)
344 -version | --version | --versio | --versi | --vers)
345 echo "configure generated by autoconf version 2.13"
349 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
350 # Reject names that are not valid shell variable names.
351 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
352 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 ac_package=`echo $ac_package| sed 's/-/_/g'`
359 eval "with_${ac_package}='$ac_optarg'" ;;
361 -without-* | --without-*)
362 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
363 # Reject names that are not valid shell variable names.
364 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
365 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}=no" ;;
371 # Obsolete; use --with-x.
374 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
375 | --x-incl | --x-inc | --x-in | --x-i)
376 ac_prev=x_includes ;;
377 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
378 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
379 x_includes="$ac_optarg" ;;
381 -x-libraries | --x-libraries | --x-librarie | --x-librari \
382 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
383 ac_prev=x_libraries ;;
384 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
385 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
386 x_libraries="$ac_optarg" ;;
388 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
393 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 if test "x$nonopt" != xNONE; then
396 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
404 if test -n "$ac_prev"; then
405 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410 # File descriptor usage:
413 # 2 errors and warnings
414 # 3 some systems may open it to /dev/tty
415 # 4 used on the Kubota Titan
416 # 6 checking for... messages and results
417 # 5 compiler messages saved in config.log
418 if test "$silent" = yes; then
426 This file contains any messages produced by compilers while
427 running configure, to aid debugging if configure makes a mistake.
430 # Strip out --no-create and --no-recursion so they do not pile up.
431 # Also quote any args containing shell metacharacters.
436 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
437 | --no-cr | --no-c) ;;
438 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
439 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
440 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
441 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
442 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447 # Only set these to C if already set. These must not be set unconditionally
448 # because not all systems understand e.g. LANG=C (notably SCO).
449 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
450 # Non-C LC_CTYPE values break the ctype check.
451 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
452 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
453 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
454 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456 # confdefs.h avoids OS command line length limits that DEFS can exceed.
457 rm -rf conftest* confdefs.h
458 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461 # A filename unique to this package, relative to the directory that
462 # configure is in, which we can look for to find out if srcdir is correct.
463 ac_unique_file=src/treefuncs.h
465 # Find the source files, if location was not specified.
466 if test -z "$srcdir"; then
467 ac_srcdir_defaulted=yes
468 # Try the directory containing this script, then its parent.
470 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
471 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 if test ! -r $srcdir/$ac_unique_file; then
477 ac_srcdir_defaulted=no
479 if test ! -r $srcdir/$ac_unique_file; then
480 if test "$ac_srcdir_defaulted" = yes; then
481 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488 # Prefer explicitly selected file to automatically selected ones.
489 if test -z "$CONFIG_SITE"; then
490 if test "x$prefix" != xNONE; then
491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
496 for ac_site_file in $CONFIG_SITE; do
497 if test -r "$ac_site_file"; then
498 echo "loading site script $ac_site_file"
503 if test -r "$cache_file"; then
504 echo "loading cache $cache_file"
507 echo "creating cache $cache_file"
512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
513 ac_cpp='$CPP $CPPFLAGS'
514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
516 cross_compiling=$ac_cv_prog_cc_cross
520 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
521 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
522 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529 ac_n= ac_c='\c' ac_t=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
540 ac_install_sh="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh; then
544 ac_install_sh="$ac_aux_dir/install.sh -c"
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555 # Find a good install program. We prefer a C program (faster),
556 # so one script is as good as another. But avoid the broken or
557 # incompatible versions:
558 # SysV /etc/install, /usr/sbin/install
559 # SunOS /usr/etc/install
562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
565 # ./install, which can be erroneously created by make from ./install.sh.
566 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
567 echo "configure:568: checking for a BSD compatible install" >&5
568 if test -z "$INSTALL"; then
569 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
570 echo $ac_n "(cached) $ac_c" 1>&6
572 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
573 for ac_dir in $PATH; do
574 # Account for people who put trailing slashes in PATH elements.
576 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
578 # OSF1 and SCO ODT 3.0 have their own names for install.
579 # Don't use installbsd from OSF since it installs stuff as root
581 for ac_prog in ginstall scoinst install; do
582 if test -f $ac_dir/$ac_prog; then
583 if test $ac_prog = install &&
584 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
585 # AIX install. It has an incompatible calling convention.
588 ac_cv_path_install="$ac_dir/$ac_prog -c"
599 if test "${ac_cv_path_install+set}" = set; then
600 INSTALL="$ac_cv_path_install"
602 # As a last resort, use the slow shell script. We don't cache a
603 # path for INSTALL within a source directory, because that will
604 # break other packages using the cache if that directory is
605 # removed, or if the path is relative.
606 INSTALL="$ac_install_sh"
609 echo "$ac_t""$INSTALL" 1>&6
611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
612 # It thinks the first close brace ends the variable substitution.
613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
619 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
620 echo "configure:621: checking whether build environment is sane" >&5
623 echo timestamp > conftestfile
624 # Do `set' in a subshell so we don't clobber the current shell's
625 # arguments. Must try -L first in case configure is actually a
626 # symlink; some systems play weird games with the mod time of symlinks
627 # (eg FreeBSD returns the mod time of the symlink's containing
630 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
631 if test "$*" = "X"; then
633 set X `ls -t $srcdir/configure conftestfile`
635 if test "$*" != "X $srcdir/configure conftestfile" \
636 && test "$*" != "X conftestfile $srcdir/configure"; then
638 # If neither matched, then we have a broken ls. This can happen
639 # if, for instance, CONFIG_SHELL is bash and it inherits a
640 # broken ls alias from the environment. This has actually
641 # happened. Such a system could not be considered "sane".
642 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
643 alias in your environment" 1>&2; exit 1; }
646 test "$2" = conftestfile
652 { echo "configure: error: newly created file is older than distributed files!
653 Check your system clock" 1>&2; exit 1; }
656 echo "$ac_t""yes" 1>&6
657 if test "$program_transform_name" = s,x,x,; then
658 program_transform_name=
660 # Double any \ or $. echo might interpret backslashes.
661 cat <<\EOF_SED > conftestsed
662 s,\\,\\\\,g; s,\$,$$,g
664 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
667 test "$program_prefix" != NONE &&
668 program_transform_name="s,^,${program_prefix},; $program_transform_name"
669 # Use a double $ so make ignores it.
670 test "$program_suffix" != NONE &&
671 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
673 # sed with no file args requires a program.
674 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
676 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
677 echo "configure:678: checking whether ${MAKE-make} sets \${MAKE}" >&5
678 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
679 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 cat > conftestmake <<\EOF
684 @echo 'ac_maketemp="${MAKE}"'
686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
687 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
688 if test -n "$ac_maketemp"; then
689 eval ac_cv_prog_make_${ac_make}_set=yes
691 eval ac_cv_prog_make_${ac_make}_set=no
695 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
696 echo "$ac_t""yes" 1>&6
699 echo "$ac_t""no" 1>&6
700 SET_MAKE="MAKE=${MAKE-make}"
708 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
709 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
711 cat >> confdefs.h <<EOF
712 #define PACKAGE "$PACKAGE"
715 cat >> confdefs.h <<EOF
716 #define VERSION "$VERSION"
721 missing_dir=`cd $ac_aux_dir && pwd`
722 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
723 echo "configure:724: checking for working aclocal" >&5
724 # Run test in a subshell; some versions of sh will print an error if
725 # an executable is not found, even if stderr is redirected.
726 # Redirect stdin to placate older versions of autoconf. Sigh.
727 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
729 echo "$ac_t""found" 1>&6
731 ACLOCAL="$missing_dir/missing aclocal"
732 echo "$ac_t""missing" 1>&6
735 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
736 echo "configure:737: checking for working autoconf" >&5
737 # Run test in a subshell; some versions of sh will print an error if
738 # an executable is not found, even if stderr is redirected.
739 # Redirect stdin to placate older versions of autoconf. Sigh.
740 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
742 echo "$ac_t""found" 1>&6
744 AUTOCONF="$missing_dir/missing autoconf"
745 echo "$ac_t""missing" 1>&6
748 echo $ac_n "checking for working automake""... $ac_c" 1>&6
749 echo "configure:750: checking for working automake" >&5
750 # Run test in a subshell; some versions of sh will print an error if
751 # an executable is not found, even if stderr is redirected.
752 # Redirect stdin to placate older versions of autoconf. Sigh.
753 if (automake --version) < /dev/null > /dev/null 2>&1; then
755 echo "$ac_t""found" 1>&6
757 AUTOMAKE="$missing_dir/missing automake"
758 echo "$ac_t""missing" 1>&6
761 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
762 echo "configure:763: checking for working autoheader" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
767 AUTOHEADER=autoheader
768 echo "$ac_t""found" 1>&6
770 AUTOHEADER="$missing_dir/missing autoheader"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
775 echo "configure:776: checking for working makeinfo" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
781 echo "$ac_t""found" 1>&6
783 MAKEINFO="$missing_dir/missing makeinfo"
784 echo "$ac_t""missing" 1>&6
789 if test -f ../NOINST_GOB ; then
792 echo "$ac_t""*** NOT Going to install GOB ***" 1>&6
793 SUBDIRS="src examples"
798 SUBDIRS="src examples doc"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
868 set dummy "$ac_dir/$ac_word" "$@"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
911 echo "$ac_t""no" 1>&6
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
942 ac_cv_prog_cc_cross=yes
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 cat > conftest.c <<EOF
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1019 if test "$GCC" = yes; then
1026 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1027 echo "configure:1028: checking how to run the C preprocessor" >&5
1028 # On Suns, sometimes $CPP names a directory.
1029 if test -n "$CPP" && test -d "$CPP"; then
1032 if test -z "$CPP"; then
1033 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 # This must be in double quotes, not single quotes, because CPP may get
1037 # substituted into the Makefile and "${CC-cc}" will confuse make.
1039 # On the NeXT, cc -E runs the code through the compiler's parser,
1040 # not just through cpp.
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1057 CPP="${CC-cc} -E -traditional-cpp"
1058 cat > conftest.$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1065 { (eval echo configure:1066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1067 if test -z "$ac_err"; then
1071 echo "configure: failed program was:" >&5
1072 cat conftest.$ac_ext >&5
1074 CPP="${CC-cc} -nologo -E"
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1082 { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1084 if test -z "$ac_err"; then
1088 echo "configure: failed program was:" >&5
1089 cat conftest.$ac_ext >&5
1098 ac_cv_prog_CPP="$CPP"
1100 CPP="$ac_cv_prog_CPP"
1102 ac_cv_prog_CPP="$CPP"
1104 echo "$ac_t""$CPP" 1>&6
1106 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1107 echo "configure:1108: checking for ANSI C header files" >&5
1108 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1111 cat > conftest.$ac_ext <<EOF
1112 #line 1113 "configure"
1113 #include "confdefs.h"
1119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1120 { (eval echo configure:1121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1122 if test -z "$ac_err"; then
1124 ac_cv_header_stdc=yes
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1130 ac_cv_header_stdc=no
1134 if test $ac_cv_header_stdc = yes; then
1135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1136 cat > conftest.$ac_ext <<EOF
1137 #line 1138 "configure"
1138 #include "confdefs.h"
1141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1142 egrep "memchr" >/dev/null 2>&1; then
1146 ac_cv_header_stdc=no
1152 if test $ac_cv_header_stdc = yes; then
1153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1160 egrep "free" >/dev/null 2>&1; then
1164 ac_cv_header_stdc=no
1170 if test $ac_cv_header_stdc = yes; then
1171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1172 if test "$cross_compiling" = yes; then
1175 cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1179 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1180 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1182 int main () { int i; for (i = 0; i < 256; i++)
1183 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1187 if { (eval echo configure:1188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1191 echo "configure: failed program was:" >&5
1192 cat conftest.$ac_ext >&5
1194 ac_cv_header_stdc=no
1202 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1203 if test $ac_cv_header_stdc = yes; then
1204 cat >> confdefs.h <<\EOF
1205 #define STDC_HEADERS 1
1210 for ac_prog in 'bison -y' byacc
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$YACC"; then
1220 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_YACC="$ac_prog"
1234 YACC="$ac_cv_prog_YACC"
1235 if test -n "$YACC"; then
1236 echo "$ac_t""$YACC" 1>&6
1238 echo "$ac_t""no" 1>&6
1241 test -n "$YACC" && break
1243 test -n "$YACC" || YACC="yacc"
1245 missing_dir=`cd $ac_aux_dir && pwd`
1246 for ac_prog in flex lex
1248 # Extract the first word of "$ac_prog", so it can be a program name with args.
1249 set dummy $ac_prog; ac_word=$2
1250 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1251 echo "configure:1252: checking for $ac_word" >&5
1252 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1253 echo $ac_n "(cached) $ac_c" 1>&6
1255 if test -n "$LEX"; then
1256 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1260 for ac_dir in $ac_dummy; do
1261 test -z "$ac_dir" && ac_dir=.
1262 if test -f $ac_dir/$ac_word; then
1263 ac_cv_prog_LEX="$ac_prog"
1270 LEX="$ac_cv_prog_LEX"
1271 if test -n "$LEX"; then
1272 echo "$ac_t""$LEX" 1>&6
1274 echo "$ac_t""no" 1>&6
1277 test -n "$LEX" && break
1279 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1281 # Extract the first word of "flex", so it can be a program name with args.
1282 set dummy flex; ac_word=$2
1283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1284 echo "configure:1285: checking for $ac_word" >&5
1285 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1288 if test -n "$LEX"; then
1289 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 for ac_dir in $ac_dummy; do
1294 test -z "$ac_dir" && ac_dir=.
1295 if test -f $ac_dir/$ac_word; then
1296 ac_cv_prog_LEX="flex"
1301 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1304 LEX="$ac_cv_prog_LEX"
1305 if test -n "$LEX"; then
1306 echo "$ac_t""$LEX" 1>&6
1308 echo "$ac_t""no" 1>&6
1311 if test -z "$LEXLIB"
1317 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1318 echo "configure:1319: checking for yywrap in -l$ac_lib" >&5
1319 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1321 echo $ac_n "(cached) $ac_c" 1>&6
1323 ac_save_LIBS="$LIBS"
1324 LIBS="-l$ac_lib $LIBS"
1325 cat > conftest.$ac_ext <<EOF
1326 #line 1327 "configure"
1327 #include "confdefs.h"
1328 /* Override any gcc2 internal prototype to avoid an error. */
1329 /* We use char because int might match the return type of a gcc2
1330 builtin and then its argument prototype would still apply. */
1337 if { (eval echo configure:1338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1339 eval "ac_cv_lib_$ac_lib_var=yes"
1341 echo "configure: failed program was:" >&5
1342 cat conftest.$ac_ext >&5
1344 eval "ac_cv_lib_$ac_lib_var=no"
1347 LIBS="$ac_save_LIBS"
1350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1351 echo "$ac_t""yes" 1>&6
1354 echo "$ac_t""no" 1>&6
1359 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1360 echo "configure:1361: checking lex output file root" >&5
1361 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1364 # The minimal lex program is just a single line: %%. But some broken lexes
1365 # (Solaris, I think it was) want two %% lines, so accommodate them.
1368 if test -f lex.yy.c; then
1369 ac_cv_prog_lex_root=lex.yy
1370 elif test -f lexyy.c; then
1371 ac_cv_prog_lex_root=lexyy
1373 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1377 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1378 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1380 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1381 echo "configure:1382: checking whether yytext is a pointer" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 # POSIX says lex can declare yytext either as a pointer or an array; the
1386 # default is implementation-dependent. Figure out which it is, since
1387 # not all implementations provide the %pointer and %array declarations.
1388 ac_cv_prog_lex_yytext_pointer=no
1389 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1390 ac_save_LIBS="$LIBS"
1391 LIBS="$LIBS $LEXLIB"
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 `cat $LEX_OUTPUT_ROOT.c`
1400 if { (eval echo configure:1401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1402 ac_cv_prog_lex_yytext_pointer=yes
1404 echo "configure: failed program was:" >&5
1405 cat conftest.$ac_ext >&5
1408 LIBS="$ac_save_LIBS"
1409 rm -f "${LEX_OUTPUT_ROOT}.c"
1413 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1414 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1415 cat >> confdefs.h <<\EOF
1416 #define YYTEXT_POINTER 1
1421 # Find a good install program. We prefer a C program (faster),
1422 # so one script is as good as another. But avoid the broken or
1423 # incompatible versions:
1424 # SysV /etc/install, /usr/sbin/install
1425 # SunOS /usr/etc/install
1426 # IRIX /sbin/install
1428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1431 # ./install, which can be erroneously created by make from ./install.sh.
1432 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1433 echo "configure:1434: checking for a BSD compatible install" >&5
1434 if test -z "$INSTALL"; then
1435 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1439 for ac_dir in $PATH; do
1440 # Account for people who put trailing slashes in PATH elements.
1442 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1444 # OSF1 and SCO ODT 3.0 have their own names for install.
1445 # Don't use installbsd from OSF since it installs stuff as root
1447 for ac_prog in ginstall scoinst install; do
1448 if test -f $ac_dir/$ac_prog; then
1449 if test $ac_prog = install &&
1450 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1451 # AIX install. It has an incompatible calling convention.
1454 ac_cv_path_install="$ac_dir/$ac_prog -c"
1465 if test "${ac_cv_path_install+set}" = set; then
1466 INSTALL="$ac_cv_path_install"
1468 # As a last resort, use the slow shell script. We don't cache a
1469 # path for INSTALL within a source directory, because that will
1470 # break other packages using the cache if that directory is
1471 # removed, or if the path is relative.
1472 INSTALL="$ac_install_sh"
1475 echo "$ac_t""$INSTALL" 1>&6
1477 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1478 # It thinks the first close brace ends the variable substitution.
1479 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1481 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1483 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1485 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1486 echo "configure:1487: checking how to run the C preprocessor" >&5
1487 # On Suns, sometimes $CPP names a directory.
1488 if test -n "$CPP" && test -d "$CPP"; then
1491 if test -z "$CPP"; then
1492 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 # This must be in double quotes, not single quotes, because CPP may get
1496 # substituted into the Makefile and "${CC-cc}" will confuse make.
1498 # On the NeXT, cc -E runs the code through the compiler's parser,
1499 # not just through cpp.
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1509 if test -z "$ac_err"; then
1513 echo "configure: failed program was:" >&5
1514 cat conftest.$ac_ext >&5
1516 CPP="${CC-cc} -E -traditional-cpp"
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1523 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1524 { (eval echo configure:1525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1525 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1526 if test -z "$ac_err"; then
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 CPP="${CC-cc} -nologo -E"
1534 cat > conftest.$ac_ext <<EOF
1535 #line 1536 "configure"
1536 #include "confdefs.h"
1540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1541 { (eval echo configure:1542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1543 if test -z "$ac_err"; then
1547 echo "configure: failed program was:" >&5
1548 cat conftest.$ac_ext >&5
1557 ac_cv_prog_CPP="$CPP"
1559 CPP="$ac_cv_prog_CPP"
1561 ac_cv_prog_CPP="$CPP"
1563 echo "$ac_t""$CPP" 1>&6
1565 # Extract the first word of "rm", so it can be a program name with args.
1566 set dummy rm; ac_word=$2
1567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568 echo "configure:1569: checking for $ac_word" >&5
1569 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1574 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1577 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1582 for ac_dir in $ac_dummy; do
1583 test -z "$ac_dir" && ac_dir=.
1584 if test -f $ac_dir/$ac_word; then
1585 ac_cv_path_RM="$ac_dir/$ac_word"
1590 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1595 if test -n "$RM"; then
1596 echo "$ac_t""$RM" 1>&6
1598 echo "$ac_t""no" 1>&6
1601 # Extract the first word of "mv", so it can be a program name with args.
1602 set dummy mv; ac_word=$2
1603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1604 echo "configure:1605: checking for $ac_word" >&5
1605 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1606 echo $ac_n "(cached) $ac_c" 1>&6
1610 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1613 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1616 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1618 for ac_dir in $ac_dummy; do
1619 test -z "$ac_dir" && ac_dir=.
1620 if test -f $ac_dir/$ac_word; then
1621 ac_cv_path_MV="$ac_dir/$ac_word"
1626 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1631 if test -n "$MV"; then
1632 echo "$ac_t""$MV" 1>&6
1634 echo "$ac_t""no" 1>&6
1637 # Extract the first word of "tar", so it can be a program name with args.
1638 set dummy tar; ac_word=$2
1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1640 echo "configure:1641: checking for $ac_word" >&5
1641 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1642 echo $ac_n "(cached) $ac_c" 1>&6
1646 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1649 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1652 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1654 for ac_dir in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_path_TAR="$ac_dir/$ac_word"
1662 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1666 TAR="$ac_cv_path_TAR"
1667 if test -n "$TAR"; then
1668 echo "$ac_t""$TAR" 1>&6
1670 echo "$ac_t""no" 1>&6
1673 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1674 if test "${with_glib_prefix+set}" = set; then
1675 withval="$with_glib_prefix"
1676 glib_config_prefix="$withval"
1678 glib_config_prefix=""
1681 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1682 if test "${with_glib_exec_prefix+set}" = set; then
1683 withval="$with_glib_exec_prefix"
1684 glib_config_exec_prefix="$withval"
1686 glib_config_exec_prefix=""
1689 # Check whether --enable-glibtest or --disable-glibtest was given.
1690 if test "${enable_glibtest+set}" = set; then
1691 enableval="$enable_glibtest"
1698 if test x$glib_config_exec_prefix != x ; then
1699 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1700 if test x${GLIB_CONFIG+set} != xset ; then
1701 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1704 if test x$glib_config_prefix != x ; then
1705 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1706 if test x${GLIB_CONFIG+set} != xset ; then
1707 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1715 glib_config_args="$glib_config_args gmodule"
1718 glib_config_args="$glib_config_args gthread"
1723 # Extract the first word of "glib-config", so it can be a program name with args.
1724 set dummy glib-config; ac_word=$2
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_word" >&5
1727 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 case "$GLIB_CONFIG" in
1732 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1735 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1740 for ac_dir in $ac_dummy; do
1741 test -z "$ac_dir" && ac_dir=.
1742 if test -f $ac_dir/$ac_word; then
1743 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1748 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1752 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1753 if test -n "$GLIB_CONFIG"; then
1754 echo "$ac_t""$GLIB_CONFIG" 1>&6
1756 echo "$ac_t""no" 1>&6
1759 min_glib_version=1.2.0
1760 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1761 echo "configure:1762: checking for GLIB - version >= $min_glib_version" >&5
1763 if test "$GLIB_CONFIG" = "no" ; then
1766 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1767 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1768 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1769 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1770 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1771 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1772 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1773 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1774 if test "x$enable_glibtest" = "xyes" ; then
1775 ac_save_CFLAGS="$CFLAGS"
1776 ac_save_LIBS="$LIBS"
1777 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1778 LIBS="$GLIB_LIBS $LIBS"
1780 if test "$cross_compiling" = yes; then
1781 echo $ac_n "cross compiling; assumed OK... $ac_c"
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1794 int major, minor, micro;
1797 system ("touch conf.glibtest");
1799 /* HP/UX 9 (%@#!) writes to sscanf strings */
1800 tmp_version = g_strdup("$min_glib_version");
1801 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1802 printf("%s, bad version string\n", "$min_glib_version");
1806 if ((glib_major_version != $glib_config_major_version) ||
1807 (glib_minor_version != $glib_config_minor_version) ||
1808 (glib_micro_version != $glib_config_micro_version))
1810 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1811 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1812 glib_major_version, glib_minor_version, glib_micro_version);
1813 printf ("*** was found! If glib-config was correct, then it is best\n");
1814 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1815 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1816 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1817 printf("*** required on your system.\n");
1818 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1819 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1820 printf("*** before re-running configure\n");
1822 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1823 (glib_minor_version != GLIB_MINOR_VERSION) ||
1824 (glib_micro_version != GLIB_MICRO_VERSION))
1826 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1827 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1828 printf("*** library (version %d.%d.%d)\n",
1829 glib_major_version, glib_minor_version, glib_micro_version);
1833 if ((glib_major_version > major) ||
1834 ((glib_major_version == major) && (glib_minor_version > minor)) ||
1835 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1841 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1842 glib_major_version, glib_minor_version, glib_micro_version);
1843 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1844 major, minor, micro);
1845 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1847 printf("*** If you have already installed a sufficiently new version, this error\n");
1848 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1849 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1850 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1851 printf("*** correct copy of glib-config. (In this case, you will have to\n");
1852 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1853 printf("*** so that the correct libraries are found at run-time))\n");
1860 if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1864 echo "configure: failed program was:" >&5
1865 cat conftest.$ac_ext >&5
1872 CFLAGS="$ac_save_CFLAGS"
1873 LIBS="$ac_save_LIBS"
1876 if test "x$no_glib" = x ; then
1877 echo "$ac_t""yes" 1>&6
1880 echo "$ac_t""no" 1>&6
1881 if test "$GLIB_CONFIG" = "no" ; then
1882 echo "*** The glib-config script installed by GLIB could not be found"
1883 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1884 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1885 echo "*** full path to glib-config."
1887 if test -f conf.glibtest ; then
1890 echo "*** Could not run GLIB test program, checking why..."
1891 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1892 LIBS="$LIBS $GLIB_LIBS"
1893 cat > conftest.$ac_ext <<EOF
1894 #line 1895 "configure"
1895 #include "confdefs.h"
1901 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
1904 if { (eval echo configure:1905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1906 echo "*** The test program compiled, but did not run. This usually means"
1907 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1908 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1909 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1910 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1911 echo "*** is required on your system"
1913 echo "*** If you have an old version installed, it is best to remove it, although"
1914 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1916 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1917 echo "*** came with the system with the command"
1919 echo "*** rpm --erase --nodeps gtk gtk-devel"
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1924 echo "*** The test program failed to compile or link. See the file config.log for the"
1925 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1926 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1927 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
1930 CFLAGS="$ac_save_CFLAGS"
1931 LIBS="$ac_save_LIBS"
1945 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1946 echo "configure:1947: checking whether to enable maintainer-specific portions of Makefiles" >&5
1947 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1948 if test "${enable_maintainer_mode+set}" = set; then
1949 enableval="$enable_maintainer_mode"
1950 USE_MAINTAINER_MODE=$enableval
1952 USE_MAINTAINER_MODE=no
1955 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1958 if test $USE_MAINTAINER_MODE = yes; then
1959 MAINTAINER_MODE_TRUE=
1960 MAINTAINER_MODE_FALSE='#'
1962 MAINTAINER_MODE_TRUE='#'
1963 MAINTAINER_MODE_FALSE=
1965 MAINT=$MAINTAINER_MODE_TRUE
1974 cat > confcache <<\EOF
1975 # This file is a shell script that caches the results of configure
1976 # tests run on this system so they can be shared between configure
1977 # scripts and configure runs. It is not useful on other systems.
1978 # If it contains results you don't want to keep, you may remove or edit it.
1980 # By default, configure uses ./config.cache as the cache file,
1981 # creating it if it does not exist already. You can give configure
1982 # the --cache-file=FILE option to use a different cache file; that is
1983 # what configure does when it calls configure scripts in
1984 # subdirectories, so they share the cache.
1985 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1986 # config.status only pays attention to the cache file if you give it the
1987 # --recheck option to rerun configure.
1990 # The following way of writing the cache mishandles newlines in values,
1991 # but we know of no workaround that is simple, portable, and efficient.
1992 # So, don't put newlines in cache variables' values.
1993 # Ultrix sh set writes to stderr and can't be redirected directly,
1994 # and sets the high bit in the cache file unless we assign to the vars.
1996 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1998 # `set' does not quote correctly, so add quotes (double-quote substitution
1999 # turns \\\\ into \\, and sed turns \\ into \).
2001 -e "s/'/'\\\\''/g" \
2002 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2005 # `set' quotes correctly as required by POSIX, so do not add quotes.
2006 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2009 if cmp -s $cache_file confcache; then
2012 if test -w $cache_file; then
2013 echo "updating cache $cache_file"
2014 cat confcache > $cache_file
2016 echo "not updating unwritable cache $cache_file"
2021 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2023 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2024 # Let make expand exec_prefix.
2025 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2027 # Any assignment to VPATH causes Sun make to only execute
2028 # the first set of double-colon rules, so remove it if not needed.
2029 # If there is a colon in the path, we need to keep it.
2030 if test "x$srcdir" = x.; then
2031 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2034 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2036 DEFS=-DHAVE_CONFIG_H
2038 # Without the "./", some shells look in PATH for config.status.
2039 : ${CONFIG_STATUS=./config.status}
2041 echo creating $CONFIG_STATUS
2042 rm -f $CONFIG_STATUS
2043 cat > $CONFIG_STATUS <<EOF
2045 # Generated automatically by configure.
2046 # Run this file to recreate the current configuration.
2047 # This directory was configured as follows,
2048 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2050 # $0 $ac_configure_args
2052 # Compiler output produced by configure, useful for debugging
2053 # configure, is in ./config.log if it exists.
2055 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2058 case "\$ac_option" in
2059 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2060 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2061 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2062 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2063 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2065 -help | --help | --hel | --he | --h)
2066 echo "\$ac_cs_usage"; exit 0 ;;
2067 *) echo "\$ac_cs_usage"; exit 1 ;;
2071 ac_given_srcdir=$srcdir
2072 ac_given_INSTALL="$INSTALL"
2074 trap 'rm -fr `echo "
2080 doc/gob.1 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2082 cat >> $CONFIG_STATUS <<EOF
2084 # Protect against being on the right side of a sed subst in config.status.
2085 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2086 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2090 s%@CFLAGS@%$CFLAGS%g
2091 s%@CPPFLAGS@%$CPPFLAGS%g
2092 s%@CXXFLAGS@%$CXXFLAGS%g
2093 s%@FFLAGS@%$FFLAGS%g
2095 s%@LDFLAGS@%$LDFLAGS%g
2097 s%@exec_prefix@%$exec_prefix%g
2098 s%@prefix@%$prefix%g
2099 s%@program_transform_name@%$program_transform_name%g
2100 s%@bindir@%$bindir%g
2101 s%@sbindir@%$sbindir%g
2102 s%@libexecdir@%$libexecdir%g
2103 s%@datadir@%$datadir%g
2104 s%@sysconfdir@%$sysconfdir%g
2105 s%@sharedstatedir@%$sharedstatedir%g
2106 s%@localstatedir@%$localstatedir%g
2107 s%@libdir@%$libdir%g
2108 s%@includedir@%$includedir%g
2109 s%@oldincludedir@%$oldincludedir%g
2110 s%@infodir@%$infodir%g
2111 s%@mandir@%$mandir%g
2112 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2113 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2114 s%@INSTALL_DATA@%$INSTALL_DATA%g
2115 s%@PACKAGE@%$PACKAGE%g
2116 s%@VERSION@%$VERSION%g
2117 s%@ACLOCAL@%$ACLOCAL%g
2118 s%@AUTOCONF@%$AUTOCONF%g
2119 s%@AUTOMAKE@%$AUTOMAKE%g
2120 s%@AUTOHEADER@%$AUTOHEADER%g
2121 s%@MAKEINFO@%$MAKEINFO%g
2122 s%@SET_MAKE@%$SET_MAKE%g
2123 s%@SUBDIRS@%$SUBDIRS%g
2124 s%@DOINSTGOB@%$DOINSTGOB%g
2125 s%@NOINSTGOB@%$NOINSTGOB%g
2130 s%@LEXLIB@%$LEXLIB%g
2131 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2135 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2136 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2137 s%@GLIB_LIBS@%$GLIB_LIBS%g
2138 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2139 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2145 cat >> $CONFIG_STATUS <<\EOF
2147 # Split the substitutions into bite-sized pieces for seds with
2148 # small command number limits, like on Digital OSF/1 and HP-UX.
2149 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2150 ac_file=1 # Number of current file.
2151 ac_beg=1 # First line for current file.
2152 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2155 while $ac_more_lines; do
2156 if test $ac_beg -gt 1; then
2157 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2159 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2161 if test ! -s conftest.s$ac_file; then
2163 rm -f conftest.s$ac_file
2165 if test -z "$ac_sed_cmds"; then
2166 ac_sed_cmds="sed -f conftest.s$ac_file"
2168 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2170 ac_file=`expr $ac_file + 1`
2172 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2175 if test -z "$ac_sed_cmds"; then
2180 cat >> $CONFIG_STATUS <<EOF
2182 CONFIG_FILES=\${CONFIG_FILES-"gob.spec
2189 cat >> $CONFIG_STATUS <<\EOF
2190 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2193 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2194 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2195 *) ac_file_in="${ac_file}.in" ;;
2198 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2200 # Remove last slash and all that follows it. Not all systems have dirname.
2201 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2202 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2203 # The file is in a subdirectory.
2204 test ! -d "$ac_dir" && mkdir "$ac_dir"
2205 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2206 # A "../" for each directory in $ac_dir_suffix.
2207 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2209 ac_dir_suffix= ac_dots=
2212 case "$ac_given_srcdir" in
2214 if test -z "$ac_dots"; then top_srcdir=.
2215 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2216 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2218 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2219 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2222 case "$ac_given_INSTALL" in
2223 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2224 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2227 echo creating "$ac_file"
2229 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2231 *Makefile*) ac_comsub="1i\\
2232 # $configure_input" ;;
2236 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2238 s%@configure_input@%$configure_input%g
2239 s%@srcdir@%$srcdir%g
2240 s%@top_srcdir@%$top_srcdir%g
2241 s%@INSTALL@%$INSTALL%g
2242 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2246 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2247 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2249 # ac_d sets the value in "#define NAME VALUE" lines.
2250 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2251 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2254 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2255 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2256 ac_uB='\([ ]\)%\1#\2define\3'
2259 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2260 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2261 ac_eB='$%\1#\2define\3'
2265 if test "${CONFIG_HEADERS+set}" != set; then
2267 cat >> $CONFIG_STATUS <<EOF
2268 CONFIG_HEADERS="config.h"
2270 cat >> $CONFIG_STATUS <<\EOF
2272 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2273 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2275 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2276 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2277 *) ac_file_in="${ac_file}.in" ;;
2280 echo creating $ac_file
2282 rm -f conftest.frag conftest.in conftest.out
2283 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2284 cat $ac_file_inputs > conftest.in
2288 # Transform confdefs.h into a sed script conftest.vals that substitutes
2289 # the proper values into config.h.in to produce config.h. And first:
2290 # Protect against being on the right side of a sed subst in config.status.
2291 # Protect against being in an unquoted here document in config.status.
2293 cat > conftest.hdr <<\EOF
2296 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2300 sed -n -f conftest.hdr confdefs.h > conftest.vals
2303 # This sed command replaces #undef with comments. This is necessary, for
2304 # example, in the case of _POSIX_SOURCE, which is predefined and required
2305 # on some systems where configure will not decide to define it.
2306 cat >> conftest.vals <<\EOF
2307 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2310 # Break up conftest.vals because some shells have a limit on
2311 # the size of here documents, and old seds have small limits too.
2316 ac_lines=`grep -c . conftest.vals`
2317 # grep -c gives empty output for an empty file on some AIX systems.
2318 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2319 # Write a limited-size here document to conftest.frag.
2320 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2321 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2323 sed -f conftest.frag conftest.in > conftest.out
2325 mv conftest.out conftest.in
2327 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2329 mv conftest.tail conftest.vals
2333 cat >> $CONFIG_STATUS <<\EOF
2334 rm -f conftest.frag conftest.h
2335 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2336 cat conftest.in >> conftest.h
2338 if cmp -s $ac_file conftest.h 2>/dev/null; then
2339 echo "$ac_file is unchanged"
2342 # Remove last slash and all that follows it. Not all systems have dirname.
2343 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2344 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2345 # The file is in a subdirectory.
2346 test ! -d "$ac_dir" && mkdir "$ac_dir"
2349 mv conftest.h $ac_file
2354 cat >> $CONFIG_STATUS <<EOF
2358 cat >> $CONFIG_STATUS <<\EOF
2359 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2363 chmod +x $CONFIG_STATUS
2364 rm -fr confdefs* $ac_clean_files
2365 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1