2 # From configure.in Revision: 1.4 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file="rlm_smb.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP smb_cflags smb_ldflags targetname LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
837 if test -n "$ac_init_help"; then
842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
844 --with-rlm-smb-lib-dir=DIR Directory for samba library files
845 --with-rlm-smb-include-dir=DIR Directory for samba include files
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
856 Use these variables to override the choices made by `configure' or to help
857 it to find libraries and programs with nonstandard names/locations.
862 if test "$ac_init_help" = "recursive"; then
863 # If there are subdirs, report their specific --help.
865 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
866 test -d $ac_dir || continue
869 if test "$ac_dir" != .; then
870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
871 # A "../" for each directory in $ac_dir_suffix.
872 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
874 ac_dir_suffix= ac_top_builddir=
878 .) # No --srcdir option. We are building in place.
880 if test -z "$ac_top_builddir"; then
883 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
885 [\\/]* | ?:[\\/]* ) # Absolute path.
886 ac_srcdir=$srcdir$ac_dir_suffix;
887 ac_top_srcdir=$srcdir ;;
889 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
890 ac_top_srcdir=$ac_top_builddir$srcdir ;;
893 # Do not use `cd foo && pwd` to compute absolute paths, because
894 # the directories may not exist.
896 .) ac_abs_builddir="$ac_dir";;
899 .) ac_abs_builddir=`pwd`;;
900 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
901 *) ac_abs_builddir=`pwd`/"$ac_dir";;
904 case $ac_abs_builddir in
905 .) ac_abs_top_builddir=${ac_top_builddir}.;;
907 case ${ac_top_builddir}. in
908 .) ac_abs_top_builddir=$ac_abs_builddir;;
909 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
910 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
913 case $ac_abs_builddir in
914 .) ac_abs_srcdir=$ac_srcdir;;
917 .) ac_abs_srcdir=$ac_abs_builddir;;
918 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
919 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
922 case $ac_abs_builddir in
923 .) ac_abs_top_srcdir=$ac_top_srcdir;;
925 case $ac_top_srcdir in
926 .) ac_abs_top_srcdir=$ac_abs_builddir;;
927 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
928 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
933 # Check for guested configure; otherwise get Cygnus style configure.
934 if test -f $ac_srcdir/configure.gnu; then
936 $SHELL $ac_srcdir/configure.gnu --help=recursive
937 elif test -f $ac_srcdir/configure; then
939 $SHELL $ac_srcdir/configure --help=recursive
940 elif test -f $ac_srcdir/configure.ac ||
941 test -f $ac_srcdir/configure.in; then
945 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
951 test -n "$ac_init_help" && exit 0
952 if $ac_init_version; then
955 Copyright (C) 2003 Free Software Foundation, Inc.
956 This configure script is free software; the Free Software Foundation
957 gives unlimited permission to copy, distribute and modify it.
963 This file contains any messages produced by compilers while
964 running configure, to aid debugging if configure makes a mistake.
966 It was created by $as_me, which was
967 generated by GNU Autoconf 2.59. Invocation command line was
978 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979 uname -m = `(uname -m) 2>/dev/null || echo unknown`
980 uname -r = `(uname -r) 2>/dev/null || echo unknown`
981 uname -s = `(uname -s) 2>/dev/null || echo unknown`
982 uname -v = `(uname -v) 2>/dev/null || echo unknown`
984 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001 test -z "$as_dir" && as_dir=.
1002 echo "PATH: $as_dir"
1017 # Keep a trace of the command line.
1018 # Strip out --no-create and --no-recursion so they do not pile up.
1019 # Strip out --silent because we don't want to record it for future runs.
1020 # Also quote any args containing shell meta-characters.
1021 # Make two passes to allow for proper duplicate-argument suppression.
1026 ac_must_keep_next=false
1032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1036 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043 if test $ac_must_keep_next = true; then
1044 ac_must_keep_next=false # Got value, back to normal.
1047 *=* | --config-cache | -C | -disable-* | --disable-* \
1048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050 | -with-* | --with-* | -without-* | --without-* | --x)
1051 case "$ac_configure_args0 " in
1052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055 -* ) ac_must_keep_next=true ;;
1058 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059 # Get rid of the leading space.
1065 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068 # When interrupted or exit'd, cleanup temporary files, and complete
1069 # config.log. We remove comments because anyway the quotes in there
1070 # would cause problems or look ugly.
1071 # WARNING: Be sure not to use single quotes in there, as some shells,
1072 # such as our DU 5.0 friend, will then `close' the trap.
1073 trap 'exit_status=$?
1074 # Save into config.log some information that might help in debugging.
1079 ## ---------------- ##
1080 ## Cache variables. ##
1081 ## ---------------- ##
1084 # The following way of writing the cache mishandles newlines in values,
1087 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102 ## ----------------- ##
1103 ## Output variables. ##
1104 ## ----------------- ##
1107 for ac_var in $ac_subst_vars
1109 eval ac_val=$`echo $ac_var`
1110 echo "$ac_var='"'"'$ac_val'"'"'"
1114 if test -n "$ac_subst_files"; then
1121 for ac_var in $ac_subst_files
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -s confdefs.h; then
1136 sed "/^$/d" confdefs.h | sort
1139 test "$ac_signal" != 0 &&
1140 echo "$as_me: caught signal $ac_signal"
1141 echo "$as_me: exit $exit_status"
1143 rm -f core *.core &&
1144 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147 for ac_signal in 1 2 13 15; do
1148 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1153 rm -rf conftest* confdefs.h
1154 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157 # Predefined preprocessor variables.
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_NAME "$PACKAGE_NAME"
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_STRING "$PACKAGE_STRING"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184 # Let the site file select an alternate cache file if it wants to.
1185 # Prefer explicitly selected file to automatically selected ones.
1186 if test -z "$CONFIG_SITE"; then
1187 if test "x$prefix" != xNONE; then
1188 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193 for ac_site_file in $CONFIG_SITE; do
1194 if test -r "$ac_site_file"; then
1195 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196 echo "$as_me: loading site script $ac_site_file" >&6;}
1197 sed 's/^/| /' "$ac_site_file" >&5
1202 if test -r "$cache_file"; then
1203 # Some versions of bash will fail to source /dev/null (special
1204 # files actually), so we avoid doing that.
1205 if test -f "$cache_file"; then
1206 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207 echo "$as_me: loading cache $cache_file" >&6;}
1209 [\\/]* | ?:[\\/]* ) . $cache_file;;
1210 *) . ./$cache_file;;
1214 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215 echo "$as_me: creating cache $cache_file" >&6;}
1219 # Check that the precious variables saved in the cache have kept the same
1221 ac_cache_corrupted=false
1222 for ac_var in `(set) 2>&1 |
1223 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225 eval ac_new_set=\$ac_env_${ac_var}_set
1226 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227 eval ac_new_val="\$ac_env_${ac_var}_value"
1228 case $ac_old_set,$ac_new_set in
1230 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232 ac_cache_corrupted=: ;;
1234 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236 ac_cache_corrupted=: ;;
1239 if test "x$ac_old_val" != "x$ac_new_val"; then
1240 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243 echo "$as_me: former value: $ac_old_val" >&2;}
1244 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245 echo "$as_me: current value: $ac_new_val" >&2;}
1246 ac_cache_corrupted=:
1249 # Pass precious variables to config.status.
1250 if test "$ac_new_set" = set; then
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 *) ac_arg=$ac_var=$ac_new_val ;;
1256 case " $ac_configure_args " in
1257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262 if $ac_cache_corrupted; then
1263 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267 { (exit 1); exit 1; }; }
1271 ac_cpp='$CPP $CPPFLAGS'
1272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294 ac_config_headers="$ac_config_headers config.h"
1299 if test x$with_rlm_smb != xno; then
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306 if test -n "$ac_tool_prefix"; then
1307 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1308 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1309 echo "$as_me:$LINENO: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$CC"; then
1315 ac_cv_prog_CC="$CC" # Let the user override the test.
1317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1321 test -z "$as_dir" && as_dir=.
1322 for ac_exec_ext in '' $ac_executable_extensions; do
1323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1324 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334 if test -n "$CC"; then
1335 echo "$as_me:$LINENO: result: $CC" >&5
1336 echo "${ECHO_T}$CC" >&6
1338 echo "$as_me:$LINENO: result: no" >&5
1339 echo "${ECHO_T}no" >&6
1343 if test -z "$ac_cv_prog_CC"; then
1345 # Extract the first word of "gcc", so it can be a program name with args.
1346 set dummy gcc; ac_word=$2
1347 echo "$as_me:$LINENO: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$ac_ct_CC"; then
1353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359 test -z "$as_dir" && as_dir=.
1360 for ac_exec_ext in '' $ac_executable_extensions; do
1361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1362 ac_cv_prog_ac_ct_CC="gcc"
1363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1372 if test -n "$ac_ct_CC"; then
1373 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1374 echo "${ECHO_T}$ac_ct_CC" >&6
1376 echo "$as_me:$LINENO: result: no" >&5
1377 echo "${ECHO_T}no" >&6
1385 if test -z "$CC"; then
1386 if test -n "$ac_tool_prefix"; then
1387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1388 set dummy ${ac_tool_prefix}cc; ac_word=$2
1389 echo "$as_me:$LINENO: checking for $ac_word" >&5
1390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1391 if test "${ac_cv_prog_CC+set}" = set; then
1392 echo $ECHO_N "(cached) $ECHO_C" >&6
1394 if test -n "$CC"; then
1395 ac_cv_prog_CC="$CC" # Let the user override the test.
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 test -z "$as_dir" && as_dir=.
1402 for ac_exec_ext in '' $ac_executable_extensions; do
1403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1404 ac_cv_prog_CC="${ac_tool_prefix}cc"
1405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 if test -n "$CC"; then
1415 echo "$as_me:$LINENO: result: $CC" >&5
1416 echo "${ECHO_T}$CC" >&6
1418 echo "$as_me:$LINENO: result: no" >&5
1419 echo "${ECHO_T}no" >&6
1423 if test -z "$ac_cv_prog_CC"; then
1425 # Extract the first word of "cc", so it can be a program name with args.
1426 set dummy cc; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1432 if test -n "$ac_ct_CC"; then
1433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1439 test -z "$as_dir" && as_dir=.
1440 for ac_exec_ext in '' $ac_executable_extensions; do
1441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442 ac_cv_prog_ac_ct_CC="cc"
1443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1452 if test -n "$ac_ct_CC"; then
1453 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1454 echo "${ECHO_T}$ac_ct_CC" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1466 if test -z "$CC"; then
1467 # Extract the first word of "cc", so it can be a program name with args.
1468 set dummy cc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 if test -n "$CC"; then
1475 ac_cv_prog_CC="$CC" # Let the user override the test.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1486 ac_prog_rejected=yes
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 if test $ac_prog_rejected = yes; then
1497 # We found a bogon in the path, so make sure we never use it.
1498 set dummy $ac_cv_prog_CC
1500 if test $# != 0; then
1501 # We chose a different compiler from the bogus one.
1502 # However, it has the same basename, so the bogon will be chosen
1503 # first if we set CC to just the basename; use the full file name.
1505 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1511 if test -n "$CC"; then
1512 echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1515 echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1559 test -n "$CC" && break
1562 if test -z "$CC"; then
1566 # Extract the first word of "$ac_prog", so it can be a program name with args.
1567 set dummy $ac_prog; ac_word=$2
1568 echo "$as_me:$LINENO: checking for $ac_word" >&5
1569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1570 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 if test -n "$ac_ct_CC"; then
1574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580 test -z "$as_dir" && as_dir=.
1581 for ac_exec_ext in '' $ac_executable_extensions; do
1582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1583 ac_cv_prog_ac_ct_CC="$ac_prog"
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1593 if test -n "$ac_ct_CC"; then
1594 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1595 echo "${ECHO_T}$ac_ct_CC" >&6
1597 echo "$as_me:$LINENO: result: no" >&5
1598 echo "${ECHO_T}no" >&6
1601 test -n "$ac_ct_CC" && break
1610 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1611 See \`config.log' for more details." >&5
1612 echo "$as_me: error: no acceptable C compiler found in \$PATH
1613 See \`config.log' for more details." >&2;}
1614 { (exit 1); exit 1; }; }
1616 # Provide some information about the compiler.
1617 echo "$as_me:$LINENO:" \
1618 "checking for C compiler version" >&5
1619 ac_compiler=`set X $ac_compile; echo $2`
1620 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1621 (eval $ac_compiler --version </dev/null >&5) 2>&5
1623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1624 (exit $ac_status); }
1625 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1626 (eval $ac_compiler -v </dev/null >&5) 2>&5
1628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1629 (exit $ac_status); }
1630 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1631 (eval $ac_compiler -V </dev/null >&5) 2>&5
1633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1634 (exit $ac_status); }
1636 cat >conftest.$ac_ext <<_ACEOF
1639 cat confdefs.h >>conftest.$ac_ext
1640 cat >>conftest.$ac_ext <<_ACEOF
1641 /* end confdefs.h. */
1651 ac_clean_files_save=$ac_clean_files
1652 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1653 # Try to create an executable without -o first, disregard a.out.
1654 # It will help us diagnose broken compilers, and finding out an intuition
1656 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1657 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1658 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1659 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1660 (eval $ac_link_default) 2>&5
1662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1663 (exit $ac_status); }; then
1664 # Find the output, starting from the most likely. This scheme is
1665 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1668 # Be careful to initialize this variable, since it used to be cached.
1669 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1671 # b.out is created by i960 compilers.
1672 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1674 test -f "$ac_file" || continue
1676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1679 # This is the source file.
1682 # We found the default executable, but exeext='' is most
1686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1687 # FIXME: I believe we export ac_cv_exeext for Libtool,
1688 # but it would be cool to find out if it's true. Does anybody
1689 # maintain Libtool? --akim.
1697 echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1700 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1701 See \`config.log' for more details." >&5
1702 echo "$as_me: error: C compiler cannot create executables
1703 See \`config.log' for more details." >&2;}
1704 { (exit 77); exit 77; }; }
1707 ac_exeext=$ac_cv_exeext
1708 echo "$as_me:$LINENO: result: $ac_file" >&5
1709 echo "${ECHO_T}$ac_file" >&6
1711 # Check the compiler produces executables we can run. If not, either
1712 # the compiler is broken, or we cross compile.
1713 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1714 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1715 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1716 # If not cross compiling, check that we can run a simple program.
1717 if test "$cross_compiling" != yes; then
1718 if { ac_try='./$ac_file'
1719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1723 (exit $ac_status); }; }; then
1726 if test "$cross_compiling" = maybe; then
1729 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1730 If you meant to cross compile, use \`--host'.
1731 See \`config.log' for more details." >&5
1732 echo "$as_me: error: cannot run C compiled programs.
1733 If you meant to cross compile, use \`--host'.
1734 See \`config.log' for more details." >&2;}
1735 { (exit 1); exit 1; }; }
1739 echo "$as_me:$LINENO: result: yes" >&5
1740 echo "${ECHO_T}yes" >&6
1742 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1743 ac_clean_files=$ac_clean_files_save
1744 # Check the compiler produces executables we can run. If not, either
1745 # the compiler is broken, or we cross compile.
1746 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1747 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1748 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1749 echo "${ECHO_T}$cross_compiling" >&6
1751 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1752 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1754 (eval $ac_link) 2>&5
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }; then
1758 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1759 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1760 # work properly (i.e., refer to `conftest.exe'), while it won't with
1762 for ac_file in conftest.exe conftest conftest.*; do
1763 test -f "$ac_file" || continue
1765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1766 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1773 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1774 See \`config.log' for more details." >&5
1775 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1776 See \`config.log' for more details." >&2;}
1777 { (exit 1); exit 1; }; }
1780 rm -f conftest$ac_cv_exeext
1781 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1782 echo "${ECHO_T}$ac_cv_exeext" >&6
1784 rm -f conftest.$ac_ext
1785 EXEEXT=$ac_cv_exeext
1787 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1788 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1789 if test "${ac_cv_objext+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 cat >conftest.$ac_ext <<_ACEOF
1795 cat confdefs.h >>conftest.$ac_ext
1796 cat >>conftest.$ac_ext <<_ACEOF
1797 /* end confdefs.h. */
1807 rm -f conftest.o conftest.obj
1808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>&5
1811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1812 (exit $ac_status); }; then
1813 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1816 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1821 echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1825 See \`config.log' for more details." >&5
1826 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1827 See \`config.log' for more details." >&2;}
1828 { (exit 1); exit 1; }; }
1831 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1833 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1834 echo "${ECHO_T}$ac_cv_objext" >&6
1835 OBJEXT=$ac_cv_objext
1837 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1838 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1839 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 cat >conftest.$ac_ext <<_ACEOF
1845 cat confdefs.h >>conftest.$ac_ext
1846 cat >>conftest.$ac_ext <<_ACEOF
1847 /* end confdefs.h. */
1860 rm -f conftest.$ac_objext
1861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>conftest.er1
1864 grep -v '^ *+' conftest.er1 >conftest.err
1866 cat conftest.err >&5
1867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868 (exit $ac_status); } &&
1869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); }; } &&
1875 { ac_try='test -s conftest.$ac_objext'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1883 echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1892 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1893 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1894 GCC=`test $ac_compiler_gnu = yes && echo yes`
1895 ac_test_CFLAGS=${CFLAGS+set}
1896 ac_save_CFLAGS=$CFLAGS
1898 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1899 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1900 if test "${ac_cv_prog_cc_g+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 cat >conftest.$ac_ext <<_ACEOF
1906 cat confdefs.h >>conftest.$ac_ext
1907 cat >>conftest.$ac_ext <<_ACEOF
1908 /* end confdefs.h. */
1918 rm -f conftest.$ac_objext
1919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1920 (eval $ac_compile) 2>conftest.er1
1922 grep -v '^ *+' conftest.er1 >conftest.err
1924 cat conftest.err >&5
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); } &&
1927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; } &&
1933 { ac_try='test -s conftest.$ac_objext'
1934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; }; then
1941 echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1948 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1949 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1950 if test "$ac_test_CFLAGS" = set; then
1951 CFLAGS=$ac_save_CFLAGS
1952 elif test $ac_cv_prog_cc_g = yes; then
1953 if test "$GCC" = yes; then
1959 if test "$GCC" = yes; then
1965 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1966 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1967 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 ac_cv_prog_cc_stdc=no
1972 cat >conftest.$ac_ext <<_ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1980 #include <sys/types.h>
1981 #include <sys/stat.h>
1982 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1983 struct buf { int x; };
1984 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1985 static char *e (p, i)
1991 static char *f (char * (*g) (char **, int), char **p, ...)
1996 s = g (p, va_arg (v,int));
2001 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2002 function prototypes and stuff, but not '\xHH' hex character constants.
2003 These don't provoke an error unfortunately, instead are silently treated
2004 as 'x'. The following induces an error, until -std1 is added to get
2005 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2006 array size at least. It's necessary to write '\x00'==0 to get something
2007 that's true only with -std1. */
2008 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2010 int test (int i, double x);
2011 struct s1 {int (*f) (int a);};
2012 struct s2 {int (*f) (double a);};
2013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2019 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2024 # Don't try gcc -ansi; that turns off useful extensions and
2025 # breaks some systems' header files.
2026 # AIX -qlanglvl=ansi
2027 # Ultrix and OSF/1 -std1
2028 # HP-UX 10.20 and later -Ae
2029 # HP-UX older versions -Aa -D_HPUX_SOURCE
2030 # SVR4 -Xc -D__EXTENSIONS__
2031 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2033 CC="$ac_save_CC $ac_arg"
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>conftest.er1
2038 grep -v '^ *+' conftest.er1 >conftest.err
2040 cat conftest.err >&5
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; } &&
2049 { ac_try='test -s conftest.$ac_objext'
2050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; }; then
2055 ac_cv_prog_cc_stdc=$ac_arg
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2062 rm -f conftest.err conftest.$ac_objext
2064 rm -f conftest.$ac_ext conftest.$ac_objext
2069 case "x$ac_cv_prog_cc_stdc" in
2071 echo "$as_me:$LINENO: result: none needed" >&5
2072 echo "${ECHO_T}none needed" >&6 ;;
2074 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2075 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2076 CC="$CC $ac_cv_prog_cc_stdc" ;;
2079 # Some people use a C++ compiler to compile C. Since we use `exit',
2080 # in C++ we need to declare it. In case someone uses the same compiler
2081 # for both compiling C and C++ we need to have the C++ compiler decide
2082 # the declaration of exit, since it's the most demanding environment.
2083 cat >conftest.$ac_ext <<_ACEOF
2088 rm -f conftest.$ac_objext
2089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2090 (eval $ac_compile) 2>conftest.er1
2092 grep -v '^ *+' conftest.er1 >conftest.err
2094 cat conftest.err >&5
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); } &&
2097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 for ac_declaration in \
2111 'extern "C" void std::exit (int) throw (); using std::exit;' \
2112 'extern "C" void std::exit (int); using std::exit;' \
2113 'extern "C" void exit (int) throw ();' \
2114 'extern "C" void exit (int);' \
2117 cat >conftest.$ac_ext <<_ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>conftest.er1
2137 grep -v '^ *+' conftest.er1 >conftest.err
2139 cat conftest.err >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); } &&
2142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; } &&
2148 { ac_try='test -s conftest.$ac_objext'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; }; then
2156 echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2162 cat >conftest.$ac_ext <<_ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2177 rm -f conftest.$ac_objext
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>conftest.er1
2181 grep -v '^ *+' conftest.er1 >conftest.err
2183 cat conftest.err >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; } &&
2192 { ac_try='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207 if test -n "$ac_declaration"; then
2208 echo '#ifdef __cplusplus' >>confdefs.h
2209 echo $ac_declaration >>confdefs.h
2210 echo '#endif' >>confdefs.h
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 ac_cpp='$CPP $CPPFLAGS'
2221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2231 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2232 # On Suns, sometimes $CPP names a directory.
2233 if test -n "$CPP" && test -d "$CPP"; then
2236 if test -z "$CPP"; then
2237 if test "${ac_cv_prog_CPP+set}" = set; then
2238 echo $ECHO_N "(cached) $ECHO_C" >&6
2240 # Double quotes because CPP needs to be expanded
2241 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2249 # <limits.h> exists even on freestanding compilers.
2250 # On the NeXT, cc -E runs the code through the compiler's parser,
2251 # not just through cpp. "Syntax error" is here to catch this case.
2252 cat >conftest.$ac_ext <<_ACEOF
2255 cat confdefs.h >>conftest.$ac_ext
2256 cat >>conftest.$ac_ext <<_ACEOF
2257 /* end confdefs.h. */
2259 # include <limits.h>
2261 # include <assert.h>
2265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2266 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2268 grep -v '^ *+' conftest.er1 >conftest.err
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } >/dev/null; then
2273 if test -s conftest.err; then
2274 ac_cpp_err=$ac_c_preproc_warn_flag
2275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2282 if test -z "$ac_cpp_err"; then
2285 echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2288 # Broken: fails on valid input.
2291 rm -f conftest.err conftest.$ac_ext
2293 # OK, works on sane cases. Now check whether non-existent headers
2294 # can be detected and how.
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2301 #include <ac_nonexistent.h>
2303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2306 grep -v '^ *+' conftest.er1 >conftest.err
2308 cat conftest.err >&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } >/dev/null; then
2311 if test -s conftest.err; then
2312 ac_cpp_err=$ac_c_preproc_warn_flag
2313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2320 if test -z "$ac_cpp_err"; then
2321 # Broken: success on invalid input.
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 # Passes both tests.
2331 rm -f conftest.err conftest.$ac_ext
2334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2335 rm -f conftest.err conftest.$ac_ext
2336 if $ac_preproc_ok; then
2348 echo "$as_me:$LINENO: result: $CPP" >&5
2349 echo "${ECHO_T}$CPP" >&6
2351 for ac_c_preproc_warn_flag in '' yes
2353 # Use a header file that comes with gcc, so configuring glibc
2354 # with a fresh cross-compiler works.
2355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2356 # <limits.h> exists even on freestanding compilers.
2357 # On the NeXT, cc -E runs the code through the compiler's parser,
2358 # not just through cpp. "Syntax error" is here to catch this case.
2359 cat >conftest.$ac_ext <<_ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2366 # include <limits.h>
2368 # include <assert.h>
2372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2375 grep -v '^ *+' conftest.er1 >conftest.err
2377 cat conftest.err >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); } >/dev/null; then
2380 if test -s conftest.err; then
2381 ac_cpp_err=$ac_c_preproc_warn_flag
2382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2389 if test -z "$ac_cpp_err"; then
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 # Broken: fails on valid input.
2398 rm -f conftest.err conftest.$ac_ext
2400 # OK, works on sane cases. Now check whether non-existent headers
2401 # can be detected and how.
2402 cat >conftest.$ac_ext <<_ACEOF
2405 cat confdefs.h >>conftest.$ac_ext
2406 cat >>conftest.$ac_ext <<_ACEOF
2407 /* end confdefs.h. */
2408 #include <ac_nonexistent.h>
2410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2413 grep -v '^ *+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } >/dev/null; then
2418 if test -s conftest.err; then
2419 ac_cpp_err=$ac_c_preproc_warn_flag
2420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2427 if test -z "$ac_cpp_err"; then
2428 # Broken: success on invalid input.
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2434 # Passes both tests.
2438 rm -f conftest.err conftest.$ac_ext
2441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2442 rm -f conftest.err conftest.$ac_ext
2443 if $ac_preproc_ok; then
2446 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2447 See \`config.log' for more details." >&5
2448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2449 See \`config.log' for more details." >&2;}
2450 { (exit 1); exit 1; }; }
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 # Check whether --with-rlm-smb-lib-dir or --without-rlm-smb-lib-dir was given.
2463 if test "${with_rlm_smb_lib_dir+set}" = set; then
2464 withval="$with_rlm_smb_lib_dir"
2467 { { echo "$as_me:$LINENO: error: Need rlm-smb-lib-dir" >&5
2468 echo "$as_me: error: Need rlm-smb-lib-dir" >&2;}
2469 { (exit 1); exit 1; }; }
2474 rlm_smb_lib_dir="$withval"
2482 # Check whether --with-rlm-smb-include-dir or --without-rlm-smb-include-dir was given.
2483 if test "${with_rlm_smb_include_dir+set}" = set; then
2484 withval="$with_rlm_smb_include_dir"
2487 { { echo "$as_me:$LINENO: error: Need rlm-smb-include-dir" >&5
2488 echo "$as_me: error: Need rlm-smb-include-dir" >&2;}
2489 { (exit 1); exit 1; }; }
2494 rlm_smb_include_dir="$withval"
2502 echo "$as_me:$LINENO: checking for egrep" >&5
2503 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2504 if test "${ac_cv_prog_egrep+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2508 then ac_cv_prog_egrep='grep -E'
2509 else ac_cv_prog_egrep='egrep'
2512 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2513 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2514 EGREP=$ac_cv_prog_egrep
2517 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2518 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2519 if test "${ac_cv_header_stdc+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>conftest.er1
2545 grep -v '^ *+' conftest.er1 >conftest.err
2547 cat conftest.err >&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 ac_cv_header_stdc=yes
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 ac_cv_header_stdc=no
2569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 if test $ac_cv_header_stdc = yes; then
2572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2573 cat >conftest.$ac_ext <<_ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2583 $EGREP "memchr" >/dev/null 2>&1; then
2586 ac_cv_header_stdc=no
2592 if test $ac_cv_header_stdc = yes; then
2593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2604 $EGREP "free" >/dev/null 2>&1; then
2607 ac_cv_header_stdc=no
2613 if test $ac_cv_header_stdc = yes; then
2614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2615 if test "$cross_compiling" = yes; then
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2625 #if ((' ' & 0x0FF) == 0x020)
2626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2629 # define ISLOWER(c) \
2630 (('a' <= (c) && (c) <= 'i') \
2631 || ('j' <= (c) && (c) <= 'r') \
2632 || ('s' <= (c) && (c) <= 'z'))
2633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2641 for (i = 0; i < 256; i++)
2642 if (XOR (islower (i), ISLOWER (i))
2643 || toupper (i) != TOUPPER (i))
2648 rm -f conftest$ac_exeext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2650 (eval $ac_link) 2>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; }; then
2661 echo "$as_me: program exited with status $ac_status" >&5
2662 echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2666 ac_cv_header_stdc=no
2668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2672 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2673 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2674 if test $ac_cv_header_stdc = yes; then
2676 cat >>confdefs.h <<\_ACEOF
2677 #define STDC_HEADERS 1
2682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2693 inttypes.h stdint.h unistd.h
2695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2696 echo "$as_me:$LINENO: checking for $ac_header" >&5
2697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2707 $ac_includes_default
2709 #include <$ac_header>
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713 (eval $ac_compile) 2>conftest.er1
2715 grep -v '^ *+' conftest.er1 >conftest.err
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } &&
2720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }; } &&
2726 { ac_try='test -s conftest.$ac_objext'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 eval "$as_ac_Header=yes"
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2737 eval "$as_ac_Header=no"
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2744 cat >>confdefs.h <<_ACEOF
2745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2765 for ac_header in arpa/inet.h \
2779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2781 echo "$as_me:$LINENO: checking for $ac_header" >&5
2782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2789 # Is the header compilable?
2790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2792 cat >conftest.$ac_ext <<_ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2798 $ac_includes_default
2799 #include <$ac_header>
2801 rm -f conftest.$ac_objext
2802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 (eval $ac_compile) 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } &&
2810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_header_compiler=yes
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 ac_header_compiler=no
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2831 echo "${ECHO_T}$ac_header_compiler" >&6
2833 # Is the header present?
2834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2836 cat >conftest.$ac_ext <<_ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842 #include <$ac_header>
2844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } >/dev/null; then
2852 if test -s conftest.err; then
2853 ac_cpp_err=$ac_c_preproc_warn_flag
2854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2861 if test -z "$ac_cpp_err"; then
2862 ac_header_preproc=yes
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 ac_header_preproc=no
2869 rm -f conftest.err conftest.$ac_ext
2870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2871 echo "${ECHO_T}$ac_header_preproc" >&6
2873 # So? What about this header?
2874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2880 ac_header_preproc=yes
2883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2897 ## ------------------------------------------ ##
2898 ## Report this to the AC_PACKAGE_NAME lists. ##
2899 ## ------------------------------------------ ##
2902 sed "s/^/$as_me: WARNING: /" >&2
2905 echo "$as_me:$LINENO: checking for $ac_header" >&5
2906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 eval "$as_ac_Header=\$ac_header_preproc"
2912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2917 cat >>confdefs.h <<_ACEOF
2918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2930 echo \*\*\* module rlm_smb is disabled.
2933 if test x"$fail" != x""; then
2934 if test x"${enable_strict_dependencies}" = x"yes"; then
2935 { { echo "$as_me:$LINENO: error: set --without-rlm_smb to disable it explicitly." >&5
2936 echo "$as_me: error: set --without-rlm_smb to disable it explicitly." >&2;}
2937 { (exit 1); exit 1; }; }
2939 { echo "$as_me:$LINENO: WARNING: silently not building rlm_smb." >&5
2940 echo "$as_me: WARNING: silently not building rlm_smb." >&2;}
2941 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_smb requires: $fail." >&5
2942 echo "$as_me: WARNING: FAILURE: rlm_smb requires: $fail." >&2;};
2950 ac_config_files="$ac_config_files Makefile"
2951 cat >confcache <<\_ACEOF
2952 # This file is a shell script that caches the results of configure
2953 # tests run on this system so they can be shared between configure
2954 # scripts and configure runs, see configure's option --config-cache.
2955 # It is not useful on other systems. If it contains results you don't
2956 # want to keep, you may remove or edit it.
2958 # config.status only pays attention to the cache file if you give it
2959 # the --recheck option to rerun configure.
2961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2967 # The following way of writing the cache mishandles newlines in values,
2968 # but we know of no workaround that is simple, portable, and efficient.
2969 # So, don't put newlines in cache variables' values.
2970 # Ultrix sh set writes to stderr and can't be redirected directly,
2971 # and sets the high bit in the cache file unless we assign to the vars.
2974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2976 # `set' does not quote correctly, so add quotes (double-quote
2977 # substitution turns \\\\ into \\, and sed turns \\ into \).
2980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2983 # `set' quotes correctly as required by POSIX, so do not add quotes.
2985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2997 if test -w $cache_file; then
2998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2999 cat confcache >$cache_file
3001 echo "not updating unwritable cache $cache_file"
3006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3007 # Let make expand exec_prefix.
3008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3012 # trailing colons and then remove the whole line if VPATH becomes empty
3013 # (actually we leave an empty line to preserve line numbers).
3014 if test "x$srcdir" = x.; then
3015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3016 s/:*\$(srcdir):*/:/;
3017 s/:*\${srcdir}:*/:/;
3019 s/^\([^=]*=[ ]*\):*/\1/;
3025 DEFS=-DHAVE_CONFIG_H
3029 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3030 # 1. Remove the extension, and $U if already installed.
3031 ac_i=`echo "$ac_i" |
3032 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3034 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3035 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3039 LTLIBOBJS=$ac_ltlibobjs
3043 : ${CONFIG_STATUS=./config.status}
3044 ac_clean_files_save=$ac_clean_files
3045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3046 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3047 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3048 cat >$CONFIG_STATUS <<_ACEOF
3050 # Generated by $as_me.
3051 # Run this file to recreate the current configuration.
3052 # Compiler output produced by configure, useful for debugging
3053 # configure, is in config.log if it exists.
3058 SHELL=\${CONFIG_SHELL-$SHELL}
3061 cat >>$CONFIG_STATUS <<\_ACEOF
3062 ## --------------------- ##
3063 ## M4sh Initialization. ##
3064 ## --------------------- ##
3066 # Be Bourne compatible
3067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3071 # is contrary to our usage. Disable this feature.
3072 alias -g '${1+"$@"}'='"$@"'
3073 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3076 DUALCASE=1; export DUALCASE # for MKS sh
3078 # Support unset when possible.
3079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3086 # Work around bugs in pre-3.0 UWIN ksh.
3087 $as_unset ENV MAIL MAILPATH
3094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3096 LC_TELEPHONE LC_TIME
3098 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3099 eval $as_var=C; export $as_var
3105 # Required to use basename.
3106 if expr a : '\(a\)' >/dev/null 2>&1; then
3112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3113 as_basename=basename
3119 # Name of the executable.
3120 as_me=`$as_basename "$0" ||
3121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3122 X"$0" : 'X\(//\)$' \| \
3123 X"$0" : 'X\(/\)$' \| \
3124 . : '\(.\)' 2>/dev/null ||
3126 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3127 /^X\/\(\/\/\)$/{ s//\1/; q; }
3128 /^X\/\(\/\).*/{ s//\1/; q; }
3132 # PATH needs CR, and LINENO needs CR and PATH.
3133 # Avoid depending upon Character Ranges.
3134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3137 as_cr_digits='0123456789'
3138 as_cr_alnum=$as_cr_Letters$as_cr_digits
3140 # The user is always right.
3141 if test "${PATH_SEPARATOR+set}" != set; then
3142 echo "#! /bin/sh" >conf$$.sh
3143 echo "exit 0" >>conf$$.sh
3145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3157 test "x$as_lineno_1" != "x$as_lineno_2" &&
3158 test "x$as_lineno_3" = "x$as_lineno_2" || {
3159 # Find who we are. Look in the path if we contain no path at all
3162 *[\\/]* ) as_myself=$0 ;;
3163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3173 # We did not find ourselves, most probably we were run as `sh COMMAND'
3174 # in which case we are not to be found in the path.
3175 if test "x$as_myself" = x; then
3178 if test ! -f "$as_myself"; then
3179 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3180 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3181 { (exit 1); exit 1; }; }
3183 case $CONFIG_SHELL in
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3189 test -z "$as_dir" && as_dir=.
3190 for as_base in sh bash ksh sh5; do
3193 if ("$as_dir/$as_base" -c '
3196 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3197 test "x$as_lineno_1" != "x$as_lineno_2" &&
3198 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3199 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3200 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3201 CONFIG_SHELL=$as_dir/$as_base
3203 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3212 # uniformly replaced by the line number. The first 'sed' inserts a
3213 # line-number line before each line; the second 'sed' does the real
3214 # work. The second script uses 'N' to pair each line-number line
3215 # with the numbered line, and appends trailing '-' during
3216 # substitution so that $LINENO is not a special case at line end.
3217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3218 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3219 sed '=' <$as_myself |
3224 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3227 s,^['$as_cr_digits']*\n,,
3229 chmod +x $as_me.lineno ||
3230 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3232 { (exit 1); exit 1; }; }
3234 # Don't try to exec as it changes $[0], causing all sort of problems
3235 # (the dirname of $[0] is not the place where we might find the
3236 # original and so on. Autoconf is especially sensible to this).
3238 # Exit status is that of the last command.
3243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3244 *c*,-n*) ECHO_N= ECHO_C='
3246 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3247 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3250 if expr a : '\(a\)' >/dev/null 2>&1; then
3256 rm -f conf$$ conf$$.exe conf$$.file
3258 if ln -s conf$$.file conf$$ 2>/dev/null; then
3259 # We could just check for DJGPP; but this test a) works b) is more generic
3260 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3261 if test -f conf$$.exe; then
3262 # Don't use ln at all; we don't have any links
3267 elif ln conf$$.file conf$$ 2>/dev/null; then
3272 rm -f conf$$ conf$$.exe conf$$.file
3274 if mkdir -p . 2>/dev/null; then
3277 test -d ./-p && rmdir ./-p
3281 as_executable_p="test -f"
3283 # Sed expression to map a string onto a valid CPP name.
3284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3286 # Sed expression to map a string onto a valid variable name.
3287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3291 # We need space, tab and new line, in precisely that order.
3301 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3302 # report actual input values of CONFIG_FILES etc. instead of their
3303 # values after options handling. Logging --version etc. is OK.
3307 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3308 ## Running $as_me. ##
3313 This file was extended by $as_me, which was
3314 generated by GNU Autoconf 2.59. Invocation command line was
3316 CONFIG_FILES = $CONFIG_FILES
3317 CONFIG_HEADERS = $CONFIG_HEADERS
3318 CONFIG_LINKS = $CONFIG_LINKS
3319 CONFIG_COMMANDS = $CONFIG_COMMANDS
3323 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3327 # Files that config.status was made for.
3328 if test -n "$ac_config_files"; then
3329 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3332 if test -n "$ac_config_headers"; then
3333 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3336 if test -n "$ac_config_links"; then
3337 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3340 if test -n "$ac_config_commands"; then
3341 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3344 cat >>$CONFIG_STATUS <<\_ACEOF
3347 \`$as_me' instantiates files from templates according to the
3348 current configuration.
3350 Usage: $0 [OPTIONS] [FILE]...
3352 -h, --help print this help, then exit
3353 -V, --version print version number, then exit
3354 -q, --quiet do not print progress messages
3355 -d, --debug don't remove temporary files
3356 --recheck update $as_me by reconfiguring in the same conditions
3357 --file=FILE[:TEMPLATE]
3358 instantiate the configuration file FILE
3359 --header=FILE[:TEMPLATE]
3360 instantiate the configuration header FILE
3362 Configuration files:
3365 Configuration headers:
3368 Report bugs to <bug-autoconf@gnu.org>."
3371 cat >>$CONFIG_STATUS <<_ACEOF
3374 configured by $0, generated by GNU Autoconf 2.59,
3375 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3377 Copyright (C) 2003 Free Software Foundation, Inc.
3378 This config.status script is free software; the Free Software Foundation
3379 gives unlimited permission to copy, distribute and modify it."
3383 cat >>$CONFIG_STATUS <<\_ACEOF
3384 # If no file are specified by the user, then we need to provide default
3385 # value. By we need to know if files were specified by the user.
3391 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3392 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3400 *) # This is not an option, so the user has probably given explicit
3403 ac_need_defaults=false;;
3407 # Handling of the options.
3409 cat >>$CONFIG_STATUS <<\_ACEOF
3410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3412 --version | --vers* | -V )
3413 echo "$ac_cs_version"; exit 0 ;;
3415 # Conflict between --help and --header
3416 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3417 Try \`$0 --help' for more information." >&5
3418 echo "$as_me: error: ambiguous option: $1
3419 Try \`$0 --help' for more information." >&2;}
3420 { (exit 1); exit 1; }; };;
3421 --help | --hel | -h )
3422 echo "$ac_cs_usage"; exit 0 ;;
3423 --debug | --d* | -d )
3425 --file | --fil | --fi | --f )
3427 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3428 ac_need_defaults=false;;
3429 --header | --heade | --head | --hea )
3431 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3432 ac_need_defaults=false;;
3433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3438 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3439 Try \`$0 --help' for more information." >&5
3440 echo "$as_me: error: unrecognized option: $1
3441 Try \`$0 --help' for more information." >&2;}
3442 { (exit 1); exit 1; }; } ;;
3444 *) ac_config_targets="$ac_config_targets $1" ;;
3450 ac_configure_extra_args=
3452 if $ac_cs_silent; then
3454 ac_configure_extra_args="$ac_configure_extra_args --silent"
3458 cat >>$CONFIG_STATUS <<_ACEOF
3459 if \$ac_cs_recheck; then
3460 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3461 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3470 cat >>$CONFIG_STATUS <<\_ACEOF
3471 for ac_config_target in $ac_config_targets
3473 case "$ac_config_target" in
3474 # Handling of arguments.
3475 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3476 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3477 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3478 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3479 { (exit 1); exit 1; }; };;
3483 # If the user did not use the arguments to specify the items to instantiate,
3484 # then the envvar interface is used. Set only those that are not.
3485 # We use the long form for the default assignment because of an extremely
3486 # bizarre bug on SunOS 4.1.3.
3487 if $ac_need_defaults; then
3488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3492 # Have a temporary directory for convenience. Make it in the build tree
3493 # simply because there is no reason to put it here, and in addition,
3494 # creating and moving files from /tmp can sometimes cause problems.
3495 # Create a temporary directory, and hook for its removal unless debugging.
3498 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3499 trap '{ (exit 1); exit 1; }' 1 2 13 15
3502 # Create a (secure) tmp directory for tmp files.
3505 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3506 test -n "$tmp" && test -d "$tmp"
3509 tmp=./confstat$$-$RANDOM
3510 (umask 077 && mkdir $tmp)
3513 echo "$me: cannot create a temporary directory in ." >&2
3514 { (exit 1); exit 1; }
3519 cat >>$CONFIG_STATUS <<_ACEOF
3522 # CONFIG_FILES section.
3525 # No need to generate the scripts if there are no CONFIG_FILES.
3526 # This happens for instance when ./config.status config.h
3527 if test -n "\$CONFIG_FILES"; then
3528 # Protect against being on the right side of a sed subst in config.status.
3529 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3530 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3531 s,@SHELL@,$SHELL,;t t
3532 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3533 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3534 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3535 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3536 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3537 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3538 s,@exec_prefix@,$exec_prefix,;t t
3539 s,@prefix@,$prefix,;t t
3540 s,@program_transform_name@,$program_transform_name,;t t
3541 s,@bindir@,$bindir,;t t
3542 s,@sbindir@,$sbindir,;t t
3543 s,@libexecdir@,$libexecdir,;t t
3544 s,@datadir@,$datadir,;t t
3545 s,@sysconfdir@,$sysconfdir,;t t
3546 s,@sharedstatedir@,$sharedstatedir,;t t
3547 s,@localstatedir@,$localstatedir,;t t
3548 s,@libdir@,$libdir,;t t
3549 s,@includedir@,$includedir,;t t
3550 s,@oldincludedir@,$oldincludedir,;t t
3551 s,@infodir@,$infodir,;t t
3552 s,@mandir@,$mandir,;t t
3553 s,@build_alias@,$build_alias,;t t
3554 s,@host_alias@,$host_alias,;t t
3555 s,@target_alias@,$target_alias,;t t
3557 s,@ECHO_C@,$ECHO_C,;t t
3558 s,@ECHO_N@,$ECHO_N,;t t
3559 s,@ECHO_T@,$ECHO_T,;t t
3562 s,@CFLAGS@,$CFLAGS,;t t
3563 s,@LDFLAGS@,$LDFLAGS,;t t
3564 s,@CPPFLAGS@,$CPPFLAGS,;t t
3565 s,@ac_ct_CC@,$ac_ct_CC,;t t
3566 s,@EXEEXT@,$EXEEXT,;t t
3567 s,@OBJEXT@,$OBJEXT,;t t
3569 s,@EGREP@,$EGREP,;t t
3570 s,@smb_cflags@,$smb_cflags,;t t
3571 s,@smb_ldflags@,$smb_ldflags,;t t
3572 s,@targetname@,$targetname,;t t
3573 s,@LIBOBJS@,$LIBOBJS,;t t
3574 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3579 cat >>$CONFIG_STATUS <<\_ACEOF
3580 # Split the substitutions into bite-sized pieces for seds with
3581 # small command number limits, like on Digital OSF/1 and HP-UX.
3583 ac_sed_frag=1 # Number of current file.
3584 ac_beg=1 # First line for current file.
3585 ac_end=$ac_max_sed_lines # Line after last line for current file.
3588 while $ac_more_lines; do
3589 if test $ac_beg -gt 1; then
3590 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3592 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3594 if test ! -s $tmp/subs.frag; then
3597 # The purpose of the label and of the branching condition is to
3598 # speed up the sed processing (if there are no `@' at all, there
3599 # is no need to browse any of the substitutions).
3600 # These are the two extra sed commands mentioned above.
3602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3603 if test -z "$ac_sed_cmds"; then
3604 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3606 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3608 ac_sed_frag=`expr $ac_sed_frag + 1`
3610 ac_end=`expr $ac_end + $ac_max_sed_lines`
3613 if test -z "$ac_sed_cmds"; then
3616 fi # test -n "$CONFIG_FILES"
3619 cat >>$CONFIG_STATUS <<\_ACEOF
3620 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3621 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3623 - | *:- | *:-:* ) # input from stdin
3625 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3626 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3627 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3628 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3629 * ) ac_file_in=$ac_file.in ;;
3632 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3633 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3634 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3635 X"$ac_file" : 'X\(//\)[^/]' \| \
3636 X"$ac_file" : 'X\(//\)$' \| \
3637 X"$ac_file" : 'X\(/\)' \| \
3638 . : '\(.\)' 2>/dev/null ||
3640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3642 /^X\(\/\/\)$/{ s//\1/; q; }
3643 /^X\(\/\).*/{ s//\1/; q; }
3645 { if $as_mkdir_p; then
3650 while test ! -d "$as_dir"; do
3651 as_dirs="$as_dir $as_dirs"
3652 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3653 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3654 X"$as_dir" : 'X\(//\)[^/]' \| \
3655 X"$as_dir" : 'X\(//\)$' \| \
3656 X"$as_dir" : 'X\(/\)' \| \
3657 . : '\(.\)' 2>/dev/null ||
3659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3661 /^X\(\/\/\)$/{ s//\1/; q; }
3662 /^X\(\/\).*/{ s//\1/; q; }
3665 test ! -n "$as_dirs" || mkdir $as_dirs
3666 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3667 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3668 { (exit 1); exit 1; }; }; }
3672 if test "$ac_dir" != .; then
3673 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3674 # A "../" for each directory in $ac_dir_suffix.
3675 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3677 ac_dir_suffix= ac_top_builddir=
3681 .) # No --srcdir option. We are building in place.
3683 if test -z "$ac_top_builddir"; then
3686 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3688 [\\/]* | ?:[\\/]* ) # Absolute path.
3689 ac_srcdir=$srcdir$ac_dir_suffix;
3690 ac_top_srcdir=$srcdir ;;
3692 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3693 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3696 # Do not use `cd foo && pwd` to compute absolute paths, because
3697 # the directories may not exist.
3699 .) ac_abs_builddir="$ac_dir";;
3702 .) ac_abs_builddir=`pwd`;;
3703 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3704 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3707 case $ac_abs_builddir in
3708 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3710 case ${ac_top_builddir}. in
3711 .) ac_abs_top_builddir=$ac_abs_builddir;;
3712 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3713 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3716 case $ac_abs_builddir in
3717 .) ac_abs_srcdir=$ac_srcdir;;
3720 .) ac_abs_srcdir=$ac_abs_builddir;;
3721 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3722 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3725 case $ac_abs_builddir in
3726 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3728 case $ac_top_srcdir in
3729 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3730 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3731 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3737 # Let's still pretend it is `configure' which instantiates (i.e., don't
3738 # use $as_me), people would be surprised to read:
3739 # /* config.h. Generated by config.status. */
3740 if test x"$ac_file" = x-; then
3743 configure_input="$ac_file. "
3745 configure_input=$configure_input"Generated from `echo $ac_file_in |
3746 sed 's,.*/,,'` by configure."
3748 # First look for the input files in the build tree, otherwise in the
3750 ac_file_inputs=`IFS=:
3751 for f in $ac_file_in; do
3753 -) echo $tmp/stdin ;;
3755 # Absolute (can't be DOS-style, as IFS=:)
3756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3757 echo "$as_me: error: cannot find input file: $f" >&2;}
3758 { (exit 1); exit 1; }; }
3761 if test -f "$f"; then
3764 elif test -f "$srcdir/$f"; then
3769 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3770 echo "$as_me: error: cannot find input file: $f" >&2;}
3771 { (exit 1); exit 1; }; }
3774 done` || { (exit 1); exit 1; }
3776 if test x"$ac_file" != x-; then
3777 { echo "$as_me:$LINENO: creating $ac_file" >&5
3778 echo "$as_me: creating $ac_file" >&6;}
3782 cat >>$CONFIG_STATUS <<_ACEOF
3786 cat >>$CONFIG_STATUS <<\_ACEOF
3788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3789 s,@configure_input@,$configure_input,;t t
3790 s,@srcdir@,$ac_srcdir,;t t
3791 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3792 s,@top_srcdir@,$ac_top_srcdir,;t t
3793 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3794 s,@builddir@,$ac_builddir,;t t
3795 s,@abs_builddir@,$ac_abs_builddir,;t t
3796 s,@top_builddir@,$ac_top_builddir,;t t
3797 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3798 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3800 if test x"$ac_file" != x-; then
3801 mv $tmp/out $ac_file
3809 cat >>$CONFIG_STATUS <<\_ACEOF
3812 # CONFIG_HEADER section.
3815 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3816 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3818 # ac_d sets the value in "#define NAME VALUE" lines.
3819 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3820 ac_dB='[ ].*$,\1#\2'
3823 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3824 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3825 ac_uB='$,\1#\2define\3'
3829 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3830 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3832 - | *:- | *:-:* ) # input from stdin
3834 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3835 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3836 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3837 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3838 * ) ac_file_in=$ac_file.in ;;
3841 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3842 echo "$as_me: creating $ac_file" >&6;}
3844 # First look for the input files in the build tree, otherwise in the
3846 ac_file_inputs=`IFS=:
3847 for f in $ac_file_in; do
3849 -) echo $tmp/stdin ;;
3851 # Absolute (can't be DOS-style, as IFS=:)
3852 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3853 echo "$as_me: error: cannot find input file: $f" >&2;}
3854 { (exit 1); exit 1; }; }
3855 # Do quote $f, to prevent DOS paths from being IFS'd.
3858 if test -f "$f"; then
3861 elif test -f "$srcdir/$f"; then
3866 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3867 echo "$as_me: error: cannot find input file: $f" >&2;}
3868 { (exit 1); exit 1; }; }
3871 done` || { (exit 1); exit 1; }
3872 # Remove the trailing spaces.
3873 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3877 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3878 # `conftest.undefs', that substitutes the proper values into
3879 # config.h.in to produce config.h. The first handles `#define'
3880 # templates, and the second `#undef' templates.
3881 # And first: Protect against being on the right side of a sed subst in
3882 # config.status. Protect against being in an unquoted here document
3884 rm -f conftest.defines conftest.undefs
3885 # Using a here document instead of a string reduces the quoting nightmare.
3886 # Putting comments in sed scripts is not portable.
3888 # `end' is used to avoid that the second main sed command (meant for
3889 # 0-ary CPP macros) applies to n-ary macro definitions.
3890 # See the Autoconf documentation for `clear'.
3891 cat >confdef2sed.sed <<\_ACEOF
3896 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3898 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3901 # If some macros were called several times there might be several times
3902 # the same #defines, which is useless. Nevertheless, we may not want to
3903 # sort them, since we want the *last* AC-DEFINE to be honored.
3904 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3905 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3906 rm -f confdef2sed.sed
3908 # This sed command replaces #undef with comments. This is necessary, for
3909 # example, in the case of _POSIX_SOURCE, which is predefined and required
3910 # on some systems where configure will not decide to define it.
3911 cat >>conftest.undefs <<\_ACEOF
3912 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3915 # Break up conftest.defines because some shells have a limit on the size
3916 # of here documents, and old seds have small limits too (100 cmds).
3917 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3918 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3919 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3920 echo ' :' >>$CONFIG_STATUS
3922 while grep . conftest.defines >/dev/null
3924 # Write a limited-size here document to $tmp/defines.sed.
3925 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3926 # Speed up: don't consider the non `#define' lines.
3927 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3928 # Work around the forget-to-reset-the-flag bug.
3929 echo 't clr' >>$CONFIG_STATUS
3930 echo ': clr' >>$CONFIG_STATUS
3931 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3933 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3937 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3938 rm -f conftest.defines
3939 mv conftest.tail conftest.defines
3941 rm -f conftest.defines
3942 echo ' fi # grep' >>$CONFIG_STATUS
3943 echo >>$CONFIG_STATUS
3945 # Break up conftest.undefs because some shells have a limit on the size
3946 # of here documents, and old seds have small limits too (100 cmds).
3947 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3949 while grep . conftest.undefs >/dev/null
3951 # Write a limited-size here document to $tmp/undefs.sed.
3952 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3953 # Speed up: don't consider the non `#undef'
3954 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3955 # Work around the forget-to-reset-the-flag bug.
3956 echo 't clr' >>$CONFIG_STATUS
3957 echo ': clr' >>$CONFIG_STATUS
3958 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3960 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3964 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3965 rm -f conftest.undefs
3966 mv conftest.tail conftest.undefs
3968 rm -f conftest.undefs
3970 cat >>$CONFIG_STATUS <<\_ACEOF
3971 # Let's still pretend it is `configure' which instantiates (i.e., don't
3972 # use $as_me), people would be surprised to read:
3973 # /* config.h. Generated by config.status. */
3974 if test x"$ac_file" = x-; then
3975 echo "/* Generated by configure. */" >$tmp/config.h
3977 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
3979 cat $tmp/in >>$tmp/config.h
3981 if test x"$ac_file" != x-; then
3982 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3983 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3984 echo "$as_me: $ac_file is unchanged" >&6;}
3986 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3987 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3988 X"$ac_file" : 'X\(//\)[^/]' \| \
3989 X"$ac_file" : 'X\(//\)$' \| \
3990 X"$ac_file" : 'X\(/\)' \| \
3991 . : '\(.\)' 2>/dev/null ||
3993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3995 /^X\(\/\/\)$/{ s//\1/; q; }
3996 /^X\(\/\).*/{ s//\1/; q; }
3998 { if $as_mkdir_p; then
4003 while test ! -d "$as_dir"; do
4004 as_dirs="$as_dir $as_dirs"
4005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4007 X"$as_dir" : 'X\(//\)[^/]' \| \
4008 X"$as_dir" : 'X\(//\)$' \| \
4009 X"$as_dir" : 'X\(/\)' \| \
4010 . : '\(.\)' 2>/dev/null ||
4012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4014 /^X\(\/\/\)$/{ s//\1/; q; }
4015 /^X\(\/\).*/{ s//\1/; q; }
4018 test ! -n "$as_dirs" || mkdir $as_dirs
4019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4021 { (exit 1); exit 1; }; }; }
4024 mv $tmp/config.h $ac_file
4033 cat >>$CONFIG_STATUS <<\_ACEOF
4035 { (exit 0); exit 0; }
4037 chmod +x $CONFIG_STATUS
4038 ac_clean_files=$ac_clean_files_save
4041 # configure is writing to config.log, and then calls config.status.
4042 # config.status does its own redirection, appending to config.log.
4043 # Unfortunately, on DOS this fails, as config.log is still kept open
4044 # by configure, so config.status won't be able to write to it; its
4045 # output is simply discarded. So we exec the FD to /dev/null,
4046 # effectively closing config.log, so it can be properly (re)opened and
4047 # appended to by config.status. When coming back to configure, we
4048 # need to make the FD available again.
4049 if test "$no_create" != yes; then
4051 ac_config_status_args=
4052 test "$silent" = yes &&
4053 ac_config_status_args="$ac_config_status_args --quiet"
4055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4058 # would make configure fail if this is the last instruction.
4059 $ac_cs_success || { (exit 1); exit 1; }