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"
937 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
938 if test -f $ac_dir/install-sh; then
940 ac_install_sh="$ac_aux_dir/install-sh -c"
942 elif test -f $ac_dir/install.sh; then
944 ac_install_sh="$ac_aux_dir/install.sh -c"
946 elif test -f $ac_dir/shtool; then
948 ac_install_sh="$ac_aux_dir/shtool install -c"
952 if test -z "$ac_aux_dir"; then
953 { { echo "$as_me:953: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
954 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
955 { (exit 1); exit 1; }; }
957 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
958 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
959 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
961 # Find a good install program. We prefer a C program (faster),
962 # so one script is as good as another. But avoid the broken or
963 # incompatible versions:
964 # SysV /etc/install, /usr/sbin/install
965 # SunOS /usr/etc/install
968 # AmigaOS /C/install, which installs bootblocks on floppy discs
969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
972 # ./install, which can be erroneously created by make from ./install.sh.
973 echo "$as_me:973: checking for a BSD compatible install" >&5
974 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
975 if test -z "$INSTALL"; then
976 if test "${ac_cv_path_install+set}" = set; then
977 echo $ECHO_N "(cached) $ECHO_C" >&6
979 ac_save_IFS=$IFS; IFS=$ac_path_separator
980 for ac_dir in $PATH; do
982 # Account for people who put trailing slashes in PATH elements.
984 / | ./ | .// | /cC/* \
985 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
988 # OSF1 and SCO ODT 3.0 have their own names for install.
989 # Don't use installbsd from OSF since it installs stuff as root
991 for ac_prog in ginstall scoinst install; do
992 if $as_executable_p "$ac_dir/$ac_prog"; then
993 if test $ac_prog = install &&
994 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
995 # AIX install. It has an incompatible calling convention.
997 elif test $ac_prog = install &&
998 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
999 # program-specific install script used by HP pwplus--don't use.
1002 ac_cv_path_install="$ac_dir/$ac_prog -c"
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL=$ac_cv_path_install
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL=$ac_install_sh
1022 echo "$as_me:1022: result: $INSTALL" >&5
1023 echo "${ECHO_T}$INSTALL" >&6
1025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1026 # It thinks the first close brace ends the variable substitution.
1027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1033 echo "$as_me:1033: checking whether build environment is sane" >&5
1034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1037 echo timestamp > conftestfile
1038 # Do `set' in a subshell so we don't clobber the current shell's
1039 # arguments. Must try -L first in case configure is actually a
1040 # symlink; some systems play weird games with the mod time of symlinks
1041 # (eg FreeBSD returns the mod time of the symlink's containing
1044 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1045 if test "$*" = "X"; then
1047 set X `ls -t $srcdir/configure conftestfile`
1049 if test "$*" != "X $srcdir/configure conftestfile" \
1050 && test "$*" != "X conftestfile $srcdir/configure"; then
1052 # If neither matched, then we have a broken ls. This can happen
1053 # if, for instance, CONFIG_SHELL is bash and it inherits a
1054 # broken ls alias from the environment. This has actually
1055 # happened. Such a system could not be considered "sane".
1056 { { echo "$as_me:1056: error: ls -t appears to fail. Make sure there is not a broken
1057 alias in your environment" >&5
1058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1059 alias in your environment" >&2;}
1060 { (exit 1); exit 1; }; }
1063 test "$2" = conftestfile
1069 { { echo "$as_me:1069: error: newly created file is older than distributed files!
1070 Check your system clock" >&5
1071 echo "$as_me: error: newly created file is older than distributed files!
1072 Check your system clock" >&2;}
1073 { (exit 1); exit 1; }; }
1076 echo "$as_me:1076: result: yes" >&5
1077 echo "${ECHO_T}yes" >&6
1078 test "$program_prefix" != NONE &&
1079 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1080 # Use a double $ so make ignores it.
1081 test "$program_suffix" != NONE &&
1082 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1083 # Double any \ or $. echo might interpret backslashes.
1084 # By default was `s,x,x', remove it if useless.
1085 cat <<\_ACEOF >conftest.sed
1086 s/[\\$]/&&/g;s/;s,x,x,$//
1088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1091 echo "$as_me:1091: checking whether ${MAKE-make} sets \${MAKE}" >&5
1092 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1093 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1094 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1095 echo $ECHO_N "(cached) $ECHO_C" >&6
1097 cat >conftest.make <<\EOF
1099 @echo 'ac_maketemp="${MAKE}"'
1101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1102 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1103 if test -n "$ac_maketemp"; then
1104 eval ac_cv_prog_make_${ac_make}_set=yes
1106 eval ac_cv_prog_make_${ac_make}_set=no
1110 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1111 echo "$as_me:1111: result: yes" >&5
1112 echo "${ECHO_T}yes" >&6
1115 echo "$as_me:1115: result: no" >&5
1116 echo "${ECHO_T}no" >&6
1117 SET_MAKE="MAKE=${MAKE-make}"
1124 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1125 { { echo "$as_me:1125: error: source directory already configured; run \"make distclean\" there first" >&5
1126 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1127 { (exit 1); exit 1; }; }
1130 cat >>confdefs.h <<EOF
1131 #define PACKAGE "$PACKAGE"
1134 cat >>confdefs.h <<EOF
1135 #define VERSION "$VERSION"
1138 missing_dir=`cd $ac_aux_dir && pwd`
1139 echo "$as_me:1139: checking for working aclocal" >&5
1140 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1141 # Run test in a subshell; some versions of sh will print an error if
1142 # an executable is not found, even if stderr is redirected.
1143 # Redirect stdin to placate older versions of autoconf. Sigh.
1144 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1146 echo "$as_me:1146: result: found" >&5
1147 echo "${ECHO_T}found" >&6
1149 ACLOCAL="$missing_dir/missing aclocal"
1150 echo "$as_me:1150: result: missing" >&5
1151 echo "${ECHO_T}missing" >&6
1154 echo "$as_me:1154: checking for working autoconf" >&5
1155 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1156 # Run test in a subshell; some versions of sh will print an error if
1157 # an executable is not found, even if stderr is redirected.
1158 # Redirect stdin to placate older versions of autoconf. Sigh.
1159 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1161 echo "$as_me:1161: result: found" >&5
1162 echo "${ECHO_T}found" >&6
1164 AUTOCONF="$missing_dir/missing autoconf"
1165 echo "$as_me:1165: result: missing" >&5
1166 echo "${ECHO_T}missing" >&6
1169 echo "$as_me:1169: checking for working automake" >&5
1170 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1171 # Run test in a subshell; some versions of sh will print an error if
1172 # an executable is not found, even if stderr is redirected.
1173 # Redirect stdin to placate older versions of autoconf. Sigh.
1174 if (automake --version) < /dev/null > /dev/null 2>&1; then
1176 echo "$as_me:1176: result: found" >&5
1177 echo "${ECHO_T}found" >&6
1179 AUTOMAKE="$missing_dir/missing automake"
1180 echo "$as_me:1180: result: missing" >&5
1181 echo "${ECHO_T}missing" >&6
1184 echo "$as_me:1184: checking for working autoheader" >&5
1185 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1186 # Run test in a subshell; some versions of sh will print an error if
1187 # an executable is not found, even if stderr is redirected.
1188 # Redirect stdin to placate older versions of autoconf. Sigh.
1189 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1190 AUTOHEADER=autoheader
1191 echo "$as_me:1191: result: found" >&5
1192 echo "${ECHO_T}found" >&6
1194 AUTOHEADER="$missing_dir/missing autoheader"
1195 echo "$as_me:1195: result: missing" >&5
1196 echo "${ECHO_T}missing" >&6
1199 echo "$as_me:1199: checking for working makeinfo" >&5
1200 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1201 # Run test in a subshell; some versions of sh will print an error if
1202 # an executable is not found, even if stderr is redirected.
1203 # Redirect stdin to placate older versions of autoconf. Sigh.
1204 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1206 echo "$as_me:1206: result: found" >&5
1207 echo "${ECHO_T}found" >&6
1209 MAKEINFO="$missing_dir/missing makeinfo"
1210 echo "$as_me:1210: result: missing" >&5
1211 echo "${ECHO_T}missing" >&6
1214 echo "$as_me:1214: checking whether to enable maintainer-specific portions of Makefiles" >&5
1215 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1216 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1217 if test "${enable_maintainer_mode+set}" = set; then
1218 enableval="$enable_maintainer_mode"
1219 USE_MAINTAINER_MODE=$enableval
1221 USE_MAINTAINER_MODE=no
1223 echo "$as_me:1223: result: $USE_MAINTAINER_MODE" >&5
1224 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1226 if test $USE_MAINTAINER_MODE = yes; then
1227 MAINTAINER_MODE_TRUE=
1228 MAINTAINER_MODE_FALSE='#'
1230 MAINTAINER_MODE_TRUE='#'
1231 MAINTAINER_MODE_FALSE=
1233 MAINT=$MAINTAINER_MODE_TRUE
1235 GLIB_REQUIRED=1.3.12
1237 if test -f ../NOINST_GOB ; then
1240 echo "$as_me:1240: result: *** NOT Going to install GOB ***" >&5
1241 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1242 SUBDIRS="src examples"
1247 SUBDIRS="src examples doc"
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 if test -n "$ac_tool_prefix"; then
1257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 if test -n "$CC"; then
1265 ac_cv_prog_CC="$CC" # Let the user override the test.
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1281 if test -n "$CC"; then
1282 echo "$as_me:1282: result: $CC" >&5
1283 echo "${ECHO_T}$CC" >&6
1285 echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1290 if test -z "$ac_cv_prog_CC"; then
1292 # Extract the first word of "gcc", so it can be a program name with args.
1293 set dummy gcc; ac_word=$2
1294 echo "$as_me:1294: checking for $ac_word" >&5
1295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1296 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1297 echo $ECHO_N "(cached) $ECHO_C" >&6
1299 if test -n "$ac_ct_CC"; then
1300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1302 ac_save_IFS=$IFS; IFS=$ac_path_separator
1304 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 $as_executable_p "$ac_dir/$ac_word" || continue
1308 ac_cv_prog_ac_ct_CC="gcc"
1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1315 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1316 if test -n "$ac_ct_CC"; then
1317 echo "$as_me:1317: result: $ac_ct_CC" >&5
1318 echo "${ECHO_T}$ac_ct_CC" >&6
1320 echo "$as_me:1320: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1329 if test -z "$CC"; then
1330 if test -n "$ac_tool_prefix"; then
1331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1332 set dummy ${ac_tool_prefix}cc; ac_word=$2
1333 echo "$as_me:1333: checking for $ac_word" >&5
1334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335 if test "${ac_cv_prog_CC+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1338 if test -n "$CC"; then
1339 ac_cv_prog_CC="$CC" # Let the user override the test.
1341 ac_save_IFS=$IFS; IFS=$ac_path_separator
1343 for ac_dir in $ac_dummy; do
1345 test -z "$ac_dir" && ac_dir=.
1346 $as_executable_p "$ac_dir/$ac_word" || continue
1347 ac_cv_prog_CC="${ac_tool_prefix}cc"
1348 echo "$as_me:1348: found $ac_dir/$ac_word" >&5
1355 if test -n "$CC"; then
1356 echo "$as_me:1356: result: $CC" >&5
1357 echo "${ECHO_T}$CC" >&6
1359 echo "$as_me:1359: result: no" >&5
1360 echo "${ECHO_T}no" >&6
1364 if test -z "$ac_cv_prog_CC"; then
1366 # Extract the first word of "cc", so it can be a program name with args.
1367 set dummy cc; ac_word=$2
1368 echo "$as_me:1368: checking for $ac_word" >&5
1369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1373 if test -n "$ac_ct_CC"; then
1374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1376 ac_save_IFS=$IFS; IFS=$ac_path_separator
1378 for ac_dir in $ac_dummy; do
1380 test -z "$ac_dir" && ac_dir=.
1381 $as_executable_p "$ac_dir/$ac_word" || continue
1382 ac_cv_prog_ac_ct_CC="cc"
1383 echo "$as_me:1383: found $ac_dir/$ac_word" >&5
1389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1390 if test -n "$ac_ct_CC"; then
1391 echo "$as_me:1391: result: $ac_ct_CC" >&5
1392 echo "${ECHO_T}$ac_ct_CC" >&6
1394 echo "$as_me:1394: result: no" >&5
1395 echo "${ECHO_T}no" >&6
1404 if test -z "$CC"; then
1405 # Extract the first word of "cc", so it can be a program name with args.
1406 set dummy cc; ac_word=$2
1407 echo "$as_me:1407: checking for $ac_word" >&5
1408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1409 if test "${ac_cv_prog_CC+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1412 if test -n "$CC"; then
1413 ac_cv_prog_CC="$CC" # Let the user override the test.
1416 ac_save_IFS=$IFS; IFS=$ac_path_separator
1418 for ac_dir in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir=.
1421 $as_executable_p "$ac_dir/$ac_word" || continue
1422 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1423 ac_prog_rejected=yes
1427 echo "$as_me:1427: found $ac_dir/$ac_word" >&5
1431 if test $ac_prog_rejected = yes; then
1432 # We found a bogon in the path, so make sure we never use it.
1433 set dummy $ac_cv_prog_CC
1435 if test $# != 0; then
1436 # We chose a different compiler from the bogus one.
1437 # However, it has the same basename, so the bogon will be chosen
1438 # first if we set CC to just the basename; use the full file name.
1440 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1448 if test -n "$CC"; then
1449 echo "$as_me:1449: result: $CC" >&5
1450 echo "${ECHO_T}$CC" >&6
1452 echo "$as_me:1452: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1457 if test -z "$CC"; then
1458 if test -n "$ac_tool_prefix"; then
1461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1463 echo "$as_me:1463: checking for $ac_word" >&5
1464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1465 if test "${ac_cv_prog_CC+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 if test -n "$CC"; then
1469 ac_cv_prog_CC="$CC" # Let the user override the test.
1471 ac_save_IFS=$IFS; IFS=$ac_path_separator
1473 for ac_dir in $ac_dummy; do
1475 test -z "$ac_dir" && ac_dir=.
1476 $as_executable_p "$ac_dir/$ac_word" || continue
1477 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1478 echo "$as_me:1478: found $ac_dir/$ac_word" >&5
1485 if test -n "$CC"; then
1486 echo "$as_me:1486: result: $CC" >&5
1487 echo "${ECHO_T}$CC" >&6
1489 echo "$as_me:1489: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1493 test -n "$CC" && break
1496 if test -z "$CC"; then
1500 # Extract the first word of "$ac_prog", so it can be a program name with args.
1501 set dummy $ac_prog; ac_word=$2
1502 echo "$as_me:1502: checking for $ac_word" >&5
1503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1507 if test -n "$ac_ct_CC"; then
1508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1510 ac_save_IFS=$IFS; IFS=$ac_path_separator
1512 for ac_dir in $ac_dummy; do
1514 test -z "$ac_dir" && ac_dir=.
1515 $as_executable_p "$ac_dir/$ac_word" || continue
1516 ac_cv_prog_ac_ct_CC="$ac_prog"
1517 echo "$as_me:1517: found $ac_dir/$ac_word" >&5
1523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1524 if test -n "$ac_ct_CC"; then
1525 echo "$as_me:1525: result: $ac_ct_CC" >&5
1526 echo "${ECHO_T}$ac_ct_CC" >&6
1528 echo "$as_me:1528: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1532 test -n "$ac_ct_CC" && break
1540 test -z "$CC" && { { echo "$as_me:1540: error: no acceptable cc found in \$PATH" >&5
1541 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1542 { (exit 1); exit 1; }; }
1544 # Provide some information about the compiler.
1545 echo "$as_me:1545:" \
1546 "checking for C compiler version" >&5
1547 ac_compiler=`set X $ac_compile; echo $2`
1548 { (eval echo "$as_me:1548: \"$ac_compiler --version </dev/null >&5\"") >&5
1549 (eval $ac_compiler --version </dev/null >&5) 2>&5
1551 echo "$as_me:1551: \$? = $ac_status" >&5
1552 (exit $ac_status); }
1553 { (eval echo "$as_me:1553: \"$ac_compiler -v </dev/null >&5\"") >&5
1554 (eval $ac_compiler -v </dev/null >&5) 2>&5
1556 echo "$as_me:1556: \$? = $ac_status" >&5
1557 (exit $ac_status); }
1558 { (eval echo "$as_me:1558: \"$ac_compiler -V </dev/null >&5\"") >&5
1559 (eval $ac_compiler -V </dev/null >&5) 2>&5
1561 echo "$as_me:1561: \$? = $ac_status" >&5
1562 (exit $ac_status); }
1564 cat >conftest.$ac_ext <<_ACEOF
1565 #line 1565 "configure"
1566 #include "confdefs.h"
1576 ac_clean_files_save=$ac_clean_files
1577 ac_clean_files="$ac_clean_files a.out a.exe"
1578 # Try to create an executable without -o first, disregard a.out.
1579 # It will help us diagnose broken compilers, and finding out an intuition
1581 echo "$as_me:1581: checking for C compiler default output" >&5
1582 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1583 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1584 if { (eval echo "$as_me:1584: \"$ac_link_default\"") >&5
1585 (eval $ac_link_default) 2>&5
1587 echo "$as_me:1587: \$? = $ac_status" >&5
1588 (exit $ac_status); }; then
1589 # Find the output, starting from the most likely. This scheme is
1590 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1592 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1593 ls a.out conftest 2>/dev/null;
1594 ls a.* conftest.* 2>/dev/null`; do
1596 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1597 a.out ) # We found the default executable, but exeext='' is most
1600 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1601 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1608 echo "$as_me: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1610 { { echo "$as_me:1610: error: C compiler cannot create executables" >&5
1611 echo "$as_me: error: C compiler cannot create executables" >&2;}
1612 { (exit 77); exit 77; }; }
1615 ac_exeext=$ac_cv_exeext
1616 echo "$as_me:1616: result: $ac_file" >&5
1617 echo "${ECHO_T}$ac_file" >&6
1619 # Check the compiler produces executables we can run. If not, either
1620 # the compiler is broken, or we cross compile.
1621 echo "$as_me:1621: checking whether the C compiler works" >&5
1622 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1623 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1624 # If not cross compiling, check that we can run a simple program.
1625 if test "$cross_compiling" != yes; then
1626 if { ac_try='./$ac_file'
1627 { (eval echo "$as_me:1627: \"$ac_try\"") >&5
1630 echo "$as_me:1630: \$? = $ac_status" >&5
1631 (exit $ac_status); }; }; then
1634 if test "$cross_compiling" = maybe; then
1637 { { echo "$as_me:1637: error: cannot run C compiled programs.
1638 If you meant to cross compile, use \`--host'." >&5
1639 echo "$as_me: error: cannot run C compiled programs.
1640 If you meant to cross compile, use \`--host'." >&2;}
1641 { (exit 1); exit 1; }; }
1645 echo "$as_me:1645: result: yes" >&5
1646 echo "${ECHO_T}yes" >&6
1648 rm -f a.out a.exe conftest$ac_cv_exeext
1649 ac_clean_files=$ac_clean_files_save
1650 # Check the compiler produces executables we can run. If not, either
1651 # the compiler is broken, or we cross compile.
1652 echo "$as_me:1652: checking whether we are cross compiling" >&5
1653 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1654 echo "$as_me:1654: result: $cross_compiling" >&5
1655 echo "${ECHO_T}$cross_compiling" >&6
1657 echo "$as_me:1657: checking for executable suffix" >&5
1658 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1659 if { (eval echo "$as_me:1659: \"$ac_link\"") >&5
1660 (eval $ac_link) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); }; then
1664 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1665 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1666 # work properly (i.e., refer to `conftest.exe'), while it won't with
1668 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1670 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1678 { { echo "$as_me:1678: error: cannot compute EXEEXT: cannot compile and link" >&5
1679 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1680 { (exit 1); exit 1; }; }
1683 rm -f conftest$ac_cv_exeext
1684 echo "$as_me:1684: result: $ac_cv_exeext" >&5
1685 echo "${ECHO_T}$ac_cv_exeext" >&6
1687 rm -f conftest.$ac_ext
1688 EXEEXT=$ac_cv_exeext
1690 echo "$as_me:1690: checking for object suffix" >&5
1691 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1692 if test "${ac_cv_objext+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 cat >conftest.$ac_ext <<_ACEOF
1696 #line 1696 "configure"
1697 #include "confdefs.h"
1707 rm -f conftest.o conftest.obj
1708 if { (eval echo "$as_me:1708: \"$ac_compile\"") >&5
1709 (eval $ac_compile) 2>&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }; then
1713 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1716 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1721 echo "$as_me: failed program was:" >&5
1722 cat conftest.$ac_ext >&5
1723 { { echo "$as_me:1723: error: cannot compute OBJEXT: cannot compile" >&5
1724 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1725 { (exit 1); exit 1; }; }
1728 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1730 echo "$as_me:1730: result: $ac_cv_objext" >&5
1731 echo "${ECHO_T}$ac_cv_objext" >&6
1732 OBJEXT=$ac_cv_objext
1734 echo "$as_me:1734: checking whether we are using the GNU C compiler" >&5
1735 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1736 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1737 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 cat >conftest.$ac_ext <<_ACEOF
1740 #line 1740 "configure"
1741 #include "confdefs.h"
1754 rm -f conftest.$ac_objext
1755 if { (eval echo "$as_me:1755: \"$ac_compile\"") >&5
1756 (eval $ac_compile) 2>&5
1758 echo "$as_me:1758: \$? = $ac_status" >&5
1759 (exit $ac_status); } &&
1760 { ac_try='test -s conftest.$ac_objext'
1761 { (eval echo "$as_me:1761: \"$ac_try\"") >&5
1764 echo "$as_me:1764: \$? = $ac_status" >&5
1765 (exit $ac_status); }; }; then
1768 echo "$as_me: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1772 rm -f conftest.$ac_objext conftest.$ac_ext
1773 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1776 echo "$as_me:1776: result: $ac_cv_c_compiler_gnu" >&5
1777 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1778 GCC=`test $ac_compiler_gnu = yes && echo yes`
1779 ac_test_CFLAGS=${CFLAGS+set}
1780 ac_save_CFLAGS=$CFLAGS
1782 echo "$as_me:1782: checking whether $CC accepts -g" >&5
1783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1784 if test "${ac_cv_prog_cc_g+set}" = set; then
1785 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 cat >conftest.$ac_ext <<_ACEOF
1788 #line 1788 "configure"
1789 #include "confdefs.h"
1799 rm -f conftest.$ac_objext
1800 if { (eval echo "$as_me:1800: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); } &&
1805 { ac_try='test -s conftest.$ac_objext'
1806 { (eval echo "$as_me:1806: \"$ac_try\"") >&5
1809 echo "$as_me:1809: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1817 rm -f conftest.$ac_objext conftest.$ac_ext
1819 echo "$as_me:1819: result: $ac_cv_prog_cc_g" >&5
1820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1821 if test "$ac_test_CFLAGS" = set; then
1822 CFLAGS=$ac_save_CFLAGS
1823 elif test $ac_cv_prog_cc_g = yes; then
1824 if test "$GCC" = yes; then
1830 if test "$GCC" = yes; then
1836 # Some people use a C++ compiler to compile C. Since we use `exit',
1837 # in C++ we need to declare it. In case someone uses the same compiler
1838 # for both compiling C and C++ we need to have the C++ compiler decide
1839 # the declaration of exit, since it's the most demanding environment.
1840 cat >conftest.$ac_ext <<_ACEOF
1845 rm -f conftest.$ac_objext
1846 if { (eval echo "$as_me:1846: \"$ac_compile\"") >&5
1847 (eval $ac_compile) 2>&5
1849 echo "$as_me:1849: \$? = $ac_status" >&5
1850 (exit $ac_status); } &&
1851 { ac_try='test -s conftest.$ac_objext'
1852 { (eval echo "$as_me:1852: \"$ac_try\"") >&5
1855 echo "$as_me:1855: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 for ac_declaration in \
1859 '#include <stdlib.h>' \
1860 'extern "C" void std::exit (int) throw (); using std::exit;' \
1861 'extern "C" void std::exit (int); using std::exit;' \
1862 'extern "C" void exit (int) throw ();' \
1863 'extern "C" void exit (int);' \
1866 cat >conftest.$ac_ext <<_ACEOF
1867 #line 1867 "configure"
1868 #include "confdefs.h"
1879 rm -f conftest.$ac_objext
1880 if { (eval echo "$as_me:1880: \"$ac_compile\"") >&5
1881 (eval $ac_compile) 2>&5
1883 echo "$as_me:1883: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try='test -s conftest.$ac_objext'
1886 { (eval echo "$as_me:1886: \"$ac_try\"") >&5
1889 echo "$as_me:1889: \$? = $ac_status" >&5
1890 (exit $ac_status); }; }; then
1893 echo "$as_me: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1897 rm -f conftest.$ac_objext conftest.$ac_ext
1898 cat >conftest.$ac_ext <<_ACEOF
1899 #line 1899 "configure"
1900 #include "confdefs.h"
1910 rm -f conftest.$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1924 echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1927 rm -f conftest.$ac_objext conftest.$ac_ext
1930 if test -n "$ac_declaration"; then
1931 echo '#ifdef __cplusplus' >>confdefs.h
1932 echo $ac_declaration >>confdefs.h
1933 echo '#endif' >>confdefs.h
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 rm -f conftest.$ac_objext conftest.$ac_ext
1942 ac_cpp='$CPP $CPPFLAGS'
1943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947 echo "$as_me:1947: checking for strerror in -lcposix" >&5
1948 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
1949 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 ac_check_lib_save_LIBS=$LIBS
1953 LIBS="-lcposix $LIBS"
1954 cat >conftest.$ac_ext <<_ACEOF
1955 #line 1955 "configure"
1956 #include "confdefs.h"
1958 /* Override any gcc2 internal prototype to avoid an error. */
1962 /* We use char because int might match the return type of a gcc2
1963 builtin and then its argument prototype would still apply. */
1973 rm -f conftest.$ac_objext conftest$ac_exeext
1974 if { (eval echo "$as_me:1974: \"$ac_link\"") >&5
1975 (eval $ac_link) 2>&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest$ac_exeext'
1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_cv_lib_cposix_strerror=yes
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 ac_cv_lib_cposix_strerror=no
1991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1992 LIBS=$ac_check_lib_save_LIBS
1994 echo "$as_me:1994: result: $ac_cv_lib_cposix_strerror" >&5
1995 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
1996 if test $ac_cv_lib_cposix_strerror = yes; then
1997 LIBS="$LIBS -lcposix"
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:2008: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 ac_save_IFS=$IFS; IFS=$ac_path_separator
2018 for ac_dir in $ac_dummy; do
2020 test -z "$ac_dir" && ac_dir=.
2021 $as_executable_p "$ac_dir/$ac_word" || continue
2022 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2023 echo "$as_me:2023: found $ac_dir/$ac_word" >&5
2030 if test -n "$CC"; then
2031 echo "$as_me:2031: result: $CC" >&5
2032 echo "${ECHO_T}$CC" >&6
2034 echo "$as_me:2034: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2039 if test -z "$ac_cv_prog_CC"; then
2041 # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2
2043 echo "$as_me:2043: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051 ac_save_IFS=$IFS; IFS=$ac_path_separator
2053 for ac_dir in $ac_dummy; do
2055 test -z "$ac_dir" && ac_dir=.
2056 $as_executable_p "$ac_dir/$ac_word" || continue
2057 ac_cv_prog_ac_ct_CC="gcc"
2058 echo "$as_me:2058: found $ac_dir/$ac_word" >&5
2064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065 if test -n "$ac_ct_CC"; then
2066 echo "$as_me:2066: result: $ac_ct_CC" >&5
2067 echo "${ECHO_T}$ac_ct_CC" >&6
2069 echo "$as_me:2069: result: no" >&5
2070 echo "${ECHO_T}no" >&6
2078 if test -z "$CC"; then
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}cc; ac_word=$2
2082 echo "$as_me:2082: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084 if test "${ac_cv_prog_CC+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test.
2090 ac_save_IFS=$IFS; IFS=$ac_path_separator
2092 for ac_dir in $ac_dummy; do
2094 test -z "$ac_dir" && ac_dir=.
2095 $as_executable_p "$ac_dir/$ac_word" || continue
2096 ac_cv_prog_CC="${ac_tool_prefix}cc"
2097 echo "$as_me:2097: found $ac_dir/$ac_word" >&5
2104 if test -n "$CC"; then
2105 echo "$as_me:2105: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6
2108 echo "$as_me:2108: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2113 if test -z "$ac_cv_prog_CC"; then
2115 # Extract the first word of "cc", so it can be a program name with args.
2116 set dummy cc; ac_word=$2
2117 echo "$as_me:2117: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 if test -n "$ac_ct_CC"; then
2123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125 ac_save_IFS=$IFS; IFS=$ac_path_separator
2127 for ac_dir in $ac_dummy; do
2129 test -z "$ac_dir" && ac_dir=.
2130 $as_executable_p "$ac_dir/$ac_word" || continue
2131 ac_cv_prog_ac_ct_CC="cc"
2132 echo "$as_me:2132: found $ac_dir/$ac_word" >&5
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140 echo "$as_me:2140: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6
2143 echo "$as_me:2143: result: no" >&5
2144 echo "${ECHO_T}no" >&6
2153 if test -z "$CC"; then
2154 # Extract the first word of "cc", so it can be a program name with args.
2155 set dummy cc; ac_word=$2
2156 echo "$as_me:2156: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158 if test "${ac_cv_prog_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC="$CC" # Let the user override the test.
2165 ac_save_IFS=$IFS; IFS=$ac_path_separator
2167 for ac_dir in $ac_dummy; do
2169 test -z "$ac_dir" && ac_dir=.
2170 $as_executable_p "$ac_dir/$ac_word" || continue
2171 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2172 ac_prog_rejected=yes
2176 echo "$as_me:2176: found $ac_dir/$ac_word" >&5
2180 if test $ac_prog_rejected = yes; then
2181 # We found a bogon in the path, so make sure we never use it.
2182 set dummy $ac_cv_prog_CC
2184 if test $# != 0; then
2185 # We chose a different compiler from the bogus one.
2186 # However, it has the same basename, so the bogon will be chosen
2187 # first if we set CC to just the basename; use the full file name.
2189 set dummy "$ac_dir/$ac_word" ${1+"$@"}
2197 if test -n "$CC"; then
2198 echo "$as_me:2198: result: $CC" >&5
2199 echo "${ECHO_T}$CC" >&6
2201 echo "$as_me:2201: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2206 if test -z "$CC"; then
2207 if test -n "$ac_tool_prefix"; then
2210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212 echo "$as_me:2212: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 ac_save_IFS=$IFS; IFS=$ac_path_separator
2222 for ac_dir in $ac_dummy; do
2224 test -z "$ac_dir" && ac_dir=.
2225 $as_executable_p "$ac_dir/$ac_word" || continue
2226 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2227 echo "$as_me:2227: found $ac_dir/$ac_word" >&5
2234 if test -n "$CC"; then
2235 echo "$as_me:2235: result: $CC" >&5
2236 echo "${ECHO_T}$CC" >&6
2238 echo "$as_me:2238: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2242 test -n "$CC" && break
2245 if test -z "$CC"; then
2249 # Extract the first word of "$ac_prog", so it can be a program name with args.
2250 set dummy $ac_prog; ac_word=$2
2251 echo "$as_me:2251: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$ac_ct_CC"; then
2257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2259 ac_save_IFS=$IFS; IFS=$ac_path_separator
2261 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 $as_executable_p "$ac_dir/$ac_word" || continue
2265 ac_cv_prog_ac_ct_CC="$ac_prog"
2266 echo "$as_me:2266: found $ac_dir/$ac_word" >&5
2272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273 if test -n "$ac_ct_CC"; then
2274 echo "$as_me:2274: result: $ac_ct_CC" >&5
2275 echo "${ECHO_T}$ac_ct_CC" >&6
2277 echo "$as_me:2277: result: no" >&5
2278 echo "${ECHO_T}no" >&6
2281 test -n "$ac_ct_CC" && break
2289 test -z "$CC" && { { echo "$as_me:2289: error: no acceptable cc found in \$PATH" >&5
2290 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2291 { (exit 1); exit 1; }; }
2293 # Provide some information about the compiler.
2294 echo "$as_me:2294:" \
2295 "checking for C compiler version" >&5
2296 ac_compiler=`set X $ac_compile; echo $2`
2297 { (eval echo "$as_me:2297: \"$ac_compiler --version </dev/null >&5\"") >&5
2298 (eval $ac_compiler --version </dev/null >&5) 2>&5
2300 echo "$as_me:2300: \$? = $ac_status" >&5
2301 (exit $ac_status); }
2302 { (eval echo "$as_me:2302: \"$ac_compiler -v </dev/null >&5\"") >&5
2303 (eval $ac_compiler -v </dev/null >&5) 2>&5
2305 echo "$as_me:2305: \$? = $ac_status" >&5
2306 (exit $ac_status); }
2307 { (eval echo "$as_me:2307: \"$ac_compiler -V </dev/null >&5\"") >&5
2308 (eval $ac_compiler -V </dev/null >&5) 2>&5
2310 echo "$as_me:2310: \$? = $ac_status" >&5
2311 (exit $ac_status); }
2313 echo "$as_me:2313: checking whether we are using the GNU C compiler" >&5
2314 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2315 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line 2319 "configure"
2320 #include "confdefs.h"
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:2334: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:2337: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:2340: \"$ac_try\"") >&5
2343 echo "$as_me:2343: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2351 rm -f conftest.$ac_objext conftest.$ac_ext
2352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2355 echo "$as_me:2355: result: $ac_cv_c_compiler_gnu" >&5
2356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357 GCC=`test $ac_compiler_gnu = yes && echo yes`
2358 ac_test_CFLAGS=${CFLAGS+set}
2359 ac_save_CFLAGS=$CFLAGS
2361 echo "$as_me:2361: checking whether $CC accepts -g" >&5
2362 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363 if test "${ac_cv_prog_cc_g+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 cat >conftest.$ac_ext <<_ACEOF
2367 #line 2367 "configure"
2368 #include "confdefs.h"
2378 rm -f conftest.$ac_objext
2379 if { (eval echo "$as_me:2379: \"$ac_compile\"") >&5
2380 (eval $ac_compile) 2>&5
2382 echo "$as_me:2382: \$? = $ac_status" >&5
2383 (exit $ac_status); } &&
2384 { ac_try='test -s conftest.$ac_objext'
2385 { (eval echo "$as_me:2385: \"$ac_try\"") >&5
2388 echo "$as_me:2388: \$? = $ac_status" >&5
2389 (exit $ac_status); }; }; then
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2396 rm -f conftest.$ac_objext conftest.$ac_ext
2398 echo "$as_me:2398: result: $ac_cv_prog_cc_g" >&5
2399 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2400 if test "$ac_test_CFLAGS" = set; then
2401 CFLAGS=$ac_save_CFLAGS
2402 elif test $ac_cv_prog_cc_g = yes; then
2403 if test "$GCC" = yes; then
2409 if test "$GCC" = yes; then
2415 # Some people use a C++ compiler to compile C. Since we use `exit',
2416 # in C++ we need to declare it. In case someone uses the same compiler
2417 # for both compiling C and C++ we need to have the C++ compiler decide
2418 # the declaration of exit, since it's the most demanding environment.
2419 cat >conftest.$ac_ext <<_ACEOF
2424 rm -f conftest.$ac_objext
2425 if { (eval echo "$as_me:2425: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>&5
2428 echo "$as_me:2428: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:2431: \"$ac_try\"") >&5
2434 echo "$as_me:2434: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2436 for ac_declaration in \
2438 '#include <stdlib.h>' \
2439 'extern "C" void std::exit (int) throw (); using std::exit;' \
2440 'extern "C" void std::exit (int); using std::exit;' \
2441 'extern "C" void exit (int) throw ();' \
2442 'extern "C" void exit (int);' \
2445 cat >conftest.$ac_ext <<_ACEOF
2446 #line 2446 "configure"
2447 #include "confdefs.h"
2458 rm -f conftest.$ac_objext
2459 if { (eval echo "$as_me:2459: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>&5
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest.$ac_objext'
2465 { (eval echo "$as_me:2465: \"$ac_try\"") >&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2476 rm -f conftest.$ac_objext conftest.$ac_ext
2477 cat >conftest.$ac_ext <<_ACEOF
2478 #line 2478 "configure"
2479 #include "confdefs.h"
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:2490: \"$ac_compile\"") >&5
2491 (eval $ac_compile) 2>&5
2493 echo "$as_me:2493: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -s conftest.$ac_objext'
2496 { (eval echo "$as_me:2496: \"$ac_try\"") >&5
2499 echo "$as_me:2499: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2503 echo "$as_me: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2509 if test -n "$ac_declaration"; then
2510 echo '#ifdef __cplusplus' >>confdefs.h
2511 echo $ac_declaration >>confdefs.h
2512 echo '#endif' >>confdefs.h
2516 echo "$as_me: failed program was:" >&5
2517 cat conftest.$ac_ext >&5
2519 rm -f conftest.$ac_objext conftest.$ac_ext
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 echo "$as_me:2531: checking how to run the C preprocessor" >&5
2532 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2533 # On Suns, sometimes $CPP names a directory.
2534 if test -n "$CPP" && test -d "$CPP"; then
2537 if test -z "$CPP"; then
2538 if test "${ac_cv_prog_CPP+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 # Double quotes because CPP needs to be expanded
2542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2545 for ac_c_preproc_warn_flag in '' yes
2547 # Use a header file that comes with gcc, so configuring glibc
2548 # with a fresh cross-compiler works.
2549 # On the NeXT, cc -E runs the code through the compiler's parser,
2550 # not just through cpp. "Syntax error" is here to catch this case.
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line 2552 "configure"
2553 #include "confdefs.h"
2557 if { (eval echo "$as_me:2557: \"$ac_cpp conftest.$ac_ext\"") >&5
2558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2560 egrep -v '^ *\+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 echo "$as_me:2563: \$? = $ac_status" >&5
2564 (exit $ac_status); } >/dev/null; then
2565 if test -s conftest.err; then
2566 ac_cpp_err=$ac_c_preproc_warn_flag
2573 if test -z "$ac_cpp_err"; then
2576 echo "$as_me: failed program was:" >&5
2577 cat conftest.$ac_ext >&5
2578 # Broken: fails on valid input.
2581 rm -f conftest.err conftest.$ac_ext
2583 # OK, works on sane cases. Now check whether non-existent headers
2584 # can be detected and how.
2585 cat >conftest.$ac_ext <<_ACEOF
2586 #line 2586 "configure"
2587 #include "confdefs.h"
2588 #include <ac_nonexistent.h>
2590 if { (eval echo "$as_me:2590: \"$ac_cpp conftest.$ac_ext\"") >&5
2591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593 egrep -v '^ *\+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:2596: \$? = $ac_status" >&5
2597 (exit $ac_status); } >/dev/null; then
2598 if test -s conftest.err; then
2599 ac_cpp_err=$ac_c_preproc_warn_flag
2606 if test -z "$ac_cpp_err"; then
2607 # Broken: success on invalid input.
2610 echo "$as_me: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2612 # Passes both tests.
2616 rm -f conftest.err conftest.$ac_ext
2619 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2620 rm -f conftest.err conftest.$ac_ext
2621 if $ac_preproc_ok; then
2633 echo "$as_me:2633: result: $CPP" >&5
2634 echo "${ECHO_T}$CPP" >&6
2636 for ac_c_preproc_warn_flag in '' yes
2638 # Use a header file that comes with gcc, so configuring glibc
2639 # with a fresh cross-compiler works.
2640 # On the NeXT, cc -E runs the code through the compiler's parser,
2641 # not just through cpp. "Syntax error" is here to catch this case.
2642 cat >conftest.$ac_ext <<_ACEOF
2643 #line 2643 "configure"
2644 #include "confdefs.h"
2648 if { (eval echo "$as_me:2648: \"$ac_cpp conftest.$ac_ext\"") >&5
2649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2651 egrep -v '^ *\+' conftest.er1 >conftest.err
2653 cat conftest.err >&5
2654 echo "$as_me:2654: \$? = $ac_status" >&5
2655 (exit $ac_status); } >/dev/null; then
2656 if test -s conftest.err; then
2657 ac_cpp_err=$ac_c_preproc_warn_flag
2664 if test -z "$ac_cpp_err"; then
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2669 # Broken: fails on valid input.
2672 rm -f conftest.err conftest.$ac_ext
2674 # OK, works on sane cases. Now check whether non-existent headers
2675 # can be detected and how.
2676 cat >conftest.$ac_ext <<_ACEOF
2677 #line 2677 "configure"
2678 #include "confdefs.h"
2679 #include <ac_nonexistent.h>
2681 if { (eval echo "$as_me:2681: \"$ac_cpp conftest.$ac_ext\"") >&5
2682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2684 egrep -v '^ *\+' conftest.er1 >conftest.err
2686 cat conftest.err >&5
2687 echo "$as_me:2687: \$? = $ac_status" >&5
2688 (exit $ac_status); } >/dev/null; then
2689 if test -s conftest.err; then
2690 ac_cpp_err=$ac_c_preproc_warn_flag
2697 if test -z "$ac_cpp_err"; then
2698 # Broken: success on invalid input.
2701 echo "$as_me: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2703 # Passes both tests.
2707 rm -f conftest.err conftest.$ac_ext
2710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2711 rm -f conftest.err conftest.$ac_ext
2712 if $ac_preproc_ok; then
2715 { { echo "$as_me:2715: error: C preprocessor \"$CPP\" fails sanity check" >&5
2716 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2717 { (exit 1); exit 1; }; }
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726 echo "$as_me:2726: checking for ANSI C header files" >&5
2727 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2728 if test "${ac_cv_header_stdc+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 cat >conftest.$ac_ext <<_ACEOF
2732 #line 2732 "configure"
2733 #include "confdefs.h"
2740 if { (eval echo "$as_me:2740: \"$ac_cpp conftest.$ac_ext\"") >&5
2741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2743 egrep -v '^ *\+' conftest.er1 >conftest.err
2745 cat conftest.err >&5
2746 echo "$as_me:2746: \$? = $ac_status" >&5
2747 (exit $ac_status); } >/dev/null; then
2748 if test -s conftest.err; then
2749 ac_cpp_err=$ac_c_preproc_warn_flag
2756 if test -z "$ac_cpp_err"; then
2757 ac_cv_header_stdc=yes
2759 echo "$as_me: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 ac_cv_header_stdc=no
2763 rm -f conftest.err conftest.$ac_ext
2765 if test $ac_cv_header_stdc = yes; then
2766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2767 cat >conftest.$ac_ext <<_ACEOF
2768 #line 2768 "configure"
2769 #include "confdefs.h"
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "memchr" >/dev/null 2>&1; then
2777 ac_cv_header_stdc=no
2783 if test $ac_cv_header_stdc = yes; then
2784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #line 2786 "configure"
2787 #include "confdefs.h"
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 egrep "free" >/dev/null 2>&1; then
2795 ac_cv_header_stdc=no
2801 if test $ac_cv_header_stdc = yes; then
2802 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2803 if test "$cross_compiling" = yes; then
2806 cat >conftest.$ac_ext <<_ACEOF
2807 #line 2807 "configure"
2808 #include "confdefs.h"
2810 #if ((' ' & 0x0FF) == 0x020)
2811 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2812 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2814 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2815 || ('j' <= (c) && (c) <= 'r') \
2816 || ('s' <= (c) && (c) <= 'z'))
2817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2825 for (i = 0; i < 256; i++)
2826 if (XOR (islower (i), ISLOWER (i))
2827 || toupper (i) != TOUPPER (i))
2832 rm -f conftest$ac_exeext
2833 if { (eval echo "$as_me:2833: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>&5
2836 echo "$as_me:2836: \$? = $ac_status" >&5
2837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2838 { (eval echo "$as_me:2838: \"$ac_try\"") >&5
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2845 echo "$as_me: program exited with status $ac_status" >&5
2846 echo "$as_me: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2848 ac_cv_header_stdc=no
2850 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2854 echo "$as_me:2854: result: $ac_cv_header_stdc" >&5
2855 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2856 if test $ac_cv_header_stdc = yes; then
2858 cat >>confdefs.h <<\EOF
2859 #define STDC_HEADERS 1
2864 for ac_prog in 'bison -y' byacc
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 echo "$as_me:2868: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2870 if test "${ac_cv_prog_YACC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$YACC"; then
2874 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2876 ac_save_IFS=$IFS; IFS=$ac_path_separator
2878 for ac_dir in $ac_dummy; do
2880 test -z "$ac_dir" && ac_dir=.
2881 $as_executable_p "$ac_dir/$ac_word" || continue
2882 ac_cv_prog_YACC="$ac_prog"
2883 echo "$as_me:2883: found $ac_dir/$ac_word" >&5
2889 YACC=$ac_cv_prog_YACC
2890 if test -n "$YACC"; then
2891 echo "$as_me:2891: result: $YACC" >&5
2892 echo "${ECHO_T}$YACC" >&6
2894 echo "$as_me:2894: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2898 test -n "$YACC" && break
2900 test -n "$YACC" || YACC="yacc"
2902 missing_dir=`cd $ac_aux_dir && pwd`
2903 for ac_prog in flex lex
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 echo "$as_me:2907: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909 if test "${ac_cv_prog_LEX+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$LEX"; then
2913 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2915 ac_save_IFS=$IFS; IFS=$ac_path_separator
2917 for ac_dir in $ac_dummy; do
2919 test -z "$ac_dir" && ac_dir=.
2920 $as_executable_p "$ac_dir/$ac_word" || continue
2921 ac_cv_prog_LEX="$ac_prog"
2922 echo "$as_me:2922: found $ac_dir/$ac_word" >&5
2929 if test -n "$LEX"; then
2930 echo "$as_me:2930: result: $LEX" >&5
2931 echo "${ECHO_T}$LEX" >&6
2933 echo "$as_me:2933: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2937 test -n "$LEX" && break
2939 test -n "$LEX" || LEX=""$missing_dir/missing flex""
2941 for ac_prog in flex lex
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 echo "$as_me:2945: checking for $ac_word" >&5
2946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2947 if test "${ac_cv_prog_LEX+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 if test -n "$LEX"; then
2951 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2953 ac_save_IFS=$IFS; IFS=$ac_path_separator
2955 for ac_dir in $ac_dummy; do
2957 test -z "$ac_dir" && ac_dir=.
2958 $as_executable_p "$ac_dir/$ac_word" || continue
2959 ac_cv_prog_LEX="$ac_prog"
2960 echo "$as_me:2960: found $ac_dir/$ac_word" >&5
2967 if test -n "$LEX"; then
2968 echo "$as_me:2968: result: $LEX" >&5
2969 echo "${ECHO_T}$LEX" >&6
2971 echo "$as_me:2971: result: no" >&5
2972 echo "${ECHO_T}no" >&6
2975 test -n "$LEX" && break
2977 test -n "$LEX" || LEX=":"
2979 if test -z "$LEXLIB"
2981 echo "$as_me:2981: checking for yywrap in -lfl" >&5
2982 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2983 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 ac_check_lib_save_LIBS=$LIBS
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line 2989 "configure"
2990 #include "confdefs.h"
2992 /* Override any gcc2 internal prototype to avoid an error. */
2996 /* We use char because int might match the return type of a gcc2
2997 builtin and then its argument prototype would still apply. */
3007 rm -f conftest.$ac_objext conftest$ac_exeext
3008 if { (eval echo "$as_me:3008: \"$ac_link\"") >&5
3009 (eval $ac_link) 2>&5
3011 echo "$as_me:3011: \$? = $ac_status" >&5
3012 (exit $ac_status); } &&
3013 { ac_try='test -s conftest$ac_exeext'
3014 { (eval echo "$as_me:3014: \"$ac_try\"") >&5
3017 echo "$as_me:3017: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3019 ac_cv_lib_fl_yywrap=yes
3021 echo "$as_me: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 ac_cv_lib_fl_yywrap=no
3025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3026 LIBS=$ac_check_lib_save_LIBS
3028 echo "$as_me:3028: result: $ac_cv_lib_fl_yywrap" >&5
3029 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3030 if test $ac_cv_lib_fl_yywrap = yes; then
3033 echo "$as_me:3033: checking for yywrap in -ll" >&5
3034 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3035 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 ac_check_lib_save_LIBS=$LIBS
3040 cat >conftest.$ac_ext <<_ACEOF
3041 #line 3041 "configure"
3042 #include "confdefs.h"
3044 /* Override any gcc2 internal prototype to avoid an error. */
3048 /* We use char because int might match the return type of a gcc2
3049 builtin and then its argument prototype would still apply. */
3059 rm -f conftest.$ac_objext conftest$ac_exeext
3060 if { (eval echo "$as_me:3060: \"$ac_link\"") >&5
3061 (eval $ac_link) 2>&5
3063 echo "$as_me:3063: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -s conftest$ac_exeext'
3066 { (eval echo "$as_me:3066: \"$ac_try\"") >&5
3069 echo "$as_me:3069: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 ac_cv_lib_l_yywrap=yes
3073 echo "$as_me: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3075 ac_cv_lib_l_yywrap=no
3077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3078 LIBS=$ac_check_lib_save_LIBS
3080 echo "$as_me:3080: result: $ac_cv_lib_l_yywrap" >&5
3081 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3082 if test $ac_cv_lib_l_yywrap = yes; then
3090 if test "x$LEX" != "x:"; then
3091 echo "$as_me:3091: checking lex output file root" >&5
3092 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3093 if test "${ac_cv_prog_lex_root+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3096 # The minimal lex program is just a single line: %%. But some broken lexes
3097 # (Solaris, I think it was) want two %% lines, so accommodate them.
3100 if test -f lex.yy.c; then
3101 ac_cv_prog_lex_root=lex.yy
3102 elif test -f lexyy.c; then
3103 ac_cv_prog_lex_root=lexyy
3105 { { echo "$as_me:3105: error: cannot find output from $LEX; giving up" >&5
3106 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3107 { (exit 1); exit 1; }; }
3110 echo "$as_me:3110: result: $ac_cv_prog_lex_root" >&5
3111 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3112 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3114 echo "$as_me:3114: checking whether yytext is a pointer" >&5
3115 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3116 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 # POSIX says lex can declare yytext either as a pointer or an array; the
3120 # default is implementation-dependent. Figure out which it is, since
3121 # not all implementations provide the %pointer and %array declarations.
3122 ac_cv_prog_lex_yytext_pointer=no
3123 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3125 LIBS="$LIBS $LEXLIB"
3126 cat >conftest.$ac_ext <<_ACEOF
3127 `cat $LEX_OUTPUT_ROOT.c`
3129 rm -f conftest.$ac_objext conftest$ac_exeext
3130 if { (eval echo "$as_me:3130: \"$ac_link\"") >&5
3131 (eval $ac_link) 2>&5
3133 echo "$as_me:3133: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -s conftest$ac_exeext'
3136 { (eval echo "$as_me:3136: \"$ac_try\"") >&5
3139 echo "$as_me:3139: \$? = $ac_status" >&5
3140 (exit $ac_status); }; }; then
3141 ac_cv_prog_lex_yytext_pointer=yes
3143 echo "$as_me: failed program was:" >&5
3144 cat conftest.$ac_ext >&5
3146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3148 rm -f "${LEX_OUTPUT_ROOT}.c"
3151 echo "$as_me:3151: result: $ac_cv_prog_lex_yytext_pointer" >&5
3152 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3153 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3155 cat >>confdefs.h <<\EOF
3156 #define YYTEXT_POINTER 1
3163 # Find a good install program. We prefer a C program (faster),
3164 # so one script is as good as another. But avoid the broken or
3165 # incompatible versions:
3166 # SysV /etc/install, /usr/sbin/install
3167 # SunOS /usr/etc/install
3168 # IRIX /sbin/install
3170 # AmigaOS /C/install, which installs bootblocks on floppy discs
3171 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3172 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3173 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3174 # ./install, which can be erroneously created by make from ./install.sh.
3175 echo "$as_me:3175: checking for a BSD compatible install" >&5
3176 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3177 if test -z "$INSTALL"; then
3178 if test "${ac_cv_path_install+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 ac_save_IFS=$IFS; IFS=$ac_path_separator
3182 for ac_dir in $PATH; do
3184 # Account for people who put trailing slashes in PATH elements.
3186 / | ./ | .// | /cC/* \
3187 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3190 # OSF1 and SCO ODT 3.0 have their own names for install.
3191 # Don't use installbsd from OSF since it installs stuff as root
3193 for ac_prog in ginstall scoinst install; do
3194 if $as_executable_p "$ac_dir/$ac_prog"; then
3195 if test $ac_prog = install &&
3196 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3197 # AIX install. It has an incompatible calling convention.
3199 elif test $ac_prog = install &&
3200 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3201 # program-specific install script used by HP pwplus--don't use.
3204 ac_cv_path_install="$ac_dir/$ac_prog -c"
3214 if test "${ac_cv_path_install+set}" = set; then
3215 INSTALL=$ac_cv_path_install
3217 # As a last resort, use the slow shell script. We don't cache a
3218 # path for INSTALL within a source directory, because that will
3219 # break other packages using the cache if that directory is
3220 # removed, or if the path is relative.
3221 INSTALL=$ac_install_sh
3224 echo "$as_me:3224: result: $INSTALL" >&5
3225 echo "${ECHO_T}$INSTALL" >&6
3227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3228 # It thinks the first close brace ends the variable substitution.
3229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240 echo "$as_me:3240: checking how to run the C preprocessor" >&5
3241 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3242 # On Suns, sometimes $CPP names a directory.
3243 if test -n "$CPP" && test -d "$CPP"; then
3246 if test -z "$CPP"; then
3247 if test "${ac_cv_prog_CPP+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 # Double quotes because CPP needs to be expanded
3251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3254 for ac_c_preproc_warn_flag in '' yes
3256 # Use a header file that comes with gcc, so configuring glibc
3257 # with a fresh cross-compiler works.
3258 # On the NeXT, cc -E runs the code through the compiler's parser,
3259 # not just through cpp. "Syntax error" is here to catch this case.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line 3261 "configure"
3262 #include "confdefs.h"
3266 if { (eval echo "$as_me:3266: \"$ac_cpp conftest.$ac_ext\"") >&5
3267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3269 egrep -v '^ *\+' conftest.er1 >conftest.err
3271 cat conftest.err >&5
3272 echo "$as_me:3272: \$? = $ac_status" >&5
3273 (exit $ac_status); } >/dev/null; then
3274 if test -s conftest.err; then
3275 ac_cpp_err=$ac_c_preproc_warn_flag
3282 if test -z "$ac_cpp_err"; then
3285 echo "$as_me: failed program was:" >&5
3286 cat conftest.$ac_ext >&5
3287 # Broken: fails on valid input.
3290 rm -f conftest.err conftest.$ac_ext
3292 # OK, works on sane cases. Now check whether non-existent headers
3293 # can be detected and how.
3294 cat >conftest.$ac_ext <<_ACEOF
3295 #line 3295 "configure"
3296 #include "confdefs.h"
3297 #include <ac_nonexistent.h>
3299 if { (eval echo "$as_me:3299: \"$ac_cpp conftest.$ac_ext\"") >&5
3300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3302 egrep -v '^ *\+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:3305: \$? = $ac_status" >&5
3306 (exit $ac_status); } >/dev/null; then
3307 if test -s conftest.err; then
3308 ac_cpp_err=$ac_c_preproc_warn_flag
3315 if test -z "$ac_cpp_err"; then
3316 # Broken: success on invalid input.
3319 echo "$as_me: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3321 # Passes both tests.
3325 rm -f conftest.err conftest.$ac_ext
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.$ac_ext
3330 if $ac_preproc_ok; then
3342 echo "$as_me:3342: result: $CPP" >&5
3343 echo "${ECHO_T}$CPP" >&6
3345 for ac_c_preproc_warn_flag in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # On the NeXT, cc -E runs the code through the compiler's parser,
3350 # not just through cpp. "Syntax error" is here to catch this case.
3351 cat >conftest.$ac_ext <<_ACEOF
3352 #line 3352 "configure"
3353 #include "confdefs.h"
3357 if { (eval echo "$as_me:3357: \"$ac_cpp conftest.$ac_ext\"") >&5
3358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 egrep -v '^ *\+' conftest.er1 >conftest.err
3362 cat conftest.err >&5
3363 echo "$as_me:3363: \$? = $ac_status" >&5
3364 (exit $ac_status); } >/dev/null; then
3365 if test -s conftest.err; then
3366 ac_cpp_err=$ac_c_preproc_warn_flag
3373 if test -z "$ac_cpp_err"; then
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 # Broken: fails on valid input.
3381 rm -f conftest.err conftest.$ac_ext
3383 # OK, works on sane cases. Now check whether non-existent headers
3384 # can be detected and how.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <ac_nonexistent.h>
3390 if { (eval echo "$as_me:3390: \"$ac_cpp conftest.$ac_ext\"") >&5
3391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393 egrep -v '^ *\+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3406 if test -z "$ac_cpp_err"; then
3407 # Broken: success on invalid input.
3410 echo "$as_me: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 # Passes both tests.
3416 rm -f conftest.err conftest.$ac_ext
3419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3420 rm -f conftest.err conftest.$ac_ext
3421 if $ac_preproc_ok; then
3424 { { echo "$as_me:3424: error: C preprocessor \"$CPP\" fails sanity check" >&5
3425 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3426 { (exit 1); exit 1; }; }
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 # Extract the first word of "rm", so it can be a program name with args.
3436 set dummy rm; ac_word=$2
3437 echo "$as_me:3437: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3439 if test "${ac_cv_path_RM+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3447 ac_save_IFS=$IFS; IFS=$ac_path_separator
3449 for ac_dir in $ac_dummy; do
3451 test -z "$ac_dir" && ac_dir=.
3452 if $as_executable_p "$ac_dir/$ac_word"; then
3453 ac_cv_path_RM="$ac_dir/$ac_word"
3454 echo "$as_me:3454: found $ac_dir/$ac_word" >&5
3459 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
3465 if test -n "$RM"; then
3466 echo "$as_me:3466: result: $RM" >&5
3467 echo "${ECHO_T}$RM" >&6
3469 echo "$as_me:3469: result: no" >&5
3470 echo "${ECHO_T}no" >&6
3473 # Extract the first word of "mv", so it can be a program name with args.
3474 set dummy mv; ac_word=$2
3475 echo "$as_me:3475: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_path_MV+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3485 ac_save_IFS=$IFS; IFS=$ac_path_separator
3487 for ac_dir in $ac_dummy; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if $as_executable_p "$ac_dir/$ac_word"; then
3491 ac_cv_path_MV="$ac_dir/$ac_word"
3492 echo "$as_me:3492: found $ac_dir/$ac_word" >&5
3497 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
3503 if test -n "$MV"; then
3504 echo "$as_me:3504: result: $MV" >&5
3505 echo "${ECHO_T}$MV" >&6
3507 echo "$as_me:3507: result: no" >&5
3508 echo "${ECHO_T}no" >&6
3511 # Extract the first word of "tar", so it can be a program name with args.
3512 set dummy tar; ac_word=$2
3513 echo "$as_me:3513: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3515 if test "${ac_cv_path_TAR+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3523 ac_save_IFS=$IFS; IFS=$ac_path_separator
3525 for ac_dir in $ac_dummy; do
3527 test -z "$ac_dir" && ac_dir=.
3528 if $as_executable_p "$ac_dir/$ac_word"; then
3529 ac_cv_path_TAR="$ac_dir/$ac_word"
3530 echo "$as_me:3530: found $ac_dir/$ac_word" >&5
3535 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
3541 if test -n "$TAR"; then
3542 echo "$as_me:3542: result: $TAR" >&5
3543 echo "${ECHO_T}$TAR" >&6
3545 echo "$as_me:3545: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3551 if test -z "$PKG_CONFIG"; then
3552 # Extract the first word of "pkg-config", so it can be a program name with args.
3553 set dummy pkg-config; ac_word=$2
3554 echo "$as_me:3554: checking for $ac_word" >&5
3555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3564 ac_save_IFS=$IFS; IFS=$ac_path_separator
3566 for ac_dir in $ac_dummy; do
3568 test -z "$ac_dir" && ac_dir=.
3569 if $as_executable_p "$ac_dir/$ac_word"; then
3570 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3571 echo "$as_me:3571: found $ac_dir/$ac_word" >&5
3576 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3580 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3582 if test -n "$PKG_CONFIG"; then
3583 echo "$as_me:3583: result: $PKG_CONFIG" >&5
3584 echo "${ECHO_T}$PKG_CONFIG" >&6
3586 echo "$as_me:3586: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3592 if test "$PKG_CONFIG" = "no" ; then
3593 echo "*** The pkg-config script could not be found. Make sure it is"
3594 echo "*** in your path, or set the PKG_CONFIG environment variable"
3595 echo "*** to the full path to pkg-config."
3596 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3598 if ! $PKG_CONFIG --atleast-pkgconfig-version 0.7.0; then
3599 echo "*** Your version of pkg-config is too old. You need version 0.7.0 or newer."
3600 echo "*** See http://www.freedesktop.org/software/pkgconfig"
3602 echo "$as_me:3602: checking for glib-2.0 >= $GLIB_REQUIRED" >&5
3603 echo $ECHO_N "checking for glib-2.0 >= $GLIB_REQUIRED... $ECHO_C" >&6
3605 if $PKG_CONFIG --exists "glib-2.0 >= $GLIB_REQUIRED" ; then
3606 echo "$as_me:3606: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6
3610 echo "$as_me:3610: checking GLIB_CFLAGS" >&5
3611 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
3612 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED"`
3613 echo "$as_me:3613: result: $GLIB_CFLAGS" >&5
3614 echo "${ECHO_T}$GLIB_CFLAGS" >&6
3616 echo "$as_me:3616: checking GLIB_LIBS" >&5
3617 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
3618 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED"`
3619 echo "$as_me:3619: result: $GLIB_LIBS" >&5
3620 echo "${ECHO_T}$GLIB_LIBS" >&6
3624 ## If we have a custom action on failure, don't print errors, but
3625 ## do set a variable so people can do so.
3626 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED"`
3627 echo $GLIB_PKG_ERRORS
3633 if test $succeeded = yes; then
3636 { { echo "$as_me:3636: 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
3637 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;}
3638 { (exit 1); exit 1; }; }
3641 ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
3642 cat >confcache <<\_ACEOF
3643 # This file is a shell script that caches the results of configure
3644 # tests run on this system so they can be shared between configure
3645 # scripts and configure runs, see configure's option --config-cache.
3646 # It is not useful on other systems. If it contains results you don't
3647 # want to keep, you may remove or edit it.
3649 # config.status only pays attention to the cache file if you give it
3650 # the --recheck option to rerun configure.
3652 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3653 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3658 # The following way of writing the cache mishandles newlines in values,
3659 # but we know of no workaround that is simple, portable, and efficient.
3660 # So, don't put newlines in cache variables' values.
3661 # Ultrix sh set writes to stderr and can't be redirected directly,
3662 # and sets the high bit in the cache file unless we assign to the vars.
3665 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3667 # `set' does not quote correctly, so add quotes (double-quote
3668 # substitution turns \\\\ into \\, and sed turns \\ into \).
3671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3674 # `set' quotes correctly as required by POSIX, so do not add quotes.
3676 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3683 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3685 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3687 if cmp -s $cache_file confcache; then :; else
3688 if test -w $cache_file; then
3689 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3690 cat confcache >$cache_file
3692 echo "not updating unwritable cache $cache_file"
3697 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3698 # Let make expand exec_prefix.
3699 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3701 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3702 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3703 # trailing colons and then remove the whole line if VPATH becomes empty
3704 # (actually we leave an empty line to preserve line numbers).
3705 if test "x$srcdir" = x.; then
3706 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3707 s/:*\$(srcdir):*/:/;
3708 s/:*\${srcdir}:*/:/;
3710 s/^\([^=]*=[ ]*\):*/\1/;
3716 DEFS=-DHAVE_CONFIG_H
3718 : ${CONFIG_STATUS=./config.status}
3719 ac_clean_files_save=$ac_clean_files
3720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3721 { echo "$as_me:3721: creating $CONFIG_STATUS" >&5
3722 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3723 cat >$CONFIG_STATUS <<_ACEOF
3725 # Generated automatically by configure.
3726 # Run this file to recreate the current configuration.
3727 # Compiler output produced by configure, useful for debugging
3728 # configure, is in config.log if it exists.
3731 SHELL=\${CONFIG_SHELL-$SHELL}
3732 ac_cs_invocation="\$0 \$@"
3736 cat >>$CONFIG_STATUS <<\_ACEOF
3737 # Be Bourne compatible
3738 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3741 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3745 # Name of the executable.
3746 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3748 if expr a : '\(a\)' >/dev/null 2>&1; then
3754 rm -f conf$$ conf$$.exe conf$$.file
3756 if ln -s conf$$.file conf$$ 2>/dev/null; then
3757 # We could just check for DJGPP; but this test a) works b) is more generic
3758 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3759 if test -f conf$$.exe; then
3760 # Don't use ln at all; we don't have any links
3765 elif ln conf$$.file conf$$ 2>/dev/null; then
3770 rm -f conf$$ conf$$.exe conf$$.file
3772 as_executable_p="test -f"
3774 # Support unset when possible.
3775 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3782 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3783 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3784 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3785 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3786 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3787 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3788 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3789 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3792 # We need space, tab and new line, in precisely that order.
3798 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3804 # Files that config.status was made for.
3805 if test -n "$ac_config_files"; then
3806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3809 if test -n "$ac_config_headers"; then
3810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3813 if test -n "$ac_config_links"; then
3814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3817 if test -n "$ac_config_commands"; then
3818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3821 cat >>$CONFIG_STATUS <<\EOF
3824 \`$as_me' instantiates files from templates according to the
3825 current configuration.
3827 Usage: $0 [OPTIONS] [FILE]...
3829 -h, --help print this help, then exit
3830 -V, --version print version number, then exit
3831 -d, --debug don't remove temporary files
3832 --recheck update $as_me by reconfiguring in the same conditions
3833 --file=FILE[:TEMPLATE]
3834 instantiate the configuration file FILE
3835 --header=FILE[:TEMPLATE]
3836 instantiate the configuration header FILE
3838 Configuration files:
3841 Configuration headers:
3844 Configuration commands:
3847 Report bugs to <bug-autoconf@gnu.org>."
3850 cat >>$CONFIG_STATUS <<EOF
3853 configured by $0, generated by GNU Autoconf 2.52,
3854 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3856 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3857 Free Software Foundation, Inc.
3858 This config.status script is free software; the Free Software Foundation
3859 gives unlimited permission to copy, distribute and modify it."
3864 cat >>$CONFIG_STATUS <<\EOF
3865 # If no file are specified by the user, then we need to provide default
3866 # value. By we need to know if files were specified by the user.
3872 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3873 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3875 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3879 *) # This is not an option, so the user has probably given explicit
3881 ac_need_defaults=false;;
3885 # Handling of the options.
3887 cat >>$CONFIG_STATUS <<EOF
3888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3889 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3890 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3892 cat >>$CONFIG_STATUS <<\EOF
3893 --version | --vers* | -V )
3894 echo "$ac_cs_version"; exit 0 ;;
3896 # Conflict between --help and --header
3897 { { echo "$as_me:3897: error: ambiguous option: $1
3898 Try \`$0 --help' for more information." >&5
3899 echo "$as_me: error: ambiguous option: $1
3900 Try \`$0 --help' for more information." >&2;}
3901 { (exit 1); exit 1; }; };;
3902 --help | --hel | -h )
3903 echo "$ac_cs_usage"; exit 0 ;;
3904 --debug | --d* | -d )
3906 --file | --fil | --fi | --f )
3908 CONFIG_FILES="$CONFIG_FILES $1"
3909 ac_need_defaults=false;;
3910 --header | --heade | --head | --hea )
3912 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3913 ac_need_defaults=false;;
3916 -*) { { echo "$as_me:3916: error: unrecognized option: $1
3917 Try \`$0 --help' for more information." >&5
3918 echo "$as_me: error: unrecognized option: $1
3919 Try \`$0 --help' for more information." >&2;}
3920 { (exit 1); exit 1; }; } ;;
3922 *) ac_config_targets="$ac_config_targets $1" ;;
3931 ## ----------------------- ##
3932 ## Running config.status. ##
3933 ## ----------------------- ##
3935 This file was extended by $as_me 2.52, executed with
3936 CONFIG_FILES = $CONFIG_FILES
3937 CONFIG_HEADERS = $CONFIG_HEADERS
3938 CONFIG_LINKS = $CONFIG_LINKS
3939 CONFIG_COMMANDS = $CONFIG_COMMANDS
3941 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3946 cat >>$CONFIG_STATUS <<EOF
3948 # INIT-COMMANDS section.
3953 cat >>$CONFIG_STATUS <<\EOF
3954 for ac_config_target in $ac_config_targets
3956 case "$ac_config_target" in
3957 # Handling of arguments.
3958 "gob2.spec" ) CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
3959 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3960 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3961 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3962 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3963 "doc/gob2.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
3964 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3965 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3966 *) { { echo "$as_me:3966: error: invalid argument: $ac_config_target" >&5
3967 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3968 { (exit 1); exit 1; }; };;
3972 # If the user did not use the arguments to specify the items to instantiate,
3973 # then the envvar interface is used. Set only those that are not.
3974 # We use the long form for the default assignment because of an extremely
3975 # bizarre bug on SunOS 4.1.3.
3976 if $ac_need_defaults; then
3977 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3978 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3979 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3982 # Create a temporary directory, and hook for its removal unless debugging.
3985 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3986 trap '{ (exit 1); exit 1; }' 1 2 13 15
3989 # Create a (secure) tmp directory for tmp files.
3992 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3993 test -n "$tmp" && test -d "$tmp"
3996 tmp=$TMPDIR/cs$$-$RANDOM
3997 (umask 077 && mkdir $tmp)
4000 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4001 { (exit 1); exit 1; }
4006 cat >>$CONFIG_STATUS <<EOF
4009 # CONFIG_FILES section.
4012 # No need to generate the scripts if there are no CONFIG_FILES.
4013 # This happens for instance when ./config.status config.h
4014 if test -n "\$CONFIG_FILES"; then
4015 # Protect against being on the right side of a sed subst in config.status.
4016 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4017 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4018 s,@SHELL@,$SHELL,;t t
4019 s,@exec_prefix@,$exec_prefix,;t t
4020 s,@prefix@,$prefix,;t t
4021 s,@program_transform_name@,$program_transform_name,;t t
4022 s,@bindir@,$bindir,;t t
4023 s,@sbindir@,$sbindir,;t t
4024 s,@libexecdir@,$libexecdir,;t t
4025 s,@datadir@,$datadir,;t t
4026 s,@sysconfdir@,$sysconfdir,;t t
4027 s,@sharedstatedir@,$sharedstatedir,;t t
4028 s,@localstatedir@,$localstatedir,;t t
4029 s,@libdir@,$libdir,;t t
4030 s,@includedir@,$includedir,;t t
4031 s,@oldincludedir@,$oldincludedir,;t t
4032 s,@infodir@,$infodir,;t t
4033 s,@mandir@,$mandir,;t t
4034 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4035 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4036 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4037 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4038 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4039 s,@build_alias@,$build_alias,;t t
4040 s,@host_alias@,$host_alias,;t t
4041 s,@target_alias@,$target_alias,;t t
4042 s,@ECHO_C@,$ECHO_C,;t t
4043 s,@ECHO_N@,$ECHO_N,;t t
4044 s,@ECHO_T@,$ECHO_T,;t t
4045 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4048 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4049 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4050 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4051 s,@PACKAGE@,$PACKAGE,;t t
4052 s,@VERSION@,$VERSION,;t t
4053 s,@ACLOCAL@,$ACLOCAL,;t t
4054 s,@AUTOCONF@,$AUTOCONF,;t t
4055 s,@AUTOMAKE@,$AUTOMAKE,;t t
4056 s,@AUTOHEADER@,$AUTOHEADER,;t t
4057 s,@MAKEINFO@,$MAKEINFO,;t t
4058 s,@SET_MAKE@,$SET_MAKE,;t t
4059 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
4060 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
4061 s,@MAINT@,$MAINT,;t t
4062 s,@SUBDIRS@,$SUBDIRS,;t t
4063 s,@DOINSTGOB@,$DOINSTGOB,;t t
4064 s,@NOINSTGOB@,$NOINSTGOB,;t t
4066 s,@CFLAGS@,$CFLAGS,;t t
4067 s,@LDFLAGS@,$LDFLAGS,;t t
4068 s,@CPPFLAGS@,$CPPFLAGS,;t t
4069 s,@ac_ct_CC@,$ac_ct_CC,;t t
4070 s,@EXEEXT@,$EXEEXT,;t t
4071 s,@OBJEXT@,$OBJEXT,;t t
4075 s,@LEXLIB@,$LEXLIB,;t t
4076 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
4080 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4081 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
4082 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
4083 s,@YFLAGS@,$YFLAGS,;t t
4088 cat >>$CONFIG_STATUS <<\EOF
4089 # Split the substitutions into bite-sized pieces for seds with
4090 # small command number limits, like on Digital OSF/1 and HP-UX.
4092 ac_sed_frag=1 # Number of current file.
4093 ac_beg=1 # First line for current file.
4094 ac_end=$ac_max_sed_lines # Line after last line for current file.
4097 while $ac_more_lines; do
4098 if test $ac_beg -gt 1; then
4099 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4101 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4103 if test ! -s $tmp/subs.frag; then
4106 # The purpose of the label and of the branching condition is to
4107 # speed up the sed processing (if there are no `@' at all, there
4108 # is no need to browse any of the substitutions).
4109 # These are the two extra sed commands mentioned above.
4111 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4112 if test -z "$ac_sed_cmds"; then
4113 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4115 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4117 ac_sed_frag=`expr $ac_sed_frag + 1`
4119 ac_end=`expr $ac_end + $ac_max_sed_lines`
4122 if test -z "$ac_sed_cmds"; then
4125 fi # test -n "$CONFIG_FILES"
4128 cat >>$CONFIG_STATUS <<\EOF
4129 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4132 - | *:- | *:-:* ) # input from stdin
4134 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4135 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4136 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4138 * ) ac_file_in=$ac_file.in ;;
4141 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4142 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4143 X"$ac_file" : 'X\(//\)[^/]' \| \
4144 X"$ac_file" : 'X\(//\)$' \| \
4145 X"$ac_file" : 'X\(/\)' \| \
4146 . : '\(.\)' 2>/dev/null ||
4148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4150 /^X\(\/\/\)$/{ s//\1/; q; }
4151 /^X\(\/\).*/{ s//\1/; q; }
4153 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4155 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4159 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4160 case $as_mkdir_dir in
4161 # Skip DOS drivespec
4162 ?:) as_incr_dir=$as_mkdir_dir ;;
4164 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4165 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4170 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4171 # A "../" for each directory in $ac_dir_suffix.
4172 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4174 ac_dir_suffix= ac_dots=
4179 if test -z "$ac_dots"; then
4182 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4185 ac_srcdir=$srcdir$ac_dir_suffix;
4186 ac_top_srcdir=$srcdir ;;
4188 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4189 ac_top_srcdir=$ac_dots$srcdir ;;
4193 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4194 *) ac_INSTALL=$ac_dots$INSTALL ;;
4197 if test x"$ac_file" != x-; then
4198 { echo "$as_me:4198: creating $ac_file" >&5
4199 echo "$as_me: creating $ac_file" >&6;}
4202 # Let's still pretend it is `configure' which instantiates (i.e., don't
4203 # use $as_me), people would be surprised to read:
4204 # /* config.h. Generated automatically by config.status. */
4205 configure_input="Generated automatically from `echo $ac_file_in |
4206 sed 's,.*/,,'` by configure."
4208 # First look for the input files in the build tree, otherwise in the
4210 ac_file_inputs=`IFS=:
4211 for f in $ac_file_in; do
4213 -) echo $tmp/stdin ;;
4215 # Absolute (can't be DOS-style, as IFS=:)
4216 test -f "$f" || { { echo "$as_me:4216: error: cannot find input file: $f" >&5
4217 echo "$as_me: error: cannot find input file: $f" >&2;}
4218 { (exit 1); exit 1; }; }
4221 if test -f "$f"; then
4224 elif test -f "$srcdir/$f"; then
4229 { { echo "$as_me:4229: error: cannot find input file: $f" >&5
4230 echo "$as_me: error: cannot find input file: $f" >&2;}
4231 { (exit 1); exit 1; }; }
4234 done` || { (exit 1); exit 1; }
4236 cat >>$CONFIG_STATUS <<EOF
4240 cat >>$CONFIG_STATUS <<\EOF
4242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4243 s,@configure_input@,$configure_input,;t t
4244 s,@srcdir@,$ac_srcdir,;t t
4245 s,@top_srcdir@,$ac_top_srcdir,;t t
4246 s,@INSTALL@,$ac_INSTALL,;t t
4247 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4249 if test x"$ac_file" != x-; then
4250 mv $tmp/out $ac_file
4258 cat >>$CONFIG_STATUS <<\EOF
4261 # CONFIG_HEADER section.
4264 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4265 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4267 # ac_d sets the value in "#define NAME VALUE" lines.
4268 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4269 ac_dB='[ ].*$,\1#\2'
4272 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4273 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4274 ac_uB='$,\1#\2define\3'
4278 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4279 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4281 - | *:- | *:-:* ) # input from stdin
4283 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4284 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4285 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4286 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4287 * ) ac_file_in=$ac_file.in ;;
4290 test x"$ac_file" != x- && { echo "$as_me:4290: creating $ac_file" >&5
4291 echo "$as_me: creating $ac_file" >&6;}
4293 # First look for the input files in the build tree, otherwise in the
4295 ac_file_inputs=`IFS=:
4296 for f in $ac_file_in; do
4298 -) echo $tmp/stdin ;;
4300 # Absolute (can't be DOS-style, as IFS=:)
4301 test -f "$f" || { { echo "$as_me:4301: error: cannot find input file: $f" >&5
4302 echo "$as_me: error: cannot find input file: $f" >&2;}
4303 { (exit 1); exit 1; }; }
4306 if test -f "$f"; then
4309 elif test -f "$srcdir/$f"; then
4314 { { echo "$as_me:4314: error: cannot find input file: $f" >&5
4315 echo "$as_me: error: cannot find input file: $f" >&2;}
4316 { (exit 1); exit 1; }; }
4319 done` || { (exit 1); exit 1; }
4320 # Remove the trailing spaces.
4321 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4325 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4326 # `conftest.undefs', that substitutes the proper values into
4327 # config.h.in to produce config.h. The first handles `#define'
4328 # templates, and the second `#undef' templates.
4329 # And first: Protect against being on the right side of a sed subst in
4330 # config.status. Protect against being in an unquoted here document
4332 rm -f conftest.defines conftest.undefs
4333 # Using a here document instead of a string reduces the quoting nightmare.
4334 # Putting comments in sed scripts is not portable.
4336 # `end' is used to avoid that the second main sed command (meant for
4337 # 0-ary CPP macros) applies to n-ary macro definitions.
4338 # See the Autoconf documentation for `clear'.
4339 cat >confdef2sed.sed <<\EOF
4344 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4346 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4349 # If some macros were called several times there might be several times
4350 # the same #defines, which is useless. Nevertheless, we may not want to
4351 # sort them, since we want the *last* AC-DEFINE to be honored.
4352 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4353 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4354 rm -f confdef2sed.sed
4356 # This sed command replaces #undef with comments. This is necessary, for
4357 # example, in the case of _POSIX_SOURCE, which is predefined and required
4358 # on some systems where configure will not decide to define it.
4359 cat >>conftest.undefs <<\EOF
4360 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4363 # Break up conftest.defines because some shells have a limit on the size
4364 # of here documents, and old seds have small limits too (100 cmds).
4365 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4366 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4367 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4368 echo ' :' >>$CONFIG_STATUS
4370 while grep . conftest.defines >/dev/null
4372 # Write a limited-size here document to $tmp/defines.sed.
4373 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4374 # Speed up: don't consider the non `#define' lines.
4375 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4376 # Work around the forget-to-reset-the-flag bug.
4377 echo 't clr' >>$CONFIG_STATUS
4378 echo ': clr' >>$CONFIG_STATUS
4379 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4381 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4385 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4386 rm -f conftest.defines
4387 mv conftest.tail conftest.defines
4389 rm -f conftest.defines
4390 echo ' fi # egrep' >>$CONFIG_STATUS
4391 echo >>$CONFIG_STATUS
4393 # Break up conftest.undefs because some shells have a limit on the size
4394 # of here documents, and old seds have small limits too (100 cmds).
4395 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4397 while grep . conftest.undefs >/dev/null
4399 # Write a limited-size here document to $tmp/undefs.sed.
4400 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4401 # Speed up: don't consider the non `#undef'
4402 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4403 # Work around the forget-to-reset-the-flag bug.
4404 echo 't clr' >>$CONFIG_STATUS
4405 echo ': clr' >>$CONFIG_STATUS
4406 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4408 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4412 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4413 rm -f conftest.undefs
4414 mv conftest.tail conftest.undefs
4416 rm -f conftest.undefs
4418 cat >>$CONFIG_STATUS <<\EOF
4419 # Let's still pretend it is `configure' which instantiates (i.e., don't
4420 # use $as_me), people would be surprised to read:
4421 # /* config.h. Generated automatically by config.status. */
4422 if test x"$ac_file" = x-; then
4423 echo "/* Generated automatically by configure. */" >$tmp/config.h
4425 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4427 cat $tmp/in >>$tmp/config.h
4429 if test x"$ac_file" != x-; then
4430 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4431 { echo "$as_me:4431: $ac_file is unchanged" >&5
4432 echo "$as_me: $ac_file is unchanged" >&6;}
4434 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4435 X"$ac_file" : 'X\(//\)[^/]' \| \
4436 X"$ac_file" : 'X\(//\)$' \| \
4437 X"$ac_file" : 'X\(/\)' \| \
4438 . : '\(.\)' 2>/dev/null ||
4440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4441 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4442 /^X\(\/\/\)$/{ s//\1/; q; }
4443 /^X\(\/\).*/{ s//\1/; q; }
4445 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4447 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4451 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4452 case $as_mkdir_dir in
4453 # Skip DOS drivespec
4454 ?:) as_incr_dir=$as_mkdir_dir ;;
4456 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4457 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4464 mv $tmp/config.h $ac_file
4472 cat >>$CONFIG_STATUS <<\EOF
4475 # CONFIG_COMMANDS section.
4477 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4478 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4479 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4482 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
4487 cat >>$CONFIG_STATUS <<\EOF
4489 { (exit 0); exit 0; }
4491 chmod +x $CONFIG_STATUS
4492 ac_clean_files=$ac_clean_files_save
4494 # configure is writing to config.log, and then calls config.status.
4495 # config.status does its own redirection, appending to config.log.
4496 # Unfortunately, on DOS this fails, as config.log is still kept open
4497 # by configure, so config.status won't be able to write to it; its
4498 # output is simply discarded. So we exec the FD to /dev/null,
4499 # effectively closing config.log, so it can be properly (re)opened and
4500 # appended to by config.status. When coming back to configure, we
4501 # need to make the FD available again.
4502 if test "$no_create" != yes; then
4505 $SHELL $CONFIG_STATUS || ac_cs_success=false
4507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4508 # would make configure fail if this is the last instruction.
4509 $ac_cs_success || { (exit 1); exit 1; }