3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
24 --with-smbwrapper Include SMB wrapper support (default=no) "
26 --with-afs Include AFS clear-text auth support (default=no) "
28 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
30 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
32 --with-automount Include AUTOMOUNT support (default=no)"
34 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
36 --with-pam Include PAM support (default=no)"
38 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
40 --with-tdbsam Include experimental TDB SAM support (default=no)"
42 --with-ldapsam Include experimental LDAP SAM support (default=no)"
44 --with-nisplussam Include NISPLUS SAM support (default=no)"
46 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
48 --with-ssl Include SSL support (default=no)
49 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
50 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
52 --with-syslog Include experimental SYSLOG support (default=no)"
54 --with-profiling-data Include gathering source code profile information (default=no)"
56 --with-quotas Include experimental disk-quota support (default=no)"
58 --with-utmp Include experimental utmp accounting (default=no)"
60 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
62 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
64 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
66 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
68 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
70 --with-acl-support Include ACL support (default=no)"
72 --with-winbind Build winbind (default, if supported by OS)"
74 --with-included-popt use bundled popt library, not from system"
76 # Initialize some variables set by options.
77 # The variables have the same names as the options, with
78 # dashes changed to underlines.
80 cache_file=./config.cache
89 program_transform_name=s,x,x,
97 bindir='${exec_prefix}/bin'
98 sbindir='${exec_prefix}/sbin'
99 libexecdir='${exec_prefix}/libexec'
100 datadir='${prefix}/share'
101 sysconfdir='${prefix}/etc'
102 sharedstatedir='${prefix}/com'
103 localstatedir='${prefix}/var'
104 libdir='${exec_prefix}/lib'
105 includedir='${prefix}/include'
106 oldincludedir='/usr/include'
107 infodir='${prefix}/info'
108 mandir='${prefix}/man'
110 # Initialize some other variables.
113 SHELL=${CONFIG_SHELL-/bin/sh}
114 # Maximum number of lines to put in a shell here document.
121 # If the previous option needs an argument, assign it.
122 if test -n "$ac_prev"; then
123 eval "$ac_prev=\$ac_option"
129 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
133 # Accept the important Cygnus configure options, so we can diagnose typos.
137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
140 bindir="$ac_optarg" ;;
142 -build | --build | --buil | --bui | --bu)
144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
145 build="$ac_optarg" ;;
147 -cache-file | --cache-file | --cache-fil | --cache-fi \
148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
149 ac_prev=cache_file ;;
150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
152 cache_file="$ac_optarg" ;;
154 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
156 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
158 datadir="$ac_optarg" ;;
160 -disable-* | --disable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
167 eval "enable_${ac_feature}=no" ;;
169 -enable-* | --enable-*)
170 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
171 # Reject names that are not valid shell variable names.
172 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
173 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
175 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}='$ac_optarg'" ;;
182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
184 | --exec | --exe | --ex)
185 ac_prev=exec_prefix ;;
186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
188 | --exec=* | --exe=* | --ex=*)
189 exec_prefix="$ac_optarg" ;;
191 -gas | --gas | --ga | --g)
192 # Obsolete; use --with-gas.
195 -help | --help | --hel | --he)
196 # Omit some internal or obsolete options to make the list less imposing.
197 # This message is too long to be a string in the A/UX 3.1 sh.
199 Usage: configure [options] [host]
200 Options: [defaults in brackets after descriptions]
202 --cache-file=FILE cache test results in FILE
203 --help print this message
204 --no-create do not create output files
205 --quiet, --silent do not print \`checking...' messages
206 --version print the version of autoconf that created configure
207 Directory and file names:
208 --prefix=PREFIX install architecture-independent files in PREFIX
210 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
212 --bindir=DIR user executables in DIR [EPREFIX/bin]
213 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
214 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
215 --datadir=DIR read-only architecture-independent data in DIR
217 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
218 --sharedstatedir=DIR modifiable architecture-independent data in DIR
220 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
221 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
222 --includedir=DIR C header files in DIR [PREFIX/include]
223 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
224 --infodir=DIR info documentation in DIR [PREFIX/info]
225 --mandir=DIR man documentation in DIR [PREFIX/man]
226 --srcdir=DIR find the sources in DIR [configure dir or ..]
227 --program-prefix=PREFIX prepend PREFIX to installed program names
228 --program-suffix=SUFFIX append SUFFIX to installed program names
229 --program-transform-name=PROGRAM
230 run sed PROGRAM on installed program names
234 --build=BUILD configure for building on BUILD [BUILD=HOST]
235 --host=HOST configure for HOST [guessed]
236 --target=TARGET configure for TARGET [TARGET=HOST]
237 Features and packages:
238 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
239 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
240 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
241 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
242 --x-includes=DIR X include files are in DIR
243 --x-libraries=DIR X library files are in DIR
245 if test -n "$ac_help"; then
246 echo "--enable and --with options recognized:$ac_help"
250 -host | --host | --hos | --ho)
252 -host=* | --host=* | --hos=* | --ho=*)
255 -includedir | --includedir | --includedi | --included | --include \
256 | --includ | --inclu | --incl | --inc)
257 ac_prev=includedir ;;
258 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
259 | --includ=* | --inclu=* | --incl=* | --inc=*)
260 includedir="$ac_optarg" ;;
262 -infodir | --infodir | --infodi | --infod | --info | --inf)
264 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
265 infodir="$ac_optarg" ;;
267 -libdir | --libdir | --libdi | --libd)
269 -libdir=* | --libdir=* | --libdi=* | --libd=*)
270 libdir="$ac_optarg" ;;
272 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
273 | --libexe | --libex | --libe)
274 ac_prev=libexecdir ;;
275 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
276 | --libexe=* | --libex=* | --libe=*)
277 libexecdir="$ac_optarg" ;;
279 -localstatedir | --localstatedir | --localstatedi | --localstated \
280 | --localstate | --localstat | --localsta | --localst \
281 | --locals | --local | --loca | --loc | --lo)
282 ac_prev=localstatedir ;;
283 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
284 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
285 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
286 localstatedir="$ac_optarg" ;;
288 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
290 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 mandir="$ac_optarg" ;;
294 # Obsolete; use --without-fp.
297 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
301 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
302 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
305 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
306 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
307 | --oldin | --oldi | --old | --ol | --o)
308 ac_prev=oldincludedir ;;
309 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
310 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
311 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
312 oldincludedir="$ac_optarg" ;;
314 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
316 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
317 prefix="$ac_optarg" ;;
319 -program-prefix | --program-prefix | --program-prefi | --program-pref \
320 | --program-pre | --program-pr | --program-p)
321 ac_prev=program_prefix ;;
322 -program-prefix=* | --program-prefix=* | --program-prefi=* \
323 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
324 program_prefix="$ac_optarg" ;;
326 -program-suffix | --program-suffix | --program-suffi | --program-suff \
327 | --program-suf | --program-su | --program-s)
328 ac_prev=program_suffix ;;
329 -program-suffix=* | --program-suffix=* | --program-suffi=* \
330 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
331 program_suffix="$ac_optarg" ;;
333 -program-transform-name | --program-transform-name \
334 | --program-transform-nam | --program-transform-na \
335 | --program-transform-n | --program-transform- \
336 | --program-transform | --program-transfor \
337 | --program-transfo | --program-transf \
338 | --program-trans | --program-tran \
339 | --progr-tra | --program-tr | --program-t)
340 ac_prev=program_transform_name ;;
341 -program-transform-name=* | --program-transform-name=* \
342 | --program-transform-nam=* | --program-transform-na=* \
343 | --program-transform-n=* | --program-transform-=* \
344 | --program-transform=* | --program-transfor=* \
345 | --program-transfo=* | --program-transf=* \
346 | --program-trans=* | --program-tran=* \
347 | --progr-tra=* | --program-tr=* | --program-t=*)
348 program_transform_name="$ac_optarg" ;;
350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
351 | -silent | --silent | --silen | --sile | --sil)
354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
358 sbindir="$ac_optarg" ;;
360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
362 | --sharedst | --shareds | --shared | --share | --shar \
364 ac_prev=sharedstatedir ;;
365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
369 sharedstatedir="$ac_optarg" ;;
371 -site | --site | --sit)
373 -site=* | --site=* | --sit=*)
376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
379 srcdir="$ac_optarg" ;;
381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
382 | --syscon | --sysco | --sysc | --sys | --sy)
383 ac_prev=sysconfdir ;;
384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
386 sysconfdir="$ac_optarg" ;;
388 -target | --target | --targe | --targ | --tar | --ta | --t)
390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
391 target="$ac_optarg" ;;
393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
396 -version | --version | --versio | --versi | --vers)
397 echo "configure generated by autoconf version 2.13"
401 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
402 # Reject names that are not valid shell variable names.
403 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
404 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
406 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}='$ac_optarg'" ;;
413 -without-* | --without-*)
414 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
420 eval "with_${ac_package}=no" ;;
423 # Obsolete; use --with-x.
426 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
427 | --x-incl | --x-inc | --x-in | --x-i)
428 ac_prev=x_includes ;;
429 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
430 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
431 x_includes="$ac_optarg" ;;
433 -x-libraries | --x-libraries | --x-librarie | --x-librari \
434 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
435 ac_prev=x_libraries ;;
436 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
437 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
438 x_libraries="$ac_optarg" ;;
440 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
444 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
445 echo "configure: warning: $ac_option: invalid host type" 1>&2
447 if test "x$nonopt" != xNONE; then
448 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
456 if test -n "$ac_prev"; then
457 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
460 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
462 # File descriptor usage:
465 # 2 errors and warnings
466 # 3 some systems may open it to /dev/tty
467 # 4 used on the Kubota Titan
468 # 6 checking for... messages and results
469 # 5 compiler messages saved in config.log
470 if test "$silent" = yes; then
478 This file contains any messages produced by compilers while
479 running configure, to aid debugging if configure makes a mistake.
482 # Strip out --no-create and --no-recursion so they do not pile up.
483 # Also quote any args containing shell metacharacters.
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c) ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
492 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
493 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
494 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
499 # Only set these to C if already set. These must not be set unconditionally
500 # because not all systems understand e.g. LANG=C (notably SCO).
501 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
502 # Non-C LC_CTYPE values break the ctype check.
503 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
504 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
505 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
506 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
509 rm -rf conftest* confdefs.h
510 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
513 # A filename unique to this package, relative to the directory that
514 # configure is in, which we can look for to find out if srcdir is correct.
515 ac_unique_file=include/includes.h
517 # Find the source files, if location was not specified.
518 if test -z "$srcdir"; then
519 ac_srcdir_defaulted=yes
520 # Try the directory containing this script, then its parent.
522 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
523 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
525 if test ! -r $srcdir/$ac_unique_file; then
529 ac_srcdir_defaulted=no
531 if test ! -r $srcdir/$ac_unique_file; then
532 if test "$ac_srcdir_defaulted" = yes; then
533 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
535 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
538 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
540 # Prefer explicitly selected file to automatically selected ones.
541 if test -z "$CONFIG_SITE"; then
542 if test "x$prefix" != xNONE; then
543 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
545 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
548 for ac_site_file in $CONFIG_SITE; do
549 if test -r "$ac_site_file"; then
550 echo "loading site script $ac_site_file"
555 if test -r "$cache_file"; then
556 echo "loading cache $cache_file"
559 echo "creating cache $cache_file"
564 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
565 ac_cpp='$CPP $CPPFLAGS'
566 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
567 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
568 cross_compiling=$ac_cv_prog_cc_cross
572 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
573 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
574 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
581 ac_n= ac_c='\c' ac_t=
586 # we want to be compatibe with older versions of Samba
604 # compile with optimisation and without debugging by default
605 CFLAGS="-O ${CFLAGS}"
607 # Check whether --enable-debug or --disable-debug was given.
608 if test "${enable_debug+set}" = set; then
609 enableval="$enable_debug"
610 if eval "test x$enable_debug = xyes"; then
611 CFLAGS="${CFLAGS} -g"
616 # Check whether --enable-developer or --disable-developer was given.
617 if test "${enable_developer+set}" = set; then
618 enableval="$enable_developer"
619 if eval "test x$enable_developer = xyes"; then
620 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
625 # Extract the first word of "gcc", so it can be a program name with args.
626 set dummy gcc; ac_word=$2
627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
628 echo "configure:629: checking for $ac_word" >&5
629 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
630 echo $ac_n "(cached) $ac_c" 1>&6
632 if test -n "$CC"; then
633 ac_cv_prog_CC="$CC" # Let the user override the test.
635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
637 for ac_dir in $ac_dummy; do
638 test -z "$ac_dir" && ac_dir=.
639 if test -f $ac_dir/$ac_word; then
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 if test -z "$CC"; then
655 # Extract the first word of "cc", so it can be a program name with args.
656 set dummy cc; ac_word=$2
657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
658 echo "configure:659: checking for $ac_word" >&5
659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 if test -n "$CC"; then
663 ac_cv_prog_CC="$CC" # Let the user override the test.
665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
668 for ac_dir in $ac_dummy; do
669 test -z "$ac_dir" && ac_dir=.
670 if test -f $ac_dir/$ac_word; then
671 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
680 if test $ac_prog_rejected = yes; then
681 # We found a bogon in the path, so make sure we never use it.
682 set dummy $ac_cv_prog_CC
684 if test $# -gt 0; then
685 # We chose a different compiler from the bogus one.
686 # However, it has the same basename, so the bogon will be chosen
687 # first if we set CC to just the basename; use the full file name.
689 set dummy "$ac_dir/$ac_word" "$@"
697 if test -n "$CC"; then
698 echo "$ac_t""$CC" 1>&6
700 echo "$ac_t""no" 1>&6
703 if test -z "$CC"; then
706 # Extract the first word of "cl", so it can be a program name with args.
707 set dummy cl; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
718 for ac_dir in $ac_dummy; do
719 test -z "$ac_dir" && ac_dir=.
720 if test -f $ac_dir/$ac_word; then
729 if test -n "$CC"; then
730 echo "$ac_t""$CC" 1>&6
732 echo "$ac_t""no" 1>&6
737 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
740 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
741 echo "configure:742: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
744 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
745 ac_cpp='$CPP $CPPFLAGS'
746 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
747 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
748 cross_compiling=$ac_cv_prog_cc_cross
750 cat > conftest.$ac_ext << EOF
752 #line 753 "configure"
753 #include "confdefs.h"
757 if { (eval echo configure:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
758 ac_cv_prog_cc_works=yes
759 # If we can't run a trivial program, we are probably using a cross compiler.
760 if (./conftest; exit) 2>/dev/null; then
761 ac_cv_prog_cc_cross=no
763 ac_cv_prog_cc_cross=yes
766 echo "configure: failed program was:" >&5
767 cat conftest.$ac_ext >&5
768 ac_cv_prog_cc_works=no
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp='$CPP $CPPFLAGS'
774 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling=$ac_cv_prog_cc_cross
778 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
779 if test $ac_cv_prog_cc_works = no; then
780 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
782 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
783 echo "configure:784: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
784 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
785 cross_compiling=$ac_cv_prog_cc_cross
787 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
788 echo "configure:789: checking whether we are using GNU C" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftest.c <<EOF
797 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
804 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
806 if test $ac_cv_prog_gcc = yes; then
812 ac_test_CFLAGS="${CFLAGS+set}"
813 ac_save_CFLAGS="$CFLAGS"
815 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
816 echo "configure:817: checking whether ${CC-cc} accepts -g" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 echo 'void f(){}' > conftest.c
821 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
830 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
831 if test "$ac_test_CFLAGS" = set; then
832 CFLAGS="$ac_save_CFLAGS"
833 elif test $ac_cv_prog_cc_g = yes; then
834 if test "$GCC" = yes; then
840 if test "$GCC" = yes; then
848 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
849 if test -f $ac_dir/install-sh; then
851 ac_install_sh="$ac_aux_dir/install-sh -c"
853 elif test -f $ac_dir/install.sh; then
855 ac_install_sh="$ac_aux_dir/install.sh -c"
859 if test -z "$ac_aux_dir"; then
860 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
862 ac_config_guess=$ac_aux_dir/config.guess
863 ac_config_sub=$ac_aux_dir/config.sub
864 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
866 # Find a good install program. We prefer a C program (faster),
867 # so one script is as good as another. But avoid the broken or
868 # incompatible versions:
869 # SysV /etc/install, /usr/sbin/install
870 # SunOS /usr/etc/install
873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
876 # ./install, which can be erroneously created by make from ./install.sh.
877 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
878 echo "configure:879: checking for a BSD compatible install" >&5
879 if test -z "$INSTALL"; then
880 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
881 echo $ac_n "(cached) $ac_c" 1>&6
883 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
884 for ac_dir in $PATH; do
885 # Account for people who put trailing slashes in PATH elements.
887 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
889 # OSF1 and SCO ODT 3.0 have their own names for install.
890 # Don't use installbsd from OSF since it installs stuff as root
892 for ac_prog in ginstall scoinst install; do
893 if test -f $ac_dir/$ac_prog; then
894 if test $ac_prog = install &&
895 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
896 # AIX install. It has an incompatible calling convention.
899 ac_cv_path_install="$ac_dir/$ac_prog -c"
910 if test "${ac_cv_path_install+set}" = set; then
911 INSTALL="$ac_cv_path_install"
913 # As a last resort, use the slow shell script. We don't cache a
914 # path for INSTALL within a source directory, because that will
915 # break other packages using the cache if that directory is
916 # removed, or if the path is relative.
917 INSTALL="$ac_install_sh"
920 echo "$ac_t""$INSTALL" 1>&6
922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
923 # It thinks the first close brace ends the variable substitution.
924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
930 for ac_prog in gawk mawk nawk awk
932 # Extract the first word of "$ac_prog", so it can be a program name with args.
933 set dummy $ac_prog; ac_word=$2
934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
935 echo "configure:936: checking for $ac_word" >&5
936 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
937 echo $ac_n "(cached) $ac_c" 1>&6
939 if test -n "$AWK"; then
940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 ac_cv_prog_AWK="$ac_prog"
954 AWK="$ac_cv_prog_AWK"
955 if test -n "$AWK"; then
956 echo "$ac_t""$AWK" 1>&6
958 echo "$ac_t""no" 1>&6
961 test -n "$AWK" && break
965 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
966 echo "configure:967: checking for POSIXized ISC" >&5
967 if test -d /etc/conf/kconfig.d &&
968 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
970 echo "$ac_t""yes" 1>&6
971 ISC=yes # If later tests want to check for ISC.
972 cat >> confdefs.h <<\EOF
973 #define _POSIX_SOURCE 1
976 if test "$GCC" = yes; then
982 echo "$ac_t""no" 1>&6
987 if test "x$CC" != xcc; then
988 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
989 echo "configure:990: checking whether $CC and cc understand -c and -o together" >&5
991 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
992 echo "configure:993: checking whether cc understands -c and -o together" >&5
994 set dummy $CC; ac_cc="`echo $2 |
995 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 echo 'foo(){}' > conftest.c
1000 # Make sure it works both with $CC and with simple cc.
1001 # We do the test twice because some compilers refuse to overwrite an
1002 # existing .o file with -o, though they will create one.
1003 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1004 if { (eval echo configure:1005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1005 test -f conftest.o && { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1007 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1008 if test "x$CC" != xcc; then
1009 # Test first that cc exists at all.
1010 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1011 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1012 if { (eval echo configure:1013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1013 test -f conftest.o && { (eval echo configure:1014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1018 # cc exists but doesn't like -o.
1019 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1029 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1030 echo "$ac_t""yes" 1>&6
1032 echo "$ac_t""no" 1>&6
1033 cat >> confdefs.h <<\EOF
1034 #define NO_MINUS_C_MINUS_O 1
1039 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1046 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1047 echo "configure:1048: checking that the C compiler understands volatile" >&5
1048 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1052 cat > conftest.$ac_ext <<EOF
1053 #line 1054 "configure"
1054 #include "confdefs.h"
1055 #include <sys/types.h>
1060 if { (eval echo configure:1061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1062 samba_cv_volatile=yes
1064 echo "configure: failed program was:" >&5
1065 cat conftest.$ac_ext >&5
1067 samba_cv_volatile=no
1072 echo "$ac_t""$samba_cv_volatile" 1>&6
1073 if test x"$samba_cv_volatile" = x"yes"; then
1074 cat >> confdefs.h <<\EOF
1075 #define HAVE_VOLATILE 1
1082 # Do some error checking and defaulting for the host and target type.
1084 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1087 # 1. You are not allowed to specify --host, --target, and nonopt at the
1089 # 2. Host defaults to nonopt.
1090 # 3. If nonopt is not specified, then host defaults to the current host,
1091 # as determined by config.guess.
1092 # 4. Target and build default to nonopt.
1093 # 5. If nonopt is not specified, then target and build default to host.
1095 # The aliases save the names the user supplied, while $host etc.
1096 # will get canonicalized.
1097 case $host---$target---$nonopt in
1098 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1099 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1103 # Make sure we can run config.sub.
1104 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1105 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1108 echo $ac_n "checking host system type""... $ac_c" 1>&6
1109 echo "configure:1110: checking host system type" >&5
1112 case "$host_alias" in
1116 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1117 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1119 *) host_alias=$nonopt ;;
1123 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1124 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1125 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1126 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1127 echo "$ac_t""$host" 1>&6
1129 echo $ac_n "checking target system type""... $ac_c" 1>&6
1130 echo "configure:1131: checking target system type" >&5
1132 target_alias=$target
1133 case "$target_alias" in
1136 NONE) target_alias=$host_alias ;;
1137 *) target_alias=$nonopt ;;
1141 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1142 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1143 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1144 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 echo "$ac_t""$target" 1>&6
1147 echo $ac_n "checking build system type""... $ac_c" 1>&6
1148 echo "configure:1149: checking build system type" >&5
1151 case "$build_alias" in
1154 NONE) build_alias=$host_alias ;;
1155 *) build_alias=$nonopt ;;
1159 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1160 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1161 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1162 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1163 echo "$ac_t""$build" 1>&6
1165 test "$host_alias" != "$target_alias" &&
1166 test "$program_prefix$program_suffix$program_transform_name" = \
1168 program_prefix=${target_alias}-
1172 *irix6*) cat >> confdefs.h <<\EOF
1173 #include <standards.h>
1181 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1182 echo "configure:1183: checking config.cache system type" >&5
1183 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1184 test x"$ac_cv_host_system_type" != x"$host"; } ||
1185 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1186 test x"$ac_cv_build_system_type" != x"$build"; } ||
1187 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1188 test x"$ac_cv_target_system_type" != x"$target"; }; then
1189 echo "$ac_t""different" 1>&6
1190 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1192 echo "$ac_t""same" 1>&6
1194 ac_cv_host_system_type="$host"
1195 ac_cv_build_system_type="$build"
1196 ac_cv_target_system_type="$target"
1200 # Config CPPFLAG settings for strange OS's that must be set
1201 # before other tests.
1204 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1206 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1207 echo "configure:1208: checking whether ${CC-cc} accepts -Ae" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 echo 'void f(){}' > conftest.c
1212 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1213 ac_cv_prog_cc_Ae=yes
1221 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1222 # mmap on HPUX is completely broken...
1223 cat >> confdefs.h <<\EOF
1224 #define MMAP_BLACKLIST 1
1227 if test $ac_cv_prog_cc_Ae = yes; then
1228 CPPFLAGS="$CPPFLAGS -Ae"
1231 # Defines needed for HPUX support.
1232 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1233 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1237 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1238 cat >> confdefs.h <<\EOF
1239 #define USE_BOTH_CRYPT_CALLS 1
1244 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1245 cat >> confdefs.h <<\EOF
1246 #define USE_BOTH_CRYPT_CALLS 1
1253 # AIX4.x doesn't even admit to having large
1254 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1257 echo "$ac_t""enabling large file support" 1>&6
1258 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1261 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1262 # to the existance of large files..
1263 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1264 # recommendations on large file support, however it makes the
1265 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1266 # recommendation makes the compile fail on gcc2.7. JRA.
1270 5.0*|5.1*|5.2*|5.3*|5.5*)
1271 echo "$ac_t""no large file support" 1>&6
1274 echo "$ac_t""enabling large file support" 1>&6
1275 if test "$ac_cv_prog_gcc" = yes; then
1276 ${CC-cc} -v >conftest.c 2>&1
1277 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1279 case "$ac_cv_gcc_compiler_version_number" in
1280 *"gcc version 2.6"*|*"gcc version 2.7"*)
1281 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1284 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1288 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1294 # Tests needed for SINIX large file support.
1297 if test $host = mips-sni-sysv4 ; then
1298 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1299 echo "configure:1300: checking for LFS support" >&5
1300 old_CPPFLAGS="$CPPFLAGS"
1301 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1302 if test "$cross_compiling" = yes; then
1303 SINIX_LFS_SUPPORT=cross
1305 cat > conftest.$ac_ext <<EOF
1306 #line 1307 "configure"
1307 #include "confdefs.h"
1311 #if _LFS64_LARGEFILE == 1
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1320 SINIX_LFS_SUPPORT=yes
1322 echo "configure: failed program was:" >&5
1323 cat conftest.$ac_ext >&5
1325 SINIX_LFS_SUPPORT=no
1330 CPPFLAGS="$old_CPPFLAGS"
1331 if test x$SINIX_LFS_SUPPORT = xyes ; then
1332 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1333 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1334 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1335 LIBS="`getconf LFS64_LIBS` $LIBS"
1337 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1341 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1344 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1345 echo "configure:1346: checking for LFS support" >&5
1346 old_CPPFLAGS="$CPPFLAGS"
1347 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1348 if test "$cross_compiling" = yes; then
1349 LINUX_LFS_SUPPORT=cross
1351 cat > conftest.$ac_ext <<EOF
1352 #line 1353 "configure"
1353 #include "confdefs.h"
1356 #include <sys/utsname.h>
1358 #if _LFS64_LARGEFILE == 1
1363 /* Ensure this is glibc 2.2 or higher */
1364 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1365 int libc_major = __GLIBC__;
1366 int libc_minor = __GLIBC_MINOR__;
1374 /* Ensure this is kernel 2.4 or higher */
1377 release = uts.release;
1378 major = atoi(strsep(&release, "."));
1379 minor = atoi(strsep(&release, "."));
1381 if (major > 2 || (major == 2 && minor > 3))
1390 if { (eval echo configure:1391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1392 LINUX_LFS_SUPPORT=yes
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1397 LINUX_LFS_SUPPORT=no
1402 CPPFLAGS="$old_CPPFLAGS"
1403 if test x$LINUX_LFS_SUPPORT = xyes ; then
1404 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1406 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1410 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1411 echo "configure:1412: checking for LFS support" >&5
1412 old_CPPFLAGS="$CPPFLAGS"
1413 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1414 if test "$cross_compiling" = yes; then
1415 GLIBC_LFS_SUPPORT=cross
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1423 #if _LFS64_LARGEFILE == 1
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1432 GLIBC_LFS_SUPPORT=yes
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 GLIBC_LFS_SUPPORT=no
1442 CPPFLAGS="$old_CPPFLAGS"
1443 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1444 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1446 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1451 echo $ac_n "checking for inline""... $ac_c" 1>&6
1452 echo "configure:1453: checking for inline" >&5
1453 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1457 for ac_kw in inline __inline__ __inline; do
1458 cat > conftest.$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1466 if { (eval echo configure:1467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1468 ac_cv_c_inline=$ac_kw; break
1470 echo "configure: failed program was:" >&5
1471 cat conftest.$ac_ext >&5
1478 echo "$ac_t""$ac_cv_c_inline" 1>&6
1479 case "$ac_cv_c_inline" in
1481 no) cat >> confdefs.h <<\EOF
1485 *) cat >> confdefs.h <<EOF
1486 #define inline $ac_cv_c_inline
1491 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1492 echo "configure:1493: checking how to run the C preprocessor" >&5
1493 # On Suns, sometimes $CPP names a directory.
1494 if test -n "$CPP" && test -d "$CPP"; then
1497 if test -z "$CPP"; then
1498 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 # This must be in double quotes, not single quotes, because CPP may get
1502 # substituted into the Makefile and "${CC-cc}" will confuse make.
1504 # On the NeXT, cc -E runs the code through the compiler's parser,
1505 # not just through cpp.
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1522 CPP="${CC-cc} -E -traditional-cpp"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1539 CPP="${CC-cc} -nologo -E"
1540 cat > conftest.$ac_ext <<EOF
1541 #line 1542 "configure"
1542 #include "confdefs.h"
1546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1547 { (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1549 if test -z "$ac_err"; then
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1563 ac_cv_prog_CPP="$CPP"
1565 CPP="$ac_cv_prog_CPP"
1567 ac_cv_prog_CPP="$CPP"
1569 echo "$ac_t""$CPP" 1>&6
1571 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1572 echo "configure:1573: checking for ANSI C header files" >&5
1573 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1585 { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1587 if test -z "$ac_err"; then
1589 ac_cv_header_stdc=yes
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 ac_cv_header_stdc=no
1599 if test $ac_cv_header_stdc = yes; then
1600 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1601 cat > conftest.$ac_ext <<EOF
1602 #line 1603 "configure"
1603 #include "confdefs.h"
1606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1607 egrep "memchr" >/dev/null 2>&1; then
1611 ac_cv_header_stdc=no
1617 if test $ac_cv_header_stdc = yes; then
1618 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1625 egrep "free" >/dev/null 2>&1; then
1629 ac_cv_header_stdc=no
1635 if test $ac_cv_header_stdc = yes; then
1636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1637 if test "$cross_compiling" = yes; then
1640 cat > conftest.$ac_ext <<EOF
1641 #line 1642 "configure"
1642 #include "confdefs.h"
1644 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1645 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1647 int main () { int i; for (i = 0; i < 256; i++)
1648 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1656 echo "configure: failed program was:" >&5
1657 cat conftest.$ac_ext >&5
1659 ac_cv_header_stdc=no
1667 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1668 if test $ac_cv_header_stdc = yes; then
1669 cat >> confdefs.h <<\EOF
1670 #define STDC_HEADERS 1
1676 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1679 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1680 echo "configure:1681: checking for $ac_hdr that defines DIR" >&5
1681 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <sys/types.h>
1693 if { (eval echo configure:1694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1695 eval "ac_cv_header_dirent_$ac_safe=yes"
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1700 eval "ac_cv_header_dirent_$ac_safe=no"
1704 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1707 cat >> confdefs.h <<EOF
1708 #define $ac_tr_hdr 1
1710 ac_header_dirent=$ac_hdr; break
1712 echo "$ac_t""no" 1>&6
1715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1716 if test $ac_header_dirent = dirent.h; then
1717 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1718 echo "configure:1719: checking for opendir in -ldir" >&5
1719 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1723 ac_save_LIBS="$LIBS"
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* Override any gcc2 internal prototype to avoid an error. */
1729 /* We use char because int might match the return type of a gcc2
1730 builtin and then its argument prototype would still apply. */
1737 if { (eval echo configure:1738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1739 eval "ac_cv_lib_$ac_lib_var=yes"
1741 echo "configure: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1744 eval "ac_cv_lib_$ac_lib_var=no"
1747 LIBS="$ac_save_LIBS"
1750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1751 echo "$ac_t""yes" 1>&6
1754 echo "$ac_t""no" 1>&6
1758 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1759 echo "configure:1760: checking for opendir in -lx" >&5
1760 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 ac_save_LIBS="$LIBS"
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1769 /* Override any gcc2 internal prototype to avoid an error. */
1770 /* We use char because int might match the return type of a gcc2
1771 builtin and then its argument prototype would still apply. */
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1780 eval "ac_cv_lib_$ac_lib_var=yes"
1782 echo "configure: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1785 eval "ac_cv_lib_$ac_lib_var=no"
1788 LIBS="$ac_save_LIBS"
1791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1792 echo "$ac_t""yes" 1>&6
1795 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether time.h and sys/time.h may both be included" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #include <sys/types.h>
1809 #include <sys/time.h>
1815 if { (eval echo configure:1816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1817 ac_cv_header_time=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 ac_cv_header_time=no
1827 echo "$ac_t""$ac_cv_header_time" 1>&6
1828 if test $ac_cv_header_time = yes; then
1829 cat >> confdefs.h <<\EOF
1830 #define TIME_WITH_SYS_TIME 1
1835 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1836 echo "configure:1837: checking for sys/wait.h that is POSIX.1 compatible" >&5
1837 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <sys/types.h>
1844 #include <sys/wait.h>
1846 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1849 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1854 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1857 if { (eval echo configure:1858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1859 ac_cv_header_sys_wait_h=yes
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1864 ac_cv_header_sys_wait_h=no
1869 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1870 if test $ac_cv_header_sys_wait_h = yes; then
1871 cat >> confdefs.h <<\EOF
1872 #define HAVE_SYS_WAIT_H 1
1877 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1879 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1880 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1881 echo "configure:1882: checking for $ac_hdr" >&5
1882 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1885 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure"
1887 #include "confdefs.h"
1890 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1891 { (eval echo configure:1892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1892 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1893 if test -z "$ac_err"; then
1895 eval "ac_cv_header_$ac_safe=yes"
1898 echo "configure: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1901 eval "ac_cv_header_$ac_safe=no"
1905 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1906 echo "$ac_t""yes" 1>&6
1907 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1908 cat >> confdefs.h <<EOF
1909 #define $ac_tr_hdr 1
1913 echo "$ac_t""no" 1>&6
1917 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1921 echo "configure:1922: checking for $ac_hdr" >&5
1922 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1923 echo $ac_n "(cached) $ac_c" 1>&6
1925 cat > conftest.$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1935 eval "ac_cv_header_$ac_safe=yes"
1938 echo "configure: failed program was:" >&5
1939 cat conftest.$ac_ext >&5
1941 eval "ac_cv_header_$ac_safe=no"
1945 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1946 echo "$ac_t""yes" 1>&6
1947 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1948 cat >> confdefs.h <<EOF
1949 #define $ac_tr_hdr 1
1953 echo "$ac_t""no" 1>&6
1957 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_hdr" >&5
1962 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 cat > conftest.$ac_ext <<EOF
1966 #line 1967 "configure"
1967 #include "confdefs.h"
1970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1973 if test -z "$ac_err"; then
1975 eval "ac_cv_header_$ac_safe=yes"
1978 echo "configure: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1981 eval "ac_cv_header_$ac_safe=no"
1985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1986 echo "$ac_t""yes" 1>&6
1987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1988 cat >> confdefs.h <<EOF
1989 #define $ac_tr_hdr 1
1993 echo "$ac_t""no" 1>&6
1997 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
1999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2001 echo "configure:2002: checking for $ac_hdr" >&5
2002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2011 { (eval echo configure:2012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2013 if test -z "$ac_err"; then
2015 eval "ac_cv_header_$ac_safe=yes"
2018 echo "configure: failed program was:" >&5
2019 cat conftest.$ac_ext >&5
2021 eval "ac_cv_header_$ac_safe=no"
2025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2028 cat >> confdefs.h <<EOF
2029 #define $ac_tr_hdr 1
2033 echo "$ac_t""no" 1>&6
2037 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2039 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2040 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2041 echo "configure:2042: checking for $ac_hdr" >&5
2042 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2045 cat > conftest.$ac_ext <<EOF
2046 #line 2047 "configure"
2047 #include "confdefs.h"
2050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051 { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053 if test -z "$ac_err"; then
2055 eval "ac_cv_header_$ac_safe=yes"
2058 echo "configure: failed program was:" >&5
2059 cat conftest.$ac_ext >&5
2061 eval "ac_cv_header_$ac_safe=no"
2065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2067 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2068 cat >> confdefs.h <<EOF
2069 #define $ac_tr_hdr 1
2073 echo "$ac_t""no" 1>&6
2077 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2079 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2080 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2081 echo "configure:2082: checking for $ac_hdr" >&5
2082 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2090 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2091 { (eval echo configure:2092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2092 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2093 if test -z "$ac_err"; then
2095 eval "ac_cv_header_$ac_safe=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2101 eval "ac_cv_header_$ac_safe=no"
2105 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2106 echo "$ac_t""yes" 1>&6
2107 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2108 cat >> confdefs.h <<EOF
2109 #define $ac_tr_hdr 1
2113 echo "$ac_t""no" 1>&6
2117 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2121 echo "configure:2122: checking for $ac_hdr" >&5
2122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2123 echo $ac_n "(cached) $ac_c" 1>&6
2125 cat > conftest.$ac_ext <<EOF
2126 #line 2127 "configure"
2127 #include "confdefs.h"
2130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2135 eval "ac_cv_header_$ac_safe=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2141 eval "ac_cv_header_$ac_safe=no"
2145 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2146 echo "$ac_t""yes" 1>&6
2147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2148 cat >> confdefs.h <<EOF
2149 #define $ac_tr_hdr 1
2153 echo "$ac_t""no" 1>&6
2157 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h
2159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2161 echo "configure:2162: checking for $ac_hdr" >&5
2162 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2163 echo $ac_n "(cached) $ac_c" 1>&6
2165 cat > conftest.$ac_ext <<EOF
2166 #line 2167 "configure"
2167 #include "confdefs.h"
2170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2171 { (eval echo configure:2172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2173 if test -z "$ac_err"; then
2175 eval "ac_cv_header_$ac_safe=yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 eval "ac_cv_header_$ac_safe=no"
2185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2188 cat >> confdefs.h <<EOF
2189 #define $ac_tr_hdr 1
2193 echo "$ac_t""no" 1>&6
2199 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2200 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2212 if { (eval echo configure:2213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2214 ac_cv_header_shadow_h=yes
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2219 ac_cv_header_shadow_h=no
2222 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2223 cat >> confdefs.h <<\EOF
2224 #define HAVE_SHADOW_H 1
2230 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2234 echo "configure:2235: checking for $ac_hdr" >&5
2235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2236 echo $ac_n "(cached) $ac_c" 1>&6
2238 cat > conftest.$ac_ext <<EOF
2239 #line 2240 "configure"
2240 #include "confdefs.h"
2243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2244 { (eval echo configure:2245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2246 if test -z "$ac_err"; then
2248 eval "ac_cv_header_$ac_safe=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_header_$ac_safe=no"
2258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2261 cat >> confdefs.h <<EOF
2262 #define $ac_tr_hdr 1
2266 echo "$ac_t""no" 1>&6
2270 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2274 echo "configure:2275: checking for $ac_hdr" >&5
2275 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2276 echo $ac_n "(cached) $ac_c" 1>&6
2278 cat > conftest.$ac_ext <<EOF
2279 #line 2280 "configure"
2280 #include "confdefs.h"
2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2286 if test -z "$ac_err"; then
2288 eval "ac_cv_header_$ac_safe=yes"
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2294 eval "ac_cv_header_$ac_safe=no"
2298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2299 echo "$ac_t""yes" 1>&6
2300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2301 cat >> confdefs.h <<EOF
2302 #define $ac_tr_hdr 1
2306 echo "$ac_t""no" 1>&6
2310 for ac_hdr in stropts.h poll.h
2312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2314 echo "configure:2315: checking for $ac_hdr" >&5
2315 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2316 echo $ac_n "(cached) $ac_c" 1>&6
2318 cat > conftest.$ac_ext <<EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2324 { (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2326 if test -z "$ac_err"; then
2328 eval "ac_cv_header_$ac_safe=yes"
2331 echo "configure: failed program was:" >&5
2332 cat conftest.$ac_ext >&5
2334 eval "ac_cv_header_$ac_safe=no"
2338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2339 echo "$ac_t""yes" 1>&6
2340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2341 cat >> confdefs.h <<EOF
2342 #define $ac_tr_hdr 1
2346 echo "$ac_t""no" 1>&6
2350 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2354 echo "configure:2355: checking for $ac_hdr" >&5
2355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 cat > conftest.$ac_ext <<EOF
2359 #line 2360 "configure"
2360 #include "confdefs.h"
2363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2364 { (eval echo configure:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2366 if test -z "$ac_err"; then
2368 eval "ac_cv_header_$ac_safe=yes"
2371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2374 eval "ac_cv_header_$ac_safe=no"
2378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2381 cat >> confdefs.h <<EOF
2382 #define $ac_tr_hdr 1
2386 echo "$ac_t""no" 1>&6
2390 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h <<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2431 # For experimental utmp support (lastlog on some BSD-like systems)
2432 for ac_hdr in utmp.h utmpx.h lastlog.h
2434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_hdr" >&5
2437 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2446 { (eval echo configure:2447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2448 if test -z "$ac_err"; then
2450 eval "ac_cv_header_$ac_safe=yes"
2453 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5
2456 eval "ac_cv_header_$ac_safe=no"
2460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2461 echo "$ac_t""yes" 1>&6
2462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2463 cat >> confdefs.h <<EOF
2464 #define $ac_tr_hdr 1
2468 echo "$ac_t""no" 1>&6
2473 # For quotas on Veritas VxFS filesystems
2474 for ac_hdr in sys/fs/vx_quota.h
2476 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2478 echo "configure:2479: checking for $ac_hdr" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2488 { (eval echo configure:2489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2490 if test -z "$ac_err"; then
2492 eval "ac_cv_header_$ac_safe=yes"
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2498 eval "ac_cv_header_$ac_safe=no"
2502 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2503 echo "$ac_t""yes" 1>&6
2504 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2505 cat >> confdefs.h <<EOF
2506 #define $ac_tr_hdr 1
2510 echo "$ac_t""no" 1>&6
2515 # For quotas on Linux XFS filesystems
2516 for ac_hdr in linux/xqm.h
2518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_hdr" >&5
2521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 cat > conftest.$ac_ext <<EOF
2525 #line 2526 "configure"
2526 #include "confdefs.h"
2529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2530 { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2532 if test -z "$ac_err"; then
2534 eval "ac_cv_header_$ac_safe=yes"
2537 echo "configure: failed program was:" >&5
2538 cat conftest.$ac_ext >&5
2540 eval "ac_cv_header_$ac_safe=no"
2544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2547 cat >> confdefs.h <<EOF
2548 #define $ac_tr_hdr 1
2552 echo "$ac_t""no" 1>&6
2557 echo $ac_n "checking size of int""... $ac_c" 1>&6
2558 echo "configure:2559: checking size of int" >&5
2559 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2562 if test "$cross_compiling" = yes; then
2563 ac_cv_sizeof_int=cross
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2571 FILE *f=fopen("conftestval", "w");
2573 fprintf(f, "%d\n", sizeof(int));
2577 if { (eval echo configure:2578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2579 ac_cv_sizeof_int=`cat conftestval`
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2590 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2591 cat >> confdefs.h <<EOF
2592 #define SIZEOF_INT $ac_cv_sizeof_int
2596 echo $ac_n "checking size of long""... $ac_c" 1>&6
2597 echo "configure:2598: checking size of long" >&5
2598 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 if test "$cross_compiling" = yes; then
2602 ac_cv_sizeof_long=cross
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2610 FILE *f=fopen("conftestval", "w");
2612 fprintf(f, "%d\n", sizeof(long));
2616 if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2618 ac_cv_sizeof_long=`cat conftestval`
2620 echo "configure: failed program was:" >&5
2621 cat conftest.$ac_ext >&5
2629 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2630 cat >> confdefs.h <<EOF
2631 #define SIZEOF_LONG $ac_cv_sizeof_long
2635 echo $ac_n "checking size of short""... $ac_c" 1>&6
2636 echo "configure:2637: checking size of short" >&5
2637 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2640 if test "$cross_compiling" = yes; then
2641 ac_cv_sizeof_short=cross
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2649 FILE *f=fopen("conftestval", "w");
2651 fprintf(f, "%d\n", sizeof(short));
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2657 ac_cv_sizeof_short=`cat conftestval`
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 ac_cv_sizeof_short=0
2668 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2669 cat >> confdefs.h <<EOF
2670 #define SIZEOF_SHORT $ac_cv_sizeof_short
2675 echo $ac_n "checking for working const""... $ac_c" 1>&6
2676 echo "configure:2677: checking for working const" >&5
2677 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2678 echo $ac_n "(cached) $ac_c" 1>&6
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2686 /* Ultrix mips cc rejects this. */
2687 typedef int charset[2]; const charset x;
2688 /* SunOS 4.1.1 cc rejects this. */
2689 char const *const *ccp;
2691 /* NEC SVR4.0.2 mips cc rejects this. */
2692 struct point {int x, y;};
2693 static struct point const zero = {0,0};
2694 /* AIX XL C 1.02.0.0 rejects this.
2695 It does not let you subtract one const X* pointer from another in an arm
2696 of an if-expression whose if-part is not a constant expression */
2697 const char *g = "string";
2698 ccp = &g + (g ? g-g : 0);
2699 /* HPUX 7.0 cc rejects these. */
2702 ccp = (char const *const *) p;
2703 { /* SCO 3.2v4 cc rejects this. */
2705 char const *s = 0 ? (char *) 0 : (char const *) 0;
2709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2711 const int *foo = &x[0];
2714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2715 typedef const int *iptr;
2719 { /* AIX XL C 1.02.0.0 rejects this saying
2720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2721 struct s { int j; const int *ap[3]; };
2722 struct s *b; b->j = 5;
2724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2742 echo "$ac_t""$ac_cv_c_const" 1>&6
2743 if test $ac_cv_c_const = no; then
2744 cat >> confdefs.h <<\EOF
2750 echo $ac_n "checking for inline""... $ac_c" 1>&6
2751 echo "configure:2752: checking for inline" >&5
2752 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2753 echo $ac_n "(cached) $ac_c" 1>&6
2756 for ac_kw in inline __inline__ __inline; do
2757 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure"
2759 #include "confdefs.h"
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2767 ac_cv_c_inline=$ac_kw; break
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2777 echo "$ac_t""$ac_cv_c_inline" 1>&6
2778 case "$ac_cv_c_inline" in
2780 no) cat >> confdefs.h <<\EOF
2784 *) cat >> confdefs.h <<EOF
2785 #define inline $ac_cv_c_inline
2790 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2791 echo "configure:2792: checking whether byte ordering is bigendian" >&5
2792 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_cv_c_bigendian=unknown
2796 # See if sys/param.h defines the BYTE_ORDER macro.
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 #include <sys/types.h>
2801 #include <sys/param.h>
2804 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2809 if { (eval echo configure:2810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2811 # It does; now see whether it defined to BIG_ENDIAN or not.
2812 cat > conftest.$ac_ext <<EOF
2813 #line 2814 "configure"
2814 #include "confdefs.h"
2815 #include <sys/types.h>
2816 #include <sys/param.h>
2819 #if BYTE_ORDER != BIG_ENDIAN
2824 if { (eval echo configure:2825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2826 ac_cv_c_bigendian=yes
2828 echo "configure: failed program was:" >&5
2829 cat conftest.$ac_ext >&5
2831 ac_cv_c_bigendian=no
2835 echo "configure: failed program was:" >&5
2836 cat conftest.$ac_ext >&5
2839 if test $ac_cv_c_bigendian = unknown; then
2840 if test "$cross_compiling" = yes; then
2841 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2843 cat > conftest.$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2847 /* Are we little or big endian? From Harbison&Steele. */
2851 char c[sizeof (long)];
2854 exit (u.c[sizeof (long) - 1] == 1);
2857 if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2859 ac_cv_c_bigendian=no
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2864 ac_cv_c_bigendian=yes
2872 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2873 if test $ac_cv_c_bigendian = yes; then
2874 cat >> confdefs.h <<\EOF
2875 #define WORDS_BIGENDIAN 1
2880 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2881 echo "configure:2882: checking whether char is unsigned" >&5
2882 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 if test "$GCC" = yes; then
2886 # GCC predefines this symbol on systems where it applies.
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 #ifdef __CHAR_UNSIGNED__
2895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896 egrep "yes" >/dev/null 2>&1; then
2898 ac_cv_c_char_unsigned=yes
2901 ac_cv_c_char_unsigned=no
2906 if test "$cross_compiling" = yes; then
2907 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2909 cat > conftest.$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2912 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2913 #if !defined(__STDC__) || __STDC__ != 1
2917 volatile char c = 255; exit(c < 0);
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2922 ac_cv_c_char_unsigned=yes
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2927 ac_cv_c_char_unsigned=no
2935 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2936 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2937 cat >> confdefs.h <<\EOF
2938 #define __CHAR_UNSIGNED__ 1
2944 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2945 echo "configure:2946: checking return type of signal handlers" >&5
2946 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 #include <sys/types.h>
2958 extern "C" void (*signal (int, void (*)(int)))(int);
2960 void (*signal ()) ();
2967 if { (eval echo configure:2968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2969 ac_cv_type_signal=void
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2974 ac_cv_type_signal=int
2979 echo "$ac_t""$ac_cv_type_signal" 1>&6
2980 cat >> confdefs.h <<EOF
2981 #define RETSIGTYPE $ac_cv_type_signal
2985 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2986 echo "configure:2987: checking for uid_t in sys/types.h" >&5
2987 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2996 egrep "uid_t" >/dev/null 2>&1; then
2998 ac_cv_type_uid_t=yes
3007 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3008 if test $ac_cv_type_uid_t = no; then
3009 cat >> confdefs.h <<\EOF
3013 cat >> confdefs.h <<\EOF
3019 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3020 echo "configure:3021: checking for mode_t" >&5
3021 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3036 ac_cv_type_mode_t=yes
3039 ac_cv_type_mode_t=no
3044 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3045 if test $ac_cv_type_mode_t = no; then
3046 cat >> confdefs.h <<\EOF
3052 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3053 echo "configure:3054: checking for off_t" >&5
3054 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <sys/types.h>
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3069 ac_cv_type_off_t=yes
3077 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3078 if test $ac_cv_type_off_t = no; then
3079 cat >> confdefs.h <<\EOF
3085 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3086 echo "configure:3087: checking for size_t" >&5
3087 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 cat > conftest.$ac_ext <<EOF
3091 #line 3092 "configure"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3102 ac_cv_type_size_t=yes
3105 ac_cv_type_size_t=no
3110 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3111 if test $ac_cv_type_size_t = no; then
3112 cat >> confdefs.h <<\EOF
3113 #define size_t unsigned
3118 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3119 echo "configure:3120: checking for pid_t" >&5
3120 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3126 #include <sys/types.h>
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3135 ac_cv_type_pid_t=yes
3143 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3144 if test $ac_cv_type_pid_t = no; then
3145 cat >> confdefs.h <<\EOF
3151 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3152 echo "configure:3153: checking for st_rdev in struct stat" >&5
3153 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3154 echo $ac_n "(cached) $ac_c" 1>&6
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3159 #include <sys/types.h>
3160 #include <sys/stat.h>
3162 struct stat s; s.st_rdev;
3165 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3167 ac_cv_struct_st_rdev=yes
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3172 ac_cv_struct_st_rdev=no
3177 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3178 if test $ac_cv_struct_st_rdev = yes; then
3179 cat >> confdefs.h <<\EOF
3180 #define HAVE_ST_RDEV 1
3185 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3186 echo "configure:3187: checking for d_off in dirent" >&5
3187 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3195 #include <sys/types.h>
3198 struct dirent d; d.d_off;
3201 if { (eval echo configure:3202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3203 ac_cv_dirent_d_off=yes
3205 echo "configure: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3208 ac_cv_dirent_d_off=no
3213 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3214 if test $ac_cv_dirent_d_off = yes; then
3215 cat >> confdefs.h <<\EOF
3216 #define HAVE_DIRENT_D_OFF 1
3221 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3222 echo "configure:3223: checking for ino_t" >&5
3223 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 cat > conftest.$ac_ext <<EOF
3227 #line 3228 "configure"
3228 #include "confdefs.h"
3229 #include <sys/types.h>
3235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3236 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3238 ac_cv_type_ino_t=yes
3246 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3247 if test $ac_cv_type_ino_t = no; then
3248 cat >> confdefs.h <<\EOF
3249 #define ino_t unsigned
3254 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3255 echo "configure:3256: checking for loff_t" >&5
3256 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 #include <sys/types.h>
3268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3269 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3271 ac_cv_type_loff_t=yes
3274 ac_cv_type_loff_t=no
3279 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3280 if test $ac_cv_type_loff_t = no; then
3281 cat >> confdefs.h <<\EOF
3282 #define loff_t off_t
3287 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3288 echo "configure:3289: checking for offset_t" >&5
3289 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3292 cat > conftest.$ac_ext <<EOF
3293 #line 3294 "configure"
3294 #include "confdefs.h"
3295 #include <sys/types.h>
3301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3302 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3304 ac_cv_type_offset_t=yes
3307 ac_cv_type_offset_t=no
3312 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3313 if test $ac_cv_type_offset_t = no; then
3314 cat >> confdefs.h <<\EOF
3315 #define offset_t loff_t
3320 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3321 echo "configure:3322: checking for ssize_t" >&5
3322 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3323 echo $ac_n "(cached) $ac_c" 1>&6
3325 cat > conftest.$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3337 ac_cv_type_ssize_t=yes
3340 ac_cv_type_ssize_t=no
3345 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3346 if test $ac_cv_type_ssize_t = no; then
3347 cat >> confdefs.h <<\EOF
3353 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3354 echo "configure:3355: checking for wchar_t" >&5
3355 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 #include <sys/types.h>
3367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3370 ac_cv_type_wchar_t=yes
3373 ac_cv_type_wchar_t=no
3378 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3379 if test $ac_cv_type_wchar_t = no; then
3380 cat >> confdefs.h <<\EOF
3381 #define wchar_t unsigned short
3387 ############################################
3388 # for cups support we need libcups, and a handful of header files
3390 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3391 echo "configure:3392: checking for httpConnect in -lcups" >&5
3392 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 ac_save_LIBS="$LIBS"
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412 eval "ac_cv_lib_$ac_lib_var=yes"
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 eval "ac_cv_lib_$ac_lib_var=no"
3420 LIBS="$ac_save_LIBS"
3423 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3426 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3427 cat >> confdefs.h <<EOF
3428 #define $ac_tr_lib 1
3434 echo "$ac_t""no" 1>&6
3438 # I wonder if there is a nicer way of doing this?
3440 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3441 for ac_hdr in cups/cups.h cups/language.h
3443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_hdr" >&5
3446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 cat > conftest.$ac_ext <<EOF
3450 #line 3451 "configure"
3451 #include "confdefs.h"
3454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3455 { (eval echo configure:3456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3457 if test -z "$ac_err"; then
3459 eval "ac_cv_header_$ac_safe=yes"
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3465 eval "ac_cv_header_$ac_safe=no"
3469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3472 cat >> confdefs.h <<EOF
3473 #define $ac_tr_hdr 1
3477 echo "$ac_t""no" 1>&6
3481 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3482 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3483 cat >> confdefs.h <<\EOF
3491 ############################################
3492 # we need libdl for PAM and the new VFS code
3493 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3494 echo "configure:3495: checking for dlopen in -ldl" >&5
3495 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3499 ac_save_LIBS="$LIBS"
3501 cat > conftest.$ac_ext <<EOF
3502 #line 3503 "configure"
3503 #include "confdefs.h"
3504 /* Override any gcc2 internal prototype to avoid an error. */
3505 /* We use char because int might match the return type of a gcc2
3506 builtin and then its argument prototype would still apply. */
3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 eval "ac_cv_lib_$ac_lib_var=yes"
3517 echo "configure: failed program was:" >&5
3518 cat conftest.$ac_ext >&5
3520 eval "ac_cv_lib_$ac_lib_var=no"
3523 LIBS="$ac_save_LIBS"
3526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3527 echo "$ac_t""yes" 1>&6
3529 cat >> confdefs.h <<\EOF
3530 #define HAVE_LIBDL 1
3534 echo "$ac_t""no" 1>&6
3538 ############################################
3539 # check if the compiler can do immediate structures
3540 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3541 echo "configure:3542: checking for immediate structures" >&5
3542 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3543 echo $ac_n "(cached) $ac_c" 1>&6
3546 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3553 #define X_FOOBAR(x) ((FOOBAR) { x })
3554 typedef struct {unsigned x;} FOOBAR;
3555 FOOBAR f = X_FOOBAR(1);
3559 if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3561 samba_cv_immediate_structures=yes
3563 echo "configure: failed program was:" >&5
3564 cat conftest.$ac_ext >&5
3566 samba_cv_immediate_structures=no
3571 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3572 if test x"$samba_cv_immediate_structures" = x"yes"; then
3573 cat >> confdefs.h <<\EOF
3574 #define HAVE_IMMEDIATE_STRUCTURES 1
3579 ############################################
3580 # check for unix domain sockets
3581 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3582 echo "configure:3583: checking for unix domain sockets" >&5
3583 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3587 cat > conftest.$ac_ext <<EOF
3588 #line 3589 "configure"
3589 #include "confdefs.h"
3591 #include <sys/types.h>
3594 #include <sys/socket.h>
3598 struct sockaddr_un sunaddr;
3599 sunaddr.sun_family = AF_UNIX;
3603 if { (eval echo configure:3604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3605 samba_cv_unixsocket=yes
3607 echo "configure: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3610 samba_cv_unixsocket=no
3615 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3616 if test x"$samba_cv_unixsocket" = x"yes"; then
3617 cat >> confdefs.h <<\EOF
3618 #define HAVE_UNIXSOCKET 1
3624 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3625 echo "configure:3626: checking for socklen_t type" >&5
3626 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3634 #include <sys/types.h>
3639 #include <sys/socket.h>
3644 if { (eval echo configure:3645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3646 samba_cv_socklen_t=yes
3648 echo "configure: failed program was:" >&5
3649 cat conftest.$ac_ext >&5
3651 samba_cv_socklen_t=no
3656 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3657 if test x"$samba_cv_socklen_t" = x"yes"; then
3658 cat >> confdefs.h <<\EOF
3659 #define HAVE_SOCKLEN_T_TYPE 1
3664 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3665 echo "configure:3666: checking for sig_atomic_t type" >&5
3666 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3674 #include <sys/types.h>
3684 if { (eval echo configure:3685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3686 samba_cv_sig_atomic_t=yes
3688 echo "configure: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3691 samba_cv_sig_atomic_t=no
3696 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3697 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3698 cat >> confdefs.h <<\EOF
3699 #define HAVE_SIG_ATOMIC_T_TYPE 1
3704 # stupid headers have the functions but no declaration. grrrr.
3706 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3707 echo "configure:3708: checking for errno declaration" >&5
3708 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3709 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3722 ac_cv_have_errno_decl=yes
3724 echo "configure: failed program was:" >&5
3725 cat conftest.$ac_ext >&5
3727 ac_cv_have_errno_decl=no
3732 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3733 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3734 cat >> confdefs.h <<\EOF
3735 #define HAVE_ERRNO_DECL 1
3741 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3742 echo "configure:3743: checking for setresuid declaration" >&5
3743 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 int i = (int)setresuid
3755 if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757 ac_cv_have_setresuid_decl=yes
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3762 ac_cv_have_setresuid_decl=no
3767 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3768 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3769 cat >> confdefs.h <<\EOF
3770 #define HAVE_SETRESUID_DECL 1
3776 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3777 echo "configure:3778: checking for setresgid declaration" >&5
3778 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3779 echo $ac_n "(cached) $ac_c" 1>&6
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3787 int i = (int)setresgid
3790 if { (eval echo configure:3791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792 ac_cv_have_setresgid_decl=yes
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3797 ac_cv_have_setresgid_decl=no
3802 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3803 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3804 cat >> confdefs.h <<\EOF
3805 #define HAVE_SETRESGID_DECL 1
3811 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3812 echo "configure:3813: checking for asprintf declaration" >&5
3813 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3822 int i = (int)asprintf
3825 if { (eval echo configure:3826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3827 ac_cv_have_asprintf_decl=yes
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 ac_cv_have_asprintf_decl=no
3837 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3838 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3839 cat >> confdefs.h <<\EOF
3840 #define HAVE_ASPRINTF_DECL 1
3846 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3847 echo "configure:3848: checking for vasprintf declaration" >&5
3848 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3857 int i = (int)vasprintf
3860 if { (eval echo configure:3861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3862 ac_cv_have_vasprintf_decl=yes
3864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
3867 ac_cv_have_vasprintf_decl=no
3872 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3873 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3874 cat >> confdefs.h <<\EOF
3875 #define HAVE_VASPRINTF_DECL 1
3881 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3882 echo "configure:3883: checking for vsnprintf declaration" >&5
3883 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3892 int i = (int)vsnprintf
3895 if { (eval echo configure:3896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3897 ac_cv_have_vsnprintf_decl=yes
3899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3902 ac_cv_have_vsnprintf_decl=no
3907 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3908 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3909 cat >> confdefs.h <<\EOF
3910 #define HAVE_VSNPRINTF_DECL 1
3916 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3917 echo "configure:3918: checking for snprintf declaration" >&5
3918 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure"
3924 #include "confdefs.h"
3927 int i = (int)snprintf
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3932 ac_cv_have_snprintf_decl=yes
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3937 ac_cv_have_snprintf_decl=no
3942 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3943 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_SNPRINTF_DECL 1
3951 # and glibc has setresuid under linux but the function does
3952 # nothing until kernel 2.1.44! very dumb.
3953 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3954 echo "configure:3955: checking for real setresuid" >&5
3955 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3956 echo $ac_n "(cached) $ac_c" 1>&6
3959 if test "$cross_compiling" = yes; then
3960 samba_cv_have_setresuid=cross
3962 cat > conftest.$ac_ext <<EOF
3963 #line 3964 "configure"
3964 #include "confdefs.h"
3966 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3970 samba_cv_have_setresuid=yes
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 samba_cv_have_setresuid=no
3982 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3983 if test x"$samba_cv_have_setresuid" = x"yes"; then
3984 cat >> confdefs.h <<\EOF
3985 #define HAVE_SETRESUID 1
3990 # Do the same check for setresguid...
3992 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3993 echo "configure:3994: checking for real setresgid" >&5
3994 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3998 if test "$cross_compiling" = yes; then
3999 samba_cv_have_setresgid=cross
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4006 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4008 if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4010 samba_cv_have_setresgid=yes
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4015 samba_cv_have_setresgid=no
4022 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4023 if test x"$samba_cv_have_setresgid" = x"yes"; then
4024 cat >> confdefs.h <<\EOF
4025 #define HAVE_SETRESGID 1
4030 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4031 echo "configure:4032: checking for 8-bit clean memcmp" >&5
4032 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4033 echo $ac_n "(cached) $ac_c" 1>&6
4035 if test "$cross_compiling" = yes; then
4036 ac_cv_func_memcmp_clean=no
4038 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure"
4040 #include "confdefs.h"
4044 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4045 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4051 ac_cv_func_memcmp_clean=yes
4053 echo "configure: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4056 ac_cv_func_memcmp_clean=no
4063 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4064 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4067 ###############################################
4068 # test for where we get crypt() from
4069 for ac_func in crypt
4071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_func" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char $ac_func(); below. */
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102 eval "ac_cv_func_$ac_func=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_func_$ac_func=no"
4112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_func 1
4120 echo "$ac_t""no" 1>&6
4124 if test x"$ac_cv_func_crypt" = x"no"; then
4125 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4126 echo "configure:4127: checking for crypt in -lcrypt" >&5
4127 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 ac_save_LIBS="$LIBS"
4132 LIBS="-lcrypt $LIBS"
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4147 eval "ac_cv_lib_$ac_lib_var=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 eval "ac_cv_lib_$ac_lib_var=no"
4155 LIBS="$ac_save_LIBS"
4158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 LIBS="$LIBS -lcrypt";
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_CRYPT 1
4166 echo "$ac_t""no" 1>&6
4172 ###############################################
4173 # Readline included by default unless explicitly asked not to
4174 test "${with_readline+set}" != "set" && with_readline=yes
4176 # test for where we get readline() from
4177 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4178 echo "configure:4179: checking whether to use readline" >&5
4179 # Check whether --with-readline or --without-readline was given.
4180 if test "${with_readline+set}" = set; then
4181 withval="$with_readline"
4182 case "$with_readline" in
4184 echo "$ac_t""yes" 1>&6
4186 for ac_hdr in readline.h history.h readline/readline.h
4188 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4190 echo "configure:4191: checking for $ac_hdr" >&5
4191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4192 echo $ac_n "(cached) $ac_c" 1>&6
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4200 { (eval echo configure:4201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4202 if test -z "$ac_err"; then
4204 eval "ac_cv_header_$ac_safe=yes"
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4210 eval "ac_cv_header_$ac_safe=no"
4214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4215 echo "$ac_t""yes" 1>&6
4216 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4217 cat >> confdefs.h <<EOF
4218 #define $ac_tr_hdr 1
4222 echo "$ac_t""no" 1>&6
4226 for ac_hdr in readline/history.h
4228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4230 echo "configure:4231: checking for $ac_hdr" >&5
4231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4234 cat > conftest.$ac_ext <<EOF
4235 #line 4236 "configure"
4236 #include "confdefs.h"
4239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4240 { (eval echo configure:4241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4242 if test -z "$ac_err"; then
4244 eval "ac_cv_header_$ac_safe=yes"
4247 echo "configure: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4250 eval "ac_cv_header_$ac_safe=no"
4254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4255 echo "$ac_t""yes" 1>&6
4256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4257 cat >> confdefs.h <<EOF
4258 #define $ac_tr_hdr 1
4262 echo "$ac_t""no" 1>&6
4267 for ac_hdr in readline.h readline/readline.h
4269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4271 echo "configure:4272: checking for $ac_hdr" >&5
4272 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4275 cat > conftest.$ac_ext <<EOF
4276 #line 4277 "configure"
4277 #include "confdefs.h"
4280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4281 { (eval echo configure:4282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4283 if test -z "$ac_err"; then
4285 eval "ac_cv_header_$ac_safe=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_header_$ac_safe=no"
4295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4296 echo "$ac_t""yes" 1>&6
4297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4298 cat >> confdefs.h <<EOF
4299 #define $ac_tr_hdr 1
4302 for termlib in ncurses curses termcap terminfo termlib; do
4303 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4304 echo "configure:4305: checking for tgetent in -l${termlib}" >&5
4305 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4307 echo $ac_n "(cached) $ac_c" 1>&6
4309 ac_save_LIBS="$LIBS"
4310 LIBS="-l${termlib} $LIBS"
4311 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4314 /* Override any gcc2 internal prototype to avoid an error. */
4315 /* We use char because int might match the return type of a gcc2
4316 builtin and then its argument prototype would still apply. */
4323 if { (eval echo configure:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4325 eval "ac_cv_lib_$ac_lib_var=yes"
4327 echo "configure: failed program was:" >&5
4328 cat conftest.$ac_ext >&5
4330 eval "ac_cv_lib_$ac_lib_var=no"
4333 LIBS="$ac_save_LIBS"
4336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4338 TERMLIBS="-l${termlib}"; break
4340 echo "$ac_t""no" 1>&6
4344 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4345 echo "configure:4346: checking for rl_callback_handler_install in -lreadline" >&5
4346 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 ac_save_LIBS="$LIBS"
4351 LIBS="-lreadline $TERMLIBS $LIBS"
4352 cat > conftest.$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4358 char rl_callback_handler_install();
4361 rl_callback_handler_install()
4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4366 eval "ac_cv_lib_$ac_lib_var=yes"
4368 echo "configure: failed program was:" >&5
4369 cat conftest.$ac_ext >&5
4371 eval "ac_cv_lib_$ac_lib_var=no"
4374 LIBS="$ac_save_LIBS"
4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4378 echo "$ac_t""yes" 1>&6
4379 TERMLIBS="-lreadline $TERMLIBS"
4380 cat >> confdefs.h <<\EOF
4381 #define HAVE_LIBREADLINE 1
4386 echo "$ac_t""no" 1>&6
4391 echo "$ac_t""no" 1>&6
4397 echo "$ac_t""no" 1>&6
4400 echo "$ac_t""yes" 1>&6
4402 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4403 # alternate readline path
4405 _cppflags=${CPPFLAGS}
4407 # Add additional search path
4408 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4409 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4411 for ac_hdr in readline.h history.h readline/readline.h
4413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_hdr" >&5
4416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 cat > conftest.$ac_ext <<EOF
4420 #line 4421 "configure"
4421 #include "confdefs.h"
4424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4425 { (eval echo configure:4426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4427 if test -z "$ac_err"; then
4429 eval "ac_cv_header_$ac_safe=yes"
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4435 eval "ac_cv_header_$ac_safe=no"
4439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4442 cat >> confdefs.h <<EOF
4443 #define $ac_tr_hdr 1
4447 echo "$ac_t""no" 1>&6
4451 for ac_hdr in readline/history.h
4453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_hdr" >&5
4456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 cat > conftest.$ac_ext <<EOF
4460 #line 4461 "configure"
4461 #include "confdefs.h"
4464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4465 { (eval echo configure:4466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4467 if test -z "$ac_err"; then
4469 eval "ac_cv_header_$ac_safe=yes"
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4475 eval "ac_cv_header_$ac_safe=no"
4479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4482 cat >> confdefs.h <<EOF
4483 #define $ac_tr_hdr 1
4487 echo "$ac_t""no" 1>&6
4492 for ac_hdr in readline.h readline/readline.h
4494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4496 echo "configure:4497: checking for $ac_hdr" >&5
4497 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4506 { (eval echo configure:4507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4508 if test -z "$ac_err"; then
4510 eval "ac_cv_header_$ac_safe=yes"
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 eval "ac_cv_header_$ac_safe=no"
4520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4521 echo "$ac_t""yes" 1>&6
4522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4523 cat >> confdefs.h <<EOF
4524 #define $ac_tr_hdr 1
4527 for termlib in ncurses curses termcap terminfo termlib; do
4528 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4529 echo "configure:4530: checking for tgetent in -l${termlib}" >&5
4530 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 ac_save_LIBS="$LIBS"
4535 LIBS="-l${termlib} $LIBS"
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 /* Override any gcc2 internal prototype to avoid an error. */
4540 /* We use char because int might match the return type of a gcc2
4541 builtin and then its argument prototype would still apply. */
4548 if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4550 eval "ac_cv_lib_$ac_lib_var=yes"
4552 echo "configure: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4555 eval "ac_cv_lib_$ac_lib_var=no"
4558 LIBS="$ac_save_LIBS"
4561 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4562 echo "$ac_t""yes" 1>&6
4563 TERMLIBS="-l${termlib}"; break
4565 echo "$ac_t""no" 1>&6
4569 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4570 echo "configure:4571: checking for rl_callback_handler_install in -lreadline" >&5
4571 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 ac_save_LIBS="$LIBS"
4576 LIBS="-lreadline $TERMLIBS $LIBS"
4577 cat > conftest.$ac_ext <<EOF
4578 #line 4579 "configure"
4579 #include "confdefs.h"
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char rl_callback_handler_install();
4586 rl_callback_handler_install()
4589 if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591 eval "ac_cv_lib_$ac_lib_var=yes"
4593 echo "configure: failed program was:" >&5
4594 cat conftest.$ac_ext >&5
4596 eval "ac_cv_lib_$ac_lib_var=no"
4599 LIBS="$ac_save_LIBS"
4602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4603 echo "$ac_t""yes" 1>&6
4604 TERMLDFLAGS="-L$with_readline/lib"
4605 TERMCPPFLAGS="-I$with_readline/include"
4606 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4607 TERMLIBS="-lreadline $TERMLIBS"
4608 cat >> confdefs.h <<\EOF
4609 #define HAVE_LIBREADLINE 1
4614 echo "$ac_t""no" 1>&6
4615 TERMLIBS= CPPFLAGS=$_cppflags
4619 echo "$ac_t""no" 1>&6
4628 echo "$ac_t""no" 1>&6
4635 # The readline API changed slightly from readline3 to readline4, so
4636 # code will generate warnings on one of them unless we have a few
4638 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
4639 echo "configure:4640: checking for rl_completion_matches in -lreadline" >&5
4640 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
4641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 ac_save_LIBS="$LIBS"
4645 LIBS="-lreadline $TERMLIBS $LIBS"
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4652 char rl_completion_matches();
4655 rl_completion_matches()
4658 if { (eval echo configure:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4673 cat >> confdefs.h <<\EOF
4674 #define HAVE_NEW_LIBREADLINE 1
4678 echo "$ac_t""no" 1>&6
4682 # The following test taken from the cvs sources
4683 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4684 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4685 # libsocket.so which has a bad implementation of gethostbyname (it
4686 # only looks in /etc/hosts), so we only look for -lsocket if we need
4688 for ac_func in connect
4690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4691 echo "configure:4692: checking for $ac_func" >&5
4692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4693 echo $ac_n "(cached) $ac_c" 1>&6
4695 cat > conftest.$ac_ext <<EOF
4696 #line 4697 "configure"
4697 #include "confdefs.h"
4698 /* System header to define __stub macros and hopefully few prototypes,
4699 which can conflict with char $ac_func(); below. */
4701 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */
4708 /* The GNU C library defines this for functions which it implements
4709 to always fail with ENOSYS. Some functions are actually named
4710 something starting with __ and the normal name is an alias. */
4711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 eval "ac_cv_func_$ac_func=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 eval "ac_cv_func_$ac_func=no"
4731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4734 cat >> confdefs.h <<EOF
4735 #define $ac_tr_func 1
4739 echo "$ac_t""no" 1>&6
4743 if test x"$ac_cv_func_connect" = x"no"; then
4746 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4747 echo "configure:4748: checking for printf in -lnsl_s" >&5
4748 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4749 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4750 echo $ac_n "(cached) $ac_c" 1>&6
4752 ac_save_LIBS="$LIBS"
4753 LIBS="-lnsl_s $LIBS"
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* Override any gcc2 internal prototype to avoid an error. */
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4766 if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4768 eval "ac_cv_lib_$ac_lib_var=yes"
4770 echo "configure: failed program was:" >&5
4771 cat conftest.$ac_ext >&5
4773 eval "ac_cv_lib_$ac_lib_var=no"
4776 LIBS="$ac_save_LIBS"
4779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4782 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4783 cat >> confdefs.h <<EOF
4784 #define $ac_tr_lib 1
4787 LIBS="-lnsl_s $LIBS"
4790 echo "$ac_t""no" 1>&6
4796 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4797 echo "configure:4798: checking for printf in -lnsl" >&5
4798 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 ac_save_LIBS="$LIBS"
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4807 /* Override any gcc2 internal prototype to avoid an error. */
4808 /* We use char because int might match the return type of a gcc2
4809 builtin and then its argument prototype would still apply. */
4816 if { (eval echo configure:4817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818 eval "ac_cv_lib_$ac_lib_var=yes"
4820 echo "configure: failed program was:" >&5
4821 cat conftest.$ac_ext >&5
4823 eval "ac_cv_lib_$ac_lib_var=no"
4826 LIBS="$ac_save_LIBS"
4829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4830 echo "$ac_t""yes" 1>&6
4831 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4833 cat >> confdefs.h <<EOF
4834 #define $ac_tr_lib 1
4840 echo "$ac_t""no" 1>&6
4846 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4847 echo "configure:4848: checking for connect in -lsocket" >&5
4848 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4850 echo $ac_n "(cached) $ac_c" 1>&6
4852 ac_save_LIBS="$LIBS"
4853 LIBS="-lsocket $LIBS"
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* Override any gcc2 internal prototype to avoid an error. */
4858 /* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 eval "ac_cv_lib_$ac_lib_var=yes"
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 eval "ac_cv_lib_$ac_lib_var=no"
4876 LIBS="$ac_save_LIBS"
4879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4880 echo "$ac_t""yes" 1>&6
4881 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4882 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4883 cat >> confdefs.h <<EOF
4884 #define $ac_tr_lib 1
4887 LIBS="-lsocket $LIBS"
4890 echo "$ac_t""no" 1>&6
4896 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4897 echo "configure:4898: checking for connect in -linet" >&5
4898 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 ac_save_LIBS="$LIBS"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4923 eval "ac_cv_lib_$ac_lib_var=no"
4926 LIBS="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4932 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4933 cat >> confdefs.h <<EOF
4934 #define $ac_tr_lib 1
4940 echo "$ac_t""no" 1>&6
4944 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4945 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4946 # ac_cv_func_connect=yes
4947 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4948 cat >> confdefs.h <<\EOF
4949 #define HAVE_CONNECT 1
4955 ###############################################
4956 # test for where we get get_yp_default_domain() from
4957 for ac_func in yp_get_default_domain
4959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4960 echo "configure:4961: checking for $ac_func" >&5
4961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* System header to define __stub macros and hopefully few prototypes,
4968 which can conflict with char $ac_func(); below. */
4970 /* Override any gcc2 internal prototype to avoid an error. */
4971 /* We use char because int might match the return type of a gcc2
4972 builtin and then its argument prototype would still apply. */
4977 /* The GNU C library defines this for functions which it implements
4978 to always fail with ENOSYS. Some functions are actually named
4979 something starting with __ and the normal name is an alias. */
4980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4990 eval "ac_cv_func_$ac_func=yes"
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4995 eval "ac_cv_func_$ac_func=no"
5000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5001 echo "$ac_t""yes" 1>&6
5002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5003 cat >> confdefs.h <<EOF
5004 #define $ac_tr_func 1
5008 echo "$ac_t""no" 1>&6
5012 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5013 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5014 echo "configure:5015: checking for yp_get_default_domain in -lnsl" >&5
5015 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 ac_save_LIBS="$LIBS"
5021 cat > conftest.$ac_ext <<EOF
5022 #line 5023 "configure"
5023 #include "confdefs.h"
5024 /* Override any gcc2 internal prototype to avoid an error. */
5025 /* We use char because int might match the return type of a gcc2
5026 builtin and then its argument prototype would still apply. */
5027 char yp_get_default_domain();
5030 yp_get_default_domain()
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035 eval "ac_cv_lib_$ac_lib_var=yes"
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5040 eval "ac_cv_lib_$ac_lib_var=no"
5043 LIBS="$ac_save_LIBS"
5046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5047 echo "$ac_t""yes" 1>&6
5049 cat >> confdefs.h <<\EOF
5050 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5054 echo "$ac_t""no" 1>&6
5059 # Check if we have execl, if not we need to compile smbrun.
5060 for ac_func in execl
5062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5063 echo "configure:5064: checking for $ac_func" >&5
5064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5065 echo $ac_n "(cached) $ac_c" 1>&6
5067 cat > conftest.$ac_ext <<EOF
5068 #line 5069 "configure"
5069 #include "confdefs.h"
5070 /* System header to define __stub macros and hopefully few prototypes,
5071 which can conflict with char $ac_func(); below. */
5073 /* Override any gcc2 internal prototype to avoid an error. */
5074 /* We use char because int might match the return type of a gcc2
5075 builtin and then its argument prototype would still apply. */
5080 /* The GNU C library defines this for functions which it implements
5081 to always fail with ENOSYS. Some functions are actually named
5082 something starting with __ and the normal name is an alias. */
5083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5093 eval "ac_cv_func_$ac_func=yes"
5095 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5
5098 eval "ac_cv_func_$ac_func=no"
5103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5106 cat >> confdefs.h <<EOF
5107 #define $ac_tr_func 1
5111 echo "$ac_t""no" 1>&6
5115 if test x"$ac_cv_func_execl" = x"no"; then
5116 RUNPROG="bin/smbrun"
5121 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
5123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5124 echo "configure:5125: checking for $ac_func" >&5
5125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5126 echo $ac_n "(cached) $ac_c" 1>&6
5128 cat > conftest.$ac_ext <<EOF
5129 #line 5130 "configure"
5130 #include "confdefs.h"
5131 /* System header to define __stub macros and hopefully few prototypes,
5132 which can conflict with char $ac_func(); below. */
5134 /* Override any gcc2 internal prototype to avoid an error. */
5135 /* We use char because int might match the return type of a gcc2
5136 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 eval "ac_cv_func_$ac_func=yes"
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 eval "ac_cv_func_$ac_func=no"
5164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5167 cat >> confdefs.h <<EOF
5168 #define $ac_tr_func 1
5172 echo "$ac_t""no" 1>&6
5176 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat
5178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5179 echo "configure:5180: checking for $ac_func" >&5
5180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5183 cat > conftest.$ac_ext <<EOF
5184 #line 5185 "configure"
5185 #include "confdefs.h"
5186 /* System header to define __stub macros and hopefully few prototypes,
5187 which can conflict with char $ac_func(); below. */
5189 /* Override any gcc2 internal prototype to avoid an error. */
5190 /* We use char because int might match the return type of a gcc2
5191 builtin and then its argument prototype would still apply. */
5196 /* The GNU C library defines this for functions which it implements
5197 to always fail with ENOSYS. Some functions are actually named
5198 something starting with __ and the normal name is an alias. */
5199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209 eval "ac_cv_func_$ac_func=yes"
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 eval "ac_cv_func_$ac_func=no"
5219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5220 echo "$ac_t""yes" 1>&6
5221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5222 cat >> confdefs.h <<EOF
5223 #define $ac_tr_func 1
5227 echo "$ac_t""no" 1>&6
5231 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5234 echo "configure:5235: checking for $ac_func" >&5
5235 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5236 echo $ac_n "(cached) $ac_c" 1>&6
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5241 /* System header to define __stub macros and hopefully few prototypes,
5242 which can conflict with char $ac_func(); below. */
5244 /* Override any gcc2 internal prototype to avoid an error. */
5245 /* We use char because int might match the return type of a gcc2
5246 builtin and then its argument prototype would still apply. */
5251 /* The GNU C library defines this for functions which it implements
5252 to always fail with ENOSYS. Some functions are actually named
5253 something starting with __ and the normal name is an alias. */
5254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5262 if { (eval echo configure:5263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5264 eval "ac_cv_func_$ac_func=yes"
5266 echo "configure: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 eval "ac_cv_func_$ac_func=no"
5274 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5275 echo "$ac_t""yes" 1>&6
5276 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5277 cat >> confdefs.h <<EOF
5278 #define $ac_tr_func 1
5282 echo "$ac_t""no" 1>&6
5286 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_func" >&5
5290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 /* System header to define __stub macros and hopefully few prototypes,
5297 which can conflict with char $ac_func(); below. */
5299 /* Override any gcc2 internal prototype to avoid an error. */
5300 /* We use char because int might match the return type of a gcc2
5301 builtin and then its argument prototype would still apply. */
5306 /* The GNU C library defines this for functions which it implements
5307 to always fail with ENOSYS. Some functions are actually named
5308 something starting with __ and the normal name is an alias. */
5309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5317 if { (eval echo configure:5318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5319 eval "ac_cv_func_$ac_func=yes"
5321 echo "configure: failed program was:" >&5
5322 cat conftest.$ac_ext >&5
5324 eval "ac_cv_func_$ac_func=no"
5329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5330 echo "$ac_t""yes" 1>&6
5331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5332 cat >> confdefs.h <<EOF
5333 #define $ac_tr_func 1
5337 echo "$ac_t""no" 1>&6
5341 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5344 echo "configure:5345: checking for $ac_func" >&5
5345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 cat > conftest.$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5351 /* System header to define __stub macros and hopefully few prototypes,
5352 which can conflict with char $ac_func(); below. */
5354 /* Override any gcc2 internal prototype to avoid an error. */
5355 /* We use char because int might match the return type of a gcc2
5356 builtin and then its argument prototype would still apply. */
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5372 if { (eval echo configure:5373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5374 eval "ac_cv_func_$ac_func=yes"
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5379 eval "ac_cv_func_$ac_func=no"
5384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5385 echo "$ac_t""yes" 1>&6
5386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5387 cat >> confdefs.h <<EOF
5388 #define $ac_tr_func 1
5392 echo "$ac_t""no" 1>&6
5396 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5399 echo "configure:5400: checking for $ac_func" >&5
5400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5401 echo $ac_n "(cached) $ac_c" 1>&6
5403 cat > conftest.$ac_ext <<EOF
5404 #line 5405 "configure"
5405 #include "confdefs.h"
5406 /* System header to define __stub macros and hopefully few prototypes,
5407 which can conflict with char $ac_func(); below. */
5409 /* Override any gcc2 internal prototype to avoid an error. */
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5416 /* The GNU C library defines this for functions which it implements
5417 to always fail with ENOSYS. Some functions are actually named
5418 something starting with __ and the normal name is an alias. */
5419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 eval "ac_cv_func_$ac_func=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 eval "ac_cv_func_$ac_func=no"
5439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5440 echo "$ac_t""yes" 1>&6
5441 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5442 cat >> confdefs.h <<EOF
5443 #define $ac_tr_func 1
5447 echo "$ac_t""no" 1>&6
5451 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5454 echo "configure:5455: checking for $ac_func" >&5
5455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5461 /* System header to define __stub macros and hopefully few prototypes,
5462 which can conflict with char $ac_func(); below. */
5464 /* Override any gcc2 internal prototype to avoid an error. */
5465 /* We use char because int might match the return type of a gcc2
5466 builtin and then its argument prototype would still apply. */
5471 /* The GNU C library defines this for functions which it implements
5472 to always fail with ENOSYS. Some functions are actually named
5473 something starting with __ and the normal name is an alias. */
5474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5484 eval "ac_cv_func_$ac_func=yes"
5486 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5
5489 eval "ac_cv_func_$ac_func=no"
5494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5495 echo "$ac_t""yes" 1>&6
5496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5497 cat >> confdefs.h <<EOF
5498 #define $ac_tr_func 1
5502 echo "$ac_t""no" 1>&6
5506 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5509 echo "configure:5510: checking for $ac_func" >&5
5510 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5516 /* System header to define __stub macros and hopefully few prototypes,
5517 which can conflict with char $ac_func(); below. */
5519 /* Override any gcc2 internal prototype to avoid an error. */
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5526 /* The GNU C library defines this for functions which it implements
5527 to always fail with ENOSYS. Some functions are actually named
5528 something starting with __ and the normal name is an alias. */
5529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5539 eval "ac_cv_func_$ac_func=yes"
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5544 eval "ac_cv_func_$ac_func=no"
5549 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5550 echo "$ac_t""yes" 1>&6
5551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5552 cat >> confdefs.h <<EOF
5553 #define $ac_tr_func 1
5557 echo "$ac_t""no" 1>&6
5561 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5564 echo "configure:5565: checking for $ac_func" >&5
5565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5566 echo $ac_n "(cached) $ac_c" 1>&6
5568 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure"
5570 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes,
5572 which can conflict with char $ac_func(); below. */
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 /* We use char because int might match the return type of a gcc2
5576 builtin and then its argument prototype would still apply. */
5581 /* The GNU C library defines this for functions which it implements
5582 to always fail with ENOSYS. Some functions are actually named
5583 something starting with __ and the normal name is an alias. */
5584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5594 eval "ac_cv_func_$ac_func=yes"
5596 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5
5599 eval "ac_cv_func_$ac_func=no"
5604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5607 cat >> confdefs.h <<EOF
5608 #define $ac_tr_func 1
5612 echo "$ac_t""no" 1>&6
5616 for ac_func in syslog vsyslog
5618 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5619 echo "configure:5620: checking for $ac_func" >&5
5620 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5621 echo $ac_n "(cached) $ac_c" 1>&6
5623 cat > conftest.$ac_ext <<EOF
5624 #line 5625 "configure"
5625 #include "confdefs.h"
5626 /* System header to define __stub macros and hopefully few prototypes,
5627 which can conflict with char $ac_func(); below. */
5629 /* Override any gcc2 internal prototype to avoid an error. */
5630 /* We use char because int might match the return type of a gcc2
5631 builtin and then its argument prototype would still apply. */
5636 /* The GNU C library defines this for functions which it implements
5637 to always fail with ENOSYS. Some functions are actually named
5638 something starting with __ and the normal name is an alias. */
5639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5647 if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5649 eval "ac_cv_func_$ac_func=yes"
5651 echo "configure: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5654 eval "ac_cv_func_$ac_func=no"
5659 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5660 echo "$ac_t""yes" 1>&6
5661 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5662 cat >> confdefs.h <<EOF
5663 #define $ac_tr_func 1
5667 echo "$ac_t""no" 1>&6
5671 # setbuffer is needed for smbtorture
5672 for ac_func in setbuffer
5674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5675 echo "configure:5676: checking for $ac_func" >&5
5676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5677 echo $ac_n "(cached) $ac_c" 1>&6
5679 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure"
5681 #include "confdefs.h"
5682 /* System header to define __stub macros and hopefully few prototypes,
5683 which can conflict with char $ac_func(); below. */
5685 /* Override any gcc2 internal prototype to avoid an error. */
5686 /* We use char because int might match the return type of a gcc2
5687 builtin and then its argument prototype would still apply. */
5692 /* The GNU C library defines this for functions which it implements
5693 to always fail with ENOSYS. Some functions are actually named
5694 something starting with __ and the normal name is an alias. */
5695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5703 if { (eval echo configure:5704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5705 eval "ac_cv_func_$ac_func=yes"
5707 echo "configure: failed program was:" >&5
5708 cat conftest.$ac_ext >&5
5710 eval "ac_cv_func_$ac_func=no"
5715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5716 echo "$ac_t""yes" 1>&6
5717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5718 cat >> confdefs.h <<EOF
5719 #define $ac_tr_func 1
5723 echo "$ac_t""no" 1>&6
5728 # syscall() is needed for smbwrapper.
5729 for ac_func in syscall
5731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5732 echo "configure:5733: checking for $ac_func" >&5
5733 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5734 echo $ac_n "(cached) $ac_c" 1>&6
5736 cat > conftest.$ac_ext <<EOF
5737 #line 5738 "configure"
5738 #include "confdefs.h"
5739 /* System header to define __stub macros and hopefully few prototypes,
5740 which can conflict with char $ac_func(); below. */
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */
5749 /* The GNU C library defines this for functions which it implements
5750 to always fail with ENOSYS. Some functions are actually named
5751 something starting with __ and the normal name is an alias. */
5752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5760 if { (eval echo configure:5761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 eval "ac_cv_func_$ac_func=yes"
5764 echo "configure: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 eval "ac_cv_func_$ac_func=no"
5772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5773 echo "$ac_t""yes" 1>&6
5774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5775 cat >> confdefs.h <<EOF
5776 #define $ac_tr_func 1
5780 echo "$ac_t""no" 1>&6
5785 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5787 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5788 echo "configure:5789: checking for $ac_func" >&5
5789 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5790 echo $ac_n "(cached) $ac_c" 1>&6
5792 cat > conftest.$ac_ext <<EOF
5793 #line 5794 "configure"
5794 #include "confdefs.h"
5795 /* System header to define __stub macros and hopefully few prototypes,
5796 which can conflict with char $ac_func(); below. */
5798 /* Override any gcc2 internal prototype to avoid an error. */
5799 /* We use char because int might match the return type of a gcc2
5800 builtin and then its argument prototype would still apply. */
5805 /* The GNU C library defines this for functions which it implements
5806 to always fail with ENOSYS. Some functions are actually named
5807 something starting with __ and the normal name is an alias. */
5808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5816 if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5818 eval "ac_cv_func_$ac_func=yes"
5820 echo "configure: failed program was:" >&5
5821 cat conftest.$ac_ext >&5
5823 eval "ac_cv_func_$ac_func=no"
5828 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5829 echo "$ac_t""yes" 1>&6
5830 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5831 cat >> confdefs.h <<EOF
5832 #define $ac_tr_func 1
5836 echo "$ac_t""no" 1>&6
5840 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5843 echo "configure:5844: checking for $ac_func" >&5
5844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 cat > conftest.$ac_ext <<EOF
5848 #line 5849 "configure"
5849 #include "confdefs.h"
5850 /* System header to define __stub macros and hopefully few prototypes,
5851 which can conflict with char $ac_func(); below. */
5853 /* Override any gcc2 internal prototype to avoid an error. */
5854 /* We use char because int might match the return type of a gcc2
5855 builtin and then its argument prototype would still apply. */
5860 /* The GNU C library defines this for functions which it implements
5861 to always fail with ENOSYS. Some functions are actually named
5862 something starting with __ and the normal name is an alias. */
5863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5871 if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5873 eval "ac_cv_func_$ac_func=yes"
5875 echo "configure: failed program was:" >&5
5876 cat conftest.$ac_ext >&5
5878 eval "ac_cv_func_$ac_func=no"
5883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5884 echo "$ac_t""yes" 1>&6
5885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5886 cat >> confdefs.h <<EOF
5887 #define $ac_tr_func 1
5891 echo "$ac_t""no" 1>&6
5895 for ac_func in __getcwd _getcwd
5897 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5898 echo "configure:5899: checking for $ac_func" >&5
5899 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 cat > conftest.$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5905 /* System header to define __stub macros and hopefully few prototypes,
5906 which can conflict with char $ac_func(); below. */
5908 /* Override any gcc2 internal prototype to avoid an error. */
5909 /* We use char because int might match the return type of a gcc2
5910 builtin and then its argument prototype would still apply. */
5915 /* The GNU C library defines this for functions which it implements
5916 to always fail with ENOSYS. Some functions are actually named
5917 something starting with __ and the normal name is an alias. */
5918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5926 if { (eval echo configure:5927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928 eval "ac_cv_func_$ac_func=yes"
5930 echo "configure: failed program was:" >&5
5931 cat conftest.$ac_ext >&5
5933 eval "ac_cv_func_$ac_func=no"
5938 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5939 echo "$ac_t""yes" 1>&6
5940 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5941 cat >> confdefs.h <<EOF
5942 #define $ac_tr_func 1
5946 echo "$ac_t""no" 1>&6
5950 for ac_func in __xstat __fxstat __lxstat
5952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5953 echo "configure:5954: checking for $ac_func" >&5
5954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5955 echo $ac_n "(cached) $ac_c" 1>&6
5957 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure"
5959 #include "confdefs.h"
5960 /* System header to define __stub macros and hopefully few prototypes,
5961 which can conflict with char $ac_func(); below. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5970 /* The GNU C library defines this for functions which it implements
5971 to always fail with ENOSYS. Some functions are actually named
5972 something starting with __ and the normal name is an alias. */
5973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5981 if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5983 eval "ac_cv_func_$ac_func=yes"
5985 echo "configure: failed program was:" >&5
5986 cat conftest.$ac_ext >&5
5988 eval "ac_cv_func_$ac_func=no"
5993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5994 echo "$ac_t""yes" 1>&6
5995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5996 cat >> confdefs.h <<EOF
5997 #define $ac_tr_func 1
6001 echo "$ac_t""no" 1>&6
6005 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6008 echo "configure:6009: checking for $ac_func" >&5
6009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6
6012 cat > conftest.$ac_ext <<EOF
6013 #line 6014 "configure"
6014 #include "confdefs.h"
6015 /* System header to define __stub macros and hopefully few prototypes,
6016 which can conflict with char $ac_func(); below. */
6018 /* Override any gcc2 internal prototype to avoid an error. */
6019 /* We use char because int might match the return type of a gcc2
6020 builtin and then its argument prototype would still apply. */
6025 /* The GNU C library defines this for functions which it implements
6026 to always fail with ENOSYS. Some functions are actually named
6027 something starting with __ and the normal name is an alias. */
6028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6036 if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6038 eval "ac_cv_func_$ac_func=yes"
6040 echo "configure: failed program was:" >&5
6041 cat conftest.$ac_ext >&5
6043 eval "ac_cv_func_$ac_func=no"
6048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6049 echo "$ac_t""yes" 1>&6
6050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6051 cat >> confdefs.h <<EOF
6052 #define $ac_tr_func 1
6056 echo "$ac_t""no" 1>&6
6060 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6063 echo "configure:6064: checking for $ac_func" >&5
6064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 cat > conftest.$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6070 /* System header to define __stub macros and hopefully few prototypes,
6071 which can conflict with char $ac_func(); below. */
6073 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6080 /* The GNU C library defines this for functions which it implements
6081 to always fail with ENOSYS. Some functions are actually named
6082 something starting with __ and the normal name is an alias. */
6083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6093 eval "ac_cv_func_$ac_func=yes"
6095 echo "configure: failed program was:" >&5
6096 cat conftest.$ac_ext >&5
6098 eval "ac_cv_func_$ac_func=no"
6103 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6104 echo "$ac_t""yes" 1>&6
6105 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6106 cat >> confdefs.h <<EOF
6107 #define $ac_tr_func 1
6111 echo "$ac_t""no" 1>&6
6115 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6118 echo "configure:6119: checking for $ac_func" >&5
6119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6120 echo $ac_n "(cached) $ac_c" 1>&6
6122 cat > conftest.$ac_ext <<EOF
6123 #line 6124 "configure"
6124 #include "confdefs.h"
6125 /* System header to define __stub macros and hopefully few prototypes,
6126 which can conflict with char $ac_func(); below. */
6128 /* Override any gcc2 internal prototype to avoid an error. */
6129 /* We use char because int might match the return type of a gcc2
6130 builtin and then its argument prototype would still apply. */
6135 /* The GNU C library defines this for functions which it implements
6136 to always fail with ENOSYS. Some functions are actually named
6137 something starting with __ and the normal name is an alias. */
6138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6148 eval "ac_cv_func_$ac_func=yes"
6150 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5
6153 eval "ac_cv_func_$ac_func=no"
6158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6159 echo "$ac_t""yes" 1>&6
6160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6161 cat >> confdefs.h <<EOF
6162 #define $ac_tr_func 1
6166 echo "$ac_t""no" 1>&6
6170 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6173 echo "configure:6174: checking for $ac_func" >&5
6174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6175 echo $ac_n "(cached) $ac_c" 1>&6
6177 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6180 /* System header to define __stub macros and hopefully few prototypes,
6181 which can conflict with char $ac_func(); below. */
6183 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6190 /* The GNU C library defines this for functions which it implements
6191 to always fail with ENOSYS. Some functions are actually named
6192 something starting with __ and the normal name is an alias. */
6193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203 eval "ac_cv_func_$ac_func=yes"
6205 echo "configure: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 eval "ac_cv_func_$ac_func=no"
6213 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6214 echo "$ac_t""yes" 1>&6
6215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6216 cat >> confdefs.h <<EOF
6217 #define $ac_tr_func 1
6221 echo "$ac_t""no" 1>&6
6225 for ac_func in _write __write _fork __fork
6227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6228 echo "configure:6229: checking for $ac_func" >&5
6229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6230 echo $ac_n "(cached) $ac_c" 1>&6
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 /* System header to define __stub macros and hopefully few prototypes,
6236 which can conflict with char $ac_func(); below. */
6238 /* Override any gcc2 internal prototype to avoid an error. */
6239 /* We use char because int might match the return type of a gcc2
6240 builtin and then its argument prototype would still apply. */
6245 /* The GNU C library defines this for functions which it implements
6246 to always fail with ENOSYS. Some functions are actually named
6247 something starting with __ and the normal name is an alias. */
6248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6256 if { (eval echo configure:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6258 eval "ac_cv_func_$ac_func=yes"
6260 echo "configure: failed program was:" >&5
6261 cat conftest.$ac_ext >&5
6263 eval "ac_cv_func_$ac_func=no"
6268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6269 echo "$ac_t""yes" 1>&6
6270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6271 cat >> confdefs.h <<EOF
6272 #define $ac_tr_func 1
6276 echo "$ac_t""no" 1>&6
6280 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6283 echo "configure:6284: checking for $ac_func" >&5
6284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6285 echo $ac_n "(cached) $ac_c" 1>&6
6287 cat > conftest.$ac_ext <<EOF
6288 #line 6289 "configure"
6289 #include "confdefs.h"
6290 /* System header to define __stub macros and hopefully few prototypes,
6291 which can conflict with char $ac_func(); below. */
6293 /* Override any gcc2 internal prototype to avoid an error. */
6294 /* We use char because int might match the return type of a gcc2
6295 builtin and then its argument prototype would still apply. */
6300 /* The GNU C library defines this for functions which it implements
6301 to always fail with ENOSYS. Some functions are actually named
6302 something starting with __ and the normal name is an alias. */
6303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6311 if { (eval echo configure:6312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6313 eval "ac_cv_func_$ac_func=yes"
6315 echo "configure: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6318 eval "ac_cv_func_$ac_func=no"
6323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6324 echo "$ac_t""yes" 1>&6
6325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6326 cat >> confdefs.h <<EOF
6327 #define $ac_tr_func 1
6331 echo "$ac_t""no" 1>&6
6335 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6338 echo "configure:6339: checking for $ac_func" >&5
6339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6340 echo $ac_n "(cached) $ac_c" 1>&6
6342 cat > conftest.$ac_ext <<EOF
6343 #line 6344 "configure"
6344 #include "confdefs.h"
6345 /* System header to define __stub macros and hopefully few prototypes,
6346 which can conflict with char $ac_func(); below. */
6348 /* Override any gcc2 internal prototype to avoid an error. */
6349 /* We use char because int might match the return type of a gcc2
6350 builtin and then its argument prototype would still apply. */
6355 /* The GNU C library defines this for functions which it implements
6356 to always fail with ENOSYS. Some functions are actually named
6357 something starting with __ and the normal name is an alias. */
6358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6366 if { (eval echo configure:6367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6368 eval "ac_cv_func_$ac_func=yes"
6370 echo "configure: failed program was:" >&5
6371 cat conftest.$ac_ext >&5
6373 eval "ac_cv_func_$ac_func=no"
6378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6379 echo "$ac_t""yes" 1>&6
6380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6381 cat >> confdefs.h <<EOF
6382 #define $ac_tr_func 1
6386 echo "$ac_t""no" 1>&6
6390 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6393 echo "configure:6394: checking for $ac_func" >&5
6394 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 cat > conftest.$ac_ext <<EOF
6398 #line 6399 "configure"
6399 #include "confdefs.h"
6400 /* System header to define __stub macros and hopefully few prototypes,
6401 which can conflict with char $ac_func(); below. */
6403 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6410 /* The GNU C library defines this for functions which it implements
6411 to always fail with ENOSYS. Some functions are actually named
6412 something starting with __ and the normal name is an alias. */
6413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 if { (eval echo configure:6422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6423 eval "ac_cv_func_$ac_func=yes"
6425 echo "configure: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6428 eval "ac_cv_func_$ac_func=no"
6433 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6434 echo "$ac_t""yes" 1>&6
6435 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6436 cat >> confdefs.h <<EOF
6437 #define $ac_tr_func 1
6441 echo "$ac_t""no" 1>&6
6445 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6448 echo "configure:6449: checking for $ac_func" >&5
6449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6450 echo $ac_n "(cached) $ac_c" 1>&6
6452 cat > conftest.$ac_ext <<EOF
6453 #line 6454 "configure"
6454 #include "confdefs.h"
6455 /* System header to define __stub macros and hopefully few prototypes,
6456 which can conflict with char $ac_func(); below. */
6458 /* Override any gcc2 internal prototype to avoid an error. */
6459 /* We use char because int might match the return type of a gcc2
6460 builtin and then its argument prototype would still apply. */
6465 /* The GNU C library defines this for functions which it implements
6466 to always fail with ENOSYS. Some functions are actually named
6467 something starting with __ and the normal name is an alias. */
6468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6476 if { (eval echo configure:6477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6478 eval "ac_cv_func_$ac_func=yes"
6480 echo "configure: failed program was:" >&5
6481 cat conftest.$ac_ext >&5
6483 eval "ac_cv_func_$ac_func=no"
6488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6489 echo "$ac_t""yes" 1>&6
6490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6491 cat >> confdefs.h <<EOF
6492 #define $ac_tr_func 1
6496 echo "$ac_t""no" 1>&6
6500 for ac_func in open64 _open64 __open64 creat64
6502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6503 echo "configure:6504: checking for $ac_func" >&5
6504 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 /* System header to define __stub macros and hopefully few prototypes,
6511 which can conflict with char $ac_func(); below. */
6513 /* Override any gcc2 internal prototype to avoid an error. */
6514 /* We use char because int might match the return type of a gcc2
6515 builtin and then its argument prototype would still apply. */
6520 /* The GNU C library defines this for functions which it implements
6521 to always fail with ENOSYS. Some functions are actually named
6522 something starting with __ and the normal name is an alias. */
6523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6533 eval "ac_cv_func_$ac_func=yes"
6535 echo "configure: failed program was:" >&5
6536 cat conftest.$ac_ext >&5
6538 eval "ac_cv_func_$ac_func=no"
6543 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6544 echo "$ac_t""yes" 1>&6
6545 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6546 cat >> confdefs.h <<EOF
6547 #define $ac_tr_func 1
6551 echo "$ac_t""no" 1>&6
6557 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6560 if test x$ac_cv_func_stat64 = xno ; then
6561 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6562 echo "configure:6563: checking for stat64 in <sys/stat.h>" >&5
6563 cat > conftest.$ac_ext <<EOF
6564 #line 6565 "configure"
6565 #include "confdefs.h"
6567 #if defined(HAVE_UNISTD_H)
6570 #include <sys/stat.h>
6573 struct stat64 st64; exit(stat64(".",&st64));
6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 ac_cv_func_stat64=yes
6580 echo "configure: failed program was:" >&5
6581 cat conftest.$ac_ext >&5
6584 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6585 if test x$ac_cv_func_stat64 = xyes ; then
6586 cat >> confdefs.h <<\EOF
6587 #define HAVE_STAT64 1
6593 if test x$ac_cv_func_lstat64 = xno ; then
6594 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6595 echo "configure:6596: checking for lstat64 in <sys/stat.h>" >&5
6596 cat > conftest.$ac_ext <<EOF
6597 #line 6598 "configure"
6598 #include "confdefs.h"
6600 #if defined(HAVE_UNISTD_H)
6603 #include <sys/stat.h>
6606 struct stat64 st64; exit(lstat64(".",&st64));
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 ac_cv_func_lstat64=yes
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6617 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6618 if test x$ac_cv_func_lstat64 = xyes ; then
6619 cat >> confdefs.h <<\EOF
6620 #define HAVE_LSTAT64 1
6626 if test x$ac_cv_func_fstat64 = xno ; then
6627 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6628 echo "configure:6629: checking for fstat64 in <sys/stat.h>" >&5
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6631 "configure"
6631 #include "confdefs.h"
6633 #if defined(HAVE_UNISTD_H)
6636 #include <sys/stat.h>
6639 struct stat64 st64; exit(fstat64(0,&st64));
6642 if { (eval echo configure:6643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6644 ac_cv_func_fstat64=yes
6646 echo "configure: failed program was:" >&5
6647 cat conftest.$ac_ext >&5
6650 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6651 if test x$ac_cv_func_fstat64 = xyes ; then
6652 cat >> confdefs.h <<\EOF
6653 #define HAVE_FSTAT64 1
6659 #####################################
6660 # we might need the resolv library on some systems
6661 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6662 echo "configure:6663: checking for dn_expand in -lresolv" >&5
6663 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 ac_save_LIBS="$LIBS"
6668 LIBS="-lresolv $LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_lib_$ac_lib_var=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_lib_$ac_lib_var=no"
6691 LIBS="$ac_save_LIBS"
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6698 cat >> confdefs.h <<EOF
6699 #define $ac_tr_lib 1
6702 LIBS="-lresolv $LIBS"
6705 echo "$ac_t""no" 1>&6
6710 # Check for the functions putprpwnam, set_auth_parameters,
6711 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6712 # Needed for OSF1 and HPUX.
6716 *-lsecurity*) for ac_func in putprpwnam
6718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6719 echo "configure:6720: checking for $ac_func" >&5
6720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6721 echo $ac_n "(cached) $ac_c" 1>&6
6723 cat > conftest.$ac_ext <<EOF
6724 #line 6725 "configure"
6725 #include "confdefs.h"
6726 /* System header to define __stub macros and hopefully few prototypes,
6727 which can conflict with char $ac_func(); below. */
6729 /* Override any gcc2 internal prototype to avoid an error. */
6730 /* We use char because int might match the return type of a gcc2
6731 builtin and then its argument prototype would still apply. */
6736 /* The GNU C library defines this for functions which it implements
6737 to always fail with ENOSYS. Some functions are actually named
6738 something starting with __ and the normal name is an alias. */
6739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6747 if { (eval echo configure:6748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6749 eval "ac_cv_func_$ac_func=yes"
6751 echo "configure: failed program was:" >&5
6752 cat conftest.$ac_ext >&5
6754 eval "ac_cv_func_$ac_func=no"
6759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6762 cat >> confdefs.h <<EOF
6763 #define $ac_tr_func 1
6767 echo "$ac_t""no" 1>&6
6771 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6772 echo "configure:6773: checking for putprpwnam in -lsecurity" >&5
6773 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 ac_save_LIBS="$LIBS"
6778 LIBS="-lsecurity $LIBS"
6779 cat > conftest.$ac_ext <<EOF
6780 #line 6781 "configure"
6781 #include "confdefs.h"
6782 /* Override any gcc2 internal prototype to avoid an error. */
6783 /* We use char because int might match the return type of a gcc2
6784 builtin and then its argument prototype would still apply. */
6791 if { (eval echo configure:6792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6793 eval "ac_cv_lib_$ac_lib_var=yes"
6795 echo "configure: failed program was:" >&5
6796 cat conftest.$ac_ext >&5
6798 eval "ac_cv_lib_$ac_lib_var=no"
6801 LIBS="$ac_save_LIBS"
6804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6806 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6808 cat >> confdefs.h <<EOF
6809 #define $ac_tr_lib 1
6812 LIBS="-lsecurity $LIBS"
6815 echo "$ac_t""no" 1>&6
6818 for ac_func in putprpwnam
6820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6821 echo "configure:6822: checking for $ac_func" >&5
6822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6823 echo $ac_n "(cached) $ac_c" 1>&6
6825 cat > conftest.$ac_ext <<EOF
6826 #line 6827 "configure"
6827 #include "confdefs.h"
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char $ac_func(); below. */
6831 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6838 /* The GNU C library defines this for functions which it implements
6839 to always fail with ENOSYS. Some functions are actually named
6840 something starting with __ and the normal name is an alias. */
6841 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6851 eval "ac_cv_func_$ac_func=yes"
6853 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6856 eval "ac_cv_func_$ac_func=no"
6861 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6862 echo "$ac_t""yes" 1>&6
6863 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6864 cat >> confdefs.h <<EOF
6865 #define $ac_tr_func 1
6869 echo "$ac_t""no" 1>&6
6877 *-lsec*) for ac_func in putprpwnam
6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_func" >&5
6881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func(); below. */
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6897 /* The GNU C library defines this for functions which it implements
6898 to always fail with ENOSYS. Some functions are actually named
6899 something starting with __ and the normal name is an alias. */
6900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6910 eval "ac_cv_func_$ac_func=yes"
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6915 eval "ac_cv_func_$ac_func=no"
6920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6923 cat >> confdefs.h <<EOF
6924 #define $ac_tr_func 1
6928 echo "$ac_t""no" 1>&6
6932 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6933 echo "configure:6934: checking for putprpwnam in -lsec" >&5
6934 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6936 echo $ac_n "(cached) $ac_c" 1>&6
6938 ac_save_LIBS="$LIBS"
6940 cat > conftest.$ac_ext <<EOF
6941 #line 6942 "configure"
6942 #include "confdefs.h"
6943 /* Override any gcc2 internal prototype to avoid an error. */
6944 /* We use char because int might match the return type of a gcc2
6945 builtin and then its argument prototype would still apply. */
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6954 eval "ac_cv_lib_$ac_lib_var=yes"
6956 echo "configure: failed program was:" >&5
6957 cat conftest.$ac_ext >&5
6959 eval "ac_cv_lib_$ac_lib_var=no"
6962 LIBS="$ac_save_LIBS"
6965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6966 echo "$ac_t""yes" 1>&6
6967 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6969 cat >> confdefs.h <<EOF
6970 #define $ac_tr_lib 1
6976 echo "$ac_t""no" 1>&6
6979 for ac_func in putprpwnam
6981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6982 echo "configure:6983: checking for $ac_func" >&5
6983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6984 echo $ac_n "(cached) $ac_c" 1>&6
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6989 /* System header to define __stub macros and hopefully few prototypes,
6990 which can conflict with char $ac_func(); below. */
6992 /* Override any gcc2 internal prototype to avoid an error. */
6993 /* We use char because int might match the return type of a gcc2
6994 builtin and then its argument prototype would still apply. */
6999 /* The GNU C library defines this for functions which it implements
7000 to always fail with ENOSYS. Some functions are actually named
7001 something starting with __ and the normal name is an alias. */
7002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7012 eval "ac_cv_func_$ac_func=yes"
7014 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5
7017 eval "ac_cv_func_$ac_func=no"
7022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7023 echo "$ac_t""yes" 1>&6
7024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7025 cat >> confdefs.h <<EOF
7026 #define $ac_tr_func 1
7030 echo "$ac_t""no" 1>&6
7039 *-lsecurity*) for ac_func in set_auth_parameters
7041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7042 echo "configure:7043: checking for $ac_func" >&5
7043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7044 echo $ac_n "(cached) $ac_c" 1>&6
7046 cat > conftest.$ac_ext <<EOF
7047 #line 7048 "configure"
7048 #include "confdefs.h"
7049 /* System header to define __stub macros and hopefully few prototypes,
7050 which can conflict with char $ac_func(); below. */
7052 /* Override any gcc2 internal prototype to avoid an error. */
7053 /* We use char because int might match the return type of a gcc2
7054 builtin and then its argument prototype would still apply. */
7059 /* The GNU C library defines this for functions which it implements
7060 to always fail with ENOSYS. Some functions are actually named
7061 something starting with __ and the normal name is an alias. */
7062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7072 eval "ac_cv_func_$ac_func=yes"
7074 echo "configure: failed program was:" >&5
7075 cat conftest.$ac_ext >&5
7077 eval "ac_cv_func_$ac_func=no"
7082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7083 echo "$ac_t""yes" 1>&6
7084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7085 cat >> confdefs.h <<EOF
7086 #define $ac_tr_func 1
7090 echo "$ac_t""no" 1>&6
7094 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7095 echo "configure:7096: checking for set_auth_parameters in -lsecurity" >&5
7096 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6
7100 ac_save_LIBS="$LIBS"
7101 LIBS="-lsecurity $LIBS"
7102 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure"
7104 #include "confdefs.h"
7105 /* Override any gcc2 internal prototype to avoid an error. */
7106 /* We use char because int might match the return type of a gcc2
7107 builtin and then its argument prototype would still apply. */
7108 char set_auth_parameters();
7111 set_auth_parameters()
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7116 eval "ac_cv_lib_$ac_lib_var=yes"
7118 echo "configure: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7121 eval "ac_cv_lib_$ac_lib_var=no"
7124 LIBS="$ac_save_LIBS"
7127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7128 echo "$ac_t""yes" 1>&6
7129 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7131 cat >> confdefs.h <<EOF
7132 #define $ac_tr_lib 1
7135 LIBS="-lsecurity $LIBS"
7138 echo "$ac_t""no" 1>&6
7141 for ac_func in set_auth_parameters
7143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7144 echo "configure:7145: checking for $ac_func" >&5
7145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7148 cat > conftest.$ac_ext <<EOF
7149 #line 7150 "configure"
7150 #include "confdefs.h"
7151 /* System header to define __stub macros and hopefully few prototypes,
7152 which can conflict with char $ac_func(); below. */
7154 /* Override any gcc2 internal prototype to avoid an error. */
7155 /* We use char because int might match the return type of a gcc2
7156 builtin and then its argument prototype would still apply. */
7161 /* The GNU C library defines this for functions which it implements
7162 to always fail with ENOSYS. Some functions are actually named
7163 something starting with __ and the normal name is an alias. */
7164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 eval "ac_cv_func_$ac_func=yes"
7176 echo "configure: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7179 eval "ac_cv_func_$ac_func=no"
7184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7187 cat >> confdefs.h <<EOF
7188 #define $ac_tr_func 1
7192 echo "$ac_t""no" 1>&6
7200 *-lsec*) for ac_func in set_auth_parameters
7202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7203 echo "configure:7204: checking for $ac_func" >&5
7204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7205 echo $ac_n "(cached) $ac_c" 1>&6
7207 cat > conftest.$ac_ext <<EOF
7208 #line 7209 "configure"
7209 #include "confdefs.h"
7210 /* System header to define __stub macros and hopefully few prototypes,
7211 which can conflict with char $ac_func(); below. */
7213 /* Override any gcc2 internal prototype to avoid an error. */
7214 /* We use char because int might match the return type of a gcc2
7215 builtin and then its argument prototype would still apply. */
7220 /* The GNU C library defines this for functions which it implements
7221 to always fail with ENOSYS. Some functions are actually named
7222 something starting with __ and the normal name is an alias. */
7223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7231 if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7233 eval "ac_cv_func_$ac_func=yes"
7235 echo "configure: failed program was:" >&5
7236 cat conftest.$ac_ext >&5
7238 eval "ac_cv_func_$ac_func=no"
7243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7244 echo "$ac_t""yes" 1>&6
7245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7246 cat >> confdefs.h <<EOF
7247 #define $ac_tr_func 1
7251 echo "$ac_t""no" 1>&6
7255 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7256 echo "configure:7257: checking for set_auth_parameters in -lsec" >&5
7257 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7259 echo $ac_n "(cached) $ac_c" 1>&6
7261 ac_save_LIBS="$LIBS"
7263 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure"
7265 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7269 char set_auth_parameters();
7272 set_auth_parameters()
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7277 eval "ac_cv_lib_$ac_lib_var=yes"
7279 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7282 eval "ac_cv_lib_$ac_lib_var=no"
7285 LIBS="$ac_save_LIBS"
7288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7289 echo "$ac_t""yes" 1>&6
7290 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7292 cat >> confdefs.h <<EOF
7293 #define $ac_tr_lib 1
7299 echo "$ac_t""no" 1>&6
7302 for ac_func in set_auth_parameters
7304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7305 echo "configure:7306: checking for $ac_func" >&5
7306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7309 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure"
7311 #include "confdefs.h"
7312 /* System header to define __stub macros and hopefully few prototypes,
7313 which can conflict with char $ac_func(); below. */
7315 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7333 if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7335 eval "ac_cv_func_$ac_func=yes"
7337 echo "configure: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7340 eval "ac_cv_func_$ac_func=no"
7345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7346 echo "$ac_t""yes" 1>&6
7347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7348 cat >> confdefs.h <<EOF
7349 #define $ac_tr_func 1
7353 echo "$ac_t""no" 1>&6
7361 # UnixWare 7.x has its getspnam in -lgen
7363 *-lgen*) for ac_func in getspnam
7365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7366 echo "configure:7367: checking for $ac_func" >&5
7367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7368 echo $ac_n "(cached) $ac_c" 1>&6
7370 cat > conftest.$ac_ext <<EOF
7371 #line 7372 "configure"
7372 #include "confdefs.h"
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char $ac_func(); below. */
7376 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */
7383 /* The GNU C library defines this for functions which it implements
7384 to always fail with ENOSYS. Some functions are actually named
7385 something starting with __ and the normal name is an alias. */
7386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7394 if { (eval echo configure:7395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7396 eval "ac_cv_func_$ac_func=yes"
7398 echo "configure: failed program was:" >&5
7399 cat conftest.$ac_ext >&5
7401 eval "ac_cv_func_$ac_func=no"
7406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7407 echo "$ac_t""yes" 1>&6
7408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7409 cat >> confdefs.h <<EOF
7410 #define $ac_tr_func 1
7414 echo "$ac_t""no" 1>&6
7418 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7419 echo "configure:7420: checking for getspnam in -lgen" >&5
7420 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7422 echo $ac_n "(cached) $ac_c" 1>&6
7424 ac_save_LIBS="$LIBS"
7426 cat > conftest.$ac_ext <<EOF
7427 #line 7428 "configure"
7428 #include "confdefs.h"
7429 /* Override any gcc2 internal prototype to avoid an error. */
7430 /* We use char because int might match the return type of a gcc2
7431 builtin and then its argument prototype would still apply. */
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7440 eval "ac_cv_lib_$ac_lib_var=yes"
7442 echo "configure: failed program was:" >&5
7443 cat conftest.$ac_ext >&5
7445 eval "ac_cv_lib_$ac_lib_var=no"
7448 LIBS="$ac_save_LIBS"
7451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7452 echo "$ac_t""yes" 1>&6
7453 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7454 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7455 cat >> confdefs.h <<EOF
7456 #define $ac_tr_lib 1
7462 echo "$ac_t""no" 1>&6
7465 for ac_func in getspnam
7467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7468 echo "configure:7469: checking for $ac_func" >&5
7469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7470 echo $ac_n "(cached) $ac_c" 1>&6
7472 cat > conftest.$ac_ext <<EOF
7473 #line 7474 "configure"
7474 #include "confdefs.h"
7475 /* System header to define __stub macros and hopefully few prototypes,
7476 which can conflict with char $ac_func(); below. */
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 /* We use char because int might match the return type of a gcc2
7480 builtin and then its argument prototype would still apply. */
7485 /* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7496 if { (eval echo configure:7497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7498 eval "ac_cv_func_$ac_func=yes"
7500 echo "configure: failed program was:" >&5
7501 cat conftest.$ac_ext >&5
7503 eval "ac_cv_func_$ac_func=no"
7508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7509 echo "$ac_t""yes" 1>&6
7510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7511 cat >> confdefs.h <<EOF
7512 #define $ac_tr_func 1
7516 echo "$ac_t""no" 1>&6
7525 *-lsecurity*) for ac_func in getspnam
7527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7528 echo "configure:7529: checking for $ac_func" >&5
7529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7530 echo $ac_n "(cached) $ac_c" 1>&6
7532 cat > conftest.$ac_ext <<EOF
7533 #line 7534 "configure"
7534 #include "confdefs.h"
7535 /* System header to define __stub macros and hopefully few prototypes,
7536 which can conflict with char $ac_func(); below. */
7538 /* Override any gcc2 internal prototype to avoid an error. */
7539 /* We use char because int might match the return type of a gcc2
7540 builtin and then its argument prototype would still apply. */
7545 /* The GNU C library defines this for functions which it implements
7546 to always fail with ENOSYS. Some functions are actually named
7547 something starting with __ and the normal name is an alias. */
7548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7556 if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7558 eval "ac_cv_func_$ac_func=yes"
7560 echo "configure: failed program was:" >&5
7561 cat conftest.$ac_ext >&5
7563 eval "ac_cv_func_$ac_func=no"
7568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7569 echo "$ac_t""yes" 1>&6
7570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7571 cat >> confdefs.h <<EOF
7572 #define $ac_tr_func 1
7576 echo "$ac_t""no" 1>&6
7580 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7581 echo "configure:7582: checking for getspnam in -lsecurity" >&5
7582 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7583 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7584 echo $ac_n "(cached) $ac_c" 1>&6
7586 ac_save_LIBS="$LIBS"
7587 LIBS="-lsecurity $LIBS"
7588 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure"
7590 #include "confdefs.h"
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 /* We use char because int might match the return type of a gcc2
7593 builtin and then its argument prototype would still apply. */
7600 if { (eval echo configure:7601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7602 eval "ac_cv_lib_$ac_lib_var=yes"
7604 echo "configure: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7607 eval "ac_cv_lib_$ac_lib_var=no"
7610 LIBS="$ac_save_LIBS"
7613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7614 echo "$ac_t""yes" 1>&6
7615 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7616 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7617 cat >> confdefs.h <<EOF
7618 #define $ac_tr_lib 1
7621 LIBS="-lsecurity $LIBS"
7624 echo "$ac_t""no" 1>&6
7627 for ac_func in getspnam
7629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7630 echo "configure:7631: checking for $ac_func" >&5
7631 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 /* System header to define __stub macros and hopefully few prototypes,
7638 which can conflict with char $ac_func(); below. */
7640 /* Override any gcc2 internal prototype to avoid an error. */
7641 /* We use char because int might match the return type of a gcc2
7642 builtin and then its argument prototype would still apply. */
7647 /* The GNU C library defines this for functions which it implements
7648 to always fail with ENOSYS. Some functions are actually named
7649 something starting with __ and the normal name is an alias. */
7650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7658 if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7660 eval "ac_cv_func_$ac_func=yes"
7662 echo "configure: failed program was:" >&5
7663 cat conftest.$ac_ext >&5
7665 eval "ac_cv_func_$ac_func=no"
7670 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7671 echo "$ac_t""yes" 1>&6
7672 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7673 cat >> confdefs.h <<EOF
7674 #define $ac_tr_func 1
7678 echo "$ac_t""no" 1>&6
7686 *-lsec*) for ac_func in getspnam
7688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7689 echo "configure:7690: checking for $ac_func" >&5
7690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7691 echo $ac_n "(cached) $ac_c" 1>&6
7693 cat > conftest.$ac_ext <<EOF
7694 #line 7695 "configure"
7695 #include "confdefs.h"
7696 /* System header to define __stub macros and hopefully few prototypes,
7697 which can conflict with char $ac_func(); below. */
7699 /* Override any gcc2 internal prototype to avoid an error. */
7700 /* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7706 /* The GNU C library defines this for functions which it implements
7707 to always fail with ENOSYS. Some functions are actually named
7708 something starting with __ and the normal name is an alias. */
7709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7717 if { (eval echo configure:7718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7719 eval "ac_cv_func_$ac_func=yes"
7721 echo "configure: failed program was:" >&5
7722 cat conftest.$ac_ext >&5
7724 eval "ac_cv_func_$ac_func=no"
7729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7730 echo "$ac_t""yes" 1>&6
7731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7732 cat >> confdefs.h <<EOF
7733 #define $ac_tr_func 1
7737 echo "$ac_t""no" 1>&6
7741 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7742 echo "configure:7743: checking for getspnam in -lsec" >&5
7743 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6
7747 ac_save_LIBS="$LIBS"
7749 cat > conftest.$ac_ext <<EOF
7750 #line 7751 "configure"
7751 #include "confdefs.h"
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 eval "ac_cv_lib_$ac_lib_var=yes"
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 eval "ac_cv_lib_$ac_lib_var=no"
7771 LIBS="$ac_save_LIBS"
7774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7775 echo "$ac_t""yes" 1>&6
7776 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7778 cat >> confdefs.h <<EOF
7779 #define $ac_tr_lib 1
7785 echo "$ac_t""no" 1>&6
7788 for ac_func in getspnam
7790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7791 echo "configure:7792: checking for $ac_func" >&5
7792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7798 /* System header to define __stub macros and hopefully few prototypes,
7799 which can conflict with char $ac_func(); below. */
7801 /* Override any gcc2 internal prototype to avoid an error. */
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7808 /* The GNU C library defines this for functions which it implements
7809 to always fail with ENOSYS. Some functions are actually named
7810 something starting with __ and the normal name is an alias. */
7811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7819 if { (eval echo configure:7820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7821 eval "ac_cv_func_$ac_func=yes"
7823 echo "configure: failed program was:" >&5
7824 cat conftest.$ac_ext >&5
7826 eval "ac_cv_func_$ac_func=no"
7831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7832 echo "$ac_t""yes" 1>&6
7833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7834 cat >> confdefs.h <<EOF
7835 #define $ac_tr_func 1
7839 echo "$ac_t""no" 1>&6
7848 *-lsecurity*) for ac_func in bigcrypt
7850 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7851 echo "configure:7852: checking for $ac_func" >&5
7852 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6
7855 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858 /* System header to define __stub macros and hopefully few prototypes,
7859 which can conflict with char $ac_func(); below. */
7861 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7868 /* The GNU C library defines this for functions which it implements
7869 to always fail with ENOSYS. Some functions are actually named
7870 something starting with __ and the normal name is an alias. */
7871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7879 if { (eval echo configure:7880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7881 eval "ac_cv_func_$ac_func=yes"
7883 echo "configure: failed program was:" >&5
7884 cat conftest.$ac_ext >&5
7886 eval "ac_cv_func_$ac_func=no"
7891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7892 echo "$ac_t""yes" 1>&6
7893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7894 cat >> confdefs.h <<EOF
7895 #define $ac_tr_func 1
7899 echo "$ac_t""no" 1>&6
7903 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7904 echo "configure:7905: checking for bigcrypt in -lsecurity" >&5
7905 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 ac_save_LIBS="$LIBS"
7910 LIBS="-lsecurity $LIBS"
7911 cat > conftest.$ac_ext <<EOF
7912 #line 7913 "configure"
7913 #include "confdefs.h"
7914 /* Override any gcc2 internal prototype to avoid an error. */
7915 /* We use char because int might match the return type of a gcc2
7916 builtin and then its argument prototype would still apply. */
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7925 eval "ac_cv_lib_$ac_lib_var=yes"
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7930 eval "ac_cv_lib_$ac_lib_var=no"
7933 LIBS="$ac_save_LIBS"
7936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7937 echo "$ac_t""yes" 1>&6
7938 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7939 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7940 cat >> confdefs.h <<EOF
7941 #define $ac_tr_lib 1
7944 LIBS="-lsecurity $LIBS"
7947 echo "$ac_t""no" 1>&6
7950 for ac_func in bigcrypt
7952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7953 echo "configure:7954: checking for $ac_func" >&5
7954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7960 /* System header to define __stub macros and hopefully few prototypes,
7961 which can conflict with char $ac_func(); below. */
7963 /* Override any gcc2 internal prototype to avoid an error. */
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7970 /* The GNU C library defines this for functions which it implements
7971 to always fail with ENOSYS. Some functions are actually named
7972 something starting with __ and the normal name is an alias. */
7973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7981 if { (eval echo configure:7982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7983 eval "ac_cv_func_$ac_func=yes"
7985 echo "configure: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7988 eval "ac_cv_func_$ac_func=no"
7993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7994 echo "$ac_t""yes" 1>&6
7995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7996 cat >> confdefs.h <<EOF
7997 #define $ac_tr_func 1
8001 echo "$ac_t""no" 1>&6
8009 *-lsec*) for ac_func in bigcrypt
8011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8012 echo "configure:8013: checking for $ac_func" >&5
8013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8016 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure"
8018 #include "confdefs.h"
8019 /* System header to define __stub macros and hopefully few prototypes,
8020 which can conflict with char $ac_func(); below. */
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8029 /* The GNU C library defines this for functions which it implements
8030 to always fail with ENOSYS. Some functions are actually named
8031 something starting with __ and the normal name is an alias. */
8032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8040 if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8042 eval "ac_cv_func_$ac_func=yes"
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8047 eval "ac_cv_func_$ac_func=no"
8052 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8053 echo "$ac_t""yes" 1>&6
8054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8055 cat >> confdefs.h <<EOF
8056 #define $ac_tr_func 1
8060 echo "$ac_t""no" 1>&6
8064 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8065 echo "configure:8066: checking for bigcrypt in -lsec" >&5
8066 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8068 echo $ac_n "(cached) $ac_c" 1>&6
8070 ac_save_LIBS="$LIBS"
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8084 if { (eval echo configure:8085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8086 eval "ac_cv_lib_$ac_lib_var=yes"
8088 echo "configure: failed program was:" >&5
8089 cat conftest.$ac_ext >&5
8091 eval "ac_cv_lib_$ac_lib_var=no"
8094 LIBS="$ac_save_LIBS"
8097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8098 echo "$ac_t""yes" 1>&6
8099 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8101 cat >> confdefs.h <<EOF
8102 #define $ac_tr_lib 1
8108 echo "$ac_t""no" 1>&6
8111 for ac_func in bigcrypt
8113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8114 echo "configure:8115: checking for $ac_func" >&5
8115 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8121 /* System header to define __stub macros and hopefully few prototypes,
8122 which can conflict with char $ac_func(); below. */
8124 /* Override any gcc2 internal prototype to avoid an error. */
8125 /* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8131 /* The GNU C library defines this for functions which it implements
8132 to always fail with ENOSYS. Some functions are actually named
8133 something starting with __ and the normal name is an alias. */
8134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8142 if { (eval echo configure:8143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8144 eval "ac_cv_func_$ac_func=yes"
8146 echo "configure: failed program was:" >&5
8147 cat conftest.$ac_ext >&5
8149 eval "ac_cv_func_$ac_func=no"
8154 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8155 echo "$ac_t""yes" 1>&6
8156 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8157 cat >> confdefs.h <<EOF
8158 #define $ac_tr_func 1
8162 echo "$ac_t""no" 1>&6
8171 *-lsecurity*) for ac_func in getprpwnam
8173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8174 echo "configure:8175: checking for $ac_func" >&5
8175 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8181 /* System header to define __stub macros and hopefully few prototypes,
8182 which can conflict with char $ac_func(); below. */
8184 /* Override any gcc2 internal prototype to avoid an error. */
8185 /* We use char because int might match the return type of a gcc2
8186 builtin and then its argument prototype would still apply. */
8191 /* The GNU C library defines this for functions which it implements
8192 to always fail with ENOSYS. Some functions are actually named
8193 something starting with __ and the normal name is an alias. */
8194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8202 if { (eval echo configure:8203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8204 eval "ac_cv_func_$ac_func=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_func_$ac_func=no"
8214 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8215 echo "$ac_t""yes" 1>&6
8216 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8217 cat >> confdefs.h <<EOF
8218 #define $ac_tr_func 1
8222 echo "$ac_t""no" 1>&6
8226 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8227 echo "configure:8228: checking for getprpwnam in -lsecurity" >&5
8228 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 ac_save_LIBS="$LIBS"
8233 LIBS="-lsecurity $LIBS"
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8246 if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8248 eval "ac_cv_lib_$ac_lib_var=yes"
8250 echo "configure: failed program was:" >&5
8251 cat conftest.$ac_ext >&5
8253 eval "ac_cv_lib_$ac_lib_var=no"
8256 LIBS="$ac_save_LIBS"
8259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8260 echo "$ac_t""yes" 1>&6
8261 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8263 cat >> confdefs.h <<EOF
8264 #define $ac_tr_lib 1
8267 LIBS="-lsecurity $LIBS"
8270 echo "$ac_t""no" 1>&6
8273 for ac_func in getprpwnam
8275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8276 echo "configure:8277: checking for $ac_func" >&5
8277 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8278 echo $ac_n "(cached) $ac_c" 1>&6
8280 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8283 /* System header to define __stub macros and hopefully few prototypes,
8284 which can conflict with char $ac_func(); below. */
8286 /* Override any gcc2 internal prototype to avoid an error. */
8287 /* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */
8293 /* The GNU C library defines this for functions which it implements
8294 to always fail with ENOSYS. Some functions are actually named
8295 something starting with __ and the normal name is an alias. */
8296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8304 if { (eval echo configure:8305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8306 eval "ac_cv_func_$ac_func=yes"
8308 echo "configure: failed program was:" >&5
8309 cat conftest.$ac_ext >&5
8311 eval "ac_cv_func_$ac_func=no"
8316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8317 echo "$ac_t""yes" 1>&6
8318 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8319 cat >> confdefs.h <<EOF
8320 #define $ac_tr_func 1
8324 echo "$ac_t""no" 1>&6
8332 *-lsec*) for ac_func in getprpwnam
8334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8335 echo "configure:8336: checking for $ac_func" >&5
8336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8337 echo $ac_n "(cached) $ac_c" 1>&6
8339 cat > conftest.$ac_ext <<EOF
8340 #line 8341 "configure"
8341 #include "confdefs.h"
8342 /* System header to define __stub macros and hopefully few prototypes,
8343 which can conflict with char $ac_func(); below. */
8345 /* Override any gcc2 internal prototype to avoid an error. */
8346 /* We use char because int might match the return type of a gcc2
8347 builtin and then its argument prototype would still apply. */
8352 /* The GNU C library defines this for functions which it implements
8353 to always fail with ENOSYS. Some functions are actually named
8354 something starting with __ and the normal name is an alias. */
8355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365 eval "ac_cv_func_$ac_func=yes"
8367 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5
8370 eval "ac_cv_func_$ac_func=no"
8375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8376 echo "$ac_t""yes" 1>&6
8377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8378 cat >> confdefs.h <<EOF
8379 #define $ac_tr_func 1
8383 echo "$ac_t""no" 1>&6
8387 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8388 echo "configure:8389: checking for getprpwnam in -lsec" >&5
8389 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8391 echo $ac_n "(cached) $ac_c" 1>&6
8393 ac_save_LIBS="$LIBS"
8395 cat > conftest.$ac_ext <<EOF
8396 #line 8397 "configure"
8397 #include "confdefs.h"
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8407 if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8409 eval "ac_cv_lib_$ac_lib_var=yes"
8411 echo "configure: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8414 eval "ac_cv_lib_$ac_lib_var=no"
8417 LIBS="$ac_save_LIBS"
8420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8421 echo "$ac_t""yes" 1>&6
8422 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8424 cat >> confdefs.h <<EOF
8425 #define $ac_tr_lib 1
8431 echo "$ac_t""no" 1>&6
8434 for ac_func in getprpwnam
8436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8437 echo "configure:8438: checking for $ac_func" >&5
8438 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8441 cat > conftest.$ac_ext <<EOF
8442 #line 8443 "configure"
8443 #include "confdefs.h"
8444 /* System header to define __stub macros and hopefully few prototypes,
8445 which can conflict with char $ac_func(); below. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */
8454 /* The GNU C library defines this for functions which it implements
8455 to always fail with ENOSYS. Some functions are actually named
8456 something starting with __ and the normal name is an alias. */
8457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8465 if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467 eval "ac_cv_func_$ac_func=yes"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 eval "ac_cv_func_$ac_func=no"
8477 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8478 echo "$ac_t""yes" 1>&6
8479 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8480 cat >> confdefs.h <<EOF
8481 #define $ac_tr_func 1
8485 echo "$ac_t""no" 1>&6
8493 # this bit needs to be modified for each OS that is suported by
8494 # smbwrapper. You need to specify how to created a shared library and
8495 # how to compile C code to produce PIC object files
8497 # these are the defaults, good for lots of systems
8505 # Assume non-shared by default and override below
8507 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8508 echo "configure:8509: checking ability to build shared libraries" >&5
8510 # and these are for particular systems
8512 *linux*) cat >> confdefs.h <<\EOF
8520 *solaris*) cat >> confdefs.h <<\EOF
8525 LDSHFLAGS="-h \$@ -G"
8526 if test "${ac_cv_prog_CC}" = "gcc"; then
8534 *sunos*) cat >> confdefs.h <<\EOF
8539 LDSHFLAGS="-Wl,-h,\$@ -G"
8540 PICFLAG="-KPIC" # Is this correct for SunOS
8542 *bsd*) BLDSHARED="true"
8543 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8546 *irix*) cat >> confdefs.h <<\EOF
8551 *irix6*) cat >> confdefs.h <<\EOF
8557 ATTEMPT_WRAP32_BUILD=yes
8559 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8560 if test "${ac_cv_prog_CC}" = "gcc"; then
8566 *aix*) cat >> confdefs.h <<\EOF
8571 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8572 PICFLAG="-O2 -qmaxmem=6000"
8574 *hpux*) cat >> confdefs.h <<\EOF
8579 # Use special PIC flags for the native HP-UX compiler.
8580 if test $ac_cv_prog_cc_Ae = yes; then
8582 LDSHFLAGS="-b -z +h \$@"
8586 *qnx*) cat >> confdefs.h <<\EOF
8590 *osf*) cat >> confdefs.h <<\EOF
8595 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8598 *sco*) cat >> confdefs.h <<\EOF
8602 *unixware*) cat >> confdefs.h <<\EOF
8607 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8610 *next2*) cat >> confdefs.h <<\EOF
8614 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8615 set dummy groff; ac_word=$2
8616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8617 echo "configure:8618: checking for $ac_word" >&5
8618 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
8621 if test -n "$ROFF"; then
8622 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8626 for ac_dir in $ac_dummy; do
8627 test -z "$ac_dir" && ac_dir=.
8628 if test -f $ac_dir/$ac_word; then
8629 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8636 ROFF="$ac_cv_prog_ROFF"
8637 if test -n "$ROFF"; then
8638 echo "$ac_t""$ROFF" 1>&6
8640 echo "$ac_t""no" 1>&6
8645 *-univel-*) if test "$GCC" != yes ; then
8646 cat >> confdefs.h <<\EOF
8647 #define HAVE_MEMSET 1
8653 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8654 #define RELIANTUNIX 1
8660 if test "$GCC" != yes ; then
8661 cat >> confdefs.h <<\EOF
8662 #define HAVE_MEMSET 1
8669 echo "$ac_t""$BLDSHARED" 1>&6
8670 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8671 echo "configure:8672: checking linker flags for shared libraries" >&5
8672 echo "$ac_t""$LDSHFLAGS" 1>&6
8673 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8674 echo "configure:8675: checking compiler flags for position-independent code" >&5
8675 echo "$ac_t""$PICFLAGS" 1>&6
8677 # this updates our target list if we can build shared libs
8678 if test $BLDSHARED = true; then
8679 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
8681 LIBSMBCLIENT_SHARED=
8686 echo $ac_n "checking for long long""... $ac_c" 1>&6
8687 echo "configure:8688: checking for long long" >&5
8688 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8692 if test "$cross_compiling" = yes; then
8693 samba_cv_have_longlong=cross
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8699 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8703 samba_cv_have_longlong=yes
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 samba_cv_have_longlong=no
8715 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8716 if test x"$samba_cv_have_longlong" = x"yes"; then
8717 cat >> confdefs.h <<\EOF
8718 #define HAVE_LONGLONG 1
8724 # Check if the compiler supports the LL prefix on long long integers.
8727 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8728 echo "configure:8729: checking for LL suffix on long long integers" >&5
8729 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8730 echo $ac_n "(cached) $ac_c" 1>&6
8733 cat > conftest.$ac_ext <<EOF
8734 #line 8735 "configure"
8735 #include "confdefs.h"
8738 long long i = 0x8000000000LL
8741 if { (eval echo configure:8742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8743 samba_cv_compiler_supports_ll=yes
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8748 samba_cv_compiler_supports_ll=no
8753 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8754 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8755 cat >> confdefs.h <<\EOF
8756 #define COMPILER_SUPPORTS_LL 1
8762 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8763 echo "configure:8764: checking for 64 bit off_t" >&5
8764 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8765 echo $ac_n "(cached) $ac_c" 1>&6
8768 if test "$cross_compiling" = yes; then
8769 samba_cv_SIZEOF_OFF_T=cross
8771 cat > conftest.$ac_ext <<EOF
8772 #line 8773 "configure"
8773 #include "confdefs.h"
8775 #include <sys/stat.h>
8776 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8780 samba_cv_SIZEOF_OFF_T=yes
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8785 samba_cv_SIZEOF_OFF_T=no
8792 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8793 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8794 cat >> confdefs.h <<\EOF
8795 #define SIZEOF_OFF_T 8
8800 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8801 echo "configure:8802: checking for off64_t" >&5
8802 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8806 if test "$cross_compiling" = yes; then
8807 samba_cv_HAVE_OFF64_T=cross
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8813 #if defined(HAVE_UNISTD_H)
8817 #include <sys/stat.h>
8818 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8822 samba_cv_HAVE_OFF64_T=yes
8824 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5
8827 samba_cv_HAVE_OFF64_T=no
8834 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8835 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8836 cat >> confdefs.h <<\EOF
8837 #define HAVE_OFF64_T 1
8842 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8843 echo "configure:8844: checking for 64 bit ino_t" >&5
8844 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8848 if test "$cross_compiling" = yes; then
8849 samba_cv_SIZEOF_INO_T=cross
8851 cat > conftest.$ac_ext <<EOF
8852 #line 8853 "configure"
8853 #include "confdefs.h"
8855 #include <sys/stat.h>
8856 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8858 if { (eval echo configure:8859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8860 samba_cv_SIZEOF_INO_T=yes
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8865 samba_cv_SIZEOF_INO_T=no
8872 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8873 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8874 cat >> confdefs.h <<\EOF
8875 #define SIZEOF_INO_T 8
8880 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8881 echo "configure:8882: checking for ino64_t" >&5
8882 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8886 if test "$cross_compiling" = yes; then
8887 samba_cv_HAVE_INO64_T=cross
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8893 #if defined(HAVE_UNISTD_H)
8897 #include <sys/stat.h>
8898 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8902 samba_cv_HAVE_INO64_T=yes
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 samba_cv_HAVE_INO64_T=no
8914 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8915 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8916 cat >> confdefs.h <<\EOF
8917 #define HAVE_INO64_T 1
8922 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8923 echo "configure:8924: checking for struct dirent64" >&5
8924 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8932 #if defined(HAVE_UNISTD_H)
8935 #include <sys/types.h>
8941 if { (eval echo configure:8942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8943 samba_cv_HAVE_STRUCT_DIRENT64=yes
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8948 samba_cv_HAVE_STRUCT_DIRENT64=no
8953 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8954 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8955 cat >> confdefs.h <<\EOF
8956 #define HAVE_STRUCT_DIRENT64 1
8961 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8962 echo "configure:8963: checking for unsigned char" >&5
8963 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8967 if test "$cross_compiling" = yes; then
8968 samba_cv_HAVE_UNSIGNED_CHAR=cross
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8974 main() { char c; c=250; exit((c > 0)?0:1); }
8976 if { (eval echo configure:8977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8978 samba_cv_HAVE_UNSIGNED_CHAR=yes
8980 echo "configure: failed program was:" >&5
8981 cat conftest.$ac_ext >&5
8983 samba_cv_HAVE_UNSIGNED_CHAR=no
8990 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8991 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8992 cat >> confdefs.h <<\EOF
8993 #define HAVE_UNSIGNED_CHAR 1
8998 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8999 echo "configure:9000: checking for sin_len in sock" >&5
9000 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9001 echo $ac_n "(cached) $ac_c" 1>&6
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9007 #include <sys/types.h>
9008 #include <sys/socket.h>
9009 #include <netinet/in.h>
9011 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9014 if { (eval echo configure:9015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9016 samba_cv_HAVE_SOCK_SIN_LEN=yes
9018 echo "configure: failed program was:" >&5
9019 cat conftest.$ac_ext >&5
9021 samba_cv_HAVE_SOCK_SIN_LEN=no
9026 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9027 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9028 cat >> confdefs.h <<\EOF
9029 #define HAVE_SOCK_SIN_LEN 1
9034 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9035 echo "configure:9036: checking whether seekdir returns void" >&5
9036 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 #include <sys/types.h>
9045 void seekdir(DIR *d, long loc) { return; }
9050 if { (eval echo configure:9051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9052 samba_cv_SEEKDIR_RETURNS_VOID=yes
9054 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9057 samba_cv_SEEKDIR_RETURNS_VOID=no
9062 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9063 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9064 cat >> confdefs.h <<\EOF
9065 #define SEEKDIR_RETURNS_VOID 1
9070 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9071 echo "configure:9072: checking for __FILE__ macro" >&5
9072 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure"
9078 #include "confdefs.h"
9081 printf("%s\n", __FILE__);
9084 if { (eval echo configure:9085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9086 samba_cv_HAVE_FILE_MACRO=yes
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9091 samba_cv_HAVE_FILE_MACRO=no
9096 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9097 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9098 cat >> confdefs.h <<\EOF
9099 #define HAVE_FILE_MACRO 1
9104 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9105 echo "configure:9106: checking for __FUNCTION__ macro" >&5
9106 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9110 cat > conftest.$ac_ext <<EOF
9111 #line 9112 "configure"
9112 #include "confdefs.h"
9115 printf("%s\n", __FUNCTION__);
9118 if { (eval echo configure:9119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9120 samba_cv_HAVE_FUNCTION_MACRO=yes
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9125 samba_cv_HAVE_FUNCTION_MACRO=no
9130 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9131 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9132 cat >> confdefs.h <<\EOF
9133 #define HAVE_FUNCTION_MACRO 1
9138 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9139 echo "configure:9140: checking if gettimeofday takes tz argument" >&5
9140 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9141 echo $ac_n "(cached) $ac_c" 1>&6
9144 if test "$cross_compiling" = yes; then
9145 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9147 cat > conftest.$ac_ext <<EOF
9148 #line 9149 "configure"
9149 #include "confdefs.h"
9151 #include <sys/time.h>
9153 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9155 if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9157 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9159 echo "configure: failed program was:" >&5
9160 cat conftest.$ac_ext >&5
9162 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9169 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9170 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9171 cat >> confdefs.h <<\EOF
9172 #define HAVE_GETTIMEOFDAY_TZ 1
9177 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9178 echo "configure:9179: checking for C99 vsnprintf" >&5
9179 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9183 if test "$cross_compiling" = yes; then
9184 samba_cv_HAVE_C99_VSNPRINTF=cross
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9190 #include <sys/types.h>
9192 void foo(const char *format, ...) {
9197 va_start(ap, format);
9198 len = vsnprintf(0, 0, format, ap);
9200 if (len != 5) exit(1);
9202 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9206 main() { foo("hello"); }
9209 if { (eval echo configure:9210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9211 samba_cv_HAVE_C99_VSNPRINTF=yes
9213 echo "configure: failed program was:" >&5
9214 cat conftest.$ac_ext >&5
9216 samba_cv_HAVE_C99_VSNPRINTF=no
9223 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9224 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9225 cat >> confdefs.h <<\EOF
9226 #define HAVE_C99_VSNPRINTF 1
9231 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9232 echo "configure:9233: checking for broken readdir" >&5
9233 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9237 if test "$cross_compiling" = yes; then
9238 samba_cv_HAVE_BROKEN_READDIR=cross
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9243 #include <sys/types.h>
9245 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9246 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9247 di->d_name[0] == 0) exit(0); exit(1);}
9249 if { (eval echo configure:9250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9251 samba_cv_HAVE_BROKEN_READDIR=yes
9253 echo "configure: failed program was:" >&5
9254 cat conftest.$ac_ext >&5
9256 samba_cv_HAVE_BROKEN_READDIR=no
9263 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9264 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9265 cat >> confdefs.h <<\EOF
9266 #define HAVE_BROKEN_READDIR 1
9271 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9272 echo "configure:9273: checking for utimbuf" >&5
9273 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 #include <sys/types.h>
9283 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9286 if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9288 samba_cv_HAVE_UTIMBUF=yes
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9293 samba_cv_HAVE_UTIMBUF=no
9298 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9299 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9300 cat >> confdefs.h <<\EOF
9301 #define HAVE_UTIMBUF 1
9307 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9310 echo "configure:9311: checking for $ac_func" >&5
9311 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9312 echo $ac_n "(cached) $ac_c" 1>&6
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9317 /* System header to define __stub macros and hopefully few prototypes,
9318 which can conflict with char $ac_func(); below. */
9320 /* Override any gcc2 internal prototype to avoid an error. */
9321 /* We use char because int might match the return type of a gcc2
9322 builtin and then its argument prototype would still apply. */
9327 /* The GNU C library defines this for functions which it implements
9328 to always fail with ENOSYS. Some functions are actually named
9329 something starting with __ and the normal name is an alias. */
9330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9338 if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9340 eval "ac_cv_func_$ac_func=yes"
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9345 eval "ac_cv_func_$ac_func=no"
9350 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9351 echo "$ac_t""yes" 1>&6
9352 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9353 cat >> confdefs.h <<EOF
9354 #define $ac_tr_func 1
9358 echo "$ac_t""no" 1>&6
9363 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9364 echo "configure:9365: checking for ut_name in utmp" >&5
9365 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9366 echo $ac_n "(cached) $ac_c" 1>&6
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9372 #include <sys/types.h>
9375 struct utmp ut; ut.ut_name[0] = 'a';
9378 if { (eval echo configure:9379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9380 samba_cv_HAVE_UT_UT_NAME=yes
9382 echo "configure: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9385 samba_cv_HAVE_UT_UT_NAME=no
9390 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9391 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9392 cat >> confdefs.h <<\EOF
9393 #define HAVE_UT_UT_NAME 1
9398 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9399 echo "configure:9400: checking for ut_user in utmp" >&5
9400 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9401 echo $ac_n "(cached) $ac_c" 1>&6
9404 cat > conftest.$ac_ext <<EOF
9405 #line 9406 "configure"
9406 #include "confdefs.h"
9407 #include <sys/types.h>
9410 struct utmp ut; ut.ut_user[0] = 'a';
9413 if { (eval echo configure:9414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9415 samba_cv_HAVE_UT_UT_USER=yes
9417 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9420 samba_cv_HAVE_UT_UT_USER=no
9425 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9426 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9427 cat >> confdefs.h <<\EOF
9428 #define HAVE_UT_UT_USER 1
9433 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9434 echo "configure:9435: checking for ut_id in utmp" >&5
9435 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442 #include <sys/types.h>
9445 struct utmp ut; ut.ut_id[0] = 'a';
9448 if { (eval echo configure:9449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9450 samba_cv_HAVE_UT_UT_ID=yes
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9455 samba_cv_HAVE_UT_UT_ID=no
9460 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9461 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9462 cat >> confdefs.h <<\EOF
9463 #define HAVE_UT_UT_ID 1
9468 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9469 echo "configure:9470: checking for ut_host in utmp" >&5
9470 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9474 cat > conftest.$ac_ext <<EOF
9475 #line 9476 "configure"
9476 #include "confdefs.h"
9477 #include <sys/types.h>
9480 struct utmp ut; ut.ut_host[0] = 'a';
9483 if { (eval echo configure:9484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9485 samba_cv_HAVE_UT_UT_HOST=yes
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9490 samba_cv_HAVE_UT_UT_HOST=no
9495 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9496 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9497 cat >> confdefs.h <<\EOF
9498 #define HAVE_UT_UT_HOST 1
9503 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9504 echo "configure:9505: checking for ut_time in utmp" >&5
9505 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9506 echo $ac_n "(cached) $ac_c" 1>&6
9509 cat > conftest.$ac_ext <<EOF
9510 #line 9511 "configure"
9511 #include "confdefs.h"
9512 #include <sys/types.h>
9515 struct utmp ut; time_t t; ut.ut_time = t;
9518 if { (eval echo configure:9519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9520 samba_cv_HAVE_UT_UT_TIME=yes
9522 echo "configure: failed program was:" >&5
9523 cat conftest.$ac_ext >&5
9525 samba_cv_HAVE_UT_UT_TIME=no
9530 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9531 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9532 cat >> confdefs.h <<\EOF
9533 #define HAVE_UT_UT_TIME 1
9538 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9539 echo "configure:9540: checking for ut_tv in utmp" >&5
9540 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9541 echo $ac_n "(cached) $ac_c" 1>&6
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 #include <sys/types.h>
9550 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9553 if { (eval echo configure:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9555 samba_cv_HAVE_UT_UT_TV=yes
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9560 samba_cv_HAVE_UT_UT_TV=no
9565 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9566 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9567 cat >> confdefs.h <<\EOF
9568 #define HAVE_UT_UT_TV 1
9573 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9574 echo "configure:9575: checking for ut_type in utmp" >&5
9575 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9579 cat > conftest.$ac_ext <<EOF
9580 #line 9581 "configure"
9581 #include "confdefs.h"
9582 #include <sys/types.h>
9585 struct utmp ut; ut.ut_type = 0;
9588 if { (eval echo configure:9589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9590 samba_cv_HAVE_UT_UT_TYPE=yes
9592 echo "configure: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9595 samba_cv_HAVE_UT_UT_TYPE=no
9600 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9601 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9602 cat >> confdefs.h <<\EOF
9603 #define HAVE_UT_UT_TYPE 1
9608 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9609 echo "configure:9610: checking for ut_pid in utmp" >&5
9610 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9611 echo $ac_n "(cached) $ac_c" 1>&6
9614 cat > conftest.$ac_ext <<EOF
9615 #line 9616 "configure"
9616 #include "confdefs.h"
9617 #include <sys/types.h>
9620 struct utmp ut; ut.ut_pid = 0;
9623 if { (eval echo configure:9624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9625 samba_cv_HAVE_UT_UT_PID=yes
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 samba_cv_HAVE_UT_UT_PID=no
9635 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9636 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9637 cat >> confdefs.h <<\EOF
9638 #define HAVE_UT_UT_PID 1
9643 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9644 echo "configure:9645: checking for ut_exit in utmp" >&5
9645 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9652 #include <sys/types.h>
9655 struct utmp ut; ut.ut_exit.e_exit = 0;
9658 if { (eval echo configure:9659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9660 samba_cv_HAVE_UT_UT_EXIT=yes
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9665 samba_cv_HAVE_UT_UT_EXIT=no
9670 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9671 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9672 cat >> confdefs.h <<\EOF
9673 #define HAVE_UT_UT_EXIT 1
9678 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9679 echo "configure:9680: checking for ut_addr in utmp" >&5
9680 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9681 echo $ac_n "(cached) $ac_c" 1>&6
9684 cat > conftest.$ac_ext <<EOF
9685 #line 9686 "configure"
9686 #include "confdefs.h"
9687 #include <sys/types.h>
9690 struct utmp ut; ut.ut_addr = 0;
9693 if { (eval echo configure:9694: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9695 samba_cv_HAVE_UT_UT_ADDR=yes
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9700 samba_cv_HAVE_UT_UT_ADDR=no
9705 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9706 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9707 cat >> confdefs.h <<\EOF
9708 #define HAVE_UT_UT_ADDR 1
9713 if test x$ac_cv_func_pututline = xyes ; then
9714 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9715 echo "configure:9716: checking whether pututline returns pointer" >&5
9716 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9717 echo $ac_n "(cached) $ac_c" 1>&6
9720 cat > conftest.$ac_ext <<EOF
9721 #line 9722 "configure"
9722 #include "confdefs.h"
9723 #include <sys/types.h>
9726 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9729 if { (eval echo configure:9730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9731 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9736 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9741 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9742 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9743 cat >> confdefs.h <<\EOF
9744 #define PUTUTLINE_RETURNS_UTMP 1
9750 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9751 echo "configure:9752: checking for ut_syslen in utmpx" >&5
9752 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9753 echo $ac_n "(cached) $ac_c" 1>&6
9756 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure"
9758 #include "confdefs.h"
9759 #include <sys/types.h>
9762 struct utmpx ux; ux.ut_syslen = 0;
9765 if { (eval echo configure:9766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9767 samba_cv_HAVE_UX_UT_SYSLEN=yes
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 samba_cv_HAVE_UX_UT_SYSLEN=no
9777 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9778 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9779 cat >> confdefs.h <<\EOF
9780 #define HAVE_UX_UT_SYSLEN 1
9786 #################################################
9787 # check for libiconv support
9788 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9789 echo "configure:9790: checking whether to use libiconv" >&5
9790 # Check whether --with-libiconv or --without-libiconv was given.
9791 if test "${with_libiconv+set}" = set; then
9792 withval="$with_libiconv"
9795 echo "$ac_t""no" 1>&6
9798 echo "$ac_t""yes" 1>&6
9799 CFLAGS="$CFLAGS -I$withval/include"
9800 LDFLAGS="$LDFLAGS -L$withval/lib"
9801 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9802 echo "configure:9803: checking for iconv_open in -liconv" >&5
9803 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9805 echo $ac_n "(cached) $ac_c" 1>&6
9807 ac_save_LIBS="$LIBS"
9808 LIBS="-liconv $LIBS"
9809 cat > conftest.$ac_ext <<EOF
9810 #line 9811 "configure"
9811 #include "confdefs.h"
9812 /* Override any gcc2 internal prototype to avoid an error. */
9813 /* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9821 if { (eval echo configure:9822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9823 eval "ac_cv_lib_$ac_lib_var=yes"
9825 echo "configure: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9828 eval "ac_cv_lib_$ac_lib_var=no"
9831 LIBS="$ac_save_LIBS"
9834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9835 echo "$ac_t""yes" 1>&6
9836 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9838 cat >> confdefs.h <<EOF
9839 #define $ac_tr_lib 1
9842 LIBS="-liconv $LIBS"
9845 echo "$ac_t""no" 1>&6
9848 cat >> confdefs.h <<EOF
9849 #define WITH_LIBICONV "${withval}"
9855 echo "$ac_t""no" 1>&6
9862 # check for iconv in libc
9863 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9864 echo "configure:9865: checking for working iconv" >&5
9865 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 if test "$cross_compiling" = yes; then
9870 samba_cv_HAVE_NATIVE_ICONV=cross
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9878 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9879 if (cd == 0 || cd == (iconv_t)-1) return -1;
9884 if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9886 samba_cv_HAVE_NATIVE_ICONV=yes
9888 echo "configure: failed program was:" >&5
9889 cat conftest.$ac_ext >&5
9891 samba_cv_HAVE_NATIVE_ICONV=no
9898 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9899 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9900 cat >> confdefs.h <<\EOF
9901 #define HAVE_NATIVE_ICONV 1
9907 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9908 echo "configure:9909: checking for Linux kernel oplocks" >&5
9909 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9913 if test "$cross_compiling" = yes; then
9914 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9916 cat > conftest.$ac_ext <<EOF
9917 #line 9918 "configure"
9918 #include "confdefs.h"
9920 #include <sys/types.h>
9923 #define F_GETLEASE 1025
9926 int fd = open("/dev/null", O_RDONLY);
9927 return fcntl(fd, F_GETLEASE, 0) == -1;
9931 if { (eval echo configure:9932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9933 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9938 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9945 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9946 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9947 cat >> confdefs.h <<\EOF
9948 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9953 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9954 echo "configure:9955: checking for kernel change notify support" >&5
9955 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9959 if test "$cross_compiling" = yes; then
9960 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9962 cat > conftest.$ac_ext <<EOF
9963 #line 9964 "configure"
9964 #include "confdefs.h"
9966 #include <sys/types.h>
9970 #define F_NOTIFY 1026
9973 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9979 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9984 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9991 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9992 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9993 cat >> confdefs.h <<\EOF
9994 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9999 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10000 echo "configure:10001: checking for kernel share modes" >&5
10001 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10005 if test "$cross_compiling" = yes; then
10006 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10008 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure"
10010 #include "confdefs.h"
10012 #include <sys/types.h>
10014 #include <signal.h>
10015 #include <sys/file.h>
10017 #define LOCK_MAND 32
10018 #define LOCK_READ 64
10021 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10025 if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10027 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10032 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10039 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10040 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10041 cat >> confdefs.h <<\EOF
10042 #define HAVE_KERNEL_SHARE_MODES 1
10050 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10051 echo "configure:10052: checking for IRIX kernel oplock type definitions" >&5
10052 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10056 cat > conftest.$ac_ext <<EOF
10057 #line 10058 "configure"
10058 #include "confdefs.h"
10059 #include <sys/types.h>
10062 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10065 if { (eval echo configure:10066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10067 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10069 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10072 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10077 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10078 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10079 cat >> confdefs.h <<\EOF
10080 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10085 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10086 echo "configure:10087: checking for irix specific capabilities" >&5
10087 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10091 if test "$cross_compiling" = yes; then
10092 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097 #include <sys/types.h>
10098 #include <sys/capability.h>
10101 if ((cap = cap_get_proc()) == NULL)
10103 cap->cap_effective |= CAP_NETWORK_MGT;
10104 cap->cap_inheritable |= CAP_NETWORK_MGT;
10110 if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10112 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10114 echo "configure: failed program was:" >&5
10115 cat conftest.$ac_ext >&5
10117 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10124 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10125 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10126 cat >> confdefs.h <<\EOF
10127 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10133 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10134 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10137 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10138 echo "configure:10139: checking for int16 typedef included by rpc/rpc.h" >&5
10139 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10143 cat > conftest.$ac_ext <<EOF
10144 #line 10145 "configure"
10145 #include "confdefs.h"
10146 #include <sys/types.h>
10147 #if defined(HAVE_RPC_RPC_H)
10148 #include <rpc/rpc.h>
10154 if { (eval echo configure:10155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10156 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10158 echo "configure: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10161 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10166 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10167 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_INT16_FROM_RPC_RPC_H 1
10174 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10175 echo "configure:10176: checking for uint16 typedef included by rpc/rpc.h" >&5
10176 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include <sys/types.h>
10184 #if defined(HAVE_RPC_RPC_H)
10185 #include <rpc/rpc.h>
10191 if { (eval echo configure:10192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10193 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10195 echo "configure: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10198 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10203 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10204 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10205 cat >> confdefs.h <<\EOF
10206 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10211 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10212 echo "configure:10213: checking for int32 typedef included by rpc/rpc.h" >&5
10213 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10217 cat > conftest.$ac_ext <<EOF
10218 #line 10219 "configure"
10219 #include "confdefs.h"
10220 #include <sys/types.h>
10221 #if defined(HAVE_RPC_RPC_H)
10222 #include <rpc/rpc.h>
10228 if { (eval echo configure:10229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10230 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10240 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10241 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10242 cat >> confdefs.h <<\EOF
10243 #define HAVE_INT32_FROM_RPC_RPC_H 1
10248 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10249 echo "configure:10250: checking for uint32 typedef included by rpc/rpc.h" >&5
10250 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 #include <sys/types.h>
10258 #if defined(HAVE_RPC_RPC_H)
10259 #include <rpc/rpc.h>
10265 if { (eval echo configure:10266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10267 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10277 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10278 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10279 cat >> confdefs.h <<\EOF
10280 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10286 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10287 echo "configure:10288: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10288 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10295 #include <sys/types.h>
10296 #ifdef HAVE_SYS_SECURITY_H
10297 #include <sys/security.h>
10299 #endif /* HAVE_SYS_SECURITY_H */
10300 #if defined(HAVE_RPC_RPC_H)
10301 #include <rpc/rpc.h>
10307 if { (eval echo configure:10308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10309 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10311 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10314 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10319 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10320 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10321 cat >> confdefs.h <<\EOF
10322 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10327 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10328 echo "configure:10329: checking for test routines" >&5
10329 if test "$cross_compiling" = yes; then
10330 echo "configure: warning: cannot run when cross-compiling" 1>&2
10332 cat > conftest.$ac_ext <<EOF
10333 #line 10334 "configure"
10334 #include "confdefs.h"
10335 #include "${srcdir-.}/tests/trivial.c"
10337 if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10339 echo "$ac_t""yes" 1>&6
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10344 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10350 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10351 echo "configure:10352: checking for ftruncate extend" >&5
10352 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10356 if test "$cross_compiling" = yes; then
10357 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10359 cat > conftest.$ac_ext <<EOF
10360 #line 10361 "configure"
10361 #include "confdefs.h"
10362 #include "${srcdir-.}/tests/ftruncate.c"
10364 if { (eval echo configure:10365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10366 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10368 echo "configure: failed program was:" >&5
10369 cat conftest.$ac_ext >&5
10371 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10378 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10379 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10380 cat >> confdefs.h <<\EOF
10381 #define HAVE_FTRUNCATE_EXTEND 1
10386 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10387 echo "configure:10388: checking for AF_LOCAL socket support" >&5
10388 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10389 echo $ac_n "(cached) $ac_c" 1>&6
10392 if test "$cross_compiling" = yes; then
10393 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 #include "${srcdir-.}/tests/unixsock.c"
10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10402 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10404 echo "configure: failed program was:" >&5
10405 cat conftest.$ac_ext >&5
10407 samba_cv_HAVE_WORKING_AF_LOCAL=no
10414 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10415 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_WORKING_AF_LOCAL 1
10423 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10424 echo "configure:10425: checking for broken getgroups" >&5
10425 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10426 echo $ac_n "(cached) $ac_c" 1>&6
10429 if test "$cross_compiling" = yes; then
10430 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10432 cat > conftest.$ac_ext <<EOF
10433 #line 10434 "configure"
10434 #include "confdefs.h"
10435 #include "${srcdir-.}/tests/getgroups.c"
10437 if { (eval echo configure:10438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10439 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10441 echo "configure: failed program was:" >&5
10442 cat conftest.$ac_ext >&5
10444 samba_cv_HAVE_BROKEN_GETGROUPS=no
10451 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10452 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10453 cat >> confdefs.h <<\EOF
10454 #define HAVE_BROKEN_GETGROUPS 1
10459 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10460 echo "configure:10461: checking whether getpass should be replaced" >&5
10461 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10462 echo $ac_n "(cached) $ac_c" 1>&6
10465 SAVE_CPPFLAGS="$CPPFLAGS"
10466 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10467 cat > conftest.$ac_ext <<EOF
10468 #line 10469 "configure"
10469 #include "confdefs.h"
10471 #define REPLACE_GETPASS 1
10472 #define NO_CONFIG_H 1
10473 #define main dont_declare_main
10474 #include "${srcdir-.}/lib/getsmbpass.c"
10481 if { (eval echo configure:10482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10483 samba_cv_REPLACE_GETPASS=yes
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 samba_cv_REPLACE_GETPASS=no
10491 CPPFLAGS="$SAVE_CPPFLAGS"
10495 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10496 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10497 cat >> confdefs.h <<\EOF
10498 #define REPLACE_GETPASS 1
10503 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10504 echo "configure:10505: checking for broken inet_ntoa" >&5
10505 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10509 if test "$cross_compiling" = yes; then
10510 samba_cv_REPLACE_INET_NTOA=cross
10512 cat > conftest.$ac_ext <<EOF
10513 #line 10514 "configure"
10514 #include "confdefs.h"
10517 #include <sys/types.h>
10518 #include <netinet/in.h>
10519 #ifdef HAVE_ARPA_INET_H
10520 #include <arpa/inet.h>
10522 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10523 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10524 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10527 if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10529 samba_cv_REPLACE_INET_NTOA=yes
10531 echo "configure: failed program was:" >&5
10532 cat conftest.$ac_ext >&5
10534 samba_cv_REPLACE_INET_NTOA=no
10541 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10542 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10543 cat >> confdefs.h <<\EOF
10544 #define REPLACE_INET_NTOA 1
10549 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10550 echo "configure:10551: checking for secure mkstemp" >&5
10551 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10552 echo $ac_n "(cached) $ac_c" 1>&6
10555 if test "$cross_compiling" = yes; then
10556 samba_cv_HAVE_SECURE_MKSTEMP=cross
10558 cat > conftest.$ac_ext <<EOF
10559 #line 10560 "configure"
10560 #include "confdefs.h"
10561 #include <stdlib.h>
10562 #include <sys/types.h>
10563 #include <sys/stat.h>
10564 #include <unistd.h>
10567 char tpl[20]="/tmp/test.XXXXXX";
10568 int fd = mkstemp(tpl);
10569 if (fd == -1) exit(1);
10571 if (fstat(fd, &st) != 0) exit(1);
10572 if ((st.st_mode & 0777) != 0600) exit(1);
10576 if { (eval echo configure:10577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10578 samba_cv_HAVE_SECURE_MKSTEMP=yes
10580 echo "configure: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10583 samba_cv_HAVE_SECURE_MKSTEMP=no
10590 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10591 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10592 cat >> confdefs.h <<\EOF
10593 #define HAVE_SECURE_MKSTEMP 1
10598 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10599 echo "configure:10600: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10600 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10604 if test "$cross_compiling" = yes; then
10605 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10610 #include <unistd.h>
10611 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10615 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10620 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10627 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10628 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10629 cat >> confdefs.h <<\EOF
10630 #define SYSCONF_SC_NGROUPS_MAX 1
10635 echo $ac_n "checking for root""... $ac_c" 1>&6
10636 echo "configure:10637: checking for root" >&5
10637 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10638 echo $ac_n "(cached) $ac_c" 1>&6
10641 if test "$cross_compiling" = yes; then
10642 samba_cv_HAVE_ROOT=cross
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10647 main() { exit(getuid() != 0); }
10649 if { (eval echo configure:10650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10651 samba_cv_HAVE_ROOT=yes
10653 echo "configure: failed program was:" >&5
10654 cat conftest.$ac_ext >&5
10656 samba_cv_HAVE_ROOT=no
10663 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10664 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10665 cat >> confdefs.h <<\EOF
10666 #define HAVE_ROOT 1
10670 echo "configure: warning: running as non-root will disable some tests" 1>&2
10674 # look for a method of finding the list of network interfaces
10676 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10677 echo "configure:10678: checking for iface AIX" >&5
10678 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10682 if test "$cross_compiling" = yes; then
10683 samba_cv_HAVE_IFACE_AIX=cross
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10689 #define HAVE_IFACE_AIX 1
10690 #define AUTOCONF_TEST 1
10691 #include "confdefs.h"
10692 #include "${srcdir-.}/lib/interfaces.c"
10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10696 samba_cv_HAVE_IFACE_AIX=yes
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10701 samba_cv_HAVE_IFACE_AIX=no
10708 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10709 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10710 iface=yes;cat >> confdefs.h <<\EOF
10711 #define HAVE_IFACE_AIX 1
10716 if test $iface = no; then
10717 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10718 echo "configure:10719: checking for iface ifconf" >&5
10719 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10720 echo $ac_n "(cached) $ac_c" 1>&6
10723 if test "$cross_compiling" = yes; then
10724 samba_cv_HAVE_IFACE_IFCONF=cross
10726 cat > conftest.$ac_ext <<EOF
10727 #line 10728 "configure"
10728 #include "confdefs.h"
10730 #define HAVE_IFACE_IFCONF 1
10731 #define AUTOCONF_TEST 1
10732 #include "confdefs.h"
10733 #include "${srcdir-.}/lib/interfaces.c"
10735 if { (eval echo configure:10736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10737 samba_cv_HAVE_IFACE_IFCONF=yes
10739 echo "configure: failed program was:" >&5
10740 cat conftest.$ac_ext >&5
10742 samba_cv_HAVE_IFACE_IFCONF=no
10749 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10750 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10751 iface=yes;cat >> confdefs.h <<\EOF
10752 #define HAVE_IFACE_IFCONF 1
10758 if test $iface = no; then
10759 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10760 echo "configure:10761: checking for iface ifreq" >&5
10761 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10762 echo $ac_n "(cached) $ac_c" 1>&6
10765 if test "$cross_compiling" = yes; then
10766 samba_cv_HAVE_IFACE_IFREQ=cross
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10772 #define HAVE_IFACE_IFREQ 1
10773 #define AUTOCONF_TEST 1
10774 #include "confdefs.h"
10775 #include "${srcdir-.}/lib/interfaces.c"
10777 if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10779 samba_cv_HAVE_IFACE_IFREQ=yes
10781 echo "configure: failed program was:" >&5
10782 cat conftest.$ac_ext >&5
10784 samba_cv_HAVE_IFACE_IFREQ=no
10791 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10792 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10793 iface=yes;cat >> confdefs.h <<\EOF
10794 #define HAVE_IFACE_IFREQ 1
10801 ################################################
10802 # look for a method of setting the effective uid
10804 if test $seteuid = no; then
10805 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10806 echo "configure:10807: checking for setresuid" >&5
10807 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10808 echo $ac_n "(cached) $ac_c" 1>&6
10811 if test "$cross_compiling" = yes; then
10812 samba_cv_USE_SETRESUID=cross
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10818 #define AUTOCONF_TEST 1
10819 #define USE_SETRESUID 1
10820 #include "confdefs.h"
10821 #include "${srcdir-.}/lib/util_sec.c"
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10825 samba_cv_USE_SETRESUID=yes
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 samba_cv_USE_SETRESUID=no
10837 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10838 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10839 seteuid=yes;cat >> confdefs.h <<\EOF
10840 #define USE_SETRESUID 1
10847 if test $seteuid = no; then
10848 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10849 echo "configure:10850: checking for setreuid" >&5
10850 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10854 if test "$cross_compiling" = yes; then
10855 samba_cv_USE_SETREUID=cross
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10861 #define AUTOCONF_TEST 1
10862 #define USE_SETREUID 1
10863 #include "confdefs.h"
10864 #include "${srcdir-.}/lib/util_sec.c"
10866 if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10868 samba_cv_USE_SETREUID=yes
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10873 samba_cv_USE_SETREUID=no
10880 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10881 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10882 seteuid=yes;cat >> confdefs.h <<\EOF
10883 #define USE_SETREUID 1
10889 if test $seteuid = no; then
10890 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10891 echo "configure:10892: checking for seteuid" >&5
10892 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10893 echo $ac_n "(cached) $ac_c" 1>&6
10896 if test "$cross_compiling" = yes; then
10897 samba_cv_USE_SETEUID=cross
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10903 #define AUTOCONF_TEST 1
10904 #define USE_SETEUID 1
10905 #include "confdefs.h"
10906 #include "${srcdir-.}/lib/util_sec.c"
10908 if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10910 samba_cv_USE_SETEUID=yes
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10915 samba_cv_USE_SETEUID=no
10922 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10923 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10924 seteuid=yes;cat >> confdefs.h <<\EOF
10925 #define USE_SETEUID 1
10931 if test $seteuid = no; then
10932 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10933 echo "configure:10934: checking for setuidx" >&5
10934 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10938 if test "$cross_compiling" = yes; then
10939 samba_cv_USE_SETUIDX=cross
10941 cat > conftest.$ac_ext <<EOF
10942 #line 10943 "configure"
10943 #include "confdefs.h"
10945 #define AUTOCONF_TEST 1
10946 #define USE_SETUIDX 1
10947 #include "confdefs.h"
10948 #include "${srcdir-.}/lib/util_sec.c"
10950 if { (eval echo configure:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10952 samba_cv_USE_SETUIDX=yes
10954 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10957 samba_cv_USE_SETUIDX=no
10964 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10965 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10966 seteuid=yes;cat >> confdefs.h <<\EOF
10967 #define USE_SETUIDX 1
10974 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10975 echo "configure:10976: checking for working mmap" >&5
10976 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10980 if test "$cross_compiling" = yes; then
10981 samba_cv_HAVE_MMAP=cross
10983 cat > conftest.$ac_ext <<EOF
10984 #line 10985 "configure"
10985 #include "confdefs.h"
10986 #include "${srcdir-.}/tests/shared_mmap.c"
10988 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10990 samba_cv_HAVE_MMAP=yes
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10995 samba_cv_HAVE_MMAP=no
11002 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11003 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11004 cat >> confdefs.h <<\EOF
11005 #define HAVE_MMAP 1
11010 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11011 echo "configure:11012: checking for ftruncate needs root" >&5
11012 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11016 if test "$cross_compiling" = yes; then
11017 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11019 cat > conftest.$ac_ext <<EOF
11020 #line 11021 "configure"
11021 #include "confdefs.h"
11022 #include "${srcdir-.}/tests/ftruncroot.c"
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11026 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11031 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11038 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11039 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11040 cat >> confdefs.h <<\EOF
11041 #define FTRUNCATE_NEEDS_ROOT 1
11046 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11047 echo "configure:11048: checking for fcntl locking" >&5
11048 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11049 echo $ac_n "(cached) $ac_c" 1>&6
11052 if test "$cross_compiling" = yes; then
11053 samba_cv_HAVE_FCNTL_LOCK=cross
11055 cat > conftest.$ac_ext <<EOF
11056 #line 11057 "configure"
11057 #include "confdefs.h"
11058 #include "${srcdir-.}/tests/fcntl_lock.c"
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11062 samba_cv_HAVE_FCNTL_LOCK=yes
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11067 samba_cv_HAVE_FCNTL_LOCK=no
11074 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11075 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11076 cat >> confdefs.h <<\EOF
11077 #define HAVE_FCNTL_LOCK 1
11082 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11083 echo "configure:11084: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11084 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11085 echo $ac_n "(cached) $ac_c" 1>&6
11088 if test "$cross_compiling" = yes; then
11089 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11091 cat > conftest.$ac_ext <<EOF
11092 #line 11093 "configure"
11093 #include "confdefs.h"
11094 #include "${srcdir-.}/tests/fcntl_lock64.c"
11096 if { (eval echo configure:11097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11098 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11100 echo "configure: failed program was:" >&5
11101 cat conftest.$ac_ext >&5
11103 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11110 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11111 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11112 cat >> confdefs.h <<\EOF
11113 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11120 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11121 echo "configure:11122: checking for 64 bit fcntl locking" >&5
11122 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11123 echo $ac_n "(cached) $ac_c" 1>&6
11126 if test "$cross_compiling" = yes; then
11127 samba_cv_HAVE_STRUCT_FLOCK64=cross
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11133 #if defined(HAVE_UNISTD_H)
11134 #include <unistd.h>
11137 #include <stdlib.h>
11139 #ifdef HAVE_FCNTL_H
11143 #ifdef HAVE_SYS_FCNTL_H
11144 #include <sys/fcntl.h>
11146 main() { struct flock64 fl64;
11147 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11156 samba_cv_HAVE_STRUCT_FLOCK64=yes
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11161 samba_cv_HAVE_STRUCT_FLOCK64=no
11168 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11170 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11171 cat >> confdefs.h <<\EOF
11172 #define HAVE_STRUCT_FLOCK64 1
11181 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11182 echo "configure:11183: checking for broken RedHat 7.2 system header files" >&5
11183 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11187 cat > conftest.$ac_ext <<EOF
11188 #line 11189 "configure"
11189 #include "confdefs.h"
11191 #ifdef HAVE_SYS_VFS_H
11192 #include <sys/vfs.h>
11194 #ifdef HAVE_SYS_CAPABILITY_H
11195 #include <sys/capability.h>
11202 if { (eval echo configure:11203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11204 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11209 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11214 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11215 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11216 cat >> confdefs.h <<\EOF
11217 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11224 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11225 echo "configure:11226: checking for broken nisplus include files" >&5
11226 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11227 echo $ac_n "(cached) $ac_c" 1>&6
11230 cat > conftest.$ac_ext <<EOF
11231 #line 11232 "configure"
11232 #include "confdefs.h"
11233 #include <sys/acl.h>
11234 #if defined(HAVE_RPCSVC_NIS_H)
11235 #include <rpcsvc/nis.h>
11241 if { (eval echo configure:11242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11243 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11245 echo "configure: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11248 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11253 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11254 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11255 cat >> confdefs.h <<\EOF
11256 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11262 #################################################
11263 # check for smbwrapper support
11264 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11265 echo "configure:11266: checking whether to use smbwrapper" >&5
11266 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11267 if test "${with_smbwrapper+set}" = set; then
11268 withval="$with_smbwrapper"
11271 echo "$ac_t""yes" 1>&6
11272 cat >> confdefs.h <<\EOF
11273 #define WITH_SMBWRAPPER 1
11276 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11278 if test x$ATTEMPT_WRAP32_BUILD = x; then
11281 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11284 # Conditions under which smbwrapper should not be built.
11286 if test x$PICFLAG = x; then
11287 echo No support for PIC code - disabling smbwrapper and smbsh
11290 elif test x$ac_cv_func_syscall = xno; then
11291 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11297 echo "$ac_t""no" 1>&6
11301 echo "$ac_t""no" 1>&6
11306 #################################################
11307 # check for AFS clear-text auth support
11308 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11309 echo "configure:11310: checking whether to use AFS clear-text auth" >&5
11310 # Check whether --with-afs or --without-afs was given.
11311 if test "${with_afs+set}" = set; then
11312 withval="$with_afs"
11315 echo "$ac_t""yes" 1>&6
11316 cat >> confdefs.h <<\EOF
11322 echo "$ac_t""no" 1>&6
11326 echo "$ac_t""no" 1>&6
11332 #################################################
11333 # check for the DFS clear-text auth system
11334 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11335 echo "configure:11336: checking whether to use DFS clear-text auth" >&5
11336 # Check whether --with-dfs or --without-dfs was given.
11337 if test "${with_dfs+set}" = set; then
11338 withval="$with_dfs"
11341 echo "$ac_t""yes" 1>&6
11342 cat >> confdefs.h <<\EOF
11348 echo "$ac_t""no" 1>&6
11352 echo "$ac_t""no" 1>&6
11358 #################################################
11359 # see if this box has the RedHat location for kerberos
11360 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11361 echo "configure:11362: checking for /usr/kerberos" >&5
11362 if test -d /usr/kerberos; then
11363 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
11364 CFLAGS="$CFLAGS -I/usr/kerberos/include"
11365 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
11366 echo "$ac_t""yes" 1>&6
11368 echo "$ac_t""no" 1>&6
11371 #################################################
11372 # check for location of Kerberos 5 install
11373 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
11374 echo "configure:11375: checking for kerberos 5 install path" >&5
11375 # Check whether --with-krb5 or --without-krb5 was given.
11376 if test "${with_krb5+set}" = set; then
11377 withval="$with_krb5"
11380 echo "$ac_t""no" 1>&6
11383 echo "$ac_t""yes" 1>&6
11384 LIBS="$LIBS -lkrb5"
11385 CFLAGS="$CFLAGS -I$withval/include"
11386 CPPFLAGS="$CPPFLAGS -I$withval/include"
11387 LDFLAGS="$LDFLAGS -L$withval/lib"
11391 echo "$ac_t""no" 1>&6
11396 # now check for krb5.h. Some systems have the libraries without the headers!
11397 # note that this check is done here to allow for different kerberos
11399 for ac_hdr in krb5.h
11401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11403 echo "configure:11404: checking for $ac_hdr" >&5
11404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
11407 cat > conftest.$ac_ext <<EOF
11408 #line 11409 "configure"
11409 #include "confdefs.h"
11412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11413 { (eval echo configure:11414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11415 if test -z "$ac_err"; then
11417 eval "ac_cv_header_$ac_safe=yes"
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11423 eval "ac_cv_header_$ac_safe=no"
11427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11428 echo "$ac_t""yes" 1>&6
11429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11430 cat >> confdefs.h <<EOF
11431 #define $ac_tr_hdr 1
11435 echo "$ac_t""no" 1>&6
11440 # now check for gssapi headers. This is also done here to allow for
11441 # different kerberos include paths
11442 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
11444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11446 echo "configure:11447: checking for $ac_hdr" >&5
11447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11448 echo $ac_n "(cached) $ac_c" 1>&6
11450 cat > conftest.$ac_ext <<EOF
11451 #line 11452 "configure"
11452 #include "confdefs.h"
11455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11456 { (eval echo configure:11457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11458 if test -z "$ac_err"; then
11460 eval "ac_cv_header_$ac_safe=yes"
11463 echo "configure: failed program was:" >&5
11464 cat conftest.$ac_ext >&5
11466 eval "ac_cv_header_$ac_safe=no"
11470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11471 echo "$ac_t""yes" 1>&6
11472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11473 cat >> confdefs.h <<EOF
11474 #define $ac_tr_hdr 1
11478 echo "$ac_t""no" 1>&6
11483 ##################################################################
11484 # we might need the k5crypto and com_err libraries on some systems
11485 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
11486 echo "configure:11487: checking for _et_list in -lcom_err" >&5
11487 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
11488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11489 echo $ac_n "(cached) $ac_c" 1>&6
11491 ac_save_LIBS="$LIBS"
11492 LIBS="-lcom_err $LIBS"
11493 cat > conftest.$ac_ext <<EOF
11494 #line 11495 "configure"
11495 #include "confdefs.h"
11496 /* Override any gcc2 internal prototype to avoid an error. */
11497 /* We use char because int might match the return type of a gcc2
11498 builtin and then its argument prototype would still apply. */
11505 if { (eval echo configure:11506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11507 eval "ac_cv_lib_$ac_lib_var=yes"
11509 echo "configure: failed program was:" >&5
11510 cat conftest.$ac_ext >&5
11512 eval "ac_cv_lib_$ac_lib_var=no"
11515 LIBS="$ac_save_LIBS"
11518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11519 echo "$ac_t""yes" 1>&6
11520 LIBS="$LIBS -lcom_err"
11522 echo "$ac_t""no" 1>&6
11525 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
11526 echo "configure:11527: checking for krb5_encrypt_data in -lk5crypto" >&5
11527 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
11528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11529 echo $ac_n "(cached) $ac_c" 1>&6
11531 ac_save_LIBS="$LIBS"
11532 LIBS="-lk5crypto $LIBS"
11533 cat > conftest.$ac_ext <<EOF
11534 #line 11535 "configure"
11535 #include "confdefs.h"
11536 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11539 char krb5_encrypt_data();
11542 krb5_encrypt_data()
11545 if { (eval echo configure:11546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11547 eval "ac_cv_lib_$ac_lib_var=yes"
11549 echo "configure: failed program was:" >&5
11550 cat conftest.$ac_ext >&5
11552 eval "ac_cv_lib_$ac_lib_var=no"
11555 LIBS="$ac_save_LIBS"
11558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11559 echo "$ac_t""yes" 1>&6
11560 LIBS="$LIBS -lk5crypto"
11562 echo "$ac_t""no" 1>&6
11565 echo $ac_n "checking for gss_import_name in -lgssapi_krb5""... $ac_c" 1>&6
11566 echo "configure:11567: checking for gss_import_name in -lgssapi_krb5" >&5
11567 ac_lib_var=`echo gssapi_krb5'_'gss_import_name | sed 'y%./+-%__p_%'`
11568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11569 echo $ac_n "(cached) $ac_c" 1>&6
11571 ac_save_LIBS="$LIBS"
11572 LIBS="-lgssapi_krb5 $LIBS"
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 /* Override any gcc2 internal prototype to avoid an error. */
11577 /* We use char because int might match the return type of a gcc2
11578 builtin and then its argument prototype would still apply. */
11579 char gss_import_name();
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 eval "ac_cv_lib_$ac_lib_var=yes"
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11592 eval "ac_cv_lib_$ac_lib_var=no"
11595 LIBS="$ac_save_LIBS"
11598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11600 LIBS="$LIBS -lgssapi_krb5"
11602 echo "$ac_t""no" 1>&6
11607 ########################################################
11608 # now see if we can find the krb5 libs in standard paths
11609 # or as specified above
11610 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
11611 echo "configure:11612: checking for krb5_mk_req_extended in -lkrb5" >&5
11612 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
11613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11614 echo $ac_n "(cached) $ac_c" 1>&6
11616 ac_save_LIBS="$LIBS"
11617 LIBS="-lkrb5 $LIBS"
11618 cat > conftest.$ac_ext <<EOF
11619 #line 11620 "configure"
11620 #include "confdefs.h"
11621 /* Override any gcc2 internal prototype to avoid an error. */
11622 /* We use char because int might match the return type of a gcc2
11623 builtin and then its argument prototype would still apply. */
11624 char krb5_mk_req_extended();
11627 krb5_mk_req_extended()
11630 if { (eval echo configure:11631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11632 eval "ac_cv_lib_$ac_lib_var=yes"
11634 echo "configure: failed program was:" >&5
11635 cat conftest.$ac_ext >&5
11637 eval "ac_cv_lib_$ac_lib_var=no"
11640 LIBS="$ac_save_LIBS"
11643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11644 echo "$ac_t""yes" 1>&6
11645 LIBS="$LIBS -lkrb5";
11646 cat >> confdefs.h <<\EOF
11647 #define HAVE_KRB5 1
11651 echo "$ac_t""no" 1>&6
11656 ##################################################################
11657 # we might need the lber lib on some systems. To avoid link errors
11658 # this test must be before the libldap test
11659 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
11660 echo "configure:11661: checking for ber_scanf in -llber" >&5
11661 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
11662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11665 ac_save_LIBS="$LIBS"
11666 LIBS="-llber $LIBS"
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 /* Override any gcc2 internal prototype to avoid an error. */
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11679 if { (eval echo configure:11680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11681 eval "ac_cv_lib_$ac_lib_var=yes"
11683 echo "configure: failed program was:" >&5
11684 cat conftest.$ac_ext >&5
11686 eval "ac_cv_lib_$ac_lib_var=no"
11689 LIBS="$ac_save_LIBS"
11692 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11693 echo "$ac_t""yes" 1>&6
11694 LIBS="$LIBS -llber"
11696 echo "$ac_t""no" 1>&6
11700 ########################################################
11701 # now see if we can find the ldap libs in standard paths
11702 if test x$have_ldap != xyes; then
11703 echo $ac_n "checking for ldap_open in -lldap""... $ac_c" 1>&6
11704 echo "configure:11705: checking for ldap_open in -lldap" >&5
11705 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
11706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11709 ac_save_LIBS="$LIBS"
11710 LIBS="-lldap $LIBS"
11711 cat > conftest.$ac_ext <<EOF
11712 #line 11713 "configure"
11713 #include "confdefs.h"
11714 /* Override any gcc2 internal prototype to avoid an error. */
11715 /* We use char because int might match the return type of a gcc2
11716 builtin and then its argument prototype would still apply. */
11723 if { (eval echo configure:11724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11725 eval "ac_cv_lib_$ac_lib_var=yes"
11727 echo "configure: failed program was:" >&5
11728 cat conftest.$ac_ext >&5
11730 eval "ac_cv_lib_$ac_lib_var=no"
11733 LIBS="$ac_save_LIBS"
11736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11737 echo "$ac_t""yes" 1>&6
11738 LIBS="$LIBS -lldap";
11739 cat >> confdefs.h <<\EOF
11740 #define HAVE_LDAP 1
11744 echo "$ac_t""no" 1>&6
11750 #################################################
11751 # check for automount support
11752 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11753 echo "configure:11754: checking whether to use AUTOMOUNT" >&5
11754 # Check whether --with-automount or --without-automount was given.
11755 if test "${with_automount+set}" = set; then
11756 withval="$with_automount"
11759 echo "$ac_t""yes" 1>&6
11760 cat >> confdefs.h <<\EOF
11761 #define WITH_AUTOMOUNT 1
11766 echo "$ac_t""no" 1>&6
11770 echo "$ac_t""no" 1>&6
11775 #################################################
11776 # check for smbmount support
11777 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11778 echo "configure:11779: checking whether to use SMBMOUNT" >&5
11779 # Check whether --with-smbmount or --without-smbmount was given.
11780 if test "${with_smbmount+set}" = set; then
11781 withval="$with_smbmount"
11786 echo "$ac_t""yes" 1>&6
11787 cat >> confdefs.h <<\EOF
11788 #define WITH_SMBMOUNT 1
11791 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11794 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11799 echo "$ac_t""no" 1>&6
11804 echo "$ac_t""no" 1>&6
11811 #################################################
11812 # check for a PAM clear-text auth, accounts, password and session support
11813 with_pam_for_crypt=no
11814 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
11815 echo "configure:11816: checking whether to use PAM" >&5
11816 # Check whether --with-pam or --without-pam was given.
11817 if test "${with_pam+set}" = set; then
11818 withval="$with_pam"
11821 echo "$ac_t""yes" 1>&6
11822 cat >> confdefs.h <<\EOF
11827 with_pam_for_crypt=yes
11830 echo "$ac_t""no" 1>&6
11834 echo "$ac_t""no" 1>&6
11839 # we can't build a pam module if we don't have pam.
11840 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11841 echo "configure:11842: checking for pam_get_data in -lpam" >&5
11842 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11844 echo $ac_n "(cached) $ac_c" 1>&6
11846 ac_save_LIBS="$LIBS"
11848 cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11851 /* Override any gcc2 internal prototype to avoid an error. */
11852 /* We use char because int might match the return type of a gcc2
11853 builtin and then its argument prototype would still apply. */
11854 char pam_get_data();
11860 if { (eval echo configure:11861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11862 eval "ac_cv_lib_$ac_lib_var=yes"
11864 echo "configure: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11867 eval "ac_cv_lib_$ac_lib_var=no"
11870 LIBS="$ac_save_LIBS"
11873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11874 echo "$ac_t""yes" 1>&6
11875 cat >> confdefs.h <<\EOF
11876 #define HAVE_LIBPAM 1
11880 echo "$ac_t""no" 1>&6
11884 #################################################
11885 # check for pam_smbpass support
11886 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11887 echo "configure:11888: checking whether to use pam_smbpass" >&5
11888 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11889 if test "${with_pam_smbpass+set}" = set; then
11890 withval="$with_pam_smbpass"
11893 echo "$ac_t""yes" 1>&6
11895 # Conditions under which pam_smbpass should not be built.
11897 if test x$PICFLAG = x; then
11898 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11900 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11901 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11904 PAM_MOD="bin/pam_smbpass.so"
11908 echo "$ac_t""no" 1>&6
11912 echo "$ac_t""no" 1>&6
11918 ###############################################
11919 # test for where we get crypt() from, but only
11921 if test $with_pam_for_crypt = no; then
11922 for ac_func in crypt
11924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11925 echo "configure:11926: checking for $ac_func" >&5
11926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11927 echo $ac_n "(cached) $ac_c" 1>&6
11929 cat > conftest.$ac_ext <<EOF
11930 #line 11931 "configure"
11931 #include "confdefs.h"
11932 /* System header to define __stub macros and hopefully few prototypes,
11933 which can conflict with char $ac_func(); below. */
11934 #include <assert.h>
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 /* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11942 /* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
11945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11953 if { (eval echo configure:11954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11955 eval "ac_cv_func_$ac_func=yes"
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11960 eval "ac_cv_func_$ac_func=no"
11965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11966 echo "$ac_t""yes" 1>&6
11967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11968 cat >> confdefs.h <<EOF
11969 #define $ac_tr_func 1
11973 echo "$ac_t""no" 1>&6
11977 if test x"$ac_cv_func_crypt" = x"no"; then
11978 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11979 echo "configure:11980: checking for crypt in -lcrypt" >&5
11980 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11982 echo $ac_n "(cached) $ac_c" 1>&6
11984 ac_save_LIBS="$LIBS"
11985 LIBS="-lcrypt $LIBS"
11986 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11989 /* Override any gcc2 internal prototype to avoid an error. */
11990 /* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11998 if { (eval echo configure:11999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12000 eval "ac_cv_lib_$ac_lib_var=yes"
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12005 eval "ac_cv_lib_$ac_lib_var=no"
12008 LIBS="$ac_save_LIBS"
12011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12012 echo "$ac_t""yes" 1>&6
12013 LIBS="$LIBS -lcrypt";
12014 cat >> confdefs.h <<\EOF
12015 #define HAVE_CRYPT 1
12019 echo "$ac_t""no" 1>&6
12026 ## moved after the check for -lcrypt in order to
12027 ## ensure that the necessary libraries are included
12028 ## check checking for truncated salt. Wrapped by the
12029 ## $with_pam_for_crypt variable as above --jerry
12031 if test $with_pam_for_crypt = no; then
12032 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12033 echo "configure:12034: checking for a crypt that needs truncated salt" >&5
12034 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12035 echo $ac_n "(cached) $ac_c" 1>&6
12038 if test "$cross_compiling" = yes; then
12039 samba_cv_HAVE_TRUNCATED_SALT=cross
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 #include "${srcdir-.}/tests/crypttest.c"
12046 if { (eval echo configure:12047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12048 samba_cv_HAVE_TRUNCATED_SALT=no
12050 echo "configure: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12053 samba_cv_HAVE_TRUNCATED_SALT=yes
12060 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12061 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12062 cat >> confdefs.h <<\EOF
12063 #define HAVE_TRUNCATED_SALT 1
12071 ########################################################################################
12073 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12075 ########################################################################################
12077 ## set the with_smbpasswd_sam as the default
12078 with_smbpasswd_sam=yes
12081 #################################################
12082 # check for a TDB password database
12083 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12084 echo "configure:12085: checking whether to use TDB SAM database" >&5
12085 # Check whether --with-tdbsam or --without-tdbsam was given.
12086 if test "${with_tdbsam+set}" = set; then
12087 withval="$with_tdbsam"
12090 echo "$ac_t""yes" 1>&6
12091 cat >> confdefs.h <<\EOF
12092 #define WITH_TDB_SAM 1
12095 with_smbpasswd_sam=no
12098 echo "$ac_t""no" 1>&6
12102 echo "$ac_t""no" 1>&6
12107 #################################################
12108 # check for a LDAP password database
12109 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12110 echo "configure:12111: checking whether to use LDAP SAM database" >&5
12111 # Check whether --with-ldapsam or --without-ldapsam was given.
12112 if test "${with_ldapsam+set}" = set; then
12113 withval="$with_ldapsam"
12116 echo "$ac_t""yes" 1>&6
12117 cat >> confdefs.h <<\EOF
12118 #define WITH_LDAP_SAM 1
12121 LIBS="-lldap -llber $LIBS"
12122 with_smbpasswd_sam=no
12125 echo "$ac_t""no" 1>&6
12129 echo "$ac_t""no" 1>&6
12134 #################################################
12135 # check for a NISPLUS password database
12136 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12137 echo "configure:12138: checking whether to use NISPLUS SAM database" >&5
12138 # Check whether --with-nisplussam or --without-nisplussam was given.
12139 if test "${with_nisplussam+set}" = set; then
12140 withval="$with_nisplussam"
12143 echo "$ac_t""yes" 1>&6
12144 cat >> confdefs.h <<\EOF
12145 #define WITH_NISPLUS_SAM 1
12148 with_smbpasswd_sam=no
12151 echo "$ac_t""no" 1>&6
12155 echo "$ac_t""no" 1>&6
12160 ################################################
12161 # This test should come last because the
12162 # smbpasswd SAM is only used if another format
12163 # has not been defined
12164 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12165 echo "configure:12166: checking whether to use traditional smbpasswd file" >&5
12166 if test $with_smbpasswd_sam = yes; then
12167 echo "$ac_t""yes" 1>&6
12168 cat >> confdefs.h <<\EOF
12169 #define WITH_SMBPASSWD_SAM 1
12173 echo "$ac_t""no" 1>&6
12176 ########################################################################################
12178 ## END OF TESTS FOR SAM BACKENDS.
12180 ########################################################################################
12182 #################################################
12183 # check for a NISPLUS_HOME support
12184 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12185 echo "configure:12186: checking whether to use NISPLUS_HOME" >&5
12186 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12187 if test "${with_nisplus_home+set}" = set; then
12188 withval="$with_nisplus_home"
12191 echo "$ac_t""yes" 1>&6
12192 cat >> confdefs.h <<\EOF
12193 #define WITH_NISPLUS_HOME 1
12198 echo "$ac_t""no" 1>&6
12202 echo "$ac_t""no" 1>&6
12207 #################################################
12208 # check for the secure socket layer
12209 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12210 echo "configure:12211: checking whether to use SSL" >&5
12211 # Check whether --with-ssl or --without-ssl was given.
12212 if test "${with_ssl+set}" = set; then
12213 withval="$with_ssl"
12216 echo "$ac_t""yes" 1>&6
12217 cat >> confdefs.h <<\EOF
12221 withval="/usr/local/ssl" # default
12223 if test "${with_sslinc+set}" = set; then
12225 withval="$with_sslinc"
12228 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12229 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12232 CFLAGS="-I${withval} $CFLAGS"
12238 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12242 if test "${with_ssllib+set}" = set; then
12244 withval="$with_ssllib"
12247 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12248 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12251 LDFLAGS="-L${withval}/lib $LDFLAGS"
12257 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12261 LIBS="-lssl -lcrypto $LIBS"
12263 # if test ! -d ${withval}; then
12264 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12268 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12272 echo "$ac_t""no" 1>&6
12276 echo "$ac_t""no" 1>&6
12281 #################################################
12282 # check for syslog logging
12283 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12284 echo "configure:12285: checking whether to use syslog logging" >&5
12285 # Check whether --with-syslog or --without-syslog was given.
12286 if test "${with_syslog+set}" = set; then
12287 withval="$with_syslog"
12290 echo "$ac_t""yes" 1>&6
12291 cat >> confdefs.h <<\EOF
12292 #define WITH_SYSLOG 1
12297 echo "$ac_t""no" 1>&6
12301 echo "$ac_t""no" 1>&6
12306 #################################################
12307 # check for a shared memory profiling support
12308 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to use profiling" >&5
12310 # Check whether --with-profiling-data or --without-profiling-data was given.
12311 if test "${with_profiling_data+set}" = set; then
12312 withval="$with_profiling_data"
12315 echo "$ac_t""yes" 1>&6
12316 cat >> confdefs.h <<\EOF
12317 #define WITH_PROFILE 1
12322 echo "$ac_t""no" 1>&6
12326 echo "$ac_t""no" 1>&6
12332 #################################################
12333 # check for experimental disk-quotas support
12334 QUOTAOBJS=smbd/noquotas.o
12336 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12337 echo "configure:12338: checking whether to support disk-quotas" >&5
12338 # Check whether --with-quotas or --without-quotas was given.
12339 if test "${with_quotas+set}" = set; then
12340 withval="$with_quotas"
12343 echo "$ac_t""yes" 1>&6
12346 # Check for kernel 2.4.x quota braindamage...
12347 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12348 echo "configure:12349: checking for linux 2.4.x quota braindamage.." >&5
12349 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12350 echo $ac_n "(cached) $ac_c" 1>&6
12353 cat > conftest.$ac_ext <<EOF
12354 #line 12355 "configure"
12355 #include "confdefs.h"
12357 #include <sys/types.h>
12358 #include <asm/types.h>
12359 #include <linux/quota.h>
12360 #include <mntent.h>
12361 #include <linux/unistd.h>
12363 struct mem_dqblk D;
12366 if { (eval echo configure:12367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12368 samba_cv_linux_2_4_quota_braindamage=yes
12370 echo "configure: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12373 samba_cv_linux_2_4_quota_braindamage=no
12378 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12379 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12380 cat >> confdefs.h <<\EOF
12381 #define LINUX_QUOTAS_2 1
12385 cat >> confdefs.h <<\EOF
12386 #define LINUX_QUOTAS_1 1
12394 QUOTAOBJS=smbd/quotas.o
12395 cat >> confdefs.h <<\EOF
12396 #define WITH_QUOTAS 1
12401 echo "$ac_t""no" 1>&6
12405 echo "$ac_t""no" 1>&6
12411 #################################################
12412 # check for experimental utmp accounting
12414 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12415 echo "configure:12416: checking whether to support utmp accounting" >&5
12416 # Check whether --with-utmp or --without-utmp was given.
12417 if test "${with_utmp+set}" = set; then
12418 withval="$with_utmp"
12421 echo "$ac_t""yes" 1>&6
12422 cat >> confdefs.h <<\EOF
12423 #define WITH_UTMP 1
12428 echo "$ac_t""no" 1>&6
12432 echo "$ac_t""no" 1>&6
12437 #################################################
12438 # set private directory location
12439 # Check whether --with-privatedir or --without-privatedir was given.
12440 if test "${with_privatedir+set}" = set; then
12441 withval="$with_privatedir"
12445 # Just in case anybody calls it without argument
12447 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
12448 privatedir='${prefix}/private'
12451 privatedir="$withval"
12456 privatedir='${prefix}/private'
12462 #################################################
12463 # set lock directory location
12464 # Check whether --with-lockdir or --without-lockdir was given.
12465 if test "${with_lockdir+set}" = set; then
12466 withval="$with_lockdir"
12470 # Just in case anybody calls it without argument
12472 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
12473 lockdir='$(VARDIR)/locks'
12481 lockdir='$(VARDIR)/locks'
12487 #################################################
12488 # set SWAT directory location
12489 # Check whether --with-swatdir or --without-swatdir was given.
12490 if test "${with_swatdir+set}" = set; then
12491 withval="$with_swatdir"
12495 # Just in case anybody does it
12497 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
12498 swatdir='${prefix}/swat'
12506 swatdir='${prefix}/swat'
12512 #################################################
12513 # choose native language(s) of man pages
12514 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
12515 echo "configure:12516: checking chosen man pages' language(s)" >&5
12516 # Check whether --with-manpages-langs or --without-manpages-langs was given.
12517 if test "${with_manpages_langs+set}" = set; then
12518 withval="$with_manpages_langs"
12521 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
12525 manlangs="$withval"
12529 echo "$ac_t""$manlangs" 1>&6
12530 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
12534 echo "$ac_t""$manlangs" 1>&6
12540 #################################################
12541 # these tests are taken from the GNU fileutils package
12542 echo "checking how to get filesystem space usage" 1>&6
12543 echo "configure:12544: checking how to get filesystem space usage" >&5
12546 # Test for statvfs64.
12547 if test $space = no; then
12549 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12550 echo "configure:12551: checking statvfs64 function (SVR4)" >&5
12551 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12552 echo $ac_n "(cached) $ac_c" 1>&6
12554 if test "$cross_compiling" = yes; then
12555 fu_cv_sys_stat_statvfs64=cross
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12561 #if defined(HAVE_UNISTD_H)
12562 #include <unistd.h>
12564 #include <sys/types.h>
12565 #include <sys/statvfs.h>
12568 struct statvfs64 fsd;
12569 exit (statvfs64 (".", &fsd));
12572 if { (eval echo configure:12573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12574 fu_cv_sys_stat_statvfs64=yes
12576 echo "configure: failed program was:" >&5
12577 cat conftest.$ac_ext >&5
12579 fu_cv_sys_stat_statvfs64=no
12586 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12587 if test $fu_cv_sys_stat_statvfs64 = yes; then
12589 cat >> confdefs.h <<\EOF
12590 #define STAT_STATVFS64 1
12596 # Perform only the link test since it seems there are no variants of the
12597 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12598 # because that got a false positive on SCO OSR5. Adding the declaration
12599 # of a `struct statvfs' causes this test to fail (as it should) on such
12600 # systems. That system is reported to work fine with STAT_STATFS4 which
12601 # is what it gets when this test fails.
12602 if test $space = no; then
12604 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12605 echo "configure:12606: checking statvfs function (SVR4)" >&5
12606 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12607 echo $ac_n "(cached) $ac_c" 1>&6
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 #include <sys/types.h>
12613 #include <sys/statvfs.h>
12615 struct statvfs fsd; statvfs (0, &fsd);
12618 if { (eval echo configure:12619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12620 fu_cv_sys_stat_statvfs=yes
12622 echo "configure: failed program was:" >&5
12623 cat conftest.$ac_ext >&5
12625 fu_cv_sys_stat_statvfs=no
12630 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12631 if test $fu_cv_sys_stat_statvfs = yes; then
12633 cat >> confdefs.h <<\EOF
12634 #define STAT_STATVFS 1
12640 if test $space = no; then
12641 # DEC Alpha running OSF/1
12642 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12643 echo "configure:12644: checking for 3-argument statfs function (DEC OSF/1)" >&5
12644 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12645 echo $ac_n "(cached) $ac_c" 1>&6
12647 if test "$cross_compiling" = yes; then
12648 fu_cv_sys_stat_statfs3_osf1=no
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12654 #include <sys/param.h>
12655 #include <sys/types.h>
12656 #include <sys/mount.h>
12661 exit (statfs (".", &fsd, sizeof (struct statfs)));
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12666 fu_cv_sys_stat_statfs3_osf1=yes
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12671 fu_cv_sys_stat_statfs3_osf1=no
12678 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12679 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12681 cat >> confdefs.h <<\EOF
12682 #define STAT_STATFS3_OSF1 1
12688 if test $space = no; then
12690 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12691 echo "configure:12692: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12692 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12693 echo $ac_n "(cached) $ac_c" 1>&6
12695 if test "$cross_compiling" = yes; then
12696 fu_cv_sys_stat_statfs2_bsize=no
12698 cat > conftest.$ac_ext <<EOF
12699 #line 12700 "configure"
12700 #include "confdefs.h"
12702 #ifdef HAVE_SYS_PARAM_H
12703 #include <sys/param.h>
12705 #ifdef HAVE_SYS_MOUNT_H
12706 #include <sys/mount.h>
12708 #ifdef HAVE_SYS_VFS_H
12709 #include <sys/vfs.h>
12715 exit (statfs (".", &fsd));
12718 if { (eval echo configure:12719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12720 fu_cv_sys_stat_statfs2_bsize=yes
12722 echo "configure: failed program was:" >&5
12723 cat conftest.$ac_ext >&5
12725 fu_cv_sys_stat_statfs2_bsize=no
12732 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12733 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12735 cat >> confdefs.h <<\EOF
12736 #define STAT_STATFS2_BSIZE 1
12742 if test $space = no; then
12744 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12745 echo "configure:12746: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12746 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12747 echo $ac_n "(cached) $ac_c" 1>&6
12749 if test "$cross_compiling" = yes; then
12750 fu_cv_sys_stat_statfs4=no
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755 #include <sys/types.h>
12756 #include <sys/statfs.h>
12760 exit (statfs (".", &fsd, sizeof fsd, 0));
12763 if { (eval echo configure:12764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12765 fu_cv_sys_stat_statfs4=yes
12767 echo "configure: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12770 fu_cv_sys_stat_statfs4=no
12777 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12778 if test $fu_cv_sys_stat_statfs4 = yes; then
12780 cat >> confdefs.h <<\EOF
12781 #define STAT_STATFS4 1
12787 if test $space = no; then
12788 # 4.4BSD and NetBSD
12789 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12790 echo "configure:12791: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12791 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12792 echo $ac_n "(cached) $ac_c" 1>&6
12794 if test "$cross_compiling" = yes; then
12795 fu_cv_sys_stat_statfs2_fsize=no
12797 cat > conftest.$ac_ext <<EOF
12798 #line 12799 "configure"
12799 #include "confdefs.h"
12800 #include <sys/types.h>
12801 #ifdef HAVE_SYS_PARAM_H
12802 #include <sys/param.h>
12804 #ifdef HAVE_SYS_MOUNT_H
12805 #include <sys/mount.h>
12811 exit (statfs (".", &fsd));
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12816 fu_cv_sys_stat_statfs2_fsize=yes
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 fu_cv_sys_stat_statfs2_fsize=no
12828 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12829 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12831 cat >> confdefs.h <<\EOF
12832 #define STAT_STATFS2_FSIZE 1
12838 if test $space = no; then
12840 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12841 echo "configure:12842: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12842 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12845 if test "$cross_compiling" = yes; then
12846 fu_cv_sys_stat_fs_data=no
12848 cat > conftest.$ac_ext <<EOF
12849 #line 12850 "configure"
12850 #include "confdefs.h"
12851 #include <sys/types.h>
12852 #ifdef HAVE_SYS_PARAM_H
12853 #include <sys/param.h>
12855 #ifdef HAVE_SYS_MOUNT_H
12856 #include <sys/mount.h>
12858 #ifdef HAVE_SYS_FS_TYPES_H
12859 #include <sys/fs_types.h>
12863 struct fs_data fsd;
12864 /* Ultrix's statfs returns 1 for success,
12865 0 for not mounted, -1 for failure. */
12866 exit (statfs (".", &fsd) != 1);
12869 if { (eval echo configure:12870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12871 fu_cv_sys_stat_fs_data=yes
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12876 fu_cv_sys_stat_fs_data=no
12883 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12884 if test $fu_cv_sys_stat_fs_data = yes; then
12886 cat >> confdefs.h <<\EOF
12887 #define STAT_STATFS2_FS_DATA 1
12894 # As a gating factor for large file support, in order to
12895 # use <4GB files we must have the following minimal support
12897 # long long, and a 64 bit off_t or off64_t.
12898 # If we don't have all of these then disable large
12901 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12902 echo "configure:12903: checking if large file support can be enabled" >&5
12903 cat > conftest.$ac_ext <<EOF
12904 #line 12905 "configure"
12905 #include "confdefs.h"
12907 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12908 #include <sys/types.h>
12917 if { (eval echo configure:12918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12919 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12921 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5
12924 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12927 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12928 cat >> confdefs.h <<\EOF
12929 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12933 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12935 # Check whether --with-spinlocks or --without-spinlocks was given.
12936 if test "${with_spinlocks+set}" = set; then
12937 withval="$with_spinlocks"
12941 if test "x$with_spinlocks" = "xyes"; then
12942 cat >> confdefs.h <<\EOF
12943 #define USE_SPINLOCKS 1
12947 case "$host_cpu" in
12949 cat >> confdefs.h <<\EOF
12950 #define SPARC_SPINLOCKS 1
12955 i386|i486|i586|i686)
12956 cat >> confdefs.h <<\EOF
12957 #define INTEL_SPINLOCKS 1
12963 cat >> confdefs.h <<\EOF
12964 #define MIPS_SPINLOCKS 1
12970 cat >> confdefs.h <<\EOF
12971 #define POWERPC_SPINLOCKS 1
12978 #################################################
12979 # check for ACL support
12981 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12982 echo "configure:12983: checking whether to support ACLs" >&5
12983 # Check whether --with-acl-support or --without-acl-support was given.
12984 if test "${with_acl_support+set}" = set; then
12985 withval="$with_acl_support"
12991 echo "$ac_t""Using UnixWare ACLs" 1>&6
12992 cat >> confdefs.h <<\EOF
12993 #define HAVE_UNIXWARE_ACLS 1
12998 echo "$ac_t""Using solaris ACLs" 1>&6
12999 cat >> confdefs.h <<\EOF
13000 #define HAVE_SOLARIS_ACLS 1
13005 echo "$ac_t""Using HPUX ACLs" 1>&6
13006 cat >> confdefs.h <<\EOF
13007 #define HAVE_HPUX_ACLS 1
13012 echo "$ac_t""Using IRIX ACLs" 1>&6
13013 cat >> confdefs.h <<\EOF
13014 #define HAVE_IRIX_ACLS 1
13019 echo "$ac_t""Using AIX ACLs" 1>&6
13020 cat >> confdefs.h <<\EOF
13021 #define HAVE_AIX_ACLS 1
13026 echo "$ac_t""Using Tru64 ACLs" 1>&6
13027 cat >> confdefs.h <<\EOF
13028 #define HAVE_TRU64_ACLS 1
13031 LIBS="$LIBS -lpacl"
13034 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13035 echo "configure:13036: checking for acl_get_file in -lacl" >&5
13036 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13038 echo $ac_n "(cached) $ac_c" 1>&6
13040 ac_save_LIBS="$LIBS"
13042 cat > conftest.$ac_ext <<EOF
13043 #line 13044 "configure"
13044 #include "confdefs.h"
13045 /* Override any gcc2 internal prototype to avoid an error. */
13046 /* We use char because int might match the return type of a gcc2
13047 builtin and then its argument prototype would still apply. */
13048 char acl_get_file();
13054 if { (eval echo configure:13055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13056 eval "ac_cv_lib_$ac_lib_var=yes"
13058 echo "configure: failed program was:" >&5
13059 cat conftest.$ac_ext >&5
13061 eval "ac_cv_lib_$ac_lib_var=no"
13064 LIBS="$ac_save_LIBS"
13067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13068 echo "$ac_t""yes" 1>&6
13069 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13071 cat >> confdefs.h <<EOF
13072 #define $ac_tr_lib 1
13078 echo "$ac_t""no" 1>&6
13081 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13082 echo "configure:13083: checking for ACL support" >&5
13083 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13087 cat > conftest.$ac_ext <<EOF
13088 #line 13089 "configure"
13089 #include "confdefs.h"
13090 #include <sys/types.h>
13091 #include <sys/acl.h>
13093 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13096 if { (eval echo configure:13097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13098 samba_cv_HAVE_POSIX_ACLS=yes
13100 echo "configure: failed program was:" >&5
13101 cat conftest.$ac_ext >&5
13103 samba_cv_HAVE_POSIX_ACLS=no
13108 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13109 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13110 echo "$ac_t""Using posix ACLs" 1>&6
13111 cat >> confdefs.h <<\EOF
13112 #define HAVE_POSIX_ACLS 1
13115 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13116 echo "configure:13117: checking for acl_get_perm_np" >&5
13117 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13118 echo $ac_n "(cached) $ac_c" 1>&6
13121 cat > conftest.$ac_ext <<EOF
13122 #line 13123 "configure"
13123 #include "confdefs.h"
13124 #include <sys/types.h>
13125 #include <sys/acl.h>
13127 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13130 if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13132 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13137 samba_cv_HAVE_ACL_GET_PERM_NP=no
13142 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13143 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13144 cat >> confdefs.h <<\EOF
13145 #define HAVE_ACL_GET_PERM_NP 1
13154 echo "$ac_t""no" 1>&6
13155 cat >> confdefs.h <<\EOF
13156 #define HAVE_NO_ACLS 1
13162 cat >> confdefs.h <<\EOF
13163 #define HAVE_NO_ACLS 1
13166 echo "$ac_t""no" 1>&6
13171 #################################################
13172 # Check whether winbind is supported on this platform. If so we need to
13173 # build and install client programs (WINBIND_TARGETS), sbin programs
13174 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13176 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13177 echo "configure:13178: checking whether to build winbind" >&5
13179 # Initially, the value of $host_os decides whether winbind is supported
13187 winbind_no_reason=", unsupported on $host_os"
13191 # Check the setting of --with-winbindd
13193 # Check whether --with-winbind or --without-winbind was given.
13194 if test "${with_winbind+set}" = set; then
13195 withval="$with_winbind"
13209 # We need unix domain sockets for winbind
13211 if test x"$HAVE_WINBIND" = x"yes"; then
13212 if test x"$samba_cv_unixsocket" = x"no"; then
13213 winbind_no_reason=", no unix domain socket support on $host_os"
13218 # Display test results
13220 if test x"$HAVE_WINBIND" = x"yes"; then
13222 echo "$ac_t""yes" 1>&6
13224 WINBIND_TARGETS="bin/wbinfo"
13225 WINBIND_STARGETS="bin/winbindd"
13226 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13227 case "$with_pam" in
13229 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13233 echo "$ac_t""no$winbind_no_reason" 1>&6
13236 WINBIND_STARGETS=""
13237 WINBIND_LTARGETS=""
13238 WINBIND_PAM_PROGS=""
13241 # Substitution time!
13248 #################################################
13249 # Check to see if we should use the included popt
13251 # Check whether --with-included-popt or --without-included-popt was given.
13252 if test "${with_included_popt+set}" = set; then
13253 withval="$with_included_popt"
13265 if test x"$INCLUDED_POPT" != x"yes"; then
13266 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13267 echo "configure:13268: checking for poptGetContext in -lpopt" >&5
13268 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13270 echo $ac_n "(cached) $ac_c" 1>&6
13272 ac_save_LIBS="$LIBS"
13273 LIBS="-lpopt $LIBS"
13274 cat > conftest.$ac_ext <<EOF
13275 #line 13276 "configure"
13276 #include "confdefs.h"
13277 /* Override any gcc2 internal prototype to avoid an error. */
13278 /* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13280 char poptGetContext();
13286 if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13288 eval "ac_cv_lib_$ac_lib_var=yes"
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13293 eval "ac_cv_lib_$ac_lib_var=no"
13296 LIBS="$ac_save_LIBS"
13299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13300 echo "$ac_t""yes" 1>&6
13303 echo "$ac_t""no" 1>&6
13309 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13310 echo "configure:13311: checking whether to use included popt" >&5
13311 if test x"$INCLUDED_POPT" = x"yes"; then
13312 echo "$ac_t""$srcdir/popt" 1>&6
13313 BUILD_POPT='$(POPT_OBJS)'
13314 FLAGS1="-I$srcdir/popt"
13316 echo "$ac_t""no" 1>&6
13317 LIBS="$LIBS -lpopt"
13322 #################################################
13323 # final configure stuff
13325 echo "checking configure summary"
13326 if test "$cross_compiling" = yes; then
13329 cat > conftest.$ac_ext <<EOF
13330 #line 13331 "configure"
13331 #include "confdefs.h"
13332 #include "${srcdir-.}/tests/summary.c"
13334 if { (eval echo configure:13335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13336 echo "configure OK";
13338 echo "configure: failed program was:" >&5
13339 cat conftest.$ac_ext >&5
13341 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
13351 cat > confcache <<\EOF
13352 # This file is a shell script that caches the results of configure
13353 # tests run on this system so they can be shared between configure
13354 # scripts and configure runs. It is not useful on other systems.
13355 # If it contains results you don't want to keep, you may remove or edit it.
13357 # By default, configure uses ./config.cache as the cache file,
13358 # creating it if it does not exist already. You can give configure
13359 # the --cache-file=FILE option to use a different cache file; that is
13360 # what configure does when it calls configure scripts in
13361 # subdirectories, so they share the cache.
13362 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13363 # config.status only pays attention to the cache file if you give it the
13364 # --recheck option to rerun configure.
13367 # The following way of writing the cache mishandles newlines in values,
13368 # but we know of no workaround that is simple, portable, and efficient.
13369 # So, don't put newlines in cache variables' values.
13370 # Ultrix sh set writes to stderr and can't be redirected directly,
13371 # and sets the high bit in the cache file unless we assign to the vars.
13373 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13375 # `set' does not quote correctly, so add quotes (double-quote substitution
13376 # turns \\\\ into \\, and sed turns \\ into \).
13378 -e "s/'/'\\\\''/g" \
13379 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13382 # `set' quotes correctly as required by POSIX, so do not add quotes.
13383 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13386 if cmp -s $cache_file confcache; then
13389 if test -w $cache_file; then
13390 echo "updating cache $cache_file"
13391 cat confcache > $cache_file
13393 echo "not updating unwritable cache $cache_file"
13398 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13400 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13401 # Let make expand exec_prefix.
13402 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13404 # Any assignment to VPATH causes Sun make to only execute
13405 # the first set of double-colon rules, so remove it if not needed.
13406 # If there is a colon in the path, we need to keep it.
13407 if test "x$srcdir" = x.; then
13408 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13411 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13413 DEFS=-DHAVE_CONFIG_H
13415 # Without the "./", some shells look in PATH for config.status.
13416 : ${CONFIG_STATUS=./config.status}
13418 echo creating $CONFIG_STATUS
13419 rm -f $CONFIG_STATUS
13420 cat > $CONFIG_STATUS <<EOF
13422 # Generated automatically by configure.
13423 # Run this file to recreate the current configuration.
13424 # This directory was configured as follows,
13425 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13427 # $0 $ac_configure_args
13429 # Compiler output produced by configure, useful for debugging
13430 # configure, is in ./config.log if it exists.
13432 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13435 case "\$ac_option" in
13436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13437 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13438 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13439 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13440 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13442 -help | --help | --hel | --he | --h)
13443 echo "\$ac_cs_usage"; exit 0 ;;
13444 *) echo "\$ac_cs_usage"; exit 1 ;;
13448 ac_given_srcdir=$srcdir
13449 ac_given_INSTALL="$INSTALL"
13451 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13453 cat >> $CONFIG_STATUS <<EOF
13455 # Protect against being on the right side of a sed subst in config.status.
13456 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13457 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13461 s%@CFLAGS@%$CFLAGS%g
13462 s%@CPPFLAGS@%$CPPFLAGS%g
13463 s%@CXXFLAGS@%$CXXFLAGS%g
13464 s%@FFLAGS@%$FFLAGS%g
13466 s%@LDFLAGS@%$LDFLAGS%g
13468 s%@exec_prefix@%$exec_prefix%g
13469 s%@prefix@%$prefix%g
13470 s%@program_transform_name@%$program_transform_name%g
13471 s%@bindir@%$bindir%g
13472 s%@sbindir@%$sbindir%g
13473 s%@libexecdir@%$libexecdir%g
13474 s%@datadir@%$datadir%g
13475 s%@sysconfdir@%$sysconfdir%g
13476 s%@sharedstatedir@%$sharedstatedir%g
13477 s%@localstatedir@%$localstatedir%g
13478 s%@libdir@%$libdir%g
13479 s%@includedir@%$includedir%g
13480 s%@oldincludedir@%$oldincludedir%g
13481 s%@infodir@%$infodir%g
13482 s%@mandir@%$mandir%g
13483 s%@RUNPROG@%$RUNPROG%g
13484 s%@MPROGS@%$MPROGS%g
13485 s%@LDSHFLAGS@%$LDSHFLAGS%g
13487 s%@HOST_OS@%$HOST_OS%g
13488 s%@PAM_MOD@%$PAM_MOD%g
13490 s%@WRAP32@%$WRAP32%g
13491 s%@PICFLAG@%$PICFLAG%g
13492 s%@PICSUFFIX@%$PICSUFFIX%g
13493 s%@POBAD_CC@%$POBAD_CC%g
13494 s%@SHLIBEXT@%$SHLIBEXT%g
13495 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13497 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13498 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13499 s%@INSTALL_DATA@%$INSTALL_DATA%g
13501 s%@BROKEN_CC@%$BROKEN_CC%g
13503 s%@host_alias@%$host_alias%g
13504 s%@host_cpu@%$host_cpu%g
13505 s%@host_vendor@%$host_vendor%g
13506 s%@host_os@%$host_os%g
13507 s%@target@%$target%g
13508 s%@target_alias@%$target_alias%g
13509 s%@target_cpu@%$target_cpu%g
13510 s%@target_vendor@%$target_vendor%g
13511 s%@target_os@%$target_os%g
13513 s%@build_alias@%$build_alias%g
13514 s%@build_cpu@%$build_cpu%g
13515 s%@build_vendor@%$build_vendor%g
13516 s%@build_os@%$build_os%g
13518 s%@LIBOBJS@%$LIBOBJS%g
13519 s%@TERMLIBS@%$TERMLIBS%g
13520 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13522 s%@QUOTAOBJS@%$QUOTAOBJS%g
13523 s%@privatedir@%$privatedir%g
13524 s%@lockdir@%$lockdir%g
13525 s%@swatdir@%$swatdir%g
13526 s%@manlangs@%$manlangs%g
13527 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13528 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13529 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13530 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13531 s%@BUILD_POPT@%$BUILD_POPT%g
13532 s%@FLAGS1@%$FLAGS1%g
13533 s%@builddir@%$builddir%g
13538 cat >> $CONFIG_STATUS <<\EOF
13540 # Split the substitutions into bite-sized pieces for seds with
13541 # small command number limits, like on Digital OSF/1 and HP-UX.
13542 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13543 ac_file=1 # Number of current file.
13544 ac_beg=1 # First line for current file.
13545 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13548 while $ac_more_lines; do
13549 if test $ac_beg -gt 1; then
13550 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13552 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13554 if test ! -s conftest.s$ac_file; then
13555 ac_more_lines=false
13556 rm -f conftest.s$ac_file
13558 if test -z "$ac_sed_cmds"; then
13559 ac_sed_cmds="sed -f conftest.s$ac_file"
13561 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13563 ac_file=`expr $ac_file + 1`
13565 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13568 if test -z "$ac_sed_cmds"; then
13573 cat >> $CONFIG_STATUS <<EOF
13575 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
13577 cat >> $CONFIG_STATUS <<\EOF
13578 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13579 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13581 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13582 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13583 *) ac_file_in="${ac_file}.in" ;;
13586 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13588 # Remove last slash and all that follows it. Not all systems have dirname.
13589 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13590 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13591 # The file is in a subdirectory.
13592 test ! -d "$ac_dir" && mkdir "$ac_dir"
13593 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13594 # A "../" for each directory in $ac_dir_suffix.
13595 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13597 ac_dir_suffix= ac_dots=
13600 case "$ac_given_srcdir" in
13602 if test -z "$ac_dots"; then top_srcdir=.
13603 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13604 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13605 *) # Relative path.
13606 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13607 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13610 case "$ac_given_INSTALL" in
13611 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13612 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13615 echo creating "$ac_file"
13617 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13619 *Makefile*) ac_comsub="1i\\
13620 # $configure_input" ;;
13624 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13626 s%@configure_input@%$configure_input%g
13627 s%@srcdir@%$srcdir%g
13628 s%@top_srcdir@%$top_srcdir%g
13629 s%@INSTALL@%$INSTALL%g
13630 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13634 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13635 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13637 # ac_d sets the value in "#define NAME VALUE" lines.
13638 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13639 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13642 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13643 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13644 ac_uB='\([ ]\)%\1#\2define\3'
13647 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13648 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13649 ac_eB='$%\1#\2define\3'
13653 if test "${CONFIG_HEADERS+set}" != set; then
13655 cat >> $CONFIG_STATUS <<EOF
13656 CONFIG_HEADERS="include/config.h"
13658 cat >> $CONFIG_STATUS <<\EOF
13660 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13663 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13664 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13665 *) ac_file_in="${ac_file}.in" ;;
13668 echo creating $ac_file
13670 rm -f conftest.frag conftest.in conftest.out
13671 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13672 cat $ac_file_inputs > conftest.in
13676 # Transform confdefs.h into a sed script conftest.vals that substitutes
13677 # the proper values into config.h.in to produce config.h. And first:
13678 # Protect against being on the right side of a sed subst in config.status.
13679 # Protect against being in an unquoted here document in config.status.
13680 rm -f conftest.vals
13681 cat > conftest.hdr <<\EOF
13684 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13688 sed -n -f conftest.hdr confdefs.h > conftest.vals
13691 # This sed command replaces #undef with comments. This is necessary, for
13692 # example, in the case of _POSIX_SOURCE, which is predefined and required
13693 # on some systems where configure will not decide to define it.
13694 cat >> conftest.vals <<\EOF
13695 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13698 # Break up conftest.vals because some shells have a limit on
13699 # the size of here documents, and old seds have small limits too.
13701 rm -f conftest.tail
13704 ac_lines=`grep -c . conftest.vals`
13705 # grep -c gives empty output for an empty file on some AIX systems.
13706 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13707 # Write a limited-size here document to conftest.frag.
13708 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13709 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13711 sed -f conftest.frag conftest.in > conftest.out
13713 mv conftest.out conftest.in
13714 ' >> $CONFIG_STATUS
13715 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13716 rm -f conftest.vals
13717 mv conftest.tail conftest.vals
13719 rm -f conftest.vals
13721 cat >> $CONFIG_STATUS <<\EOF
13722 rm -f conftest.frag conftest.h
13723 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13724 cat conftest.in >> conftest.h
13726 if cmp -s $ac_file conftest.h 2>/dev/null; then
13727 echo "$ac_file is unchanged"
13730 # Remove last slash and all that follows it. Not all systems have dirname.
13731 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13732 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13733 # The file is in a subdirectory.
13734 test ! -d "$ac_dir" && mkdir "$ac_dir"
13737 mv conftest.h $ac_file
13742 cat >> $CONFIG_STATUS <<EOF
13745 cat >> $CONFIG_STATUS <<\EOF
13749 chmod +x $CONFIG_STATUS
13750 rm -fr confdefs* $ac_clean_files
13751 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1