2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.54.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
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
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
39 for as_var in LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE LC_NUMERIC LC_MESSAGES LC_TIME
41 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42 eval $as_var=C; export $as_var
48 # Required to use basename.
49 if expr a : '\(a\)' >/dev/null 2>&1; then
55 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 # Name of the executable.
63 as_me=`$as_basename "$0" ||
64 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
65 X"$0" : 'X\(//\)$' \| \
66 X"$0" : 'X\(/\)$' \| \
67 . : '\(.\)' 2>/dev/null ||
69 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
70 /^X\/\(\/\/\)$/{ s//\1/; q; }
71 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits='0123456789'
81 as_cr_alnum=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH="/nonexistent;."; conftest.sh) >/dev/null 2>&1; then
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
142 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
143 CONFIG_SHELL=$as_dir/$as_base
145 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154 # uniformly replaced by the line number. The first 'sed' inserts a
155 # line-number line before each line; the second 'sed' does the real
156 # work. The second script uses 'N' to pair each line-number line
157 # with the numbered line, and appends trailing '-' during
158 # substitution so that $LINENO is not a special case at line end.
159 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
161 sed '=' <$as_myself |
166 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 s,^['$as_cr_digits']*\n,,
171 chmod +x $as_me.lineno ||
172 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173 { (exit 1); exit 1; }; }
175 # Don't try to exec as it changes $[0], causing all sort of problems
176 # (the dirname of $[0] is not the place where we might find the
177 # original and so on. Autoconf is especially sensible to this).
179 # Exit status is that of the last command.
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185 *c*,-n*) ECHO_N= ECHO_C='
187 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 if expr a : '\(a\)' >/dev/null 2>&1; then
197 rm -f conf$$ conf$$.exe conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200 # We could just check for DJGPP; but this test a) works b) is more generic
201 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202 if test -f conf$$.exe; then
203 # Don't use ln at all; we don't have any links
208 elif ln conf$$.file conf$$ 2>/dev/null; then
213 rm -f conf$$ conf$$.exe conf$$.file
215 if mkdir -p . 2>/dev/null; then
221 as_executable_p="test -f"
223 # Sed expression to map a string onto a valid CPP name.
224 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
226 # Sed expression to map a string onto a valid variable name.
227 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231 # We need space, tab and new line, in precisely that order.
241 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
242 # so uname gets run too.
243 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 ac_default_prefix=/usr/local
251 ac_config_libobj_dir=.
256 SHELL=${CONFIG_SHELL-/bin/sh}
258 # Maximum number of lines to put in a shell here document.
259 # This variable seems obsolete. It should probably be removed, and
260 # only ac_max_sed_lines should be used.
261 : ${ac_max_here_lines=38}
263 # Identity of this package.
270 ac_unique_file="include/includes.h"
271 ac_default_prefix=/usr/local/samba
272 # Factoring default headers for most tests.
273 ac_includes_default="\
276 # include <sys/types.h>
279 # include <sys/stat.h>
290 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <strings.h>
299 # include <inttypes.h>
309 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 configdir lockdir piddir logfilebase privatedir swatdir RUNPROG MPROGS LDSHFLAGS SONAMEFLAG SHLD HOST_OS PAM_MOD WRAP WRAP32 WRAPPROG PICFLAG PICSUFFIX POBAD_CC SHLIBEXT LIBSMBCLIENT_SHARED LIBSMBCLIENT PRINTLIBS AUTHLIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK BROKEN_CC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CPP EGREP CUPS_CONFIG LIBOBJS TERMLIBS TERMLDFLAGS ROFF DYNEXP MYSQL_CONFIG MYSQL_CFLAGS MYSQL_LIBS MODULE_PDB_MYSQL XML2_CONFIG XML_CFLAGS XML_LIBS MODULE_PDB_XML QUOTAOBJS manlangs WINBIND_TARGETS WINBIND_STARGETS WINBIND_LTARGETS WINBIND_PAM_TARGETS WINBIND_NSS_EXTRA_OBJS WINBIND_NSS_EXTRA_LIBS BUILD_POPT FLAGS1 PYTHON builddir LTLIBOBJS'
312 # Initialize some variables set by options.
314 ac_init_version=false
315 # The variables have the same names as the options, with
316 # dashes changed to underlines.
324 program_transform_name=s,x,x,
332 # Installation directory options.
333 # These are left unexpanded so users can "make install exec_prefix=/foo"
334 # and all the variables that are supposed to be based on exec_prefix
335 # by default will actually change.
336 # Use braces instead of parens because sh, perl, etc. also accept them.
337 bindir='${exec_prefix}/bin'
338 sbindir='${exec_prefix}/sbin'
339 libexecdir='${exec_prefix}/libexec'
340 datadir='${prefix}/share'
341 sysconfdir='${prefix}/etc'
342 sharedstatedir='${prefix}/com'
343 localstatedir='${prefix}/var'
344 libdir='${exec_prefix}/lib'
345 includedir='${prefix}/include'
346 oldincludedir='/usr/include'
347 infodir='${prefix}/info'
348 mandir='${prefix}/man'
353 # If the previous option needs an argument, assign it.
354 if test -n "$ac_prev"; then
355 eval "$ac_prev=\$ac_option"
360 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
362 # Accept the important Cygnus configure options, so we can diagnose typos.
366 -bindir | --bindir | --bindi | --bind | --bin | --bi)
368 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 -build | --build | --buil | --bui | --bu)
372 ac_prev=build_alias ;;
373 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
374 build_alias=$ac_optarg ;;
376 -cache-file | --cache-file | --cache-fil | --cache-fi \
377 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
378 ac_prev=cache_file ;;
379 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
380 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
381 cache_file=$ac_optarg ;;
384 cache_file=config.cache ;;
386 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
388 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
390 datadir=$ac_optarg ;;
392 -disable-* | --disable-*)
393 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
394 # Reject names that are not valid shell variable names.
395 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
396 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
397 { (exit 1); exit 1; }; }
398 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
399 eval "enable_$ac_feature=no" ;;
401 -enable-* | --enable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
409 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 eval "enable_$ac_feature='$ac_optarg'" ;;
414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
416 | --exec | --exe | --ex)
417 ac_prev=exec_prefix ;;
418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
420 | --exec=* | --exe=* | --ex=*)
421 exec_prefix=$ac_optarg ;;
423 -gas | --gas | --ga | --g)
424 # Obsolete; use --with-gas.
427 -help | --help | --hel | --he | -h)
429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
430 ac_init_help=recursive ;;
431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
432 ac_init_help=short ;;
434 -host | --host | --hos | --ho)
435 ac_prev=host_alias ;;
436 -host=* | --host=* | --hos=* | --ho=*)
437 host_alias=$ac_optarg ;;
439 -includedir | --includedir | --includedi | --included | --include \
440 | --includ | --inclu | --incl | --inc)
441 ac_prev=includedir ;;
442 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
443 | --includ=* | --inclu=* | --incl=* | --inc=*)
444 includedir=$ac_optarg ;;
446 -infodir | --infodir | --infodi | --infod | --info | --inf)
448 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
449 infodir=$ac_optarg ;;
451 -libdir | --libdir | --libdi | --libd)
453 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
457 | --libexe | --libex | --libe)
458 ac_prev=libexecdir ;;
459 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
460 | --libexe=* | --libex=* | --libe=*)
461 libexecdir=$ac_optarg ;;
463 -localstatedir | --localstatedir | --localstatedi | --localstated \
464 | --localstate | --localstat | --localsta | --localst \
465 | --locals | --local | --loca | --loc | --lo)
466 ac_prev=localstatedir ;;
467 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
468 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
469 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
470 localstatedir=$ac_optarg ;;
472 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
474 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 # Obsolete; use --without-fp.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c | -n)
485 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
486 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
490 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
491 | --oldin | --oldi | --old | --ol | --o)
492 ac_prev=oldincludedir ;;
493 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
494 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
495 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
496 oldincludedir=$ac_optarg ;;
498 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
500 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 -program-prefix | --program-prefix | --program-prefi | --program-pref \
504 | --program-pre | --program-pr | --program-p)
505 ac_prev=program_prefix ;;
506 -program-prefix=* | --program-prefix=* | --program-prefi=* \
507 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
508 program_prefix=$ac_optarg ;;
510 -program-suffix | --program-suffix | --program-suffi | --program-suff \
511 | --program-suf | --program-su | --program-s)
512 ac_prev=program_suffix ;;
513 -program-suffix=* | --program-suffix=* | --program-suffi=* \
514 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
515 program_suffix=$ac_optarg ;;
517 -program-transform-name | --program-transform-name \
518 | --program-transform-nam | --program-transform-na \
519 | --program-transform-n | --program-transform- \
520 | --program-transform | --program-transfor \
521 | --program-transfo | --program-transf \
522 | --program-trans | --program-tran \
523 | --progr-tra | --program-tr | --program-t)
524 ac_prev=program_transform_name ;;
525 -program-transform-name=* | --program-transform-name=* \
526 | --program-transform-nam=* | --program-transform-na=* \
527 | --program-transform-n=* | --program-transform-=* \
528 | --program-transform=* | --program-transfor=* \
529 | --program-transfo=* | --program-transf=* \
530 | --program-trans=* | --program-tran=* \
531 | --progr-tra=* | --program-tr=* | --program-t=*)
532 program_transform_name=$ac_optarg ;;
534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
535 | -silent | --silent | --silen | --sile | --sil)
538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
542 sbindir=$ac_optarg ;;
544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
546 | --sharedst | --shareds | --shared | --share | --shar \
548 ac_prev=sharedstatedir ;;
549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
553 sharedstatedir=$ac_optarg ;;
555 -site | --site | --sit)
557 -site=* | --site=* | --sit=*)
560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
566 | --syscon | --sysco | --sysc | --sys | --sy)
567 ac_prev=sysconfdir ;;
568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
570 sysconfdir=$ac_optarg ;;
572 -target | --target | --targe | --targ | --tar | --ta | --t)
573 ac_prev=target_alias ;;
574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
575 target_alias=$ac_optarg ;;
577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 -version | --version | --versio | --versi | --vers | -V)
584 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package=`echo $ac_package| sed 's/-/_/g'`
591 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 eval "with_$ac_package='$ac_optarg'" ;;
596 -without-* | --without-*)
597 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
598 # Reject names that are not valid shell variable names.
599 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
600 { echo "$as_me: error: invalid package name: $ac_package" >&2
601 { (exit 1); exit 1; }; }
602 ac_package=`echo $ac_package | sed 's/-/_/g'`
603 eval "with_$ac_package=no" ;;
606 # Obsolete; use --with-x.
609 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
610 | --x-incl | --x-inc | --x-in | --x-i)
611 ac_prev=x_includes ;;
612 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
613 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
614 x_includes=$ac_optarg ;;
616 -x-libraries | --x-libraries | --x-librarie | --x-librari \
617 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
618 ac_prev=x_libraries ;;
619 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
620 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
621 x_libraries=$ac_optarg ;;
623 -*) { echo "$as_me: error: unrecognized option: $ac_option
624 Try \`$0 --help' for more information." >&2
625 { (exit 1); exit 1; }; }
629 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
633 { (exit 1); exit 1; }; }
634 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
635 eval "$ac_envvar='$ac_optarg'"
639 # FIXME: should be removed in autoconf 3.0.
640 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
641 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
642 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
643 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 if test -n "$ac_prev"; then
650 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
651 { echo "$as_me: error: missing argument to $ac_option" >&2
652 { (exit 1); exit 1; }; }
655 # Be sure to have absolute paths.
656 for ac_var in exec_prefix prefix
658 eval ac_val=$`echo $ac_var`
660 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # Be sure to have absolute paths.
667 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
668 localstatedir libdir includedir oldincludedir infodir mandir
670 eval ac_val=$`echo $ac_var`
672 [\\/$]* | ?:[\\/]* ) ;;
673 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
674 { (exit 1); exit 1; }; };;
678 # There might be people who depend on the old broken behavior: `$host'
679 # used to hold the argument of --host etc.
680 # FIXME: To remove some day.
685 # FIXME: To remove some day.
686 if test "x$host_alias" != x; then
687 if test "x$build_alias" = x; then
688 cross_compiling=maybe
689 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
690 If a cross compiler is detected then cross compile mode will be used." >&2
691 elif test "x$build_alias" != "x$host_alias"; then
697 test -n "$host_alias" && ac_tool_prefix=$host_alias-
699 test "$silent" = yes && exec 6>/dev/null
702 # Find the source files, if location was not specified.
703 if test -z "$srcdir"; then
704 ac_srcdir_defaulted=yes
705 # Try the directory containing this script, then its parent.
706 ac_confdir=`(dirname "$0") 2>/dev/null ||
707 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
708 X"$0" : 'X\(//\)[^/]' \| \
709 X"$0" : 'X\(//\)$' \| \
710 X"$0" : 'X\(/\)' \| \
711 . : '\(.\)' 2>/dev/null ||
713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
715 /^X\(\/\/\)$/{ s//\1/; q; }
716 /^X\(\/\).*/{ s//\1/; q; }
719 if test ! -r $srcdir/$ac_unique_file; then
723 ac_srcdir_defaulted=no
725 if test ! -r $srcdir/$ac_unique_file; then
726 if test "$ac_srcdir_defaulted" = yes; then
727 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
728 { (exit 1); exit 1; }; }
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
731 { (exit 1); exit 1; }; }
734 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
735 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
736 { (exit 1); exit 1; }; }
737 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
738 ac_env_build_alias_set=${build_alias+set}
739 ac_env_build_alias_value=$build_alias
740 ac_cv_env_build_alias_set=${build_alias+set}
741 ac_cv_env_build_alias_value=$build_alias
742 ac_env_host_alias_set=${host_alias+set}
743 ac_env_host_alias_value=$host_alias
744 ac_cv_env_host_alias_set=${host_alias+set}
745 ac_cv_env_host_alias_value=$host_alias
746 ac_env_target_alias_set=${target_alias+set}
747 ac_env_target_alias_value=$target_alias
748 ac_cv_env_target_alias_set=${target_alias+set}
749 ac_cv_env_target_alias_value=$target_alias
750 ac_env_CC_set=${CC+set}
752 ac_cv_env_CC_set=${CC+set}
753 ac_cv_env_CC_value=$CC
754 ac_env_CFLAGS_set=${CFLAGS+set}
755 ac_env_CFLAGS_value=$CFLAGS
756 ac_cv_env_CFLAGS_set=${CFLAGS+set}
757 ac_cv_env_CFLAGS_value=$CFLAGS
758 ac_env_LDFLAGS_set=${LDFLAGS+set}
759 ac_env_LDFLAGS_value=$LDFLAGS
760 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_cv_env_LDFLAGS_value=$LDFLAGS
762 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
763 ac_env_CPPFLAGS_value=$CPPFLAGS
764 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
766 ac_env_CPP_set=${CPP+set}
767 ac_env_CPP_value=$CPP
768 ac_cv_env_CPP_set=${CPP+set}
769 ac_cv_env_CPP_value=$CPP
772 # Report the --help message.
774 if test "$ac_init_help" = "long"; then
775 # Omit some internal or obsolete options to make the list less imposing.
776 # This message is too long to be a string in the A/UX 3.1 sh.
778 \`configure' configures this package to adapt to many kinds of systems.
780 Usage: $0 [OPTION]... [VAR=VALUE]...
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE. See below for descriptions of some of the useful variables.
785 Defaults for the options are specified in brackets.
788 -h, --help display this help and exit
789 --help=short display options specific to this package
790 --help=recursive display the short help of all the included packages
791 -V, --version display version information and exit
792 -q, --quiet, --silent do not print \`checking...' messages
793 --cache-file=FILE cache test results in FILE [disabled]
794 -C, --config-cache alias for \`--cache-file=config.cache'
795 -n, --no-create do not create output files
796 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 Installation directories:
802 --prefix=PREFIX install architecture-independent files in PREFIX
804 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
812 For better control, use the options below.
814 Fine tuning of the installation directories:
815 --bindir=DIR user executables [EPREFIX/bin]
816 --sbindir=DIR system admin executables [EPREFIX/sbin]
817 --libexecdir=DIR program executables [EPREFIX/libexec]
818 --datadir=DIR read-only architecture-independent data [PREFIX/share]
819 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
820 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
821 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
822 --libdir=DIR object code libraries [EPREFIX/lib]
823 --includedir=DIR C header files [PREFIX/include]
824 --oldincludedir=DIR C header files for non-gcc [/usr/include]
825 --infodir=DIR info documentation [PREFIX/info]
826 --mandir=DIR man documentation [PREFIX/man]
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
838 if test -n "$ac_init_help"; then
843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845 --enable-debug Turn on compiler debugging information (default=no)
846 --enable-developer Turn on developer warnings and debugging (default=no)
847 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)
848 --enable-dmalloc Enable heap debugging default=no
849 --enable-cups Turn on CUPS support (default=auto)
850 --disable-mysqltest Do not try to compile and run a test MYSQL program
851 --disable-xmltest Do not try to compile and run a test LIBXML program
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-fhs Use FHS-compliant paths (default=no)
857 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)
858 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)
859 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)
860 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)
861 --with-configdir=DIR Where to put configuration files (\$libdir)
862 --with-logfilebase=DIR Where to put log files (\$(VARDIR))
863 --with-readline=DIR Look for readline include/libs in DIR (default=auto)
864 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto)
865 --with-smbwrapper Include SMB wrapper support (default=no)
866 --with-afs Include AFS clear-text auth support (default=no)
867 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)
868 --with-ads Active Directory support (default yes)
869 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
870 --with-ldap LDAP support (default yes)
871 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)
872 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)
873 --with-xml-prefix=PFX Prefix where libxml is installed (optional)
874 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
875 --with-automount Include AUTOMOUNT support (default=no)
876 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)
877 --with-pam Include PAM support (default=no)
878 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)
879 --with-sam Build new (experimental) SAM database (default=no)
880 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)
881 --with-tdbsam Include experimental TDB SAM support (default=no)
882 --with-nisplussam Include NISPLUS SAM support (default=no)
883 --with-nisplus-home Include NISPLUS_HOME support (default=no)
884 --with-syslog Include experimental SYSLOG support (default=no)
885 --with-profiling-data Include gathering source code profile information (default=no)
886 --with-quotas Include experimental disk-quota support (default=no)
887 --with-utmp Include experimental utmp accounting (default=no)
888 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)
889 --with-libsmbclient Build the libsmbclient shared library (default=yes)
890 --with-spinlocks Use spin locks instead of fcntl locks (default=no)
891 --with-acl-support Include ACL support (default=no)
892 --with-sendfile-support Check for sendfile support (default=yes)
893 --with-winbind Build winbind (default, if supported by OS)
894 --with-included-popt use bundled popt library, not from system
895 --with-python=PYTHONNAME build Python libraries
897 Some influential environment variables:
898 CC C compiler command
899 CFLAGS C compiler flags
900 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
901 nonstandard directory <lib dir>
902 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
903 headers in a nonstandard directory <include dir>
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
944 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
945 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
946 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
947 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
950 # Check for guested configure; otherwise get Cygnus style configure.
951 if test -f $ac_srcdir/configure.gnu; then
953 $SHELL $ac_srcdir/configure.gnu --help=recursive
954 elif test -f $ac_srcdir/configure; then
956 $SHELL $ac_srcdir/configure --help=recursive
957 elif test -f $ac_srcdir/configure.ac ||
958 test -f $ac_srcdir/configure.in; then
962 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 test -n "$ac_init_help" && exit 0
969 if $ac_init_version; then
972 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
984 It was created by $as_me, which was
985 generated by GNU Autoconf 2.54. Invocation command line was
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Also quote any args containing shell meta-characters.
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n ) continue ;;
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1051 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1052 # Get rid of the leading space.
1056 # When interrupted or exit'd, cleanup temporary files, and complete
1057 # config.log. We remove comments because anyway the quotes in there
1058 # would cause problems or look ugly.
1059 # WARNING: Be sure not to use single quotes in there, as some shells,
1060 # such as our DU 5.0 friend, will then `close' the trap.
1061 trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
1067 ## ---------------- ##
1068 ## Cache variables. ##
1069 ## ---------------- ##
1072 # The following way of writing the cache mishandles newlines in values,
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ## ----------------- ##
1091 ## Output variables. ##
1092 ## ----------------- ##
1095 for ac_var in $ac_subst_vars
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1102 if test -n "$ac_subst_files"; then
1109 for ac_var in $ac_subst_files
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1117 if test -s confdefs.h; then
1124 sed "/^$/d" confdefs.h | sort
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1131 rm -f core core.* *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1135 for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1141 rm -rf conftest* confdefs.h
1142 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1145 # Predefined preprocessor variables.
1147 cat >>confdefs.h <<_ACEOF
1148 #define PACKAGE_NAME "$PACKAGE_NAME"
1152 cat >>confdefs.h <<_ACEOF
1153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_STRING "$PACKAGE_STRING"
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1172 # Let the site file select an alternate cache file if it wants to.
1173 # Prefer explicitly selected file to automatically selected ones.
1174 if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
1183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1184 echo "$as_me: loading site script $ac_site_file" >&6;}
1185 sed 's/^/| /' "$ac_site_file" >&5
1190 if test -r "$cache_file"; then
1191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
1194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1195 echo "$as_me: loading cache $cache_file" >&6;}
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1203 echo "$as_me: creating cache $cache_file" >&6;}
1207 # Check that the precious variables saved in the cache have kept the same
1209 ac_cache_corrupted=false
1210 for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1218 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1219 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
1228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1229 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1231 echo "$as_me: former value: $ac_old_val" >&2;}
1232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1233 echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1237 # Pass precious variables to config.status.
1238 if test "$ac_new_set" = set; then
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1250 if $ac_cache_corrupted; then
1251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1252 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1254 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
1259 ac_cpp='$CPP $CPPFLAGS'
1260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282 ac_config_headers="$ac_config_headers include/config.h"
1285 #################################################
1286 # Directory handling stuff to support both the
1287 # legacy SAMBA directories and FHS compliant
1292 # Check whether --with-fhs or --without-fhs was given.
1293 if test "${with_fhs+set}" = set; then
1295 configdir="${sysconfdir}/samba"
1296 lockdir="\${VARDIR}/cache/samba"
1297 piddir="\$(VARDIR)/run/samba"
1298 logfilebase="\${VARDIR}/log/samba"
1299 privatedir="\${CONFIGDIR}/private"
1300 swatdir="\${DATADIR}/samba/swat"
1302 configdir="\$(LIBDIR)"
1303 logfilebase="\$(VARDIR)"
1304 lockdir="\${VARDIR}/locks"
1305 piddir="\$(VARDIR)/locks"
1306 privatedir="\${prefix}/private"
1307 swatdir="\${prefix}/swat"
1310 #################################################
1311 # set private directory location
1313 # Check whether --with-privatedir or --without-privatedir was given.
1314 if test "${with_privatedir+set}" = set; then
1315 withval="$with_privatedir"
1319 # Just in case anybody calls it without argument
1321 { echo "$as_me:$LINENO: WARNING: --with-privatedir called without argument - will use default" >&5
1322 echo "$as_me: WARNING: --with-privatedir called without argument - will use default" >&2;}
1325 privatedir="$withval"
1330 #################################################
1331 # set lock directory location
1333 # Check whether --with-lockdir or --without-lockdir was given.
1334 if test "${with_lockdir+set}" = set; then
1335 withval="$with_lockdir"
1339 # Just in case anybody calls it without argument
1341 { echo "$as_me:$LINENO: WARNING: --with-lockdir called without argument - will use default" >&5
1342 echo "$as_me: WARNING: --with-lockdir called without argument - will use default" >&2;}
1350 #################################################
1351 # set pid directory location
1353 # Check whether --with-piddir or --without-piddir was given.
1354 if test "${with_piddir+set}" = set; then
1355 withval="$with_piddir"
1359 # Just in case anybody calls it without argument
1361 { echo "$as_me:$LINENO: WARNING: --with-piddir called without argument - will use default" >&5
1362 echo "$as_me: WARNING: --with-piddir called without argument - will use default" >&2;}
1370 #################################################
1371 # set SWAT directory location
1373 # Check whether --with-swatdir or --without-swatdir was given.
1374 if test "${with_swatdir+set}" = set; then
1375 withval="$with_swatdir"
1379 # Just in case anybody does it
1381 { echo "$as_me:$LINENO: WARNING: --with-swatdir called without argument - will use default" >&5
1382 echo "$as_me: WARNING: --with-swatdir called without argument - will use default" >&2;}
1390 #################################################
1391 # set configuration directory location
1393 # Check whether --with-configdir or --without-configdir was given.
1394 if test "${with_configdir+set}" = set; then
1395 withval="$with_configdir"
1399 # Just in case anybody does it
1401 { echo "$as_me:$LINENO: WARNING: --with-configdir called without argument - will use default" >&5
1402 echo "$as_me: WARNING: --with-configdir called without argument - will use default" >&2;}
1405 configdir="$withval"
1410 #################################################
1411 # set log directory location
1413 # Check whether --with-logfilebase or --without-logfilebase was given.
1414 if test "${with_logfilebase+set}" = set; then
1415 withval="$with_logfilebase"
1419 # Just in case anybody does it
1421 { echo "$as_me:$LINENO: WARNING: --with-logfilebase called without argument - will use default" >&5
1422 echo "$as_me: WARNING: --with-logfilebase called without argument - will use default" >&2;}
1425 logfilebase="$withval"
1459 # compile with optimization and without debugging by default
1460 CFLAGS="-O ${CFLAGS}"
1462 # Check whether --enable-debug or --disable-debug was given.
1463 if test "${enable_debug+set}" = set; then
1464 enableval="$enable_debug"
1465 if eval "test x$enable_debug = xyes"; then
1466 CFLAGS="${CFLAGS} -g"
1470 # Check whether --enable-developer or --disable-developer was given.
1471 if test "${enable_developer+set}" = set; then
1472 enableval="$enable_developer"
1473 if eval "test x$enable_developer = xyes"; then
1474 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1478 # Check whether --enable-krb5developer or --disable-krb5developer was given.
1479 if test "${enable_krb5developer+set}" = set; then
1480 enableval="$enable_krb5developer"
1481 if eval "test x$enable_krb5developer = xyes"; then
1482 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
1486 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1487 if test "${enable_dmalloc+set}" = set; then
1488 enableval="$enable_dmalloc"
1492 if test "x$enable_dmalloc" = xyes
1495 cat >>confdefs.h <<\_ACEOF
1496 #define ENABLE_DMALLOC 1
1500 cat >>confdefs.h <<\_ACEOF
1501 #define DMALLOC_FUNC_CHECK 1
1504 LIBS="$LIBS -ldmalloc"
1508 ac_cpp='$CPP $CPPFLAGS'
1509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512 if test -n "$ac_tool_prefix"; then
1513 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1514 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_CC+set}" = set; then
1518 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 if test -n "$CC"; then
1521 ac_cv_prog_CC="$CC" # Let the user override the test.
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 test -z "$as_dir" && as_dir=.
1528 for ac_exec_ext in '' $ac_executable_extensions; do
1529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 if test -n "$CC"; then
1541 echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1544 echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1549 if test -z "$ac_cv_prog_CC"; then
1551 # Extract the first word of "gcc", so it can be a program name with args.
1552 set dummy gcc; ac_word=$2
1553 echo "$as_me:$LINENO: checking for $ac_word" >&5
1554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 if test -n "$ac_ct_CC"; then
1559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 test -z "$as_dir" && as_dir=.
1566 for ac_exec_ext in '' $ac_executable_extensions; do
1567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568 ac_cv_prog_ac_ct_CC="gcc"
1569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578 if test -n "$ac_ct_CC"; then
1579 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580 echo "${ECHO_T}$ac_ct_CC" >&6
1582 echo "$as_me:$LINENO: result: no" >&5
1583 echo "${ECHO_T}no" >&6
1591 if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_CC="${ac_tool_prefix}cc"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 if test -n "$CC"; then
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1629 if test -z "$ac_cv_prog_CC"; then
1631 # Extract the first word of "cc", so it can be a program name with args.
1632 set dummy cc; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1638 if test -n "$ac_ct_CC"; then
1639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_CC="cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1658 if test -n "$ac_ct_CC"; then
1659 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1660 echo "${ECHO_T}$ac_ct_CC" >&6
1662 echo "$as_me:$LINENO: result: no" >&5
1663 echo "${ECHO_T}no" >&6
1672 if test -z "$CC"; then
1673 # Extract the first word of "cc", so it can be a program name with args.
1674 set dummy cc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$CC"; then
1681 ac_cv_prog_CC="$CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1692 ac_prog_rejected=yes
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 if test $ac_prog_rejected = yes; then
1703 # We found a bogon in the path, so make sure we never use it.
1704 set dummy $ac_cv_prog_CC
1706 if test $# != 0; then
1707 # We chose a different compiler from the bogus one.
1708 # However, it has the same basename, so the bogon will be chosen
1709 # first if we set CC to just the basename; use the full file name.
1711 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1717 if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5
1719 echo "${ECHO_T}$CC" >&6
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1726 if test -z "$CC"; then
1727 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1765 test -n "$CC" && break
1768 if test -z "$CC"; then
1772 # Extract the first word of "$ac_prog", so it can be a program name with args.
1773 set dummy $ac_prog; ac_word=$2
1774 echo "$as_me:$LINENO: checking for $ac_word" >&5
1775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 if test -n "$ac_ct_CC"; then
1780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 ac_cv_prog_ac_ct_CC="$ac_prog"
1790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1799 if test -n "$ac_ct_CC"; then
1800 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1801 echo "${ECHO_T}$ac_ct_CC" >&6
1803 echo "$as_me:$LINENO: result: no" >&5
1804 echo "${ECHO_T}no" >&6
1807 test -n "$ac_ct_CC" && break
1816 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1817 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1818 { (exit 1); exit 1; }; }
1820 # Provide some information about the compiler.
1821 echo "$as_me:$LINENO:" \
1822 "checking for C compiler version" >&5
1823 ac_compiler=`set X $ac_compile; echo $2`
1824 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1825 (eval $ac_compiler --version </dev/null >&5) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1830 (eval $ac_compiler -v </dev/null >&5) 2>&5
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1835 (eval $ac_compiler -V </dev/null >&5) 2>&5
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1840 cat >conftest.$ac_ext <<_ACEOF
1841 #line $LINENO "configure"
1842 #include "confdefs.h"
1852 ac_clean_files_save=$ac_clean_files
1853 ac_clean_files="$ac_clean_files a.out a.exe"
1854 # Try to create an executable without -o first, disregard a.out.
1855 # It will help us diagnose broken compilers, and finding out an intuition
1857 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1858 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1859 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1860 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1861 (eval $ac_link_default) 2>&5
1863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864 (exit $ac_status); }; then
1865 # Find the output, starting from the most likely. This scheme is
1866 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1869 # Be careful to initialize this variable, since it used to be cached.
1870 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1872 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.*; do
1873 test -f "$ac_file" || continue
1875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1876 a.out ) # We found the default executable, but exeext='' is most
1879 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1887 echo "$as_me: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1890 check \`config.log' for details." >&5
1891 echo "$as_me: error: C compiler cannot create executables
1892 check \`config.log' for details." >&2;}
1893 { (exit 77); exit 77; }; }
1896 ac_exeext=$ac_cv_exeext
1897 echo "$as_me:$LINENO: result: $ac_file" >&5
1898 echo "${ECHO_T}$ac_file" >&6
1900 # Check the compiler produces executables we can run. If not, either
1901 # the compiler is broken, or we cross compile.
1902 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1905 # If not cross compiling, check that we can run a simple program.
1906 if test "$cross_compiling" != yes; then
1907 if { ac_try='./$ac_file'
1908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912 (exit $ac_status); }; }; then
1915 if test "$cross_compiling" = maybe; then
1918 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1919 If you meant to cross compile, use \`--host'." >&5
1920 echo "$as_me: error: cannot run C compiled programs.
1921 If you meant to cross compile, use \`--host'." >&2;}
1922 { (exit 1); exit 1; }; }
1926 echo "$as_me:$LINENO: result: yes" >&5
1927 echo "${ECHO_T}yes" >&6
1929 rm -f a.out a.exe conftest$ac_cv_exeext
1930 ac_clean_files=$ac_clean_files_save
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1934 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1935 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1936 echo "${ECHO_T}$cross_compiling" >&6
1938 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1939 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1941 (eval $ac_link) 2>&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1946 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1947 # work properly (i.e., refer to `conftest.exe'), while it won't with
1949 for ac_file in conftest.exe conftest conftest.*; do
1950 test -f "$ac_file" || continue
1952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1953 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1960 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1961 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1962 { (exit 1); exit 1; }; }
1965 rm -f conftest$ac_cv_exeext
1966 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967 echo "${ECHO_T}$ac_cv_exeext" >&6
1969 rm -f conftest.$ac_ext
1970 EXEEXT=$ac_cv_exeext
1972 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974 if test "${ac_cv_objext+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1979 #include "confdefs.h"
1989 rm -f conftest.o conftest.obj
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; then
1995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2003 echo "$as_me: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2006 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2007 { (exit 1); exit 1; }; }
2010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2012 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2013 echo "${ECHO_T}$ac_cv_objext" >&6
2014 OBJEXT=$ac_cv_objext
2016 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 #include "confdefs.h"
2036 rm -f conftest.$ac_objext
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038 (eval $ac_compile) 2>&5
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); } &&
2042 { ac_try='test -s conftest.$ac_objext'
2043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }; }; then
2050 echo "$as_me: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2058 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2060 GCC=`test $ac_compiler_gnu = yes && echo yes`
2061 ac_test_CFLAGS=${CFLAGS+set}
2062 ac_save_CFLAGS=$CFLAGS
2064 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066 if test "${ac_cv_prog_cc_g+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 cat >conftest.$ac_ext <<_ACEOF
2070 #line $LINENO "configure"
2071 #include "confdefs.h"
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 cat conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104 CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106 if test "$GCC" = yes; then
2112 if test "$GCC" = yes; then
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 ac_cv_prog_cc_stdc=no
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 #include "confdefs.h"
2130 #include <sys/types.h>
2131 #include <sys/stat.h>
2132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2133 struct buf { int x; };
2134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135 static char *e (p, i)
2141 static char *f (char * (*g) (char **, int), char **p, ...)
2146 s = g (p, va_arg (v,int));
2150 int test (int i, double x);
2151 struct s1 {int (*f) (int a);};
2152 struct s2 {int (*f) (double a);};
2153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2164 # Don't try gcc -ansi; that turns off useful extensions and
2165 # breaks some systems' header files.
2166 # AIX -qlanglvl=ansi
2167 # Ultrix and OSF/1 -std1
2168 # HP-UX 10.20 and later -Ae
2169 # HP-UX older versions -Aa -D_HPUX_SOURCE
2170 # SVR4 -Xc -D__EXTENSIONS__
2171 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2173 CC="$ac_save_CC $ac_arg"
2174 rm -f conftest.$ac_objext
2175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2189 echo "$as_me: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2192 rm -f conftest.$ac_objext
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2199 case "x$ac_cv_prog_cc_stdc" in
2201 echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2204 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209 # Some people use a C++ compiler to compile C. Since we use `exit',
2210 # in C++ we need to declare it. In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 for ac_declaration in \
2232 '#include <stdlib.h>' \
2233 'extern "C" void std::exit (int) throw (); using std::exit;' \
2234 'extern "C" void std::exit (int); using std::exit;' \
2235 'extern "C" void exit (int) throw ();' \
2236 'extern "C" void exit (int);' \
2239 cat >conftest.$ac_ext <<_ACEOF
2240 #line $LINENO "configure"
2241 #include "confdefs.h"
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2266 echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 echo "$as_me: failed program was:" >&5
2298 cat conftest.$ac_ext >&5
2300 rm -f conftest.$ac_objext conftest.$ac_ext
2303 if test -n "$ac_declaration"; then
2304 echo '#ifdef __cplusplus' >>confdefs.h
2305 echo $ac_declaration >>confdefs.h
2306 echo '#endif' >>confdefs.h
2310 echo "$as_me: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2313 rm -f conftest.$ac_objext conftest.$ac_ext
2315 ac_cpp='$CPP $CPPFLAGS'
2316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2321 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2322 if test -f $ac_dir/install-sh; then
2324 ac_install_sh="$ac_aux_dir/install-sh -c"
2326 elif test -f $ac_dir/install.sh; then
2328 ac_install_sh="$ac_aux_dir/install.sh -c"
2330 elif test -f $ac_dir/shtool; then
2332 ac_install_sh="$ac_aux_dir/shtool install -c"
2336 if test -z "$ac_aux_dir"; then
2337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2338 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2339 { (exit 1); exit 1; }; }
2341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2345 # Find a good install program. We prefer a C program (faster),
2346 # so one script is as good as another. But avoid the broken or
2347 # incompatible versions:
2348 # SysV /etc/install, /usr/sbin/install
2349 # SunOS /usr/etc/install
2350 # IRIX /sbin/install
2352 # AmigaOS /C/install, which installs bootblocks on floppy discs
2353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2356 # ./install, which can be erroneously created by make from ./install.sh.
2357 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2358 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2359 if test -z "$INSTALL"; then
2360 if test "${ac_cv_path_install+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 # Account for people who put trailing slashes in PATH elements.
2370 ./ | .// | /cC/* | \
2371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2374 # OSF1 and SCO ODT 3.0 have their own names for install.
2375 # Don't use installbsd from OSF since it installs stuff as root
2377 for ac_prog in ginstall scoinst install; do
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2380 if test $ac_prog = install &&
2381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2382 # AIX install. It has an incompatible calling convention.
2384 elif test $ac_prog = install &&
2385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # program-specific install script used by HP pwplus--don't use.
2389 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2401 if test "${ac_cv_path_install+set}" = set; then
2402 INSTALL=$ac_cv_path_install
2404 # As a last resort, use the slow shell script. We don't cache a
2405 # path for INSTALL within a source directory, because that will
2406 # break other packages using the cache if that directory is
2407 # removed, or if the path is relative.
2408 INSTALL=$ac_install_sh
2411 echo "$as_me:$LINENO: result: $INSTALL" >&5
2412 echo "${ECHO_T}$INSTALL" >&6
2414 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2415 # It thinks the first close brace ends the variable substitution.
2416 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2418 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2420 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2422 for ac_prog in gawk mawk nawk awk
2424 # Extract the first word of "$ac_prog", so it can be a program name with args.
2425 set dummy $ac_prog; ac_word=$2
2426 echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428 if test "${ac_cv_prog_AWK+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 if test -n "$AWK"; then
2432 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2441 ac_cv_prog_AWK="$ac_prog"
2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 if test -n "$AWK"; then
2452 echo "$as_me:$LINENO: result: $AWK" >&5
2453 echo "${ECHO_T}$AWK" >&6
2455 echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2459 test -n "$AWK" && break
2464 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2466 if test "${ac_cv_prog_gnu_ld+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2470 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2471 ac_cv_prog_gnu_ld=yes
2473 ac_cv_prog_gnu_ld=no
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
2477 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6
2481 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2482 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2483 if test "${ac_cv_search_strerror+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 ac_func_search_save_LIBS=$LIBS
2487 ac_cv_search_strerror=no
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 #include "confdefs.h"
2492 /* Override any gcc2 internal prototype to avoid an error. */
2496 /* We use char because int might match the return type of a gcc2
2497 builtin and then its argument prototype would still apply. */
2507 rm -f conftest.$ac_objext conftest$ac_exeext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2509 (eval $ac_link) 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } &&
2513 { ac_try='test -s conftest$ac_exeext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_search_strerror="none required"
2521 echo "$as_me: failed program was:" >&5
2522 cat conftest.$ac_ext >&5
2524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2525 if test "$ac_cv_search_strerror" = no; then
2526 for ac_lib in cposix; do
2527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2528 cat >conftest.$ac_ext <<_ACEOF
2529 #line $LINENO "configure"
2530 #include "confdefs.h"
2532 /* Override any gcc2 internal prototype to avoid an error. */
2536 /* We use char because int might match the return type of a gcc2
2537 builtin and then its argument prototype would still apply. */
2547 rm -f conftest.$ac_objext conftest$ac_exeext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); } &&
2553 { ac_try='test -s conftest$ac_exeext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_search_strerror="-l$ac_lib"
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2568 LIBS=$ac_func_search_save_LIBS
2570 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2571 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2572 if test "$ac_cv_search_strerror" != no; then
2573 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2578 if test "x$CC" != xcc; then
2579 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2580 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2582 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2583 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2585 set dummy $CC; ac_cc=`echo $2 |
2586 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2587 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 #include "confdefs.h"
2602 # Make sure it works both with $CC and with simple cc.
2603 # We do the test twice because some compilers refuse to overwrite an
2604 # existing .o file with -o, though they will create one.
2605 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2606 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } &&
2611 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); };
2617 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2618 if test "x$CC" != xcc; then
2619 # Test first that cc exists at all.
2620 if { ac_try='cc -c conftest.$ac_ext >&5'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2627 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); };
2641 # cc exists but doesn't like -o.
2642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2652 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2653 echo "$as_me:$LINENO: result: yes" >&5
2654 echo "${ECHO_T}yes" >&6
2656 echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6
2659 cat >>confdefs.h <<\_ACEOF
2660 #define NO_MINUS_C_MINUS_O 1
2665 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2672 echo "$as_me:$LINENO: checking that the C compiler understands volatile" >&5
2673 echo $ECHO_N "checking that the C compiler understands volatile... $ECHO_C" >&6
2674 if test "${samba_cv_volatile+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 #include "confdefs.h"
2681 #include <sys/types.h>
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692 (eval $ac_compile) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); } &&
2696 { ac_try='test -s conftest.$ac_objext'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; }; then
2702 samba_cv_volatile=yes
2704 echo "$as_me: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 samba_cv_volatile=no
2708 rm -f conftest.$ac_objext conftest.$ac_ext
2710 echo "$as_me:$LINENO: result: $samba_cv_volatile" >&5
2711 echo "${ECHO_T}$samba_cv_volatile" >&6
2712 if test x"$samba_cv_volatile" = x"yes"; then
2714 cat >>confdefs.h <<\_ACEOF
2715 #define HAVE_VOLATILE 1
2721 # Make sure we can run config.sub.
2722 $ac_config_sub sun4 >/dev/null 2>&1 ||
2723 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2725 { (exit 1); exit 1; }; }
2727 echo "$as_me:$LINENO: checking build system type" >&5
2728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2729 if test "${ac_cv_build+set}" = set; then
2730 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 ac_cv_build_alias=$build_alias
2733 test -z "$ac_cv_build_alias" &&
2734 ac_cv_build_alias=`$ac_config_guess`
2735 test -z "$ac_cv_build_alias" &&
2736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2738 { (exit 1); exit 1; }; }
2739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2742 { (exit 1); exit 1; }; }
2745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2746 echo "${ECHO_T}$ac_cv_build" >&6
2748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2753 echo "$as_me:$LINENO: checking host system type" >&5
2754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2755 if test "${ac_cv_host+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 ac_cv_host_alias=$host_alias
2759 test -z "$ac_cv_host_alias" &&
2760 ac_cv_host_alias=$ac_cv_build_alias
2761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2764 { (exit 1); exit 1; }; }
2767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2768 echo "${ECHO_T}$ac_cv_host" >&6
2770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2775 echo "$as_me:$LINENO: checking target system type" >&5
2776 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2777 if test "${ac_cv_target+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 ac_cv_target_alias=$target_alias
2781 test "x$ac_cv_target_alias" = "x" &&
2782 ac_cv_target_alias=$ac_cv_host_alias
2783 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2784 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2785 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2786 { (exit 1); exit 1; }; }
2789 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2790 echo "${ECHO_T}$ac_cv_target" >&6
2791 target=$ac_cv_target
2792 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2793 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2794 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2797 # The aliases save the names the user supplied, while $host etc.
2798 # will get canonicalized.
2799 test -n "$target_alias" &&
2800 test "$program_prefix$program_suffix$program_transform_name" = \
2802 program_prefix=${target_alias}-
2805 *irix6*) cat >> confdefs.h <<\EOF
2806 #include <standards.h>
2814 echo "$as_me:$LINENO: checking config.cache system type" >&5
2815 echo $ECHO_N "checking config.cache system type... $ECHO_C" >&6
2816 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
2817 test x"$ac_cv_host_system_type" != x"$host"; } ||
2818 { test x"${ac_cv_build_system_type+set}" = x"set" &&
2819 test x"$ac_cv_build_system_type" != x"$build"; } ||
2820 { test x"${ac_cv_target_system_type+set}" = x"set" &&
2821 test x"$ac_cv_target_system_type" != x"$target"; }; then
2822 echo "$as_me:$LINENO: result: different" >&5
2823 echo "${ECHO_T}different" >&6
2824 { { echo "$as_me:$LINENO: error: \"you must remove config.cache and restart configure\"" >&5
2825 echo "$as_me: error: \"you must remove config.cache and restart configure\"" >&2;}
2826 { (exit 1); exit 1; }; }
2828 echo "$as_me:$LINENO: result: same" >&5
2829 echo "${ECHO_T}same" >&6
2831 ac_cv_host_system_type="$host"
2832 ac_cv_build_system_type="$build"
2833 ac_cv_target_system_type="$target"
2839 # Config CPPFLAG settings for strange OS's that must be set
2840 # before other tests.
2843 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
2846 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -Ae" >&5
2847 echo $ECHO_N "checking whether ${CC-cc} accepts -Ae... $ECHO_C" >&6
2848 if test "${ac_cv_prog_cc_Ae+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 echo 'void f(){}' > conftest.c
2852 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
2853 ac_cv_prog_cc_Ae=yes
2860 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_Ae" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cc_Ae" >&6
2862 # mmap on HPUX is completely broken...
2864 cat >>confdefs.h <<\_ACEOF
2865 #define MMAP_BLACKLIST 1
2868 if test $ac_cv_prog_cc_Ae = yes; then
2869 CPPFLAGS="$CPPFLAGS -Ae"
2872 # Defines needed for HPUX support.
2873 # HPUX has bigcrypt but (sometimes?) doesn't use it for
2874 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
2878 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2880 cat >>confdefs.h <<\_ACEOF
2881 #define USE_BOTH_CRYPT_CALLS 1
2885 cat >>confdefs.h <<\_ACEOF
2886 #define _HPUX_SOURCE 1
2890 cat >>confdefs.h <<\_ACEOF
2891 #define _POSIX_SOURCE 1
2895 cat >>confdefs.h <<\_ACEOF
2896 #define _ALIGNMENT_REQUIRED 1
2900 cat >>confdefs.h <<\_ACEOF
2901 #define _MAX_ALIGNMENT 4
2906 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
2908 cat >>confdefs.h <<\_ACEOF
2909 #define USE_BOTH_CRYPT_CALLS 1
2913 cat >>confdefs.h <<\_ACEOF
2914 #define _HPUX_SOURCE 1
2918 cat >>confdefs.h <<\_ACEOF
2919 #define _POSIX_SOURCE 1
2923 cat >>confdefs.h <<\_ACEOF
2924 #define _LARGEFILE64_SOURCE 1
2928 cat >>confdefs.h <<\_ACEOF
2929 #define _ALIGNMENT_REQUIRED 1
2933 cat >>confdefs.h <<\_ACEOF
2934 #define _MAX_ALIGNMENT 4
2943 # CRAY Unicos has broken const handling
2945 echo "$as_me:$LINENO: result: disabling const" >&5
2946 echo "${ECHO_T}disabling const" >&6
2947 CPPFLAGS="$CPPFLAGS -Dconst="
2951 # AIX4.x doesn't even admit to having large
2952 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
2955 echo "$as_me:$LINENO: result: enabling large file support" >&5
2956 echo "${ECHO_T}enabling large file support" >&6
2957 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
2959 cat >>confdefs.h <<\_ACEOF
2960 #define _LARGE_FILES 1
2965 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
2966 # to the existance of large files..
2967 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
2968 # recommendations on large file support, however it makes the
2969 # compile work using gcc 2.7 and 2.8, whereas using the Sun
2970 # recommendation makes the compile fail on gcc2.7. JRA.
2974 5.0*|5.1*|5.2*|5.3*|5.5*)
2975 echo "$as_me:$LINENO: result: no large file support" >&5
2976 echo "${ECHO_T}no large file support" >&6
2979 echo "$as_me:$LINENO: result: enabling large file support" >&5
2980 echo "${ECHO_T}enabling large file support" >&6
2981 if test "$ac_cv_c_compiler_gnu" = yes; then
2982 ${CC-cc} -v >conftest.c 2>&1
2983 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
2985 case "$ac_cv_gcc_compiler_version_number" in
2986 *"gcc version 2.6"*|*"gcc version 2.7"*)
2987 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
2989 cat >>confdefs.h <<\_ACEOF
2990 #define _LARGEFILE64_SOURCE 1
2995 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2997 cat >>confdefs.h <<\_ACEOF
2998 #define _LARGEFILE64_SOURCE 1
3002 cat >>confdefs.h <<\_ACEOF
3003 #define _FILE_OFFSET_BITS 64
3009 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
3011 cat >>confdefs.h <<\_ACEOF
3012 #define _LARGEFILE64_SOURCE 1
3016 cat >>confdefs.h <<\_ACEOF
3017 #define _FILE_OFFSET_BITS 64
3025 # Tests needed for SINIX large file support.
3028 if test $host = mips-sni-sysv4 ; then
3029 echo "$as_me:$LINENO: checking for LFS support" >&5
3030 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3031 old_CPPFLAGS="$CPPFLAGS"
3032 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3033 if test "$cross_compiling" = yes; then
3034 SINIX_LFS_SUPPORT=cross
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line $LINENO "configure"
3038 #include "confdefs.h"
3042 #if _LFS64_LARGEFILE == 1
3049 rm -f conftest$ac_exeext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3051 (eval $ac_link) 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 SINIX_LFS_SUPPORT=yes
3062 echo "$as_me: program exited with status $ac_status" >&5
3063 echo "$as_me: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 SINIX_LFS_SUPPORT=no
3068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3070 CPPFLAGS="$old_CPPFLAGS"
3071 if test x$SINIX_LFS_SUPPORT = xyes ; then
3072 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
3074 cat >>confdefs.h <<\_ACEOF
3075 #define _LARGEFILE64_SOURCE 1
3078 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
3079 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
3080 LIBS="`getconf LFS64_LIBS` $LIBS"
3082 echo "$as_me:$LINENO: result: $SINIX_LFS_SUPPORT" >&5
3083 echo "${ECHO_T}$SINIX_LFS_SUPPORT" >&6
3087 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
3090 echo "$as_me:$LINENO: checking for LFS support" >&5
3091 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3092 old_CPPFLAGS="$CPPFLAGS"
3093 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3094 if test "$cross_compiling" = yes; then
3095 LINUX_LFS_SUPPORT=cross
3097 cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 #include "confdefs.h"
3102 #include <sys/utsname.h>
3104 #if _LFS64_LARGEFILE == 1
3109 /* Ensure this is glibc 2.2 or higher */
3110 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
3111 int libc_major = __GLIBC__;
3112 int libc_minor = __GLIBC_MINOR__;
3120 /* Ensure this is kernel 2.4 or higher */
3123 release = uts.release;
3124 major = atoi(strsep(&release, "."));
3125 minor = atoi(strsep(&release, "."));
3127 if (major > 2 || (major == 2 && minor > 3))
3136 rm -f conftest$ac_exeext
3137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3138 (eval $ac_link) 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; }; then
3147 LINUX_LFS_SUPPORT=yes
3149 echo "$as_me: program exited with status $ac_status" >&5
3150 echo "$as_me: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
3153 LINUX_LFS_SUPPORT=no
3155 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3157 CPPFLAGS="$old_CPPFLAGS"
3158 if test x$LINUX_LFS_SUPPORT = xyes ; then
3159 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
3161 cat >>confdefs.h <<\_ACEOF
3162 #define _LARGEFILE64_SOURCE 1
3166 cat >>confdefs.h <<\_ACEOF
3167 #define _FILE_OFFSET_BITS 64
3171 cat >>confdefs.h <<\_ACEOF
3172 #define _GNU_SOURCE 1
3176 echo "$as_me:$LINENO: result: $LINUX_LFS_SUPPORT" >&5
3177 echo "${ECHO_T}$LINUX_LFS_SUPPORT" >&6
3181 echo "$as_me:$LINENO: checking for LFS support" >&5
3182 echo $ECHO_N "checking for LFS support... $ECHO_C" >&6
3183 old_CPPFLAGS="$CPPFLAGS"
3184 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3185 if test "$cross_compiling" = yes; then
3186 GLIBC_LFS_SUPPORT=cross
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line $LINENO "configure"
3190 #include "confdefs.h"
3194 #if _LFS64_LARGEFILE == 1
3201 rm -f conftest$ac_exeext
3202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3203 (eval $ac_link) 2>&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
3212 GLIBC_LFS_SUPPORT=yes
3214 echo "$as_me: program exited with status $ac_status" >&5
3215 echo "$as_me: failed program was:" >&5
3216 cat conftest.$ac_ext >&5
3218 GLIBC_LFS_SUPPORT=no
3220 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3222 CPPFLAGS="$old_CPPFLAGS"
3223 if test x$GLIBC_LFS_SUPPORT = xyes ; then
3224 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _LARGEFILE64_SOURCE 1
3231 cat >>confdefs.h <<\_ACEOF
3232 #define _GNU_SOURCE 1
3236 echo "$as_me:$LINENO: result: $GLIBC_LFS_SUPPORT" >&5
3237 echo "${ECHO_T}$GLIBC_LFS_SUPPORT" >&6
3242 echo "$as_me:$LINENO: checking for inline" >&5
3243 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3244 if test "${ac_cv_c_inline+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 for ac_kw in inline __inline__ __inline; do
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 #include "confdefs.h"
3254 static $ac_kw foo_t static_foo () {return 0; }
3255 $ac_kw foo_t foo () {return 0; }
3259 rm -f conftest.$ac_objext
3260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3261 (eval $ac_compile) 2>&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -s conftest.$ac_objext'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; }; then
3271 ac_cv_c_inline=$ac_kw; break
3273 echo "$as_me: failed program was:" >&5
3274 cat conftest.$ac_ext >&5
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3281 echo "${ECHO_T}$ac_cv_c_inline" >&6
3282 case $ac_cv_c_inline in
3285 cat >>confdefs.h <<\_ACEOF
3289 *) cat >>confdefs.h <<_ACEOF
3290 #define inline $ac_cv_c_inline
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3306 if test -z "$CPP"; then
3307 if test "${ac_cv_prog_CPP+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 # Double quotes because CPP needs to be expanded
3311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3314 for ac_c_preproc_warn_flag in '' yes
3316 # Use a header file that comes with gcc, so configuring glibc
3317 # with a fresh cross-compiler works.
3318 # On the NeXT, cc -E runs the code through the compiler's parser,
3319 # not just through cpp. "Syntax error" is here to catch this case.
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 #include "confdefs.h"
3326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3329 grep -v '^ *+' conftest.er1 >conftest.err
3331 cat conftest.err >&5
3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 (exit $ac_status); } >/dev/null; then
3334 if test -s conftest.err; then
3335 ac_cpp_err=$ac_c_preproc_warn_flag
3342 if test -z "$ac_cpp_err"; then
3345 echo "$as_me: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3347 # Broken: fails on valid input.
3350 rm -f conftest.err conftest.$ac_ext
3352 # OK, works on sane cases. Now check whether non-existent headers
3353 # can be detected and how.
3354 cat >conftest.$ac_ext <<_ACEOF
3355 #line $LINENO "configure"
3356 #include "confdefs.h"
3357 #include <ac_nonexistent.h>
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3375 if test -z "$ac_cpp_err"; then
3376 # Broken: success on invalid input.
3379 echo "$as_me: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3381 # Passes both tests.
3385 rm -f conftest.err conftest.$ac_ext
3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3389 rm -f conftest.err conftest.$ac_ext
3390 if $ac_preproc_ok; then
3402 echo "$as_me:$LINENO: result: $CPP" >&5
3403 echo "${ECHO_T}$CPP" >&6
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 #include "confdefs.h"
3417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } >/dev/null; then
3425 if test -s conftest.err; then
3426 ac_cpp_err=$ac_c_preproc_warn_flag
3433 if test -z "$ac_cpp_err"; then
3436 echo "$as_me: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3438 # Broken: fails on valid input.
3441 rm -f conftest.err conftest.$ac_ext
3443 # OK, works on sane cases. Now check whether non-existent headers
3444 # can be detected and how.
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 #include "confdefs.h"
3448 #include <ac_nonexistent.h>
3450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null; then
3458 if test -s conftest.err; then
3459 ac_cpp_err=$ac_c_preproc_warn_flag
3466 if test -z "$ac_cpp_err"; then
3467 # Broken: success on invalid input.
3470 echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 # Passes both tests.
3476 rm -f conftest.err conftest.$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3484 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3486 { (exit 1); exit 1; }; }
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 echo "$as_me:$LINENO: checking for egrep" >&5
3497 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3498 if test "${ac_cv_prog_egrep+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3502 then ac_cv_prog_egrep='grep -E'
3503 else ac_cv_prog_egrep='egrep'
3506 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3507 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3508 EGREP=$ac_cv_prog_egrep
3511 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3512 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3513 if test "${ac_cv_header_stdc+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 #include "confdefs.h"
3525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null; then
3533 if test -s conftest.err; then
3534 ac_cpp_err=$ac_c_preproc_warn_flag
3541 if test -z "$ac_cpp_err"; then
3542 ac_cv_header_stdc=yes
3544 echo "$as_me: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 ac_cv_header_stdc=no
3548 rm -f conftest.err conftest.$ac_ext
3550 if test $ac_cv_header_stdc = yes; then
3551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3552 cat >conftest.$ac_ext <<_ACEOF
3553 #line $LINENO "configure"
3554 #include "confdefs.h"
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "memchr" >/dev/null 2>&1; then
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3571 #line $LINENO "configure"
3572 #include "confdefs.h"
3576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3577 $EGREP "free" >/dev/null 2>&1; then
3580 ac_cv_header_stdc=no
3586 if test $ac_cv_header_stdc = yes; then
3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3588 if test "$cross_compiling" = yes; then
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line $LINENO "configure"
3593 #include "confdefs.h"
3595 #if ((' ' & 0x0FF) == 0x020)
3596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3597 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3600 || ('j' <= (c) && (c) <= 'r') \
3601 || ('s' <= (c) && (c) <= 'z'))
3602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3610 for (i = 0; i < 256; i++)
3611 if (XOR (islower (i), ISLOWER (i))
3612 || toupper (i) != TOUPPER (i))
3617 rm -f conftest$ac_exeext
3618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619 (eval $ac_link) 2>&5
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3630 echo "$as_me: program exited with status $ac_status" >&5
3631 echo "$as_me: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3634 ac_cv_header_stdc=no
3636 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3641 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3642 if test $ac_cv_header_stdc = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define STDC_HEADERS 1
3656 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3657 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3658 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3659 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3664 #line $LINENO "configure"
3665 #include "confdefs.h"
3666 #include <sys/types.h>
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680 (eval $ac_compile) 2>&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } &&
3684 { ac_try='test -s conftest.$ac_objext'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; }; then
3690 eval "$as_ac_Header=yes"
3692 echo "$as_me: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 eval "$as_ac_Header=no"
3696 rm -f conftest.$ac_objext conftest.$ac_ext
3698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3701 cat >>confdefs.h <<_ACEOF
3702 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3705 ac_header_dirent=$ac_hdr; break
3709 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3710 if test $ac_header_dirent = dirent.h; then
3711 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3712 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3713 if test "${ac_cv_search_opendir+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 ac_func_search_save_LIBS=$LIBS
3717 ac_cv_search_opendir=no
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line $LINENO "configure"
3720 #include "confdefs.h"
3722 /* Override any gcc2 internal prototype to avoid an error. */
3726 /* We use char because int might match the return type of a gcc2
3727 builtin and then its argument prototype would still apply. */
3737 rm -f conftest.$ac_objext conftest$ac_exeext
3738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739 (eval $ac_link) 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 { ac_try='test -s conftest$ac_exeext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
3749 ac_cv_search_opendir="none required"
3751 echo "$as_me: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755 if test "$ac_cv_search_opendir" = no; then
3756 for ac_lib in dir; do
3757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3760 #include "confdefs.h"
3762 /* Override any gcc2 internal prototype to avoid an error. */
3766 /* We use char because int might match the return type of a gcc2
3767 builtin and then its argument prototype would still apply. */
3777 rm -f conftest.$ac_objext conftest$ac_exeext
3778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3779 (eval $ac_link) 2>&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); } &&
3783 { ac_try='test -s conftest$ac_exeext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_search_opendir="-l$ac_lib"
3792 echo "$as_me: failed program was:" >&5
3793 cat conftest.$ac_ext >&5
3795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798 LIBS=$ac_func_search_save_LIBS
3800 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3801 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3802 if test "$ac_cv_search_opendir" != no; then
3803 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3808 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3809 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3810 if test "${ac_cv_search_opendir+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 ac_func_search_save_LIBS=$LIBS
3814 ac_cv_search_opendir=no
3815 cat >conftest.$ac_ext <<_ACEOF
3816 #line $LINENO "configure"
3817 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3823 /* We use char because int might match the return type of a gcc2
3824 builtin and then its argument prototype would still apply. */
3834 rm -f conftest.$ac_objext conftest$ac_exeext
3835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3836 (eval $ac_link) 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -s conftest$ac_exeext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3846 ac_cv_search_opendir="none required"
3848 echo "$as_me: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3852 if test "$ac_cv_search_opendir" = no; then
3854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3855 cat >conftest.$ac_ext <<_ACEOF
3856 #line $LINENO "configure"
3857 #include "confdefs.h"
3859 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */