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="configure.in"
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
558 # Report the --help message.
560 if test "$ac_init_help" = "long"; then
561 # Omit some internal or obsolete options to make the list less imposing.
562 # This message is too long to be a string in the A/UX 3.1 sh.
564 \`configure' configures this package to adapt to many kinds of systems.
566 Usage: $0 [OPTION]... [VAR=VALUE]...
568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
569 VAR=VALUE. See below for descriptions of some of the useful variables.
571 Defaults for the options are specified in brackets.
574 -h, --help display this help and exit
575 --help=short display options specific to this package
576 --help=recursive display the short help of all the included packages
577 -V, --version display version information and exit
578 -q, --quiet, --silent do not print \`checking...' messages
579 --cache-file=FILE cache test results in FILE [disabled]
580 -C, --config-cache alias for \`--cache-file=config.cache'
581 -n, --no-create do not create output files
582 --srcdir=DIR find the sources in DIR [configure dir or \`..']
587 Installation directories:
588 --prefix=PREFIX install architecture-independent files in PREFIX
590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
593 By default, \`make install' will install all the files in
594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
596 for instance \`--prefix=\$HOME'.
598 For better control, use the options below.
600 Fine tuning of the installation directories:
601 --bindir=DIR user executables [EPREFIX/bin]
602 --sbindir=DIR system admin executables [EPREFIX/sbin]
603 --libexecdir=DIR program executables [EPREFIX/libexec]
604 --datadir=DIR read-only architecture-independent data [PREFIX/share]
605 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
606 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
607 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
608 --libdir=DIR object code libraries [EPREFIX/lib]
609 --includedir=DIR C header files [PREFIX/include]
610 --oldincludedir=DIR C header files for non-gcc [/usr/include]
611 --infodir=DIR info documentation [PREFIX/info]
612 --mandir=DIR man documentation [PREFIX/man]
618 --program-prefix=PREFIX prepend PREFIX to installed program names
619 --program-suffix=SUFFIX append SUFFIX to installed program names
620 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
624 if test -n "$ac_init_help"; then
628 Some influential environment variables:
629 CC C compiler command
630 CFLAGS C compiler flags
631 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
632 nonstandard directory <lib dir>
633 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
634 headers in a nonstandard directory <include dir>
636 Use these variables to override the choices made by `configure' or to help
637 it to find libraries and programs with nonstandard names/locations.
642 if test "$ac_init_help" = "recursive"; then
643 # If there are subdirs, report their specific --help.
645 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
647 # A "../" for each directory in /$ac_subdir.
648 ac_dots=`echo $ac_subdir |
649 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
652 .) # No --srcdir option. We are building in place.
653 ac_sub_srcdir=$srcdir ;;
654 [\\/]* | ?:[\\/]* ) # Absolute path.
655 ac_sub_srcdir=$srcdir/$ac_subdir ;;
657 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
660 # Check for guested configure; otherwise get Cygnus style configure.
661 if test -f $ac_sub_srcdir/configure.gnu; then
663 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
664 elif test -f $ac_sub_srcdir/configure; then
666 $SHELL $ac_sub_srcdir/configure --help=recursive
667 elif test -f $ac_sub_srcdir/configure.ac ||
668 test -f $ac_sub_srcdir/configure.in; then
672 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
678 test -n "$ac_init_help" && exit 0
679 if $ac_init_version; then
682 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
683 Free Software Foundation, Inc.
684 This configure script is free software; the Free Software Foundation
685 gives unlimited permission to copy, distribute and modify it.
691 This file contains any messages produced by compilers while
692 running configure, to aid debugging if configure makes a mistake.
694 It was created by $as_me, which was
695 generated by GNU Autoconf 2.52. Invocation command line was
706 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
707 uname -m = `(uname -m) 2>/dev/null || echo unknown`
708 uname -r = `(uname -r) 2>/dev/null || echo unknown`
709 uname -s = `(uname -s) 2>/dev/null || echo unknown`
710 uname -v = `(uname -v) 2>/dev/null || echo unknown`
712 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
713 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
715 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
716 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
717 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
718 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
719 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
720 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
721 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
735 # Keep a trace of the command line.
736 # Strip out --no-create and --no-recursion so they do not pile up.
737 # Also quote any args containing shell meta-characters.
743 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
744 | --no-cr | --no-c) ;;
745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
747 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
748 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
749 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
751 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
754 # Get rid of the leading space.
757 # When interrupted or exit'd, cleanup temporary files, and complete
758 # config.log. We remove comments because anyway the quotes in there
759 # would cause problems or look ugly.
761 # Save into config.log some information that might help in debugging.
763 echo "## ----------------- ##" >&5
764 echo "## Cache variables. ##" >&5
765 echo "## ----------------- ##" >&5
767 # The following way of writing the cache mishandles newlines in values,
770 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
773 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
778 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
782 sed "/^$/d" confdefs.h >conftest.log
783 if test -s conftest.log; then
785 echo "## ------------ ##" >&5
786 echo "## confdefs.h. ##" >&5
787 echo "## ------------ ##" >&5
792 test "$ac_signal" != 0 &&
793 echo "$as_me: caught signal $ac_signal" >&5
794 echo "$as_me: exit $exit_status" >&5
795 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
798 for ac_signal in 1 2 13 15; do
799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
804 rm -rf conftest* confdefs.h
805 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
808 # Let the site file select an alternate cache file if it wants to.
809 # Prefer explicitly selected file to automatically selected ones.
810 if test -z "$CONFIG_SITE"; then
811 if test "x$prefix" != xNONE; then
812 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
814 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
817 for ac_site_file in $CONFIG_SITE; do
818 if test -r "$ac_site_file"; then
819 { echo "$as_me:819: loading site script $ac_site_file" >&5
820 echo "$as_me: loading site script $ac_site_file" >&6;}
821 cat "$ac_site_file" >&5
826 if test -r "$cache_file"; then
827 # Some versions of bash will fail to source /dev/null (special
828 # files actually), so we avoid doing that.
829 if test -f "$cache_file"; then
830 { echo "$as_me:830: loading cache $cache_file" >&5
831 echo "$as_me: loading cache $cache_file" >&6;}
833 [\\/]* | ?:[\\/]* ) . $cache_file;;
838 { echo "$as_me:838: creating cache $cache_file" >&5
839 echo "$as_me: creating cache $cache_file" >&6;}
843 # Check that the precious variables saved in the cache have kept the same
845 ac_cache_corrupted=false
846 for ac_var in `(set) 2>&1 |
847 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
849 eval ac_new_set=\$ac_env_${ac_var}_set
850 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
851 eval ac_new_val="\$ac_env_${ac_var}_value"
852 case $ac_old_set,$ac_new_set in
854 { echo "$as_me:854: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
856 ac_cache_corrupted=: ;;
858 { echo "$as_me:858: error: \`$ac_var' was not set in the previous run" >&5
859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
860 ac_cache_corrupted=: ;;
863 if test "x$ac_old_val" != "x$ac_new_val"; then
864 { echo "$as_me:864: error: \`$ac_var' has changed since the previous run:" >&5
865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
866 { echo "$as_me:866: former value: $ac_old_val" >&5
867 echo "$as_me: former value: $ac_old_val" >&2;}
868 { echo "$as_me:868: current value: $ac_new_val" >&5
869 echo "$as_me: current value: $ac_new_val" >&2;}
873 # Pass precious variables to config.status. It doesn't matter if
874 # we pass some twice (in addition to the command line arguments).
875 if test "$ac_new_set" = set; then
877 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
878 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
879 ac_configure_args="$ac_configure_args '$ac_arg'"
881 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
886 if $ac_cache_corrupted; then
887 { echo "$as_me:887: error: changes in the environment can compromise the build" >&5
888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
889 { { echo "$as_me:889: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
891 { (exit 1); exit 1; }; }
895 ac_cpp='$CPP $CPPFLAGS'
896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
900 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
901 *c*,-n*) ECHO_N= ECHO_C='
903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
906 echo "#! $SHELL" >conftest.sh
907 echo "exit 0" >>conftest.sh
909 if { (echo "$as_me:909: PATH=\".;.\"; conftest.sh") >&5
910 (PATH=".;."; conftest.sh) 2>&5
912 echo "$as_me:912: \$? = $ac_status" >&5
913 (exit $ac_status); }; then
914 ac_path_separator=';'
918 PATH_SEPARATOR="$ac_path_separator"
921 ac_config_headers="$ac_config_headers config.h"
923 ac_config_commands="$ac_config_commands default-1"
926 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
927 if test -f $ac_dir/install-sh; then
929 ac_install_sh="$ac_aux_dir/install-sh -c"
931 elif test -f $ac_dir/install.sh; then
933 ac_install_sh="$ac_aux_dir/install.sh -c"
935 elif test -f $ac_dir/shtool; then
937 ac_install_sh="$ac_aux_dir/shtool install -c"
941 if test -z "$ac_aux_dir"; then
942 { { echo "$as_me:942: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
943 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
944 { (exit 1); exit 1; }; }
946 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
947 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
948 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
950 # Find a good install program. We prefer a C program (faster),
951 # so one script is as good as another. But avoid the broken or
952 # incompatible versions:
953 # SysV /etc/install, /usr/sbin/install
954 # SunOS /usr/etc/install
957 # AmigaOS /C/install, which installs bootblocks on floppy discs
958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
961 # ./install, which can be erroneously created by make from ./install.sh.
962 echo "$as_me:962: checking for a BSD compatible install" >&5
963 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
964 if test -z "$INSTALL"; then
965 if test "${ac_cv_path_install+set}" = set; then
966 echo $ECHO_N "(cached) $ECHO_C" >&6
968 ac_save_IFS=$IFS; IFS=$ac_path_separator
969 for ac_dir in $PATH; do
971 # Account for people who put trailing slashes in PATH elements.
973 / | ./ | .// | /cC/* \
974 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
977 # OSF1 and SCO ODT 3.0 have their own names for install.
978 # Don't use installbsd from OSF since it installs stuff as root
980 for ac_prog in ginstall scoinst install; do
981 if $as_executable_p "$ac_dir/$ac_prog"; then
982 if test $ac_prog = install &&
983 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
984 # AIX install. It has an incompatible calling convention.
986 elif test $ac_prog = install &&
987 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
988 # program-specific install script used by HP pwplus--don't use.
991 ac_cv_path_install="$ac_dir/$ac_prog -c"
1001 if test "${ac_cv_path_install+set}" = set; then
1002 INSTALL=$ac_cv_path_install
1004 # As a last resort, use the slow shell script. We don't cache a
1005 # path for INSTALL within a source directory, because that will
1006 # break other packages using the cache if that directory is
1007 # removed, or if the path is relative.
1008 INSTALL=$ac_install_sh
1011 echo "$as_me:1011: result: $INSTALL" >&5
1012 echo "${ECHO_T}$INSTALL" >&6
1014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1015 # It thinks the first close brace ends the variable substitution.
1016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1018 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1020 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1022 echo "$as_me:1022: checking whether build environment is sane" >&5
1023 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1026 echo timestamp > conftestfile
1027 # Do `set' in a subshell so we don't clobber the current shell's
1028 # arguments. Must try -L first in case configure is actually a
1029 # symlink; some systems play weird games with the mod time of symlinks
1030 # (eg FreeBSD returns the mod time of the symlink's containing
1033 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1034 if test "$*" = "X"; then
1036 set X `ls -t $srcdir/configure conftestfile`
1038 if test "$*" != "X $srcdir/configure conftestfile" \
1039 && test "$*" != "X conftestfile $srcdir/configure"; then
1041 # If neither matched, then we have a broken ls. This can happen
1042 # if, for instance, CONFIG_SHELL is bash and it inherits a
1043 # broken ls alias from the environment. This has actually
1044 # happened. Such a system could not be considered "sane".
1045 { { echo "$as_me:1045: error: ls -t appears to fail. Make sure there is not a broken
1046 alias in your environment" >&5
1047 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1048 alias in your environment" >&2;}
1049 { (exit 1); exit 1; }; }
1052 test "$2" = conftestfile
1058 { { echo "$as_me:1058: error: newly created file is older than distributed files!
1059 Check your system clock" >&5
1060 echo "$as_me: error: newly created file is older than distributed files!
1061 Check your system clock" >&2;}
1062 { (exit 1); exit 1; }; }
1065 echo "$as_me:1065: result: yes" >&5
1066 echo "${ECHO_T}yes" >&6
1067 test "$program_prefix" != NONE &&
1068 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1069 # Use a double $ so make ignores it.
1070 test "$program_suffix" != NONE &&
1071 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1072 # Double any \ or $. echo might interpret backslashes.
1073 # By default was `s,x,x', remove it if useless.
1074 cat <<\_ACEOF >conftest.sed
1075 s/[\\$]/&&/g;s/;s,x,x,$//
1077 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1080 echo "$as_me:1080: checking whether ${MAKE-make} sets \${MAKE}" >&5
1081 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1082 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1083 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1084 echo $ECHO_N "(cached) $ECHO_C" >&6
1086 cat >conftest.make <<\EOF
1088 @echo 'ac_maketemp="${MAKE}"'
1090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1091 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1092 if test -n "$ac_maketemp"; then
1093 eval ac_cv_prog_make_${ac_make}_set=yes
1095 eval ac_cv_prog_make_${ac_make}_set=no
1099 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1100 echo "$as_me:1100: result: yes" >&5
1101 echo "${ECHO_T}yes" >&6
1104 echo "$as_me:1104: result: no" >&5
1105 echo "${ECHO_T}no" >&6
1106 SET_MAKE="MAKE=${MAKE-make}"
1113 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1114 { { echo "$as_me:1114: error: source directory already configured; run \"make distclean\" there first" >&5
1115 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1116 { (exit 1); exit 1; }; }
1119 cat >>confdefs.h <<EOF
1120 #define PACKAGE "$PACKAGE"
1123 cat >>confdefs.h <<EOF
1124 #define VERSION "$VERSION"
1127 missing_dir=`cd $ac_aux_dir && pwd`
1128 echo "$as_me:1128: checking for working aclocal" >&5
1129 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1130 # Run test in a subshell; some versions of sh will print an error if
1131 # an executable is not found, even if stderr is redirected.
1132 # Redirect stdin to placate older versions of autoconf. Sigh.
1133 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1135 echo "$as_me:1135: result: found" >&5
1136 echo "${ECHO_T}found" >&6
1138 ACLOCAL="$missing_dir/missing aclocal"
1139 echo "$as_me:1139: result: missing" >&5
1140 echo "${ECHO_T}missing" >&6
1143 echo "$as_me:1143: checking for working autoconf" >&5
1144 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1145 # Run test in a subshell; some versions of sh will print an error if
1146 # an executable is not found, even if stderr is redirected.
1147 # Redirect stdin to placate older versions of autoconf. Sigh.
1148 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1150 echo "$as_me:1150: result: found" >&5
1151 echo "${ECHO_T}found" >&6
1153 AUTOCONF="$missing_dir/missing autoconf"
1154 echo "$as_me:1154: result: missing" >&5
1155 echo "${ECHO_T}missing" >&6
1158 echo "$as_me:1158: checking for working automake" >&5
1159 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1160 # Run test in a subshell; some versions of sh will print an error if
1161 # an executable is not found, even if stderr is redirected.
1162 # Redirect stdin to placate older versions of autoconf. Sigh.
1163 if (automake --version) < /dev/null > /dev/null 2>&1; then
1165 echo "$as_me:1165: result: found" >&5
1166 echo "${ECHO_T}found" >&6
1168 AUTOMAKE="$missing_dir/missing automake"
1169 echo "$as_me:1169: result: missing" >&5
1170 echo "${ECHO_T}missing" >&6
1173 echo "$as_me:1173: checking for working autoheader" >&5
1174 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1175 # Run test in a subshell; some versions of sh will print an error if
1176 # an executable is not found, even if stderr is redirected.
1177 # Redirect stdin to placate older versions of autoconf. Sigh.
1178 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1179 AUTOHEADER=autoheader
1180 echo "$as_me:1180: result: found" >&5
1181 echo "${ECHO_T}found" >&6
1183 AUTOHEADER="$missing_dir/missing autoheader"
1184 echo "$as_me:1184: result: missing" >&5
1185 echo "${ECHO_T}missing" >&6
1188 echo "$as_me:1188: checking for working makeinfo" >&5
1189 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1190 # Run test in a subshell; some versions of sh will print an error if
1191 # an executable is not found, even if stderr is redirected.
1192 # Redirect stdin to placate older versions of autoconf. Sigh.
1193 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1195 echo "$as_me:1195: result: found" >&5
1196 echo "${ECHO_T}found" >&6
1198 MAKEINFO="$missing_dir/missing makeinfo"
1199 echo "$as_me:1199: result: missing" >&5
1200 echo "${ECHO_T}missing" >&6
1204 ac_cpp='$CPP $CPPFLAGS'
1205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1210 ac_cpp='$CPP $CPPFLAGS'
1211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1214 if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1239 if test -n "$CC"; then
1240 echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1248 if test -z "$ac_cv_prog_CC"; then
1250 # Extract the first word of "gcc", so it can be a program name with args.
1251 set dummy gcc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1260 ac_save_IFS=$IFS; IFS=$ac_path_separator
1262 for ac_dir in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir=.
1265 $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="gcc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1278 echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1287 if test -z "$CC"; then
1288 if test -n "$ac_tool_prefix"; then
1289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1290 set dummy ${ac_tool_prefix}cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1299 ac_save_IFS=$IFS; IFS=$ac_path_separator
1301 for ac_dir in $ac_dummy; do
1303 test -z "$ac_dir" && ac_dir=.
1304 $as_executable_p "$ac_dir/$ac_word" || continue
1305 ac_cv_prog_CC="${ac_tool_prefix}cc"
1306 echo "$as_me:1306: found $ac_dir/$ac_word" >&5
1313 if test -n "$CC"; then
1314 echo "$as_me:1314: result: $CC" >&5
1315 echo "${ECHO_T}$CC" >&6
1317 echo "$as_me:1317: result: no" >&5
1318 echo "${ECHO_T}no" >&6
1322 if test -z "$ac_cv_prog_CC"; then
1324 # Extract the first word of "cc", so it can be a program name with args.
1325 set dummy cc; ac_word=$2
1326 echo "$as_me:1326: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1331 if test -n "$ac_ct_CC"; then
1332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1334 ac_save_IFS=$IFS; IFS=$ac_path_separator
1336 for ac_dir in $ac_dummy; do
1338 test -z "$ac_dir" && ac_dir=.
1339 $as_executable_p "$ac_dir/$ac_word" || continue
1340 ac_cv_prog_ac_ct_CC="cc"
1341 echo "$as_me:1341: found $ac_dir/$ac_word" >&5
1347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1348 if test -n "$ac_ct_CC"; then
1349 echo "$as_me:1349: result: $ac_ct_CC" >&5
1350 echo "${ECHO_T}$ac_ct_CC" >&6
1352 echo "$as_me:1352: result: no" >&5
1353 echo "${ECHO_T}no" >&6
1362 if test -z "$CC"; then
1363 # Extract the first word of "cc", so it can be a program name with args.
1364 set dummy cc; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1374 ac_save_IFS=$IFS; IFS=$ac_path_separator
1376 for ac_dir in $ac_dummy; do
1378 test -z "$ac_dir" && ac_dir=.
1379 $as_executable_p "$ac_dir/$ac_word" || continue
1380 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1381 ac_prog_rejected=yes
1385 echo "$as_me:1385: found $ac_dir/$ac_word" >&5
1389 if test $ac_prog_rejected = yes; then
1390 # We found a bogon in the path, so make sure we never use it.
1391 set dummy $ac_cv_prog_CC
1393 if test $# != 0; then
1394 # We chose a different compiler from the bogus one.
1395 # However, it has the same basename, so the bogon will be chosen
1396 # first if we set CC to just the basename; use the full file name.
1398 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1406 if test -n "$CC"; then
1407 echo "$as_me:1407: result: $CC" >&5
1408 echo "${ECHO_T}$CC" >&6
1410 echo "$as_me:1410: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1415 if test -z "$CC"; then
1416 if test -n "$ac_tool_prefix"; then
1419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1421 echo "$as_me:1421: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_prog_CC+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1426 if test -n "$CC"; then
1427 ac_cv_prog_CC="$CC" # Let the user override the test.
1429 ac_save_IFS=$IFS; IFS=$ac_path_separator
1431 for ac_dir in $ac_dummy; do
1433 test -z "$ac_dir" && ac_dir=.
1434 $as_executable_p "$ac_dir/$ac_word" || continue
1435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1436 echo "$as_me:1436: found $ac_dir/$ac_word" >&5
1443 if test -n "$CC"; then
1444 echo "$as_me:1444: result: $CC" >&5
1445 echo "${ECHO_T}$CC" >&6
1447 echo "$as_me:1447: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1451 test -n "$CC" && break
1454 if test -z "$CC"; then
1458 # Extract the first word of "$ac_prog", so it can be a program name with args.
1459 set dummy $ac_prog; ac_word=$2
1460 echo "$as_me:1460: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1465 if test -n "$ac_ct_CC"; then
1466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1468 ac_save_IFS=$IFS; IFS=$ac_path_separator
1470 for ac_dir in $ac_dummy; do
1472 test -z "$ac_dir" && ac_dir=.
1473 $as_executable_p "$ac_dir/$ac_word" || continue
1474 ac_cv_prog_ac_ct_CC="$ac_prog"
1475 echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482 if test -n "$ac_ct_CC"; then
1483 echo "$as_me:1483: result: $ac_ct_CC" >&5
1484 echo "${ECHO_T}$ac_ct_CC" >&6
1486 echo "$as_me:1486: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1490 test -n "$ac_ct_CC" && break
1498 test -z "$CC" && { { echo "$as_me:1498: error: no acceptable cc found in \$PATH" >&5
1499 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1500 { (exit 1); exit 1; }; }
1502 # Provide some information about the compiler.
1503 echo "$as_me:1503:" \
1504 "checking for C compiler version" >&5
1505 ac_compiler=`set X $ac_compile; echo $2`
1506 { (eval echo "$as_me:1506: \"$ac_compiler --version </dev/null >&5\"") >&5
1507 (eval $ac_compiler --version </dev/null >&5) 2>&5
1509 echo "$as_me:1509: \$? = $ac_status" >&5
1510 (exit $ac_status); }
1511 { (eval echo "$as_me:1511: \"$ac_compiler -v </dev/null >&5\"") >&5
1512 (eval $ac_compiler -v </dev/null >&5) 2>&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }
1516 { (eval echo "$as_me:1516: \"$ac_compiler -V </dev/null >&5\"") >&5
1517 (eval $ac_compiler -V </dev/null >&5) 2>&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }
1522 cat >conftest.$ac_ext <<_ACEOF
1523 #line 1523 "configure"
1524 #include "confdefs.h"
1534 ac_clean_files_save=$ac_clean_files
1535 ac_clean_files="$ac_clean_files a.out a.exe"
1536 # Try to create an executable without -o first, disregard a.out.
1537 # It will help us diagnose broken compilers, and finding out an intuition
1539 echo "$as_me:1539: checking for C compiler default output" >&5
1540 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1541 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1542 if { (eval echo "$as_me:1542: \"$ac_link_default\"") >&5
1543 (eval $ac_link_default) 2>&5
1545 echo "$as_me:1545: \$? = $ac_status" >&5
1546 (exit $ac_status); }; then
1547 # Find the output, starting from the most likely. This scheme is
1548 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1550 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1551 ls a.out conftest 2>/dev/null;
1552 ls a.* conftest.* 2>/dev/null`; do
1554 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1555 a.out ) # We found the default executable, but exeext='' is most
1558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1559 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1566 echo "$as_me: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1568 { { echo "$as_me:1568: error: C compiler cannot create executables" >&5
1569 echo "$as_me: error: C compiler cannot create executables" >&2;}
1570 { (exit 77); exit 77; }; }
1573 ac_exeext=$ac_cv_exeext
1574 echo "$as_me:1574: result: $ac_file" >&5
1575 echo "${ECHO_T}$ac_file" >&6
1577 # Check the compiler produces executables we can run. If not, either
1578 # the compiler is broken, or we cross compile.
1579 echo "$as_me:1579: checking whether the C compiler works" >&5
1580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1582 # If not cross compiling, check that we can run a simple program.
1583 if test "$cross_compiling" != yes; then
1584 if { ac_try='./$ac_file'
1585 { (eval echo "$as_me:1585: \"$ac_try\"") >&5
1588 echo "$as_me:1588: \$? = $ac_status" >&5
1589 (exit $ac_status); }; }; then
1592 if test "$cross_compiling" = maybe; then
1595 { { echo "$as_me:1595: error: cannot run C compiled programs.
1596 If you meant to cross compile, use \`--host'." >&5
1597 echo "$as_me: error: cannot run C compiled programs.
1598 If you meant to cross compile, use \`--host'." >&2;}
1599 { (exit 1); exit 1; }; }
1603 echo "$as_me:1603: result: yes" >&5
1604 echo "${ECHO_T}yes" >&6
1606 rm -f a.out a.exe conftest$ac_cv_exeext
1607 ac_clean_files=$ac_clean_files_save
1608 # Check the compiler produces executables we can run. If not, either
1609 # the compiler is broken, or we cross compile.
1610 echo "$as_me:1610: checking whether we are cross compiling" >&5
1611 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1612 echo "$as_me:1612: result: $cross_compiling" >&5
1613 echo "${ECHO_T}$cross_compiling" >&6
1615 echo "$as_me:1615: checking for executable suffix" >&5
1616 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1617 if { (eval echo "$as_me:1617: \"$ac_link\"") >&5
1618 (eval $ac_link) 2>&5
1620 echo "$as_me:1620: \$? = $ac_status" >&5
1621 (exit $ac_status); }; then
1622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1624 # work properly (i.e., refer to `conftest.exe'), while it won't with
1626 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1628 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1629 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1636 { { echo "$as_me:1636: error: cannot compute EXEEXT: cannot compile and link" >&5
1637 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1638 { (exit 1); exit 1; }; }
1641 rm -f conftest$ac_cv_exeext
1642 echo "$as_me:1642: result: $ac_cv_exeext" >&5
1643 echo "${ECHO_T}$ac_cv_exeext" >&6
1645 rm -f conftest.$ac_ext
1646 EXEEXT=$ac_cv_exeext
1648 echo "$as_me:1648: checking for object suffix" >&5
1649 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1650 if test "${ac_cv_objext+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 cat >conftest.$ac_ext <<_ACEOF
1654 #line 1654 "configure"
1655 #include "confdefs.h"
1665 rm -f conftest.o conftest.obj
1666 if { (eval echo "$as_me:1666: \"$ac_compile\"") >&5
1667 (eval $ac_compile) 2>&5
1669 echo "$as_me:1669: \$? = $ac_status" >&5
1670 (exit $ac_status); }; then
1671 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1674 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1679 echo "$as_me: failed program was:" >&5
1680 cat conftest.$ac_ext >&5
1681 { { echo "$as_me:1681: error: cannot compute OBJEXT: cannot compile" >&5
1682 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1683 { (exit 1); exit 1; }; }
1686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1688 echo "$as_me:1688: result: $ac_cv_objext" >&5
1689 echo "${ECHO_T}$ac_cv_objext" >&6
1690 OBJEXT=$ac_cv_objext
1692 echo "$as_me:1692: checking whether we are using the GNU C compiler" >&5
1693 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 cat >conftest.$ac_ext <<_ACEOF
1698 #line 1698 "configure"
1699 #include "confdefs.h"
1712 rm -f conftest.$ac_objext
1713 if { (eval echo "$as_me:1713: \"$ac_compile\"") >&5
1714 (eval $ac_compile) 2>&5
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); } &&
1718 { ac_try='test -s conftest.$ac_objext'
1719 { (eval echo "$as_me:1719: \"$ac_try\"") >&5
1722 echo "$as_me:1722: \$? = $ac_status" >&5
1723 (exit $ac_status); }; }; then
1726 echo "$as_me: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1730 rm -f conftest.$ac_objext conftest.$ac_ext
1731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1734 echo "$as_me:1734: result: $ac_cv_c_compiler_gnu" >&5
1735 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1736 GCC=`test $ac_compiler_gnu = yes && echo yes`
1737 ac_test_CFLAGS=${CFLAGS+set}
1738 ac_save_CFLAGS=$CFLAGS
1740 echo "$as_me:1740: checking whether $CC accepts -g" >&5
1741 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1742 if test "${ac_cv_prog_cc_g+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 cat >conftest.$ac_ext <<_ACEOF
1746 #line 1746 "configure"
1747 #include "confdefs.h"
1757 rm -f conftest.$ac_objext
1758 if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759 (eval $ac_compile) 2>&5
1761 echo "$as_me:1761: \$? = $ac_status" >&5
1762 (exit $ac_status); } &&
1763 { ac_try='test -s conftest.$ac_objext'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1771 echo "$as_me: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1775 rm -f conftest.$ac_objext conftest.$ac_ext
1777 echo "$as_me:1777: result: $ac_cv_prog_cc_g" >&5
1778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1779 if test "$ac_test_CFLAGS" = set; then
1780 CFLAGS=$ac_save_CFLAGS
1781 elif test $ac_cv_prog_cc_g = yes; then
1782 if test "$GCC" = yes; then
1788 if test "$GCC" = yes; then
1794 # Some people use a C++ compiler to compile C. Since we use `exit',
1795 # in C++ we need to declare it. In case someone uses the same compiler
1796 # for both compiling C and C++ we need to have the C++ compiler decide
1797 # the declaration of exit, since it's the most demanding environment.
1798 cat >conftest.$ac_ext <<_ACEOF
1803 rm -f conftest.$ac_objext
1804 if { (eval echo "$as_me:1804: \"$ac_compile\"") >&5
1805 (eval $ac_compile) 2>&5
1807 echo "$as_me:1807: \$? = $ac_status" >&5
1808 (exit $ac_status); } &&
1809 { ac_try='test -s conftest.$ac_objext'
1810 { (eval echo "$as_me:1810: \"$ac_try\"") >&5
1813 echo "$as_me:1813: \$? = $ac_status" >&5
1814 (exit $ac_status); }; }; then
1815 for ac_declaration in \
1817 '#include <stdlib.h>' \
1818 'extern "C" void std::exit (int) throw (); using std::exit;' \
1819 'extern "C" void std::exit (int); using std::exit;' \
1820 'extern "C" void exit (int) throw ();' \
1821 'extern "C" void exit (int);' \
1824 cat >conftest.$ac_ext <<_ACEOF
1825 #line 1825 "configure"
1826 #include "confdefs.h"
1837 rm -f conftest.$ac_objext
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); } &&
1843 { ac_try='test -s conftest.$ac_objext'
1844 { (eval echo "$as_me:1844: \"$ac_try\"") >&5
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1855 rm -f conftest.$ac_objext conftest.$ac_ext
1856 cat >conftest.$ac_ext <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1868 rm -f conftest.$ac_objext
1869 if { (eval echo "$as_me:1869: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>&5
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); } &&
1874 { ac_try='test -s conftest.$ac_objext'
1875 { (eval echo "$as_me:1875: \"$ac_try\"") >&5
1878 echo "$as_me:1878: \$? = $ac_status" >&5
1879 (exit $ac_status); }; }; then
1882 echo "$as_me: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1885 rm -f conftest.$ac_objext conftest.$ac_ext
1888 if test -n "$ac_declaration"; then
1889 echo '#ifdef __cplusplus' >>confdefs.h
1890 echo $ac_declaration >>confdefs.h
1891 echo '#endif' >>confdefs.h
1895 echo "$as_me: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1898 rm -f conftest.$ac_objext conftest.$ac_ext
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 echo "$as_me:1905: checking for cfg_getstr in -lconfuse" >&5
1906 echo $ECHO_N "checking for cfg_getstr in -lconfuse... $ECHO_C" >&6
1907 if test "${ac_cv_lib_confuse_cfg_getstr+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 ac_check_lib_save_LIBS=$LIBS
1911 LIBS="-lconfuse $LIBS"
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1916 /* Override any gcc2 internal prototype to avoid an error. */
1920 /* We use char because int might match the return type of a gcc2
1921 builtin and then its argument prototype would still apply. */
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { (eval echo "$as_me:1932: \"$ac_link\"") >&5
1933 (eval $ac_link) 2>&5
1935 echo "$as_me:1935: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -s conftest$ac_exeext'
1938 { (eval echo "$as_me:1938: \"$ac_try\"") >&5
1941 echo "$as_me:1941: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1943 ac_cv_lib_confuse_cfg_getstr=yes
1945 echo "$as_me: failed program was:" >&5
1946 cat conftest.$ac_ext >&5
1947 ac_cv_lib_confuse_cfg_getstr=no
1949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1950 LIBS=$ac_check_lib_save_LIBS
1952 echo "$as_me:1952: result: $ac_cv_lib_confuse_cfg_getstr" >&5
1953 echo "${ECHO_T}$ac_cv_lib_confuse_cfg_getstr" >&6
1954 if test $ac_cv_lib_confuse_cfg_getstr = yes; then
1955 cat >>confdefs.h <<EOF
1956 #define HAVE_LIBCONFUSE 1
1959 LIBS="-lconfuse $LIBS"
1962 { { echo "$as_me:1962: error: can't find confuse library" >&5
1963 echo "$as_me: error: can't find confuse library" >&2;}
1964 { (exit 1); exit 1; }; }
1969 if test -z "$PKG_CONFIG"; then
1970 # Extract the first word of "pkg-config", so it can be a program name with args.
1971 set dummy pkg-config; ac_word=$2
1972 echo "$as_me:1972: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1982 ac_save_IFS=$IFS; IFS=$ac_path_separator
1984 for ac_dir in $ac_dummy; do
1986 test -z "$ac_dir" && ac_dir=.
1987 if $as_executable_p "$ac_dir/$ac_word"; then
1988 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
1989 echo "$as_me:1989: found $ac_dir/$ac_word" >&5
1994 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2000 if test -n "$PKG_CONFIG"; then
2001 echo "$as_me:2001: result: $PKG_CONFIG" >&5
2002 echo "${ECHO_T}$PKG_CONFIG" >&6
2004 echo "$as_me:2004: result: no" >&5
2005 echo "${ECHO_T}no" >&6
2010 if test "$PKG_CONFIG" = "no" ; then
2011 echo "*** The pkg-config script could not be found. Make sure it is"
2012 echo "*** in your path, or set the PKG_CONFIG environment variable"
2013 echo "*** to the full path to pkg-config."
2014 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2016 PKG_CONFIG_MIN_VERSION=0.9.0
2017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2018 echo "$as_me:2018: checking for libftdi" >&5
2019 echo $ECHO_N "checking for libftdi... $ECHO_C" >&6
2021 if $PKG_CONFIG --exists "libftdi" ; then
2022 echo "$as_me:2022: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6
2026 echo "$as_me:2026: checking LIBFTDI_CFLAGS" >&5
2027 echo $ECHO_N "checking LIBFTDI_CFLAGS... $ECHO_C" >&6
2028 LIBFTDI_CFLAGS=`$PKG_CONFIG --cflags "libftdi"`
2029 echo "$as_me:2029: result: $LIBFTDI_CFLAGS" >&5
2030 echo "${ECHO_T}$LIBFTDI_CFLAGS" >&6
2032 echo "$as_me:2032: checking LIBFTDI_LIBS" >&5
2033 echo $ECHO_N "checking LIBFTDI_LIBS... $ECHO_C" >&6
2034 LIBFTDI_LIBS=`$PKG_CONFIG --libs "libftdi"`
2035 echo "$as_me:2035: result: $LIBFTDI_LIBS" >&5
2036 echo "${ECHO_T}$LIBFTDI_LIBS" >&6
2040 ## If we have a custom action on failure, don't print errors, but
2041 ## do set a variable so people can do so.
2042 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libftdi"`
2043 echo $LIBFTDI_PKG_ERRORS
2047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
2052 if test $succeeded = yes; then
2055 { { echo "$as_me:2055: error: Library requirements (libftdi) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
2056 echo "$as_me: error: Library requirements (libftdi) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
2057 { (exit 1); exit 1; }; }
2060 ac_config_files="$ac_config_files Makefile src/Makefile"
2061 cat >confcache <<\_ACEOF
2062 # This file is a shell script that caches the results of configure
2063 # tests run on this system so they can be shared between configure
2064 # scripts and configure runs, see configure's option --config-cache.
2065 # It is not useful on other systems. If it contains results you don't
2066 # want to keep, you may remove or edit it.
2068 # config.status only pays attention to the cache file if you give it
2069 # the --recheck option to rerun configure.
2071 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2072 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2077 # The following way of writing the cache mishandles newlines in values,
2078 # but we know of no workaround that is simple, portable, and efficient.
2079 # So, don't put newlines in cache variables' values.
2080 # Ultrix sh set writes to stderr and can't be redirected directly,
2081 # and sets the high bit in the cache file unless we assign to the vars.
2084 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2086 # `set' does not quote correctly, so add quotes (double-quote
2087 # substitution turns \\\\ into \\, and sed turns \\ into \).
2090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2093 # `set' quotes correctly as required by POSIX, so do not add quotes.
2095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2104 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2106 if cmp -s $cache_file confcache; then :; else
2107 if test -w $cache_file; then
2108 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2109 cat confcache >$cache_file
2111 echo "not updating unwritable cache $cache_file"
2116 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2117 # Let make expand exec_prefix.
2118 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2122 # trailing colons and then remove the whole line if VPATH becomes empty
2123 # (actually we leave an empty line to preserve line numbers).
2124 if test "x$srcdir" = x.; then
2125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2126 s/:*\$(srcdir):*/:/;
2127 s/:*\${srcdir}:*/:/;
2129 s/^\([^=]*=[ ]*\):*/\1/;
2135 DEFS=-DHAVE_CONFIG_H
2137 : ${CONFIG_STATUS=./config.status}
2138 ac_clean_files_save=$ac_clean_files
2139 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2140 { echo "$as_me:2140: creating $CONFIG_STATUS" >&5
2141 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2142 cat >$CONFIG_STATUS <<_ACEOF
2144 # Generated automatically by configure.
2145 # Run this file to recreate the current configuration.
2146 # Compiler output produced by configure, useful for debugging
2147 # configure, is in config.log if it exists.
2150 SHELL=\${CONFIG_SHELL-$SHELL}
2151 ac_cs_invocation="\$0 \$@"
2155 cat >>$CONFIG_STATUS <<\_ACEOF
2156 # Be Bourne compatible
2157 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2160 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2164 # Name of the executable.
2165 as_me=`echo "$0" |sed 's,.*[\\/],,'`
2167 if expr a : '\(a\)' >/dev/null 2>&1; then
2173 rm -f conf$$ conf$$.exe conf$$.file
2175 if ln -s conf$$.file conf$$ 2>/dev/null; then
2176 # We could just check for DJGPP; but this test a) works b) is more generic
2177 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2178 if test -f conf$$.exe; then
2179 # Don't use ln at all; we don't have any links
2184 elif ln conf$$.file conf$$ 2>/dev/null; then
2189 rm -f conf$$ conf$$.exe conf$$.file
2191 as_executable_p="test -f"
2193 # Support unset when possible.
2194 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2201 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
2202 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
2203 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
2204 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
2205 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
2206 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
2207 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
2208 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
2211 # We need space, tab and new line, in precisely that order.
2217 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
2223 # Files that config.status was made for.
2224 if test -n "$ac_config_files"; then
2225 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2228 if test -n "$ac_config_headers"; then
2229 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2232 if test -n "$ac_config_links"; then
2233 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2236 if test -n "$ac_config_commands"; then
2237 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2240 cat >>$CONFIG_STATUS <<\EOF
2243 \`$as_me' instantiates files from templates according to the
2244 current configuration.
2246 Usage: $0 [OPTIONS] [FILE]...
2248 -h, --help print this help, then exit
2249 -V, --version print version number, then exit
2250 -d, --debug don't remove temporary files
2251 --recheck update $as_me by reconfiguring in the same conditions
2252 --file=FILE[:TEMPLATE]
2253 instantiate the configuration file FILE
2254 --header=FILE[:TEMPLATE]
2255 instantiate the configuration header FILE
2257 Configuration files:
2260 Configuration headers:
2263 Configuration commands:
2266 Report bugs to <bug-autoconf@gnu.org>."
2269 cat >>$CONFIG_STATUS <<EOF
2272 configured by $0, generated by GNU Autoconf 2.52,
2273 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2275 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
2276 Free Software Foundation, Inc.
2277 This config.status script is free software; the Free Software Foundation
2278 gives unlimited permission to copy, distribute and modify it."
2283 cat >>$CONFIG_STATUS <<\EOF
2284 # If no file are specified by the user, then we need to provide default
2285 # value. By we need to know if files were specified by the user.
2291 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2292 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2294 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
2298 *) # This is not an option, so the user has probably given explicit
2300 ac_need_defaults=false;;
2304 # Handling of the options.
2306 cat >>$CONFIG_STATUS <<EOF
2307 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2308 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
2309 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
2311 cat >>$CONFIG_STATUS <<\EOF
2312 --version | --vers* | -V )
2313 echo "$ac_cs_version"; exit 0 ;;
2315 # Conflict between --help and --header
2316 { { echo "$as_me:2316: error: ambiguous option: $1
2317 Try \`$0 --help' for more information." >&5
2318 echo "$as_me: error: ambiguous option: $1
2319 Try \`$0 --help' for more information." >&2;}
2320 { (exit 1); exit 1; }; };;
2321 --help | --hel | -h )
2322 echo "$ac_cs_usage"; exit 0 ;;
2323 --debug | --d* | -d )
2325 --file | --fil | --fi | --f )
2327 CONFIG_FILES="$CONFIG_FILES $1"
2328 ac_need_defaults=false;;
2329 --header | --heade | --head | --hea )
2331 CONFIG_HEADERS="$CONFIG_HEADERS $1"
2332 ac_need_defaults=false;;
2335 -*) { { echo "$as_me:2335: error: unrecognized option: $1
2336 Try \`$0 --help' for more information." >&5
2337 echo "$as_me: error: unrecognized option: $1
2338 Try \`$0 --help' for more information." >&2;}
2339 { (exit 1); exit 1; }; } ;;
2341 *) ac_config_targets="$ac_config_targets $1" ;;
2350 ## ----------------------- ##
2351 ## Running config.status. ##
2352 ## ----------------------- ##
2354 This file was extended by $as_me 2.52, executed with
2355 CONFIG_FILES = $CONFIG_FILES
2356 CONFIG_HEADERS = $CONFIG_HEADERS
2357 CONFIG_LINKS = $CONFIG_LINKS
2358 CONFIG_COMMANDS = $CONFIG_COMMANDS
2360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 cat >>$CONFIG_STATUS <<EOF
2367 # INIT-COMMANDS section.
2372 cat >>$CONFIG_STATUS <<\EOF
2373 for ac_config_target in $ac_config_targets
2375 case "$ac_config_target" in
2376 # Handling of arguments.
2377 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2378 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
2379 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
2380 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
2381 *) { { echo "$as_me:2381: error: invalid argument: $ac_config_target" >&5
2382 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2383 { (exit 1); exit 1; }; };;
2387 # If the user did not use the arguments to specify the items to instantiate,
2388 # then the envvar interface is used. Set only those that are not.
2389 # We use the long form for the default assignment because of an extremely
2390 # bizarre bug on SunOS 4.1.3.
2391 if $ac_need_defaults; then
2392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2393 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2394 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2397 # Create a temporary directory, and hook for its removal unless debugging.
2400 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2401 trap '{ (exit 1); exit 1; }' 1 2 13 15
2404 # Create a (secure) tmp directory for tmp files.
2407 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
2408 test -n "$tmp" && test -d "$tmp"
2411 tmp=$TMPDIR/cs$$-$RANDOM
2412 (umask 077 && mkdir $tmp)
2415 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2416 { (exit 1); exit 1; }
2421 cat >>$CONFIG_STATUS <<EOF
2424 # CONFIG_FILES section.
2427 # No need to generate the scripts if there are no CONFIG_FILES.
2428 # This happens for instance when ./config.status config.h
2429 if test -n "\$CONFIG_FILES"; then
2430 # Protect against being on the right side of a sed subst in config.status.
2431 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2432 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2433 s,@SHELL@,$SHELL,;t t
2434 s,@exec_prefix@,$exec_prefix,;t t
2435 s,@prefix@,$prefix,;t t
2436 s,@program_transform_name@,$program_transform_name,;t t
2437 s,@bindir@,$bindir,;t t
2438 s,@sbindir@,$sbindir,;t t
2439 s,@libexecdir@,$libexecdir,;t t
2440 s,@datadir@,$datadir,;t t
2441 s,@sysconfdir@,$sysconfdir,;t t
2442 s,@sharedstatedir@,$sharedstatedir,;t t
2443 s,@localstatedir@,$localstatedir,;t t
2444 s,@libdir@,$libdir,;t t
2445 s,@includedir@,$includedir,;t t
2446 s,@oldincludedir@,$oldincludedir,;t t
2447 s,@infodir@,$infodir,;t t
2448 s,@mandir@,$mandir,;t t
2449 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2450 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2451 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2452 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2453 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2454 s,@build_alias@,$build_alias,;t t
2455 s,@host_alias@,$host_alias,;t t
2456 s,@target_alias@,$target_alias,;t t
2457 s,@ECHO_C@,$ECHO_C,;t t
2458 s,@ECHO_N@,$ECHO_N,;t t
2459 s,@ECHO_T@,$ECHO_T,;t t
2460 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2463 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2464 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2465 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2466 s,@PACKAGE@,$PACKAGE,;t t
2467 s,@VERSION@,$VERSION,;t t
2468 s,@ACLOCAL@,$ACLOCAL,;t t
2469 s,@AUTOCONF@,$AUTOCONF,;t t
2470 s,@AUTOMAKE@,$AUTOMAKE,;t t
2471 s,@AUTOHEADER@,$AUTOHEADER,;t t
2472 s,@MAKEINFO@,$MAKEINFO,;t t
2473 s,@SET_MAKE@,$SET_MAKE,;t t
2475 s,@CFLAGS@,$CFLAGS,;t t
2476 s,@LDFLAGS@,$LDFLAGS,;t t
2477 s,@CPPFLAGS@,$CPPFLAGS,;t t
2478 s,@ac_ct_CC@,$ac_ct_CC,;t t
2479 s,@EXEEXT@,$EXEEXT,;t t
2480 s,@OBJEXT@,$OBJEXT,;t t
2481 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
2482 s,@LIBFTDI_CFLAGS@,$LIBFTDI_CFLAGS,;t t
2483 s,@LIBFTDI_LIBS@,$LIBFTDI_LIBS,;t t
2488 cat >>$CONFIG_STATUS <<\EOF
2489 # Split the substitutions into bite-sized pieces for seds with
2490 # small command number limits, like on Digital OSF/1 and HP-UX.
2492 ac_sed_frag=1 # Number of current file.
2493 ac_beg=1 # First line for current file.
2494 ac_end=$ac_max_sed_lines # Line after last line for current file.
2497 while $ac_more_lines; do
2498 if test $ac_beg -gt 1; then
2499 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2501 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2503 if test ! -s $tmp/subs.frag; then
2506 # The purpose of the label and of the branching condition is to
2507 # speed up the sed processing (if there are no `@' at all, there
2508 # is no need to browse any of the substitutions).
2509 # These are the two extra sed commands mentioned above.
2511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2512 if test -z "$ac_sed_cmds"; then
2513 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2515 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2517 ac_sed_frag=`expr $ac_sed_frag + 1`
2519 ac_end=`expr $ac_end + $ac_max_sed_lines`
2522 if test -z "$ac_sed_cmds"; then
2525 fi # test -n "$CONFIG_FILES"
2528 cat >>$CONFIG_STATUS <<\EOF
2529 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2532 - | *:- | *:-:* ) # input from stdin
2534 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2536 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2538 * ) ac_file_in=$ac_file.in ;;
2541 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2542 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2543 X"$ac_file" : 'X\(//\)[^/]' \| \
2544 X"$ac_file" : 'X\(//\)$' \| \
2545 X"$ac_file" : 'X\(/\)' \| \
2546 . : '\(.\)' 2>/dev/null ||
2548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2549 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2550 /^X\(\/\/\)$/{ s//\1/; q; }
2551 /^X\(\/\).*/{ s//\1/; q; }
2553 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2555 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2559 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2560 case $as_mkdir_dir in
2561 # Skip DOS drivespec
2562 ?:) as_incr_dir=$as_mkdir_dir ;;
2564 as_incr_dir=$as_incr_dir/$as_mkdir_dir
2565 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2570 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2571 # A "../" for each directory in $ac_dir_suffix.
2572 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2574 ac_dir_suffix= ac_dots=
2579 if test -z "$ac_dots"; then
2582 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2585 ac_srcdir=$srcdir$ac_dir_suffix;
2586 ac_top_srcdir=$srcdir ;;
2588 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2589 ac_top_srcdir=$ac_dots$srcdir ;;
2593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2594 *) ac_INSTALL=$ac_dots$INSTALL ;;
2597 if test x"$ac_file" != x-; then
2598 { echo "$as_me:2598: creating $ac_file" >&5
2599 echo "$as_me: creating $ac_file" >&6;}
2602 # Let's still pretend it is `configure' which instantiates (i.e., don't
2603 # use $as_me), people would be surprised to read:
2604 # /* config.h. Generated automatically by config.status. */
2605 configure_input="Generated automatically from `echo $ac_file_in |
2606 sed 's,.*/,,'` by configure."
2608 # First look for the input files in the build tree, otherwise in the
2610 ac_file_inputs=`IFS=:
2611 for f in $ac_file_in; do
2613 -) echo $tmp/stdin ;;
2615 # Absolute (can't be DOS-style, as IFS=:)
2616 test -f "$f" || { { echo "$as_me:2616: error: cannot find input file: $f" >&5
2617 echo "$as_me: error: cannot find input file: $f" >&2;}
2618 { (exit 1); exit 1; }; }
2621 if test -f "$f"; then
2624 elif test -f "$srcdir/$f"; then
2629 { { echo "$as_me:2629: error: cannot find input file: $f" >&5
2630 echo "$as_me: error: cannot find input file: $f" >&2;}
2631 { (exit 1); exit 1; }; }
2634 done` || { (exit 1); exit 1; }
2636 cat >>$CONFIG_STATUS <<EOF
2640 cat >>$CONFIG_STATUS <<\EOF
2642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2643 s,@configure_input@,$configure_input,;t t
2644 s,@srcdir@,$ac_srcdir,;t t
2645 s,@top_srcdir@,$ac_top_srcdir,;t t
2646 s,@INSTALL@,$ac_INSTALL,;t t
2647 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2649 if test x"$ac_file" != x-; then
2650 mv $tmp/out $ac_file
2658 cat >>$CONFIG_STATUS <<\EOF
2661 # CONFIG_HEADER section.
2664 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2665 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2667 # ac_d sets the value in "#define NAME VALUE" lines.
2668 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2669 ac_dB='[ ].*$,\1#\2'
2672 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2673 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2674 ac_uB='$,\1#\2define\3'
2678 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
2679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2681 - | *:- | *:-:* ) # input from stdin
2683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2687 * ) ac_file_in=$ac_file.in ;;
2690 test x"$ac_file" != x- && { echo "$as_me:2690: creating $ac_file" >&5
2691 echo "$as_me: creating $ac_file" >&6;}
2693 # First look for the input files in the build tree, otherwise in the
2695 ac_file_inputs=`IFS=:
2696 for f in $ac_file_in; do
2698 -) echo $tmp/stdin ;;
2700 # Absolute (can't be DOS-style, as IFS=:)
2701 test -f "$f" || { { echo "$as_me:2701: error: cannot find input file: $f" >&5
2702 echo "$as_me: error: cannot find input file: $f" >&2;}
2703 { (exit 1); exit 1; }; }
2706 if test -f "$f"; then
2709 elif test -f "$srcdir/$f"; then
2714 { { echo "$as_me:2714: error: cannot find input file: $f" >&5
2715 echo "$as_me: error: cannot find input file: $f" >&2;}
2716 { (exit 1); exit 1; }; }
2719 done` || { (exit 1); exit 1; }
2720 # Remove the trailing spaces.
2721 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
2725 # Transform confdefs.h into two sed scripts, `conftest.defines' and
2726 # `conftest.undefs', that substitutes the proper values into
2727 # config.h.in to produce config.h. The first handles `#define'
2728 # templates, and the second `#undef' templates.
2729 # And first: Protect against being on the right side of a sed subst in
2730 # config.status. Protect against being in an unquoted here document
2732 rm -f conftest.defines conftest.undefs
2733 # Using a here document instead of a string reduces the quoting nightmare.
2734 # Putting comments in sed scripts is not portable.
2736 # `end' is used to avoid that the second main sed command (meant for
2737 # 0-ary CPP macros) applies to n-ary macro definitions.
2738 # See the Autoconf documentation for `clear'.
2739 cat >confdef2sed.sed <<\EOF
2744 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
2746 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
2749 # If some macros were called several times there might be several times
2750 # the same #defines, which is useless. Nevertheless, we may not want to
2751 # sort them, since we want the *last* AC-DEFINE to be honored.
2752 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
2753 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
2754 rm -f confdef2sed.sed
2756 # This sed command replaces #undef with comments. This is necessary, for
2757 # example, in the case of _POSIX_SOURCE, which is predefined and required
2758 # on some systems where configure will not decide to define it.
2759 cat >>conftest.undefs <<\EOF
2760 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
2763 # Break up conftest.defines because some shells have a limit on the size
2764 # of here documents, and old seds have small limits too (100 cmds).
2765 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
2766 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
2767 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
2768 echo ' :' >>$CONFIG_STATUS
2770 while grep . conftest.defines >/dev/null
2772 # Write a limited-size here document to $tmp/defines.sed.
2773 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
2774 # Speed up: don't consider the non `#define' lines.
2775 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
2776 # Work around the forget-to-reset-the-flag bug.
2777 echo 't clr' >>$CONFIG_STATUS
2778 echo ': clr' >>$CONFIG_STATUS
2779 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
2781 sed -f $tmp/defines.sed $tmp/in >$tmp/out
2785 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
2786 rm -f conftest.defines
2787 mv conftest.tail conftest.defines
2789 rm -f conftest.defines
2790 echo ' fi # egrep' >>$CONFIG_STATUS
2791 echo >>$CONFIG_STATUS
2793 # Break up conftest.undefs because some shells have a limit on the size
2794 # of here documents, and old seds have small limits too (100 cmds).
2795 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
2797 while grep . conftest.undefs >/dev/null
2799 # Write a limited-size here document to $tmp/undefs.sed.
2800 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
2801 # Speed up: don't consider the non `#undef'
2802 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
2803 # Work around the forget-to-reset-the-flag bug.
2804 echo 't clr' >>$CONFIG_STATUS
2805 echo ': clr' >>$CONFIG_STATUS
2806 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
2808 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
2812 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
2813 rm -f conftest.undefs
2814 mv conftest.tail conftest.undefs
2816 rm -f conftest.undefs
2818 cat >>$CONFIG_STATUS <<\EOF
2819 # Let's still pretend it is `configure' which instantiates (i.e., don't
2820 # use $as_me), people would be surprised to read:
2821 # /* config.h. Generated automatically by config.status. */
2822 if test x"$ac_file" = x-; then
2823 echo "/* Generated automatically by configure. */" >$tmp/config.h
2825 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
2827 cat $tmp/in >>$tmp/config.h
2829 if test x"$ac_file" != x-; then
2830 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
2831 { echo "$as_me:2831: $ac_file is unchanged" >&5
2832 echo "$as_me: $ac_file is unchanged" >&6;}
2834 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2835 X"$ac_file" : 'X\(//\)[^/]' \| \
2836 X"$ac_file" : 'X\(//\)$' \| \
2837 X"$ac_file" : 'X\(/\)' \| \
2838 . : '\(.\)' 2>/dev/null ||
2840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2842 /^X\(\/\/\)$/{ s//\1/; q; }
2843 /^X\(\/\).*/{ s//\1/; q; }
2845 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2847 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2851 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2852 case $as_mkdir_dir in
2853 # Skip DOS drivespec
2854 ?:) as_incr_dir=$as_mkdir_dir ;;
2856 as_incr_dir=$as_incr_dir/$as_mkdir_dir
2857 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2864 mv $tmp/config.h $ac_file
2872 cat >>$CONFIG_STATUS <<\EOF
2875 # CONFIG_COMMANDS section.
2877 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
2878 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
2879 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
2882 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
2887 cat >>$CONFIG_STATUS <<\EOF
2889 { (exit 0); exit 0; }
2891 chmod +x $CONFIG_STATUS
2892 ac_clean_files=$ac_clean_files_save
2894 # configure is writing to config.log, and then calls config.status.
2895 # config.status does its own redirection, appending to config.log.
2896 # Unfortunately, on DOS this fails, as config.log is still kept open
2897 # by configure, so config.status won't be able to write to it; its
2898 # output is simply discarded. So we exec the FD to /dev/null,
2899 # effectively closing config.log, so it can be properly (re)opened and
2900 # appended to by config.status. When coming back to configure, we
2901 # need to make the FD available again.
2902 if test "$no_create" != yes; then
2905 $SHELL $CONFIG_STATUS || ac_cs_success=false
2907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2908 # would make configure fail if this is the last instruction.
2909 $ac_cs_success || { (exit 1); exit 1; }