3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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:
15 --enable-maintainer-mode enable some make rules for maintainers"
17 --with-smbwrapper Include SMB wrapper support
18 --without-smbwrapper Don't include SMB wrapper support (default)"
20 --with-afs Include AFS support
21 --without-afs Don't include AFS support (default)"
23 --with-dfs Include DFS support
24 --without-dfs Don't include DFS support (default)"
26 --with-krb4=base-dir Include Kerberos IV support
27 --whithout-krb4 Don't include Kerbers IV support (default)"
29 --with-automount Include AUTOMOUNT support
30 --without-automount Don't include AUTOMOUNT support (default)"
32 --with-smbmount Include SMBMOUNT (Linux only) support
33 --without-smbmount Don't include SMBMOUNT support (default)"
35 --with-ldap Include LDAP support
36 --without-ldap Don't include LDAP support (default)"
38 --with-nisplus Include NISPLUS password database support
39 --without-nisplus Don't include NISPLUS password database support (default)"
41 --with-nisplus-home Include NISPLUS_HOME support
42 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
44 --with-ssl Include SSL support
45 --without-ssl Don't include SSL support (default)"
47 --with-mmap Include experimental MMAP support
48 --without-mmap Don't include MMAP support (default)"
50 --with-syslog Include experimental SYSLOG support
51 --without-syslog Don't include SYSLOG support (default)"
53 --with-netatalk Include experimental Netatalk support
54 --without-netatalk Don't include experimental Netatalk support (default)"
56 --with-quotas Include experimental disk-quota support
57 --without-quotas Don't include experimental disk-quota support (default)"
59 # Initialize some variables set by options.
60 # The variables have the same names as the options, with
61 # dashes changed to underlines.
63 cache_file=./config.cache
72 program_transform_name=s,x,x,
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${exec_prefix}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
93 # Initialize some other variables.
96 # Maximum number of lines to put in a shell here document.
103 # If the previous option needs an argument, assign it.
104 if test -n "$ac_prev"; then
105 eval "$ac_prev=\$ac_option"
111 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
115 # Accept the important Cygnus configure options, so we can diagnose typos.
119 -bindir | --bindir | --bindi | --bind | --bin | --bi)
121 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
122 bindir="$ac_optarg" ;;
124 -build | --build | --buil | --bui | --bu)
126 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
127 build="$ac_optarg" ;;
129 -cache-file | --cache-file | --cache-fil | --cache-fi \
130 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
131 ac_prev=cache_file ;;
132 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
133 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
134 cache_file="$ac_optarg" ;;
136 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
138 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140 datadir="$ac_optarg" ;;
142 -disable-* | --disable-*)
143 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}=no" ;;
151 -enable-* | --enable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
162 eval "enable_${ac_feature}='$ac_optarg'" ;;
164 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
165 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
166 | --exec | --exe | --ex)
167 ac_prev=exec_prefix ;;
168 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
169 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
170 | --exec=* | --exe=* | --ex=*)
171 exec_prefix="$ac_optarg" ;;
173 -gas | --gas | --ga | --g)
174 # Obsolete; use --with-gas.
177 -help | --help | --hel | --he)
178 # Omit some internal or obsolete options to make the list less imposing.
179 # This message is too long to be a string in the A/UX 3.1 sh.
181 Usage: configure [options] [host]
182 Options: [defaults in brackets after descriptions]
184 --cache-file=FILE cache test results in FILE
185 --help print this message
186 --no-create do not create output files
187 --quiet, --silent do not print \`checking...' messages
188 --version print the version of autoconf that created configure
189 Directory and file names:
190 --prefix=PREFIX install architecture-independent files in PREFIX
192 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
194 --bindir=DIR user executables in DIR [EPREFIX/bin]
195 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
196 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
197 --datadir=DIR read-only architecture-independent data in DIR
199 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
200 --sharedstatedir=DIR modifiable architecture-independent data in DIR
202 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
203 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
204 --includedir=DIR C header files in DIR [PREFIX/include]
205 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
206 --infodir=DIR info documentation in DIR [PREFIX/info]
207 --mandir=DIR man documentation in DIR [PREFIX/man]
208 --srcdir=DIR find the sources in DIR [configure dir or ..]
209 --program-prefix=PREFIX prepend PREFIX to installed program names
210 --program-suffix=SUFFIX append SUFFIX to installed program names
211 --program-transform-name=PROGRAM
212 run sed PROGRAM on installed program names
216 --build=BUILD configure for building on BUILD [BUILD=HOST]
217 --host=HOST configure for HOST [guessed]
218 --target=TARGET configure for TARGET [TARGET=HOST]
219 Features and packages:
220 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
221 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
222 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
223 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
224 --x-includes=DIR X include files are in DIR
225 --x-libraries=DIR X library files are in DIR
227 if test -n "$ac_help"; then
228 echo "--enable and --with options recognized:$ac_help"
232 -host | --host | --hos | --ho)
234 -host=* | --host=* | --hos=* | --ho=*)
237 -includedir | --includedir | --includedi | --included | --include \
238 | --includ | --inclu | --incl | --inc)
239 ac_prev=includedir ;;
240 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
241 | --includ=* | --inclu=* | --incl=* | --inc=*)
242 includedir="$ac_optarg" ;;
244 -infodir | --infodir | --infodi | --infod | --info | --inf)
246 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
247 infodir="$ac_optarg" ;;
249 -libdir | --libdir | --libdi | --libd)
251 -libdir=* | --libdir=* | --libdi=* | --libd=*)
252 libdir="$ac_optarg" ;;
254 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
255 | --libexe | --libex | --libe)
256 ac_prev=libexecdir ;;
257 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
258 | --libexe=* | --libex=* | --libe=*)
259 libexecdir="$ac_optarg" ;;
261 -localstatedir | --localstatedir | --localstatedi | --localstated \
262 | --localstate | --localstat | --localsta | --localst \
263 | --locals | --local | --loca | --loc | --lo)
264 ac_prev=localstatedir ;;
265 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
266 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
267 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
268 localstatedir="$ac_optarg" ;;
270 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
273 mandir="$ac_optarg" ;;
276 # Obsolete; use --without-fp.
279 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
283 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
284 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
287 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
288 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
289 | --oldin | --oldi | --old | --ol | --o)
290 ac_prev=oldincludedir ;;
291 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
292 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
293 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
294 oldincludedir="$ac_optarg" ;;
296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
299 prefix="$ac_optarg" ;;
301 -program-prefix | --program-prefix | --program-prefi | --program-pref \
302 | --program-pre | --program-pr | --program-p)
303 ac_prev=program_prefix ;;
304 -program-prefix=* | --program-prefix=* | --program-prefi=* \
305 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
306 program_prefix="$ac_optarg" ;;
308 -program-suffix | --program-suffix | --program-suffi | --program-suff \
309 | --program-suf | --program-su | --program-s)
310 ac_prev=program_suffix ;;
311 -program-suffix=* | --program-suffix=* | --program-suffi=* \
312 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
313 program_suffix="$ac_optarg" ;;
315 -program-transform-name | --program-transform-name \
316 | --program-transform-nam | --program-transform-na \
317 | --program-transform-n | --program-transform- \
318 | --program-transform | --program-transfor \
319 | --program-transfo | --program-transf \
320 | --program-trans | --program-tran \
321 | --progr-tra | --program-tr | --program-t)
322 ac_prev=program_transform_name ;;
323 -program-transform-name=* | --program-transform-name=* \
324 | --program-transform-nam=* | --program-transform-na=* \
325 | --program-transform-n=* | --program-transform-=* \
326 | --program-transform=* | --program-transfor=* \
327 | --program-transfo=* | --program-transf=* \
328 | --program-trans=* | --program-tran=* \
329 | --progr-tra=* | --program-tr=* | --program-t=*)
330 program_transform_name="$ac_optarg" ;;
332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
333 | -silent | --silent | --silen | --sile | --sil)
336 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
338 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340 sbindir="$ac_optarg" ;;
342 -sharedstatedir | --sharedstatedir | --sharedstatedi \
343 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
344 | --sharedst | --shareds | --shared | --share | --shar \
346 ac_prev=sharedstatedir ;;
347 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
348 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
349 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351 sharedstatedir="$ac_optarg" ;;
353 -site | --site | --sit)
355 -site=* | --site=* | --sit=*)
358 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
361 srcdir="$ac_optarg" ;;
363 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
364 | --syscon | --sysco | --sysc | --sys | --sy)
365 ac_prev=sysconfdir ;;
366 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
367 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
368 sysconfdir="$ac_optarg" ;;
370 -target | --target | --targe | --targ | --tar | --ta | --t)
372 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
373 target="$ac_optarg" ;;
375 -v | -verbose | --verbose | --verbos | --verbo | --verb)
378 -version | --version | --versio | --versi | --vers)
379 echo "configure generated by autoconf version 2.12"
383 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}='$ac_optarg'" ;;
395 -without-* | --without-*)
396 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
399 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}=no" ;;
405 # Obsolete; use --with-x.
408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
409 | --x-incl | --x-inc | --x-in | --x-i)
410 ac_prev=x_includes ;;
411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
413 x_includes="$ac_optarg" ;;
415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
417 ac_prev=x_libraries ;;
418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
420 x_libraries="$ac_optarg" ;;
422 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
426 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
427 echo "configure: warning: $ac_option: invalid host type" 1>&2
429 if test "x$nonopt" != xNONE; then
430 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 if test -n "$ac_prev"; then
439 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
442 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444 # File descriptor usage:
447 # 2 errors and warnings
448 # 3 some systems may open it to /dev/tty
449 # 4 used on the Kubota Titan
450 # 6 checking for... messages and results
451 # 5 compiler messages saved in config.log
452 if test "$silent" = yes; then
460 This file contains any messages produced by compilers while
461 running configure, to aid debugging if configure makes a mistake.
464 # Strip out --no-create and --no-recursion so they do not pile up.
465 # Also quote any args containing shell metacharacters.
470 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
471 | --no-cr | --no-c) ;;
472 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
473 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
475 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
476 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
481 # Only set these to C if already set. These must not be set unconditionally
482 # because not all systems understand e.g. LANG=C (notably SCO).
483 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
484 # Non-C LC_CTYPE values break the ctype check.
485 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
486 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
487 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
488 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
491 rm -rf conftest* confdefs.h
492 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
495 # A filename unique to this package, relative to the directory that
496 # configure is in, which we can look for to find out if srcdir is correct.
497 ac_unique_file=include/includes.h
499 # Find the source files, if location was not specified.
500 if test -z "$srcdir"; then
501 ac_srcdir_defaulted=yes
502 # Try the directory containing this script, then its parent.
504 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
505 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
507 if test ! -r $srcdir/$ac_unique_file; then
511 ac_srcdir_defaulted=no
513 if test ! -r $srcdir/$ac_unique_file; then
514 if test "$ac_srcdir_defaulted" = yes; then
515 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
520 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522 # Prefer explicitly selected file to automatically selected ones.
523 if test -z "$CONFIG_SITE"; then
524 if test "x$prefix" != xNONE; then
525 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
530 for ac_site_file in $CONFIG_SITE; do
531 if test -r "$ac_site_file"; then
532 echo "loading site script $ac_site_file"
537 if test -r "$cache_file"; then
538 echo "loading cache $cache_file"
541 echo "creating cache $cache_file"
546 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
547 ac_cpp='$CPP $CPPFLAGS'
548 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
549 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
550 cross_compiling=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='\c' ac_t=
574 # Extract the first word of "gcc", so it can be a program name with args.
575 set dummy gcc; ac_word=$2
576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
577 echo "configure:578: checking for $ac_word" >&5
578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
579 echo $ac_n "(cached) $ac_c" 1>&6
581 if test -n "$CC"; then
582 ac_cv_prog_CC="$CC" # Let the user override the test.
584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
585 for ac_dir in $PATH; do
586 test -z "$ac_dir" && ac_dir=.
587 if test -f $ac_dir/$ac_word; then
596 if test -n "$CC"; then
597 echo "$ac_t""$CC" 1>&6
599 echo "$ac_t""no" 1>&6
602 if test -z "$CC"; then
603 # Extract the first word of "cc", so it can be a program name with args.
604 set dummy cc; ac_word=$2
605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
606 echo "configure:607: checking for $ac_word" >&5
607 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
610 if test -n "$CC"; then
611 ac_cv_prog_CC="$CC" # Let the user override the test.
613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
615 for ac_dir in $PATH; do
616 test -z "$ac_dir" && ac_dir=.
617 if test -f $ac_dir/$ac_word; then
618 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
627 if test $ac_prog_rejected = yes; then
628 # We found a bogon in the path, so make sure we never use it.
629 set dummy $ac_cv_prog_CC
631 if test $# -gt 0; then
632 # We chose a different compiler from the bogus one.
633 # However, it has the same basename, so the bogon will be chosen
634 # first if we set CC to just the basename; use the full file name.
636 set dummy "$ac_dir/$ac_word" "$@"
644 if test -n "$CC"; then
645 echo "$ac_t""$CC" 1>&6
647 echo "$ac_t""no" 1>&6
650 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
653 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
654 echo "configure:655: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
658 ac_cpp='$CPP $CPPFLAGS'
659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
660 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
661 cross_compiling=$ac_cv_prog_cc_cross
663 cat > conftest.$ac_ext <<EOF
664 #line 665 "configure"
665 #include "confdefs.h"
668 if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
669 ac_cv_prog_cc_works=yes
670 # If we can't run a trivial program, we are probably using a cross compiler.
671 if (./conftest; exit) 2>/dev/null; then
672 ac_cv_prog_cc_cross=no
674 ac_cv_prog_cc_cross=yes
677 echo "configure: failed program was:" >&5
678 cat conftest.$ac_ext >&5
679 ac_cv_prog_cc_works=no
683 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684 if test $ac_cv_prog_cc_works = no; then
685 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
687 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688 echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690 cross_compiling=$ac_cv_prog_cc_cross
692 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693 echo "configure:694: checking whether we are using GNU C" >&5
694 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 cat > conftest.c <<EOF
702 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
709 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
711 if test $ac_cv_prog_gcc = yes; then
713 ac_test_CFLAGS="${CFLAGS+set}"
714 ac_save_CFLAGS="$CFLAGS"
716 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
717 echo "configure:718: checking whether ${CC-cc} accepts -g" >&5
718 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
721 echo 'void f(){}' > conftest.c
722 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
731 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
732 if test "$ac_test_CFLAGS" = set; then
733 CFLAGS="$ac_save_CFLAGS"
734 elif test $ac_cv_prog_cc_g = yes; then
741 test "${CFLAGS+set}" = set || CFLAGS="-g"
745 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
746 if test -f $ac_dir/install-sh; then
748 ac_install_sh="$ac_aux_dir/install-sh -c"
750 elif test -f $ac_dir/install.sh; then
752 ac_install_sh="$ac_aux_dir/install.sh -c"
756 if test -z "$ac_aux_dir"; then
757 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
759 ac_config_guess=$ac_aux_dir/config.guess
760 ac_config_sub=$ac_aux_dir/config.sub
761 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
763 # Find a good install program. We prefer a C program (faster),
764 # so one script is as good as another. But avoid the broken or
765 # incompatible versions:
766 # SysV /etc/install, /usr/sbin/install
767 # SunOS /usr/etc/install
770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
772 # ./install, which can be erroneously created by make from ./install.sh.
773 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
774 echo "configure:775: checking for a BSD compatible install" >&5
775 if test -z "$INSTALL"; then
776 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
777 echo $ac_n "(cached) $ac_c" 1>&6
779 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
780 for ac_dir in $PATH; do
781 # Account for people who put trailing slashes in PATH elements.
783 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
785 # OSF1 and SCO ODT 3.0 have their own names for install.
786 for ac_prog in ginstall installbsd scoinst install; do
787 if test -f $ac_dir/$ac_prog; then
788 if test $ac_prog = install &&
789 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
790 # AIX install. It has an incompatible calling convention.
791 # OSF/1 installbsd also uses dspmsg, but is usable.
794 ac_cv_path_install="$ac_dir/$ac_prog -c"
805 if test "${ac_cv_path_install+set}" = set; then
806 INSTALL="$ac_cv_path_install"
808 # As a last resort, use the slow shell script. We don't cache a
809 # path for INSTALL within a source directory, because that will
810 # break other packages using the cache if that directory is
811 # removed, or if the path is relative.
812 INSTALL="$ac_install_sh"
815 echo "$ac_t""$INSTALL" 1>&6
817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
818 # It thinks the first close brace ends the variable substitution.
819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
823 for ac_prog in mawk gawk nawk awk
825 # Extract the first word of "$ac_prog", so it can be a program name with args.
826 set dummy $ac_prog; ac_word=$2
827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
828 echo "configure:829: checking for $ac_word" >&5
829 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
832 if test -n "$AWK"; then
833 ac_cv_prog_AWK="$AWK" # Let the user override the test.
835 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
836 for ac_dir in $PATH; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
839 ac_cv_prog_AWK="$ac_prog"
846 AWK="$ac_cv_prog_AWK"
847 if test -n "$AWK"; then
848 echo "$ac_t""$AWK" 1>&6
850 echo "$ac_t""no" 1>&6
853 test -n "$AWK" && break
858 # Do some error checking and defaulting for the host and target type.
860 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
863 # 1. You are not allowed to specify --host, --target, and nonopt at the
865 # 2. Host defaults to nonopt.
866 # 3. If nonopt is not specified, then host defaults to the current host,
867 # as determined by config.guess.
868 # 4. Target and build default to nonopt.
869 # 5. If nonopt is not specified, then target and build default to host.
871 # The aliases save the names the user supplied, while $host etc.
872 # will get canonicalized.
873 case $host---$target---$nonopt in
874 NONE---*---* | *---NONE---* | *---*---NONE) ;;
875 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
879 # Make sure we can run config.sub.
880 if $ac_config_sub sun4 >/dev/null 2>&1; then :
881 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
884 echo $ac_n "checking host system type""... $ac_c" 1>&6
885 echo "configure:886: checking host system type" >&5
888 case "$host_alias" in
892 if host_alias=`$ac_config_guess`; then :
893 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
895 *) host_alias=$nonopt ;;
899 host=`$ac_config_sub $host_alias`
900 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
901 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
902 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
903 echo "$ac_t""$host" 1>&6
905 echo $ac_n "checking target system type""... $ac_c" 1>&6
906 echo "configure:907: checking target system type" >&5
909 case "$target_alias" in
912 NONE) target_alias=$host_alias ;;
913 *) target_alias=$nonopt ;;
917 target=`$ac_config_sub $target_alias`
918 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
921 echo "$ac_t""$target" 1>&6
923 echo $ac_n "checking build system type""... $ac_c" 1>&6
924 echo "configure:925: checking build system type" >&5
927 case "$build_alias" in
930 NONE) build_alias=$host_alias ;;
931 *) build_alias=$nonopt ;;
935 build=`$ac_config_sub $build_alias`
936 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
937 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
938 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
939 echo "$ac_t""$build" 1>&6
941 test "$host_alias" != "$target_alias" &&
942 test "$program_prefix$program_suffix$program_transform_name" = \
944 program_prefix=${target_alias}-
948 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
949 echo "configure:950: checking config.cache system type" >&5
950 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
951 test x"$ac_cv_host_system_type" != x"$host"; } ||
952 { test x"${ac_cv_build_system_type+set}" = x"set" &&
953 test x"$ac_cv_build_system_type" != x"$build"; } ||
954 { test x"${ac_cv_target_system_type+set}" = x"set" &&
955 test x"$ac_cv_target_system_type" != x"$target"; }; then
956 echo "$ac_t""different" 1>&6
957 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
959 echo "$ac_t""same" 1>&6
961 ac_cv_host_system_type="$host"
962 ac_cv_build_system_type="$build"
963 ac_cv_target_system_type="$target"
966 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
967 if test "${enable_maintainer_mode+set}" = set; then
968 enableval="$enable_maintainer_mode"
969 maint_mode=$enableval
974 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
976 # Extract the first word of "autoconf", so it can be a program name with args.
977 set dummy autoconf; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
985 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
989 for ac_dir in $PATH; do
990 test -z "$ac_dir" && ac_dir=.
991 if test -f $ac_dir/$ac_word; then
992 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
997 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1001 AUTOCONF="$ac_cv_path_AUTOCONF"
1002 if test -n "$AUTOCONF"; then
1003 echo "$ac_t""$AUTOCONF" 1>&6
1005 echo "$ac_t""no" 1>&6
1009 # Extract the first word of "autoheader", so it can be a program name with args.
1010 set dummy autoheader; ac_word=$2
1011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012 echo "configure:1013: checking for $ac_word" >&5
1013 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1016 case "$AUTOHEADER" in
1018 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1022 for ac_dir in $PATH; do
1023 test -z "$ac_dir" && ac_dir=.
1024 if test -f $ac_dir/$ac_word; then
1025 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1030 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1034 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1035 if test -n "$AUTOHEADER"; then
1036 echo "$ac_t""$AUTOHEADER" 1>&6
1038 echo "$ac_t""no" 1>&6
1044 echo $ac_n "checking for inline""... $ac_c" 1>&6
1045 echo "configure:1046: checking for inline" >&5
1046 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1050 for ac_kw in inline __inline__ __inline; do
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1059 if { (eval echo configure:1060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1061 ac_cv_c_inline=$ac_kw; break
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1071 echo "$ac_t""$ac_cv_c_inline" 1>&6
1072 case "$ac_cv_c_inline" in
1074 no) cat >> confdefs.h <<\EOF
1078 *) cat >> confdefs.h <<EOF
1079 #define inline $ac_cv_c_inline
1084 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1085 echo "configure:1086: checking how to run the C preprocessor" >&5
1086 # On Suns, sometimes $CPP names a directory.
1087 if test -n "$CPP" && test -d "$CPP"; then
1090 if test -z "$CPP"; then
1091 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 # This must be in double quotes, not single quotes, because CPP may get
1095 # substituted into the Makefile and "${CC-cc}" will confuse make.
1097 # On the NeXT, cc -E runs the code through the compiler's parser,
1098 # not just through cpp.
1099 cat > conftest.$ac_ext <<EOF
1100 #line 1101 "configure"
1101 #include "confdefs.h"
1105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1106 { (eval echo configure:1107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1107 ac_err=`grep -v '^ *+' conftest.out`
1108 if test -z "$ac_err"; then
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1115 CPP="${CC-cc} -E -traditional-cpp"
1116 cat > conftest.$ac_ext <<EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1123 { (eval echo configure:1124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1124 ac_err=`grep -v '^ *+' conftest.out`
1125 if test -z "$ac_err"; then
1129 echo "configure: failed program was:" >&5
1130 cat conftest.$ac_ext >&5
1137 ac_cv_prog_CPP="$CPP"
1139 CPP="$ac_cv_prog_CPP"
1141 ac_cv_prog_CPP="$CPP"
1143 echo "$ac_t""$CPP" 1>&6
1145 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1146 echo "configure:1147: checking for ANSI C header files" >&5
1147 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1150 cat > conftest.$ac_ext <<EOF
1151 #line 1152 "configure"
1152 #include "confdefs.h"
1158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1159 { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1160 ac_err=`grep -v '^ *+' conftest.out`
1161 if test -z "$ac_err"; then
1163 ac_cv_header_stdc=yes
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1169 ac_cv_header_stdc=no
1173 if test $ac_cv_header_stdc = yes; then
1174 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1175 cat > conftest.$ac_ext <<EOF
1176 #line 1177 "configure"
1177 #include "confdefs.h"
1180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1181 egrep "memchr" >/dev/null 2>&1; then
1185 ac_cv_header_stdc=no
1191 if test $ac_cv_header_stdc = yes; then
1192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1199 egrep "free" >/dev/null 2>&1; then
1203 ac_cv_header_stdc=no
1209 if test $ac_cv_header_stdc = yes; then
1210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1211 if test "$cross_compiling" = yes; then
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1218 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1219 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1220 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1221 int main () { int i; for (i = 0; i < 256; i++)
1222 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1226 if { (eval echo configure:1227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1233 ac_cv_header_stdc=no
1241 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1242 if test $ac_cv_header_stdc = yes; then
1243 cat >> confdefs.h <<\EOF
1244 #define STDC_HEADERS 1
1250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1253 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_hdr that defines DIR" >&5
1255 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 cat > conftest.$ac_ext <<EOF
1259 #line 1260 "configure"
1260 #include "confdefs.h"
1261 #include <sys/types.h>
1267 if { (eval echo configure:1268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1269 eval "ac_cv_header_dirent_$ac_safe=yes"
1271 echo "configure: failed program was:" >&5
1272 cat conftest.$ac_ext >&5
1274 eval "ac_cv_header_dirent_$ac_safe=no"
1278 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1279 echo "$ac_t""yes" 1>&6
1280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1281 cat >> confdefs.h <<EOF
1282 #define $ac_tr_hdr 1
1284 ac_header_dirent=$ac_hdr; break
1286 echo "$ac_t""no" 1>&6
1289 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1290 if test $ac_header_dirent = dirent.h; then
1291 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1292 echo "configure:1293: checking for opendir in -ldir" >&5
1293 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_save_LIBS="$LIBS"
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1302 /* Override any gcc2 internal prototype to avoid an error. */
1303 /* We use char because int might match the return type of a gcc2
1304 builtin and then its argument prototype would still apply. */
1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1313 eval "ac_cv_lib_$ac_lib_var=yes"
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1318 eval "ac_cv_lib_$ac_lib_var=no"
1321 LIBS="$ac_save_LIBS"
1324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1328 echo "$ac_t""no" 1>&6
1332 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1333 echo "configure:1334: checking for opendir in -lx" >&5
1334 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 ac_save_LIBS="$LIBS"
1340 cat > conftest.$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1343 /* Override any gcc2 internal prototype to avoid an error. */
1344 /* We use char because int might match the return type of a gcc2
1345 builtin and then its argument prototype would still apply. */
1352 if { (eval echo configure:1353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1354 eval "ac_cv_lib_$ac_lib_var=yes"
1356 echo "configure: failed program was:" >&5
1357 cat conftest.$ac_ext >&5
1359 eval "ac_cv_lib_$ac_lib_var=no"
1362 LIBS="$ac_save_LIBS"
1365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1366 echo "$ac_t""yes" 1>&6
1369 echo "$ac_t""no" 1>&6
1374 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1375 echo "configure:1376: checking whether time.h and sys/time.h may both be included" >&5
1376 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1382 #include <sys/types.h>
1383 #include <sys/time.h>
1389 if { (eval echo configure:1390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1391 ac_cv_header_time=yes
1393 echo "configure: failed program was:" >&5
1394 cat conftest.$ac_ext >&5
1396 ac_cv_header_time=no
1401 echo "$ac_t""$ac_cv_header_time" 1>&6
1402 if test $ac_cv_header_time = yes; then
1403 cat >> confdefs.h <<\EOF
1404 #define TIME_WITH_SYS_TIME 1
1409 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1410 echo "configure:1411: checking for sys/wait.h that is POSIX.1 compatible" >&5
1411 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 #include <sys/types.h>
1418 #include <sys/wait.h>
1420 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1423 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1428 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1431 if { (eval echo configure:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1433 ac_cv_header_sys_wait_h=yes
1435 echo "configure: failed program was:" >&5
1436 cat conftest.$ac_ext >&5
1438 ac_cv_header_sys_wait_h=no
1443 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1444 if test $ac_cv_header_sys_wait_h = yes; then
1445 cat >> confdefs.h <<\EOF
1446 #define HAVE_SYS_WAIT_H 1
1451 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_hdr" >&5
1456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1466 ac_err=`grep -v '^ *+' conftest.out`
1467 if test -z "$ac_err"; then
1469 eval "ac_cv_header_$ac_safe=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1475 eval "ac_cv_header_$ac_safe=no"
1479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1482 cat >> confdefs.h <<EOF
1483 #define $ac_tr_hdr 1
1487 echo "$ac_t""no" 1>&6
1491 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1493 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_hdr" >&5
1496 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 cat > conftest.$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1505 { (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1506 ac_err=`grep -v '^ *+' conftest.out`
1507 if test -z "$ac_err"; then
1509 eval "ac_cv_header_$ac_safe=yes"
1512 echo "configure: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1515 eval "ac_cv_header_$ac_safe=no"
1519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1520 echo "$ac_t""yes" 1>&6
1521 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1522 cat >> confdefs.h <<EOF
1523 #define $ac_tr_hdr 1
1527 echo "$ac_t""no" 1>&6
1531 for ac_hdr in compat.h rpc/rpc.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1535 echo "configure:1536: checking for $ac_hdr" >&5
1536 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1545 { (eval echo configure:1546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1546 ac_err=`grep -v '^ *+' conftest.out`
1547 if test -z "$ac_err"; then
1549 eval "ac_cv_header_$ac_safe=yes"
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1555 eval "ac_cv_header_$ac_safe=no"
1559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1560 echo "$ac_t""yes" 1>&6
1561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1562 cat >> confdefs.h <<EOF
1563 #define $ac_tr_hdr 1
1567 echo "$ac_t""no" 1>&6
1571 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1575 echo "configure:1576: checking for $ac_hdr" >&5
1576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #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`
1587 if test -z "$ac_err"; then
1589 eval "ac_cv_header_$ac_safe=yes"
1592 echo "configure: failed program was:" >&5
1593 cat conftest.$ac_ext >&5
1595 eval "ac_cv_header_$ac_safe=no"
1599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1600 echo "$ac_t""yes" 1>&6
1601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1602 cat >> confdefs.h <<EOF
1603 #define $ac_tr_hdr 1
1607 echo "$ac_t""no" 1>&6
1611 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1615 echo "configure:1616: checking for $ac_hdr" >&5
1616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 cat > conftest.$ac_ext <<EOF
1620 #line 1621 "configure"
1621 #include "confdefs.h"
1624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1625 { (eval echo configure:1626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1626 ac_err=`grep -v '^ *+' conftest.out`
1627 if test -z "$ac_err"; then
1629 eval "ac_cv_header_$ac_safe=yes"
1632 echo "configure: failed program was:" >&5
1633 cat conftest.$ac_ext >&5
1635 eval "ac_cv_header_$ac_safe=no"
1639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1642 cat >> confdefs.h <<EOF
1643 #define $ac_tr_hdr 1
1647 echo "$ac_t""no" 1>&6
1651 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1655 echo "configure:1656: checking for $ac_hdr" >&5
1656 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1661 "configure"
1661 #include "confdefs.h"
1664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1665 { (eval echo configure:1666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1666 ac_err=`grep -v '^ *+' conftest.out`
1667 if test -z "$ac_err"; then
1669 eval "ac_cv_header_$ac_safe=yes"
1672 echo "configure: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1675 eval "ac_cv_header_$ac_safe=no"
1679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1680 echo "$ac_t""yes" 1>&6
1681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1682 cat >> confdefs.h <<EOF
1683 #define $ac_tr_hdr 1
1687 echo "$ac_t""no" 1>&6
1691 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1695 echo "configure:1696: checking for $ac_hdr" >&5
1696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 cat > conftest.$ac_ext <<EOF
1700 #line 1701 "configure"
1701 #include "confdefs.h"
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out`
1707 if test -z "$ac_err"; then
1709 eval "ac_cv_header_$ac_safe=yes"
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1715 eval "ac_cv_header_$ac_safe=no"
1719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1722 cat >> confdefs.h <<EOF
1723 #define $ac_tr_hdr 1
1727 echo "$ac_t""no" 1>&6
1731 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_hdr" >&5
1736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1739 cat > conftest.$ac_ext <<EOF
1740 #line 1741 "configure"
1741 #include "confdefs.h"
1744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1745 { (eval echo configure:1746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1746 ac_err=`grep -v '^ *+' conftest.out`
1747 if test -z "$ac_err"; then
1749 eval "ac_cv_header_$ac_safe=yes"
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 eval "ac_cv_header_$ac_safe=no"
1759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1760 echo "$ac_t""yes" 1>&6
1761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1762 cat >> confdefs.h <<EOF
1763 #define $ac_tr_hdr 1
1767 echo "$ac_t""no" 1>&6
1771 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1775 echo "configure:1776: checking for $ac_hdr" >&5
1776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1779 cat > conftest.$ac_ext <<EOF
1780 #line 1781 "configure"
1781 #include "confdefs.h"
1784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1785 { (eval echo configure:1786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1786 ac_err=`grep -v '^ *+' conftest.out`
1787 if test -z "$ac_err"; then
1789 eval "ac_cv_header_$ac_safe=yes"
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 eval "ac_cv_header_$ac_safe=no"
1799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1800 echo "$ac_t""yes" 1>&6
1801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1802 cat >> confdefs.h <<EOF
1803 #define $ac_tr_hdr 1
1807 echo "$ac_t""no" 1>&6
1811 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_hdr" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err=`grep -v '^ *+' conftest.out`
1827 if test -z "$ac_err"; then
1829 eval "ac_cv_header_$ac_safe=yes"
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1835 eval "ac_cv_header_$ac_safe=no"
1839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1842 cat >> confdefs.h <<EOF
1843 #define $ac_tr_hdr 1
1847 echo "$ac_t""no" 1>&6
1851 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1855 echo "configure:1856: checking for $ac_hdr" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out`
1867 if test -z "$ac_err"; then
1869 eval "ac_cv_header_$ac_safe=yes"
1872 echo "configure: failed program was:" >&5
1873 cat conftest.$ac_ext >&5
1875 eval "ac_cv_header_$ac_safe=no"
1879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1880 echo "$ac_t""yes" 1>&6
1881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1882 cat >> confdefs.h <<EOF
1883 #define $ac_tr_hdr 1
1887 echo "$ac_t""no" 1>&6
1891 for ac_hdr in sys/acl.h sys/cdefs.h
1893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1895 echo "configure:1896: checking for $ac_hdr" >&5
1896 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 cat > conftest.$ac_ext <<EOF
1900 #line 1901 "configure"
1901 #include "confdefs.h"
1904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1905 { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1906 ac_err=`grep -v '^ *+' conftest.out`
1907 if test -z "$ac_err"; then
1909 eval "ac_cv_header_$ac_safe=yes"
1912 echo "configure: failed program was:" >&5
1913 cat conftest.$ac_ext >&5
1915 eval "ac_cv_header_$ac_safe=no"
1919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1920 echo "$ac_t""yes" 1>&6
1921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1922 cat >> confdefs.h <<EOF
1923 #define $ac_tr_hdr 1
1927 echo "$ac_t""no" 1>&6
1932 echo $ac_n "checking size of int""... $ac_c" 1>&6
1933 echo "configure:1934: checking size of int" >&5
1934 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 if test "$cross_compiling" = yes; then
1938 ac_cv_sizeof_int=cross
1940 cat > conftest.$ac_ext <<EOF
1941 #line 1942 "configure"
1942 #include "confdefs.h"
1946 FILE *f=fopen("conftestval", "w");
1948 fprintf(f, "%d\n", sizeof(int));
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1954 ac_cv_sizeof_int=`cat conftestval`
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1965 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1966 cat >> confdefs.h <<EOF
1967 #define SIZEOF_INT $ac_cv_sizeof_int
1971 echo $ac_n "checking size of long""... $ac_c" 1>&6
1972 echo "configure:1973: checking size of long" >&5
1973 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 if test "$cross_compiling" = yes; then
1977 ac_cv_sizeof_long=cross
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1985 FILE *f=fopen("conftestval", "w");
1987 fprintf(f, "%d\n", sizeof(long));
1991 if { (eval echo configure:1992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1993 ac_cv_sizeof_long=`cat conftestval`
1995 echo "configure: failed program was:" >&5
1996 cat conftest.$ac_ext >&5
2004 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2005 cat >> confdefs.h <<EOF
2006 #define SIZEOF_LONG $ac_cv_sizeof_long
2010 echo $ac_n "checking size of short""... $ac_c" 1>&6
2011 echo "configure:2012: checking size of short" >&5
2012 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 if test "$cross_compiling" = yes; then
2016 ac_cv_sizeof_short=cross
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2024 FILE *f=fopen("conftestval", "w");
2026 fprintf(f, "%d\n", sizeof(short));
2030 if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2032 ac_cv_sizeof_short=`cat conftestval`
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2037 ac_cv_sizeof_short=0
2043 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2044 cat >> confdefs.h <<EOF
2045 #define SIZEOF_SHORT $ac_cv_sizeof_short
2050 echo $ac_n "checking for working const""... $ac_c" 1>&6
2051 echo "configure:2052: checking for working const" >&5
2052 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 cat > conftest.$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2061 /* Ultrix mips cc rejects this. */
2062 typedef int charset[2]; const charset x;
2063 /* SunOS 4.1.1 cc rejects this. */
2064 char const *const *ccp;
2066 /* NEC SVR4.0.2 mips cc rejects this. */
2067 struct point {int x, y;};
2068 static struct point const zero = {0,0};
2069 /* AIX XL C 1.02.0.0 rejects this.
2070 It does not let you subtract one const X* pointer from another in an arm
2071 of an if-expression whose if-part is not a constant expression */
2072 const char *g = "string";
2073 ccp = &g + (g ? g-g : 0);
2074 /* HPUX 7.0 cc rejects these. */
2077 ccp = (char const *const *) p;
2078 { /* SCO 3.2v4 cc rejects this. */
2080 char const *s = 0 ? (char *) 0 : (char const *) 0;
2084 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2086 const int *foo = &x[0];
2089 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2090 typedef const int *iptr;
2094 { /* AIX XL C 1.02.0.0 rejects this saying
2095 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2096 struct s { int j; const int *ap[3]; };
2097 struct s *b; b->j = 5;
2099 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2105 if { (eval echo configure:2106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2109 echo "configure: failed program was:" >&5
2110 cat conftest.$ac_ext >&5
2117 echo "$ac_t""$ac_cv_c_const" 1>&6
2118 if test $ac_cv_c_const = no; then
2119 cat >> confdefs.h <<\EOF
2125 echo $ac_n "checking for inline""... $ac_c" 1>&6
2126 echo "configure:2127: checking for inline" >&5
2127 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2131 for ac_kw in inline __inline__ __inline; do
2132 cat > conftest.$ac_ext <<EOF
2133 #line 2134 "configure"
2134 #include "confdefs.h"
2140 if { (eval echo configure:2141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2142 ac_cv_c_inline=$ac_kw; break
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2152 echo "$ac_t""$ac_cv_c_inline" 1>&6
2153 case "$ac_cv_c_inline" in
2155 no) cat >> confdefs.h <<\EOF
2159 *) cat >> confdefs.h <<EOF
2160 #define inline $ac_cv_c_inline
2165 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2166 echo "configure:2167: checking whether byte ordering is bigendian" >&5
2167 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 ac_cv_c_bigendian=unknown
2171 # See if sys/param.h defines the BYTE_ORDER macro.
2172 cat > conftest.$ac_ext <<EOF
2173 #line 2174 "configure"
2174 #include "confdefs.h"
2175 #include <sys/types.h>
2176 #include <sys/param.h>
2179 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2184 if { (eval echo configure:2185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2186 # It does; now see whether it defined to BIG_ENDIAN or not.
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <sys/types.h>
2191 #include <sys/param.h>
2194 #if BYTE_ORDER != BIG_ENDIAN
2199 if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2201 ac_cv_c_bigendian=yes
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2206 ac_cv_c_bigendian=no
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2214 if test $ac_cv_c_bigendian = unknown; then
2215 if test "$cross_compiling" = yes; then
2216 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2222 /* Are we little or big endian? From Harbison&Steele. */
2226 char c[sizeof (long)];
2229 exit (u.c[sizeof (long) - 1] == 1);
2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2234 ac_cv_c_bigendian=no
2236 echo "configure: failed program was:" >&5
2237 cat conftest.$ac_ext >&5
2239 ac_cv_c_bigendian=yes
2247 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2248 if test $ac_cv_c_bigendian = yes; then
2249 cat >> confdefs.h <<\EOF
2250 #define WORDS_BIGENDIAN 1
2255 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2256 echo "configure:2257: checking whether char is unsigned" >&5
2257 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 if test "$GCC" = yes; then
2261 # GCC predefines this symbol on systems where it applies.
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 #ifdef __CHAR_UNSIGNED__
2270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2271 egrep "yes" >/dev/null 2>&1; then
2273 ac_cv_c_char_unsigned=yes
2276 ac_cv_c_char_unsigned=no
2281 if test "$cross_compiling" = yes; then
2282 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2287 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2288 #if !defined(__STDC__) || __STDC__ != 1
2292 volatile char c = 255; exit(c < 0);
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2297 ac_cv_c_char_unsigned=yes
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 ac_cv_c_char_unsigned=no
2310 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2311 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2312 cat >> confdefs.h <<\EOF
2313 #define __CHAR_UNSIGNED__ 1
2319 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2320 echo "configure:2321: checking return type of signal handlers" >&5
2321 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #include <sys/types.h>
2333 extern "C" void (*signal (int, void (*)(int)))(int);
2335 void (*signal ()) ();
2342 if { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2344 ac_cv_type_signal=void
2346 echo "configure: failed program was:" >&5
2347 cat conftest.$ac_ext >&5
2349 ac_cv_type_signal=int
2354 echo "$ac_t""$ac_cv_type_signal" 1>&6
2355 cat >> confdefs.h <<EOF
2356 #define RETSIGTYPE $ac_cv_type_signal
2360 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2361 echo "configure:2362: checking for uid_t in sys/types.h" >&5
2362 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 #include <sys/types.h>
2370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2371 egrep "uid_t" >/dev/null 2>&1; then
2373 ac_cv_type_uid_t=yes
2382 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2383 if test $ac_cv_type_uid_t = no; then
2384 cat >> confdefs.h <<\EOF
2388 cat >> confdefs.h <<\EOF
2394 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2395 echo "configure:2396: checking for mode_t" >&5
2396 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 #include <sys/types.h>
2408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2409 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2411 ac_cv_type_mode_t=yes
2414 ac_cv_type_mode_t=no
2419 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2420 if test $ac_cv_type_mode_t = no; then
2421 cat >> confdefs.h <<\EOF
2427 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2428 echo "configure:2429: checking for off_t" >&5
2429 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 #include <sys/types.h>
2441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2442 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2444 ac_cv_type_off_t=yes
2452 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2453 if test $ac_cv_type_off_t = no; then
2454 cat >> confdefs.h <<\EOF
2460 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2461 echo "configure:2462: checking for size_t" >&5
2462 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <sys/types.h>
2474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2475 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2477 ac_cv_type_size_t=yes
2480 ac_cv_type_size_t=no
2485 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2486 if test $ac_cv_type_size_t = no; then
2487 cat >> confdefs.h <<\EOF
2488 #define size_t unsigned
2493 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2494 echo "configure:2495: checking for pid_t" >&5
2495 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2501 #include <sys/types.h>
2507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2508 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2510 ac_cv_type_pid_t=yes
2518 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2519 if test $ac_cv_type_pid_t = no; then
2520 cat >> confdefs.h <<\EOF
2526 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2527 echo "configure:2528: checking for st_rdev in struct stat" >&5
2528 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2534 #include <sys/types.h>
2535 #include <sys/stat.h>
2537 struct stat s; s.st_rdev;
2540 if { (eval echo configure:2541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2542 ac_cv_struct_st_rdev=yes
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2547 ac_cv_struct_st_rdev=no
2552 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2553 if test $ac_cv_struct_st_rdev = yes; then
2554 cat >> confdefs.h <<\EOF
2555 #define HAVE_ST_RDEV 1
2560 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2561 echo "configure:2562: checking for d_off in dirent" >&5
2562 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2570 #include <sys/types.h>
2573 struct dirent d; d.d_off;
2576 if { (eval echo configure:2577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2578 ac_cv_dirent_d_off=yes
2580 echo "configure: failed program was:" >&5
2581 cat conftest.$ac_ext >&5
2583 ac_cv_dirent_d_off=no
2588 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2589 if test $ac_cv_dirent_d_off = yes; then
2590 cat >> confdefs.h <<\EOF
2591 #define HAVE_DIRENT_D_OFF 1
2596 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2597 echo "configure:2598: checking for ino_t" >&5
2598 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2601 cat > conftest.$ac_ext <<EOF
2602 #line 2603 "configure"
2603 #include "confdefs.h"
2604 #include <sys/types.h>
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2613 ac_cv_type_ino_t=yes
2621 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2622 if test $ac_cv_type_ino_t = no; then
2623 cat >> confdefs.h <<\EOF
2624 #define ino_t unsigned
2629 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2630 echo "configure:2631: checking for loff_t" >&5
2631 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2644 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2646 ac_cv_type_loff_t=yes
2649 ac_cv_type_loff_t=no
2654 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2655 if test $ac_cv_type_loff_t = no; then
2656 cat >> confdefs.h <<\EOF
2657 #define loff_t off_t
2662 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2663 echo "configure:2664: checking for offset_t" >&5
2664 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <sys/types.h>
2676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2677 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2679 ac_cv_type_offset_t=yes
2682 ac_cv_type_offset_t=no
2687 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2688 if test $ac_cv_type_offset_t = no; then
2689 cat >> confdefs.h <<\EOF
2690 #define offset_t loff_t
2695 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2696 echo "configure:2697: checking for ssize_t" >&5
2697 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 #include <sys/types.h>
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2712 ac_cv_type_ssize_t=yes
2715 ac_cv_type_ssize_t=no
2720 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2721 if test $ac_cv_type_ssize_t = no; then
2722 cat >> confdefs.h <<\EOF
2729 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2730 echo "configure:2731: checking for errno in errno.h" >&5
2731 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2743 if { (eval echo configure:2744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2747 echo "configure: failed program was:" >&5
2748 cat conftest.$ac_ext >&5
2750 samba_cv_have_errno_decl=no
2755 echo "$ac_t""$samba_cv_errno" 1>&6
2756 if test x"$samba_cv_errno" = x"yes"; then
2757 cat >> confdefs.h <<\EOF
2758 #define HAVE_ERRNO_DECL 1
2763 # stupid glibc has the functions but no declaration. grrrr.
2764 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2765 echo "configure:2766: checking for setresuid declaration" >&5
2766 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2770 cat > conftest.$ac_ext <<EOF
2771 #line 2772 "configure"
2772 #include "confdefs.h"
2775 int i = (int)setresuid
2778 if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 samba_cv_have_setresuid_decl=yes
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 samba_cv_have_setresuid_decl=no
2790 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2791 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2792 cat >> confdefs.h <<\EOF
2793 #define HAVE_SETRESUID_DECL 1
2798 # stupid glibc has the functions but no declaration. grrrr.
2799 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2800 echo "configure:2801: checking for crypt declaration" >&5
2801 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2813 if { (eval echo configure:2814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2815 samba_cv_have_crypt_decl=yes
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2820 samba_cv_have_crypt_decl=no
2825 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2826 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2827 cat >> confdefs.h <<\EOF
2828 #define HAVE_CRYPT_DECL 1
2833 # and glibc has setresuid under linux but the function does
2834 # nothing until kernel 2.1.44! very dumb.
2835 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2836 echo "configure:2837: checking for real setresuid" >&5
2837 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2838 echo $ac_n "(cached) $ac_c" 1>&6
2841 if test "$cross_compiling" = yes; then
2842 samba_cv_have_setresuid=cross
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2848 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2850 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2852 samba_cv_have_setresuid=yes
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 samba_cv_have_setresuid=no
2864 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2865 if test x"$samba_cv_have_setresuid" = x"yes"; then
2866 cat >> confdefs.h <<\EOF
2867 #define HAVE_SETRESUID 1
2872 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2873 echo "configure:2874: checking for 8-bit clean memcmp" >&5
2874 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 if test "$cross_compiling" = yes; then
2878 ac_cv_func_memcmp_clean=no
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2886 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2887 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2893 ac_cv_func_memcmp_clean=yes
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 ac_cv_func_memcmp_clean=no
2905 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2906 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2909 ###############################################
2910 # test for where we get crypt() from
2911 for ac_func in crypt
2913 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_func" >&5
2915 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 /* System header to define __stub macros and hopefully few prototypes,
2922 which can conflict with char $ac_func(); below. */
2924 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2931 /* The GNU C library defines this for functions which it implements
2932 to always fail with ENOSYS. Some functions are actually named
2933 something starting with __ and the normal name is an alias. */
2934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2944 eval "ac_cv_func_$ac_func=yes"
2946 echo "configure: failed program was:" >&5
2947 cat conftest.$ac_ext >&5
2949 eval "ac_cv_func_$ac_func=no"
2954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2957 cat >> confdefs.h <<EOF
2958 #define $ac_tr_func 1
2962 echo "$ac_t""no" 1>&6
2966 if test x"$ac_cv_func_crypt" = x"no"; then
2967 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2968 echo "configure:2969: checking for crypt in -lcrypt" >&5
2969 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2971 echo $ac_n "(cached) $ac_c" 1>&6
2973 ac_save_LIBS="$LIBS"
2974 LIBS="-lcrypt $LIBS"
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* Override any gcc2 internal prototype to avoid an error. */
2979 /* We use char because int might match the return type of a gcc2
2980 builtin and then its argument prototype would still apply. */
2987 if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2989 eval "ac_cv_lib_$ac_lib_var=yes"
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2994 eval "ac_cv_lib_$ac_lib_var=no"
2997 LIBS="$ac_save_LIBS"
3000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 LIBS="$LIBS -lcrypt";
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_CRYPT 1
3008 echo "$ac_t""no" 1>&6
3014 ###############################################
3015 # test for where we get pam_authenticate() from
3016 # might need libdl for this to work
3017 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3018 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3019 echo "configure:3020: checking for main in -ldl" >&5
3020 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 ac_save_LIBS="$LIBS"
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3034 if { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3036 eval "ac_cv_lib_$ac_lib_var=yes"
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3041 eval "ac_cv_lib_$ac_lib_var=no"
3044 LIBS="$ac_save_LIBS"
3047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3048 echo "$ac_t""yes" 1>&6
3049 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3051 cat >> confdefs.h <<EOF
3052 #define $ac_tr_lib 1
3058 echo "$ac_t""no" 1>&6
3062 for ac_func in pam_authenticate
3064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3065 echo "configure:3066: checking for $ac_func" >&5
3066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3067 echo $ac_n "(cached) $ac_c" 1>&6
3069 cat > conftest.$ac_ext <<EOF
3070 #line 3071 "configure"
3071 #include "confdefs.h"
3072 /* System header to define __stub macros and hopefully few prototypes,
3073 which can conflict with char $ac_func(); below. */
3075 /* Override any gcc2 internal prototype to avoid an error. */
3076 /* We use char because int might match the return type of a gcc2
3077 builtin and then its argument prototype would still apply. */
3082 /* The GNU C library defines this for functions which it implements
3083 to always fail with ENOSYS. Some functions are actually named
3084 something starting with __ and the normal name is an alias. */
3085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3095 eval "ac_cv_func_$ac_func=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_func_$ac_func=no"
3105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3106 echo "$ac_t""yes" 1>&6
3107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3108 cat >> confdefs.h <<EOF
3109 #define $ac_tr_func 1
3113 echo "$ac_t""no" 1>&6
3117 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3118 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3119 echo "configure:3120: checking for pam_authenticate in -lpam" >&5
3120 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3124 ac_save_LIBS="$LIBS"
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3129 /* Override any gcc2 internal prototype to avoid an error. */
3130 /* We use char because int might match the return type of a gcc2
3131 builtin and then its argument prototype would still apply. */
3132 char pam_authenticate();
3138 if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3140 eval "ac_cv_lib_$ac_lib_var=yes"
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 eval "ac_cv_lib_$ac_lib_var=no"
3148 LIBS="$ac_save_LIBS"
3151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3152 echo "$ac_t""yes" 1>&6
3154 cat >> confdefs.h <<\EOF
3155 #define HAVE_PAM_AUTHENTICATE 1
3159 echo "$ac_t""no" 1>&6
3165 ###############################################
3166 # test for where we get readline() from
3167 if test "$ac_cv_header_readline_h" = "yes" ||
3168 test "$ac_cv_header_readline_readline_h" = "yes"; then
3169 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3170 echo "configure:3171: checking for readline in -lreadline" >&5
3171 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3172 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 ac_save_LIBS="$LIBS"
3176 LIBS="-lreadline $LIBS"
3177 cat > conftest.$ac_ext <<EOF
3178 #line 3179 "configure"
3179 #include "confdefs.h"
3180 /* Override any gcc2 internal prototype to avoid an error. */
3181 /* We use char because int might match the return type of a gcc2
3182 builtin and then its argument prototype would still apply. */
3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3191 eval "ac_cv_lib_$ac_lib_var=yes"
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 eval "ac_cv_lib_$ac_lib_var=no"
3199 LIBS="$ac_save_LIBS"
3202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3203 echo "$ac_t""yes" 1>&6
3204 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3205 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3206 cat >> confdefs.h <<EOF
3207 #define $ac_tr_lib 1
3210 LIBS="-lreadline $LIBS"
3213 echo "$ac_t""no" 1>&6
3219 # The following test taken from the cvs sources
3220 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3221 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3222 # libsocket.so which has a bad implementation of gethostbyname (it
3223 # only looks in /etc/hosts), so we only look for -lsocket if we need
3225 for ac_func in connect
3227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3228 echo "configure:3229: checking for $ac_func" >&5
3229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3232 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure"
3234 #include "confdefs.h"
3235 /* System header to define __stub macros and hopefully few prototypes,
3236 which can conflict with char $ac_func(); below. */
3238 /* Override any gcc2 internal prototype to avoid an error. */
3239 /* We use char because int might match the return type of a gcc2
3240 builtin and then its argument prototype would still apply. */
3245 /* The GNU C library defines this for functions which it implements
3246 to always fail with ENOSYS. Some functions are actually named
3247 something starting with __ and the normal name is an alias. */
3248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3258 eval "ac_cv_func_$ac_func=yes"
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3263 eval "ac_cv_func_$ac_func=no"
3268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3269 echo "$ac_t""yes" 1>&6
3270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3271 cat >> confdefs.h <<EOF
3272 #define $ac_tr_func 1
3276 echo "$ac_t""no" 1>&6
3280 if test x"$ac_cv_func_connect" = x"no"; then
3283 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3284 echo "configure:3285: checking for printf in -lnsl_s" >&5
3285 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 ac_save_LIBS="$LIBS"
3290 LIBS="-lnsl_s $LIBS"
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3294 /* Override any gcc2 internal prototype to avoid an error. */
3295 /* We use char because int might match the return type of a gcc2
3296 builtin and then its argument prototype would still apply. */
3303 if { (eval echo configure:3304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3305 eval "ac_cv_lib_$ac_lib_var=yes"
3307 echo "configure: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3310 eval "ac_cv_lib_$ac_lib_var=no"
3313 LIBS="$ac_save_LIBS"
3316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3317 echo "$ac_t""yes" 1>&6
3318 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3319 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3320 cat >> confdefs.h <<EOF
3321 #define $ac_tr_lib 1
3324 LIBS="-lnsl_s $LIBS"
3327 echo "$ac_t""no" 1>&6
3333 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3334 echo "configure:3335: checking for printf in -lnsl" >&5
3335 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3336 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3339 ac_save_LIBS="$LIBS"
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* Override any gcc2 internal prototype to avoid an error. */
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3355 eval "ac_cv_lib_$ac_lib_var=yes"
3357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3360 eval "ac_cv_lib_$ac_lib_var=no"
3363 LIBS="$ac_save_LIBS"
3366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3368 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3370 cat >> confdefs.h <<EOF
3371 #define $ac_tr_lib 1
3377 echo "$ac_t""no" 1>&6
3383 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3384 echo "configure:3385: checking for connect in -lsocket" >&5
3385 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3387 echo $ac_n "(cached) $ac_c" 1>&6
3389 ac_save_LIBS="$LIBS"
3390 LIBS="-lsocket $LIBS"
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 /* Override any gcc2 internal prototype to avoid an error. */
3395 /* We use char because int might match the return type of a gcc2
3396 builtin and then its argument prototype would still apply. */
3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3405 eval "ac_cv_lib_$ac_lib_var=yes"
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3410 eval "ac_cv_lib_$ac_lib_var=no"
3413 LIBS="$ac_save_LIBS"
3416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3417 echo "$ac_t""yes" 1>&6
3418 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3419 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3420 cat >> confdefs.h <<EOF
3421 #define $ac_tr_lib 1
3424 LIBS="-lsocket $LIBS"
3427 echo "$ac_t""no" 1>&6
3433 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3434 echo "configure:3435: checking for connect in -linet" >&5
3435 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 ac_save_LIBS="$LIBS"
3441 cat > conftest.$ac_ext <<EOF
3442 #line 3443 "configure"
3443 #include "confdefs.h"
3444 /* Override any gcc2 internal prototype to avoid an error. */
3445 /* We use char because int might match the return type of a gcc2
3446 builtin and then its argument prototype would still apply. */
3453 if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3455 eval "ac_cv_lib_$ac_lib_var=yes"
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3460 eval "ac_cv_lib_$ac_lib_var=no"
3463 LIBS="$ac_save_LIBS"
3466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3467 echo "$ac_t""yes" 1>&6
3468 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3470 cat >> confdefs.h <<EOF
3471 #define $ac_tr_lib 1
3477 echo "$ac_t""no" 1>&6
3481 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3482 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3483 # ac_cv_func_connect=yes
3484 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3485 cat >> confdefs.h <<\EOF
3486 #define HAVE_CONNECT 1
3493 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3496 echo "configure:3497: checking for $ac_func" >&5
3497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.$ac_ext <<EOF
3501 #line 3502 "configure"
3502 #include "confdefs.h"
3503 /* System header to define __stub macros and hopefully few prototypes,
3504 which can conflict with char $ac_func(); below. */
3506 /* Override any gcc2 internal prototype to avoid an error. */
3507 /* We use char because int might match the return type of a gcc2
3508 builtin and then its argument prototype would still apply. */
3513 /* The GNU C library defines this for functions which it implements
3514 to always fail with ENOSYS. Some functions are actually named
3515 something starting with __ and the normal name is an alias. */
3516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3526 eval "ac_cv_func_$ac_func=yes"
3528 echo "configure: failed program was:" >&5
3529 cat conftest.$ac_ext >&5
3531 eval "ac_cv_func_$ac_func=no"
3536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3537 echo "$ac_t""yes" 1>&6
3538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3539 cat >> confdefs.h <<EOF
3540 #define $ac_tr_func 1
3544 echo "$ac_t""no" 1>&6
3548 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3550 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3551 echo "configure:3552: checking for $ac_func" >&5
3552 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* System header to define __stub macros and hopefully few prototypes,
3559 which can conflict with char $ac_func(); below. */
3561 /* Override any gcc2 internal prototype to avoid an error. */
3562 /* We use char because int might match the return type of a gcc2
3563 builtin and then its argument prototype would still apply. */
3568 /* The GNU C library defines this for functions which it implements
3569 to always fail with ENOSYS. Some functions are actually named
3570 something starting with __ and the normal name is an alias. */
3571 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3581 eval "ac_cv_func_$ac_func=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 eval "ac_cv_func_$ac_func=no"
3591 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3592 echo "$ac_t""yes" 1>&6
3593 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3594 cat >> confdefs.h <<EOF
3595 #define $ac_tr_func 1
3599 echo "$ac_t""no" 1>&6
3603 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3606 echo "configure:3607: checking for $ac_func" >&5
3607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* System header to define __stub macros and hopefully few prototypes,
3614 which can conflict with char $ac_func(); below. */
3616 /* Override any gcc2 internal prototype to avoid an error. */
3617 /* We use char because int might match the return type of a gcc2
3618 builtin and then its argument prototype would still apply. */
3623 /* The GNU C library defines this for functions which it implements
3624 to always fail with ENOSYS. Some functions are actually named
3625 something starting with __ and the normal name is an alias. */
3626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3636 eval "ac_cv_func_$ac_func=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 eval "ac_cv_func_$ac_func=no"
3646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3649 cat >> confdefs.h <<EOF
3650 #define $ac_tr_func 1
3654 echo "$ac_t""no" 1>&6
3658 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3661 echo "configure:3662: checking for $ac_func" >&5
3662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 /* System header to define __stub macros and hopefully few prototypes,
3669 which can conflict with char $ac_func(); below. */
3671 /* Override any gcc2 internal prototype to avoid an error. */
3672 /* We use char because int might match the return type of a gcc2
3673 builtin and then its argument prototype would still apply. */
3678 /* The GNU C library defines this for functions which it implements
3679 to always fail with ENOSYS. Some functions are actually named
3680 something starting with __ and the normal name is an alias. */
3681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3689 if { (eval echo configure:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3691 eval "ac_cv_func_$ac_func=yes"
3693 echo "configure: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3696 eval "ac_cv_func_$ac_func=no"
3701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3702 echo "$ac_t""yes" 1>&6
3703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3704 cat >> confdefs.h <<EOF
3705 #define $ac_tr_func 1
3709 echo "$ac_t""no" 1>&6
3713 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3716 echo "configure:3717: checking for $ac_func" >&5
3717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3718 echo $ac_n "(cached) $ac_c" 1>&6
3720 cat > conftest.$ac_ext <<EOF
3721 #line 3722 "configure"
3722 #include "confdefs.h"
3723 /* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char $ac_func(); below. */
3726 /* Override any gcc2 internal prototype to avoid an error. */
3727 /* We use char because int might match the return type of a gcc2
3728 builtin and then its argument prototype would still apply. */
3733 /* The GNU C library defines this for functions which it implements
3734 to always fail with ENOSYS. Some functions are actually named
3735 something starting with __ and the normal name is an alias. */
3736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3746 eval "ac_cv_func_$ac_func=yes"
3748 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5
3751 eval "ac_cv_func_$ac_func=no"
3756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3757 echo "$ac_t""yes" 1>&6
3758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3759 cat >> confdefs.h <<EOF
3760 #define $ac_tr_func 1
3764 echo "$ac_t""no" 1>&6
3768 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3771 echo "configure:3772: checking for $ac_func" >&5
3772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* System header to define __stub macros and hopefully few prototypes,
3779 which can conflict with char $ac_func(); below. */
3781 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3788 /* The GNU C library defines this for functions which it implements
3789 to always fail with ENOSYS. Some functions are actually named
3790 something starting with __ and the normal name is an alias. */
3791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3799 if { (eval echo configure:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3801 eval "ac_cv_func_$ac_func=yes"
3803 echo "configure: failed program was:" >&5
3804 cat conftest.$ac_ext >&5
3806 eval "ac_cv_func_$ac_func=no"
3811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3814 cat >> confdefs.h <<EOF
3815 #define $ac_tr_func 1
3819 echo "$ac_t""no" 1>&6
3823 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3826 echo "configure:3827: checking for $ac_func" >&5
3827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 /* System header to define __stub macros and hopefully few prototypes,
3834 which can conflict with char $ac_func(); below. */
3836 /* Override any gcc2 internal prototype to avoid an error. */
3837 /* We use char because int might match the return type of a gcc2
3838 builtin and then its argument prototype would still apply. */
3843 /* The GNU C library defines this for functions which it implements
3844 to always fail with ENOSYS. Some functions are actually named
3845 something starting with __ and the normal name is an alias. */
3846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3854 if { (eval echo configure:3855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3856 eval "ac_cv_func_$ac_func=yes"
3858 echo "configure: failed program was:" >&5
3859 cat conftest.$ac_ext >&5
3861 eval "ac_cv_func_$ac_func=no"
3866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3867 echo "$ac_t""yes" 1>&6
3868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3869 cat >> confdefs.h <<EOF
3870 #define $ac_tr_func 1
3874 echo "$ac_t""no" 1>&6
3878 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3881 echo "configure:3882: checking for $ac_func" >&5
3882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3883 echo $ac_n "(cached) $ac_c" 1>&6
3885 cat > conftest.$ac_ext <<EOF
3886 #line 3887 "configure"
3887 #include "confdefs.h"
3888 /* System header to define __stub macros and hopefully few prototypes,
3889 which can conflict with char $ac_func(); below. */
3891 /* Override any gcc2 internal prototype to avoid an error. */
3892 /* We use char because int might match the return type of a gcc2
3893 builtin and then its argument prototype would still apply. */
3898 /* The GNU C library defines this for functions which it implements
3899 to always fail with ENOSYS. Some functions are actually named
3900 something starting with __ and the normal name is an alias. */
3901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3911 eval "ac_cv_func_$ac_func=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_func_$ac_func=no"
3921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3922 echo "$ac_t""yes" 1>&6
3923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3924 cat >> confdefs.h <<EOF
3925 #define $ac_tr_func 1
3929 echo "$ac_t""no" 1>&6
3933 for ac_func in srandom random srand rand setenv
3935 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3936 echo "configure:3937: checking for $ac_func" >&5
3937 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 /* System header to define __stub macros and hopefully few prototypes,
3944 which can conflict with char $ac_func(); below. */
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3953 /* The GNU C library defines this for functions which it implements
3954 to always fail with ENOSYS. Some functions are actually named
3955 something starting with __ and the normal name is an alias. */
3956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3964 if { (eval echo configure:3965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3966 eval "ac_cv_func_$ac_func=yes"
3968 echo "configure: failed program was:" >&5
3969 cat conftest.$ac_ext >&5
3971 eval "ac_cv_func_$ac_func=no"
3976 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3977 echo "$ac_t""yes" 1>&6
3978 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3979 cat >> confdefs.h <<EOF
3980 #define $ac_tr_func 1
3984 echo "$ac_t""no" 1>&6
3988 # syscall() is needed for smbwrapper.
3989 for ac_func in syscall
3991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3992 echo "configure:3993: checking for $ac_func" >&5
3993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 /* System header to define __stub macros and hopefully few prototypes,
4000 which can conflict with char $ac_func(); below. */
4002 /* Override any gcc2 internal prototype to avoid an error. */
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4020 if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4022 eval "ac_cv_func_$ac_func=yes"
4024 echo "configure: failed program was:" >&5
4025 cat conftest.$ac_ext >&5
4027 eval "ac_cv_func_$ac_func=no"
4032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4033 echo "$ac_t""yes" 1>&6
4034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4035 cat >> confdefs.h <<EOF
4036 #define $ac_tr_func 1
4040 echo "$ac_t""no" 1>&6
4045 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4048 echo "configure:4049: checking for $ac_func" >&5
4049 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 /* System header to define __stub macros and hopefully few prototypes,
4056 which can conflict with char $ac_func(); below. */
4058 /* Override any gcc2 internal prototype to avoid an error. */
4059 /* We use char because int might match the return type of a gcc2
4060 builtin and then its argument prototype would still apply. */
4065 /* The GNU C library defines this for functions which it implements
4066 to always fail with ENOSYS. Some functions are actually named
4067 something starting with __ and the normal name is an alias. */
4068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4076 if { (eval echo configure:4077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4078 eval "ac_cv_func_$ac_func=yes"
4080 echo "configure: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4083 eval "ac_cv_func_$ac_func=no"
4088 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4089 echo "$ac_t""yes" 1>&6
4090 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4091 cat >> confdefs.h <<EOF
4092 #define $ac_tr_func 1
4096 echo "$ac_t""no" 1>&6
4100 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_func" >&5
4104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 cat > conftest.$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 /* System header to define __stub macros and hopefully few prototypes,
4111 which can conflict with char $ac_func(); below. */
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4120 /* The GNU C library defines this for functions which it implements
4121 to always fail with ENOSYS. Some functions are actually named
4122 something starting with __ and the normal name is an alias. */
4123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4133 eval "ac_cv_func_$ac_func=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 eval "ac_cv_func_$ac_func=no"
4143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4144 echo "$ac_t""yes" 1>&6
4145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4146 cat >> confdefs.h <<EOF
4147 #define $ac_tr_func 1
4151 echo "$ac_t""no" 1>&6
4155 for ac_func in __getcwd _getcwd
4157 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_func" >&5
4159 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4162 cat > conftest.$ac_ext <<EOF
4163 #line 4164 "configure"
4164 #include "confdefs.h"
4165 /* System header to define __stub macros and hopefully few prototypes,
4166 which can conflict with char $ac_func(); below. */
4168 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4175 /* The GNU C library defines this for functions which it implements
4176 to always fail with ENOSYS. Some functions are actually named
4177 something starting with __ and the normal name is an alias. */
4178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4188 eval "ac_cv_func_$ac_func=yes"
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4193 eval "ac_cv_func_$ac_func=no"
4198 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4199 echo "$ac_t""yes" 1>&6
4200 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4201 cat >> confdefs.h <<EOF
4202 #define $ac_tr_func 1
4206 echo "$ac_t""no" 1>&6
4210 for ac_func in __xstat __fxstat __lxstat
4212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4213 echo "configure:4214: checking for $ac_func" >&5
4214 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4217 cat > conftest.$ac_ext <<EOF
4218 #line 4219 "configure"
4219 #include "confdefs.h"
4220 /* System header to define __stub macros and hopefully few prototypes,
4221 which can conflict with char $ac_func(); below. */
4223 /* Override any gcc2 internal prototype to avoid an error. */
4224 /* We use char because int might match the return type of a gcc2
4225 builtin and then its argument prototype would still apply. */
4230 /* The GNU C library defines this for functions which it implements
4231 to always fail with ENOSYS. Some functions are actually named
4232 something starting with __ and the normal name is an alias. */
4233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4241 if { (eval echo configure:4242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4243 eval "ac_cv_func_$ac_func=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_func_$ac_func=no"
4253 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4255 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4256 cat >> confdefs.h <<EOF
4257 #define $ac_tr_func 1
4261 echo "$ac_t""no" 1>&6
4265 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4268 echo "configure:4269: checking for $ac_func" >&5
4269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4270 echo $ac_n "(cached) $ac_c" 1>&6
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* System header to define __stub macros and hopefully few prototypes,
4276 which can conflict with char $ac_func(); below. */
4278 /* Override any gcc2 internal prototype to avoid an error. */
4279 /* We use char because int might match the return type of a gcc2
4280 builtin and then its argument prototype would still apply. */
4285 /* The GNU C library defines this for functions which it implements
4286 to always fail with ENOSYS. Some functions are actually named
4287 something starting with __ and the normal name is an alias. */
4288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4298 eval "ac_cv_func_$ac_func=yes"
4300 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5
4303 eval "ac_cv_func_$ac_func=no"
4308 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4311 cat >> confdefs.h <<EOF
4312 #define $ac_tr_func 1
4316 echo "$ac_t""no" 1>&6
4320 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
4322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4323 echo "configure:4324: checking for $ac_func" >&5
4324 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 /* System header to define __stub macros and hopefully few prototypes,
4331 which can conflict with char $ac_func(); below. */
4333 /* Override any gcc2 internal prototype to avoid an error. */
4334 /* We use char because int might match the return type of a gcc2
4335 builtin and then its argument prototype would still apply. */
4340 /* The GNU C library defines this for functions which it implements
4341 to always fail with ENOSYS. Some functions are actually named
4342 something starting with __ and the normal name is an alias. */
4343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4353 eval "ac_cv_func_$ac_func=yes"
4355 echo "configure: failed program was:" >&5
4356 cat conftest.$ac_ext >&5
4358 eval "ac_cv_func_$ac_func=no"
4363 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4364 echo "$ac_t""yes" 1>&6
4365 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4366 cat >> confdefs.h <<EOF
4367 #define $ac_tr_func 1
4371 echo "$ac_t""no" 1>&6
4375 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
4377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4378 echo "configure:4379: checking for $ac_func" >&5
4379 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* System header to define __stub macros and hopefully few prototypes,
4386 which can conflict with char $ac_func(); below. */
4388 /* Override any gcc2 internal prototype to avoid an error. */
4389 /* We use char because int might match the return type of a gcc2
4390 builtin and then its argument prototype would still apply. */
4395 /* The GNU C library defines this for functions which it implements
4396 to always fail with ENOSYS. Some functions are actually named
4397 something starting with __ and the normal name is an alias. */
4398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4408 eval "ac_cv_func_$ac_func=yes"
4410 echo "configure: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4413 eval "ac_cv_func_$ac_func=no"
4418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4419 echo "$ac_t""yes" 1>&6
4420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4421 cat >> confdefs.h <<EOF
4422 #define $ac_tr_func 1
4426 echo "$ac_t""no" 1>&6
4430 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
4432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4433 echo "configure:4434: checking for $ac_func" >&5
4434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4435 echo $ac_n "(cached) $ac_c" 1>&6
4437 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure"
4439 #include "confdefs.h"
4440 /* System header to define __stub macros and hopefully few prototypes,
4441 which can conflict with char $ac_func(); below. */
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 /* We use char because int might match the return type of a gcc2
4445 builtin and then its argument prototype would still apply. */
4450 /* The GNU C library defines this for functions which it implements
4451 to always fail with ENOSYS. Some functions are actually named
4452 something starting with __ and the normal name is an alias. */
4453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4461 if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4463 eval "ac_cv_func_$ac_func=yes"
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 eval "ac_cv_func_$ac_func=no"
4473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4476 cat >> confdefs.h <<EOF
4477 #define $ac_tr_func 1
4481 echo "$ac_t""no" 1>&6
4485 for ac_func in _write __write _fork __fork
4487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4488 echo "configure:4489: checking for $ac_func" >&5
4489 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4495 /* System header to define __stub macros and hopefully few prototypes,
4496 which can conflict with char $ac_func(); below. */
4498 /* Override any gcc2 internal prototype to avoid an error. */
4499 /* We use char because int might match the return type of a gcc2
4500 builtin and then its argument prototype would still apply. */
4505 /* The GNU C library defines this for functions which it implements
4506 to always fail with ENOSYS. Some functions are actually named
4507 something starting with __ and the normal name is an alias. */
4508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4518 eval "ac_cv_func_$ac_func=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4523 eval "ac_cv_func_$ac_func=no"
4528 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4529 echo "$ac_t""yes" 1>&6
4530 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4531 cat >> confdefs.h <<EOF
4532 #define $ac_tr_func 1
4536 echo "$ac_t""no" 1>&6
4540 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
4542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_func" >&5
4544 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 /* System header to define __stub macros and hopefully few prototypes,
4551 which can conflict with char $ac_func(); below. */
4553 /* Override any gcc2 internal prototype to avoid an error. */
4554 /* We use char because int might match the return type of a gcc2
4555 builtin and then its argument prototype would still apply. */
4560 /* The GNU C library defines this for functions which it implements
4561 to always fail with ENOSYS. Some functions are actually named
4562 something starting with __ and the normal name is an alias. */
4563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4571 if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4573 eval "ac_cv_func_$ac_func=yes"
4575 echo "configure: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4578 eval "ac_cv_func_$ac_func=no"
4583 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4585 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4586 cat >> confdefs.h <<EOF
4587 #define $ac_tr_func 1
4591 echo "$ac_t""no" 1>&6
4595 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
4597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_func" >&5
4599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 cat > conftest.$ac_ext <<EOF
4603 #line 4604 "configure"
4604 #include "confdefs.h"
4605 /* System header to define __stub macros and hopefully few prototypes,
4606 which can conflict with char $ac_func(); below. */
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4615 /* The GNU C library defines this for functions which it implements
4616 to always fail with ENOSYS. Some functions are actually named
4617 something starting with __ and the normal name is an alias. */
4618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4628 eval "ac_cv_func_$ac_func=yes"
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 eval "ac_cv_func_$ac_func=no"
4638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4639 echo "$ac_t""yes" 1>&6
4640 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4641 cat >> confdefs.h <<EOF
4642 #define $ac_tr_func 1
4646 echo "$ac_t""no" 1>&6
4650 for ac_func in pread _pread __pread pread64 _pread64 __pread64
4652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_func" >&5
4654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* System header to define __stub macros and hopefully few prototypes,
4661 which can conflict with char $ac_func(); below. */
4663 /* Override any gcc2 internal prototype to avoid an error. */
4664 /* We use char because int might match the return type of a gcc2
4665 builtin and then its argument prototype would still apply. */
4670 /* The GNU C library defines this for functions which it implements
4671 to always fail with ENOSYS. Some functions are actually named
4672 something starting with __ and the normal name is an alias. */
4673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4683 eval "ac_cv_func_$ac_func=yes"
4685 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4688 eval "ac_cv_func_$ac_func=no"
4693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4694 echo "$ac_t""yes" 1>&6
4695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4696 cat >> confdefs.h <<EOF
4697 #define $ac_tr_func 1
4701 echo "$ac_t""no" 1>&6
4705 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
4707 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_func" >&5
4709 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4715 /* System header to define __stub macros and hopefully few prototypes,
4716 which can conflict with char $ac_func(); below. */
4718 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */
4725 /* The GNU C library defines this for functions which it implements
4726 to always fail with ENOSYS. Some functions are actually named
4727 something starting with __ and the normal name is an alias. */
4728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4738 eval "ac_cv_func_$ac_func=yes"
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4743 eval "ac_cv_func_$ac_func=no"
4748 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4751 cat >> confdefs.h <<EOF
4752 #define $ac_tr_func 1
4756 echo "$ac_t""no" 1>&6
4760 for ac_func in open64 _open64 __open64 creat64
4762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4763 echo "configure:4764: checking for $ac_func" >&5
4764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* System header to define __stub macros and hopefully few prototypes,
4771 which can conflict with char $ac_func(); below. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4780 /* The GNU C library defines this for functions which it implements
4781 to always fail with ENOSYS. Some functions are actually named
4782 something starting with __ and the normal name is an alias. */
4783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4793 eval "ac_cv_func_$ac_func=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_func_$ac_func=no"
4803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4806 cat >> confdefs.h <<EOF
4807 #define $ac_tr_func 1
4811 echo "$ac_t""no" 1>&6
4816 # this bit needs to be modified for each OS that is suported by
4817 # smbwrapper. You need to specify how to created a shared library and
4818 # how to compile C code to produce PIC object files
4820 # these are the defaults, good for lots of systems
4824 # and these are for particular systems
4826 *linux*) cat >> confdefs.h <<\EOF
4830 *solaris*) cat >> confdefs.h <<\EOF
4836 *sunos*) cat >> confdefs.h <<\EOF
4842 *bsd*) LDSHFLAGS="-shared -Bshareable"
4844 *irix*) cat >> confdefs.h <<\EOF
4848 ATTEMPT_WRAP32_BUILD=yes
4850 *aix*) cat >> confdefs.h <<\EOF
4854 *hpux*) cat >> confdefs.h <<\EOF
4858 *qnx*) cat >> confdefs.h <<\EOF
4862 *osf*) cat >> confdefs.h <<\EOF
4866 *sco*) cat >> confdefs.h <<\EOF
4870 *next2*) cat >> confdefs.h <<\EOF
4874 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
4875 set dummy groff; ac_word=$2
4876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4877 echo "configure:4878: checking for $ac_word" >&5
4878 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 if test -n "$ROFF"; then
4882 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
4884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4885 for ac_dir in $PATH; do
4886 test -z "$ac_dir" && ac_dir=.
4887 if test -f $ac_dir/$ac_word; then
4888 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
4895 ROFF="$ac_cv_prog_ROFF"
4896 if test -n "$ROFF"; then
4897 echo "$ac_t""$ROFF" 1>&6
4899 echo "$ac_t""no" 1>&6
4902 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
4903 echo "configure:4904: checking for strcasecmp in -lresolv" >&5
4904 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
4905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4908 ac_save_LIBS="$LIBS"
4909 LIBS="-lresolv $LIBS"
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4929 eval "ac_cv_lib_$ac_lib_var=no"
4932 LIBS="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4939 cat >> confdefs.h <<EOF
4940 #define $ac_tr_lib 1
4943 LIBS="-lresolv $LIBS"
4946 echo "$ac_t""no" 1>&6
4951 # try to work out how to produce pic code with this compiler
4953 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
4954 echo "configure:4955: checking whether ${CC-cc} accepts -fpic" >&5
4955 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4958 echo 'void f(){}' > conftest.c
4959 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
4960 ac_cv_prog_cc_fpic=yes
4962 ac_cv_prog_cc_fpic=no
4968 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
4969 if test $ac_cv_prog_cc_fpic = yes; then
4972 if test x$PICFLAG = x; then
4973 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
4974 echo "configure:4975: checking whether ${CC-cc} accepts -Kpic" >&5
4975 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4978 echo 'void f(){}' > conftest.c
4979 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
4980 ac_cv_prog_cc_Kpic=yes
4982 ac_cv_prog_cc_Kpic=no
4988 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
4989 if test $ac_cv_prog_cc_Kpic = yes; then
4993 if test x$PICFLAG = x; then
4994 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
4995 echo "configure:4996: checking whether ${CC-cc} accepts -KPIC" >&5
4996 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
4997 echo $ac_n "(cached) $ac_c" 1>&6
4999 echo 'void f(){}' > conftest.c
5000 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
5001 ac_cv_prog_cc_KPIC=yes
5003 ac_cv_prog_cc_KPIC=no
5009 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
5010 if test $ac_cv_prog_cc_KPIC = yes; then
5017 echo $ac_n "checking for long long""... $ac_c" 1>&6
5018 echo "configure:5019: checking for long long" >&5
5019 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5023 if test "$cross_compiling" = yes; then
5024 samba_cv_have_longlong=cross
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5030 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
5032 if { (eval echo configure:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5034 samba_cv_have_longlong=yes
5036 echo "configure: failed program was:" >&5
5037 cat conftest.$ac_ext >&5
5039 samba_cv_have_longlong=no
5046 echo "$ac_t""$samba_cv_have_longlong" 1>&6
5047 if test x"$samba_cv_have_longlong" = x"yes"; then
5048 cat >> confdefs.h <<\EOF
5049 #define HAVE_LONGLONG 1
5054 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
5055 echo "configure:5056: checking for 64 bit off_t" >&5
5056 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5060 if test "$cross_compiling" = yes; then
5061 samba_cv_SIZEOF_OFF_T=cross
5063 cat > conftest.$ac_ext <<EOF
5064 #line 5065 "configure"
5065 #include "confdefs.h"
5067 #include <sys/stat.h>
5068 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
5070 if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5072 samba_cv_SIZEOF_OFF_T=yes
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 samba_cv_SIZEOF_OFF_T=no
5084 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
5085 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
5086 cat >> confdefs.h <<\EOF
5087 #define SIZEOF_OFF_T 8
5092 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
5093 echo "configure:5094: checking for off64_t" >&5
5094 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5098 if test "$cross_compiling" = yes; then
5099 samba_cv_HAVE_OFF64_T=cross
5101 cat > conftest.$ac_ext <<EOF
5102 #line 5103 "configure"
5103 #include "confdefs.h"
5105 #include <sys/stat.h>
5106 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5108 if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5110 samba_cv_HAVE_OFF64_T=yes
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5115 samba_cv_HAVE_OFF64_T=no
5122 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
5123 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
5124 cat >> confdefs.h <<\EOF
5125 #define HAVE_OFF64_T 1
5130 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
5131 echo "configure:5132: checking for 64 bit ino_t" >&5
5132 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5136 if test "$cross_compiling" = yes; then
5137 samba_cv_SIZEOF_INO_T=cross
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5143 #include <sys/stat.h>
5144 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5148 samba_cv_SIZEOF_INO_T=yes
5150 echo "configure: failed program was:" >&5
5151 cat conftest.$ac_ext >&5
5153 samba_cv_SIZEOF_INO_T=no
5160 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
5161 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
5162 cat >> confdefs.h <<\EOF
5163 #define SIZEOF_INO_T 8
5168 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
5169 echo "configure:5170: checking for ino64_t" >&5
5170 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5174 if test "$cross_compiling" = yes; then
5175 samba_cv_HAVE_INO64_T=cross
5177 cat > conftest.$ac_ext <<EOF
5178 #line 5179 "configure"
5179 #include "confdefs.h"
5181 #include <sys/stat.h>
5182 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5186 samba_cv_HAVE_INO64_T=yes
5188 echo "configure: failed program was:" >&5
5189 cat conftest.$ac_ext >&5
5191 samba_cv_HAVE_INO64_T=no
5198 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
5199 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
5200 cat >> confdefs.h <<\EOF
5201 #define HAVE_INO64_T 1
5206 echo $ac_n "checking for union semun""... $ac_c" 1>&6
5207 echo "configure:5208: checking for union semun" >&5
5208 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5212 if test "$cross_compiling" = yes; then
5213 samba_cv_HAVE_UNION_SEMUN=cross
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5219 #include <sys/types.h>
5220 #include <sys/ipc.h>
5221 #include <sys/sem.h>
5222 main() { union semun ss; exit(0); }
5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5226 samba_cv_HAVE_UNION_SEMUN=yes
5228 echo "configure: failed program was:" >&5
5229 cat conftest.$ac_ext >&5
5231 samba_cv_HAVE_UNION_SEMUN=no
5238 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
5239 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
5240 cat >> confdefs.h <<\EOF
5241 #define HAVE_UNION_SEMUN 1
5246 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
5247 echo "configure:5248: checking for unsigned char" >&5
5248 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5252 if test "$cross_compiling" = yes; then
5253 samba_cv_HAVE_UNSIGNED_CHAR=cross
5255 cat > conftest.$ac_ext <<EOF
5256 #line 5257 "configure"
5257 #include "confdefs.h"
5259 main() { char c; c=250; exit((c > 0)?0:1); }
5261 if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5263 samba_cv_HAVE_UNSIGNED_CHAR=yes
5265 echo "configure: failed program was:" >&5
5266 cat conftest.$ac_ext >&5
5268 samba_cv_HAVE_UNSIGNED_CHAR=no
5275 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
5276 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
5277 cat >> confdefs.h <<\EOF
5278 #define HAVE_UNSIGNED_CHAR 1
5283 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
5284 echo "configure:5285: checking for sin_len in sock" >&5
5285 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
5286 echo $ac_n "(cached) $ac_c" 1>&6
5289 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5294 #include <netinet/in.h>
5296 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
5299 if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5301 samba_cv_HAVE_SOCK_SIN_LEN=yes
5303 echo "configure: failed program was:" >&5
5304 cat conftest.$ac_ext >&5
5306 samba_cv_HAVE_SOCK_SIN_LEN=no
5311 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
5312 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
5313 cat >> confdefs.h <<\EOF
5314 #define HAVE_SOCK_SIN_LEN 1
5319 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
5320 echo "configure:5321: checking whether seekdir returns void" >&5
5321 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5325 cat > conftest.$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 #include <sys/types.h>
5330 void seekdir(DIR *d, long loc) { return; }
5335 if { (eval echo configure:5336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5337 samba_cv_SEEKDIR_RETURNS_VOID=yes
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5342 samba_cv_SEEKDIR_RETURNS_VOID=no
5347 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
5348 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
5349 cat >> confdefs.h <<\EOF
5350 #define SEEKDIR_RETURNS_VOID 1
5355 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
5356 echo "configure:5357: checking for __FILE__ macro" >&5
5357 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5361 cat > conftest.$ac_ext <<EOF
5362 #line 5363 "configure"
5363 #include "confdefs.h"
5366 printf("%s\n", __FILE__);
5369 if { (eval echo configure:5370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5371 samba_cv_HAVE_FILE_MACRO=yes
5373 echo "configure: failed program was:" >&5
5374 cat conftest.$ac_ext >&5
5376 samba_cv_HAVE_FILE_MACRO=no
5381 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
5382 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
5383 cat >> confdefs.h <<\EOF
5384 #define HAVE_FILE_MACRO 1
5389 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
5390 echo "configure:5391: checking for __FUNCTION__ macro" >&5
5391 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
5392 echo $ac_n "(cached) $ac_c" 1>&6
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5400 printf("%s\n", __FUNCTION__);
5403 if { (eval echo configure:5404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5405 samba_cv_HAVE_FUNCTION_MACRO=yes
5407 echo "configure: failed program was:" >&5
5408 cat conftest.$ac_ext >&5
5410 samba_cv_HAVE_FUNCTION_MACRO=no
5415 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
5416 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
5417 cat >> confdefs.h <<\EOF
5418 #define HAVE_FUNCTION_MACRO 1
5423 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
5424 echo "configure:5425: checking if gettimeofday takes tz argument" >&5
5425 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5429 if test "$cross_compiling" = yes; then
5430 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
5432 cat > conftest.$ac_ext <<EOF
5433 #line 5434 "configure"
5434 #include "confdefs.h"
5436 #include <sys/time.h>
5438 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5442 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
5454 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
5455 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
5456 cat >> confdefs.h <<\EOF
5457 #define HAVE_GETTIMEOFDAY_TZ 1
5463 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
5464 echo "configure:5465: checking for broken readdir" >&5
5465 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
5466 echo $ac_n "(cached) $ac_c" 1>&6
5469 if test "$cross_compiling" = yes; then
5470 samba_cv_HAVE_BROKEN_READDIR=cross
5472 cat > conftest.$ac_ext <<EOF
5473 #line 5474 "configure"
5474 #include "confdefs.h"
5475 #include <sys/types.h>
5477 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
5478 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
5479 di->d_name[0] == 0) exit(0); exit(1);}
5481 if { (eval echo configure:5482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5483 samba_cv_HAVE_BROKEN_READDIR=yes
5485 echo "configure: failed program was:" >&5
5486 cat conftest.$ac_ext >&5
5488 samba_cv_HAVE_BROKEN_READDIR=no
5495 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
5496 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
5497 cat >> confdefs.h <<\EOF
5498 #define HAVE_BROKEN_READDIR 1
5503 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
5504 echo "configure:5505: checking for utimbuf" >&5
5505 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
5506 echo $ac_n "(cached) $ac_c" 1>&6
5509 cat > conftest.$ac_ext <<EOF
5510 #line 5511 "configure"
5511 #include "confdefs.h"
5512 #include <sys/types.h>
5515 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
5518 if { (eval echo configure:5519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5520 samba_cv_HAVE_UTIMBUF=yes
5522 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5
5525 samba_cv_HAVE_UTIMBUF=no
5530 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
5531 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
5532 cat >> confdefs.h <<\EOF
5533 #define HAVE_UTIMBUF 1
5538 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
5539 echo "configure:5540: checking for kernel oplock type definitions" >&5
5540 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5544 cat > conftest.$ac_ext <<EOF
5545 #line 5546 "configure"
5546 #include "confdefs.h"
5547 #include <sys/types.h>
5550 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
5553 if { (eval echo configure:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5555 samba_cv_HAVE_KERNEL_OPLOCKS=yes
5557 echo "configure: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5560 samba_cv_HAVE_KERNEL_OPLOCKS=no
5565 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
5566 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
5567 cat >> confdefs.h <<\EOF
5568 #define HAVE_KERNEL_OPLOCKS 1
5573 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
5574 echo "configure:5575: checking for irix specific capabilities" >&5
5575 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5579 if test "$cross_compiling" = yes; then
5580 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5585 #include <sys/types.h>
5586 #include <sys/capability.h>
5589 if ((cap = cap_get_proc()) == NULL)
5591 cap->cap_effective |= CAP_NETWORK_MGT;
5592 cap->cap_inheritable |= CAP_NETWORK_MGT;
5598 if { (eval echo configure:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5600 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
5602 echo "configure: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5605 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
5612 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
5613 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
5614 cat >> confdefs.h <<\EOF
5615 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
5620 echo $ac_n "checking for test routines""... $ac_c" 1>&6
5621 echo "configure:5622: checking for test routines" >&5
5622 if test "$cross_compiling" = yes; then
5623 echo "configure: warning: cannot run when cross-compiling" 1>&2
5625 cat > conftest.$ac_ext <<EOF
5626 #line 5627 "configure"
5627 #include "confdefs.h"
5628 #include "${srcdir-.}/tests/trivial.c"
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5632 echo "$ac_t""yes" 1>&6
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
5643 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
5644 echo "configure:5645: checking for ftruncate extend" >&5
5645 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
5646 echo $ac_n "(cached) $ac_c" 1>&6
5649 if test "$cross_compiling" = yes; then
5650 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
5652 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure"
5654 #include "confdefs.h"
5655 #include "${srcdir-.}/tests/ftruncate.c"
5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5659 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
5661 echo "configure: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5664 samba_cv_HAVE_FTRUNCATE_EXTEND=no
5671 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
5672 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
5673 cat >> confdefs.h <<\EOF
5674 #define HAVE_FTRUNCATE_EXTEND 1
5679 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
5680 echo "configure:5681: checking for broken getgroups" >&5
5681 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
5682 echo $ac_n "(cached) $ac_c" 1>&6
5685 if test "$cross_compiling" = yes; then
5686 samba_cv_HAVE_BROKEN_GETGROUPS=cross
5688 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure"
5690 #include "confdefs.h"
5691 #include "${srcdir-.}/tests/getgroups.c"
5693 if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5695 samba_cv_HAVE_BROKEN_GETGROUPS=yes
5697 echo "configure: failed program was:" >&5
5698 cat conftest.$ac_ext >&5
5700 samba_cv_HAVE_BROKEN_GETGROUPS=no
5707 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
5708 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
5709 cat >> confdefs.h <<\EOF
5710 #define HAVE_BROKEN_GETGROUPS 1
5715 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
5716 echo "configure:5717: checking whether getpass should be replaced" >&5
5717 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
5718 echo $ac_n "(cached) $ac_c" 1>&6
5721 SAVE_CPPFLAGS="$CPPFLAGS"
5722 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
5723 cat > conftest.$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5727 #define REPLACE_GETPASS 1
5728 #define NO_CONFIG_H 1
5729 #define main dont_declare_main
5730 #include "${srcdir-.}/lib/getsmbpass.c"
5737 if { (eval echo configure:5738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5739 samba_cv_REPLACE_GETPASS=yes
5741 echo "configure: failed program was:" >&5
5742 cat conftest.$ac_ext >&5
5744 samba_cv_REPLACE_GETPASS=no
5747 CPPFLAGS="$SAVE_CPPFLAGS"
5751 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
5752 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
5753 cat >> confdefs.h <<\EOF
5754 #define REPLACE_GETPASS 1
5759 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
5760 echo "configure:5761: checking for broken inet_ntoa" >&5
5761 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5765 if test "$cross_compiling" = yes; then
5766 samba_cv_REPLACE_INET_NTOA=cross
5768 cat > conftest.$ac_ext <<EOF
5769 #line 5770 "configure"
5770 #include "confdefs.h"
5773 #include <sys/types.h>
5774 #include <netinet/in.h>
5775 #include <arpa/inet.h>
5776 main() { struct in_addr ip; ip.s_addr = 0x12345678;
5777 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
5778 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5783 samba_cv_REPLACE_INET_NTOA=yes
5785 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5
5788 samba_cv_REPLACE_INET_NTOA=no
5795 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
5796 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
5797 cat >> confdefs.h <<\EOF
5798 #define REPLACE_INET_NTOA 1
5803 echo $ac_n "checking for root""... $ac_c" 1>&6
5804 echo "configure:5805: checking for root" >&5
5805 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
5806 echo $ac_n "(cached) $ac_c" 1>&6
5809 if test "$cross_compiling" = yes; then
5810 samba_cv_HAVE_ROOT=cross
5812 cat > conftest.$ac_ext <<EOF
5813 #line 5814 "configure"
5814 #include "confdefs.h"
5815 main() { exit(getuid() != 0); }
5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5819 samba_cv_HAVE_ROOT=yes
5821 echo "configure: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5824 samba_cv_HAVE_ROOT=no
5831 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
5832 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
5833 cat >> confdefs.h <<\EOF
5838 echo "configure: warning: running as non-root will disable some tests" 1>&2
5842 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
5843 echo "configure:5844: checking for netmask ifconf" >&5
5844 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5848 if test "$cross_compiling" = yes; then
5849 samba_cv_HAVE_NETMASK_IFCONF=cross
5851 cat > conftest.$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5855 #define HAVE_NETMASK_IFCONF 1
5857 #include "${srcdir-.}/lib/netmask.c"
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5861 samba_cv_HAVE_NETMASK_IFCONF=yes
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5866 samba_cv_HAVE_NETMASK_IFCONF=no
5873 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
5874 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
5875 netmask=yes;cat >> confdefs.h <<\EOF
5876 #define HAVE_NETMASK_IFCONF 1
5881 if test $netmask = no; then
5882 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
5883 echo "configure:5884: checking for netmask ifreq" >&5
5884 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5888 if test "$cross_compiling" = yes; then
5889 samba_cv_HAVE_NETMASK_IFREQ=cross
5891 cat > conftest.$ac_ext <<EOF
5892 #line 5893 "configure"
5893 #include "confdefs.h"
5895 #define HAVE_NETMASK_IFREQ 1
5897 #include "${srcdir-.}/lib/netmask.c"
5899 if { (eval echo configure:5900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5901 samba_cv_HAVE_NETMASK_IFREQ=yes
5903 echo "configure: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5906 samba_cv_HAVE_NETMASK_IFREQ=no
5913 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
5914 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
5915 netmask=yes;cat >> confdefs.h <<\EOF
5916 #define HAVE_NETMASK_IFREQ 1
5922 if test $netmask = no; then
5923 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
5924 echo "configure:5925: checking for netmask AIX" >&5
5925 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
5926 echo $ac_n "(cached) $ac_c" 1>&6
5929 if test "$cross_compiling" = yes; then
5930 samba_cv_HAVE_NETMASK_AIX=cross
5932 cat > conftest.$ac_ext <<EOF
5933 #line 5934 "configure"
5934 #include "confdefs.h"
5936 #define HAVE_NETMASK_AIX 1
5938 #include "${srcdir-.}/lib/netmask.c"
5940 if { (eval echo configure:5941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5942 samba_cv_HAVE_NETMASK_AIX=yes
5944 echo "configure: failed program was:" >&5
5945 cat conftest.$ac_ext >&5
5947 samba_cv_HAVE_NETMASK_AIX=no
5954 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
5955 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
5956 netmask=yes;cat >> confdefs.h <<\EOF
5957 #define HAVE_NETMASK_AIX 1
5963 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
5964 echo "configure:5965: checking for trapdoor seteuid" >&5
5965 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
5966 echo $ac_n "(cached) $ac_c" 1>&6
5969 if test "$cross_compiling" = yes; then
5972 cat > conftest.$ac_ext <<EOF
5973 #line 5974 "configure"
5974 #include "confdefs.h"
5975 #include "${srcdir-.}/tests/trapdoor.c"
5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5979 samba_cv_HAVE_TRAPDOOR_UID=no
5981 echo "configure: failed program was:" >&5
5982 cat conftest.$ac_ext >&5
5984 samba_cv_HAVE_TRAPDOOR_UID=yes
5991 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
5992 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
5993 cat >> confdefs.h <<\EOF
5994 #define HAVE_TRAPDOOR_UID 1
5999 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
6000 echo "configure:6001: checking for shared mmap" >&5
6001 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
6002 echo $ac_n "(cached) $ac_c" 1>&6
6005 if test "$cross_compiling" = yes; then
6006 samba_cv_HAVE_SHARED_MMAP=cross
6008 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure"
6010 #include "confdefs.h"
6011 #include "${srcdir-.}/tests/shared_mmap.c"
6013 if { (eval echo configure:6014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6015 samba_cv_HAVE_SHARED_MMAP=yes
6017 echo "configure: failed program was:" >&5
6018 cat conftest.$ac_ext >&5
6020 samba_cv_HAVE_SHARED_MMAP=no
6027 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
6028 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
6029 cat >> confdefs.h <<\EOF
6030 #define HAVE_SHARED_MMAP 1
6035 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
6036 echo "configure:6037: checking for fcntl locking" >&5
6037 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
6038 echo $ac_n "(cached) $ac_c" 1>&6
6041 if test "$cross_compiling" = yes; then
6042 samba_cv_HAVE_FCNTL_LOCK=cross
6044 cat > conftest.$ac_ext <<EOF
6045 #line 6046 "configure"
6046 #include "confdefs.h"
6047 #include "${srcdir-.}/tests/fcntl_lock.c"
6049 if { (eval echo configure:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6051 samba_cv_HAVE_FCNTL_LOCK=yes
6053 echo "configure: failed program was:" >&5
6054 cat conftest.$ac_ext >&5
6056 samba_cv_HAVE_FCNTL_LOCK=no
6063 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
6064 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
6065 cat >> confdefs.h <<\EOF
6066 #define HAVE_FCNTL_LOCK 1
6071 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
6072 echo "configure:6073: checking for 64 bit fcntl locking" >&5
6073 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6077 if test "$cross_compiling" = yes; then
6078 samba_cv_HAVE_STRUCT_FLOCK64=cross
6080 cat > conftest.$ac_ext <<EOF
6081 #line 6082 "configure"
6082 #include "confdefs.h"
6091 #ifdef HAVE_SYS_FCNTL_H
6092 #include <sys/fcntl.h>
6094 main() { struct flock64 fl64;
6095 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
6102 if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6104 samba_cv_HAVE_STRUCT_FLOCK64=yes
6106 echo "configure: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6109 samba_cv_HAVE_STRUCT_FLOCK64=no
6116 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
6117 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
6118 cat >> confdefs.h <<\EOF
6119 #define HAVE_STRUCT_FLOCK64 1
6124 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
6125 echo "configure:6126: checking for sysv ipc" >&5
6126 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6
6130 if test "$cross_compiling" = yes; then
6131 samba_cv_HAVE_SYSV_IPC=cross
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6136 #include "${srcdir-.}/tests/sysv_ipc.c"
6138 if { (eval echo configure:6139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6140 samba_cv_HAVE_SYSV_IPC=yes
6142 echo "configure: failed program was:" >&5
6143 cat conftest.$ac_ext >&5
6145 samba_cv_HAVE_SYSV_IPC=no
6152 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
6153 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
6154 cat >> confdefs.h <<\EOF
6155 #define HAVE_SYSV_IPC 1
6160 #################################################
6161 # check for smbwrapper support
6162 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
6163 echo "configure:6164: checking whether to use smbwrapper" >&5
6164 # Check whether --with-smbwrapper or --without-smbwrapper was given.
6165 if test "${with_smbwrapper+set}" = set; then
6166 withval="$with_smbwrapper"
6169 echo "$ac_t""yes" 1>&6
6170 cat >> confdefs.h <<\EOF
6171 #define WITH_SMBWRAPPER 1
6174 WRAP="bin/smbsh bin/smbwrapper.so"
6176 if test x$ATTEMPT_WRAP32_BUILD = x; then
6179 WRAP32=bin/smbwrapper.32.so
6182 # Conditions under which smbwrapper should not be built.
6184 if test x$PICFLAG = x; then
6185 echo No support for PIC code - disabling smbwrapper and smbsh
6188 elif test x$ac_cv_func_syscall = xno; then
6189 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
6195 echo "$ac_t""no" 1>&6
6199 echo "$ac_t""no" 1>&6
6204 #################################################
6205 # check for the AFS filesystem
6206 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
6207 echo "configure:6208: checking whether to use AFS" >&5
6208 # Check whether --with-afs or --without-afs was given.
6209 if test "${with_afs+set}" = set; then
6213 echo "$ac_t""yes" 1>&6
6214 cat >> confdefs.h <<\EOF
6220 echo "$ac_t""no" 1>&6
6224 echo "$ac_t""no" 1>&6
6230 #################################################
6231 # check for the DFS auth system
6232 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
6233 echo "configure:6234: checking whether to use DFS auth" >&5
6234 # Check whether --with-dfs or --without-dfs was given.
6235 if test "${with_dfs+set}" = set; then
6239 echo "$ac_t""yes" 1>&6
6240 cat >> confdefs.h <<\EOF
6246 echo "$ac_t""no" 1>&6
6250 echo "$ac_t""no" 1>&6
6255 #################################################
6256 # check for Kerberos IV auth system
6257 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
6258 echo "configure:6259: checking whether to use Kerberos IV" >&5
6259 # Check whether --with-krb4 or --without-krb4 was given.
6260 if test "${with_krb4+set}" = set; then
6261 withval="$with_krb4"
6262 echo "$ac_t""yes" 1>&6
6263 cat >> confdefs.h <<\EOF
6267 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
6268 echo "configure:6269: checking for dn_expand in -lresolv" >&5
6269 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
6270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6273 ac_save_LIBS="$LIBS"
6274 LIBS="-lresolv $LIBS"
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6278 /* Override any gcc2 internal prototype to avoid an error. */
6279 /* We use char because int might match the return type of a gcc2
6280 builtin and then its argument prototype would still apply. */
6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6289 eval "ac_cv_lib_$ac_lib_var=yes"
6291 echo "configure: failed program was:" >&5
6292 cat conftest.$ac_ext >&5
6294 eval "ac_cv_lib_$ac_lib_var=no"
6297 LIBS="$ac_save_LIBS"
6300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6301 echo "$ac_t""yes" 1>&6
6302 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6304 cat >> confdefs.h <<EOF
6305 #define $ac_tr_lib 1
6308 LIBS="-lresolv $LIBS"
6311 echo "$ac_t""no" 1>&6
6314 LIBS="$LIBS -lkrb -ldes"
6315 CFLAGS="$CFLAGS -I$withval/include"
6316 LDFLAGS="$LDFLAGS -L$withval/lib"
6318 echo "$ac_t""no" 1>&6
6323 #################################################
6324 # check for automount support
6325 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
6326 echo "configure:6327: checking whether to use AUTOMOUNT" >&5
6327 # Check whether --with-automount or --without-automount was given.
6328 if test "${with_automount+set}" = set; then
6329 withval="$with_automount"
6332 echo "$ac_t""yes" 1>&6
6333 cat >> confdefs.h <<\EOF
6334 #define WITH_AUTOMOUNT 1
6339 echo "$ac_t""no" 1>&6
6343 echo "$ac_t""no" 1>&6
6348 #################################################
6349 # check for smbmount support
6350 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
6351 echo "configure:6352: checking whether to use SMBMOUNT" >&5
6352 # Check whether --with-smbmount or --without-smbmount was given.
6353 if test "${with_smbmount+set}" = set; then
6354 withval="$with_smbmount"
6357 echo "$ac_t""yes" 1>&6
6358 cat >> confdefs.h <<\EOF
6359 #define WITH_SMBMOUNT 1
6362 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
6365 echo "$ac_t""no" 1>&6
6370 echo "$ac_t""no" 1>&6
6376 #################################################
6377 # check for a LDAP password database
6378 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
6379 echo "configure:6380: checking whether to use LDAP password database" >&5
6380 # Check whether --with-ldap or --without-ldap was given.
6381 if test "${with_ldap+set}" = set; then
6382 withval="$with_ldap"
6385 echo "$ac_t""yes" 1>&6
6386 cat >> confdefs.h <<\EOF
6392 echo "$ac_t""no" 1>&6
6396 echo "$ac_t""no" 1>&6
6401 #################################################
6402 # check for a NISPLUS password database
6403 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
6404 echo "configure:6405: checking whether to use NISPLUS password database" >&5
6405 # Check whether --with-nisplus or --without-nisplus was given.
6406 if test "${with_nisplus+set}" = set; then
6407 withval="$with_nisplus"
6410 echo "$ac_t""yes" 1>&6
6411 cat >> confdefs.h <<\EOF
6412 #define WITH_NISPLUS 1
6417 echo "$ac_t""no" 1>&6
6421 echo "$ac_t""no" 1>&6
6426 #################################################
6427 # check for a NISPLUS_HOME support
6428 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
6429 echo "configure:6430: checking whether to use NISPLUS_HOME" >&5
6430 # Check whether --with-nisplus-home or --without-nisplus-home was given.
6431 if test "${with_nisplus_home+set}" = set; then
6432 withval="$with_nisplus_home"
6435 echo "$ac_t""yes" 1>&6
6436 cat >> confdefs.h <<\EOF
6437 #define WITH_NISPLUS_HOME 1
6442 echo "$ac_t""no" 1>&6
6446 echo "$ac_t""no" 1>&6
6451 #################################################
6452 # check for the secure socket layer
6453 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
6454 echo "configure:6455: checking whether to use SSL" >&5
6455 # Check whether --with-ssl or --without-ssl was given.
6456 if test "${with_ssl+set}" = set; then
6460 echo "$ac_t""yes" 1>&6
6461 cat >> confdefs.h <<\EOF
6467 echo "$ac_t""no" 1>&6
6471 echo "$ac_t""no" 1>&6
6476 #################################################
6477 # check for experimental mmap support
6478 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
6479 echo "configure:6480: checking whether to use MMAP" >&5
6480 # Check whether --with-mmap or --without-mmap was given.
6481 if test "${with_mmap+set}" = set; then
6482 withval="$with_mmap"
6485 echo "$ac_t""yes" 1>&6
6486 cat >> confdefs.h <<\EOF
6492 echo "$ac_t""no" 1>&6
6496 echo "$ac_t""no" 1>&6
6501 #################################################
6502 # check for syslog logging
6503 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
6504 echo "configure:6505: checking whether to use syslog logging" >&5
6505 # Check whether --with-syslog or --without-syslog was given.
6506 if test "${with_syslog+set}" = set; then
6507 withval="$with_syslog"
6510 echo "$ac_t""yes" 1>&6
6511 cat >> confdefs.h <<\EOF
6512 #define WITH_SYSLOG 1
6517 echo "$ac_t""no" 1>&6
6521 echo "$ac_t""no" 1>&6
6526 #################################################
6527 # check for experimental netatalk resource fork support
6528 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
6529 echo "configure:6530: checking whether to support netatalk" >&5
6530 # Check whether --with-netatalk or --without-netatalk was given.
6531 if test "${with_netatalk+set}" = set; then
6532 withval="$with_netatalk"
6535 echo "$ac_t""yes" 1>&6
6536 cat >> confdefs.h <<\EOF
6537 #define WITH_NETATALK 1
6542 echo "$ac_t""no" 1>&6
6546 echo "$ac_t""no" 1>&6
6551 #################################################
6552 # check for experimental disk-quotas support
6553 QUOTAOBJS=noquotas.o
6555 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
6556 echo "configure:6557: checking whether to support disk-quotas" >&5
6557 # Check whether --with-quotas or --without-quotas was given.
6558 if test "${with_quotas+set}" = set; then
6559 withval="$with_quotas"
6562 echo "$ac_t""yes" 1>&6
6566 echo "$ac_t""no" 1>&6
6570 echo "$ac_t""no" 1>&6
6576 #################################################
6577 # these tests are taken from the GNU fileutils package
6578 echo "checking how to get filesystem space usage" 1>&6
6579 echo "configure:6580: checking how to get filesystem space usage" >&5
6582 # Test for statvfs64.
6583 if test $space = no; then
6585 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
6586 echo "configure:6587: checking statvfs64 function (SVR4)" >&5
6587 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
6588 echo $ac_n "(cached) $ac_c" 1>&6
6590 if test "$cross_compiling" = yes; then
6591 fu_cv_sys_stat_statvfs64=cross
6593 cat > conftest.$ac_ext <<EOF
6594 #line 6595 "configure"
6595 #include "confdefs.h"
6597 #include <sys/types.h>
6598 #include <sys/statvfs.h>
6601 struct statvfs64 fsd;
6602 exit (statfs64 (".", &fsd));
6605 if { (eval echo configure:6606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6607 fu_cv_sys_stat_statvfs64=yes
6609 echo "configure: failed program was:" >&5
6610 cat conftest.$ac_ext >&5
6612 fu_cv_sys_stat_statvfs64=no
6619 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
6620 if test $fu_cv_sys_stat_statvfs64 = yes; then
6622 cat >> confdefs.h <<\EOF
6623 #define STAT_STATVFS64 1
6629 # Perform only the link test since it seems there are no variants of the
6630 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
6631 # because that got a false positive on SCO OSR5. Adding the declaration
6632 # of a `struct statvfs' causes this test to fail (as it should) on such
6633 # systems. That system is reported to work fine with STAT_STATFS4 which
6634 # is what it gets when this test fails.
6635 if test $space = no; then
6637 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
6638 echo "configure:6639: checking statvfs function (SVR4)" >&5
6639 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6645 #include <sys/types.h>
6646 #include <sys/statvfs.h>
6648 struct statvfs fsd; statvfs (0, &fsd);
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6653 fu_cv_sys_stat_statvfs=yes
6655 echo "configure: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6658 fu_cv_sys_stat_statvfs=no
6663 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
6664 if test $fu_cv_sys_stat_statvfs = yes; then
6666 cat >> confdefs.h <<\EOF
6667 #define STAT_STATVFS 1
6673 if test $space = no; then
6674 # DEC Alpha running OSF/1
6675 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
6676 echo "configure:6677: checking for 3-argument statfs function (DEC OSF/1)" >&5
6677 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
6678 echo $ac_n "(cached) $ac_c" 1>&6
6680 if test "$cross_compiling" = yes; then
6681 fu_cv_sys_stat_statfs3_osf1=no
6683 cat > conftest.$ac_ext <<EOF
6684 #line 6685 "configure"
6685 #include "confdefs.h"
6687 #include <sys/param.h>
6688 #include <sys/types.h>
6689 #include <sys/mount.h>
6694 exit (statfs (".", &fsd, sizeof (struct statfs)));
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6699 fu_cv_sys_stat_statfs3_osf1=yes
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6704 fu_cv_sys_stat_statfs3_osf1=no
6711 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
6712 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
6714 cat >> confdefs.h <<\EOF
6715 #define STAT_STATFS3_OSF1 1
6721 if test $space = no; then
6723 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
6724 echo "configure:6725: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
6725 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
6726 echo $ac_n "(cached) $ac_c" 1>&6
6728 if test "$cross_compiling" = yes; then
6729 fu_cv_sys_stat_statfs2_bsize=no
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6735 #ifdef HAVE_SYS_PARAM_H
6736 #include <sys/param.h>
6738 #ifdef HAVE_SYS_MOUNT_H
6739 #include <sys/mount.h>
6741 #ifdef HAVE_SYS_VFS_H
6742 #include <sys/vfs.h>
6748 exit (statfs (".", &fsd));
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6753 fu_cv_sys_stat_statfs2_bsize=yes
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 fu_cv_sys_stat_statfs2_bsize=no
6765 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
6766 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
6768 cat >> confdefs.h <<\EOF
6769 #define STAT_STATFS2_BSIZE 1
6775 if test $space = no; then
6777 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
6778 echo "configure:6779: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
6779 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6782 if test "$cross_compiling" = yes; then
6783 fu_cv_sys_stat_statfs4=no
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 #include <sys/types.h>
6789 #include <sys/statfs.h>
6793 exit (statfs (".", &fsd, sizeof fsd, 0));
6796 if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6798 fu_cv_sys_stat_statfs4=yes
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 fu_cv_sys_stat_statfs4=no
6810 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
6811 if test $fu_cv_sys_stat_statfs4 = yes; then
6813 cat >> confdefs.h <<\EOF
6814 #define STAT_STATFS4 1
6820 if test $space = no; then
6822 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
6823 echo "configure:6824: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
6824 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
6825 echo $ac_n "(cached) $ac_c" 1>&6
6827 if test "$cross_compiling" = yes; then
6828 fu_cv_sys_stat_statfs2_fsize=no
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 #include <sys/types.h>
6834 #ifdef HAVE_SYS_PARAM_H
6835 #include <sys/param.h>
6837 #ifdef HAVE_SYS_MOUNT_H
6838 #include <sys/mount.h>
6844 exit (statfs (".", &fsd));
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6849 fu_cv_sys_stat_statfs2_fsize=yes
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 fu_cv_sys_stat_statfs2_fsize=no
6861 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
6862 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
6864 cat >> confdefs.h <<\EOF
6865 #define STAT_STATFS2_FSIZE 1
6871 if test $space = no; then
6873 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
6874 echo "configure:6875: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
6875 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6878 if test "$cross_compiling" = yes; then
6879 fu_cv_sys_stat_fs_data=no
6881 cat > conftest.$ac_ext <<EOF
6882 #line 6883 "configure"
6883 #include "confdefs.h"
6884 #include <sys/types.h>
6885 #ifdef HAVE_SYS_PARAM_H
6886 #include <sys/param.h>
6888 #ifdef HAVE_SYS_MOUNT_H
6889 #include <sys/mount.h>
6891 #ifdef HAVE_SYS_FS_TYPES_H
6892 #include <sys/fs_types.h>
6897 /* Ultrix's statfs returns 1 for success,
6898 0 for not mounted, -1 for failure. */
6899 exit (statfs (".", &fsd) != 1);
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6904 fu_cv_sys_stat_fs_data=yes
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 fu_cv_sys_stat_fs_data=no
6916 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
6917 if test $fu_cv_sys_stat_fs_data = yes; then
6919 cat >> confdefs.h <<\EOF
6920 #define STAT_STATFS2_FS_DATA 1
6926 echo "checking configure summary"
6927 if test "$cross_compiling" = yes; then
6930 cat > conftest.$ac_ext <<EOF
6931 #line 6932 "configure"
6932 #include "confdefs.h"
6933 #include "${srcdir-.}/tests/summary.c"
6935 if { (eval echo configure:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
6937 echo "configure OK";
6939 echo "configure: failed program was:" >&5
6940 cat conftest.$ac_ext >&5
6942 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
6952 cat > confcache <<\EOF
6953 # This file is a shell script that caches the results of configure
6954 # tests run on this system so they can be shared between configure
6955 # scripts and configure runs. It is not useful on other systems.
6956 # If it contains results you don't want to keep, you may remove or edit it.
6958 # By default, configure uses ./config.cache as the cache file,
6959 # creating it if it does not exist already. You can give configure
6960 # the --cache-file=FILE option to use a different cache file; that is
6961 # what configure does when it calls configure scripts in
6962 # subdirectories, so they share the cache.
6963 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6964 # config.status only pays attention to the cache file if you give it the
6965 # --recheck option to rerun configure.
6968 # The following way of writing the cache mishandles newlines in values,
6969 # but we know of no workaround that is simple, portable, and efficient.
6970 # So, don't put newlines in cache variables' values.
6971 # Ultrix sh set writes to stderr and can't be redirected directly,
6972 # and sets the high bit in the cache file unless we assign to the vars.
6974 case `(ac_space=' '; set) 2>&1` in
6976 # `set' does not quote correctly, so add quotes (double-quote substitution
6977 # turns \\\\ into \\, and sed turns \\ into \).
6979 -e "s/'/'\\\\''/g" \
6980 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6983 # `set' quotes correctly as required by POSIX, so do not add quotes.
6984 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6987 if cmp -s $cache_file confcache; then
6990 if test -w $cache_file; then
6991 echo "updating cache $cache_file"
6992 cat confcache > $cache_file
6994 echo "not updating unwritable cache $cache_file"
6999 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7001 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7002 # Let make expand exec_prefix.
7003 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7005 # Any assignment to VPATH causes Sun make to only execute
7006 # the first set of double-colon rules, so remove it if not needed.
7007 # If there is a colon in the path, we need to keep it.
7008 if test "x$srcdir" = x.; then
7009 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
7012 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7014 DEFS=-DHAVE_CONFIG_H
7016 # Without the "./", some shells look in PATH for config.status.
7017 : ${CONFIG_STATUS=./config.status}
7019 echo creating $CONFIG_STATUS
7020 rm -f $CONFIG_STATUS
7021 cat > $CONFIG_STATUS <<EOF
7023 # Generated automatically by configure.
7024 # Run this file to recreate the current configuration.
7025 # This directory was configured as follows,
7026 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7028 # $0 $ac_configure_args
7030 # Compiler output produced by configure, useful for debugging
7031 # configure, is in ./config.log if it exists.
7033 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7036 case "\$ac_option" in
7037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7038 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7039 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7040 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7041 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7043 -help | --help | --hel | --he | --h)
7044 echo "\$ac_cs_usage"; exit 0 ;;
7045 *) echo "\$ac_cs_usage"; exit 1 ;;
7049 ac_given_srcdir=$srcdir
7050 ac_given_INSTALL="$INSTALL"
7052 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7054 cat >> $CONFIG_STATUS <<EOF
7056 # Protect against being on the right side of a sed subst in config.status.
7057 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7058 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7061 s%@CFLAGS@%$CFLAGS%g
7062 s%@CPPFLAGS@%$CPPFLAGS%g
7063 s%@CXXFLAGS@%$CXXFLAGS%g
7065 s%@LDFLAGS@%$LDFLAGS%g
7067 s%@exec_prefix@%$exec_prefix%g
7068 s%@prefix@%$prefix%g
7069 s%@program_transform_name@%$program_transform_name%g
7070 s%@bindir@%$bindir%g
7071 s%@sbindir@%$sbindir%g
7072 s%@libexecdir@%$libexecdir%g
7073 s%@datadir@%$datadir%g
7074 s%@sysconfdir@%$sysconfdir%g
7075 s%@sharedstatedir@%$sharedstatedir%g
7076 s%@localstatedir@%$localstatedir%g
7077 s%@libdir@%$libdir%g
7078 s%@includedir@%$includedir%g
7079 s%@oldincludedir@%$oldincludedir%g
7080 s%@infodir@%$infodir%g
7081 s%@mandir@%$mandir%g
7083 s%@MPROGS@%$MPROGS%g
7084 s%@LDSHFLAGS@%$LDSHFLAGS%g
7085 s%@HOST_OS@%$HOST_OS%g
7087 s%@WRAP32@%$WRAP32%g
7088 s%@PICFLAG@%$PICFLAG%g
7090 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7091 s%@INSTALL_DATA@%$INSTALL_DATA%g
7094 s%@host_alias@%$host_alias%g
7095 s%@host_cpu@%$host_cpu%g
7096 s%@host_vendor@%$host_vendor%g
7097 s%@host_os@%$host_os%g
7098 s%@target@%$target%g
7099 s%@target_alias@%$target_alias%g
7100 s%@target_cpu@%$target_cpu%g
7101 s%@target_vendor@%$target_vendor%g
7102 s%@target_os@%$target_os%g
7104 s%@build_alias@%$build_alias%g
7105 s%@build_cpu@%$build_cpu%g
7106 s%@build_vendor@%$build_vendor%g
7107 s%@build_os@%$build_os%g
7109 s%@AUTOCONF@%$AUTOCONF%g
7110 s%@AUTOHEADER@%$AUTOHEADER%g
7112 s%@LIBOBJS@%$LIBOBJS%g
7114 s%@QUOTAOBJS@%$QUOTAOBJS%g
7115 s%@builddir@%$builddir%g
7120 cat >> $CONFIG_STATUS <<\EOF
7122 # Split the substitutions into bite-sized pieces for seds with
7123 # small command number limits, like on Digital OSF/1 and HP-UX.
7124 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
7125 ac_file=1 # Number of current file.
7126 ac_beg=1 # First line for current file.
7127 ac_end=$ac_max_sed_cmds # Line after last line for current file.
7130 while $ac_more_lines; do
7131 if test $ac_beg -gt 1; then
7132 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
7134 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
7136 if test ! -s conftest.s$ac_file; then
7138 rm -f conftest.s$ac_file
7140 if test -z "$ac_sed_cmds"; then
7141 ac_sed_cmds="sed -f conftest.s$ac_file"
7143 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
7145 ac_file=`expr $ac_file + 1`
7147 ac_end=`expr $ac_end + $ac_max_sed_cmds`
7150 if test -z "$ac_sed_cmds"; then
7155 cat >> $CONFIG_STATUS <<EOF
7157 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
7159 cat >> $CONFIG_STATUS <<\EOF
7160 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
7161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7163 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7164 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7165 *) ac_file_in="${ac_file}.in" ;;
7168 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7170 # Remove last slash and all that follows it. Not all systems have dirname.
7171 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7172 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7173 # The file is in a subdirectory.
7174 test ! -d "$ac_dir" && mkdir "$ac_dir"
7175 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
7176 # A "../" for each directory in $ac_dir_suffix.
7177 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7179 ac_dir_suffix= ac_dots=
7182 case "$ac_given_srcdir" in
7184 if test -z "$ac_dots"; then top_srcdir=.
7185 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7186 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
7188 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7189 top_srcdir="$ac_dots$ac_given_srcdir" ;;
7192 case "$ac_given_INSTALL" in
7193 [/$]*) INSTALL="$ac_given_INSTALL" ;;
7194 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
7197 echo creating "$ac_file"
7199 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7201 *Makefile*) ac_comsub="1i\\
7202 # $configure_input" ;;
7206 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7208 s%@configure_input@%$configure_input%g
7209 s%@srcdir@%$srcdir%g
7210 s%@top_srcdir@%$top_srcdir%g
7211 s%@INSTALL@%$INSTALL%g
7212 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7216 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7217 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7219 # ac_d sets the value in "#define NAME VALUE" lines.
7220 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7221 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7224 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7225 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7226 ac_uB='\([ ]\)%\1#\2define\3'
7229 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7230 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7231 ac_eB='$%\1#\2define\3'
7235 if test "${CONFIG_HEADERS+set}" != set; then
7237 cat >> $CONFIG_STATUS <<EOF
7238 CONFIG_HEADERS="include/config.h"
7240 cat >> $CONFIG_STATUS <<\EOF
7242 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7243 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7245 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7246 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7247 *) ac_file_in="${ac_file}.in" ;;
7250 echo creating $ac_file
7252 rm -f conftest.frag conftest.in conftest.out
7253 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7254 cat $ac_file_inputs > conftest.in
7258 # Transform confdefs.h into a sed script conftest.vals that substitutes
7259 # the proper values into config.h.in to produce config.h. And first:
7260 # Protect against being on the right side of a sed subst in config.status.
7261 # Protect against being in an unquoted here document in config.status.
7263 cat > conftest.hdr <<\EOF
7266 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7270 sed -n -f conftest.hdr confdefs.h > conftest.vals
7273 # This sed command replaces #undef with comments. This is necessary, for
7274 # example, in the case of _POSIX_SOURCE, which is predefined and required
7275 # on some systems where configure will not decide to define it.
7276 cat >> conftest.vals <<\EOF
7277 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7280 # Break up conftest.vals because some shells have a limit on
7281 # the size of here documents, and old seds have small limits too.
7286 ac_lines=`grep -c . conftest.vals`
7287 # grep -c gives empty output for an empty file on some AIX systems.
7288 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7289 # Write a limited-size here document to conftest.frag.
7290 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7291 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7293 sed -f conftest.frag conftest.in > conftest.out
7295 mv conftest.out conftest.in
7297 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7299 mv conftest.tail conftest.vals
7303 cat >> $CONFIG_STATUS <<\EOF
7304 rm -f conftest.frag conftest.h
7305 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7306 cat conftest.in >> conftest.h
7308 if cmp -s $ac_file conftest.h 2>/dev/null; then
7309 echo "$ac_file is unchanged"
7312 # Remove last slash and all that follows it. Not all systems have dirname.
7313 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7314 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7315 # The file is in a subdirectory.
7316 test ! -d "$ac_dir" && mkdir "$ac_dir"
7319 mv conftest.h $ac_file
7324 cat >> $CONFIG_STATUS <<EOF
7327 cat >> $CONFIG_STATUS <<\EOF
7331 chmod +x $CONFIG_STATUS
7332 rm -fr confdefs* $ac_clean_files
7333 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1