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 --disable-glibtest Do not try to compile and run a test GLIB program
636 --enable-maintainer-mode enable make rules and dependencies not useful
637 (and sometimes confusing) to the casual installer
639 Some influential environment variables:
640 CC C compiler command
641 CFLAGS C compiler flags
642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
643 nonstandard directory <lib dir>
644 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
645 headers in a nonstandard directory <include dir>
648 Use these variables to override the choices made by `configure' or to help
649 it to find libraries and programs with nonstandard names/locations.
654 if test "$ac_init_help" = "recursive"; then
655 # If there are subdirs, report their specific --help.
657 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
659 # A "../" for each directory in /$ac_subdir.
660 ac_dots=`echo $ac_subdir |
661 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
664 .) # No --srcdir option. We are building in place.
665 ac_sub_srcdir=$srcdir ;;
666 [\\/]* | ?:[\\/]* ) # Absolute path.
667 ac_sub_srcdir=$srcdir/$ac_subdir ;;
669 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
672 # Check for guested configure; otherwise get Cygnus style configure.
673 if test -f $ac_sub_srcdir/configure.gnu; then
675 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
676 elif test -f $ac_sub_srcdir/configure; then
678 $SHELL $ac_sub_srcdir/configure --help=recursive
679 elif test -f $ac_sub_srcdir/configure.ac ||
680 test -f $ac_sub_srcdir/configure.in; then
684 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
690 test -n "$ac_init_help" && exit 0
691 if $ac_init_version; then
694 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
695 Free Software Foundation, Inc.
696 This configure script is free software; the Free Software Foundation
697 gives unlimited permission to copy, distribute and modify it.
703 This file contains any messages produced by compilers while
704 running configure, to aid debugging if configure makes a mistake.
706 It was created by $as_me, which was
707 generated by GNU Autoconf 2.52. Invocation command line was
718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
730 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
747 # Keep a trace of the command line.
748 # Strip out --no-create and --no-recursion so they do not pile up.
749 # Also quote any args containing shell meta-characters.
755 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
756 | --no-cr | --no-c) ;;
757 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
758 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
759 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
760 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
761 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
763 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
766 # Get rid of the leading space.
769 # When interrupted or exit'd, cleanup temporary files, and complete
770 # config.log. We remove comments because anyway the quotes in there
771 # would cause problems or look ugly.
773 # Save into config.log some information that might help in debugging.
775 echo "## ----------------- ##" >&5
776 echo "## Cache variables. ##" >&5
777 echo "## ----------------- ##" >&5
779 # The following way of writing the cache mishandles newlines in values,
782 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
785 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
790 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
794 sed "/^$/d" confdefs.h >conftest.log
795 if test -s conftest.log; then
797 echo "## ------------ ##" >&5
798 echo "## confdefs.h. ##" >&5
799 echo "## ------------ ##" >&5
804 test "$ac_signal" != 0 &&
805 echo "$as_me: caught signal $ac_signal" >&5
806 echo "$as_me: exit $exit_status" >&5
807 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
810 for ac_signal in 1 2 13 15; do
811 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
816 rm -rf conftest* confdefs.h
817 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
820 # Let the site file select an alternate cache file if it wants to.
821 # Prefer explicitly selected file to automatically selected ones.
822 if test -z "$CONFIG_SITE"; then
823 if test "x$prefix" != xNONE; then
824 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
826 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
829 for ac_site_file in $CONFIG_SITE; do
830 if test -r "$ac_site_file"; then
831 { echo "$as_me:831: loading site script $ac_site_file" >&5
832 echo "$as_me: loading site script $ac_site_file" >&6;}
833 cat "$ac_site_file" >&5
838 if test -r "$cache_file"; then
839 # Some versions of bash will fail to source /dev/null (special
840 # files actually), so we avoid doing that.
841 if test -f "$cache_file"; then
842 { echo "$as_me:842: loading cache $cache_file" >&5
843 echo "$as_me: loading cache $cache_file" >&6;}
845 [\\/]* | ?:[\\/]* ) . $cache_file;;
850 { echo "$as_me:850: creating cache $cache_file" >&5
851 echo "$as_me: creating cache $cache_file" >&6;}
855 # Check that the precious variables saved in the cache have kept the same
857 ac_cache_corrupted=false
858 for ac_var in `(set) 2>&1 |
859 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
861 eval ac_new_set=\$ac_env_${ac_var}_set
862 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
863 eval ac_new_val="\$ac_env_${ac_var}_value"
864 case $ac_old_set,$ac_new_set in
866 { echo "$as_me:866: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
868 ac_cache_corrupted=: ;;
870 { echo "$as_me:870: error: \`$ac_var' was not set in the previous run" >&5
871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
872 ac_cache_corrupted=: ;;
875 if test "x$ac_old_val" != "x$ac_new_val"; then
876 { echo "$as_me:876: error: \`$ac_var' has changed since the previous run:" >&5
877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
878 { echo "$as_me:878: former value: $ac_old_val" >&5
879 echo "$as_me: former value: $ac_old_val" >&2;}
880 { echo "$as_me:880: current value: $ac_new_val" >&5
881 echo "$as_me: current value: $ac_new_val" >&2;}
885 # Pass precious variables to config.status. It doesn't matter if
886 # we pass some twice (in addition to the command line arguments).
887 if test "$ac_new_set" = set; then
889 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
890 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
891 ac_configure_args="$ac_configure_args '$ac_arg'"
893 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
898 if $ac_cache_corrupted; then
899 { echo "$as_me:899: error: changes in the environment can compromise the build" >&5
900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
901 { { echo "$as_me:901: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
903 { (exit 1); exit 1; }; }
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
912 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
913 *c*,-n*) ECHO_N= ECHO_C='
915 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
916 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
918 echo "#! $SHELL" >conftest.sh
919 echo "exit 0" >>conftest.sh
921 if { (echo "$as_me:921: PATH=\".;.\"; conftest.sh") >&5
922 (PATH=".;."; conftest.sh) 2>&5
924 echo "$as_me:924: \$? = $ac_status" >&5
925 (exit $ac_status); }; then
926 ac_path_separator=';'
930 PATH_SEPARATOR="$ac_path_separator"
933 ac_config_headers="$ac_config_headers config.h"
935 ac_config_commands="$ac_config_commands default-1"
938 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
939 if test -f $ac_dir/install-sh; then
941 ac_install_sh="$ac_aux_dir/install-sh -c"
943 elif test -f $ac_dir/install.sh; then
945 ac_install_sh="$ac_aux_dir/install.sh -c"
947 elif test -f $ac_dir/shtool; then
949 ac_install_sh="$ac_aux_dir/shtool install -c"
953 if test -z "$ac_aux_dir"; then
954 { { echo "$as_me:954: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
955 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
956 { (exit 1); exit 1; }; }
958 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
959 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
960 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
962 # Find a good install program. We prefer a C program (faster),
963 # so one script is as good as another. But avoid the broken or
964 # incompatible versions:
965 # SysV /etc/install, /usr/sbin/install
966 # SunOS /usr/etc/install
969 # AmigaOS /C/install, which installs bootblocks on floppy discs
970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
973 # ./install, which can be erroneously created by make from ./install.sh.
974 echo "$as_me:974: checking for a BSD compatible install" >&5
975 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
976 if test -z "$INSTALL"; then
977 if test "${ac_cv_path_install+set}" = set; then
978 echo $ECHO_N "(cached) $ECHO_C" >&6
980 ac_save_IFS=$IFS; IFS=$ac_path_separator
981 for ac_dir in $PATH; do
983 # Account for people who put trailing slashes in PATH elements.
985 / | ./ | .// | /cC/* \
986 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
989 # OSF1 and SCO ODT 3.0 have their own names for install.
990 # Don't use installbsd from OSF since it installs stuff as root
992 for ac_prog in ginstall scoinst install; do
993 if $as_executable_p "$ac_dir/$ac_prog"; then
994 if test $ac_prog = install &&
995 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
996 # AIX install. It has an incompatible calling convention.
998 elif test $ac_prog = install &&
999 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1000 # program-specific install script used by HP pwplus--don't use.
1003 ac_cv_path_install="$ac_dir/$ac_prog -c"
1013 if test "${ac_cv_path_install+set}" = set; then
1014 INSTALL=$ac_cv_path_install
1016 # As a last resort, use the slow shell script. We don't cache a
1017 # path for INSTALL within a source directory, because that will
1018 # break other packages using the cache if that directory is
1019 # removed, or if the path is relative.
1020 INSTALL=$ac_install_sh
1023 echo "$as_me:1023: result: $INSTALL" >&5
1024 echo "${ECHO_T}$INSTALL" >&6
1026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1027 # It thinks the first close brace ends the variable substitution.
1028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1034 echo "$as_me:1034: checking whether build environment is sane" >&5
1035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1038 echo timestamp > conftestfile
1039 # Do `set' in a subshell so we don't clobber the current shell's
1040 # arguments. Must try -L first in case configure is actually a
1041 # symlink; some systems play weird games with the mod time of symlinks
1042 # (eg FreeBSD returns the mod time of the symlink's containing
1045 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1046 if test "$*" = "X"; then
1048 set X `ls -t $srcdir/configure conftestfile`
1050 if test "$*" != "X $srcdir/configure conftestfile" \
1051 && test "$*" != "X conftestfile $srcdir/configure"; then
1053 # If neither matched, then we have a broken ls. This can happen
1054 # if, for instance, CONFIG_SHELL is bash and it inherits a
1055 # broken ls alias from the environment. This has actually
1056 # happened. Such a system could not be considered "sane".
1057 { { echo "$as_me:1057: error: ls -t appears to fail. Make sure there is not a broken
1058 alias in your environment" >&5
1059 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1060 alias in your environment" >&2;}
1061 { (exit 1); exit 1; }; }
1064 test "$2" = conftestfile
1070 { { echo "$as_me:1070: error: newly created file is older than distributed files!
1071 Check your system clock" >&5
1072 echo "$as_me: error: newly created file is older than distributed files!
1073 Check your system clock" >&2;}
1074 { (exit 1); exit 1; }; }
1077 echo "$as_me:1077: result: yes" >&5
1078 echo "${ECHO_T}yes" >&6
1079 test "$program_prefix" != NONE &&
1080 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1081 # Use a double $ so make ignores it.
1082 test "$program_suffix" != NONE &&
1083 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1084 # Double any \ or $. echo might interpret backslashes.
1085 # By default was `s,x,x', remove it if useless.
1086 cat <<\_ACEOF >conftest.sed
1087 s/[\\$]/&&/g;s/;s,x,x,$//
1089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1092 echo "$as_me:1092: checking whether ${MAKE-make} sets \${MAKE}" >&5
1093 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1095 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1096 echo $ECHO_N "(cached) $ECHO_C" >&6
1098 cat >conftest.make <<\EOF
1100 @echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_${ac_make}_set=yes
1107 eval ac_cv_prog_make_${ac_make}_set=no
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$as_me:1112: result: yes" >&5
1113 echo "${ECHO_T}yes" >&6
1116 echo "$as_me:1116: result: no" >&5
1117 echo "${ECHO_T}no" >&6
1118 SET_MAKE="MAKE=${MAKE-make}"
1125 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1126 { { echo "$as_me:1126: error: source directory already configured; run \"make distclean\" there first" >&5
1127 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1128 { (exit 1); exit 1; }; }
1131 cat >>confdefs.h <<EOF
1132 #define PACKAGE "$PACKAGE"
1135 cat >>confdefs.h <<EOF
1136 #define VERSION "$VERSION"
1139 missing_dir=`cd $ac_aux_dir && pwd`
1140 echo "$as_me:1140: checking for working aclocal" >&5
1141 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1142 # Run test in a subshell; some versions of sh will print an error if
1143 # an executable is not found, even if stderr is redirected.
1144 # Redirect stdin to placate older versions of autoconf. Sigh.
1145 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1147 echo "$as_me:1147: result: found" >&5
1148 echo "${ECHO_T}found" >&6
1150 ACLOCAL="$missing_dir/missing aclocal"
1151 echo "$as_me:1151: result: missing" >&5
1152 echo "${ECHO_T}missing" >&6
1155 echo "$as_me:1155: checking for working autoconf" >&5
1156 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1157 # Run test in a subshell; some versions of sh will print an error if
1158 # an executable is not found, even if stderr is redirected.
1159 # Redirect stdin to placate older versions of autoconf. Sigh.
1160 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1162 echo "$as_me:1162: result: found" >&5
1163 echo "${ECHO_T}found" >&6
1165 AUTOCONF="$missing_dir/missing autoconf"
1166 echo "$as_me:1166: result: missing" >&5
1167 echo "${ECHO_T}missing" >&6
1170 echo "$as_me:1170: checking for working automake" >&5
1171 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1172 # Run test in a subshell; some versions of sh will print an error if
1173 # an executable is not found, even if stderr is redirected.
1174 # Redirect stdin to placate older versions of autoconf. Sigh.
1175 if (automake --version) < /dev/null > /dev/null 2>&1; then
1177 echo "$as_me:1177: result: found" >&5
1178 echo "${ECHO_T}found" >&6
1180 AUTOMAKE="$missing_dir/missing automake"
1181 echo "$as_me:1181: result: missing" >&5
1182 echo "${ECHO_T}missing" >&6
1185 echo "$as_me:1185: checking for working autoheader" >&5
1186 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1187 # Run test in a subshell; some versions of sh will print an error if
1188 # an executable is not found, even if stderr is redirected.
1189 # Redirect stdin to placate older versions of autoconf. Sigh.
1190 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1191 AUTOHEADER=autoheader
1192 echo "$as_me:1192: result: found" >&5
1193 echo "${ECHO_T}found" >&6
1195 AUTOHEADER="$missing_dir/missing autoheader"
1196 echo "$as_me:1196: result: missing" >&5
1197 echo "${ECHO_T}missing" >&6
1200 echo "$as_me:1200: checking for working makeinfo" >&5
1201 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1202 # Run test in a subshell; some versions of sh will print an error if
1203 # an executable is not found, even if stderr is redirected.
1204 # Redirect stdin to placate older versions of autoconf. Sigh.
1205 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1207 echo "$as_me:1207: result: found" >&5
1208 echo "${ECHO_T}found" >&6
1210 MAKEINFO="$missing_dir/missing makeinfo"
1211 echo "$as_me:1211: result: missing" >&5
1212 echo "${ECHO_T}missing" >&6
1215 if test -f ../NOINST_GOB ; then
1218 echo "$as_me:1218: result: *** NOT Going to install GOB ***" >&5
1219 echo "${ECHO_T}*** NOT Going to install GOB ***" >&6
1220 SUBDIRS="src examples"
1225 SUBDIRS="src examples doc"
1230 ac_cpp='$CPP $CPPFLAGS'
1231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1234 if test -n "$ac_tool_prefix"; then
1235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1237 echo "$as_me:1237: checking for $ac_word" >&5
1238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1239 if test "${ac_cv_prog_CC+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 if test -n "$CC"; then
1243 ac_cv_prog_CC="$CC" # Let the user override the test.
1245 ac_save_IFS=$IFS; IFS=$ac_path_separator
1247 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 $as_executable_p "$ac_dir/$ac_word" || continue
1251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1259 if test -n "$CC"; then
1260 echo "$as_me:1260: result: $CC" >&5
1261 echo "${ECHO_T}$CC" >&6
1263 echo "$as_me:1263: result: no" >&5
1264 echo "${ECHO_T}no" >&6
1268 if test -z "$ac_cv_prog_CC"; then
1270 # Extract the first word of "gcc", so it can be a program name with args.
1271 set dummy gcc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 if test -n "$ac_ct_CC"; then
1278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1280 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_ac_ct_CC="gcc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1294 if test -n "$ac_ct_CC"; then
1295 echo "$as_me:1295: result: $ac_ct_CC" >&5
1296 echo "${ECHO_T}$ac_ct_CC" >&6
1298 echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1307 if test -z "$CC"; then
1308 if test -n "$ac_tool_prefix"; then
1309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1310 set dummy ${ac_tool_prefix}cc; ac_word=$2
1311 echo "$as_me:1311: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1319 ac_save_IFS=$IFS; IFS=$ac_path_separator
1321 for ac_dir in $ac_dummy; do
1323 test -z "$ac_dir" && ac_dir=.
1324 $as_executable_p "$ac_dir/$ac_word" || continue
1325 ac_cv_prog_CC="${ac_tool_prefix}cc"
1326 echo "$as_me:1326: found $ac_dir/$ac_word" >&5
1333 if test -n "$CC"; then
1334 echo "$as_me:1334: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1337 echo "$as_me:1337: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$ac_cv_prog_CC"; then
1344 # Extract the first word of "cc", so it can be a program name with args.
1345 set dummy cc; ac_word=$2
1346 echo "$as_me:1346: checking for $ac_word" >&5
1347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1348 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1349 echo $ECHO_N "(cached) $ECHO_C" >&6
1351 if test -n "$ac_ct_CC"; then
1352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1354 ac_save_IFS=$IFS; IFS=$ac_path_separator
1356 for ac_dir in $ac_dummy; do
1358 test -z "$ac_dir" && ac_dir=.
1359 $as_executable_p "$ac_dir/$ac_word" || continue
1360 ac_cv_prog_ac_ct_CC="cc"
1361 echo "$as_me:1361: found $ac_dir/$ac_word" >&5
1367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1368 if test -n "$ac_ct_CC"; then
1369 echo "$as_me:1369: result: $ac_ct_CC" >&5
1370 echo "${ECHO_T}$ac_ct_CC" >&6
1372 echo "$as_me:1372: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1382 if test -z "$CC"; then
1383 # Extract the first word of "cc", so it can be a program name with args.
1384 set dummy cc; ac_word=$2
1385 echo "$as_me:1385: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1394 ac_save_IFS=$IFS; IFS=$ac_path_separator
1396 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 $as_executable_p "$ac_dir/$ac_word" || continue
1400 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1401 ac_prog_rejected=yes
1405 echo "$as_me:1405: found $ac_dir/$ac_word" >&5
1409 if test $ac_prog_rejected = yes; then
1410 # We found a bogon in the path, so make sure we never use it.
1411 set dummy $ac_cv_prog_CC
1413 if test $# != 0; then
1414 # We chose a different compiler from the bogus one.
1415 # However, it has the same basename, so the bogon will be chosen
1416 # first if we set CC to just the basename; use the full file name.
1418 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1426 if test -n "$CC"; then
1427 echo "$as_me:1427: result: $CC" >&5
1428 echo "${ECHO_T}$CC" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1435 if test -z "$CC"; then
1436 if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1449 ac_save_IFS=$IFS; IFS=$ac_path_separator
1451 for ac_dir in $ac_dummy; do
1453 test -z "$ac_dir" && ac_dir=.
1454 $as_executable_p "$ac_dir/$ac_word" || continue
1455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1456 echo "$as_me:1456: found $ac_dir/$ac_word" >&5
1463 if test -n "$CC"; then
1464 echo "$as_me:1464: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1471 test -n "$CC" && break
1474 if test -z "$CC"; then
1478 # Extract the first word of "$ac_prog", so it can be a program name with args.
1479 set dummy $ac_prog; ac_word=$2
1480 echo "$as_me:1480: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 ac_save_IFS=$IFS; IFS=$ac_path_separator
1490 for ac_dir in $ac_dummy; do
1492 test -z "$ac_dir" && ac_dir=.
1493 $as_executable_p "$ac_dir/$ac_word" || continue
1494 ac_cv_prog_ac_ct_CC="$ac_prog"
1495 echo "$as_me:1495: found $ac_dir/$ac_word" >&5
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1502 if test -n "$ac_ct_CC"; then
1503 echo "$as_me:1503: result: $ac_ct_CC" >&5
1504 echo "${ECHO_T}$ac_ct_CC" >&6
1506 echo "$as_me:1506: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1510 test -n "$ac_ct_CC" && break
1518 test -z "$CC" && { { echo "$as_me:1518: error: no acceptable cc found in \$PATH" >&5
1519 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1520 { (exit 1); exit 1; }; }
1522 # Provide some information about the compiler.
1523 echo "$as_me:1523:" \
1524 "checking for C compiler version" >&5
1525 ac_compiler=`set X $ac_compile; echo $2`
1526 { (eval echo "$as_me:1526: \"$ac_compiler --version </dev/null >&5\"") >&5
1527 (eval $ac_compiler --version </dev/null >&5) 2>&5
1529 echo "$as_me:1529: \$? = $ac_status" >&5
1530 (exit $ac_status); }
1531 { (eval echo "$as_me:1531: \"$ac_compiler -v </dev/null >&5\"") >&5
1532 (eval $ac_compiler -v </dev/null >&5) 2>&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); }
1536 { (eval echo "$as_me:1536: \"$ac_compiler -V </dev/null >&5\"") >&5
1537 (eval $ac_compiler -V </dev/null >&5) 2>&5
1539 echo "$as_me:1539: \$? = $ac_status" >&5
1540 (exit $ac_status); }
1542 cat >conftest.$ac_ext <<_ACEOF
1543 #line 1543 "configure"
1544 #include "confdefs.h"
1554 ac_clean_files_save=$ac_clean_files
1555 ac_clean_files="$ac_clean_files a.out a.exe"
1556 # Try to create an executable without -o first, disregard a.out.
1557 # It will help us diagnose broken compilers, and finding out an intuition
1559 echo "$as_me:1559: checking for C compiler default output" >&5
1560 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1561 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1562 if { (eval echo "$as_me:1562: \"$ac_link_default\"") >&5
1563 (eval $ac_link_default) 2>&5
1565 echo "$as_me:1565: \$? = $ac_status" >&5
1566 (exit $ac_status); }; then
1567 # Find the output, starting from the most likely. This scheme is
1568 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1570 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1571 ls a.out conftest 2>/dev/null;
1572 ls a.* conftest.* 2>/dev/null`; do
1574 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1575 a.out ) # We found the default executable, but exeext='' is most
1578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1579 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1586 echo "$as_me: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 { { echo "$as_me:1588: error: C compiler cannot create executables" >&5
1589 echo "$as_me: error: C compiler cannot create executables" >&2;}
1590 { (exit 77); exit 77; }; }
1593 ac_exeext=$ac_cv_exeext
1594 echo "$as_me:1594: result: $ac_file" >&5
1595 echo "${ECHO_T}$ac_file" >&6
1597 # Check the compiler produces executables we can run. If not, either
1598 # the compiler is broken, or we cross compile.
1599 echo "$as_me:1599: checking whether the C compiler works" >&5
1600 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1601 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1602 # If not cross compiling, check that we can run a simple program.
1603 if test "$cross_compiling" != yes; then
1604 if { ac_try='./$ac_file'
1605 { (eval echo "$as_me:1605: \"$ac_try\"") >&5
1608 echo "$as_me:1608: \$? = $ac_status" >&5
1609 (exit $ac_status); }; }; then
1612 if test "$cross_compiling" = maybe; then
1615 { { echo "$as_me:1615: error: cannot run C compiled programs.
1616 If you meant to cross compile, use \`--host'." >&5
1617 echo "$as_me: error: cannot run C compiled programs.
1618 If you meant to cross compile, use \`--host'." >&2;}
1619 { (exit 1); exit 1; }; }
1623 echo "$as_me:1623: result: yes" >&5
1624 echo "${ECHO_T}yes" >&6
1626 rm -f a.out a.exe conftest$ac_cv_exeext
1627 ac_clean_files=$ac_clean_files_save
1628 # Check the compiler produces executables we can run. If not, either
1629 # the compiler is broken, or we cross compile.
1630 echo "$as_me:1630: checking whether we are cross compiling" >&5
1631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1632 echo "$as_me:1632: result: $cross_compiling" >&5
1633 echo "${ECHO_T}$cross_compiling" >&6
1635 echo "$as_me:1635: checking for executable suffix" >&5
1636 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1637 if { (eval echo "$as_me:1637: \"$ac_link\"") >&5
1638 (eval $ac_link) 2>&5
1640 echo "$as_me:1640: \$? = $ac_status" >&5
1641 (exit $ac_status); }; then
1642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1644 # work properly (i.e., refer to `conftest.exe'), while it won't with
1646 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1648 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1649 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1656 { { echo "$as_me:1656: error: cannot compute EXEEXT: cannot compile and link" >&5
1657 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1658 { (exit 1); exit 1; }; }
1661 rm -f conftest$ac_cv_exeext
1662 echo "$as_me:1662: result: $ac_cv_exeext" >&5
1663 echo "${ECHO_T}$ac_cv_exeext" >&6
1665 rm -f conftest.$ac_ext
1666 EXEEXT=$ac_cv_exeext
1668 echo "$as_me:1668: checking for object suffix" >&5
1669 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1670 if test "${ac_cv_objext+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 cat >conftest.$ac_ext <<_ACEOF
1674 #line 1674 "configure"
1675 #include "confdefs.h"
1685 rm -f conftest.o conftest.obj
1686 if { (eval echo "$as_me:1686: \"$ac_compile\"") >&5
1687 (eval $ac_compile) 2>&5
1689 echo "$as_me:1689: \$? = $ac_status" >&5
1690 (exit $ac_status); }; then
1691 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1699 echo "$as_me: failed program was:" >&5
1700 cat conftest.$ac_ext >&5
1701 { { echo "$as_me:1701: error: cannot compute OBJEXT: cannot compile" >&5
1702 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1703 { (exit 1); exit 1; }; }
1706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1708 echo "$as_me:1708: result: $ac_cv_objext" >&5
1709 echo "${ECHO_T}$ac_cv_objext" >&6
1710 OBJEXT=$ac_cv_objext
1712 echo "$as_me:1712: checking whether we are using the GNU C compiler" >&5
1713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1717 cat >conftest.$ac_ext <<_ACEOF
1718 #line 1718 "configure"
1719 #include "confdefs.h"
1732 rm -f conftest.$ac_objext
1733 if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5
1734 (eval $ac_compile) 2>&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); } &&
1738 { ac_try='test -s conftest.$ac_objext'
1739 { (eval echo "$as_me:1739: \"$ac_try\"") >&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; }; then
1746 echo "$as_me: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1750 rm -f conftest.$ac_objext conftest.$ac_ext
1751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1754 echo "$as_me:1754: result: $ac_cv_c_compiler_gnu" >&5
1755 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1756 GCC=`test $ac_compiler_gnu = yes && echo yes`
1757 ac_test_CFLAGS=${CFLAGS+set}
1758 ac_save_CFLAGS=$CFLAGS
1760 echo "$as_me:1760: checking whether $CC accepts -g" >&5
1761 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1762 if test "${ac_cv_prog_cc_g+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line 1766 "configure"
1767 #include "confdefs.h"
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try='test -s conftest.$ac_objext'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1791 echo "$as_me: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1797 echo "$as_me:1797: result: $ac_cv_prog_cc_g" >&5
1798 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1799 if test "$ac_test_CFLAGS" = set; then
1800 CFLAGS=$ac_save_CFLAGS
1801 elif test $ac_cv_prog_cc_g = yes; then
1802 if test "$GCC" = yes; then
1808 if test "$GCC" = yes; then
1814 # Some people use a C++ compiler to compile C. Since we use `exit',
1815 # in C++ we need to declare it. In case someone uses the same compiler
1816 # for both compiling C and C++ we need to have the C++ compiler decide
1817 # the declaration of exit, since it's the most demanding environment.
1818 cat >conftest.$ac_ext <<_ACEOF
1823 rm -f conftest.$ac_objext
1824 if { (eval echo "$as_me:1824: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); } &&
1829 { ac_try='test -s conftest.$ac_objext'
1830 { (eval echo "$as_me:1830: \"$ac_try\"") >&5
1833 echo "$as_me:1833: \$? = $ac_status" >&5
1834 (exit $ac_status); }; }; then
1835 for ac_declaration in \
1837 '#include <stdlib.h>' \
1838 'extern "C" void std::exit (int) throw (); using std::exit;' \
1839 'extern "C" void std::exit (int); using std::exit;' \
1840 'extern "C" void exit (int) throw ();' \
1841 'extern "C" void exit (int);' \
1844 cat >conftest.$ac_ext <<_ACEOF
1845 #line 1845 "configure"
1846 #include "confdefs.h"
1857 rm -f conftest.$ac_objext
1858 if { (eval echo "$as_me:1858: \"$ac_compile\"") >&5
1859 (eval $ac_compile) 2>&5
1861 echo "$as_me:1861: \$? = $ac_status" >&5
1862 (exit $ac_status); } &&
1863 { ac_try='test -s conftest.$ac_objext'
1864 { (eval echo "$as_me:1864: \"$ac_try\"") >&5
1867 echo "$as_me:1867: \$? = $ac_status" >&5
1868 (exit $ac_status); }; }; then
1871 echo "$as_me: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1875 rm -f conftest.$ac_objext conftest.$ac_ext
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -s conftest.$ac_objext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1902 echo "$as_me: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1905 rm -f conftest.$ac_objext conftest.$ac_ext
1908 if test -n "$ac_declaration"; then
1909 echo '#ifdef __cplusplus' >>confdefs.h
1910 echo $ac_declaration >>confdefs.h
1911 echo '#endif' >>confdefs.h
1915 echo "$as_me: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 rm -f conftest.$ac_objext conftest.$ac_ext
1920 ac_cpp='$CPP $CPPFLAGS'
1921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 ac_cpp='$CPP $CPPFLAGS'
1927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 echo "$as_me:1930: checking how to run the C preprocessor" >&5
1931 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1932 # On Suns, sometimes $CPP names a directory.
1933 if test -n "$CPP" && test -d "$CPP"; then
1936 if test -z "$CPP"; then
1937 if test "${ac_cv_prog_CPP+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 # Double quotes because CPP needs to be expanded
1941 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1944 for ac_c_preproc_warn_flag in '' yes
1946 # Use a header file that comes with gcc, so configuring glibc
1947 # with a fresh cross-compiler works.
1948 # On the NeXT, cc -E runs the code through the compiler's parser,
1949 # not just through cpp. "Syntax error" is here to catch this case.
1950 cat >conftest.$ac_ext <<_ACEOF
1951 #line 1951 "configure"
1952 #include "confdefs.h"
1956 if { (eval echo "$as_me:1956: \"$ac_cpp conftest.$ac_ext\"") >&5
1957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1959 egrep -v '^ *\+' conftest.er1 >conftest.err
1961 cat conftest.err >&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit $ac_status); } >/dev/null; then
1964 if test -s conftest.err; then
1965 ac_cpp_err=$ac_c_preproc_warn_flag
1972 if test -z "$ac_cpp_err"; then
1975 echo "$as_me: failed program was:" >&5
1976 cat conftest.$ac_ext >&5
1977 # Broken: fails on valid input.
1980 rm -f conftest.err conftest.$ac_ext
1982 # OK, works on sane cases. Now check whether non-existent headers
1983 # can be detected and how.
1984 cat >conftest.$ac_ext <<_ACEOF
1985 #line 1985 "configure"
1986 #include "confdefs.h"
1987 #include <ac_nonexistent.h>
1989 if { (eval echo "$as_me:1989: \"$ac_cpp conftest.$ac_ext\"") >&5
1990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1992 egrep -v '^ *\+' conftest.er1 >conftest.err
1994 cat conftest.err >&5
1995 echo "$as_me:1995: \$? = $ac_status" >&5
1996 (exit $ac_status); } >/dev/null; then
1997 if test -s conftest.err; then
1998 ac_cpp_err=$ac_c_preproc_warn_flag
2005 if test -z "$ac_cpp_err"; then
2006 # Broken: success on invalid input.
2009 echo "$as_me: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2011 # Passes both tests.
2015 rm -f conftest.err conftest.$ac_ext
2018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2019 rm -f conftest.err conftest.$ac_ext
2020 if $ac_preproc_ok; then
2032 echo "$as_me:2032: result: $CPP" >&5
2033 echo "${ECHO_T}$CPP" >&6
2035 for ac_c_preproc_warn_flag in '' yes
2037 # Use a header file that comes with gcc, so configuring glibc
2038 # with a fresh cross-compiler works.
2039 # On the NeXT, cc -E runs the code through the compiler's parser,
2040 # not just through cpp. "Syntax error" is here to catch this case.
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line 2042 "configure"
2043 #include "confdefs.h"
2047 if { (eval echo "$as_me:2047: \"$ac_cpp conftest.$ac_ext\"") >&5
2048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2050 egrep -v '^ *\+' conftest.er1 >conftest.err
2052 cat conftest.err >&5
2053 echo "$as_me:2053: \$? = $ac_status" >&5
2054 (exit $ac_status); } >/dev/null; then
2055 if test -s conftest.err; then
2056 ac_cpp_err=$ac_c_preproc_warn_flag
2063 if test -z "$ac_cpp_err"; then
2066 echo "$as_me: failed program was:" >&5
2067 cat conftest.$ac_ext >&5
2068 # Broken: fails on valid input.
2071 rm -f conftest.err conftest.$ac_ext
2073 # OK, works on sane cases. Now check whether non-existent headers
2074 # can be detected and how.
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line 2076 "configure"
2077 #include "confdefs.h"
2078 #include <ac_nonexistent.h>
2080 if { (eval echo "$as_me:2080: \"$ac_cpp conftest.$ac_ext\"") >&5
2081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2083 egrep -v '^ *\+' conftest.er1 >conftest.err
2085 cat conftest.err >&5
2086 echo "$as_me:2086: \$? = $ac_status" >&5
2087 (exit $ac_status); } >/dev/null; then
2088 if test -s conftest.err; then
2089 ac_cpp_err=$ac_c_preproc_warn_flag
2096 if test -z "$ac_cpp_err"; then
2097 # Broken: success on invalid input.
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 # Passes both tests.
2106 rm -f conftest.err conftest.$ac_ext
2109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2110 rm -f conftest.err conftest.$ac_ext
2111 if $ac_preproc_ok; then
2114 { { echo "$as_me:2114: error: C preprocessor \"$CPP\" fails sanity check" >&5
2115 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2116 { (exit 1); exit 1; }; }
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125 echo "$as_me:2125: checking for ANSI C header files" >&5
2126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2127 if test "${ac_cv_header_stdc+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line 2131 "configure"
2132 #include "confdefs.h"
2139 if { (eval echo "$as_me:2139: \"$ac_cpp conftest.$ac_ext\"") >&5
2140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2142 egrep -v '^ *\+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:2145: \$? = $ac_status" >&5
2146 (exit $ac_status); } >/dev/null; then
2147 if test -s conftest.err; then
2148 ac_cpp_err=$ac_c_preproc_warn_flag
2155 if test -z "$ac_cpp_err"; then
2156 ac_cv_header_stdc=yes
2158 echo "$as_me: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2160 ac_cv_header_stdc=no
2162 rm -f conftest.err conftest.$ac_ext
2164 if test $ac_cv_header_stdc = yes; then
2165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2166 cat >conftest.$ac_ext <<_ACEOF
2167 #line 2167 "configure"
2168 #include "confdefs.h"
2172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2173 egrep "memchr" >/dev/null 2>&1; then
2176 ac_cv_header_stdc=no
2182 if test $ac_cv_header_stdc = yes; then
2183 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line 2185 "configure"
2186 #include "confdefs.h"
2190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2191 egrep "free" >/dev/null 2>&1; then
2194 ac_cv_header_stdc=no
2200 if test $ac_cv_header_stdc = yes; then
2201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2202 if test "$cross_compiling" = yes; then
2205 cat >conftest.$ac_ext <<_ACEOF
2206 #line 2206 "configure"
2207 #include "confdefs.h"
2209 #if ((' ' & 0x0FF) == 0x020)
2210 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2211 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2213 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2214 || ('j' <= (c) && (c) <= 'r') \
2215 || ('s' <= (c) && (c) <= 'z'))
2216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2224 for (i = 0; i < 256; i++)
2225 if (XOR (islower (i), ISLOWER (i))
2226 || toupper (i) != TOUPPER (i))
2231 rm -f conftest$ac_exeext
2232 if { (eval echo "$as_me:2232: \"$ac_link\"") >&5
2233 (eval $ac_link) 2>&5
2235 echo "$as_me:2235: \$? = $ac_status" >&5
2236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2237 { (eval echo "$as_me:2237: \"$ac_try\"") >&5
2240 echo "$as_me:2240: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 echo "$as_me: program exited with status $ac_status" >&5
2245 echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 ac_cv_header_stdc=no
2249 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2253 echo "$as_me:2253: result: $ac_cv_header_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2255 if test $ac_cv_header_stdc = yes; then
2257 cat >>confdefs.h <<\EOF
2258 #define STDC_HEADERS 1
2263 for ac_prog in 'bison -y' byacc
2265 # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:2267: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_YACC+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 if test -n "$YACC"; then
2273 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2275 ac_save_IFS=$IFS; IFS=$ac_path_separator
2277 for ac_dir in $ac_dummy; do
2279 test -z "$ac_dir" && ac_dir=.
2280 $as_executable_p "$ac_dir/$ac_word" || continue
2281 ac_cv_prog_YACC="$ac_prog"
2282 echo "$as_me:2282: found $ac_dir/$ac_word" >&5
2288 YACC=$ac_cv_prog_YACC
2289 if test -n "$YACC"; then
2290 echo "$as_me:2290: result: $YACC" >&5
2291 echo "${ECHO_T}$YACC" >&6
2293 echo "$as_me:2293: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2297 test -n "$YACC" && break
2299 test -n "$YACC" || YACC="yacc"
2301 missing_dir=`cd $ac_aux_dir && pwd`
2302 for ac_prog in flex lex
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 echo "$as_me:2306: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_LEX+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2311 if test -n "$LEX"; then
2312 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2314 ac_save_IFS=$IFS; IFS=$ac_path_separator
2316 for ac_dir in $ac_dummy; do
2318 test -z "$ac_dir" && ac_dir=.
2319 $as_executable_p "$ac_dir/$ac_word" || continue
2320 ac_cv_prog_LEX="$ac_prog"
2321 echo "$as_me:2321: found $ac_dir/$ac_word" >&5
2328 if test -n "$LEX"; then
2329 echo "$as_me:2329: result: $LEX" >&5
2330 echo "${ECHO_T}$LEX" >&6
2332 echo "$as_me:2332: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2336 test -n "$LEX" && break
2338 test -n "$LEX" || LEX=""$missing_dir/missing flex""
2340 for ac_prog in flex lex
2342 # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 echo "$as_me:2344: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2346 if test "${ac_cv_prog_LEX+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2349 if test -n "$LEX"; then
2350 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2352 ac_save_IFS=$IFS; IFS=$ac_path_separator
2354 for ac_dir in $ac_dummy; do
2356 test -z "$ac_dir" && ac_dir=.
2357 $as_executable_p "$ac_dir/$ac_word" || continue
2358 ac_cv_prog_LEX="$ac_prog"
2359 echo "$as_me:2359: found $ac_dir/$ac_word" >&5
2366 if test -n "$LEX"; then
2367 echo "$as_me:2367: result: $LEX" >&5
2368 echo "${ECHO_T}$LEX" >&6
2370 echo "$as_me:2370: result: no" >&5
2371 echo "${ECHO_T}no" >&6
2374 test -n "$LEX" && break
2376 test -n "$LEX" || LEX=":"
2378 if test -z "$LEXLIB"
2380 echo "$as_me:2380: checking for yywrap in -lfl" >&5
2381 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2382 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 ac_check_lib_save_LIBS=$LIBS
2387 cat >conftest.$ac_ext <<_ACEOF
2388 #line 2388 "configure"
2389 #include "confdefs.h"
2391 /* Override any gcc2 internal prototype to avoid an error. */
2395 /* We use char because int might match the return type of a gcc2
2396 builtin and then its argument prototype would still apply. */
2406 rm -f conftest.$ac_objext conftest$ac_exeext
2407 if { (eval echo "$as_me:2407: \"$ac_link\"") >&5
2408 (eval $ac_link) 2>&5
2410 echo "$as_me:2410: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -s conftest$ac_exeext'
2413 { (eval echo "$as_me:2413: \"$ac_try\"") >&5
2416 echo "$as_me:2416: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_lib_fl_yywrap=yes
2420 echo "$as_me: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 ac_cv_lib_fl_yywrap=no
2424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2425 LIBS=$ac_check_lib_save_LIBS
2427 echo "$as_me:2427: result: $ac_cv_lib_fl_yywrap" >&5
2428 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2429 if test $ac_cv_lib_fl_yywrap = yes; then
2432 echo "$as_me:2432: checking for yywrap in -ll" >&5
2433 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2434 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 ac_check_lib_save_LIBS=$LIBS
2439 cat >conftest.$ac_ext <<_ACEOF
2440 #line 2440 "configure"
2441 #include "confdefs.h"
2443 /* Override any gcc2 internal prototype to avoid an error. */
2447 /* We use char because int might match the return type of a gcc2
2448 builtin and then its argument prototype would still apply. */
2458 rm -f conftest.$ac_objext conftest$ac_exeext
2459 if { (eval echo "$as_me:2459: \"$ac_link\"") >&5
2460 (eval $ac_link) 2>&5
2462 echo "$as_me:2462: \$? = $ac_status" >&5
2463 (exit $ac_status); } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:2465: \"$ac_try\"") >&5
2468 echo "$as_me:2468: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_lib_l_yywrap=yes
2472 echo "$as_me: failed program was:" >&5
2473 cat conftest.$ac_ext >&5
2474 ac_cv_lib_l_yywrap=no
2476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2477 LIBS=$ac_check_lib_save_LIBS
2479 echo "$as_me:2479: result: $ac_cv_lib_l_yywrap" >&5
2480 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2481 if test $ac_cv_lib_l_yywrap = yes; then
2489 if test "x$LEX" != "x:"; then
2490 echo "$as_me:2490: checking lex output file root" >&5
2491 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2492 if test "${ac_cv_prog_lex_root+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 # The minimal lex program is just a single line: %%. But some broken lexes
2496 # (Solaris, I think it was) want two %% lines, so accommodate them.
2499 if test -f lex.yy.c; then
2500 ac_cv_prog_lex_root=lex.yy
2501 elif test -f lexyy.c; then
2502 ac_cv_prog_lex_root=lexyy
2504 { { echo "$as_me:2504: error: cannot find output from $LEX; giving up" >&5
2505 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2506 { (exit 1); exit 1; }; }
2509 echo "$as_me:2509: result: $ac_cv_prog_lex_root" >&5
2510 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2511 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2513 echo "$as_me:2513: checking whether yytext is a pointer" >&5
2514 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2515 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 # POSIX says lex can declare yytext either as a pointer or an array; the
2519 # default is implementation-dependent. Figure out which it is, since
2520 # not all implementations provide the %pointer and %array declarations.
2521 ac_cv_prog_lex_yytext_pointer=no
2522 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2524 LIBS="$LIBS $LEXLIB"
2525 cat >conftest.$ac_ext <<_ACEOF
2526 `cat $LEX_OUTPUT_ROOT.c`
2528 rm -f conftest.$ac_objext conftest$ac_exeext
2529 if { (eval echo "$as_me:2529: \"$ac_link\"") >&5
2530 (eval $ac_link) 2>&5
2532 echo "$as_me:2532: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -s conftest$ac_exeext'
2535 { (eval echo "$as_me:2535: \"$ac_try\"") >&5
2538 echo "$as_me:2538: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2540 ac_cv_prog_lex_yytext_pointer=yes
2542 echo "$as_me: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2547 rm -f "${LEX_OUTPUT_ROOT}.c"
2550 echo "$as_me:2550: result: $ac_cv_prog_lex_yytext_pointer" >&5
2551 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2552 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2554 cat >>confdefs.h <<\EOF
2555 #define YYTEXT_POINTER 1
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # ./install, which can be erroneously created by make from ./install.sh.
2574 echo "$as_me:2574: checking for a BSD compatible install" >&5
2575 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2576 if test -z "$INSTALL"; then
2577 if test "${ac_cv_path_install+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 ac_save_IFS=$IFS; IFS=$ac_path_separator
2581 for ac_dir in $PATH; do
2583 # Account for people who put trailing slashes in PATH elements.
2585 / | ./ | .// | /cC/* \
2586 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2589 # OSF1 and SCO ODT 3.0 have their own names for install.
2590 # Don't use installbsd from OSF since it installs stuff as root
2592 for ac_prog in ginstall scoinst install; do
2593 if $as_executable_p "$ac_dir/$ac_prog"; then
2594 if test $ac_prog = install &&
2595 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2596 # AIX install. It has an incompatible calling convention.
2598 elif test $ac_prog = install &&
2599 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2600 # program-specific install script used by HP pwplus--don't use.
2603 ac_cv_path_install="$ac_dir/$ac_prog -c"
2613 if test "${ac_cv_path_install+set}" = set; then
2614 INSTALL=$ac_cv_path_install
2616 # As a last resort, use the slow shell script. We don't cache a
2617 # path for INSTALL within a source directory, because that will
2618 # break other packages using the cache if that directory is
2619 # removed, or if the path is relative.
2620 INSTALL=$ac_install_sh
2623 echo "$as_me:2623: result: $INSTALL" >&5
2624 echo "${ECHO_T}$INSTALL" >&6
2626 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2627 # It thinks the first close brace ends the variable substitution.
2628 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2630 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2632 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 echo "$as_me:2639: checking how to run the C preprocessor" >&5
2640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2641 # On Suns, sometimes $CPP names a directory.
2642 if test -n "$CPP" && test -d "$CPP"; then
2645 if test -z "$CPP"; then
2646 if test "${ac_cv_prog_CPP+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 # Double quotes because CPP needs to be expanded
2650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2653 for ac_c_preproc_warn_flag in '' yes
2655 # Use a header file that comes with gcc, so configuring glibc
2656 # with a fresh cross-compiler works.
2657 # On the NeXT, cc -E runs the code through the compiler's parser,
2658 # not just through cpp. "Syntax error" is here to catch this case.
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line 2660 "configure"
2661 #include "confdefs.h"
2665 if { (eval echo "$as_me:2665: \"$ac_cpp conftest.$ac_ext\"") >&5
2666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2668 egrep -v '^ *\+' conftest.er1 >conftest.err
2670 cat conftest.err >&5
2671 echo "$as_me:2671: \$? = $ac_status" >&5
2672 (exit $ac_status); } >/dev/null; then
2673 if test -s conftest.err; then
2674 ac_cpp_err=$ac_c_preproc_warn_flag
2681 if test -z "$ac_cpp_err"; then
2684 echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 # Broken: fails on valid input.
2689 rm -f conftest.err conftest.$ac_ext
2691 # OK, works on sane cases. Now check whether non-existent headers
2692 # can be detected and how.
2693 cat >conftest.$ac_ext <<_ACEOF
2694 #line 2694 "configure"
2695 #include "confdefs.h"
2696 #include <ac_nonexistent.h>
2698 if { (eval echo "$as_me:2698: \"$ac_cpp conftest.$ac_ext\"") >&5
2699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701 egrep -v '^ *\+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:2704: \$? = $ac_status" >&5
2705 (exit $ac_status); } >/dev/null; then
2706 if test -s conftest.err; then
2707 ac_cpp_err=$ac_c_preproc_warn_flag
2714 if test -z "$ac_cpp_err"; then
2715 # Broken: success on invalid input.
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 # Passes both tests.
2724 rm -f conftest.err conftest.$ac_ext
2727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2728 rm -f conftest.err conftest.$ac_ext
2729 if $ac_preproc_ok; then
2741 echo "$as_me:2741: result: $CPP" >&5
2742 echo "${ECHO_T}$CPP" >&6
2744 for ac_c_preproc_warn_flag in '' yes
2746 # Use a header file that comes with gcc, so configuring glibc
2747 # with a fresh cross-compiler works.
2748 # On the NeXT, cc -E runs the code through the compiler's parser,
2749 # not just through cpp. "Syntax error" is here to catch this case.
2750 cat >conftest.$ac_ext <<_ACEOF
2751 #line 2751 "configure"
2752 #include "confdefs.h"
2756 if { (eval echo "$as_me:2756: \"$ac_cpp conftest.$ac_ext\"") >&5
2757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2759 egrep -v '^ *\+' conftest.er1 >conftest.err
2761 cat conftest.err >&5
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); } >/dev/null; then
2764 if test -s conftest.err; then
2765 ac_cpp_err=$ac_c_preproc_warn_flag
2772 if test -z "$ac_cpp_err"; then
2775 echo "$as_me: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 # Broken: fails on valid input.
2780 rm -f conftest.err conftest.$ac_ext
2782 # OK, works on sane cases. Now check whether non-existent headers
2783 # can be detected and how.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line 2785 "configure"
2786 #include "confdefs.h"
2787 #include <ac_nonexistent.h>
2789 if { (eval echo "$as_me:2789: \"$ac_cpp conftest.$ac_ext\"") >&5
2790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2792 egrep -v '^ *\+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:2795: \$? = $ac_status" >&5
2796 (exit $ac_status); } >/dev/null; then
2797 if test -s conftest.err; then
2798 ac_cpp_err=$ac_c_preproc_warn_flag
2805 if test -z "$ac_cpp_err"; then
2806 # Broken: success on invalid input.
2809 echo "$as_me: failed program was:" >&5
2810 cat conftest.$ac_ext >&5
2811 # Passes both tests.
2815 rm -f conftest.err conftest.$ac_ext
2818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2819 rm -f conftest.err conftest.$ac_ext
2820 if $ac_preproc_ok; then
2823 { { echo "$as_me:2823: error: C preprocessor \"$CPP\" fails sanity check" >&5
2824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2825 { (exit 1); exit 1; }; }
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 # Extract the first word of "rm", so it can be a program name with args.
2835 set dummy rm; ac_word=$2
2836 echo "$as_me:2836: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_path_RM+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2846 ac_save_IFS=$IFS; IFS=$ac_path_separator
2848 for ac_dir in $ac_dummy; do
2850 test -z "$ac_dir" && ac_dir=.
2851 if $as_executable_p "$ac_dir/$ac_word"; then
2852 ac_cv_path_RM="$ac_dir/$ac_word"
2853 echo "$as_me:2853: found $ac_dir/$ac_word" >&5
2858 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2864 if test -n "$RM"; then
2865 echo "$as_me:2865: result: $RM" >&5
2866 echo "${ECHO_T}$RM" >&6
2868 echo "$as_me:2868: result: no" >&5
2869 echo "${ECHO_T}no" >&6
2872 # Extract the first word of "mv", so it can be a program name with args.
2873 set dummy mv; ac_word=$2
2874 echo "$as_me:2874: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2876 if test "${ac_cv_path_MV+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 ac_cv_path_MV="$MV" # Let the user override the test with a path.
2884 ac_save_IFS=$IFS; IFS=$ac_path_separator
2886 for ac_dir in $ac_dummy; do
2888 test -z "$ac_dir" && ac_dir=.
2889 if $as_executable_p "$ac_dir/$ac_word"; then
2890 ac_cv_path_MV="$ac_dir/$ac_word"
2891 echo "$as_me:2891: found $ac_dir/$ac_word" >&5
2896 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
2902 if test -n "$MV"; then
2903 echo "$as_me:2903: result: $MV" >&5
2904 echo "${ECHO_T}$MV" >&6
2906 echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 # Extract the first word of "tar", so it can be a program name with args.
2911 set dummy tar; ac_word=$2
2912 echo "$as_me:2912: checking for $ac_word" >&5
2913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2914 if test "${ac_cv_path_TAR+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2922 ac_save_IFS=$IFS; IFS=$ac_path_separator
2924 for ac_dir in $ac_dummy; do
2926 test -z "$ac_dir" && ac_dir=.
2927 if $as_executable_p "$ac_dir/$ac_word"; then
2928 ac_cv_path_TAR="$ac_dir/$ac_word"
2929 echo "$as_me:2929: found $ac_dir/$ac_word" >&5
2934 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
2940 if test -n "$TAR"; then
2941 echo "$as_me:2941: result: $TAR" >&5
2942 echo "${ECHO_T}$TAR" >&6
2944 echo "$as_me:2944: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2948 # Check whether --enable-glibtest or --disable-glibtest was given.
2949 if test "${enable_glibtest+set}" = set; then
2950 enableval="$enable_glibtest"
2956 pkg_config_args=glib-2.0
2961 pkg_config_args="$pkg_config_args gmodule-2.0"
2964 pkg_config_args="$pkg_config_args gobject-2.0"
2967 pkg_config_args="$pkg_config_args gthread-2.0"
2972 # Extract the first word of "pkg-config", so it can be a program name with args.
2973 set dummy pkg-config; ac_word=$2
2974 echo "$as_me:2974: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2984 ac_save_IFS=$IFS; IFS=$ac_path_separator
2986 for ac_dir in $ac_dummy; do
2988 test -z "$ac_dir" && ac_dir=.
2989 if $as_executable_p "$ac_dir/$ac_word"; then
2990 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2991 echo "$as_me:2991: found $ac_dir/$ac_word" >&5
2996 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3002 if test -n "$PKG_CONFIG"; then
3003 echo "$as_me:3003: result: $PKG_CONFIG" >&5
3004 echo "${ECHO_T}$PKG_CONFIG" >&6
3006 echo "$as_me:3006: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3012 if test x$PKG_CONFIG != xno ; then
3013 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
3016 echo *** pkg-config too old; version 0.7 or better required.
3022 ## don't try to run the test against uninstalled libtool libs
3023 if $PKG_CONFIG --uninstalled $pkg_config_args; then
3024 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
3028 min_glib_version=1.3.3
3029 echo "$as_me:3029: checking for GLIB - version >= $min_glib_version" >&5
3030 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
3032 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
3038 if test x"$no_glib" = x ; then
3039 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
3040 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
3041 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
3043 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
3044 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
3045 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
3046 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3047 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
3048 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3049 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
3050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3051 if test "x$enable_glibtest" = "xyes" ; then
3052 ac_save_CFLAGS="$CFLAGS"
3053 ac_save_LIBS="$LIBS"
3054 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3055 LIBS="$GLIB_LIBS $LIBS"
3057 if test "$cross_compiling" = yes; then
3058 echo $ac_n "cross compiling; assumed OK... $ac_c"
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3071 int major, minor, micro;
3074 system ("touch conf.glibtest");
3076 /* HP/UX 9 (%@#!) writes to sscanf strings */
3077 tmp_version = g_strdup("$min_glib_version");
3078 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3079 printf("%s, bad version string\n", "$min_glib_version");
3083 if ((glib_major_version != $glib_config_major_version) ||
3084 (glib_minor_version != $glib_config_minor_version) ||
3085 (glib_micro_version != $glib_config_micro_version))
3087 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
3088 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
3089 glib_major_version, glib_minor_version, glib_micro_version);
3090 printf ("*** was found! If pkg-config was correct, then it is best\n");
3091 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
3092 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3093 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3094 printf("*** required on your system.\n");
3095 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
3096 printf("*** to point to the correct configuration files\n");
3098 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
3099 (glib_minor_version != GLIB_MINOR_VERSION) ||
3100 (glib_micro_version != GLIB_MICRO_VERSION))
3102 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
3103 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
3104 printf("*** library (version %d.%d.%d)\n",
3105 glib_major_version, glib_minor_version, glib_micro_version);
3109 if ((glib_major_version > major) ||
3110 ((glib_major_version == major) && (glib_minor_version > minor)) ||
3111 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
3117 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
3118 glib_major_version, glib_minor_version, glib_micro_version);
3119 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
3120 major, minor, micro);
3121 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
3123 printf("*** If you have already installed a sufficiently new version, this error\n");
3124 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
3125 printf("*** being found. The easiest way to fix this is to remove the old version\n");
3126 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
3127 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
3128 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3129 printf("*** so that the correct libraries are found at run-time))\n");
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:3137: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:3140: \$? = $ac_status" >&5
3141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142 { (eval echo "$as_me:3142: \"$ac_try\"") >&5
3145 echo "$as_me:3145: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3149 echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3154 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3156 CFLAGS="$ac_save_CFLAGS"
3157 LIBS="$ac_save_LIBS"
3160 if test "x$no_glib" = x ; then
3161 echo "$as_me:3161: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
3162 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
3165 echo "$as_me:3165: result: no" >&5
3166 echo "${ECHO_T}no" >&6
3167 if test "$PKG_CONFIG" = "no" ; then
3168 echo "*** A new enough version of pkg-config was not found."
3169 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
3171 if test -f conf.glibtest ; then
3174 echo "*** Could not run GLIB test program, checking why..."
3175 CFLAGS="$CFLAGS $GLIB_CFLAGS"
3176 LIBS="$LIBS $GLIB_LIBS"
3177 cat >conftest.$ac_ext <<_ACEOF
3178 #line 3178 "configure"
3179 #include "confdefs.h"
3187 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
3192 rm -f conftest.$ac_objext conftest$ac_exeext
3193 if { (eval echo "$as_me:3193: \"$ac_link\"") >&5
3194 (eval $ac_link) 2>&5
3196 echo "$as_me:3196: \$? = $ac_status" >&5
3197 (exit $ac_status); } &&
3198 { ac_try='test -s conftest$ac_exeext'
3199 { (eval echo "$as_me:3199: \"$ac_try\"") >&5
3202 echo "$as_me:3202: \$? = $ac_status" >&5
3203 (exit $ac_status); }; }; then
3204 echo "*** The test program compiled, but did not run. This usually means"
3205 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
3206 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
3207 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3208 echo "*** to the installed location Also, make sure you have run ldconfig if that"
3209 echo "*** is required on your system"
3211 echo "*** If you have an old version installed, it is best to remove it, although"
3212 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216 echo "*** The test program failed to compile or link. See the file config.log for the"
3217 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
3218 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
3219 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
3221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3222 CFLAGS="$ac_save_CFLAGS"
3223 LIBS="$ac_save_LIBS"
3236 echo "$as_me:3236: checking whether to enable maintainer-specific portions of Makefiles" >&5
3237 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3238 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3239 if test "${enable_maintainer_mode+set}" = set; then
3240 enableval="$enable_maintainer_mode"
3241 USE_MAINTAINER_MODE=$enableval
3243 USE_MAINTAINER_MODE=no
3245 echo "$as_me:3245: result: $USE_MAINTAINER_MODE" >&5
3246 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3248 if test $USE_MAINTAINER_MODE = yes; then
3249 MAINTAINER_MODE_TRUE=
3250 MAINTAINER_MODE_FALSE='#'
3252 MAINTAINER_MODE_TRUE='#'
3253 MAINTAINER_MODE_FALSE=
3255 MAINT=$MAINTAINER_MODE_TRUE
3257 ac_config_files="$ac_config_files gob2.spec Makefile src/Makefile doc/Makefile examples/Makefile doc/gob2.1"
3258 cat >confcache <<\_ACEOF
3259 # This file is a shell script that caches the results of configure
3260 # tests run on this system so they can be shared between configure
3261 # scripts and configure runs, see configure's option --config-cache.
3262 # It is not useful on other systems. If it contains results you don't
3263 # want to keep, you may remove or edit it.
3265 # config.status only pays attention to the cache file if you give it
3266 # the --recheck option to rerun configure.
3268 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3269 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3274 # The following way of writing the cache mishandles newlines in values,
3275 # but we know of no workaround that is simple, portable, and efficient.
3276 # So, don't put newlines in cache variables' values.
3277 # Ultrix sh set writes to stderr and can't be redirected directly,
3278 # and sets the high bit in the cache file unless we assign to the vars.
3281 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3283 # `set' does not quote correctly, so add quotes (double-quote
3284 # substitution turns \\\\ into \\, and sed turns \\ into \).
3287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3290 # `set' quotes correctly as required by POSIX, so do not add quotes.
3292 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3301 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3303 if cmp -s $cache_file confcache; then :; else
3304 if test -w $cache_file; then
3305 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3306 cat confcache >$cache_file
3308 echo "not updating unwritable cache $cache_file"
3313 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3314 # Let make expand exec_prefix.
3315 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3319 # trailing colons and then remove the whole line if VPATH becomes empty
3320 # (actually we leave an empty line to preserve line numbers).
3321 if test "x$srcdir" = x.; then
3322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3323 s/:*\$(srcdir):*/:/;
3324 s/:*\${srcdir}:*/:/;
3326 s/^\([^=]*=[ ]*\):*/\1/;
3332 DEFS=-DHAVE_CONFIG_H
3334 : ${CONFIG_STATUS=./config.status}
3335 ac_clean_files_save=$ac_clean_files
3336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3337 { echo "$as_me:3337: creating $CONFIG_STATUS" >&5
3338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3339 cat >$CONFIG_STATUS <<_ACEOF
3341 # Generated automatically by configure.
3342 # Run this file to recreate the current configuration.
3343 # Compiler output produced by configure, useful for debugging
3344 # configure, is in config.log if it exists.
3347 SHELL=\${CONFIG_SHELL-$SHELL}
3348 ac_cs_invocation="\$0 \$@"
3352 cat >>$CONFIG_STATUS <<\_ACEOF
3353 # Be Bourne compatible
3354 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3357 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3361 # Name of the executable.
3362 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3364 if expr a : '\(a\)' >/dev/null 2>&1; then
3370 rm -f conf$$ conf$$.exe conf$$.file
3372 if ln -s conf$$.file conf$$ 2>/dev/null; then
3373 # We could just check for DJGPP; but this test a) works b) is more generic
3374 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3375 if test -f conf$$.exe; then
3376 # Don't use ln at all; we don't have any links
3381 elif ln conf$$.file conf$$ 2>/dev/null; then
3386 rm -f conf$$ conf$$.exe conf$$.file
3388 as_executable_p="test -f"
3390 # Support unset when possible.
3391 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3398 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3399 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3400 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3401 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3402 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3403 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3404 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3405 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3408 # We need space, tab and new line, in precisely that order.
3414 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3420 # Files that config.status was made for.
3421 if test -n "$ac_config_files"; then
3422 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3425 if test -n "$ac_config_headers"; then
3426 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3429 if test -n "$ac_config_links"; then
3430 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3433 if test -n "$ac_config_commands"; then
3434 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3437 cat >>$CONFIG_STATUS <<\EOF
3440 \`$as_me' instantiates files from templates according to the
3441 current configuration.
3443 Usage: $0 [OPTIONS] [FILE]...
3445 -h, --help print this help, then exit
3446 -V, --version print version number, then exit
3447 -d, --debug don't remove temporary files
3448 --recheck update $as_me by reconfiguring in the same conditions
3449 --file=FILE[:TEMPLATE]
3450 instantiate the configuration file FILE
3451 --header=FILE[:TEMPLATE]
3452 instantiate the configuration header FILE
3454 Configuration files:
3457 Configuration headers:
3460 Configuration commands:
3463 Report bugs to <bug-autoconf@gnu.org>."
3466 cat >>$CONFIG_STATUS <<EOF
3469 configured by $0, generated by GNU Autoconf 2.52,
3470 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3472 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3473 Free Software Foundation, Inc.
3474 This config.status script is free software; the Free Software Foundation
3475 gives unlimited permission to copy, distribute and modify it."
3480 cat >>$CONFIG_STATUS <<\EOF
3481 # If no file are specified by the user, then we need to provide default
3482 # value. By we need to know if files were specified by the user.
3488 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3489 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3491 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3495 *) # This is not an option, so the user has probably given explicit
3497 ac_need_defaults=false;;
3501 # Handling of the options.
3503 cat >>$CONFIG_STATUS <<EOF
3504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3505 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3506 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3508 cat >>$CONFIG_STATUS <<\EOF
3509 --version | --vers* | -V )
3510 echo "$ac_cs_version"; exit 0 ;;
3512 # Conflict between --help and --header
3513 { { echo "$as_me:3513: error: ambiguous option: $1
3514 Try \`$0 --help' for more information." >&5
3515 echo "$as_me: error: ambiguous option: $1
3516 Try \`$0 --help' for more information." >&2;}
3517 { (exit 1); exit 1; }; };;
3518 --help | --hel | -h )
3519 echo "$ac_cs_usage"; exit 0 ;;
3520 --debug | --d* | -d )
3522 --file | --fil | --fi | --f )
3524 CONFIG_FILES="$CONFIG_FILES $1"
3525 ac_need_defaults=false;;
3526 --header | --heade | --head | --hea )
3528 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3529 ac_need_defaults=false;;
3532 -*) { { echo "$as_me:3532: error: unrecognized option: $1
3533 Try \`$0 --help' for more information." >&5
3534 echo "$as_me: error: unrecognized option: $1
3535 Try \`$0 --help' for more information." >&2;}
3536 { (exit 1); exit 1; }; } ;;
3538 *) ac_config_targets="$ac_config_targets $1" ;;
3547 ## ----------------------- ##
3548 ## Running config.status. ##
3549 ## ----------------------- ##
3551 This file was extended by $as_me 2.52, executed with
3552 CONFIG_FILES = $CONFIG_FILES
3553 CONFIG_HEADERS = $CONFIG_HEADERS
3554 CONFIG_LINKS = $CONFIG_LINKS
3555 CONFIG_COMMANDS = $CONFIG_COMMANDS
3557 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3562 cat >>$CONFIG_STATUS <<EOF
3564 # INIT-COMMANDS section.
3569 cat >>$CONFIG_STATUS <<\EOF
3570 for ac_config_target in $ac_config_targets
3572 case "$ac_config_target" in
3573 # Handling of arguments.
3574 "gob2.spec" ) CONFIG_FILES="$CONFIG_FILES gob2.spec" ;;
3575 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3576 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
3577 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
3578 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
3579 "doc/gob2.1" ) CONFIG_FILES="$CONFIG_FILES doc/gob2.1" ;;
3580 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3581 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3582 *) { { echo "$as_me:3582: error: invalid argument: $ac_config_target" >&5
3583 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3584 { (exit 1); exit 1; }; };;
3588 # If the user did not use the arguments to specify the items to instantiate,
3589 # then the envvar interface is used. Set only those that are not.
3590 # We use the long form for the default assignment because of an extremely
3591 # bizarre bug on SunOS 4.1.3.
3592 if $ac_need_defaults; then
3593 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3594 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3595 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3598 # Create a temporary directory, and hook for its removal unless debugging.
3601 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3602 trap '{ (exit 1); exit 1; }' 1 2 13 15
3605 # Create a (secure) tmp directory for tmp files.
3608 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3609 test -n "$tmp" && test -d "$tmp"
3612 tmp=$TMPDIR/cs$$-$RANDOM
3613 (umask 077 && mkdir $tmp)
3616 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3617 { (exit 1); exit 1; }
3622 cat >>$CONFIG_STATUS <<EOF
3625 # CONFIG_FILES section.
3628 # No need to generate the scripts if there are no CONFIG_FILES.
3629 # This happens for instance when ./config.status config.h
3630 if test -n "\$CONFIG_FILES"; then
3631 # Protect against being on the right side of a sed subst in config.status.
3632 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3633 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3634 s,@SHELL@,$SHELL,;t t
3635 s,@exec_prefix@,$exec_prefix,;t t
3636 s,@prefix@,$prefix,;t t
3637 s,@program_transform_name@,$program_transform_name,;t t
3638 s,@bindir@,$bindir,;t t
3639 s,@sbindir@,$sbindir,;t t
3640 s,@libexecdir@,$libexecdir,;t t
3641 s,@datadir@,$datadir,;t t
3642 s,@sysconfdir@,$sysconfdir,;t t
3643 s,@sharedstatedir@,$sharedstatedir,;t t
3644 s,@localstatedir@,$localstatedir,;t t
3645 s,@libdir@,$libdir,;t t
3646 s,@includedir@,$includedir,;t t
3647 s,@oldincludedir@,$oldincludedir,;t t
3648 s,@infodir@,$infodir,;t t
3649 s,@mandir@,$mandir,;t t
3650 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3651 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3652 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3653 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3654 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3655 s,@build_alias@,$build_alias,;t t
3656 s,@host_alias@,$host_alias,;t t
3657 s,@target_alias@,$target_alias,;t t
3658 s,@ECHO_C@,$ECHO_C,;t t
3659 s,@ECHO_N@,$ECHO_N,;t t
3660 s,@ECHO_T@,$ECHO_T,;t t
3661 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3664 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3665 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3666 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3667 s,@PACKAGE@,$PACKAGE,;t t
3668 s,@VERSION@,$VERSION,;t t
3669 s,@ACLOCAL@,$ACLOCAL,;t t
3670 s,@AUTOCONF@,$AUTOCONF,;t t
3671 s,@AUTOMAKE@,$AUTOMAKE,;t t
3672 s,@AUTOHEADER@,$AUTOHEADER,;t t
3673 s,@MAKEINFO@,$MAKEINFO,;t t
3674 s,@SET_MAKE@,$SET_MAKE,;t t
3675 s,@SUBDIRS@,$SUBDIRS,;t t
3676 s,@DOINSTGOB@,$DOINSTGOB,;t t
3677 s,@NOINSTGOB@,$NOINSTGOB,;t t
3679 s,@CFLAGS@,$CFLAGS,;t t
3680 s,@LDFLAGS@,$LDFLAGS,;t t
3681 s,@CPPFLAGS@,$CPPFLAGS,;t t
3682 s,@ac_ct_CC@,$ac_ct_CC,;t t
3683 s,@EXEEXT@,$EXEEXT,;t t
3684 s,@OBJEXT@,$OBJEXT,;t t
3688 s,@LEXLIB@,$LEXLIB,;t t
3689 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
3693 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
3694 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
3695 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
3696 s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
3697 s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
3698 s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
3699 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
3700 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
3701 s,@MAINT@,$MAINT,;t t
3706 cat >>$CONFIG_STATUS <<\EOF
3707 # Split the substitutions into bite-sized pieces for seds with
3708 # small command number limits, like on Digital OSF/1 and HP-UX.
3710 ac_sed_frag=1 # Number of current file.
3711 ac_beg=1 # First line for current file.
3712 ac_end=$ac_max_sed_lines # Line after last line for current file.
3715 while $ac_more_lines; do
3716 if test $ac_beg -gt 1; then
3717 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3719 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3721 if test ! -s $tmp/subs.frag; then
3724 # The purpose of the label and of the branching condition is to
3725 # speed up the sed processing (if there are no `@' at all, there
3726 # is no need to browse any of the substitutions).
3727 # These are the two extra sed commands mentioned above.
3729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3730 if test -z "$ac_sed_cmds"; then
3731 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3733 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3735 ac_sed_frag=`expr $ac_sed_frag + 1`
3737 ac_end=`expr $ac_end + $ac_max_sed_lines`
3740 if test -z "$ac_sed_cmds"; then
3743 fi # test -n "$CONFIG_FILES"
3746 cat >>$CONFIG_STATUS <<\EOF
3747 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3750 - | *:- | *:-:* ) # input from stdin
3752 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3754 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3756 * ) ac_file_in=$ac_file.in ;;
3759 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3760 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3761 X"$ac_file" : 'X\(//\)[^/]' \| \
3762 X"$ac_file" : 'X\(//\)$' \| \
3763 X"$ac_file" : 'X\(/\)' \| \
3764 . : '\(.\)' 2>/dev/null ||
3766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3768 /^X\(\/\/\)$/{ s//\1/; q; }
3769 /^X\(\/\).*/{ s//\1/; q; }
3771 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3773 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3777 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3778 case $as_mkdir_dir in
3779 # Skip DOS drivespec
3780 ?:) as_incr_dir=$as_mkdir_dir ;;
3782 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3783 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3788 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3789 # A "../" for each directory in $ac_dir_suffix.
3790 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3792 ac_dir_suffix= ac_dots=
3797 if test -z "$ac_dots"; then
3800 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3803 ac_srcdir=$srcdir$ac_dir_suffix;
3804 ac_top_srcdir=$srcdir ;;
3806 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3807 ac_top_srcdir=$ac_dots$srcdir ;;
3811 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3812 *) ac_INSTALL=$ac_dots$INSTALL ;;
3815 if test x"$ac_file" != x-; then
3816 { echo "$as_me:3816: creating $ac_file" >&5
3817 echo "$as_me: creating $ac_file" >&6;}
3820 # Let's still pretend it is `configure' which instantiates (i.e., don't
3821 # use $as_me), people would be surprised to read:
3822 # /* config.h. Generated automatically by config.status. */
3823 configure_input="Generated automatically from `echo $ac_file_in |
3824 sed 's,.*/,,'` by configure."
3826 # First look for the input files in the build tree, otherwise in the
3828 ac_file_inputs=`IFS=:
3829 for f in $ac_file_in; do
3831 -) echo $tmp/stdin ;;
3833 # Absolute (can't be DOS-style, as IFS=:)
3834 test -f "$f" || { { echo "$as_me:3834: error: cannot find input file: $f" >&5
3835 echo "$as_me: error: cannot find input file: $f" >&2;}
3836 { (exit 1); exit 1; }; }
3839 if test -f "$f"; then
3842 elif test -f "$srcdir/$f"; then
3847 { { echo "$as_me:3847: error: cannot find input file: $f" >&5
3848 echo "$as_me: error: cannot find input file: $f" >&2;}
3849 { (exit 1); exit 1; }; }
3852 done` || { (exit 1); exit 1; }
3854 cat >>$CONFIG_STATUS <<EOF
3858 cat >>$CONFIG_STATUS <<\EOF
3860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3861 s,@configure_input@,$configure_input,;t t
3862 s,@srcdir@,$ac_srcdir,;t t
3863 s,@top_srcdir@,$ac_top_srcdir,;t t
3864 s,@INSTALL@,$ac_INSTALL,;t t
3865 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3867 if test x"$ac_file" != x-; then
3868 mv $tmp/out $ac_file
3876 cat >>$CONFIG_STATUS <<\EOF
3879 # CONFIG_HEADER section.
3882 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3883 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3885 # ac_d sets the value in "#define NAME VALUE" lines.
3886 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3887 ac_dB='[ ].*$,\1#\2'
3890 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3891 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3892 ac_uB='$,\1#\2define\3'
3896 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3897 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3899 - | *:- | *:-:* ) # input from stdin
3901 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3902 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3903 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3905 * ) ac_file_in=$ac_file.in ;;
3908 test x"$ac_file" != x- && { echo "$as_me:3908: creating $ac_file" >&5
3909 echo "$as_me: creating $ac_file" >&6;}
3911 # First look for the input files in the build tree, otherwise in the
3913 ac_file_inputs=`IFS=:
3914 for f in $ac_file_in; do
3916 -) echo $tmp/stdin ;;
3918 # Absolute (can't be DOS-style, as IFS=:)
3919 test -f "$f" || { { echo "$as_me:3919: error: cannot find input file: $f" >&5
3920 echo "$as_me: error: cannot find input file: $f" >&2;}
3921 { (exit 1); exit 1; }; }
3924 if test -f "$f"; then
3927 elif test -f "$srcdir/$f"; then
3932 { { echo "$as_me:3932: error: cannot find input file: $f" >&5
3933 echo "$as_me: error: cannot find input file: $f" >&2;}
3934 { (exit 1); exit 1; }; }
3937 done` || { (exit 1); exit 1; }
3938 # Remove the trailing spaces.
3939 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3943 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3944 # `conftest.undefs', that substitutes the proper values into
3945 # config.h.in to produce config.h. The first handles `#define'
3946 # templates, and the second `#undef' templates.
3947 # And first: Protect against being on the right side of a sed subst in
3948 # config.status. Protect against being in an unquoted here document
3950 rm -f conftest.defines conftest.undefs
3951 # Using a here document instead of a string reduces the quoting nightmare.
3952 # Putting comments in sed scripts is not portable.
3954 # `end' is used to avoid that the second main sed command (meant for
3955 # 0-ary CPP macros) applies to n-ary macro definitions.
3956 # See the Autoconf documentation for `clear'.
3957 cat >confdef2sed.sed <<\EOF
3962 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3964 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3967 # If some macros were called several times there might be several times
3968 # the same #defines, which is useless. Nevertheless, we may not want to
3969 # sort them, since we want the *last* AC-DEFINE to be honored.
3970 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3971 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3972 rm -f confdef2sed.sed
3974 # This sed command replaces #undef with comments. This is necessary, for
3975 # example, in the case of _POSIX_SOURCE, which is predefined and required
3976 # on some systems where configure will not decide to define it.
3977 cat >>conftest.undefs <<\EOF
3978 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3981 # Break up conftest.defines because some shells have a limit on the size
3982 # of here documents, and old seds have small limits too (100 cmds).
3983 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3984 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3985 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3986 echo ' :' >>$CONFIG_STATUS
3988 while grep . conftest.defines >/dev/null
3990 # Write a limited-size here document to $tmp/defines.sed.
3991 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3992 # Speed up: don't consider the non `#define' lines.
3993 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3994 # Work around the forget-to-reset-the-flag bug.
3995 echo 't clr' >>$CONFIG_STATUS
3996 echo ': clr' >>$CONFIG_STATUS
3997 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3999 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4003 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4004 rm -f conftest.defines
4005 mv conftest.tail conftest.defines
4007 rm -f conftest.defines
4008 echo ' fi # egrep' >>$CONFIG_STATUS
4009 echo >>$CONFIG_STATUS
4011 # Break up conftest.undefs because some shells have a limit on the size
4012 # of here documents, and old seds have small limits too (100 cmds).
4013 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4015 while grep . conftest.undefs >/dev/null
4017 # Write a limited-size here document to $tmp/undefs.sed.
4018 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4019 # Speed up: don't consider the non `#undef'
4020 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4021 # Work around the forget-to-reset-the-flag bug.
4022 echo 't clr' >>$CONFIG_STATUS
4023 echo ': clr' >>$CONFIG_STATUS
4024 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4026 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4030 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4031 rm -f conftest.undefs
4032 mv conftest.tail conftest.undefs
4034 rm -f conftest.undefs
4036 cat >>$CONFIG_STATUS <<\EOF
4037 # Let's still pretend it is `configure' which instantiates (i.e., don't
4038 # use $as_me), people would be surprised to read:
4039 # /* config.h. Generated automatically by config.status. */
4040 if test x"$ac_file" = x-; then
4041 echo "/* Generated automatically by configure. */" >$tmp/config.h
4043 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
4045 cat $tmp/in >>$tmp/config.h
4047 if test x"$ac_file" != x-; then
4048 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4049 { echo "$as_me:4049: $ac_file is unchanged" >&5
4050 echo "$as_me: $ac_file is unchanged" >&6;}
4052 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4053 X"$ac_file" : 'X\(//\)[^/]' \| \
4054 X"$ac_file" : 'X\(//\)$' \| \
4055 X"$ac_file" : 'X\(/\)' \| \
4056 . : '\(.\)' 2>/dev/null ||
4058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4060 /^X\(\/\/\)$/{ s//\1/; q; }
4061 /^X\(\/\).*/{ s//\1/; q; }
4063 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4065 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4069 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4070 case $as_mkdir_dir in
4071 # Skip DOS drivespec
4072 ?:) as_incr_dir=$as_mkdir_dir ;;
4074 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4075 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4082 mv $tmp/config.h $ac_file
4090 cat >>$CONFIG_STATUS <<\EOF
4093 # CONFIG_COMMANDS section.
4095 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4096 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4097 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4100 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
4105 cat >>$CONFIG_STATUS <<\EOF
4107 { (exit 0); exit 0; }
4109 chmod +x $CONFIG_STATUS
4110 ac_clean_files=$ac_clean_files_save
4112 # configure is writing to config.log, and then calls config.status.
4113 # config.status does its own redirection, appending to config.log.
4114 # Unfortunately, on DOS this fails, as config.log is still kept open
4115 # by configure, so config.status won't be able to write to it; its
4116 # output is simply discarded. So we exec the FD to /dev/null,
4117 # effectively closing config.log, so it can be properly (re)opened and
4118 # appended to by config.status. When coming back to configure, we
4119 # need to make the FD available again.
4120 if test "$no_create" != yes; then
4123 $SHELL $CONFIG_STATUS || ac_cs_success=false
4125 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4126 # would make configure fail if this is the last instruction.
4127 $ac_cs_success || { (exit 1); exit 1; }