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/tree.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 # Extract the first word of "gcc", so it can be a program name with args.
790 set dummy gcc; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 if test -n "$CC"; then
797 ac_cv_prog_CC="$CC" # Let the user override the test.
799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 for ac_dir in $ac_dummy; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
812 if test -n "$CC"; then
813 echo "$ac_t""$CC" 1>&6
815 echo "$ac_t""no" 1>&6
818 if test -z "$CC"; then
819 # Extract the first word of "cc", so it can be a program name with args.
820 set dummy cc; ac_word=$2
821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
822 echo "configure:823: checking for $ac_word" >&5
823 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
824 echo $ac_n "(cached) $ac_c" 1>&6
826 if test -n "$CC"; then
827 ac_cv_prog_CC="$CC" # Let the user override the test.
829 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
832 for ac_dir in $ac_dummy; do
833 test -z "$ac_dir" && ac_dir=.
834 if test -f $ac_dir/$ac_word; then
835 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
844 if test $ac_prog_rejected = yes; then
845 # We found a bogon in the path, so make sure we never use it.
846 set dummy $ac_cv_prog_CC
848 if test $# -gt 0; then
849 # We chose a different compiler from the bogus one.
850 # However, it has the same basename, so the bogon will be chosen
851 # first if we set CC to just the basename; use the full file name.
853 set dummy "$ac_dir/$ac_word" "$@"
861 if test -n "$CC"; then
862 echo "$ac_t""$CC" 1>&6
864 echo "$ac_t""no" 1>&6
867 if test -z "$CC"; then
870 # Extract the first word of "cl", so it can be a program name with args.
871 set dummy cl; ac_word=$2
872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
873 echo "configure:874: checking for $ac_word" >&5
874 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
875 echo $ac_n "(cached) $ac_c" 1>&6
877 if test -n "$CC"; then
878 ac_cv_prog_CC="$CC" # Let the user override the test.
880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
882 for ac_dir in $ac_dummy; do
883 test -z "$ac_dir" && ac_dir=.
884 if test -f $ac_dir/$ac_word; then
893 if test -n "$CC"; then
894 echo "$ac_t""$CC" 1>&6
896 echo "$ac_t""no" 1>&6
901 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
904 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
905 echo "configure:906: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
909 ac_cpp='$CPP $CPPFLAGS'
910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
912 cross_compiling=$ac_cv_prog_cc_cross
914 cat > conftest.$ac_ext << EOF
916 #line 917 "configure"
917 #include "confdefs.h"
921 if { (eval echo configure:922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
922 ac_cv_prog_cc_works=yes
923 # If we can't run a trivial program, we are probably using a cross compiler.
924 if (./conftest; exit) 2>/dev/null; then
925 ac_cv_prog_cc_cross=no
927 ac_cv_prog_cc_cross=yes
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 ac_cv_prog_cc_works=no
936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
937 ac_cpp='$CPP $CPPFLAGS'
938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
943 if test $ac_cv_prog_cc_works = no; then
944 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
946 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
947 echo "configure:948: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
948 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
949 cross_compiling=$ac_cv_prog_cc_cross
951 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
952 echo "configure:953: checking whether we are using GNU C" >&5
953 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
956 cat > conftest.c <<EOF
961 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
968 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
970 if test $ac_cv_prog_gcc = yes; then
976 ac_test_CFLAGS="${CFLAGS+set}"
977 ac_save_CFLAGS="$CFLAGS"
979 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${CC-cc} accepts -g" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 echo 'void f(){}' > conftest.c
985 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
994 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
995 if test "$ac_test_CFLAGS" = set; then
996 CFLAGS="$ac_save_CFLAGS"
997 elif test $ac_cv_prog_cc_g = yes; then
998 if test "$GCC" = yes; then
1004 if test "$GCC" = yes; then
1011 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1012 echo "configure:1013: checking how to run the C preprocessor" >&5
1013 # On Suns, sometimes $CPP names a directory.
1014 if test -n "$CPP" && test -d "$CPP"; then
1017 if test -z "$CPP"; then
1018 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 # This must be in double quotes, not single quotes, because CPP may get
1022 # substituted into the Makefile and "${CC-cc}" will confuse make.
1024 # On the NeXT, cc -E runs the code through the compiler's parser,
1025 # not just through cpp.
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1039 echo "configure: failed program was:" >&5
1040 cat conftest.$ac_ext >&5
1042 CPP="${CC-cc} -E -traditional-cpp"
1043 cat > conftest.$ac_ext <<EOF
1044 #line 1045 "configure"
1045 #include "confdefs.h"
1049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1050 { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1052 if test -z "$ac_err"; then
1056 echo "configure: failed program was:" >&5
1057 cat conftest.$ac_ext >&5
1059 CPP="${CC-cc} -nologo -E"
1060 cat > conftest.$ac_ext <<EOF
1061 #line 1062 "configure"
1062 #include "confdefs.h"
1066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1067 { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1069 if test -z "$ac_err"; then
1073 echo "configure: failed program was:" >&5
1074 cat conftest.$ac_ext >&5
1083 ac_cv_prog_CPP="$CPP"
1085 CPP="$ac_cv_prog_CPP"
1087 ac_cv_prog_CPP="$CPP"
1089 echo "$ac_t""$CPP" 1>&6
1091 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1092 echo "configure:1093: checking for ANSI C header files" >&5
1093 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 cat > conftest.$ac_ext <<EOF
1097 #line 1098 "configure"
1098 #include "confdefs.h"
1104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1105 { (eval echo configure:1106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1107 if test -z "$ac_err"; then
1109 ac_cv_header_stdc=yes
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1115 ac_cv_header_stdc=no
1119 if test $ac_cv_header_stdc = yes; then
1120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1121 cat > conftest.$ac_ext <<EOF
1122 #line 1123 "configure"
1123 #include "confdefs.h"
1126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1127 egrep "memchr" >/dev/null 2>&1; then
1131 ac_cv_header_stdc=no
1137 if test $ac_cv_header_stdc = yes; then
1138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1145 egrep "free" >/dev/null 2>&1; then
1149 ac_cv_header_stdc=no
1155 if test $ac_cv_header_stdc = yes; then
1156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1157 if test "$cross_compiling" = yes; then
1160 cat > conftest.$ac_ext <<EOF
1161 #line 1162 "configure"
1162 #include "confdefs.h"
1164 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1165 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1167 int main () { int i; for (i = 0; i < 256; i++)
1168 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1172 if { (eval echo configure:1173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1176 echo "configure: failed program was:" >&5
1177 cat conftest.$ac_ext >&5
1179 ac_cv_header_stdc=no
1187 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1188 if test $ac_cv_header_stdc = yes; then
1189 cat >> confdefs.h <<\EOF
1190 #define STDC_HEADERS 1
1195 for ac_prog in 'bison -y' byacc
1197 # Extract the first word of "$ac_prog", so it can be a program name with args.
1198 set dummy $ac_prog; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$YACC"; then
1205 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1209 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 if test -f $ac_dir/$ac_word; then
1212 ac_cv_prog_YACC="$ac_prog"
1219 YACC="$ac_cv_prog_YACC"
1220 if test -n "$YACC"; then
1221 echo "$ac_t""$YACC" 1>&6
1223 echo "$ac_t""no" 1>&6
1226 test -n "$YACC" && break
1228 test -n "$YACC" || YACC="yacc"
1230 missing_dir=`cd $ac_aux_dir && pwd`
1231 for ac_prog in flex lex
1233 # Extract the first word of "$ac_prog", so it can be a program name with args.
1234 set dummy $ac_prog; ac_word=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 if test -n "$LEX"; then
1241 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1245 for ac_dir in $ac_dummy; do
1246 test -z "$ac_dir" && ac_dir=.
1247 if test -f $ac_dir/$ac_word; then
1248 ac_cv_prog_LEX="$ac_prog"
1255 LEX="$ac_cv_prog_LEX"
1256 if test -n "$LEX"; then
1257 echo "$ac_t""$LEX" 1>&6
1259 echo "$ac_t""no" 1>&6
1262 test -n "$LEX" && break
1264 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1266 # Extract the first word of "flex", so it can be a program name with args.
1267 set dummy flex; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 if test -n "$LEX"; then
1274 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1278 for ac_dir in $ac_dummy; do
1279 test -z "$ac_dir" && ac_dir=.
1280 if test -f $ac_dir/$ac_word; then
1281 ac_cv_prog_LEX="flex"
1286 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1289 LEX="$ac_cv_prog_LEX"
1290 if test -n "$LEX"; then
1291 echo "$ac_t""$LEX" 1>&6
1293 echo "$ac_t""no" 1>&6
1296 if test -z "$LEXLIB"
1302 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1303 echo "configure:1304: checking for yywrap in -l$ac_lib" >&5
1304 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1306 echo $ac_n "(cached) $ac_c" 1>&6
1308 ac_save_LIBS="$LIBS"
1309 LIBS="-l$ac_lib $LIBS"
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 /* Override any gcc2 internal prototype to avoid an error. */
1314 /* We use char because int might match the return type of a gcc2
1315 builtin and then its argument prototype would still apply. */
1322 if { (eval echo configure:1323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1324 eval "ac_cv_lib_$ac_lib_var=yes"
1326 echo "configure: failed program was:" >&5
1327 cat conftest.$ac_ext >&5
1329 eval "ac_cv_lib_$ac_lib_var=no"
1332 LIBS="$ac_save_LIBS"
1335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1336 echo "$ac_t""yes" 1>&6
1339 echo "$ac_t""no" 1>&6
1344 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1345 echo "configure:1346: checking lex output file root" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 # The minimal lex program is just a single line: %%. But some broken lexes
1350 # (Solaris, I think it was) want two %% lines, so accommodate them.
1353 if test -f lex.yy.c; then
1354 ac_cv_prog_lex_root=lex.yy
1355 elif test -f lexyy.c; then
1356 ac_cv_prog_lex_root=lexyy
1358 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1362 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1363 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1365 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1366 echo "configure:1367: checking whether yytext is a pointer" >&5
1367 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 # POSIX says lex can declare yytext either as a pointer or an array; the
1371 # default is implementation-dependent. Figure out which it is, since
1372 # not all implementations provide the %pointer and %array declarations.
1373 ac_cv_prog_lex_yytext_pointer=no
1374 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1375 ac_save_LIBS="$LIBS"
1376 LIBS="$LIBS $LEXLIB"
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 `cat $LEX_OUTPUT_ROOT.c`
1385 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1387 ac_cv_prog_lex_yytext_pointer=yes
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1393 LIBS="$ac_save_LIBS"
1394 rm -f "${LEX_OUTPUT_ROOT}.c"
1398 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1399 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1400 cat >> confdefs.h <<\EOF
1401 #define YYTEXT_POINTER 1
1406 # Find a good install program. We prefer a C program (faster),
1407 # so one script is as good as another. But avoid the broken or
1408 # incompatible versions:
1409 # SysV /etc/install, /usr/sbin/install
1410 # SunOS /usr/etc/install
1411 # IRIX /sbin/install
1413 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1414 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1415 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1416 # ./install, which can be erroneously created by make from ./install.sh.
1417 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1418 echo "configure:1419: checking for a BSD compatible install" >&5
1419 if test -z "$INSTALL"; then
1420 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1424 for ac_dir in $PATH; do
1425 # Account for people who put trailing slashes in PATH elements.
1427 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1429 # OSF1 and SCO ODT 3.0 have their own names for install.
1430 # Don't use installbsd from OSF since it installs stuff as root
1432 for ac_prog in ginstall scoinst install; do
1433 if test -f $ac_dir/$ac_prog; then
1434 if test $ac_prog = install &&
1435 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1436 # AIX install. It has an incompatible calling convention.
1439 ac_cv_path_install="$ac_dir/$ac_prog -c"
1450 if test "${ac_cv_path_install+set}" = set; then
1451 INSTALL="$ac_cv_path_install"
1453 # As a last resort, use the slow shell script. We don't cache a
1454 # path for INSTALL within a source directory, because that will
1455 # break other packages using the cache if that directory is
1456 # removed, or if the path is relative.
1457 INSTALL="$ac_install_sh"
1460 echo "$ac_t""$INSTALL" 1>&6
1462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1463 # It thinks the first close brace ends the variable substitution.
1464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1470 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1471 echo "configure:1472: checking how to run the C preprocessor" >&5
1472 # On Suns, sometimes $CPP names a directory.
1473 if test -n "$CPP" && test -d "$CPP"; then
1476 if test -z "$CPP"; then
1477 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1478 echo $ac_n "(cached) $ac_c" 1>&6
1480 # This must be in double quotes, not single quotes, because CPP may get
1481 # substituted into the Makefile and "${CC-cc}" will confuse make.
1483 # On the NeXT, cc -E runs the code through the compiler's parser,
1484 # not just through cpp.
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1494 if test -z "$ac_err"; then
1498 echo "configure: failed program was:" >&5
1499 cat conftest.$ac_ext >&5
1501 CPP="${CC-cc} -E -traditional-cpp"
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1511 if test -z "$ac_err"; then
1515 echo "configure: failed program was:" >&5
1516 cat conftest.$ac_ext >&5
1518 CPP="${CC-cc} -nologo -E"
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1526 { (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1528 if test -z "$ac_err"; then
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1542 ac_cv_prog_CPP="$CPP"
1544 CPP="$ac_cv_prog_CPP"
1546 ac_cv_prog_CPP="$CPP"
1548 echo "$ac_t""$CPP" 1>&6
1550 # Extract the first word of "rm", so it can be a program name with args.
1551 set dummy rm; ac_word=$2
1552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_word" >&5
1554 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1559 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1562 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1567 for ac_dir in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_path_RM="$ac_dir/$ac_word"
1575 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1580 if test -n "$RM"; then
1581 echo "$ac_t""$RM" 1>&6
1583 echo "$ac_t""no" 1>&6
1586 # Extract the first word of "mv", so it can be a program name with args.
1587 set dummy mv; ac_word=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1590 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1595 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1598 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1603 for ac_dir in $ac_dummy; do
1604 test -z "$ac_dir" && ac_dir=.
1605 if test -f $ac_dir/$ac_word; then
1606 ac_cv_path_MV="$ac_dir/$ac_word"
1611 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1616 if test -n "$MV"; then
1617 echo "$ac_t""$MV" 1>&6
1619 echo "$ac_t""no" 1>&6
1622 # Extract the first word of "tar", so it can be a program name with args.
1623 set dummy tar; ac_word=$2
1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1625 echo "configure:1626: checking for $ac_word" >&5
1626 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1631 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1634 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1639 for ac_dir in $ac_dummy; do
1640 test -z "$ac_dir" && ac_dir=.
1641 if test -f $ac_dir/$ac_word; then
1642 ac_cv_path_TAR="$ac_dir/$ac_word"
1647 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1651 TAR="$ac_cv_path_TAR"
1652 if test -n "$TAR"; then
1653 echo "$ac_t""$TAR" 1>&6
1655 echo "$ac_t""no" 1>&6
1658 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1659 if test "${with_glib_prefix+set}" = set; then
1660 withval="$with_glib_prefix"
1661 glib_config_prefix="$withval"
1663 glib_config_prefix=""
1666 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1667 if test "${with_glib_exec_prefix+set}" = set; then
1668 withval="$with_glib_exec_prefix"
1669 glib_config_exec_prefix="$withval"
1671 glib_config_exec_prefix=""
1674 # Check whether --enable-glibtest or --disable-glibtest was given.
1675 if test "${enable_glibtest+set}" = set; then
1676 enableval="$enable_glibtest"
1683 if test x$glib_config_exec_prefix != x ; then
1684 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1685 if test x${GLIB_CONFIG+set} != xset ; then
1686 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1689 if test x$glib_config_prefix != x ; then
1690 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1691 if test x${GLIB_CONFIG+set} != xset ; then
1692 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1700 glib_config_args="$glib_config_args gmodule"
1703 glib_config_args="$glib_config_args gthread"
1708 # Extract the first word of "glib-config", so it can be a program name with args.
1709 set dummy glib-config; ac_word=$2
1710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1711 echo "configure:1712: checking for $ac_word" >&5
1712 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 case "$GLIB_CONFIG" in
1717 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1720 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 for ac_dir in $ac_dummy; do
1726 test -z "$ac_dir" && ac_dir=.
1727 if test -f $ac_dir/$ac_word; then
1728 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1733 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1737 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1738 if test -n "$GLIB_CONFIG"; then
1739 echo "$ac_t""$GLIB_CONFIG" 1>&6
1741 echo "$ac_t""no" 1>&6
1744 min_glib_version=1.2.0
1745 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1746 echo "configure:1747: checking for GLIB - version >= $min_glib_version" >&5
1748 if test "$GLIB_CONFIG" = "no" ; then
1751 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1752 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1753 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1754 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1755 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1756 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1757 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1758 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1759 if test "x$enable_glibtest" = "xyes" ; then
1760 ac_save_CFLAGS="$CFLAGS"
1761 ac_save_LIBS="$LIBS"
1762 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1763 LIBS="$GLIB_LIBS $LIBS"
1765 if test "$cross_compiling" = yes; then
1766 echo $ac_n "cross compiling; assumed OK... $ac_c"
1768 cat > conftest.$ac_ext <<EOF
1769 #line 1770 "configure"
1770 #include "confdefs.h"
1779 int major, minor, micro;
1782 system ("touch conf.glibtest");
1784 /* HP/UX 9 (%@#!) writes to sscanf strings */
1785 tmp_version = g_strdup("$min_glib_version");
1786 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1787 printf("%s, bad version string\n", "$min_glib_version");
1791 if ((glib_major_version != $glib_config_major_version) ||
1792 (glib_minor_version != $glib_config_minor_version) ||
1793 (glib_micro_version != $glib_config_micro_version))
1795 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1796 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1797 glib_major_version, glib_minor_version, glib_micro_version);
1798 printf ("*** was found! If glib-config was correct, then it is best\n");
1799 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1800 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1801 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1802 printf("*** required on your system.\n");
1803 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1804 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1805 printf("*** before re-running configure\n");
1807 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1808 (glib_minor_version != GLIB_MINOR_VERSION) ||
1809 (glib_micro_version != GLIB_MICRO_VERSION))
1811 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1812 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1813 printf("*** library (version %d.%d.%d)\n",
1814 glib_major_version, glib_minor_version, glib_micro_version);
1818 if ((glib_major_version > major) ||
1819 ((glib_major_version == major) && (glib_minor_version > minor)) ||
1820 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1826 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1827 glib_major_version, glib_minor_version, glib_micro_version);
1828 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1829 major, minor, micro);
1830 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1832 printf("*** If you have already installed a sufficiently new version, this error\n");
1833 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1834 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1835 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1836 printf("*** correct copy of glib-config. (In this case, you will have to\n");
1837 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1838 printf("*** so that the correct libraries are found at run-time))\n");
1845 if { (eval echo configure:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1857 CFLAGS="$ac_save_CFLAGS"
1858 LIBS="$ac_save_LIBS"
1861 if test "x$no_glib" = x ; then
1862 echo "$ac_t""yes" 1>&6
1865 echo "$ac_t""no" 1>&6
1866 if test "$GLIB_CONFIG" = "no" ; then
1867 echo "*** The glib-config script installed by GLIB could not be found"
1868 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1869 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1870 echo "*** full path to glib-config."
1872 if test -f conf.glibtest ; then
1875 echo "*** Could not run GLIB test program, checking why..."
1876 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1877 LIBS="$LIBS $GLIB_LIBS"
1878 cat > conftest.$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1886 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1891 echo "*** The test program compiled, but did not run. This usually means"
1892 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1893 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1894 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1895 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1896 echo "*** is required on your system"
1898 echo "*** If you have an old version installed, it is best to remove it, although"
1899 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1901 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1902 echo "*** came with the system with the command"
1904 echo "*** rpm --erase --nodeps gtk gtk-devel"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1909 echo "*** The test program failed to compile or link. See the file config.log for the"
1910 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1911 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1912 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
1915 CFLAGS="$ac_save_CFLAGS"
1916 LIBS="$ac_save_LIBS"
1927 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
1928 echo "configure:1929: checking for poptGetContext in -lpopt" >&5
1929 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
1930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 ac_save_LIBS="$LIBS"
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 /* Override any gcc2 internal prototype to avoid an error. */
1939 /* We use char because int might match the return type of a gcc2
1940 builtin and then its argument prototype would still apply. */
1941 char poptGetContext();
1947 if { (eval echo configure:1948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1949 eval "ac_cv_lib_$ac_lib_var=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_lib_$ac_lib_var=no"
1957 LIBS="$ac_save_LIBS"
1960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1961 echo "$ac_t""yes" 1>&6
1962 POPT_LIB="-lreadline"
1964 echo "$ac_t""no" 1>&6
1965 { echo "configure: error: Popt library not found" 1>&2; exit 1; }
1972 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether to enable maintainer-specific portions of Makefiles" >&5
1974 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1975 if test "${enable_maintainer_mode+set}" = set; then
1976 enableval="$enable_maintainer_mode"
1977 USE_MAINTAINER_MODE=$enableval
1979 USE_MAINTAINER_MODE=no
1982 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1985 if test $USE_MAINTAINER_MODE = yes; then
1986 MAINTAINER_MODE_TRUE=
1987 MAINTAINER_MODE_FALSE='#'
1989 MAINTAINER_MODE_TRUE='#'
1990 MAINTAINER_MODE_FALSE=
1992 MAINT=$MAINTAINER_MODE_TRUE
2001 cat > confcache <<\EOF
2002 # This file is a shell script that caches the results of configure
2003 # tests run on this system so they can be shared between configure
2004 # scripts and configure runs. It is not useful on other systems.
2005 # If it contains results you don't want to keep, you may remove or edit it.
2007 # By default, configure uses ./config.cache as the cache file,
2008 # creating it if it does not exist already. You can give configure
2009 # the --cache-file=FILE option to use a different cache file; that is
2010 # what configure does when it calls configure scripts in
2011 # subdirectories, so they share the cache.
2012 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2013 # config.status only pays attention to the cache file if you give it the
2014 # --recheck option to rerun configure.
2017 # The following way of writing the cache mishandles newlines in values,
2018 # but we know of no workaround that is simple, portable, and efficient.
2019 # So, don't put newlines in cache variables' values.
2020 # Ultrix sh set writes to stderr and can't be redirected directly,
2021 # and sets the high bit in the cache file unless we assign to the vars.
2023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2025 # `set' does not quote correctly, so add quotes (double-quote substitution
2026 # turns \\\\ into \\, and sed turns \\ into \).
2028 -e "s/'/'\\\\''/g" \
2029 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2032 # `set' quotes correctly as required by POSIX, so do not add quotes.
2033 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2036 if cmp -s $cache_file confcache; then
2039 if test -w $cache_file; then
2040 echo "updating cache $cache_file"
2041 cat confcache > $cache_file
2043 echo "not updating unwritable cache $cache_file"
2048 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2051 # Let make expand exec_prefix.
2052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2054 # Any assignment to VPATH causes Sun make to only execute
2055 # the first set of double-colon rules, so remove it if not needed.
2056 # If there is a colon in the path, we need to keep it.
2057 if test "x$srcdir" = x.; then
2058 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2061 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2063 DEFS=-DHAVE_CONFIG_H
2065 # Without the "./", some shells look in PATH for config.status.
2066 : ${CONFIG_STATUS=./config.status}
2068 echo creating $CONFIG_STATUS
2069 rm -f $CONFIG_STATUS
2070 cat > $CONFIG_STATUS <<EOF
2072 # Generated automatically by configure.
2073 # Run this file to recreate the current configuration.
2074 # This directory was configured as follows,
2075 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2077 # $0 $ac_configure_args
2079 # Compiler output produced by configure, useful for debugging
2080 # configure, is in ./config.log if it exists.
2082 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2085 case "\$ac_option" in
2086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2087 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2088 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2089 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2090 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2092 -help | --help | --hel | --he | --h)
2093 echo "\$ac_cs_usage"; exit 0 ;;
2094 *) echo "\$ac_cs_usage"; exit 1 ;;
2098 ac_given_srcdir=$srcdir
2099 ac_given_INSTALL="$INSTALL"
2101 trap 'rm -fr `echo "
2106 doc/gob.1 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2108 cat >> $CONFIG_STATUS <<EOF
2110 # Protect against being on the right side of a sed subst in config.status.
2111 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2112 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2116 s%@CFLAGS@%$CFLAGS%g
2117 s%@CPPFLAGS@%$CPPFLAGS%g
2118 s%@CXXFLAGS@%$CXXFLAGS%g
2119 s%@FFLAGS@%$FFLAGS%g
2121 s%@LDFLAGS@%$LDFLAGS%g
2123 s%@exec_prefix@%$exec_prefix%g
2124 s%@prefix@%$prefix%g
2125 s%@program_transform_name@%$program_transform_name%g
2126 s%@bindir@%$bindir%g
2127 s%@sbindir@%$sbindir%g
2128 s%@libexecdir@%$libexecdir%g
2129 s%@datadir@%$datadir%g
2130 s%@sysconfdir@%$sysconfdir%g
2131 s%@sharedstatedir@%$sharedstatedir%g
2132 s%@localstatedir@%$localstatedir%g
2133 s%@libdir@%$libdir%g
2134 s%@includedir@%$includedir%g
2135 s%@oldincludedir@%$oldincludedir%g
2136 s%@infodir@%$infodir%g
2137 s%@mandir@%$mandir%g
2138 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2139 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2140 s%@INSTALL_DATA@%$INSTALL_DATA%g
2141 s%@PACKAGE@%$PACKAGE%g
2142 s%@VERSION@%$VERSION%g
2143 s%@ACLOCAL@%$ACLOCAL%g
2144 s%@AUTOCONF@%$AUTOCONF%g
2145 s%@AUTOMAKE@%$AUTOMAKE%g
2146 s%@AUTOHEADER@%$AUTOHEADER%g
2147 s%@MAKEINFO@%$MAKEINFO%g
2148 s%@SET_MAKE@%$SET_MAKE%g
2153 s%@LEXLIB@%$LEXLIB%g
2154 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2158 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2159 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2160 s%@GLIB_LIBS@%$GLIB_LIBS%g
2161 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2162 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2168 cat >> $CONFIG_STATUS <<\EOF
2170 # Split the substitutions into bite-sized pieces for seds with
2171 # small command number limits, like on Digital OSF/1 and HP-UX.
2172 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2173 ac_file=1 # Number of current file.
2174 ac_beg=1 # First line for current file.
2175 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2178 while $ac_more_lines; do
2179 if test $ac_beg -gt 1; then
2180 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2182 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2184 if test ! -s conftest.s$ac_file; then
2186 rm -f conftest.s$ac_file
2188 if test -z "$ac_sed_cmds"; then
2189 ac_sed_cmds="sed -f conftest.s$ac_file"
2191 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2193 ac_file=`expr $ac_file + 1`
2195 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2198 if test -z "$ac_sed_cmds"; then
2203 cat >> $CONFIG_STATUS <<EOF
2205 CONFIG_FILES=\${CONFIG_FILES-"gob.spec
2211 cat >> $CONFIG_STATUS <<\EOF
2212 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2213 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2215 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2216 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2217 *) ac_file_in="${ac_file}.in" ;;
2220 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2222 # Remove last slash and all that follows it. Not all systems have dirname.
2223 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2224 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2225 # The file is in a subdirectory.
2226 test ! -d "$ac_dir" && mkdir "$ac_dir"
2227 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2228 # A "../" for each directory in $ac_dir_suffix.
2229 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2231 ac_dir_suffix= ac_dots=
2234 case "$ac_given_srcdir" in
2236 if test -z "$ac_dots"; then top_srcdir=.
2237 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2238 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2240 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2241 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2244 case "$ac_given_INSTALL" in
2245 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2246 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2249 echo creating "$ac_file"
2251 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2253 *Makefile*) ac_comsub="1i\\
2254 # $configure_input" ;;
2258 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2260 s%@configure_input@%$configure_input%g
2261 s%@srcdir@%$srcdir%g
2262 s%@top_srcdir@%$top_srcdir%g
2263 s%@INSTALL@%$INSTALL%g
2264 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2268 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2269 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2271 # ac_d sets the value in "#define NAME VALUE" lines.
2272 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2273 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2276 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2277 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2278 ac_uB='\([ ]\)%\1#\2define\3'
2281 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2282 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2283 ac_eB='$%\1#\2define\3'
2287 if test "${CONFIG_HEADERS+set}" != set; then
2289 cat >> $CONFIG_STATUS <<EOF
2290 CONFIG_HEADERS="config.h"
2292 cat >> $CONFIG_STATUS <<\EOF
2294 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2297 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2298 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2299 *) ac_file_in="${ac_file}.in" ;;
2302 echo creating $ac_file
2304 rm -f conftest.frag conftest.in conftest.out
2305 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2306 cat $ac_file_inputs > conftest.in
2310 # Transform confdefs.h into a sed script conftest.vals that substitutes
2311 # the proper values into config.h.in to produce config.h. And first:
2312 # Protect against being on the right side of a sed subst in config.status.
2313 # Protect against being in an unquoted here document in config.status.
2315 cat > conftest.hdr <<\EOF
2318 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2322 sed -n -f conftest.hdr confdefs.h > conftest.vals
2325 # This sed command replaces #undef with comments. This is necessary, for
2326 # example, in the case of _POSIX_SOURCE, which is predefined and required
2327 # on some systems where configure will not decide to define it.
2328 cat >> conftest.vals <<\EOF
2329 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2332 # Break up conftest.vals because some shells have a limit on
2333 # the size of here documents, and old seds have small limits too.
2338 ac_lines=`grep -c . conftest.vals`
2339 # grep -c gives empty output for an empty file on some AIX systems.
2340 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2341 # Write a limited-size here document to conftest.frag.
2342 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2343 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2345 sed -f conftest.frag conftest.in > conftest.out
2347 mv conftest.out conftest.in
2349 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2351 mv conftest.tail conftest.vals
2355 cat >> $CONFIG_STATUS <<\EOF
2356 rm -f conftest.frag conftest.h
2357 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2358 cat conftest.in >> conftest.h
2360 if cmp -s $ac_file conftest.h 2>/dev/null; then
2361 echo "$ac_file is unchanged"
2364 # Remove last slash and all that follows it. Not all systems have dirname.
2365 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2366 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2367 # The file is in a subdirectory.
2368 test ! -d "$ac_dir" && mkdir "$ac_dir"
2371 mv conftest.h $ac_file
2376 cat >> $CONFIG_STATUS <<EOF
2380 cat >> $CONFIG_STATUS <<\EOF
2381 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2385 chmod +x $CONFIG_STATUS
2386 rm -fr confdefs* $ac_clean_files
2387 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1