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}"
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
710 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
730 echo "$ac_t""found" 1>&6
732 ACLOCAL="$missing_dir/missing aclocal"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
743 echo "$ac_t""found" 1>&6
745 AUTOCONF="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working automake""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake --version) < /dev/null > /dev/null 2>&1; then
756 echo "$ac_t""found" 1>&6
758 AUTOMAKE="$missing_dir/missing automake"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768 AUTOHEADER=autoheader
769 echo "$ac_t""found" 1>&6
771 AUTOHEADER="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
782 echo "$ac_t""found" 1>&6
784 MAKEINFO="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
790 # Extract the first word of "gcc", so it can be a program name with args.
791 set dummy gcc; ac_word=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 if test -n "$CC"; then
798 ac_cv_prog_CC="$CC" # Let the user override the test.
800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
802 for ac_dir in $ac_dummy; do
803 test -z "$ac_dir" && ac_dir=.
804 if test -f $ac_dir/$ac_word; then
813 if test -n "$CC"; then
814 echo "$ac_t""$CC" 1>&6
816 echo "$ac_t""no" 1>&6
819 if test -z "$CC"; then
820 # Extract the first word of "cc", so it can be a program name with args.
821 set dummy cc; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC="$CC" # Let the user override the test.
830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 for ac_dir in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir=.
835 if test -f $ac_dir/$ac_word; then
836 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
845 if test $ac_prog_rejected = yes; then
846 # We found a bogon in the path, so make sure we never use it.
847 set dummy $ac_cv_prog_CC
849 if test $# -gt 0; then
850 # We chose a different compiler from the bogus one.
851 # However, it has the same basename, so the bogon will be chosen
852 # first if we set CC to just the basename; use the full file name.
854 set dummy "$ac_dir/$ac_word" "$@"
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
871 # Extract the first word of "cl", so it can be a program name with args.
872 set dummy cl; ac_word=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 if test -n "$CC"; then
879 ac_cv_prog_CC="$CC" # Let the user override the test.
881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
883 for ac_dir in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir=.
885 if test -f $ac_dir/$ac_word; then
894 if test -n "$CC"; then
895 echo "$ac_t""$CC" 1>&6
897 echo "$ac_t""no" 1>&6
902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
906 echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
915 cat > conftest.$ac_ext << EOF
917 #line 918 "configure"
918 #include "confdefs.h"
922 if { (eval echo configure:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
923 ac_cv_prog_cc_works=yes
924 # If we can't run a trivial program, we are probably using a cross compiler.
925 if (./conftest; exit) 2>/dev/null; then
926 ac_cv_prog_cc_cross=no
928 ac_cv_prog_cc_cross=yes
931 echo "configure: failed program was:" >&5
932 cat conftest.$ac_ext >&5
933 ac_cv_prog_cc_works=no
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
943 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
944 if test $ac_cv_prog_cc_works = no; then
945 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
949 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
950 cross_compiling=$ac_cv_prog_cc_cross
952 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
953 echo "configure:954: checking whether we are using GNU C" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.c <<EOF
962 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
969 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
971 if test $ac_cv_prog_gcc = yes; then
977 ac_test_CFLAGS="${CFLAGS+set}"
978 ac_save_CFLAGS="$CFLAGS"
980 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${CC-cc} accepts -g" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 echo 'void f(){}' > conftest.c
986 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
995 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
996 if test "$ac_test_CFLAGS" = set; then
997 CFLAGS="$ac_save_CFLAGS"
998 elif test $ac_cv_prog_cc_g = yes; then
999 if test "$GCC" = yes; then
1005 if test "$GCC" = yes; then
1012 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1013 echo "configure:1014: checking how to run the C preprocessor" >&5
1014 # On Suns, sometimes $CPP names a directory.
1015 if test -n "$CPP" && test -d "$CPP"; then
1018 if test -z "$CPP"; then
1019 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 # This must be in double quotes, not single quotes, because CPP may get
1023 # substituted into the Makefile and "${CC-cc}" will confuse make.
1025 # On the NeXT, cc -E runs the code through the compiler's parser,
1026 # not just through cpp.
1027 cat > conftest.$ac_ext <<EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1034 { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1036 if test -z "$ac_err"; then
1040 echo "configure: failed program was:" >&5
1041 cat conftest.$ac_ext >&5
1043 CPP="${CC-cc} -E -traditional-cpp"
1044 cat > conftest.$ac_ext <<EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1051 { (eval echo configure:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1053 if test -z "$ac_err"; then
1057 echo "configure: failed program was:" >&5
1058 cat conftest.$ac_ext >&5
1060 CPP="${CC-cc} -nologo -E"
1061 cat > conftest.$ac_ext <<EOF
1062 #line 1063 "configure"
1063 #include "confdefs.h"
1067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1068 { (eval echo configure:1069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1070 if test -z "$ac_err"; then
1074 echo "configure: failed program was:" >&5
1075 cat conftest.$ac_ext >&5
1084 ac_cv_prog_CPP="$CPP"
1086 CPP="$ac_cv_prog_CPP"
1088 ac_cv_prog_CPP="$CPP"
1090 echo "$ac_t""$CPP" 1>&6
1092 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1093 echo "configure:1094: checking for ANSI C header files" >&5
1094 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 cat > conftest.$ac_ext <<EOF
1098 #line 1099 "configure"
1099 #include "confdefs.h"
1105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1106 { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1108 if test -z "$ac_err"; then
1110 ac_cv_header_stdc=yes
1113 echo "configure: failed program was:" >&5
1114 cat conftest.$ac_ext >&5
1116 ac_cv_header_stdc=no
1120 if test $ac_cv_header_stdc = yes; then
1121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1128 egrep "memchr" >/dev/null 2>&1; then
1132 ac_cv_header_stdc=no
1138 if test $ac_cv_header_stdc = yes; then
1139 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1140 cat > conftest.$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1146 egrep "free" >/dev/null 2>&1; then
1150 ac_cv_header_stdc=no
1156 if test $ac_cv_header_stdc = yes; then
1157 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1158 if test "$cross_compiling" = yes; then
1161 cat > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1165 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1166 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1167 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1168 int main () { int i; for (i = 0; i < 256; i++)
1169 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1173 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1180 ac_cv_header_stdc=no
1188 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1189 if test $ac_cv_header_stdc = yes; then
1190 cat >> confdefs.h <<\EOF
1191 #define STDC_HEADERS 1
1196 for ac_prog in 'bison -y' byacc
1198 # Extract the first word of "$ac_prog", so it can be a program name with args.
1199 set dummy $ac_prog; ac_word=$2
1200 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1201 echo "configure:1202: checking for $ac_word" >&5
1202 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test -n "$YACC"; then
1206 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1210 for ac_dir in $ac_dummy; do
1211 test -z "$ac_dir" && ac_dir=.
1212 if test -f $ac_dir/$ac_word; then
1213 ac_cv_prog_YACC="$ac_prog"
1220 YACC="$ac_cv_prog_YACC"
1221 if test -n "$YACC"; then
1222 echo "$ac_t""$YACC" 1>&6
1224 echo "$ac_t""no" 1>&6
1227 test -n "$YACC" && break
1229 test -n "$YACC" || YACC="yacc"
1231 missing_dir=`cd $ac_aux_dir && pwd`
1232 for ac_prog in flex lex
1234 # Extract the first word of "$ac_prog", so it can be a program name with args.
1235 set dummy $ac_prog; ac_word=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test -n "$LEX"; then
1242 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1246 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 if test -f $ac_dir/$ac_word; then
1249 ac_cv_prog_LEX="$ac_prog"
1256 LEX="$ac_cv_prog_LEX"
1257 if test -n "$LEX"; then
1258 echo "$ac_t""$LEX" 1>&6
1260 echo "$ac_t""no" 1>&6
1263 test -n "$LEX" && break
1265 test -n "$LEX" || LEX=""$missing_dir/missing flex""
1267 # Extract the first word of "flex", so it can be a program name with args.
1268 set dummy flex; ac_word=$2
1269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1270 echo "configure:1271: checking for $ac_word" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 if test -n "$LEX"; then
1275 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1277 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279 for ac_dir in $ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_prog_LEX="flex"
1287 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1290 LEX="$ac_cv_prog_LEX"
1291 if test -n "$LEX"; then
1292 echo "$ac_t""$LEX" 1>&6
1294 echo "$ac_t""no" 1>&6
1297 if test -z "$LEXLIB"
1303 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1304 echo "configure:1305: checking for yywrap in -l$ac_lib" >&5
1305 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 ac_save_LIBS="$LIBS"
1310 LIBS="-l$ac_lib $LIBS"
1311 cat > conftest.$ac_ext <<EOF
1312 #line 1313 "configure"
1313 #include "confdefs.h"
1314 /* Override any gcc2 internal prototype to avoid an error. */
1315 /* We use char because int might match the return type of a gcc2
1316 builtin and then its argument prototype would still apply. */
1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1325 eval "ac_cv_lib_$ac_lib_var=yes"
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1330 eval "ac_cv_lib_$ac_lib_var=no"
1333 LIBS="$ac_save_LIBS"
1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1340 echo "$ac_t""no" 1>&6
1345 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1346 echo "configure:1347: checking lex output file root" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 # The minimal lex program is just a single line: %%. But some broken lexes
1351 # (Solaris, I think it was) want two %% lines, so accommodate them.
1354 if test -f lex.yy.c; then
1355 ac_cv_prog_lex_root=lex.yy
1356 elif test -f lexyy.c; then
1357 ac_cv_prog_lex_root=lexyy
1359 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1363 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1364 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
1366 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether yytext is a pointer" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 # POSIX says lex can declare yytext either as a pointer or an array; the
1372 # default is implementation-dependent. Figure out which it is, since
1373 # not all implementations provide the %pointer and %array declarations.
1374 ac_cv_prog_lex_yytext_pointer=no
1375 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1376 ac_save_LIBS="$LIBS"
1377 LIBS="$LIBS $LEXLIB"
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 `cat $LEX_OUTPUT_ROOT.c`
1386 if { (eval echo configure:1387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1388 ac_cv_prog_lex_yytext_pointer=yes
1390 echo "configure: failed program was:" >&5
1391 cat conftest.$ac_ext >&5
1394 LIBS="$ac_save_LIBS"
1395 rm -f "${LEX_OUTPUT_ROOT}.c"
1399 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1400 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1401 cat >> confdefs.h <<\EOF
1402 #define YYTEXT_POINTER 1
1407 # Find a good install program. We prefer a C program (faster),
1408 # so one script is as good as another. But avoid the broken or
1409 # incompatible versions:
1410 # SysV /etc/install, /usr/sbin/install
1411 # SunOS /usr/etc/install
1412 # IRIX /sbin/install
1414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1417 # ./install, which can be erroneously created by make from ./install.sh.
1418 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1419 echo "configure:1420: checking for a BSD compatible install" >&5
1420 if test -z "$INSTALL"; then
1421 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1425 for ac_dir in $PATH; do
1426 # Account for people who put trailing slashes in PATH elements.
1428 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1430 # OSF1 and SCO ODT 3.0 have their own names for install.
1431 # Don't use installbsd from OSF since it installs stuff as root
1433 for ac_prog in ginstall scoinst install; do
1434 if test -f $ac_dir/$ac_prog; then
1435 if test $ac_prog = install &&
1436 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1437 # AIX install. It has an incompatible calling convention.
1440 ac_cv_path_install="$ac_dir/$ac_prog -c"
1451 if test "${ac_cv_path_install+set}" = set; then
1452 INSTALL="$ac_cv_path_install"
1454 # As a last resort, use the slow shell script. We don't cache a
1455 # path for INSTALL within a source directory, because that will
1456 # break other packages using the cache if that directory is
1457 # removed, or if the path is relative.
1458 INSTALL="$ac_install_sh"
1461 echo "$ac_t""$INSTALL" 1>&6
1463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1464 # It thinks the first close brace ends the variable substitution.
1465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1471 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1472 echo "configure:1473: checking how to run the C preprocessor" >&5
1473 # On Suns, sometimes $CPP names a directory.
1474 if test -n "$CPP" && test -d "$CPP"; then
1477 if test -z "$CPP"; then
1478 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 # This must be in double quotes, not single quotes, because CPP may get
1482 # substituted into the Makefile and "${CC-cc}" will confuse make.
1484 # On the NeXT, cc -E runs the code through the compiler's parser,
1485 # not just through cpp.
1486 cat > conftest.$ac_ext <<EOF
1487 #line 1488 "configure"
1488 #include "confdefs.h"
1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1495 if test -z "$ac_err"; then
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1502 CPP="${CC-cc} -E -traditional-cpp"
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1512 if test -z "$ac_err"; then
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1519 CPP="${CC-cc} -nologo -E"
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1527 { (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1529 if test -z "$ac_err"; then
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1543 ac_cv_prog_CPP="$CPP"
1545 CPP="$ac_cv_prog_CPP"
1547 ac_cv_prog_CPP="$CPP"
1549 echo "$ac_t""$CPP" 1>&6
1551 # Extract the first word of "rm", so it can be a program name with args.
1552 set dummy rm; ac_word=$2
1553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1554 echo "configure:1555: checking for $ac_word" >&5
1555 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1556 echo $ac_n "(cached) $ac_c" 1>&6
1560 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1563 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1568 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 if test -f $ac_dir/$ac_word; then
1571 ac_cv_path_RM="$ac_dir/$ac_word"
1576 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1581 if test -n "$RM"; then
1582 echo "$ac_t""$RM" 1>&6
1584 echo "$ac_t""no" 1>&6
1587 # Extract the first word of "mv", so it can be a program name with args.
1588 set dummy mv; ac_word=$2
1589 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1590 echo "configure:1591: checking for $ac_word" >&5
1591 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1592 echo $ac_n "(cached) $ac_c" 1>&6
1596 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1599 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1604 for ac_dir in $ac_dummy; do
1605 test -z "$ac_dir" && ac_dir=.
1606 if test -f $ac_dir/$ac_word; then
1607 ac_cv_path_MV="$ac_dir/$ac_word"
1612 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1617 if test -n "$MV"; then
1618 echo "$ac_t""$MV" 1>&6
1620 echo "$ac_t""no" 1>&6
1623 # Extract the first word of "tar", so it can be a program name with args.
1624 set dummy tar; ac_word=$2
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1626 echo "configure:1627: checking for $ac_word" >&5
1627 if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1632 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1635 ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1640 for ac_dir in $ac_dummy; do
1641 test -z "$ac_dir" && ac_dir=.
1642 if test -f $ac_dir/$ac_word; then
1643 ac_cv_path_TAR="$ac_dir/$ac_word"
1648 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1652 TAR="$ac_cv_path_TAR"
1653 if test -n "$TAR"; then
1654 echo "$ac_t""$TAR" 1>&6
1656 echo "$ac_t""no" 1>&6
1659 # Check whether --with-glib-prefix or --without-glib-prefix was given.
1660 if test "${with_glib_prefix+set}" = set; then
1661 withval="$with_glib_prefix"
1662 glib_config_prefix="$withval"
1664 glib_config_prefix=""
1667 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
1668 if test "${with_glib_exec_prefix+set}" = set; then
1669 withval="$with_glib_exec_prefix"
1670 glib_config_exec_prefix="$withval"
1672 glib_config_exec_prefix=""
1675 # Check whether --enable-glibtest or --disable-glibtest was given.
1676 if test "${enable_glibtest+set}" = set; then
1677 enableval="$enable_glibtest"
1684 if test x$glib_config_exec_prefix != x ; then
1685 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
1686 if test x${GLIB_CONFIG+set} != xset ; then
1687 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
1690 if test x$glib_config_prefix != x ; then
1691 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
1692 if test x${GLIB_CONFIG+set} != xset ; then
1693 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
1701 glib_config_args="$glib_config_args gmodule"
1704 glib_config_args="$glib_config_args gthread"
1709 # Extract the first word of "glib-config", so it can be a program name with args.
1710 set dummy glib-config; ac_word=$2
1711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1712 echo "configure:1713: checking for $ac_word" >&5
1713 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 case "$GLIB_CONFIG" in
1718 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
1721 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
1724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1726 for ac_dir in $ac_dummy; do
1727 test -z "$ac_dir" && ac_dir=.
1728 if test -f $ac_dir/$ac_word; then
1729 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
1734 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
1738 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
1739 if test -n "$GLIB_CONFIG"; then
1740 echo "$ac_t""$GLIB_CONFIG" 1>&6
1742 echo "$ac_t""no" 1>&6
1745 min_glib_version=1.2.0
1746 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
1747 echo "configure:1748: checking for GLIB - version >= $min_glib_version" >&5
1749 if test "$GLIB_CONFIG" = "no" ; then
1752 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
1753 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
1754 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
1755 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1756 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
1757 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1758 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
1759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1760 if test "x$enable_glibtest" = "xyes" ; then
1761 ac_save_CFLAGS="$CFLAGS"
1762 ac_save_LIBS="$LIBS"
1763 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1764 LIBS="$GLIB_LIBS $LIBS"
1766 if test "$cross_compiling" = yes; then
1767 echo $ac_n "cross compiling; assumed OK... $ac_c"
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1780 int major, minor, micro;
1783 system ("touch conf.glibtest");
1785 /* HP/UX 9 (%@#!) writes to sscanf strings */
1786 tmp_version = g_strdup("$min_glib_version");
1787 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1788 printf("%s, bad version string\n", "$min_glib_version");
1792 if ((glib_major_version != $glib_config_major_version) ||
1793 (glib_minor_version != $glib_config_minor_version) ||
1794 (glib_micro_version != $glib_config_micro_version))
1796 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
1797 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
1798 glib_major_version, glib_minor_version, glib_micro_version);
1799 printf ("*** was found! If glib-config was correct, then it is best\n");
1800 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
1801 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
1802 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
1803 printf("*** required on your system.\n");
1804 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
1805 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
1806 printf("*** before re-running configure\n");
1808 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
1809 (glib_minor_version != GLIB_MINOR_VERSION) ||
1810 (glib_micro_version != GLIB_MICRO_VERSION))
1812 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
1813 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
1814 printf("*** library (version %d.%d.%d)\n",
1815 glib_major_version, glib_minor_version, glib_micro_version);
1819 if ((glib_major_version > major) ||
1820 ((glib_major_version == major) && (glib_minor_version > minor)) ||
1821 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
1827 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
1828 glib_major_version, glib_minor_version, glib_micro_version);
1829 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
1830 major, minor, micro);
1831 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
1833 printf("*** If you have already installed a sufficiently new version, this error\n");
1834 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
1835 printf("*** being found. The easiest way to fix this is to remove the old version\n");
1836 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
1837 printf("*** correct copy of glib-config. (In this case, you will have to\n");
1838 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
1839 printf("*** so that the correct libraries are found at run-time))\n");
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1850 echo "configure: failed program was:" >&5
1851 cat conftest.$ac_ext >&5
1858 CFLAGS="$ac_save_CFLAGS"
1859 LIBS="$ac_save_LIBS"
1862 if test "x$no_glib" = x ; then
1863 echo "$ac_t""yes" 1>&6
1866 echo "$ac_t""no" 1>&6
1867 if test "$GLIB_CONFIG" = "no" ; then
1868 echo "*** The glib-config script installed by GLIB could not be found"
1869 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
1870 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
1871 echo "*** full path to glib-config."
1873 if test -f conf.glibtest ; then
1876 echo "*** Could not run GLIB test program, checking why..."
1877 CFLAGS="$CFLAGS $GLIB_CFLAGS"
1878 LIBS="$LIBS $GLIB_LIBS"
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1887 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1892 echo "*** The test program compiled, but did not run. This usually means"
1893 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
1894 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
1895 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1896 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1897 echo "*** is required on your system"
1899 echo "*** If you have an old version installed, it is best to remove it, although"
1900 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1902 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
1903 echo "*** came with the system with the command"
1905 echo "*** rpm --erase --nodeps gtk gtk-devel"
1907 echo "configure: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1910 echo "*** The test program failed to compile or link. See the file config.log for the"
1911 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
1912 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
1913 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
1916 CFLAGS="$ac_save_CFLAGS"
1917 LIBS="$ac_save_LIBS"
1928 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
1929 echo "configure:1930: checking for poptGetContext in -lpopt" >&5
1930 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
1931 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 ac_save_LIBS="$LIBS"
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 /* Override any gcc2 internal prototype to avoid an error. */
1940 /* We use char because int might match the return type of a gcc2
1941 builtin and then its argument prototype would still apply. */
1942 char poptGetContext();
1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1950 eval "ac_cv_lib_$ac_lib_var=yes"
1952 echo "configure: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1955 eval "ac_cv_lib_$ac_lib_var=no"
1958 LIBS="$ac_save_LIBS"
1961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1962 echo "$ac_t""yes" 1>&6
1963 POPT_LIB="-lreadline"
1965 echo "$ac_t""no" 1>&6
1966 { echo "configure: error: Popt library not found" 1>&2; exit 1; }
1973 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether to enable maintainer-specific portions of Makefiles" >&5
1975 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1976 if test "${enable_maintainer_mode+set}" = set; then
1977 enableval="$enable_maintainer_mode"
1978 USE_MAINTAINER_MODE=$enableval
1980 USE_MAINTAINER_MODE=no
1983 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1986 if test $USE_MAINTAINER_MODE = yes; then
1987 MAINTAINER_MODE_TRUE=
1988 MAINTAINER_MODE_FALSE='#'
1990 MAINTAINER_MODE_TRUE='#'
1991 MAINTAINER_MODE_FALSE=
1993 MAINT=$MAINTAINER_MODE_TRUE
2002 cat > confcache <<\EOF
2003 # This file is a shell script that caches the results of configure
2004 # tests run on this system so they can be shared between configure
2005 # scripts and configure runs. It is not useful on other systems.
2006 # If it contains results you don't want to keep, you may remove or edit it.
2008 # By default, configure uses ./config.cache as the cache file,
2009 # creating it if it does not exist already. You can give configure
2010 # the --cache-file=FILE option to use a different cache file; that is
2011 # what configure does when it calls configure scripts in
2012 # subdirectories, so they share the cache.
2013 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2014 # config.status only pays attention to the cache file if you give it the
2015 # --recheck option to rerun configure.
2018 # The following way of writing the cache mishandles newlines in values,
2019 # but we know of no workaround that is simple, portable, and efficient.
2020 # So, don't put newlines in cache variables' values.
2021 # Ultrix sh set writes to stderr and can't be redirected directly,
2022 # and sets the high bit in the cache file unless we assign to the vars.
2024 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2026 # `set' does not quote correctly, so add quotes (double-quote substitution
2027 # turns \\\\ into \\, and sed turns \\ into \).
2029 -e "s/'/'\\\\''/g" \
2030 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2033 # `set' quotes correctly as required by POSIX, so do not add quotes.
2034 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2037 if cmp -s $cache_file confcache; then
2040 if test -w $cache_file; then
2041 echo "updating cache $cache_file"
2042 cat confcache > $cache_file
2044 echo "not updating unwritable cache $cache_file"
2049 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2051 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2052 # Let make expand exec_prefix.
2053 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2055 # Any assignment to VPATH causes Sun make to only execute
2056 # the first set of double-colon rules, so remove it if not needed.
2057 # If there is a colon in the path, we need to keep it.
2058 if test "x$srcdir" = x.; then
2059 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2062 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2064 DEFS=-DHAVE_CONFIG_H
2066 # Without the "./", some shells look in PATH for config.status.
2067 : ${CONFIG_STATUS=./config.status}
2069 echo creating $CONFIG_STATUS
2070 rm -f $CONFIG_STATUS
2071 cat > $CONFIG_STATUS <<EOF
2073 # Generated automatically by configure.
2074 # Run this file to recreate the current configuration.
2075 # This directory was configured as follows,
2076 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2078 # $0 $ac_configure_args
2080 # Compiler output produced by configure, useful for debugging
2081 # configure, is in ./config.log if it exists.
2083 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2086 case "\$ac_option" in
2087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2088 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2089 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2090 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2091 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2093 -help | --help | --hel | --he | --h)
2094 echo "\$ac_cs_usage"; exit 0 ;;
2095 *) echo "\$ac_cs_usage"; exit 1 ;;
2099 ac_given_srcdir=$srcdir
2100 ac_given_INSTALL="$INSTALL"
2102 trap 'rm -fr `echo "
2105 doc/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2107 cat >> $CONFIG_STATUS <<EOF
2109 # Protect against being on the right side of a sed subst in config.status.
2110 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2111 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2115 s%@CFLAGS@%$CFLAGS%g
2116 s%@CPPFLAGS@%$CPPFLAGS%g
2117 s%@CXXFLAGS@%$CXXFLAGS%g
2118 s%@FFLAGS@%$FFLAGS%g
2120 s%@LDFLAGS@%$LDFLAGS%g
2122 s%@exec_prefix@%$exec_prefix%g
2123 s%@prefix@%$prefix%g
2124 s%@program_transform_name@%$program_transform_name%g
2125 s%@bindir@%$bindir%g
2126 s%@sbindir@%$sbindir%g
2127 s%@libexecdir@%$libexecdir%g
2128 s%@datadir@%$datadir%g
2129 s%@sysconfdir@%$sysconfdir%g
2130 s%@sharedstatedir@%$sharedstatedir%g
2131 s%@localstatedir@%$localstatedir%g
2132 s%@libdir@%$libdir%g
2133 s%@includedir@%$includedir%g
2134 s%@oldincludedir@%$oldincludedir%g
2135 s%@infodir@%$infodir%g
2136 s%@mandir@%$mandir%g
2137 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2138 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2139 s%@INSTALL_DATA@%$INSTALL_DATA%g
2140 s%@PACKAGE@%$PACKAGE%g
2141 s%@VERSION@%$VERSION%g
2142 s%@ACLOCAL@%$ACLOCAL%g
2143 s%@AUTOCONF@%$AUTOCONF%g
2144 s%@AUTOMAKE@%$AUTOMAKE%g
2145 s%@AUTOHEADER@%$AUTOHEADER%g
2146 s%@MAKEINFO@%$MAKEINFO%g
2147 s%@SET_MAKE@%$SET_MAKE%g
2152 s%@LEXLIB@%$LEXLIB%g
2153 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
2157 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
2158 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
2159 s%@GLIB_LIBS@%$GLIB_LIBS%g
2160 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2161 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2167 cat >> $CONFIG_STATUS <<\EOF
2169 # Split the substitutions into bite-sized pieces for seds with
2170 # small command number limits, like on Digital OSF/1 and HP-UX.
2171 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2172 ac_file=1 # Number of current file.
2173 ac_beg=1 # First line for current file.
2174 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2177 while $ac_more_lines; do
2178 if test $ac_beg -gt 1; then
2179 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2181 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2183 if test ! -s conftest.s$ac_file; then
2185 rm -f conftest.s$ac_file
2187 if test -z "$ac_sed_cmds"; then
2188 ac_sed_cmds="sed -f conftest.s$ac_file"
2190 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2192 ac_file=`expr $ac_file + 1`
2194 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2197 if test -z "$ac_sed_cmds"; then
2202 cat >> $CONFIG_STATUS <<EOF
2204 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2208 cat >> $CONFIG_STATUS <<\EOF
2209 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2212 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2213 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2214 *) ac_file_in="${ac_file}.in" ;;
2217 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2219 # Remove last slash and all that follows it. Not all systems have dirname.
2220 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2221 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2222 # The file is in a subdirectory.
2223 test ! -d "$ac_dir" && mkdir "$ac_dir"
2224 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2225 # A "../" for each directory in $ac_dir_suffix.
2226 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2228 ac_dir_suffix= ac_dots=
2231 case "$ac_given_srcdir" in
2233 if test -z "$ac_dots"; then top_srcdir=.
2234 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2235 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2237 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2238 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2241 case "$ac_given_INSTALL" in
2242 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2243 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2246 echo creating "$ac_file"
2248 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2250 *Makefile*) ac_comsub="1i\\
2251 # $configure_input" ;;
2255 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2257 s%@configure_input@%$configure_input%g
2258 s%@srcdir@%$srcdir%g
2259 s%@top_srcdir@%$top_srcdir%g
2260 s%@INSTALL@%$INSTALL%g
2261 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2265 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2266 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2268 # ac_d sets the value in "#define NAME VALUE" lines.
2269 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2270 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2273 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2274 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2275 ac_uB='\([ ]\)%\1#\2define\3'
2278 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2279 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2280 ac_eB='$%\1#\2define\3'
2284 if test "${CONFIG_HEADERS+set}" != set; then
2286 cat >> $CONFIG_STATUS <<EOF
2287 CONFIG_HEADERS="config.h"
2289 cat >> $CONFIG_STATUS <<\EOF
2291 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2294 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2295 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2296 *) ac_file_in="${ac_file}.in" ;;
2299 echo creating $ac_file
2301 rm -f conftest.frag conftest.in conftest.out
2302 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2303 cat $ac_file_inputs > conftest.in
2307 # Transform confdefs.h into a sed script conftest.vals that substitutes
2308 # the proper values into config.h.in to produce config.h. And first:
2309 # Protect against being on the right side of a sed subst in config.status.
2310 # Protect against being in an unquoted here document in config.status.
2312 cat > conftest.hdr <<\EOF
2315 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2319 sed -n -f conftest.hdr confdefs.h > conftest.vals
2322 # This sed command replaces #undef with comments. This is necessary, for
2323 # example, in the case of _POSIX_SOURCE, which is predefined and required
2324 # on some systems where configure will not decide to define it.
2325 cat >> conftest.vals <<\EOF
2326 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2329 # Break up conftest.vals because some shells have a limit on
2330 # the size of here documents, and old seds have small limits too.
2335 ac_lines=`grep -c . conftest.vals`
2336 # grep -c gives empty output for an empty file on some AIX systems.
2337 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2338 # Write a limited-size here document to conftest.frag.
2339 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2340 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2342 sed -f conftest.frag conftest.in > conftest.out
2344 mv conftest.out conftest.in
2346 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2348 mv conftest.tail conftest.vals
2352 cat >> $CONFIG_STATUS <<\EOF
2353 rm -f conftest.frag conftest.h
2354 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2355 cat conftest.in >> conftest.h
2357 if cmp -s $ac_file conftest.h 2>/dev/null; then
2358 echo "$ac_file is unchanged"
2361 # Remove last slash and all that follows it. Not all systems have dirname.
2362 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2363 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2364 # The file is in a subdirectory.
2365 test ! -d "$ac_dir" && mkdir "$ac_dir"
2368 mv conftest.h $ac_file
2373 cat >> $CONFIG_STATUS <<EOF
2377 cat >> $CONFIG_STATUS <<\EOF
2378 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2382 chmod +x $CONFIG_STATUS
2383 rm -fr confdefs* $ac_clean_files
2384 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1