2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="src/treefuncs.h"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
231 -help | --help | --hel | --he | -h)
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers | -V)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 if test -n "$ac_init_help"; then
633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
635 --enable-maintainer-mode enable make rules and dependencies not useful
636 (and sometimes confusing) to the casual installer
638 Some influential environment variables:
639 CC C compiler command
640 CFLAGS C compiler flags
641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
642 nonstandard directory <lib dir>
643 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
644 headers in a nonstandard directory <include dir>
647 Use these variables to override the choices made by `configure' or to help
648 it to find libraries and programs with nonstandard names/locations.
653 if test "$ac_init_help" = "recursive"; then
654 # If there are subdirs, report their specific --help.
656 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
658 # A "../" for each directory in /$ac_subdir.
659 ac_dots=`echo $ac_subdir |
660 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
663 .) # No --srcdir option. We are building in place.
664 ac_sub_srcdir=$srcdir ;;
665 [\\/]* | ?:[\\/]* ) # Absolute path.
666 ac_sub_srcdir=$srcdir/$ac_subdir ;;
668 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
671 # Check for guested configure; otherwise get Cygnus style configure.
672 if test -f $ac_sub_srcdir/configure.gnu; then
674 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
675 elif test -f $ac_sub_srcdir/configure; then
677 $SHELL $ac_sub_srcdir/configure --help=recursive
678 elif test -f $ac_sub_srcdir/configure.ac ||
679 test -f $ac_sub_srcdir/configure.in; then
683 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
689 test -n "$ac_init_help" && exit 0
690 if $ac_init_version; then
693 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
694 Free Software Foundation, Inc.
695 This configure script is free software; the Free Software Foundation
696 gives unlimited permission to copy, distribute and modify it.
702 This file contains any messages produced by compilers while
703 running configure, to aid debugging if configure makes a mistake.
705 It was created by $as_me, which was
706 generated by GNU Autoconf 2.52. Invocation command line was
717 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
718 uname -m = `(uname -m) 2>/dev/null || echo unknown`
719 uname -r = `(uname -r) 2>/dev/null || echo unknown`
720 uname -s = `(uname -s) 2>/dev/null || echo unknown`
721 uname -v = `(uname -v) 2>/dev/null || echo unknown`
723 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
724 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
726 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
727 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
728 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
729 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
730 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
731 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
732 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
746 # Keep a trace of the command line.
747 # Strip out --no-create and --no-recursion so they do not pile up.
748 # Also quote any args containing shell meta-characters.
754 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
755 | --no-cr | --no-c) ;;
756 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
757 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
758 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
759 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
760 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
762 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
765 # Get rid of the leading space.
768 # When interrupted or exit'd, cleanup temporary files, and complete
769 # config.log. We remove comments because anyway the quotes in there
770 # would cause problems or look ugly.
772 # Save into config.log some information that might help in debugging.
774 echo "## ----------------- ##" >&5
775 echo "## Cache variables. ##" >&5
776 echo "## ----------------- ##" >&5
778 # The following way of writing the cache mishandles newlines in values,
781 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
784 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
789 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
793 sed "/^$/d" confdefs.h >conftest.log
794 if test -s conftest.log; then
796 echo "## ------------ ##" >&5
797 echo "## confdefs.h. ##" >&5
798 echo "## ------------ ##" >&5
803 test "$ac_signal" != 0 &&
804 echo "$as_me: caught signal $ac_signal" >&5
805 echo "$as_me: exit $exit_status" >&5
806 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
809 for ac_signal in 1 2 13 15; do
810 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
815 rm -rf conftest* confdefs.h
816 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
819 # Let the site file select an alternate cache file if it wants to.
820 # Prefer explicitly selected file to automatically selected ones.
821 if test -z "$CONFIG_SITE"; then
822 if test "x$prefix" != xNONE; then
823 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
825 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
828 for ac_site_file in $CONFIG_SITE; do
829 if test -r "$ac_site_file"; then
830 { echo "$as_me:830: loading site script $ac_site_file" >&5
831 echo "$as_me: loading site script $ac_site_file" >&6;}
832 cat "$ac_site_file" >&5
837 if test -r "$cache_file"; then
838 # Some versions of bash will fail to source /dev/null (special
839 # files actually), so we avoid doing that.
840 if test -f "$cache_file"; then
841 { echo "$as_me:841: loading cache $cache_file" >&5
842 echo "$as_me: loading cache $cache_file" >&6;}
844 [\\/]* | ?:[\\/]* ) . $cache_file;;
849 { echo "$as_me:849: creating cache $cache_file" >&5
850 echo "$as_me: creating cache $cache_file" >&6;}
854 # Check that the precious variables saved in the cache have kept the same
856 ac_cache_corrupted=false
857 for ac_var in `(set) 2>&1 |
858 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
860 eval ac_new_set=\$ac_env_${ac_var}_set
861 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
862 eval ac_new_val="\$ac_env_${ac_var}_value"
863 case $ac_old_set,$ac_new_set in
865 { echo "$as_me:865: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
867 ac_cache_corrupted=: ;;
869 { echo "$as_me:869: error: \`$ac_var' was not set in the previous run" >&5
870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
871 ac_cache_corrupted=: ;;
874 if test "x$ac_old_val" != "x$ac_new_val"; then
875 { echo "$as_me:875: error: \`$ac_var' has changed since the previous run:" >&5
876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
877 { echo "$as_me:877: former value: $ac_old_val" >&5
878 echo "$as_me: former value: $ac_old_val" >&2;}
879 { echo "$as_me:879: current value: $ac_new_val" >&5
880 echo "$as_me: current value: $ac_new_val" >&2;}
884 # Pass precious variables to config.status. It doesn't matter if
885 # we pass some twice (in addition to the command line arguments).
886 if test "$ac_new_set" = set; then
888 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
889 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
890 ac_configure_args="$ac_configure_args '$ac_arg'"
892 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
897 if $ac_cache_corrupted; then
898 { echo "$as_me:898: error: changes in the environment can compromise the build" >&5
899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
900 { { echo "$as_me:900: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
902 { (exit 1); exit 1; }; }
906 ac_cpp='$CPP $CPPFLAGS'
907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
911 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
912 *c*,-n*) ECHO_N= ECHO_C='
914 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
915 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
917 echo "#! $SHELL" >conftest.sh
918 echo "exit 0" >>conftest.sh
920 if { (echo "$as_me:920: PATH=\".;.\"; conftest.sh") >&5
921 (PATH=".;."; conftest.sh) 2>&5
923 echo "$as_me:923: \$? = $ac_status" >&5
924 (exit $ac_status); }; then
925 ac_path_separator=';'
929 PATH_SEPARATOR="$ac_path_separator"
932 ac_config_headers="$ac_config_headers config.h"
934 ac_config_commands="$ac_config_commands default-1"
936 am__api_version="1.4"
938 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
939 if test -f $ac_dir/install-sh; then
941 ac_install_sh="$ac_aux_dir/install-sh -c"
943 elif test -f $ac_dir/install.sh; then
945 ac_install_sh="$ac_aux_dir/install.sh -c"
947 elif test -f $ac_dir/shtool; then
949 ac_install_sh="$ac_aux_dir/shtool install -c"
953 if test -z "$ac_aux_dir"; then
954 { { echo "$as_me:954: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
955 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
956 { (exit 1); exit 1; }; }
958 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
959 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
960 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
962 # Find a good install program. We prefer a C program (faster),
963 # so one script is as good as another. But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
969 # AmigaOS /C/install, which installs bootblocks on floppy discs
970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
973 # ./install, which can be erroneously created by make from ./install.sh.
974 echo "$as_me:974: checking for a BSD compatible install" >&5
975 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
976 if test -z "$INSTALL"; then
977 if test "${ac_cv_path_install+set}" = set; then
978 echo $ECHO_N "(cached) $ECHO_C" >&6
980 ac_save_IFS=$IFS; IFS=$ac_path_separator
981 for ac_dir in $PATH; do
983 # Account for people who put trailing slashes in PATH elements.
985 / | ./ | .// | /cC/* \
986 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
989 # OSF1 and SCO ODT 3.0 have their own names for install.
990 # Don't use installbsd from OSF since it installs stuff as root
992 for ac_prog in ginstall scoinst install; do
993 if $as_executable_p "$ac_dir/$ac_prog"; then
994 if test $ac_prog = install &&
995 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
996 # AIX install. It has an incompatible calling convention.
998 elif test $ac_prog = install &&
999 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1000 # program-specific install script used by HP pwplus--don't use.
1003 ac_cv_path_install="$ac_dir/$ac_prog -c"
1013 if test "${ac_cv_path_install+set}" = set; then
1014 INSTALL=$ac_cv_path_install
1016 # As a last resort, use the slow shell script. We don't cache a
1017 # path for INSTALL within a source directory, because that will
1018 # break other packages using the cache if that directory is
1019 # removed, or if the path is relative.
1020 INSTALL=$ac_install_sh
1023 echo "$as_me:1023: result: $INSTALL" >&5
1024 echo "${ECHO_T}$INSTALL" >&6
1026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1027 # It thinks the first close brace ends the variable substitution.
1028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1034 echo "$as_me:1034: checking whether build environment is sane" >&5
1035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1038 echo timestamp > conftestfile
1039 # Do `set' in a subshell so we don't clobber the current shell's
1040 # arguments. Must try -L first in case configure is actually a
1041 # symlink; some systems play weird games with the mod time of symlinks
1042 # (eg FreeBSD returns the mod time of the symlink's containing
1045 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1046 if test "$*" = "X"; then
1048 set X `ls -t $srcdir/configure conftestfile`
1050 if test "$*" != "X $srcdir/configure conftestfile" \
1051 && test "$*" != "X conftestfile $srcdir/configure"; then
1053 # If neither matched, then we have a broken ls. This can happen
1054 # if, for instance, CONFIG_SHELL is bash and it inherits a
1055 # broken ls alias from the environment. This has actually
1056 # happened. Such a system could not be considered "sane".
1057 { { echo "$as_me:1057: error: ls -t appears to fail. Make sure there is not a broken
1058 alias in your environment" >&5
1059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1060 alias in your environment" >&2;}
1061 { (exit 1); exit 1; }; }
1064 test "$2" = conftestfile
1070 { { echo "$as_me:1070: error: newly created file is older than distributed files!
1071 Check your system clock" >&5
1072 echo "$as_me: error: newly created file is older than distributed files!
1073 Check your system clock" >&2;}
1074 { (exit 1); exit 1; }; }
1077 echo "$as_me:1077: result: yes" >&5
1078 echo "${ECHO_T}yes" >&6
1079 test "$program_prefix" != NONE &&
1080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1081 # Use a double $ so make ignores it.
1082 test "$program_suffix" != NONE &&
1083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1084 # Double any \ or $. echo might interpret backslashes.
1085 # By default was `s,x,x', remove it if useless.
1086 cat <<\_ACEOF >conftest.sed
1087 s/[\\$]/&&/g;s/;s,x,x,$//
1089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1092 echo "$as_me:1092: checking whether ${MAKE-make} sets \${MAKE}" >&5
1093 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1095 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1096 echo $ECHO_N "(cached) $ECHO_C" >&6
1098 cat >conftest.make <<\EOF
1100 @echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_${ac_make}_set=yes
1107 eval ac_cv_prog_make_${ac_make}_set=no
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$as_me:1112: result: yes" >&5
1113 echo "${ECHO_T}yes" >&6
1116 echo "$as_me:1116: result: no" >&5
1117 echo "${ECHO_T}no" >&6
1118 SET_MAKE="MAKE=${MAKE-make}"
1125 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1126 { { echo "$as_me:1126: error: source directory already configured; run \"make distclean\" there first" >&5
1127 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1128 { (exit 1); exit 1; }; }
1131 cat >>confdefs.h <<EOF
1132 #define PACKAGE "$PACKAGE"
1135 cat >>confdefs.h <<EOF
1136 #define VERSION "$VERSION"
1139 missing_dir=`cd $ac_aux_dir && pwd`
1140 echo "$as_me:1140: checking for working aclocal-${am__api_version}" >&5
1141 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1142 # Run test in a subshell; some versions of sh will print an error if
1143 # an executable is not found, even if stderr is redirected.
1144 # Redirect stdin to placate older versions of autoconf. Sigh.
1145 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1146 ACLOCAL=aclocal-${am__api_version}
1147 echo "$as_me:1147: result: found" >&5
1148 echo "${ECHO_T}found" >&6
1150 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1151 echo "$as_me:1151: result: missing" >&5
1152 echo "${ECHO_T}missing" >&6
1155 echo "$as_me:1155: checking for working autoconf" >&5
1156 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1157 # Run test in a subshell; some versions of sh will print an error if
1158 # an executable is not found, even if stderr is redirected.
1159 # Redirect stdin to placate older versions of autoconf. Sigh.
1160 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1162 echo "$as_me:1162: result: found" >&5
1163 echo "${ECHO_T}found" >&6
1165 AUTOCONF="$missing_dir/missing autoconf"
1166 echo "$as_me:1166: result: missing" >&5
1167 echo "${ECHO_T}missing" >&6
1170 echo "$as_me:1170: checking for working automake-${am__api_version}" >&5
1171 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1172 # Run test in a subshell; some versions of sh will print an error if
1173 # an executable is not found, even if stderr is redirected.
1174 # Redirect stdin to placate older versions of autoconf. Sigh.
1175 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1176 AUTOMAKE=automake-${am__api_version}
1177 echo "$as_me:1177: result: found" >&5
1178 echo "${ECHO_T}found" >&6
1180 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1181 echo "$as_me:1181: result: missing" >&5
1182 echo "${ECHO_T}missing" >&6
1185 echo "$as_me:1185: checking for working autoheader" >&5
1186 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1187 # Run test in a subshell; some versions of sh will print an error if
1188 # an executable is not found, even if stderr is redirected.
1189 # Redirect stdin to placate older versions of autoconf. Sigh.
1190 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1191 AUTOHEADER=autoheader
1192 echo "$as_me:1192: result: found" >&5
1193 echo "${ECHO_T}found" >&6
1195 AUTOHEADER="$missing_dir/missing autoheader"
1196 echo "$as_me:1196: result: missing" >&5
1197 echo "${ECHO_T}missing" >&6
1200 echo "$as_me:1200: checking for working makeinfo" >&5
1201 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1202 # Run test in a subshell; some versions of sh will print an error if
1203 # an executable is not found, even if stderr is redirected.
1204 # Redirect stdin to placate older versions of autoconf. Sigh.
1205 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1207 echo "$as_me:1207: result: found" >&5
1208 echo "${ECHO_T}found" >&6
1210 MAKEINFO="$missing_dir/missing makeinfo"
1211 echo "$as_me:1211: result: missing" >&5
1212 echo "${ECHO_T}missing" >&6
1215 echo "$as_me:1215: checking whether to enable maintainer-specific portions of Makefiles" >&5
1216 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1217 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1218 if test "${enable_maintainer_mode+set}" = set; then
1219 enableval="$enable_maintainer_mode"
1220 USE_MAINTAINER_MODE=$enableval
1222 USE_MAINTAINER_MODE=no
1224 echo "$as_me:1224: result: $USE_MAINTAINER_MODE" >&5
1225 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1227 if test $USE_MAINTAINER_MODE = yes; then
1228 MAINTAINER_MODE_TRUE=
1229 MAINTAINER_MODE_FALSE='#'
1231 MAINTAINER_MODE_TRUE='#'
1232 MAINTAINER_MODE_FALSE=
1234 MAINT=$MAINTAINER_MODE_TRUE
1236 GLIB_REQUIRED=1.3.12
1238 if test -f ../NOINST_GOB ; then
1241 echo "$as_me:1241: result: *** NOT Going to install GOB ***" >&5
1242 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1243 SUBDIRS="src examples"
1248 SUBDIRS="src examples doc"
1253 ac_cpp='$CPP $CPPFLAGS'
1254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1257 if test -n "$ac_tool_prefix"; then
1258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1260 echo "$as_me:1260: checking for $ac_word" >&5
1261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1262 if test "${ac_cv_prog_CC+set}" = set; then
1263 echo $ECHO_N "(cached) $ECHO_C" >&6
1265 if test -n "$CC"; then
1266 ac_cv_prog_CC="$CC" # Let the user override the test.
1268 ac_save_IFS=$IFS; IFS=$ac_path_separator
1270 for ac_dir in $ac_dummy; do
1272 test -z "$ac_dir" && ac_dir=.
1273 $as_executable_p "$ac_dir/$ac_word" || continue
1274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1275 echo "$as_me:1275: found $ac_dir/$ac_word" >&5
1282 if test -n "$CC"; then
1283 echo "$as_me:1283: result: $CC" >&5
1284 echo "${ECHO_T}$CC" >&6
1286 echo "$as_me:1286: result: no" >&5
1287 echo "${ECHO_T}no" >&6
1291 if test -z "$ac_cv_prog_CC"; then
1293 # Extract the first word of "gcc", so it can be a program name with args.
1294 set dummy gcc; ac_word=$2
1295 echo "$as_me:1295: checking for $ac_word" >&5
1296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1298 echo $ECHO_N "(cached) $ECHO_C" >&6
1300 if test -n "$ac_ct_CC"; then
1301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1303 ac_save_IFS=$IFS; IFS=$ac_path_separator
1305 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 $as_executable_p "$ac_dir/$ac_word" || continue
1309 ac_cv_prog_ac_ct_CC="gcc"
1310 echo "$as_me:1310: found $ac_dir/$ac_word" >&5
1316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1317 if test -n "$ac_ct_CC"; then
1318 echo "$as_me:1318: result: $ac_ct_CC" >&5
1319 echo "${ECHO_T}$ac_ct_CC" >&6
1321 echo "$as_me:1321: result: no" >&5
1322 echo "${ECHO_T}no" >&6
1330 if test -z "$CC"; then
1331 if test -n "$ac_tool_prefix"; then
1332 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1333 set dummy ${ac_tool_prefix}cc; ac_word=$2
1334 echo "$as_me:1334: checking for $ac_word" >&5
1335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1336 if test "${ac_cv_prog_CC+set}" = set; then
1337 echo $ECHO_N "(cached) $ECHO_C" >&6
1339 if test -n "$CC"; then
1340 ac_cv_prog_CC="$CC" # Let the user override the test.
1342 ac_save_IFS=$IFS; IFS=$ac_path_separator
1344 for ac_dir in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir=.
1347 $as_executable_p "$ac_dir/$ac_word" || continue
1348 ac_cv_prog_CC="${ac_tool_prefix}cc"
1349 echo "$as_me:1349: found $ac_dir/$ac_word" >&5
1356 if test -n "$CC"; then
1357 echo "$as_me:1357: result: $CC" >&5
1358 echo "${ECHO_T}$CC" >&6
1360 echo "$as_me:1360: result: no" >&5
1361 echo "${ECHO_T}no" >&6
1365 if test -z "$ac_cv_prog_CC"; then
1367 # Extract the first word of "cc", so it can be a program name with args.
1368 set dummy cc; ac_word=$2
1369 echo "$as_me:1369: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1374 if test -n "$ac_ct_CC"; then
1375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1377 ac_save_IFS=$IFS; IFS=$ac_path_separator
1379 for ac_dir in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir=.
1382 $as_executable_p "$ac_dir/$ac_word" || continue
1383 ac_cv_prog_ac_ct_CC="cc"
1384 echo "$as_me:1384: found $ac_dir/$ac_word" >&5
1390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1391 if test -n "$ac_ct_CC"; then
1392 echo "$as_me:1392: result: $ac_ct_CC" >&5
1393 echo "${ECHO_T}$ac_ct_CC" >&6
1395 echo "$as_me:1395: result: no" >&5
1396 echo "${ECHO_T}no" >&6
1405 if test -z "$CC"; then
1406 # Extract the first word of "cc", so it can be a program name with args.
1407 set dummy cc; ac_word=$2
1408 echo "$as_me:1408: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_prog_CC+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1413 if test -n "$CC"; then
1414 ac_cv_prog_CC="$CC" # Let the user override the test.
1417 ac_save_IFS=$IFS; IFS=$ac_path_separator
1419 for ac_dir in $ac_dummy; do
1421 test -z "$ac_dir" && ac_dir=.
1422 $as_executable_p "$ac_dir/$ac_word" || continue
1423 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1424 ac_prog_rejected=yes
1428 echo "$as_me:1428: found $ac_dir/$ac_word" >&5
1432 if test $ac_prog_rejected = yes; then
1433 # We found a bogon in the path, so make sure we never use it.
1434 set dummy $ac_cv_prog_CC
1436 if test $# != 0; then
1437 # We chose a different compiler from the bogus one.
1438 # However, it has the same basename, so the bogon will be chosen
1439 # first if we set CC to just the basename; use the full file name.
1441 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1449 if test -n "$CC"; then
1450 echo "$as_me:1450: result: $CC" >&5
1451 echo "${ECHO_T}$CC" >&6
1453 echo "$as_me:1453: result: no" >&5
1454 echo "${ECHO_T}no" >&6
1458 if test -z "$CC"; then
1459 if test -n "$ac_tool_prefix"; then
1462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1464 echo "$as_me:1464: checking for $ac_word" >&5
1465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1466 if test "${ac_cv_prog_CC+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 if test -n "$CC"; then
1470 ac_cv_prog_CC="$CC" # Let the user override the test.
1472 ac_save_IFS=$IFS; IFS=$ac_path_separator
1474 for ac_dir in $ac_dummy; do
1476 test -z "$ac_dir" && ac_dir=.
1477 $as_executable_p "$ac_dir/$ac_word" || continue
1478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1479 echo "$as_me:1479: found $ac_dir/$ac_word" >&5
1486 if test -n "$CC"; then
1487 echo "$as_me:1487: result: $CC" >&5
1488 echo "${ECHO_T}$CC" >&6
1490 echo "$as_me:1490: result: no" >&5
1491 echo "${ECHO_T}no" >&6
1494 test -n "$CC" && break
1497 if test -z "$CC"; then
1501 # Extract the first word of "$ac_prog", so it can be a program name with args.
1502 set dummy $ac_prog; ac_word=$2
1503 echo "$as_me:1503: checking for $ac_word" >&5
1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1505 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 if test -n "$ac_ct_CC"; then
1509 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1511 ac_save_IFS=$IFS; IFS=$ac_path_separator
1513 for ac_dir in $ac_dummy; do
1515 test -z "$ac_dir" && ac_dir=.
1516 $as_executable_p "$ac_dir/$ac_word" || continue
1517 ac_cv_prog_ac_ct_CC="$ac_prog"
1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1525 if test -n "$ac_ct_CC"; then
1526 echo "$as_me:1526: result: $ac_ct_CC" >&5
1527 echo "${ECHO_T}$ac_ct_CC" >&6
1529 echo "$as_me:1529: result: no" >&5
1530 echo "${ECHO_T}no" >&6
1533 test -n "$ac_ct_CC" && break
1541 test -z "$CC" && { { echo "$as_me:1541: error: no acceptable cc found in \$PATH" >&5
1542 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1543 { (exit 1); exit 1; }; }
1545 # Provide some information about the compiler.
1546 echo "$as_me:1546:" \
1547 "checking for C compiler version" >&5
1548 ac_compiler=`set X $ac_compile; echo $2`
1549 { (eval echo "$as_me:1549: \"$ac_compiler --version </dev/null >&5\"") >&5
1550 (eval $ac_compiler --version </dev/null >&5) 2>&5
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit $ac_status); }
1554 { (eval echo "$as_me:1554: \"$ac_compiler -v </dev/null >&5\"") >&5
1555 (eval $ac_compiler -v </dev/null >&5) 2>&5
1557 echo "$as_me:1557: \$? = $ac_status" >&5
1558 (exit $ac_status); }
1559 { (eval echo "$as_me:1559: \"$ac_compiler -V </dev/null >&5\"") >&5
1560 (eval $ac_compiler -V </dev/null >&5) 2>&5
1562 echo "$as_me:1562: \$? = $ac_status" >&5
1563 (exit $ac_status); }
1565 cat >conftest.$ac_ext <<_ACEOF
1566 #line 1566 "configure"
1567 #include "confdefs.h"
1577 ac_clean_files_save=$ac_clean_files
1578 ac_clean_files="$ac_clean_files a.out a.exe"
1579 # Try to create an executable without -o first, disregard a.out.
1580 # It will help us diagnose broken compilers, and finding out an intuition
1582 echo "$as_me:1582: checking for C compiler default output" >&5
1583 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1584 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1585 if { (eval echo "$as_me:1585: \"$ac_link_default\"") >&5
1586 (eval $ac_link_default) 2>&5
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); }; then
1590 # Find the output, starting from the most likely. This scheme is
1591 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1593 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1594 ls a.out conftest 2>/dev/null;
1595 ls a.* conftest.* 2>/dev/null`; do
1597 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1598 a.out ) # We found the default executable, but exeext='' is most
1601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1602 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1609 echo "$as_me: failed program was:" >&5
1610 cat conftest.$ac_ext >&5
1611 { { echo "$as_me:1611: error: C compiler cannot create executables" >&5
1612 echo "$as_me: error: C compiler cannot create executables" >&2;}
1613 { (exit 77); exit 77; }; }
1616 ac_exeext=$ac_cv_exeext
1617 echo "$as_me:1617: result: $ac_file" >&5
1618 echo "${ECHO_T}$ac_file" >&6
1620 # Check the compiler produces executables we can run. If not, either
1621 # the compiler is broken, or we cross compile.
1622 echo "$as_me:1622: checking whether the C compiler works" >&5
1623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1625 # If not cross compiling, check that we can run a simple program.
1626 if test "$cross_compiling" != yes; then
1627 if { ac_try='./$ac_file'
1628 { (eval echo "$as_me:1628: \"$ac_try\"") >&5
1631 echo "$as_me:1631: \$? = $ac_status" >&5
1632 (exit $ac_status); }; }; then
1635 if test "$cross_compiling" = maybe; then
1638 { { echo "$as_me:1638: error: cannot run C compiled programs.
1639 If you meant to cross compile, use \`--host'." >&5
1640 echo "$as_me: error: cannot run C compiled programs.
1641 If you meant to cross compile, use \`--host'." >&2;}
1642 { (exit 1); exit 1; }; }
1646 echo "$as_me:1646: result: yes" >&5
1647 echo "${ECHO_T}yes" >&6
1649 rm -f a.out a.exe conftest$ac_cv_exeext
1650 ac_clean_files=$ac_clean_files_save
1651 # Check the compiler produces executables we can run. If not, either
1652 # the compiler is broken, or we cross compile.
1653 echo "$as_me:1653: checking whether we are cross compiling" >&5
1654 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1655 echo "$as_me:1655: result: $cross_compiling" >&5
1656 echo "${ECHO_T}$cross_compiling" >&6
1658 echo "$as_me:1658: checking for executable suffix" >&5
1659 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1660 if { (eval echo "$as_me:1660: \"$ac_link\"") >&5
1661 (eval $ac_link) 2>&5
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit $ac_status); }; then
1665 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1666 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1667 # work properly (i.e., refer to `conftest.exe'), while it won't with
1669 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1671 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1672 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1679 { { echo "$as_me:1679: error: cannot compute EXEEXT: cannot compile and link" >&5
1680 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1681 { (exit 1); exit 1; }; }
1684 rm -f conftest$ac_cv_exeext
1685 echo "$as_me:1685: result: $ac_cv_exeext" >&5
1686 echo "${ECHO_T}$ac_cv_exeext" >&6
1688 rm -f conftest.$ac_ext
1689 EXEEXT=$ac_cv_exeext
1691 echo "$as_me:1691: checking for object suffix" >&5
1692 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1693 if test "${ac_cv_objext+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 cat >conftest.$ac_ext <<_ACEOF
1697 #line 1697 "configure"
1698 #include "confdefs.h"
1708 rm -f conftest.o conftest.obj
1709 if { (eval echo "$as_me:1709: \"$ac_compile\"") >&5
1710 (eval $ac_compile) 2>&5
1712 echo "$as_me:1712: \$? = $ac_status" >&5
1713 (exit $ac_status); }; then
1714 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1717 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1722 echo "$as_me: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1724 { { echo "$as_me:1724: error: cannot compute OBJEXT: cannot compile" >&5
1725 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1726 { (exit 1); exit 1; }; }
1729 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1731 echo "$as_me:1731: result: $ac_cv_objext" >&5
1732 echo "${ECHO_T}$ac_cv_objext" >&6
1733 OBJEXT=$ac_cv_objext
1735 echo "$as_me:1735: checking whether we are using the GNU C compiler" >&5
1736 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1737 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 cat >conftest.$ac_ext <<_ACEOF
1741 #line 1741 "configure"
1742 #include "confdefs.h"
1755 rm -f conftest.$ac_objext
1756 if { (eval echo "$as_me:1756: \"$ac_compile\"") >&5
1757 (eval $ac_compile) 2>&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); } &&
1761 { ac_try='test -s conftest.$ac_objext'
1762 { (eval echo "$as_me:1762: \"$ac_try\"") >&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); }; }; then
1769 echo "$as_me: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1773 rm -f conftest.$ac_objext conftest.$ac_ext
1774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1777 echo "$as_me:1777: result: $ac_cv_c_compiler_gnu" >&5
1778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1779 GCC=`test $ac_compiler_gnu = yes && echo yes`
1780 ac_test_CFLAGS=${CFLAGS+set}
1781 ac_save_CFLAGS=$CFLAGS
1783 echo "$as_me:1783: checking whether $CC accepts -g" >&5
1784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1785 if test "${ac_cv_prog_cc_g+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 cat >conftest.$ac_ext <<_ACEOF
1789 #line 1789 "configure"
1790 #include "confdefs.h"
1800 rm -f conftest.$ac_objext
1801 if { (eval echo "$as_me:1801: \"$ac_compile\"") >&5
1802 (eval $ac_compile) 2>&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); } &&
1806 { ac_try='test -s conftest.$ac_objext'
1807 { (eval echo "$as_me:1807: \"$ac_try\"") >&5
1810 echo "$as_me:1810: \$? = $ac_status" >&5
1811 (exit $ac_status); }; }; then
1814 echo "$as_me: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1818 rm -f conftest.$ac_objext conftest.$ac_ext
1820 echo "$as_me:1820: result: $ac_cv_prog_cc_g" >&5
1821 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1822 if test "$ac_test_CFLAGS" = set; then
1823 CFLAGS=$ac_save_CFLAGS
1824 elif test $ac_cv_prog_cc_g = yes; then
1825 if test "$GCC" = yes; then
1831 if test "$GCC" = yes; then
1837 # Some people use a C++ compiler to compile C. Since we use `exit',
1838 # in C++ we need to declare it. In case someone uses the same compiler
1839 # for both compiling C and C++ we need to have the C++ compiler decide
1840 # the declaration of exit, since it's the most demanding environment.
1841 cat >conftest.$ac_ext <<_ACEOF
1846 rm -f conftest.$ac_objext
1847 if { (eval echo "$as_me:1847: \"$ac_compile\"") >&5
1848 (eval $ac_compile) 2>&5
1850 echo "$as_me:1850: \$? = $ac_status" >&5
1851 (exit $ac_status); } &&
1852 { ac_try='test -s conftest.$ac_objext'
1853 { (eval echo "$as_me:1853: \"$ac_try\"") >&5
1856 echo "$as_me:1856: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 for ac_declaration in \
1860 '#include <stdlib.h>' \
1861 'extern "C" void std::exit (int) throw (); using std::exit;' \
1862 'extern "C" void std::exit (int); using std::exit;' \
1863 'extern "C" void exit (int) throw ();' \
1864 'extern "C" void exit (int);' \
1867 cat >conftest.$ac_ext <<_ACEOF
1868 #line 1868 "configure"
1869 #include "confdefs.h"
1880 rm -f conftest.$ac_objext
1881 if { (eval echo "$as_me:1881: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); } &&
1886 { ac_try='test -s conftest.$ac_objext'
1887 { (eval echo "$as_me:1887: \"$ac_try\"") >&5
1890 echo "$as_me:1890: \$? = $ac_status" >&5
1891 (exit $ac_status); }; }; then
1894 echo "$as_me: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1898 rm -f conftest.$ac_objext conftest.$ac_ext
1899 cat >conftest.$ac_ext <<_ACEOF
1900 #line 1900 "configure"
1901 #include "confdefs.h"
1911 rm -f conftest.$ac_objext
1912 if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -s conftest.$ac_objext'
1918 { (eval echo "$as_me:1918: \"$ac_try\"") >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1925 echo "$as_me: failed program was:" >&5
1926 cat conftest.$ac_ext >&5
1928 rm -f conftest.$ac_objext conftest.$ac_ext
1931 if test -n "$ac_declaration"; then
1932 echo '#ifdef __cplusplus' >>confdefs.h
1933 echo $ac_declaration >>confdefs.h
1934 echo '#endif' >>confdefs.h
1938 echo "$as_me: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 rm -f conftest.$ac_objext conftest.$ac_ext
1943 ac_cpp='$CPP $CPPFLAGS'
1944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948 echo "$as_me:1948: checking for strerror in -lcposix" >&5
1949 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
1950 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1951 echo $ECHO_N "(cached) $ECHO_C" >&6
1953 ac_check_lib_save_LIBS=$LIBS
1954 LIBS="-lcposix $LIBS"
1955 cat >conftest.$ac_ext <<_ACEOF
1956 #line 1956 "configure"
1957 #include "confdefs.h"
1959 /* Override any gcc2 internal prototype to avoid an error. */
1963 /* We use char because int might match the return type of a gcc2
1964 builtin and then its argument prototype would still apply. */
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { (eval echo "$as_me:1975: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:1978: \$? = $ac_status" >&5
1979 (exit $ac_status); } &&
1980 { ac_try='test -s conftest$ac_exeext'
1981 { (eval echo "$as_me:1981: \"$ac_try\"") >&5
1984 echo "$as_me:1984: \$? = $ac_status" >&5
1985 (exit $ac_status); }; }; then
1986 ac_cv_lib_cposix_strerror=yes
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 ac_cv_lib_cposix_strerror=no
1992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1993 LIBS=$ac_check_lib_save_LIBS
1995 echo "$as_me:1995: result: $ac_cv_lib_cposix_strerror" >&5
1996 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
1997 if test $ac_cv_lib_cposix_strerror = yes; then
1998 LIBS="$LIBS -lcposix"
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2006 if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2009 echo "$as_me:2009: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 ac_save_IFS=$IFS; IFS=$ac_path_separator
2019 for ac_dir in $ac_dummy; do
2021 test -z "$ac_dir" && ac_dir=.
2022 $as_executable_p "$ac_dir/$ac_word" || continue
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 echo "$as_me:2024: found $ac_dir/$ac_word" >&5
2031 if test -n "$CC"; then
2032 echo "$as_me:2032: result: $CC" >&5
2033 echo "${ECHO_T}$CC" >&6
2035 echo "$as_me:2035: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2040 if test -z "$ac_cv_prog_CC"; then
2042 # Extract the first word of "gcc", so it can be a program name with args.
2043 set dummy gcc; ac_word=$2
2044 echo "$as_me:2044: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test -n "$ac_ct_CC"; then
2050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052 ac_save_IFS=$IFS; IFS=$ac_path_separator
2054 for ac_dir in $ac_dummy; do
2056 test -z "$ac_dir" && ac_dir=.
2057 $as_executable_p "$ac_dir/$ac_word" || continue
2058 ac_cv_prog_ac_ct_CC="gcc"
2059 echo "$as_me:2059: found $ac_dir/$ac_word" >&5
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067 echo "$as_me:2067: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6
2070 echo "$as_me:2070: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2079 if test -z "$CC"; then
2080 if test -n "$ac_tool_prefix"; then
2081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2082 set dummy ${ac_tool_prefix}cc; ac_word=$2
2083 echo "$as_me:2083: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085 if test "${ac_cv_prog_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test -n "$CC"; then
2089 ac_cv_prog_CC="$CC" # Let the user override the test.
2091 ac_save_IFS=$IFS; IFS=$ac_path_separator
2093 for ac_dir in $ac_dummy; do
2095 test -z "$ac_dir" && ac_dir=.
2096 $as_executable_p "$ac_dir/$ac_word" || continue
2097 ac_cv_prog_CC="${ac_tool_prefix}cc"
2098 echo "$as_me:2098: found $ac_dir/$ac_word" >&5
2105 if test -n "$CC"; then
2106 echo "$as_me:2106: result: $CC" >&5
2107 echo "${ECHO_T}$CC" >&6
2109 echo "$as_me:2109: result: no" >&5
2110 echo "${ECHO_T}no" >&6
2114 if test -z "$ac_cv_prog_CC"; then
2116 # Extract the first word of "cc", so it can be a program name with args.
2117 set dummy cc; ac_word=$2
2118 echo "$as_me:2118: checking for $ac_word" >&5
2119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 if test -n "$ac_ct_CC"; then
2124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 ac_save_IFS=$IFS; IFS=$ac_path_separator
2128 for ac_dir in $ac_dummy; do
2130 test -z "$ac_dir" && ac_dir=.
2131 $as_executable_p "$ac_dir/$ac_word" || continue
2132 ac_cv_prog_ac_ct_CC="cc"
2133 echo "$as_me:2133: found $ac_dir/$ac_word" >&5
2139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140 if test -n "$ac_ct_CC"; then
2141 echo "$as_me:2141: result: $ac_ct_CC" >&5
2142 echo "${ECHO_T}$ac_ct_CC" >&6
2144 echo "$as_me:2144: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2154 if test -z "$CC"; then
2155 # Extract the first word of "cc", so it can be a program name with args.
2156 set dummy cc; ac_word=$2
2157 echo "$as_me:2157: checking for $ac_word" >&5
2158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2159 if test "${ac_cv_prog_CC+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 ac_save_IFS=$IFS; IFS=$ac_path_separator
2168 for ac_dir in $ac_dummy; do
2170 test -z "$ac_dir" && ac_dir=.
2171 $as_executable_p "$ac_dir/$ac_word" || continue
2172 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2173 ac_prog_rejected=yes
2177 echo "$as_me:2177: found $ac_dir/$ac_word" >&5
2181 if test $ac_prog_rejected = yes; then
2182 # We found a bogon in the path, so make sure we never use it.
2183 set dummy $ac_cv_prog_CC
2185 if test $# != 0; then
2186 # We chose a different compiler from the bogus one.
2187 # However, it has the same basename, so the bogon will be chosen
2188 # first if we set CC to just the basename; use the full file name.
2190 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2198 if test -n "$CC"; then
2199 echo "$as_me:2199: result: $CC" >&5
2200 echo "${ECHO_T}$CC" >&6
2202 echo "$as_me:2202: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2207 if test -z "$CC"; then
2208 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2213 echo "$as_me:2213: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 ac_save_IFS=$IFS; IFS=$ac_path_separator
2223 for ac_dir in $ac_dummy; do
2225 test -z "$ac_dir" && ac_dir=.
2226 $as_executable_p "$ac_dir/$ac_word" || continue
2227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228 echo "$as_me:2228: found $ac_dir/$ac_word" >&5
2235 if test -n "$CC"; then
2236 echo "$as_me:2236: result: $CC" >&5
2237 echo "${ECHO_T}$CC" >&6
2239 echo "$as_me:2239: result: no" >&5
2240 echo "${ECHO_T}no" >&6
2243 test -n "$CC" && break
2246 if test -z "$CC"; then
2250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2251 set dummy $ac_prog; ac_word=$2
2252 echo "$as_me:2252: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 ac_save_IFS=$IFS; IFS=$ac_path_separator
2262 for ac_dir in $ac_dummy; do
2264 test -z "$ac_dir" && ac_dir=.
2265 $as_executable_p "$ac_dir/$ac_word" || continue
2266 ac_cv_prog_ac_ct_CC="$ac_prog"
2267 echo "$as_me:2267: found $ac_dir/$ac_word" >&5
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 echo "$as_me:2275: result: $ac_ct_CC" >&5
2276 echo "${ECHO_T}$ac_ct_CC" >&6
2278 echo "$as_me:2278: result: no" >&5
2279 echo "${ECHO_T}no" >&6
2282 test -n "$ac_ct_CC" && break
2290 test -z "$CC" && { { echo "$as_me:2290: error: no acceptable cc found in \$PATH" >&5
2291 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2292 { (exit 1); exit 1; }; }
2294 # Provide some information about the compiler.
2295 echo "$as_me:2295:" \
2296 "checking for C compiler version" >&5
2297 ac_compiler=`set X $ac_compile; echo $2`
2298 { (eval echo "$as_me:2298: \"$ac_compiler --version </dev/null >&5\"") >&5
2299 (eval $ac_compiler --version </dev/null >&5) 2>&5
2301 echo "$as_me:2301: \$? = $ac_status" >&5
2302 (exit $ac_status); }
2303 { (eval echo "$as_me:2303: \"$ac_compiler -v </dev/null >&5\"") >&5
2304 (eval $ac_compiler -v </dev/null >&5) 2>&5
2306 echo "$as_me:2306: \$? = $ac_status" >&5
2307 (exit $ac_status); }
2308 { (eval echo "$as_me:2308: \"$ac_compiler -V </dev/null >&5\"") >&5
2309 (eval $ac_compiler -V </dev/null >&5) 2>&5
2311 echo "$as_me:2311: \$? = $ac_status" >&5
2312 (exit $ac_status); }
2314 echo "$as_me:2314: checking whether we are using the GNU C compiler" >&5
2315 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2316 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 cat >conftest.$ac_ext <<_ACEOF
2320 #line 2320 "configure"
2321 #include "confdefs.h"
2334 rm -f conftest.$ac_objext
2335 if { (eval echo "$as_me:2335: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>&5
2338 echo "$as_me:2338: \$? = $ac_status" >&5
2339 (exit $ac_status); } &&
2340 { ac_try='test -s conftest.$ac_objext'
2341 { (eval echo "$as_me:2341: \"$ac_try\"") >&5
2344 echo "$as_me:2344: \$? = $ac_status" >&5
2345 (exit $ac_status); }; }; then
2348 echo "$as_me: failed program was:" >&5
2349 cat conftest.$ac_ext >&5
2352 rm -f conftest.$ac_objext conftest.$ac_ext
2353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2356 echo "$as_me:2356: result: $ac_cv_c_compiler_gnu" >&5
2357 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2358 GCC=`test $ac_compiler_gnu = yes && echo yes`
2359 ac_test_CFLAGS=${CFLAGS+set}
2360 ac_save_CFLAGS=$CFLAGS
2362 echo "$as_me:2362: checking whether $CC accepts -g" >&5
2363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_g+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2368 #line 2368 "configure"
2369 #include "confdefs.h"
2379 rm -f conftest.$ac_objext
2380 if { (eval echo "$as_me:2380: \"$ac_compile\"") >&5
2381 (eval $ac_compile) 2>&5
2383 echo "$as_me:2383: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:2386: \"$ac_try\"") >&5
2389 echo "$as_me:2389: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2393 echo "$as_me: failed program was:" >&5
2394 cat conftest.$ac_ext >&5
2397 rm -f conftest.$ac_objext conftest.$ac_ext
2399 echo "$as_me:2399: result: $ac_cv_prog_cc_g" >&5
2400 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2401 if test "$ac_test_CFLAGS" = set; then
2402 CFLAGS=$ac_save_CFLAGS
2403 elif test $ac_cv_prog_cc_g = yes; then
2404 if test "$GCC" = yes; then
2410 if test "$GCC" = yes; then
2416 # Some people use a C++ compiler to compile C. Since we use `exit',
2417 # in C++ we need to declare it. In case someone uses the same compiler
2418 # for both compiling C and C++ we need to have the C++ compiler decide
2419 # the declaration of exit, since it's the most demanding environment.
2420 cat >conftest.$ac_ext <<_ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (eval echo "$as_me:2426: \"$ac_compile\"") >&5
2427 (eval $ac_compile) 2>&5
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -s conftest.$ac_objext'
2432 { (eval echo "$as_me:2432: \"$ac_try\"") >&5
2435 echo "$as_me:2435: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2437 for ac_declaration in \
2439 '#include <stdlib.h>' \
2440 'extern "C" void std::exit (int) throw (); using std::exit;' \
2441 'extern "C" void std::exit (int); using std::exit;' \
2442 'extern "C" void exit (int) throw ();' \
2443 'extern "C" void exit (int);' \
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line 2447 "configure"
2448 #include "confdefs.h"
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:2460: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>&5
2463 echo "$as_me:2463: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -s conftest.$ac_objext'
2466 { (eval echo "$as_me:2466: \"$ac_try\"") >&5
2469 echo "$as_me:2469: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2473 echo "$as_me: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2477 rm -f conftest.$ac_objext conftest.$ac_ext
2478 cat >conftest.$ac_ext <<_ACEOF
2479 #line 2479 "configure"
2480 #include "confdefs.h"
2490 rm -f conftest.$ac_objext
2491 if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2492 (eval $ac_compile) 2>&5
2494 echo "$as_me:2494: \$? = $ac_status" >&5
2495 (exit $ac_status); } &&
2496 { ac_try='test -s conftest.$ac_objext'
2497 { (eval echo "$as_me:2497: \"$ac_try\"") >&5
2500 echo "$as_me:2500: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2504 echo "$as_me: failed program was:" >&5
2505 cat conftest.$ac_ext >&5
2507 rm -f conftest.$ac_objext conftest.$ac_ext
2510 if test -n "$ac_declaration"; then
2511 echo '#ifdef __cplusplus' >>confdefs.h
2512 echo $ac_declaration >>confdefs.h
2513 echo '#endif' >>confdefs.h
2517 echo "$as_me: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 rm -f conftest.$ac_objext conftest.$ac_ext
2522 ac_cpp='$CPP $CPPFLAGS'
2523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 echo "$as_me:2532: checking how to run the C preprocessor" >&5
2533 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2534 # On Suns, sometimes $CPP names a directory.
2535 if test -n "$CPP" && test -d "$CPP"; then
2538 if test -z "$CPP"; then
2539 if test "${ac_cv_prog_CPP+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 # Double quotes because CPP needs to be expanded
2543 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2546 for ac_c_preproc_warn_flag in '' yes
2548 # Use a header file that comes with gcc, so configuring glibc
2549 # with a fresh cross-compiler works.
2550 # On the NeXT, cc -E runs the code through the compiler's parser,
2551 # not just through cpp. "Syntax error" is here to catch this case.
2552 cat >conftest.$ac_ext <<_ACEOF
2553 #line 2553 "configure"
2554 #include "confdefs.h"
2558 if { (eval echo "$as_me:2558: \"$ac_cpp conftest.$ac_ext\"") >&5
2559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2561 egrep -v '^ *\+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:2564: \$? = $ac_status" >&5
2565 (exit $ac_status); } >/dev/null; then
2566 if test -s conftest.err; then
2567 ac_cpp_err=$ac_c_preproc_warn_flag
2574 if test -z "$ac_cpp_err"; then
2577 echo "$as_me: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 # Broken: fails on valid input.
2582 rm -f conftest.err conftest.$ac_ext
2584 # OK, works on sane cases. Now check whether non-existent headers
2585 # can be detected and how.
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #line 2587 "configure"
2588 #include "confdefs.h"
2589 #include <ac_nonexistent.h>
2591 if { (eval echo "$as_me:2591: \"$ac_cpp conftest.$ac_ext\"") >&5
2592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2594 egrep -v '^ *\+' conftest.er1 >conftest.err
2596 cat conftest.err >&5
2597 echo "$as_me:2597: \$? = $ac_status" >&5
2598 (exit $ac_status); } >/dev/null; then
2599 if test -s conftest.err; then
2600 ac_cpp_err=$ac_c_preproc_warn_flag
2607 if test -z "$ac_cpp_err"; then
2608 # Broken: success on invalid input.
2611 echo "$as_me: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 # Passes both tests.
2617 rm -f conftest.err conftest.$ac_ext
2620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2621 rm -f conftest.err conftest.$ac_ext
2622 if $ac_preproc_ok; then
2634 echo "$as_me:2634: result: $CPP" >&5
2635 echo "${ECHO_T}$CPP" >&6
2637 for ac_c_preproc_warn_flag in '' yes
2639 # Use a header file that comes with gcc, so configuring glibc
2640 # with a fresh cross-compiler works.
2641 # On the NeXT, cc -E runs the code through the compiler's parser,
2642 # not just through cpp. "Syntax error" is here to catch this case.
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #line 2644 "configure"
2645 #include "confdefs.h"
2649 if { (eval echo "$as_me:2649: \"$ac_cpp conftest.$ac_ext\"") >&5
2650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2652 egrep -v '^ *\+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:2655: \$? = $ac_status" >&5
2656 (exit $ac_status); } >/dev/null; then
2657 if test -s conftest.err; then
2658 ac_cpp_err=$ac_c_preproc_warn_flag
2665 if test -z "$ac_cpp_err"; then
2668 echo "$as_me: failed program was:" >&5
2669 cat conftest.$ac_ext >&5
2670 # Broken: fails on valid input.
2673 rm -f conftest.err conftest.$ac_ext
2675 # OK, works on sane cases. Now check whether non-existent headers
2676 # can be detected and how.
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line 2678 "configure"
2679 #include "confdefs.h"
2680 #include <ac_nonexistent.h>
2682 if { (eval echo "$as_me:2682: \"$ac_cpp conftest.$ac_ext\"") >&5
2683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2685 egrep -v '^ *\+' conftest.er1 >conftest.err
2687 cat conftest.err >&5
2688 echo "$as_me:2688: \$? = $ac_status" >&5
2689 (exit $ac_status); } >/dev/null; then
2690 if test -s conftest.err; then
2691 ac_cpp_err=$ac_c_preproc_warn_flag
2698 if test -z "$ac_cpp_err"; then
2699 # Broken: success on invalid input.
2702 echo "$as_me: failed program was:" >&5
2703 cat conftest.$ac_ext >&5
2704 # Passes both tests.
2708 rm -f conftest.err conftest.$ac_ext
2711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2712 rm -f conftest.err conftest.$ac_ext
2713 if $ac_preproc_ok; then
2716 { { echo "$as_me:2716: error: C preprocessor \"$CPP\" fails sanity check" >&5
2717 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2718 { (exit 1); exit 1; }; }
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 echo "$as_me:2727: checking for ANSI C header files" >&5
2728 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2729 if test "${ac_cv_header_stdc+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #line 2733 "configure"
2734 #include "confdefs.h"
2741 if { (eval echo "$as_me:2741: \"$ac_cpp conftest.$ac_ext\"") >&5
2742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2744 egrep -v '^ *\+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:2747: \$? = $ac_status" >&5
2748 (exit $ac_status); } >/dev/null; then
2749 if test -s conftest.err; then
2750 ac_cpp_err=$ac_c_preproc_warn_flag
2757 if test -z "$ac_cpp_err"; then
2758 ac_cv_header_stdc=yes
2760 echo "$as_me: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 ac_cv_header_stdc=no
2764 rm -f conftest.err conftest.$ac_ext
2766 if test $ac_cv_header_stdc = yes; then
2767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2768 cat >conftest.$ac_ext <<_ACEOF
2769 #line 2769 "configure"
2770 #include "confdefs.h"
2774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2775 egrep "memchr" >/dev/null 2>&1; then
2778 ac_cv_header_stdc=no
2784 if test $ac_cv_header_stdc = yes; then
2785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2786 cat >conftest.$ac_ext <<_ACEOF
2787 #line 2787 "configure"
2788 #include "confdefs.h"
2792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2793 egrep "free" >/dev/null 2>&1; then
2796 ac_cv_header_stdc=no
2802 if test $ac_cv_header_stdc = yes; then
2803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2804 if test "$cross_compiling" = yes; then
2807 cat >conftest.$ac_ext <<_ACEOF
2808 #line 2808 "configure"
2809 #include "confdefs.h"
2811 #if ((' ' & 0x0FF) == 0x020)
2812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2815 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2816 || ('j' <= (c) && (c) <= 'r') \
2817 || ('s' <= (c) && (c) <= 'z'))
2818 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2821 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2826 for (i = 0; i < 256; i++)
2827 if (XOR (islower (i), ISLOWER (i))
2828 || toupper (i) != TOUPPER (i))
2833 rm -f conftest$ac_exeext
2834 if { (eval echo "$as_me:2834: \"$ac_link\"") >&5
2835 (eval $ac_link) 2>&5
2837 echo "$as_me:2837: \$? = $ac_status" >&5
2838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2839 { (eval echo "$as_me:2839: \"$ac_try\"") >&5
2842 echo "$as_me:2842: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2846 echo "$as_me: program exited with status $ac_status" >&5
2847 echo "$as_me: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 ac_cv_header_stdc=no
2851 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2855 echo "$as_me:2855: result: $ac_cv_header_stdc" >&5
2856 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2857 if test $ac_cv_header_stdc = yes; then
2859 cat >>confdefs.h <<\EOF
2860 #define STDC_HEADERS 1
2865 for ac_prog in 'bison -y' byacc
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868 set dummy $ac_prog; ac_word=$2
2869 echo "$as_me:2869: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_YACC+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 if test -n "$YACC"; then
2875 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2877 ac_save_IFS=$IFS; IFS=$ac_path_separator
2879 for ac_dir in $ac_dummy; do
2881 test -z "$ac_dir" && ac_dir=.
2882 $as_executable_p "$ac_dir/$ac_word" || continue
2883 ac_cv_prog_YACC="$ac_prog"
2884 echo "$as_me:2884: found $ac_dir/$ac_word" >&5
2890 YACC=$ac_cv_prog_YACC
2891 if test -n "$YACC"; then
2892 echo "$as_me:2892: result: $YACC" >&5
2893 echo "${ECHO_T}$YACC" >&6
2895 echo "$as_me:2895: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2899 test -n "$YACC" && break
2901 test -n "$YACC" || YACC="yacc"
2903 missing_dir=`cd $ac_aux_dir && pwd`
2904 for ac_prog in flex lex
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 echo "$as_me:2908: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910 if test "${ac_cv_prog_LEX+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$LEX"; then
2914 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2916 ac_save_IFS=$IFS; IFS=$ac_path_separator
2918 for ac_dir in $ac_dummy; do
2920 test -z "$ac_dir" && ac_dir=.
2921 $as_executable_p "$ac_dir/$ac_word" || continue
2922 ac_cv_prog_LEX="$ac_prog"
2923 echo "$as_me:2923: found $ac_dir/$ac_word" >&5
2930 if test -n "$LEX"; then
2931 echo "$as_me:2931: result: $LEX" >&5
2932 echo "${ECHO_T}$LEX" >&6
2934 echo "$as_me:2934: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2938 test -n "$LEX" && break
2940 test -n "$LEX" || LEX=""$missing_dir/missing flex""
2942 for ac_prog in flex lex
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 echo "$as_me:2946: checking for $ac_word" >&5
2947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948 if test "${ac_cv_prog_LEX+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 if test -n "$LEX"; then
2952 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2954 ac_save_IFS=$IFS; IFS=$ac_path_separator
2956 for ac_dir in $ac_dummy; do
2958 test -z "$ac_dir" && ac_dir=.
2959 $as_executable_p "$ac_dir/$ac_word" || continue
2960 ac_cv_prog_LEX="$ac_prog"
2961 echo "$as_me:2961: found $ac_dir/$ac_word" >&5
2968 if test -n "$LEX"; then
2969 echo "$as_me:2969: result: $LEX" >&5
2970 echo "${ECHO_T}$LEX" >&6
2972 echo "$as_me:2972: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2976 test -n "$LEX" && break
2978 test -n "$LEX" || LEX=":"
2980 if test -z "$LEXLIB"
2982 echo "$as_me:2982: checking for yywrap in -lfl" >&5
2983 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2984 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 ac_check_lib_save_LIBS=$LIBS
2989 cat >conftest.$ac_ext <<_ACEOF
2990 #line 2990 "configure"
2991 #include "confdefs.h"
2993 /* Override any gcc2 internal prototype to avoid an error. */
2997 /* We use char because int might match the return type of a gcc2
2998 builtin and then its argument prototype would still apply. */
3008 rm -f conftest.$ac_objext conftest$ac_exeext
3009 if { (eval echo "$as_me:3009: \"$ac_link\"") >&5
3010 (eval $ac_link) 2>&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest$ac_exeext'
3015 { (eval echo "$as_me:3015: \"$ac_try\"") >&5
3018 echo "$as_me:3018: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3020 ac_cv_lib_fl_yywrap=yes
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 ac_cv_lib_fl_yywrap=no
3026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3027 LIBS=$ac_check_lib_save_LIBS
3029 echo "$as_me:3029: result: $ac_cv_lib_fl_yywrap" >&5
3030 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3031 if test $ac_cv_lib_fl_yywrap = yes; then
3034 echo "$as_me:3034: checking for yywrap in -ll" >&5
3035 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3036 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 ac_check_lib_save_LIBS=$LIBS
3041 cat >conftest.$ac_ext <<_ACEOF
3042 #line 3042 "configure"
3043 #include "confdefs.h"
3045 /* Override any gcc2 internal prototype to avoid an error. */
3049 /* We use char because int might match the return type of a gcc2
3050 builtin and then its argument prototype would still apply. */
3060 rm -f conftest.$ac_objext conftest$ac_exeext
3061 if { (eval echo "$as_me:3061: \"$ac_link\"") >&5
3062 (eval $ac_link) 2>&5
3064 echo "$as_me:3064: \$? = $ac_status" >&5
3065 (exit $ac_status); } &&
3066 { ac_try='test -s conftest$ac_exeext'
3067 { (eval echo "$as_me:3067: \"$ac_try\"") >&5
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_lib_l_yywrap=yes
3074 echo "$as_me: failed program was:" >&5
3075 cat conftest.$ac_ext >&5
3076 ac_cv_lib_l_yywrap=no
3078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3079 LIBS=$ac_check_lib_save_LIBS
3081 echo "$as_me:3081: result: $ac_cv_lib_l_yywrap" >&5
3082 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3083 if test $ac_cv_lib_l_yywrap = yes; then
3091 if test "x$LEX" != "x:"; then
3092 echo "$as_me:3092: checking lex output file root" >&5
3093 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3094 if test "${ac_cv_prog_lex_root+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 # The minimal lex program is just a single line: %%. But some broken lexes
3098 # (Solaris, I think it was) want two %% lines, so accommodate them.
3101 if test -f lex.yy.c; then
3102 ac_cv_prog_lex_root=lex.yy
3103 elif test -f lexyy.c; then
3104 ac_cv_prog_lex_root=lexyy
3106 { { echo "$as_me:3106: error: cannot find output from $LEX; giving up" >&5
3107 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3108 { (exit 1); exit 1; }; }
3111 echo "$as_me:3111: result: $ac_cv_prog_lex_root" >&5
3112 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3113 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3115 echo "$as_me:3115: checking whether yytext is a pointer" >&5
3116 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3117 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 # POSIX says lex can declare yytext either as a pointer or an array; the
3121 # default is implementation-dependent. Figure out which it is, since
3122 # not all implementations provide the %pointer and %array declarations.
3123 ac_cv_prog_lex_yytext_pointer=no
3124 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3126 LIBS="$LIBS $LEXLIB"
3127 cat >conftest.$ac_ext <<_ACEOF
3128 `cat $LEX_OUTPUT_ROOT.c`
3130 rm -f conftest.$ac_objext conftest$ac_exeext
3131 if { (eval echo "$as_me:3131: \"$ac_link\"") >&5
3132 (eval $ac_link) 2>&5
3134 echo "$as_me:3134: \$? = $ac_status" >&5
3135 (exit $ac_status); } &&
3136 { ac_try='test -s conftest$ac_exeext'
3137 { (eval echo "$as_me:3137: \"$ac_try\"") >&5
3140 echo "$as_me:3140: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_cv_prog_lex_yytext_pointer=yes
3144 echo "$as_me: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3149 rm -f "${LEX_OUTPUT_ROOT}.c"
3152 echo "$as_me:3152: result: $ac_cv_prog_lex_yytext_pointer" >&5
3153 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3154 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3156 cat >>confdefs.h <<\EOF
3157 #define YYTEXT_POINTER 1
3164 # Find a good install program. We prefer a C program (faster),
3165 # so one script is as good as another. But avoid the broken or
3166 # incompatible versions:
3167 # SysV /etc/install, /usr/sbin/install
3168 # SunOS /usr/etc/install
3169 # IRIX /sbin/install
3171 # AmigaOS /C/install, which installs bootblocks on floppy discs
3172 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3173 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3174 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3175 # ./install, which can be erroneously created by make from ./install.sh.
3176 echo "$as_me:3176: checking for a BSD compatible install" >&5
3177 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3178 if test -z "$INSTALL"; then
3179 if test "${ac_cv_path_install+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 ac_save_IFS=$IFS; IFS=$ac_path_separator
3183 for ac_dir in $PATH; do
3185 # Account for people who put trailing slashes in PATH elements.
3187 / | ./ | .// | /cC/* \
3188 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3191 # OSF1 and SCO ODT 3.0 have their own names for install.
3192 # Don't use installbsd from OSF since it installs stuff as root
3194 for ac_prog in ginstall scoinst install; do
3195 if $as_executable_p "$ac_dir/$ac_prog"; then
3196 if test $ac_prog = install &&
3197 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3198 # AIX install. It has an incompatible calling convention.
3200 elif test $ac_prog = install &&
3201 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3202 # program-specific install script used by HP pwplus--don't use.
3205 ac_cv_path_install="$ac_dir/$ac_prog -c"
3215 if test "${ac_cv_path_install+set}" = set; then
3216 INSTALL=$ac_cv_path_install
3218 # As a last resort, use the slow shell script. We don't cache a
3219 # path for INSTALL within a source directory, because that will
3220 # break other packages using the cache if that directory is
3221 # removed, or if the path is relative.
3222 INSTALL=$ac_install_sh
3225 echo "$as_me:3225: result: $INSTALL" >&5
3226 echo "${ECHO_T}$INSTALL" >&6
3228 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3229 # It thinks the first close brace ends the variable substitution.
3230 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3232 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3234 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241 echo "$as_me:3241: checking how to run the C preprocessor" >&5
3242 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3243 # On Suns, sometimes $CPP names a directory.
3244 if test -n "$CPP" && test -d "$CPP"; then
3247 if test -z "$CPP"; then
3248 if test "${ac_cv_prog_CPP+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 # Double quotes because CPP needs to be expanded
3252 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255 for ac_c_preproc_warn_flag in '' yes
3257 # Use a header file that comes with gcc, so configuring glibc
3258 # with a fresh cross-compiler works.
3259 # On the NeXT, cc -E runs the code through the compiler's parser,
3260 # not just through cpp. "Syntax error" is here to catch this case.
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line 3262 "configure"
3263 #include "confdefs.h"
3267 if { (eval echo "$as_me:3267: \"$ac_cpp conftest.$ac_ext\"") >&5
3268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3270 egrep -v '^ *\+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null; then
3275 if test -s conftest.err; then
3276 ac_cpp_err=$ac_c_preproc_warn_flag
3283 if test -z "$ac_cpp_err"; then
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 # Broken: fails on valid input.
3291 rm -f conftest.err conftest.$ac_ext
3293 # OK, works on sane cases. Now check whether non-existent headers
3294 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296 #line 3296 "configure"
3297 #include "confdefs.h"
3298 #include <ac_nonexistent.h>
3300 if { (eval echo "$as_me:3300: \"$ac_cpp conftest.$ac_ext\"") >&5
3301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3303 egrep -v '^ *\+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit $ac_status); } >/dev/null; then
3308 if test -s conftest.err; then
3309 ac_cpp_err=$ac_c_preproc_warn_flag
3316 if test -z "$ac_cpp_err"; then
3317 # Broken: success on invalid input.
3320 echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322 # Passes both tests.
3326 rm -f conftest.err conftest.$ac_ext
3329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330 rm -f conftest.err conftest.$ac_ext
3331 if $ac_preproc_ok; then
3343 echo "$as_me:3343: result: $CPP" >&5
3344 echo "${ECHO_T}$CPP" >&6
3346 for ac_c_preproc_warn_flag in '' yes
3348 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat >conftest.$ac_ext <<_ACEOF
3353 #line 3353 "configure"
3354 #include "confdefs.h"
3358 if { (eval echo "$as_me:3358: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 egrep -v '^ *\+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 echo "$as_me:3364: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_c_preproc_warn_flag
3374 if test -z "$ac_cpp_err"; then
3377 echo "$as_me: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 # Broken: fails on valid input.
3382 rm -f conftest.err conftest.$ac_ext
3384 # OK, works on sane cases. Now check whether non-existent headers
3385 # can be detected and how.
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line 3387 "configure"
3388 #include "confdefs.h"
3389 #include <ac_nonexistent.h>
3391 if { (eval echo "$as_me:3391: \"$ac_cpp conftest.$ac_ext\"") >&5
3392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394 egrep -v '^ *\+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:3397: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null; then
3399 if test -s conftest.err; then
3400 ac_cpp_err=$ac_c_preproc_warn_flag
3407 if test -z "$ac_cpp_err"; then
3408 # Broken: success on invalid input.
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 # Passes both tests.
3417 rm -f conftest.err conftest.$ac_ext
3420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3421 rm -f conftest.err conftest.$ac_ext
3422 if $ac_preproc_ok; then
3425 { { echo "$as_me:3425: error: C preprocessor \"$CPP\" fails sanity check" >&5
3426 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3427 { (exit 1); exit 1; }; }
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 # Extract the first word of "rm", so it can be a program name with args.
3437 set dummy rm; ac_word=$2
3438 echo "$as_me:3438: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_path_RM+set}" = set; then
3441 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3448 ac_save_IFS=$IFS; IFS=$ac_path_separator
3450 for ac_dir in $ac_dummy; do
3452 test -z "$ac_dir" && ac_dir=.
3453 if $as_executable_p "$ac_dir/$ac_word"; then
3454 ac_cv_path_RM="$ac_dir/$ac_word"
3455 echo "$as_me:3455: found $ac_dir/$ac_word" >&5
3460 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
3466 if test -n "$RM"; then
3467 echo "$as_me:3467: result: $RM" >&5
3468 echo "${ECHO_T}$RM" >&6
3470 echo "$as_me:3470: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3474 # Extract the first word of "mv", so it can be a program name with args.
3475 set dummy mv; ac_word=$2
3476 echo "$as_me:3476: checking for $ac_word" >&5
3477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3478 if test "${ac_cv_path_MV+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3483 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3486 ac_save_IFS=$IFS; IFS=$ac_path_separator
3488 for ac_dir in $ac_dummy; do
3490 test -z "$ac_dir" && ac_dir=.
3491 if $as_executable_p "$ac_dir/$ac_word"; then
3492 ac_cv_path_MV="$ac_dir/$ac_word"
3493 echo "$as_me:3493: found $ac_dir/$ac_word" >&5
3498 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
3504 if test -n "$MV"; then
3505 echo "$as_me:3505: result: $MV" >&5
3506 echo "${ECHO_T}$MV" >&6
3508 echo "$as_me:3508: result: no" >&5
3509 echo "${ECHO_T}no" >&6
3512 # Extract the first word of "tar", so it can be a program name with args.
3513 set dummy tar; ac_word=$2
3514 echo "$as_me:3514: checking for $ac_word" >&5
3515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3516 if test "${ac_cv_path_TAR+set}" = set; then
3517 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3524 ac_save_IFS=$IFS; IFS=$ac_path_separator
3526 for ac_dir in $ac_dummy; do
3528 test -z "$ac_dir" && ac_dir=.
3529 if $as_executable_p "$ac_dir/$ac_word"; then
3530 ac_cv_path_TAR="$ac_dir/$ac_word"
3531 echo "$as_me:3531: found $ac_dir/$ac_word" >&5
3536 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
3542 if test -n "$TAR"; then
3543 echo "$as_me:3543: result: $TAR" >&5
3544 echo "${ECHO_T}$TAR" >&6
3546 echo "$as_me:3546: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3552 if test -z "$PKG_CONFIG"; then
3553 # Extract the first word of "pkg-config", so it can be a program name with args.
3554 set dummy pkg-config; ac_word=$2
3555 echo "$as_me:3555: checking for $ac_word" >&5
3556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3565 ac_save_IFS=$IFS; IFS=$ac_path_separator
3567 for ac_dir in $ac_dummy; do
3569 test -z "$ac_dir" && ac_dir=.
3570 if $as_executable_p "$ac_dir/$ac_word"; then
3571 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3572 echo "$as_me:3572: found $ac_dir/$ac_word" >&5
3577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3583 if test -n "$PKG_CONFIG"; then
3584 echo "$as_me:3584: result: $PKG_CONFIG" >&5
3585 echo "${ECHO_T}$PKG_CONFIG" >&6
3587 echo "$as_me:3587: result: no" >&5
3588 echo "${ECHO_T}no" >&6
3593 if test "$PKG_CONFIG" = "no" ; then
3594 echo "*** The pkg-config script could not be found. Make sure it is"
3595 echo "*** in your path, or set the PKG_CONFIG environment variable"
3596 echo "*** to the full path to pkg-config."
3597 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3599 PKG_CONFIG_MIN_VERSION=0.9.0
3600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3601 echo "$as_me:3601: checking for glib-2.0 >= $GLIB_REQUIRED" >&5
3602 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED... $ECHO_C" >&6
3604 if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED" ; then
3605 echo "$as_me:3605: result: yes" >&5
3606 echo "${ECHO_T}yes" >&6
3609 echo "$as_me:3609: checking GLIB_CFLAGS" >&5
3610 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
3611 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED"`
3612 echo "$as_me:3612: result: $GLIB_CFLAGS" >&5
3613 echo "${ECHO_T}$GLIB_CFLAGS" >&6
3615 echo "$as_me:3615: checking GLIB_LIBS" >&5
3616 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
3617 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED"`
3618 echo "$as_me:3618: result: $GLIB_LIBS" >&5
3619 echo "${ECHO_T}$GLIB_LIBS" >&6
3623 ## If we have a custom action on failure, don't print errors, but
3624 ## do set a variable so people can do so.
3625 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
3626 echo $GLIB_PKG_ERRORS
3630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
3635 if test $succeeded = yes; then
3638 { { echo "$as_me:3638: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
3639 echo "$as_me: error: Library requirements (glib-2.0 >= $GLIB_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
3640 { (exit 1); exit 1; }; }
3643 ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
3644 cat >confcache <<\_ACEOF
3645 # This file is a shell script that caches the results of configure
3646 # tests run on this system so they can be shared between configure
3647 # scripts and configure runs, see configure's option --config-cache.
3648 # It is not useful on other systems. If it contains results you don't
3649 # want to keep, you may remove or edit it.
3651 # config.status only pays attention to the cache file if you give it
3652 # the --recheck option to rerun configure.
3654 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3660 # The following way of writing the cache mishandles newlines in values,
3661 # but we know of no workaround that is simple, portable, and efficient.
3662 # So, don't put newlines in cache variables' values.
3663 # Ultrix sh set writes to stderr and can't be redirected directly,
3664 # and sets the high bit in the cache file unless we assign to the vars.
3667 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3669 # `set' does not quote correctly, so add quotes (double-quote
3670 # substitution turns \\\\ into \\, and sed turns \\ into \).
3673 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3676 # `set' quotes correctly as required by POSIX, so do not add quotes.
3678 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3687 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3689 if cmp -s $cache_file confcache; then :; else
3690 if test -w $cache_file; then
3691 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3692 cat confcache >$cache_file
3694 echo "not updating unwritable cache $cache_file"
3699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3700 # Let make expand exec_prefix.
3701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3705 # trailing colons and then remove the whole line if VPATH becomes empty
3706 # (actually we leave an empty line to preserve line numbers).
3707 if test "x$srcdir" = x.; then
3708 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3709 s/:*\$(srcdir):*/:/;
3710 s/:*\${srcdir}:*/:/;
3712 s/^\([^=]*=[ ]*\):*/\1/;
3718 DEFS=-DHAVE_CONFIG_H
3720 : ${CONFIG_STATUS=./config.status}
3721 ac_clean_files_save=$ac_clean_files
3722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3723 { echo "$as_me:3723: creating $CONFIG_STATUS" >&5
3724 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3725 cat >$CONFIG_STATUS <<_ACEOF
3727 # Generated automatically by configure.
3728 # Run this file to recreate the current configuration.
3729 # Compiler output produced by configure, useful for debugging
3730 # configure, is in config.log if it exists.
3733 SHELL=\${CONFIG_SHELL-$SHELL}
3734 ac_cs_invocation="\$0 \$@"
3738 cat >>$CONFIG_STATUS <<\_ACEOF
3739 # Be Bourne compatible
3740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3743 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3747 # Name of the executable.
3748 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3750 if expr a : '\(a\)' >/dev/null 2>&1; then
3756 rm -f conf$$ conf$$.exe conf$$.file
3758 if ln -s conf$$.file conf$$ 2>/dev/null; then
3759 # We could just check for DJGPP; but this test a) works b) is more generic
3760 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3761 if test -f conf$$.exe; then
3762 # Don't use ln at all; we don't have any links
3767 elif ln conf$$.file conf$$ 2>/dev/null; then
3772 rm -f conf$$ conf$$.exe conf$$.file
3774 as_executable_p="test -f"
3776 # Support unset when possible.
3777 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3784 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3785 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3786 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3787 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3788 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3789 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3790 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3791 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3794 # We need space, tab and new line, in precisely that order.
3800 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3806 # Files that config.status was made for.
3807 if test -n "$ac_config_files"; then
3808 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3811 if test -n "$ac_config_headers"; then
3812 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3815 if test -n "$ac_config_links"; then
3816 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3819 if test -n "$ac_config_commands"; then
3820 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3823 cat >>$CONFIG_STATUS <<\EOF
3826 \`$as_me' instantiates files from templates according to the
3827 current configuration.
3829 Usage: $0 [OPTIONS] [FILE]...
3831 -h, --help print this help, then exit
3832 -V, --version print version number, then exit
3833 -d, --debug don't remove temporary files
3834 --recheck update $as_me by reconfiguring in the same conditions
3835 --file=FILE[:TEMPLATE]
3836 instantiate the configuration file FILE
3837 --header=FILE[:TEMPLATE]
3838 instantiate the configuration header FILE
3840 Configuration files:
3843 Configuration headers:
3846 Configuration commands:
3849 Report bugs to <bug-autoconf@gnu.org>."
3852 cat >>$CONFIG_STATUS <<EOF
3855 configured by $0, generated by GNU Autoconf 2.52,
3856 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3858 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3859 Free Software Foundation, Inc.
3860 This config.status script is free software; the Free Software Foundation
3861 gives unlimited permission to copy, distribute and modify it."
3866 cat >>$CONFIG_STATUS <<\EOF
3867 # If no file are specified by the user, then we need to provide default
3868 # value. By we need to know if files were specified by the user.
3874 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3875 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3877 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3881 *) # This is not an option, so the user has probably given explicit
3883 ac_need_defaults=false;;
3887 # Handling of the options.
3889 cat >>$CONFIG_STATUS <<EOF
3890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3891 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3892 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3894 cat >>$CONFIG_STATUS <<\EOF
3895 --version | --vers* | -V )
3896 echo "$ac_cs_version"; exit 0 ;;
3898 # Conflict between --help and --header
3899 { { echo "$as_me:3899: error: ambiguous option: $1
3900 Try \`$0 --help' for more information." >&5
3901 echo "$as_me: error: ambiguous option: $1
3902 Try \`$0 --help' for more information." >&2;}
3903 { (exit 1); exit 1; }; };;
3904 --help | --hel | -h )
3905 echo "$ac_cs_usage"; exit 0 ;;
3906 --debug | --d* | -d )
3908 --file | --fil | --fi | --f )
3910 CONFIG_FILES="$CONFIG_FILES $1"
3911 ac_need_defaults=false;;
3912 --header | --heade | --head | --hea )
3914 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3915 ac_need_defaults=false;;
3918 -*) { { echo "$as_me:3918: error: unrecognized option: $1
3919 Try \`$0 --help' for more information." >&5
3920 echo "$as_me: error: unrecognized option: $1
3921 Try \`$0 --help' for more information." >&2;}
3922 { (exit 1); exit 1; }; } ;;
3924 *) ac_config_targets="$ac_config_targets $1" ;;
3933 ## ----------------------- ##
3934 ## Running config.status. ##
3935 ## ----------------------- ##
3937 This file was extended by $as_me 2.52, executed with
3938 CONFIG_FILES = $CONFIG_FILES
3939 CONFIG_HEADERS = $CONFIG_HEADERS
3940 CONFIG_LINKS = $CONFIG_LINKS
3941 CONFIG_COMMANDS = $CONFIG_COMMANDS
3943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3948 cat >>$CONFIG_STATUS <<EOF
3950 # INIT-COMMANDS section.
3955 cat >>$CONFIG_STATUS <<\EOF
3956 for ac_config_target in $ac_config_targets
3958 case "$ac_config_target" in
3959 # Handling of arguments.
3960 "gob2.spec" ) CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
3961 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3962 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3963 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3964 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3965 "doc/gob2.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
3966 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3967 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3968 *) { { echo "$as_me:3968: error: invalid argument: $ac_config_target" >&5
3969 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3970 { (exit 1); exit 1; }; };;
3974 # If the user did not use the arguments to specify the items to instantiate,
3975 # then the envvar interface is used. Set only those that are not.
3976 # We use the long form for the default assignment because of an extremely
3977 # bizarre bug on SunOS 4.1.3.
3978 if $ac_need_defaults; then
3979 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3980 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3981 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3984 # Create a temporary directory, and hook for its removal unless debugging.
3987 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3988 trap '{ (exit 1); exit 1; }' 1 2 13 15
3991 # Create a (secure) tmp directory for tmp files.
3994 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3995 test -n "$tmp" && test -d "$tmp"
3998 tmp=$TMPDIR/cs$$-$RANDOM
3999 (umask 077 && mkdir $tmp)
4002 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4003 { (exit 1); exit 1; }
4008 cat >>$CONFIG_STATUS <<EOF
4011 # CONFIG_FILES section.
4014 # No need to generate the scripts if there are no CONFIG_FILES.
4015 # This happens for instance when ./config.status config.h
4016 if test -n "\$CONFIG_FILES"; then
4017 # Protect against being on the right side of a sed subst in config.status.
4018 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4019 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4020 s,@SHELL@,$SHELL,;t t
4021 s,@exec_prefix@,$exec_prefix,;t t
4022 s,@prefix@,$prefix,;t t
4023 s,@program_transform_name@,$program_transform_name,;t t
4024 s,@bindir@,$bindir,;t t
4025 s,@sbindir@,$sbindir,;t t
4026 s,@libexecdir@,$libexecdir,;t t
4027 s,@datadir@,$datadir,;t t
4028 s,@sysconfdir@,$sysconfdir,;t t
4029 s,@sharedstatedir@,$sharedstatedir,;t t
4030 s,@localstatedir@,$localstatedir,;t t
4031 s,@libdir@,$libdir,;t t
4032 s,@includedir@,$includedir,;t t
4033 s,@oldincludedir@,$oldincludedir,;t t
4034 s,@infodir@,$infodir,;t t
4035 s,@mandir@,$mandir,;t t
4036 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4037 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4038 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4039 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4040 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4041 s,@build_alias@,$build_alias,;t t
4042 s,@host_alias@,$host_alias,;t t
4043 s,@target_alias@,$target_alias,;t t
4044 s,@ECHO_C@,$ECHO_C,;t t
4045 s,@ECHO_N@,$ECHO_N,;t t
4046 s,@ECHO_T@,$ECHO_T,;t t
4047 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4050 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4051 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4052 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4053 s,@PACKAGE@,$PACKAGE,;t t
4054 s,@VERSION@,$VERSION,;t t
4055 s,@ACLOCAL@,$ACLOCAL,;t t
4056 s,@AUTOCONF@,$AUTOCONF,;t t
4057 s,@AUTOMAKE@,$AUTOMAKE,;t t
4058 s,@AUTOHEADER@,$AUTOHEADER,;t t
4059 s,@MAKEINFO@,$MAKEINFO,;t t
4060 s,@SET_MAKE@,$SET_MAKE,;t t
4061 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4062 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4063 s,@MAINT@,$MAINT,;t t
4064 s,@SUBDIRS@,$SUBDIRS,;t t
4065 s,@DOINSTGOB@,$DOINSTGOB,;t t
4066 s,@NOINSTGOB@,$NOINSTGOB,;t t
4068 s,@CFLAGS@,$CFLAGS,;t t
4069 s,@LDFLAGS@,$LDFLAGS,;t t
4070 s,@CPPFLAGS@,$CPPFLAGS,;t t
4071 s,@ac_ct_CC@,$ac_ct_CC,;t t
4072 s,@EXEEXT@,$EXEEXT,;t t
4073 s,@OBJEXT@,$OBJEXT,;t t
4077 s,@LEXLIB@,$LEXLIB,;t t
4078 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4082 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4083 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
4084 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
4085 s,@YFLAGS@,$YFLAGS,;t t
4090 cat >>$CONFIG_STATUS <<\EOF
4091 # Split the substitutions into bite-sized pieces for seds with
4092 # small command number limits, like on Digital OSF/1 and HP-UX.
4094 ac_sed_frag=1 # Number of current file.
4095 ac_beg=1 # First line for current file.
4096 ac_end=$ac_max_sed_lines # Line after last line for current file.
4099 while $ac_more_lines; do
4100 if test $ac_beg -gt 1; then
4101 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4103 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4105 if test ! -s $tmp/subs.frag; then
4108 # The purpose of the label and of the branching condition is to
4109 # speed up the sed processing (if there are no `@' at all, there
4110 # is no need to browse any of the substitutions).
4111 # These are the two extra sed commands mentioned above.
4113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4114 if test -z "$ac_sed_cmds"; then
4115 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4117 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4119 ac_sed_frag=`expr $ac_sed_frag + 1`
4121 ac_end=`expr $ac_end + $ac_max_sed_lines`
4124 if test -z "$ac_sed_cmds"; then
4127 fi # test -n "$CONFIG_FILES"
4130 cat >>$CONFIG_STATUS <<\EOF
4131 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4134 - | *:- | *:-:* ) # input from stdin
4136 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4138 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4140 * ) ac_file_in=$ac_file.in ;;
4143 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4144 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4145 X"$ac_file" : 'X\(//\)[^/]' \| \
4146 X"$ac_file" : 'X\(//\)$' \| \
4147 X"$ac_file" : 'X\(/\)' \| \
4148 . : '\(.\)' 2>/dev/null ||
4150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4152 /^X\(\/\/\)$/{ s//\1/; q; }
4153 /^X\(\/\).*/{ s//\1/; q; }
4155 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4157 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4161 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4162 case $as_mkdir_dir in
4163 # Skip DOS drivespec
4164 ?:) as_incr_dir=$as_mkdir_dir ;;
4166 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4167 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4172 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4173 # A "../" for each directory in $ac_dir_suffix.
4174 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4176 ac_dir_suffix= ac_dots=
4181 if test -z "$ac_dots"; then
4184 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4187 ac_srcdir=$srcdir$ac_dir_suffix;
4188 ac_top_srcdir=$srcdir ;;
4190 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4191 ac_top_srcdir=$ac_dots$srcdir ;;
4195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4196 *) ac_INSTALL=$ac_dots$INSTALL ;;
4199 if test x"$ac_file" != x-; then
4200 { echo "$as_me:4200: creating $ac_file" >&5
4201 echo "$as_me: creating $ac_file" >&6;}
4204 # Let's still pretend it is `configure' which instantiates (i.e., don't
4205 # use $as_me), people would be surprised to read:
4206 # /* config.h. Generated automatically by config.status. */
4207 configure_input="Generated automatically from `echo $ac_file_in |
4208 sed 's,.*/,,'` by configure."
4210 # First look for the input files in the build tree, otherwise in the
4212 ac_file_inputs=`IFS=:
4213 for f in $ac_file_in; do
4215 -) echo $tmp/stdin ;;
4217 # Absolute (can't be DOS-style, as IFS=:)
4218 test -f "$f" || { { echo "$as_me:4218: error: cannot find input file: $f" >&5
4219 echo "$as_me: error: cannot find input file: $f" >&2;}
4220 { (exit 1); exit 1; }; }
4223 if test -f "$f"; then
4226 elif test -f "$srcdir/$f"; then
4231 { { echo "$as_me:4231: error: cannot find input file: $f" >&5
4232 echo "$as_me: error: cannot find input file: $f" >&2;}
4233 { (exit 1); exit 1; }; }
4236 done` || { (exit 1); exit 1; }
4238 cat >>$CONFIG_STATUS <<EOF
4242 cat >>$CONFIG_STATUS <<\EOF
4244 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4245 s,@configure_input@,$configure_input,;t t
4246 s,@srcdir@,$ac_srcdir,;t t
4247 s,@top_srcdir@,$ac_top_srcdir,;t t
4248 s,@INSTALL@,$ac_INSTALL,;t t
4249 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4251 if test x"$ac_file" != x-; then
4252 mv $tmp/out $ac_file
4260 cat >>$CONFIG_STATUS <<\EOF
4263 # CONFIG_HEADER section.
4266 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4267 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4269 # ac_d sets the value in "#define NAME VALUE" lines.
4270 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4271 ac_dB='[ ].*$,\1#\2'
4274 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4275 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4276 ac_uB='$,\1#\2define\3'
4280 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4281 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4283 - | *:- | *:-:* ) # input from stdin
4285 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4286 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4287 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4288 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4289 * ) ac_file_in=$ac_file.in ;;
4292 test x"$ac_file" != x- && { echo "$as_me:4292: creating $ac_file" >&5
4293 echo "$as_me: creating $ac_file" >&6;}
4295 # First look for the input files in the build tree, otherwise in the
4297 ac_file_inputs=`IFS=:
4298 for f in $ac_file_in; do
4300 -) echo $tmp/stdin ;;
4302 # Absolute (can't be DOS-style, as IFS=:)
4303 test -f "$f" || { { echo "$as_me:4303: error: cannot find input file: $f" >&5
4304 echo "$as_me: error: cannot find input file: $f" >&2;}
4305 { (exit 1); exit 1; }; }
4308 if test -f "$f"; then
4311 elif test -f "$srcdir/$f"; then
4316 { { echo "$as_me:4316: error: cannot find input file: $f" >&5
4317 echo "$as_me: error: cannot find input file: $f" >&2;}
4318 { (exit 1); exit 1; }; }
4321 done` || { (exit 1); exit 1; }
4322 # Remove the trailing spaces.
4323 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4327 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4328 # `conftest.undefs', that substitutes the proper values into
4329 # config.h.in to produce config.h. The first handles `#define'
4330 # templates, and the second `#undef' templates.
4331 # And first: Protect against being on the right side of a sed subst in
4332 # config.status. Protect against being in an unquoted here document
4334 rm -f conftest.defines conftest.undefs
4335 # Using a here document instead of a string reduces the quoting nightmare.
4336 # Putting comments in sed scripts is not portable.
4338 # `end' is used to avoid that the second main sed command (meant for
4339 # 0-ary CPP macros) applies to n-ary macro definitions.
4340 # See the Autoconf documentation for `clear'.
4341 cat >confdef2sed.sed <<\EOF
4346 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4348 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4351 # If some macros were called several times there might be several times
4352 # the same #defines, which is useless. Nevertheless, we may not want to
4353 # sort them, since we want the *last* AC-DEFINE to be honored.
4354 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4355 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4356 rm -f confdef2sed.sed
4358 # This sed command replaces #undef with comments. This is necessary, for
4359 # example, in the case of _POSIX_SOURCE, which is predefined and required
4360 # on some systems where configure will not decide to define it.
4361 cat >>conftest.undefs <<\EOF
4362 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4365 # Break up conftest.defines because some shells have a limit on the size
4366 # of here documents, and old seds have small limits too (100 cmds).
4367 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4368 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4369 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4370 echo ' :' >>$CONFIG_STATUS
4372 while grep . conftest.defines >/dev/null
4374 # Write a limited-size here document to $tmp/defines.sed.
4375 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4376 # Speed up: don't consider the non `#define' lines.
4377 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4378 # Work around the forget-to-reset-the-flag bug.
4379 echo 't clr' >>$CONFIG_STATUS
4380 echo ': clr' >>$CONFIG_STATUS
4381 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4383 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4387 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4388 rm -f conftest.defines
4389 mv conftest.tail conftest.defines
4391 rm -f conftest.defines
4392 echo ' fi # egrep' >>$CONFIG_STATUS
4393 echo >>$CONFIG_STATUS
4395 # Break up conftest.undefs because some shells have a limit on the size
4396 # of here documents, and old seds have small limits too (100 cmds).
4397 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4399 while grep . conftest.undefs >/dev/null
4401 # Write a limited-size here document to $tmp/undefs.sed.
4402 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4403 # Speed up: don't consider the non `#undef'
4404 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4405 # Work around the forget-to-reset-the-flag bug.
4406 echo 't clr' >>$CONFIG_STATUS
4407 echo ': clr' >>$CONFIG_STATUS
4408 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4410 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4414 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4415 rm -f conftest.undefs
4416 mv conftest.tail conftest.undefs
4418 rm -f conftest.undefs
4420 cat >>$CONFIG_STATUS <<\EOF
4421 # Let's still pretend it is `configure' which instantiates (i.e., don't
4422 # use $as_me), people would be surprised to read:
4423 # /* config.h. Generated automatically by config.status. */
4424 if test x"$ac_file" = x-; then
4425 echo "/* Generated automatically by configure. */" >$tmp/config.h
4427 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4429 cat $tmp/in >>$tmp/config.h
4431 if test x"$ac_file" != x-; then
4432 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4433 { echo "$as_me:4433: $ac_file is unchanged" >&5
4434 echo "$as_me: $ac_file is unchanged" >&6;}
4436 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4437 X"$ac_file" : 'X\(//\)[^/]' \| \
4438 X"$ac_file" : 'X\(//\)$' \| \
4439 X"$ac_file" : 'X\(/\)' \| \
4440 . : '\(.\)' 2>/dev/null ||
4442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4444 /^X\(\/\/\)$/{ s//\1/; q; }
4445 /^X\(\/\).*/{ s//\1/; q; }
4447 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4449 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4453 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4454 case $as_mkdir_dir in
4455 # Skip DOS drivespec
4456 ?:) as_incr_dir=$as_mkdir_dir ;;
4458 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4459 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4466 mv $tmp/config.h $ac_file
4474 cat >>$CONFIG_STATUS <<\EOF
4477 # CONFIG_COMMANDS section.
4479 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4480 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4481 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4484 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
4489 cat >>$CONFIG_STATUS <<\EOF
4491 { (exit 0); exit 0; }
4493 chmod +x $CONFIG_STATUS
4494 ac_clean_files=$ac_clean_files_save
4496 # configure is writing to config.log, and then calls config.status.
4497 # config.status does its own redirection, appending to config.log.
4498 # Unfortunately, on DOS this fails, as config.log is still kept open
4499 # by configure, so config.status won't be able to write to it; its
4500 # output is simply discarded. So we exec the FD to /dev/null,
4501 # effectively closing config.log, so it can be properly (re)opened and
4502 # appended to by config.status. When coming back to configure, we
4503 # need to make the FD available again.
4504 if test "$no_create" != yes; then
4507 $SHELL $CONFIG_STATUS || ac_cs_success=false
4509 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4510 # would make configure fail if this is the last instruction.
4511 $ac_cs_success || { (exit 1); exit 1; }