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=
575 # compile with optimisation and without debugging by default
576 CFLAGS=${CFLAGS-"-O"}
578 # Extract the first word of "gcc", so it can be a program name with args.
579 set dummy gcc; ac_word=$2
580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
581 echo "configure:582: checking for $ac_word" >&5
582 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
585 if test -n "$CC"; then
586 ac_cv_prog_CC="$CC" # Let the user override the test.
588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
589 for ac_dir in $PATH; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
600 if test -n "$CC"; then
601 echo "$ac_t""$CC" 1>&6
603 echo "$ac_t""no" 1>&6
606 if test -z "$CC"; then
607 # Extract the first word of "cc", so it can be a program name with args.
608 set dummy cc; ac_word=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
614 if test -n "$CC"; then
615 ac_cv_prog_CC="$CC" # Let the user override the test.
617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
619 for ac_dir in $PATH; do
620 test -z "$ac_dir" && ac_dir=.
621 if test -f $ac_dir/$ac_word; then
622 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
631 if test $ac_prog_rejected = yes; then
632 # We found a bogon in the path, so make sure we never use it.
633 set dummy $ac_cv_prog_CC
635 if test $# -gt 0; then
636 # We chose a different compiler from the bogus one.
637 # However, it has the same basename, so the bogon will be chosen
638 # first if we set CC to just the basename; use the full file name.
640 set dummy "$ac_dir/$ac_word" "$@"
648 if test -n "$CC"; then
649 echo "$ac_t""$CC" 1>&6
651 echo "$ac_t""no" 1>&6
654 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
657 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
658 echo "configure:659: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
661 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
662 ac_cpp='$CPP $CPPFLAGS'
663 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
664 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
665 cross_compiling=$ac_cv_prog_cc_cross
667 cat > conftest.$ac_ext <<EOF
668 #line 669 "configure"
669 #include "confdefs.h"
672 if { (eval echo configure:673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
673 ac_cv_prog_cc_works=yes
674 # If we can't run a trivial program, we are probably using a cross compiler.
675 if (./conftest; exit) 2>/dev/null; then
676 ac_cv_prog_cc_cross=no
678 ac_cv_prog_cc_cross=yes
681 echo "configure: failed program was:" >&5
682 cat conftest.$ac_ext >&5
683 ac_cv_prog_cc_works=no
687 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
688 if test $ac_cv_prog_cc_works = no; then
689 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
691 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
692 echo "configure:693: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
693 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
694 cross_compiling=$ac_cv_prog_cc_cross
696 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
697 echo "configure:698: checking whether we are using GNU C" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 cat > conftest.c <<EOF
706 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
713 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
715 if test $ac_cv_prog_gcc = yes; then
717 ac_test_CFLAGS="${CFLAGS+set}"
718 ac_save_CFLAGS="$CFLAGS"
720 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721 echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 echo 'void f(){}' > conftest.c
726 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
735 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736 if test "$ac_test_CFLAGS" = set; then
737 CFLAGS="$ac_save_CFLAGS"
738 elif test $ac_cv_prog_cc_g = yes; then
745 test "${CFLAGS+set}" = set || CFLAGS="-g"
749 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
750 if test -f $ac_dir/install-sh; then
752 ac_install_sh="$ac_aux_dir/install-sh -c"
754 elif test -f $ac_dir/install.sh; then
756 ac_install_sh="$ac_aux_dir/install.sh -c"
760 if test -z "$ac_aux_dir"; then
761 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
763 ac_config_guess=$ac_aux_dir/config.guess
764 ac_config_sub=$ac_aux_dir/config.sub
765 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
767 # Find a good install program. We prefer a C program (faster),
768 # so one script is as good as another. But avoid the broken or
769 # incompatible versions:
770 # SysV /etc/install, /usr/sbin/install
771 # SunOS /usr/etc/install
774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
776 # ./install, which can be erroneously created by make from ./install.sh.
777 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
778 echo "configure:779: checking for a BSD compatible install" >&5
779 if test -z "$INSTALL"; then
780 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
783 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
784 for ac_dir in $PATH; do
785 # Account for people who put trailing slashes in PATH elements.
787 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
789 # OSF1 and SCO ODT 3.0 have their own names for install.
790 for ac_prog in ginstall installbsd scoinst install; do
791 if test -f $ac_dir/$ac_prog; then
792 if test $ac_prog = install &&
793 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
794 # AIX install. It has an incompatible calling convention.
795 # OSF/1 installbsd also uses dspmsg, but is usable.
798 ac_cv_path_install="$ac_dir/$ac_prog -c"
809 if test "${ac_cv_path_install+set}" = set; then
810 INSTALL="$ac_cv_path_install"
812 # As a last resort, use the slow shell script. We don't cache a
813 # path for INSTALL within a source directory, because that will
814 # break other packages using the cache if that directory is
815 # removed, or if the path is relative.
816 INSTALL="$ac_install_sh"
819 echo "$ac_t""$INSTALL" 1>&6
821 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
822 # It thinks the first close brace ends the variable substitution.
823 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
825 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
827 for ac_prog in mawk gawk nawk awk
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 if test -n "$AWK"; then
837 ac_cv_prog_AWK="$AWK" # Let the user override the test.
839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
840 for ac_dir in $PATH; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 ac_cv_prog_AWK="$ac_prog"
850 AWK="$ac_cv_prog_AWK"
851 if test -n "$AWK"; then
852 echo "$ac_t""$AWK" 1>&6
854 echo "$ac_t""no" 1>&6
857 test -n "$AWK" && break
862 # Do some error checking and defaulting for the host and target type.
864 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
867 # 1. You are not allowed to specify --host, --target, and nonopt at the
869 # 2. Host defaults to nonopt.
870 # 3. If nonopt is not specified, then host defaults to the current host,
871 # as determined by config.guess.
872 # 4. Target and build default to nonopt.
873 # 5. If nonopt is not specified, then target and build default to host.
875 # The aliases save the names the user supplied, while $host etc.
876 # will get canonicalized.
877 case $host---$target---$nonopt in
878 NONE---*---* | *---NONE---* | *---*---NONE) ;;
879 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
883 # Make sure we can run config.sub.
884 if $ac_config_sub sun4 >/dev/null 2>&1; then :
885 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
888 echo $ac_n "checking host system type""... $ac_c" 1>&6
889 echo "configure:890: checking host system type" >&5
892 case "$host_alias" in
896 if host_alias=`$ac_config_guess`; then :
897 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 *) host_alias=$nonopt ;;
903 host=`$ac_config_sub $host_alias`
904 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
906 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
907 echo "$ac_t""$host" 1>&6
909 echo $ac_n "checking target system type""... $ac_c" 1>&6
910 echo "configure:911: checking target system type" >&5
913 case "$target_alias" in
916 NONE) target_alias=$host_alias ;;
917 *) target_alias=$nonopt ;;
921 target=`$ac_config_sub $target_alias`
922 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
923 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
924 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
925 echo "$ac_t""$target" 1>&6
927 echo $ac_n "checking build system type""... $ac_c" 1>&6
928 echo "configure:929: checking build system type" >&5
931 case "$build_alias" in
934 NONE) build_alias=$host_alias ;;
935 *) build_alias=$nonopt ;;
939 build=`$ac_config_sub $build_alias`
940 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo "$ac_t""$build" 1>&6
945 test "$host_alias" != "$target_alias" &&
946 test "$program_prefix$program_suffix$program_transform_name" = \
948 program_prefix=${target_alias}-
952 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
953 echo "configure:954: checking config.cache system type" >&5
954 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
955 test x"$ac_cv_host_system_type" != x"$host"; } ||
956 { test x"${ac_cv_build_system_type+set}" = x"set" &&
957 test x"$ac_cv_build_system_type" != x"$build"; } ||
958 { test x"${ac_cv_target_system_type+set}" = x"set" &&
959 test x"$ac_cv_target_system_type" != x"$target"; }; then
960 echo "$ac_t""different" 1>&6
961 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
963 echo "$ac_t""same" 1>&6
965 ac_cv_host_system_type="$host"
966 ac_cv_build_system_type="$build"
967 ac_cv_target_system_type="$target"
970 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
971 if test "${enable_maintainer_mode+set}" = set; then
972 enableval="$enable_maintainer_mode"
973 maint_mode=$enableval
978 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
980 # Extract the first word of "autoconf", so it can be a program name with args.
981 set dummy autoconf; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
989 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
993 for ac_dir in $PATH; do
994 test -z "$ac_dir" && ac_dir=.
995 if test -f $ac_dir/$ac_word; then
996 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1001 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1005 AUTOCONF="$ac_cv_path_AUTOCONF"
1006 if test -n "$AUTOCONF"; then
1007 echo "$ac_t""$AUTOCONF" 1>&6
1009 echo "$ac_t""no" 1>&6
1013 # Extract the first word of "autoheader", so it can be a program name with args.
1014 set dummy autoheader; ac_word=$2
1015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1016 echo "configure:1017: checking for $ac_word" >&5
1017 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1018 echo $ac_n "(cached) $ac_c" 1>&6
1020 case "$AUTOHEADER" in
1022 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1026 for ac_dir in $PATH; do
1027 test -z "$ac_dir" && ac_dir=.
1028 if test -f $ac_dir/$ac_word; then
1029 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1034 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1038 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1039 if test -n "$AUTOHEADER"; then
1040 echo "$ac_t""$AUTOHEADER" 1>&6
1042 echo "$ac_t""no" 1>&6
1048 echo $ac_n "checking for inline""... $ac_c" 1>&6
1049 echo "configure:1050: checking for inline" >&5
1050 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1054 for ac_kw in inline __inline__ __inline; do
1055 cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1063 if { (eval echo configure:1064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1065 ac_cv_c_inline=$ac_kw; break
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1075 echo "$ac_t""$ac_cv_c_inline" 1>&6
1076 case "$ac_cv_c_inline" in
1078 no) cat >> confdefs.h <<\EOF
1082 *) cat >> confdefs.h <<EOF
1083 #define inline $ac_cv_c_inline
1088 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1089 echo "configure:1090: checking how to run the C preprocessor" >&5
1090 # On Suns, sometimes $CPP names a directory.
1091 if test -n "$CPP" && test -d "$CPP"; then
1094 if test -z "$CPP"; then
1095 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 # This must be in double quotes, not single quotes, because CPP may get
1099 # substituted into the Makefile and "${CC-cc}" will confuse make.
1101 # On the NeXT, cc -E runs the code through the compiler's parser,
1102 # not just through cpp.
1103 cat > conftest.$ac_ext <<EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1110 { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1111 ac_err=`grep -v '^ *+' conftest.out`
1112 if test -z "$ac_err"; then
1116 echo "configure: failed program was:" >&5
1117 cat conftest.$ac_ext >&5
1119 CPP="${CC-cc} -E -traditional-cpp"
1120 cat > conftest.$ac_ext <<EOF
1121 #line 1122 "configure"
1122 #include "confdefs.h"
1126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1127 { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1128 ac_err=`grep -v '^ *+' conftest.out`
1129 if test -z "$ac_err"; then
1133 echo "configure: failed program was:" >&5
1134 cat conftest.$ac_ext >&5
1141 ac_cv_prog_CPP="$CPP"
1143 CPP="$ac_cv_prog_CPP"
1145 ac_cv_prog_CPP="$CPP"
1147 echo "$ac_t""$CPP" 1>&6
1149 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1150 echo "configure:1151: checking for ANSI C header files" >&5
1151 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftest.$ac_ext <<EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1163 { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1164 ac_err=`grep -v '^ *+' conftest.out`
1165 if test -z "$ac_err"; then
1167 ac_cv_header_stdc=yes
1170 echo "configure: failed program was:" >&5
1171 cat conftest.$ac_ext >&5
1173 ac_cv_header_stdc=no
1177 if test $ac_cv_header_stdc = yes; then
1178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1179 cat > conftest.$ac_ext <<EOF
1180 #line 1181 "configure"
1181 #include "confdefs.h"
1184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1185 egrep "memchr" >/dev/null 2>&1; then
1189 ac_cv_header_stdc=no
1195 if test $ac_cv_header_stdc = yes; then
1196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1197 cat > conftest.$ac_ext <<EOF
1198 #line 1199 "configure"
1199 #include "confdefs.h"
1202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1203 egrep "free" >/dev/null 2>&1; then
1207 ac_cv_header_stdc=no
1213 if test $ac_cv_header_stdc = yes; then
1214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1215 if test "$cross_compiling" = yes; then
1218 cat > conftest.$ac_ext <<EOF
1219 #line 1220 "configure"
1220 #include "confdefs.h"
1222 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1223 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1225 int main () { int i; for (i = 0; i < 256; i++)
1226 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1230 if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1234 echo "configure: failed program was:" >&5
1235 cat conftest.$ac_ext >&5
1237 ac_cv_header_stdc=no
1245 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1246 if test $ac_cv_header_stdc = yes; then
1247 cat >> confdefs.h <<\EOF
1248 #define STDC_HEADERS 1
1254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1257 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_hdr that defines DIR" >&5
1259 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <sys/types.h>
1271 if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1273 eval "ac_cv_header_dirent_$ac_safe=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_header_dirent_$ac_safe=no"
1282 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1283 echo "$ac_t""yes" 1>&6
1284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1285 cat >> confdefs.h <<EOF
1286 #define $ac_tr_hdr 1
1288 ac_header_dirent=$ac_hdr; break
1290 echo "$ac_t""no" 1>&6
1293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1294 if test $ac_header_dirent = dirent.h; then
1295 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1296 echo "configure:1297: checking for opendir in -ldir" >&5
1297 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1298 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 ac_save_LIBS="$LIBS"
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1306 /* Override any gcc2 internal prototype to avoid an error. */
1307 /* We use char because int might match the return type of a gcc2
1308 builtin and then its argument prototype would still apply. */
1315 if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1317 eval "ac_cv_lib_$ac_lib_var=yes"
1319 echo "configure: failed program was:" >&5
1320 cat conftest.$ac_ext >&5
1322 eval "ac_cv_lib_$ac_lib_var=no"
1325 LIBS="$ac_save_LIBS"
1328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1329 echo "$ac_t""yes" 1>&6
1332 echo "$ac_t""no" 1>&6
1336 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1337 echo "configure:1338: checking for opendir in -lx" >&5
1338 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 ac_save_LIBS="$LIBS"
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 /* Override any gcc2 internal prototype to avoid an error. */
1348 /* We use char because int might match the return type of a gcc2
1349 builtin and then its argument prototype would still apply. */
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1358 eval "ac_cv_lib_$ac_lib_var=yes"
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 eval "ac_cv_lib_$ac_lib_var=no"
1366 LIBS="$ac_save_LIBS"
1369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1370 echo "$ac_t""yes" 1>&6
1373 echo "$ac_t""no" 1>&6
1378 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1379 echo "configure:1380: checking whether time.h and sys/time.h may both be included" >&5
1380 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 cat > conftest.$ac_ext <<EOF
1384 #line 1385 "configure"
1385 #include "confdefs.h"
1386 #include <sys/types.h>
1387 #include <sys/time.h>
1393 if { (eval echo configure:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1395 ac_cv_header_time=yes
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 ac_cv_header_time=no
1405 echo "$ac_t""$ac_cv_header_time" 1>&6
1406 if test $ac_cv_header_time = yes; then
1407 cat >> confdefs.h <<\EOF
1408 #define TIME_WITH_SYS_TIME 1
1413 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1414 echo "configure:1415: checking for sys/wait.h that is POSIX.1 compatible" >&5
1415 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1421 #include <sys/types.h>
1422 #include <sys/wait.h>
1424 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1427 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1432 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1435 if { (eval echo configure:1436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1437 ac_cv_header_sys_wait_h=yes
1439 echo "configure: failed program was:" >&5
1440 cat conftest.$ac_ext >&5
1442 ac_cv_header_sys_wait_h=no
1447 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1448 if test $ac_cv_header_sys_wait_h = yes; then
1449 cat >> confdefs.h <<\EOF
1450 #define HAVE_SYS_WAIT_H 1
1455 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_hdr" >&5
1460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 cat > conftest.$ac_ext <<EOF
1464 #line 1465 "configure"
1465 #include "confdefs.h"
1468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1469 { (eval echo configure:1470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1470 ac_err=`grep -v '^ *+' conftest.out`
1471 if test -z "$ac_err"; then
1473 eval "ac_cv_header_$ac_safe=yes"
1476 echo "configure: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1479 eval "ac_cv_header_$ac_safe=no"
1483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1484 echo "$ac_t""yes" 1>&6
1485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1486 cat >> confdefs.h <<EOF
1487 #define $ac_tr_hdr 1
1491 echo "$ac_t""no" 1>&6
1495 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1499 echo "configure:1500: checking for $ac_hdr" >&5
1500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err=`grep -v '^ *+' conftest.out`
1511 if test -z "$ac_err"; then
1513 eval "ac_cv_header_$ac_safe=yes"
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1519 eval "ac_cv_header_$ac_safe=no"
1523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1524 echo "$ac_t""yes" 1>&6
1525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1526 cat >> confdefs.h <<EOF
1527 #define $ac_tr_hdr 1
1531 echo "$ac_t""no" 1>&6
1535 for ac_hdr in compat.h rpc/rpc.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1539 echo "configure:1540: checking for $ac_hdr" >&5
1540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err=`grep -v '^ *+' conftest.out`
1551 if test -z "$ac_err"; then
1553 eval "ac_cv_header_$ac_safe=yes"
1556 echo "configure: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1559 eval "ac_cv_header_$ac_safe=no"
1563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1564 echo "$ac_t""yes" 1>&6
1565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1566 cat >> confdefs.h <<EOF
1567 #define $ac_tr_hdr 1
1571 echo "$ac_t""no" 1>&6
1575 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1579 echo "configure:1580: checking for $ac_hdr" >&5
1580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 cat > conftest.$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1589 { (eval echo configure:1590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1590 ac_err=`grep -v '^ *+' conftest.out`
1591 if test -z "$ac_err"; then
1593 eval "ac_cv_header_$ac_safe=yes"
1596 echo "configure: failed program was:" >&5
1597 cat conftest.$ac_ext >&5
1599 eval "ac_cv_header_$ac_safe=no"
1603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1604 echo "$ac_t""yes" 1>&6
1605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1606 cat >> confdefs.h <<EOF
1607 #define $ac_tr_hdr 1
1611 echo "$ac_t""no" 1>&6
1615 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_hdr" >&5
1620 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1629 { (eval echo configure:1630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1630 ac_err=`grep -v '^ *+' conftest.out`
1631 if test -z "$ac_err"; then
1633 eval "ac_cv_header_$ac_safe=yes"
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1639 eval "ac_cv_header_$ac_safe=no"
1643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1644 echo "$ac_t""yes" 1>&6
1645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1646 cat >> confdefs.h <<EOF
1647 #define $ac_tr_hdr 1
1651 echo "$ac_t""no" 1>&6
1655 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1657 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1658 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_hdr" >&5
1660 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1661 echo $ac_n "(cached) $ac_c" 1>&6
1663 cat > conftest.$ac_ext <<EOF
1664 #line 1665 "configure"
1665 #include "confdefs.h"
1668 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1669 { (eval echo configure:1670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1670 ac_err=`grep -v '^ *+' conftest.out`
1671 if test -z "$ac_err"; then
1673 eval "ac_cv_header_$ac_safe=yes"
1676 echo "configure: failed program was:" >&5
1677 cat conftest.$ac_ext >&5
1679 eval "ac_cv_header_$ac_safe=no"
1683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1684 echo "$ac_t""yes" 1>&6
1685 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1686 cat >> confdefs.h <<EOF
1687 #define $ac_tr_hdr 1
1691 echo "$ac_t""no" 1>&6
1695 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1699 echo "configure:1700: checking for $ac_hdr" >&5
1700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1709 { (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1710 ac_err=`grep -v '^ *+' conftest.out`
1711 if test -z "$ac_err"; then
1713 eval "ac_cv_header_$ac_safe=yes"
1716 echo "configure: failed program was:" >&5
1717 cat conftest.$ac_ext >&5
1719 eval "ac_cv_header_$ac_safe=no"
1723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1726 cat >> confdefs.h <<EOF
1727 #define $ac_tr_hdr 1
1731 echo "$ac_t""no" 1>&6
1735 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1739 echo "configure:1740: checking for $ac_hdr" >&5
1740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1749 { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1750 ac_err=`grep -v '^ *+' conftest.out`
1751 if test -z "$ac_err"; then
1753 eval "ac_cv_header_$ac_safe=yes"
1756 echo "configure: failed program was:" >&5
1757 cat conftest.$ac_ext >&5
1759 eval "ac_cv_header_$ac_safe=no"
1763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1764 echo "$ac_t""yes" 1>&6
1765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1766 cat >> confdefs.h <<EOF
1767 #define $ac_tr_hdr 1
1771 echo "$ac_t""no" 1>&6
1775 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1779 echo "configure:1780: checking for $ac_hdr" >&5
1780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1781 echo $ac_n "(cached) $ac_c" 1>&6
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1789 { (eval echo configure:1790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1790 ac_err=`grep -v '^ *+' conftest.out`
1791 if test -z "$ac_err"; then
1793 eval "ac_cv_header_$ac_safe=yes"
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1799 eval "ac_cv_header_$ac_safe=no"
1803 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1804 echo "$ac_t""yes" 1>&6
1805 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1806 cat >> confdefs.h <<EOF
1807 #define $ac_tr_hdr 1
1811 echo "$ac_t""no" 1>&6
1815 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1819 echo "configure:1820: checking for $ac_hdr" >&5
1820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1829 { (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1830 ac_err=`grep -v '^ *+' conftest.out`
1831 if test -z "$ac_err"; then
1833 eval "ac_cv_header_$ac_safe=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.$ac_ext >&5
1839 eval "ac_cv_header_$ac_safe=no"
1843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1846 cat >> confdefs.h <<EOF
1847 #define $ac_tr_hdr 1
1851 echo "$ac_t""no" 1>&6
1855 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
1857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_hdr" >&5
1860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out`
1871 if test -z "$ac_err"; then
1873 eval "ac_cv_header_$ac_safe=yes"
1876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1879 eval "ac_cv_header_$ac_safe=no"
1883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1884 echo "$ac_t""yes" 1>&6
1885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1886 cat >> confdefs.h <<EOF
1887 #define $ac_tr_hdr 1
1891 echo "$ac_t""no" 1>&6
1895 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
1897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1899 echo "configure:1900: checking for $ac_hdr" >&5
1900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 cat > conftest.$ac_ext <<EOF
1904 #line 1905 "configure"
1905 #include "confdefs.h"
1908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1909 { (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1910 ac_err=`grep -v '^ *+' conftest.out`
1911 if test -z "$ac_err"; then
1913 eval "ac_cv_header_$ac_safe=yes"
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 eval "ac_cv_header_$ac_safe=no"
1923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1926 cat >> confdefs.h <<EOF
1927 #define $ac_tr_hdr 1
1931 echo "$ac_t""no" 1>&6
1936 echo $ac_n "checking size of int""... $ac_c" 1>&6
1937 echo "configure:1938: checking size of int" >&5
1938 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1939 echo $ac_n "(cached) $ac_c" 1>&6
1941 if test "$cross_compiling" = yes; then
1942 ac_cv_sizeof_int=cross
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1950 FILE *f=fopen("conftestval", "w");
1952 fprintf(f, "%d\n", sizeof(int));
1956 if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1958 ac_cv_sizeof_int=`cat conftestval`
1960 echo "configure: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1969 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1970 cat >> confdefs.h <<EOF
1971 #define SIZEOF_INT $ac_cv_sizeof_int
1975 echo $ac_n "checking size of long""... $ac_c" 1>&6
1976 echo "configure:1977: checking size of long" >&5
1977 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 if test "$cross_compiling" = yes; then
1981 ac_cv_sizeof_long=cross
1983 cat > conftest.$ac_ext <<EOF
1984 #line 1985 "configure"
1985 #include "confdefs.h"
1989 FILE *f=fopen("conftestval", "w");
1991 fprintf(f, "%d\n", sizeof(long));
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1997 ac_cv_sizeof_long=`cat conftestval`
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2008 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2009 cat >> confdefs.h <<EOF
2010 #define SIZEOF_LONG $ac_cv_sizeof_long
2014 echo $ac_n "checking size of short""... $ac_c" 1>&6
2015 echo "configure:2016: checking size of short" >&5
2016 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 if test "$cross_compiling" = yes; then
2020 ac_cv_sizeof_short=cross
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2028 FILE *f=fopen("conftestval", "w");
2030 fprintf(f, "%d\n", sizeof(short));
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2036 ac_cv_sizeof_short=`cat conftestval`
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2041 ac_cv_sizeof_short=0
2047 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2048 cat >> confdefs.h <<EOF
2049 #define SIZEOF_SHORT $ac_cv_sizeof_short
2054 echo $ac_n "checking for working const""... $ac_c" 1>&6
2055 echo "configure:2056: checking for working const" >&5
2056 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2065 /* Ultrix mips cc rejects this. */
2066 typedef int charset[2]; const charset x;
2067 /* SunOS 4.1.1 cc rejects this. */
2068 char const *const *ccp;
2070 /* NEC SVR4.0.2 mips cc rejects this. */
2071 struct point {int x, y;};
2072 static struct point const zero = {0,0};
2073 /* AIX XL C 1.02.0.0 rejects this.
2074 It does not let you subtract one const X* pointer from another in an arm
2075 of an if-expression whose if-part is not a constant expression */
2076 const char *g = "string";
2077 ccp = &g + (g ? g-g : 0);
2078 /* HPUX 7.0 cc rejects these. */
2081 ccp = (char const *const *) p;
2082 { /* SCO 3.2v4 cc rejects this. */
2084 char const *s = 0 ? (char *) 0 : (char const *) 0;
2088 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2090 const int *foo = &x[0];
2093 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2094 typedef const int *iptr;
2098 { /* AIX XL C 1.02.0.0 rejects this saying
2099 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2100 struct s { int j; const int *ap[3]; };
2101 struct s *b; b->j = 5;
2103 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2109 if { (eval echo configure:2110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2113 echo "configure: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2121 echo "$ac_t""$ac_cv_c_const" 1>&6
2122 if test $ac_cv_c_const = no; then
2123 cat >> confdefs.h <<\EOF
2129 echo $ac_n "checking for inline""... $ac_c" 1>&6
2130 echo "configure:2131: checking for inline" >&5
2131 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2135 for ac_kw in inline __inline__ __inline; do
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2144 if { (eval echo configure:2145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2146 ac_cv_c_inline=$ac_kw; break
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2156 echo "$ac_t""$ac_cv_c_inline" 1>&6
2157 case "$ac_cv_c_inline" in
2159 no) cat >> confdefs.h <<\EOF
2163 *) cat >> confdefs.h <<EOF
2164 #define inline $ac_cv_c_inline
2169 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether byte ordering is bigendian" >&5
2171 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 ac_cv_c_bigendian=unknown
2175 # See if sys/param.h defines the BYTE_ORDER macro.
2176 cat > conftest.$ac_ext <<EOF
2177 #line 2178 "configure"
2178 #include "confdefs.h"
2179 #include <sys/types.h>
2180 #include <sys/param.h>
2183 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2188 if { (eval echo configure:2189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2190 # It does; now see whether it defined to BIG_ENDIAN or not.
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 #include <sys/types.h>
2195 #include <sys/param.h>
2198 #if BYTE_ORDER != BIG_ENDIAN
2203 if { (eval echo configure:2204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2205 ac_cv_c_bigendian=yes
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2210 ac_cv_c_bigendian=no
2214 echo "configure: failed program was:" >&5
2215 cat conftest.$ac_ext >&5
2218 if test $ac_cv_c_bigendian = unknown; then
2219 if test "$cross_compiling" = yes; then
2220 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2226 /* Are we little or big endian? From Harbison&Steele. */
2230 char c[sizeof (long)];
2233 exit (u.c[sizeof (long) - 1] == 1);
2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2238 ac_cv_c_bigendian=no
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2243 ac_cv_c_bigendian=yes
2251 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2252 if test $ac_cv_c_bigendian = yes; then
2253 cat >> confdefs.h <<\EOF
2254 #define WORDS_BIGENDIAN 1
2259 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2260 echo "configure:2261: checking whether char is unsigned" >&5
2261 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2264 if test "$GCC" = yes; then
2265 # GCC predefines this symbol on systems where it applies.
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2268 "configure"
2268 #include "confdefs.h"
2269 #ifdef __CHAR_UNSIGNED__
2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2275 egrep "yes" >/dev/null 2>&1; then
2277 ac_cv_c_char_unsigned=yes
2280 ac_cv_c_char_unsigned=no
2285 if test "$cross_compiling" = yes; then
2286 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2292 #if !defined(__STDC__) || __STDC__ != 1
2296 volatile char c = 255; exit(c < 0);
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2301 ac_cv_c_char_unsigned=yes
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 ac_cv_c_char_unsigned=no
2314 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2315 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2316 cat >> confdefs.h <<\EOF
2317 #define __CHAR_UNSIGNED__ 1
2323 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2324 echo "configure:2325: checking return type of signal handlers" >&5
2325 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 #include <sys/types.h>
2337 extern "C" void (*signal (int, void (*)(int)))(int);
2339 void (*signal ()) ();
2346 if { (eval echo configure:2347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2348 ac_cv_type_signal=void
2350 echo "configure: failed program was:" >&5
2351 cat conftest.$ac_ext >&5
2353 ac_cv_type_signal=int
2358 echo "$ac_t""$ac_cv_type_signal" 1>&6
2359 cat >> confdefs.h <<EOF
2360 #define RETSIGTYPE $ac_cv_type_signal
2364 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2365 echo "configure:2366: checking for uid_t in sys/types.h" >&5
2366 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2375 egrep "uid_t" >/dev/null 2>&1; then
2377 ac_cv_type_uid_t=yes
2386 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2387 if test $ac_cv_type_uid_t = no; then
2388 cat >> confdefs.h <<\EOF
2392 cat >> confdefs.h <<\EOF
2398 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2399 echo "configure:2400: checking for mode_t" >&5
2400 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406 #include <sys/types.h>
2412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2413 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2415 ac_cv_type_mode_t=yes
2418 ac_cv_type_mode_t=no
2423 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2424 if test $ac_cv_type_mode_t = no; then
2425 cat >> confdefs.h <<\EOF
2431 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2432 echo "configure:2433: checking for off_t" >&5
2433 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 cat > conftest.$ac_ext <<EOF
2437 #line 2438 "configure"
2438 #include "confdefs.h"
2439 #include <sys/types.h>
2445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2446 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2448 ac_cv_type_off_t=yes
2456 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2457 if test $ac_cv_type_off_t = no; then
2458 cat >> confdefs.h <<\EOF
2464 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2465 echo "configure:2466: checking for size_t" >&5
2466 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2471 "configure"
2471 #include "confdefs.h"
2472 #include <sys/types.h>
2478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2479 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2481 ac_cv_type_size_t=yes
2484 ac_cv_type_size_t=no
2489 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2490 if test $ac_cv_type_size_t = no; then
2491 cat >> confdefs.h <<\EOF
2492 #define size_t unsigned
2497 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2498 echo "configure:2499: checking for pid_t" >&5
2499 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2500 echo $ac_n "(cached) $ac_c" 1>&6
2502 cat > conftest.$ac_ext <<EOF
2503 #line 2504 "configure"
2504 #include "confdefs.h"
2505 #include <sys/types.h>
2511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2512 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2514 ac_cv_type_pid_t=yes
2522 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2523 if test $ac_cv_type_pid_t = no; then
2524 cat >> confdefs.h <<\EOF
2530 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2531 echo "configure:2532: checking for st_rdev in struct stat" >&5
2532 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2533 echo $ac_n "(cached) $ac_c" 1>&6
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 #include <sys/types.h>
2539 #include <sys/stat.h>
2541 struct stat s; s.st_rdev;
2544 if { (eval echo configure:2545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2546 ac_cv_struct_st_rdev=yes
2548 echo "configure: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2551 ac_cv_struct_st_rdev=no
2556 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2557 if test $ac_cv_struct_st_rdev = yes; then
2558 cat >> confdefs.h <<\EOF
2559 #define HAVE_ST_RDEV 1
2564 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
2565 echo "configure:2566: checking for d_off in dirent" >&5
2566 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 cat > conftest.$ac_ext <<EOF
2570 #line 2571 "configure"
2571 #include "confdefs.h"
2574 #include <sys/types.h>
2577 struct dirent d; d.d_off;
2580 if { (eval echo configure:2581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2582 ac_cv_dirent_d_off=yes
2584 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5
2587 ac_cv_dirent_d_off=no
2592 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
2593 if test $ac_cv_dirent_d_off = yes; then
2594 cat >> confdefs.h <<\EOF
2595 #define HAVE_DIRENT_D_OFF 1
2600 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2601 echo "configure:2602: checking for ino_t" >&5
2602 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2608 #include <sys/types.h>
2614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2615 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2617 ac_cv_type_ino_t=yes
2625 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2626 if test $ac_cv_type_ino_t = no; then
2627 cat >> confdefs.h <<\EOF
2628 #define ino_t unsigned
2633 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
2634 echo "configure:2635: checking for loff_t" >&5
2635 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 cat > conftest.$ac_ext <<EOF
2639 #line 2640 "configure"
2640 #include "confdefs.h"
2641 #include <sys/types.h>
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2650 ac_cv_type_loff_t=yes
2653 ac_cv_type_loff_t=no
2658 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
2659 if test $ac_cv_type_loff_t = no; then
2660 cat >> confdefs.h <<\EOF
2661 #define loff_t off_t
2666 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
2667 echo "configure:2668: checking for offset_t" >&5
2668 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2674 #include <sys/types.h>
2680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2683 ac_cv_type_offset_t=yes
2686 ac_cv_type_offset_t=no
2691 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
2692 if test $ac_cv_type_offset_t = no; then
2693 cat >> confdefs.h <<\EOF
2694 #define offset_t loff_t
2699 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2700 echo "configure:2701: checking for ssize_t" >&5
2701 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2706 "configure"
2706 #include "confdefs.h"
2707 #include <sys/types.h>
2713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2714 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2716 ac_cv_type_ssize_t=yes
2719 ac_cv_type_ssize_t=no
2724 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2725 if test $ac_cv_type_ssize_t = no; then
2726 cat >> confdefs.h <<\EOF
2733 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2734 echo "configure:2735: checking for errno in errno.h" >&5
2735 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2747 if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2751 echo "configure: failed program was:" >&5
2752 cat conftest.$ac_ext >&5
2754 samba_cv_have_errno_decl=no
2759 echo "$ac_t""$samba_cv_errno" 1>&6
2760 if test x"$samba_cv_errno" = x"yes"; then
2761 cat >> confdefs.h <<\EOF
2762 #define HAVE_ERRNO_DECL 1
2767 # stupid glibc has the functions but no declaration. grrrr.
2768 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2769 echo "configure:2770: checking for setresuid declaration" >&5
2770 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2779 int i = (int)setresuid
2782 if { (eval echo configure:2783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2784 samba_cv_have_setresuid_decl=yes
2786 echo "configure: failed program was:" >&5
2787 cat conftest.$ac_ext >&5
2789 samba_cv_have_setresuid_decl=no
2794 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2795 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2796 cat >> confdefs.h <<\EOF
2797 #define HAVE_SETRESUID_DECL 1
2802 # stupid glibc has the functions but no declaration. grrrr.
2803 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
2804 echo "configure:2805: checking for crypt declaration" >&5
2805 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
2806 echo $ac_n "(cached) $ac_c" 1>&6
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2811 "configure"
2811 #include "confdefs.h"
2817 if { (eval echo configure:2818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2819 samba_cv_have_crypt_decl=yes
2821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
2824 samba_cv_have_crypt_decl=no
2829 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
2830 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
2831 cat >> confdefs.h <<\EOF
2832 #define HAVE_CRYPT_DECL 1
2837 # and glibc has setresuid under linux but the function does
2838 # nothing until kernel 2.1.44! very dumb.
2839 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2840 echo "configure:2841: checking for real setresuid" >&5
2841 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2842 echo $ac_n "(cached) $ac_c" 1>&6
2845 if test "$cross_compiling" = yes; then
2846 samba_cv_have_setresuid=cross
2848 cat > conftest.$ac_ext <<EOF
2849 #line 2850 "configure"
2850 #include "confdefs.h"
2852 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2856 samba_cv_have_setresuid=yes
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 samba_cv_have_setresuid=no
2868 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2869 if test x"$samba_cv_have_setresuid" = x"yes"; then
2870 cat >> confdefs.h <<\EOF
2871 #define HAVE_SETRESUID 1
2876 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2877 echo "configure:2878: checking for 8-bit clean memcmp" >&5
2878 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 if test "$cross_compiling" = yes; then
2882 ac_cv_func_memcmp_clean=no
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2890 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2891 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2897 ac_cv_func_memcmp_clean=yes
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2902 ac_cv_func_memcmp_clean=no
2909 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2910 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2913 ###############################################
2914 # test for where we get crypt() from
2915 for ac_func in crypt
2917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2918 echo "configure:2919: checking for $ac_func" >&5
2919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2925 /* System header to define __stub macros and hopefully few prototypes,
2926 which can conflict with char $ac_func(); below. */
2928 /* Override any gcc2 internal prototype to avoid an error. */
2929 /* We use char because int might match the return type of a gcc2
2930 builtin and then its argument prototype would still apply. */
2935 /* The GNU C library defines this for functions which it implements
2936 to always fail with ENOSYS. Some functions are actually named
2937 something starting with __ and the normal name is an alias. */
2938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2946 if { (eval echo configure:2947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2948 eval "ac_cv_func_$ac_func=yes"
2950 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5
2953 eval "ac_cv_func_$ac_func=no"
2958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2959 echo "$ac_t""yes" 1>&6
2960 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2961 cat >> confdefs.h <<EOF
2962 #define $ac_tr_func 1
2966 echo "$ac_t""no" 1>&6
2970 if test x"$ac_cv_func_crypt" = x"no"; then
2971 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2972 echo "configure:2973: checking for crypt in -lcrypt" >&5
2973 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 ac_save_LIBS="$LIBS"
2978 LIBS="-lcrypt $LIBS"
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* Override any gcc2 internal prototype to avoid an error. */
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2993 eval "ac_cv_lib_$ac_lib_var=yes"
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2998 eval "ac_cv_lib_$ac_lib_var=no"
3001 LIBS="$ac_save_LIBS"
3004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3005 echo "$ac_t""yes" 1>&6
3006 LIBS="$LIBS -lcrypt";
3007 cat >> confdefs.h <<\EOF
3008 #define HAVE_CRYPT 1
3012 echo "$ac_t""no" 1>&6
3018 ###############################################
3019 # test for where we get pam_authenticate() from
3020 # might need libdl for this to work
3021 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3022 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3023 echo "configure:3024: checking for main in -ldl" >&5
3024 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 ac_save_LIBS="$LIBS"
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3040 eval "ac_cv_lib_$ac_lib_var=yes"
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3045 eval "ac_cv_lib_$ac_lib_var=no"
3048 LIBS="$ac_save_LIBS"
3051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3055 cat >> confdefs.h <<EOF
3056 #define $ac_tr_lib 1
3062 echo "$ac_t""no" 1>&6
3066 for ac_func in pam_authenticate
3068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3069 echo "configure:3070: checking for $ac_func" >&5
3070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3073 cat > conftest.$ac_ext <<EOF
3074 #line 3075 "configure"
3075 #include "confdefs.h"
3076 /* System header to define __stub macros and hopefully few prototypes,
3077 which can conflict with char $ac_func(); below. */
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3086 /* The GNU C library defines this for functions which it implements
3087 to always fail with ENOSYS. Some functions are actually named
3088 something starting with __ and the normal name is an alias. */
3089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3099 eval "ac_cv_func_$ac_func=yes"
3101 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5
3104 eval "ac_cv_func_$ac_func=no"
3109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3110 echo "$ac_t""yes" 1>&6
3111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3112 cat >> confdefs.h <<EOF
3113 #define $ac_tr_func 1
3117 echo "$ac_t""no" 1>&6
3121 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3122 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3123 echo "configure:3124: checking for pam_authenticate in -lpam" >&5
3124 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
3125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 ac_save_LIBS="$LIBS"
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* Override any gcc2 internal prototype to avoid an error. */
3134 /* We use char because int might match the return type of a gcc2
3135 builtin and then its argument prototype would still apply. */
3136 char pam_authenticate();
3142 if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3144 eval "ac_cv_lib_$ac_lib_var=yes"
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3149 eval "ac_cv_lib_$ac_lib_var=no"
3152 LIBS="$ac_save_LIBS"
3155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3156 echo "$ac_t""yes" 1>&6
3158 cat >> confdefs.h <<\EOF
3159 #define HAVE_PAM_AUTHENTICATE 1
3163 echo "$ac_t""no" 1>&6
3169 ###############################################
3170 # test for where we get readline() from
3171 if test "$ac_cv_header_readline_h" = "yes" ||
3172 test "$ac_cv_header_readline_readline_h" = "yes"; then
3173 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3174 echo "configure:3175: checking for readline in -lreadline" >&5
3175 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 ac_save_LIBS="$LIBS"
3180 LIBS="-lreadline $LIBS"
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 /* Override any gcc2 internal prototype to avoid an error. */
3185 /* We use char because int might match the return type of a gcc2
3186 builtin and then its argument prototype would still apply. */
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3195 eval "ac_cv_lib_$ac_lib_var=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 eval "ac_cv_lib_$ac_lib_var=no"
3203 LIBS="$ac_save_LIBS"
3206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3207 echo "$ac_t""yes" 1>&6
3208 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3210 cat >> confdefs.h <<EOF
3211 #define $ac_tr_lib 1
3214 LIBS="-lreadline $LIBS"
3217 echo "$ac_t""no" 1>&6
3223 # The following test taken from the cvs sources
3224 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3225 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3226 # libsocket.so which has a bad implementation of gethostbyname (it
3227 # only looks in /etc/hosts), so we only look for -lsocket if we need
3229 for ac_func in connect
3231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3232 echo "configure:3233: checking for $ac_func" >&5
3233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 /* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char $ac_func(); below. */
3242 /* Override any gcc2 internal prototype to avoid an error. */
3243 /* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3249 /* The GNU C library defines this for functions which it implements
3250 to always fail with ENOSYS. Some functions are actually named
3251 something starting with __ and the normal name is an alias. */
3252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3262 eval "ac_cv_func_$ac_func=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 eval "ac_cv_func_$ac_func=no"
3272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3275 cat >> confdefs.h <<EOF
3276 #define $ac_tr_func 1
3280 echo "$ac_t""no" 1>&6
3284 if test x"$ac_cv_func_connect" = x"no"; then
3287 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3288 echo "configure:3289: checking for printf in -lnsl_s" >&5
3289 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3293 ac_save_LIBS="$LIBS"
3294 LIBS="-lnsl_s $LIBS"
3295 cat > conftest.$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* Override any gcc2 internal prototype to avoid an error. */
3299 /* We use char because int might match the return type of a gcc2
3300 builtin and then its argument prototype would still apply. */
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3309 eval "ac_cv_lib_$ac_lib_var=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_lib_$ac_lib_var=no"
3317 LIBS="$ac_save_LIBS"
3320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3321 echo "$ac_t""yes" 1>&6
3322 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3324 cat >> confdefs.h <<EOF
3325 #define $ac_tr_lib 1
3328 LIBS="-lnsl_s $LIBS"
3331 echo "$ac_t""no" 1>&6
3337 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3338 echo "configure:3339: checking for printf in -lnsl" >&5
3339 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 ac_save_LIBS="$LIBS"
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* Override any gcc2 internal prototype to avoid an error. */
3349 /* We use char because int might match the return type of a gcc2
3350 builtin and then its argument prototype would still apply. */
3357 if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3359 eval "ac_cv_lib_$ac_lib_var=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 eval "ac_cv_lib_$ac_lib_var=no"
3367 LIBS="$ac_save_LIBS"
3370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3371 echo "$ac_t""yes" 1>&6
3372 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3373 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3374 cat >> confdefs.h <<EOF
3375 #define $ac_tr_lib 1
3381 echo "$ac_t""no" 1>&6
3387 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3388 echo "configure:3389: checking for connect in -lsocket" >&5
3389 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3390 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 ac_save_LIBS="$LIBS"
3394 LIBS="-lsocket $LIBS"
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* Override any gcc2 internal prototype to avoid an error. */
3399 /* We use char because int might match the return type of a gcc2
3400 builtin and then its argument prototype would still apply. */
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3409 eval "ac_cv_lib_$ac_lib_var=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_lib_$ac_lib_var=no"
3417 LIBS="$ac_save_LIBS"
3420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3421 echo "$ac_t""yes" 1>&6
3422 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3424 cat >> confdefs.h <<EOF
3425 #define $ac_tr_lib 1
3428 LIBS="-lsocket $LIBS"
3431 echo "$ac_t""no" 1>&6
3437 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3438 echo "configure:3439: checking for connect in -linet" >&5
3439 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3441 echo $ac_n "(cached) $ac_c" 1>&6
3443 ac_save_LIBS="$LIBS"
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* Override any gcc2 internal prototype to avoid an error. */
3449 /* We use char because int might match the return type of a gcc2
3450 builtin and then its argument prototype would still apply. */
3457 if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3459 eval "ac_cv_lib_$ac_lib_var=yes"
3461 echo "configure: failed program was:" >&5
3462 cat conftest.$ac_ext >&5
3464 eval "ac_cv_lib_$ac_lib_var=no"
3467 LIBS="$ac_save_LIBS"
3470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3473 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3474 cat >> confdefs.h <<EOF
3475 #define $ac_tr_lib 1
3481 echo "$ac_t""no" 1>&6
3485 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3486 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3487 # ac_cv_func_connect=yes
3488 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3489 cat >> confdefs.h <<\EOF
3490 #define HAVE_CONNECT 1
3497 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3499 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3500 echo "configure:3501: checking for $ac_func" >&5
3501 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3507 /* System header to define __stub macros and hopefully few prototypes,
3508 which can conflict with char $ac_func(); below. */
3510 /* Override any gcc2 internal prototype to avoid an error. */
3511 /* We use char because int might match the return type of a gcc2
3512 builtin and then its argument prototype would still apply. */
3517 /* The GNU C library defines this for functions which it implements
3518 to always fail with ENOSYS. Some functions are actually named
3519 something starting with __ and the normal name is an alias. */
3520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3528 if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3530 eval "ac_cv_func_$ac_func=yes"
3532 echo "configure: failed program was:" >&5
3533 cat conftest.$ac_ext >&5
3535 eval "ac_cv_func_$ac_func=no"
3540 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3541 echo "$ac_t""yes" 1>&6
3542 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3543 cat >> confdefs.h <<EOF
3544 #define $ac_tr_func 1
3548 echo "$ac_t""no" 1>&6
3552 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3554 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $ac_func" >&5
3556 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 cat > conftest.$ac_ext <<EOF
3560 #line 3561 "configure"
3561 #include "confdefs.h"
3562 /* System header to define __stub macros and hopefully few prototypes,
3563 which can conflict with char $ac_func(); below. */
3565 /* Override any gcc2 internal prototype to avoid an error. */
3566 /* We use char because int might match the return type of a gcc2
3567 builtin and then its argument prototype would still apply. */
3572 /* The GNU C library defines this for functions which it implements
3573 to always fail with ENOSYS. Some functions are actually named
3574 something starting with __ and the normal name is an alias. */
3575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3583 if { (eval echo configure:3584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3585 eval "ac_cv_func_$ac_func=yes"
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3590 eval "ac_cv_func_$ac_func=no"
3595 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3596 echo "$ac_t""yes" 1>&6
3597 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3598 cat >> confdefs.h <<EOF
3599 #define $ac_tr_func 1
3603 echo "$ac_t""no" 1>&6
3607 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
3609 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3610 echo "configure:3611: checking for $ac_func" >&5
3611 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3612 echo $ac_n "(cached) $ac_c" 1>&6
3614 cat > conftest.$ac_ext <<EOF
3615 #line 3616 "configure"
3616 #include "confdefs.h"
3617 /* System header to define __stub macros and hopefully few prototypes,
3618 which can conflict with char $ac_func(); below. */
3620 /* Override any gcc2 internal prototype to avoid an error. */
3621 /* We use char because int might match the return type of a gcc2
3622 builtin and then its argument prototype would still apply. */
3627 /* The GNU C library defines this for functions which it implements
3628 to always fail with ENOSYS. Some functions are actually named
3629 something starting with __ and the normal name is an alias. */
3630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3638 if { (eval echo configure:3639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3640 eval "ac_cv_func_$ac_func=yes"
3642 echo "configure: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3645 eval "ac_cv_func_$ac_func=no"
3650 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3651 echo "$ac_t""yes" 1>&6
3652 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3653 cat >> confdefs.h <<EOF
3654 #define $ac_tr_func 1
3658 echo "$ac_t""no" 1>&6
3662 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_func" >&5
3666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* System header to define __stub macros and hopefully few prototypes,
3673 which can conflict with char $ac_func(); below. */
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3682 /* The GNU C library defines this for functions which it implements
3683 to always fail with ENOSYS. Some functions are actually named
3684 something starting with __ and the normal name is an alias. */
3685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3695 eval "ac_cv_func_$ac_func=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3700 eval "ac_cv_func_$ac_func=no"
3705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3708 cat >> confdefs.h <<EOF
3709 #define $ac_tr_func 1
3713 echo "$ac_t""no" 1>&6
3717 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3720 echo "configure:3721: checking for $ac_func" >&5
3721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3722 echo $ac_n "(cached) $ac_c" 1>&6
3724 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure"
3726 #include "confdefs.h"
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char $ac_func(); below. */
3730 /* Override any gcc2 internal prototype to avoid an error. */
3731 /* We use char because int might match the return type of a gcc2
3732 builtin and then its argument prototype would still apply. */
3737 /* The GNU C library defines this for functions which it implements
3738 to always fail with ENOSYS. Some functions are actually named
3739 something starting with __ and the normal name is an alias. */
3740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3750 eval "ac_cv_func_$ac_func=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 eval "ac_cv_func_$ac_func=no"
3760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3763 cat >> confdefs.h <<EOF
3764 #define $ac_tr_func 1
3768 echo "$ac_t""no" 1>&6
3772 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3775 echo "configure:3776: checking for $ac_func" >&5
3776 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* System header to define __stub macros and hopefully few prototypes,
3783 which can conflict with char $ac_func(); below. */
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3792 /* The GNU C library defines this for functions which it implements
3793 to always fail with ENOSYS. Some functions are actually named
3794 something starting with __ and the normal name is an alias. */
3795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3803 if { (eval echo configure:3804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3805 eval "ac_cv_func_$ac_func=yes"
3807 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 eval "ac_cv_func_$ac_func=no"
3815 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3816 echo "$ac_t""yes" 1>&6
3817 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3818 cat >> confdefs.h <<EOF
3819 #define $ac_tr_func 1
3823 echo "$ac_t""no" 1>&6
3827 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3830 echo "configure:3831: checking for $ac_func" >&5
3831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 /* System header to define __stub macros and hopefully few prototypes,
3838 which can conflict with char $ac_func(); below. */
3840 /* Override any gcc2 internal prototype to avoid an error. */
3841 /* We use char because int might match the return type of a gcc2
3842 builtin and then its argument prototype would still apply. */
3847 /* The GNU C library defines this for functions which it implements
3848 to always fail with ENOSYS. Some functions are actually named
3849 something starting with __ and the normal name is an alias. */
3850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3858 if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3860 eval "ac_cv_func_$ac_func=yes"
3862 echo "configure: failed program was:" >&5
3863 cat conftest.$ac_ext >&5
3865 eval "ac_cv_func_$ac_func=no"
3870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3871 echo "$ac_t""yes" 1>&6
3872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3873 cat >> confdefs.h <<EOF
3874 #define $ac_tr_func 1
3878 echo "$ac_t""no" 1>&6
3882 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3884 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3885 echo "configure:3886: checking for $ac_func" >&5
3886 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3889 cat > conftest.$ac_ext <<EOF
3890 #line 3891 "configure"
3891 #include "confdefs.h"
3892 /* System header to define __stub macros and hopefully few prototypes,
3893 which can conflict with char $ac_func(); below. */
3895 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3902 /* The GNU C library defines this for functions which it implements
3903 to always fail with ENOSYS. Some functions are actually named
3904 something starting with __ and the normal name is an alias. */
3905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3915 eval "ac_cv_func_$ac_func=yes"
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3920 eval "ac_cv_func_$ac_func=no"
3925 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3926 echo "$ac_t""yes" 1>&6
3927 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3928 cat >> confdefs.h <<EOF
3929 #define $ac_tr_func 1
3933 echo "$ac_t""no" 1>&6
3937 for ac_func in srandom random srand rand setenv
3939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_func" >&5
3941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 /* System header to define __stub macros and hopefully few prototypes,
3948 which can conflict with char $ac_func(); below. */
3950 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3957 /* The GNU C library defines this for functions which it implements
3958 to always fail with ENOSYS. Some functions are actually named
3959 something starting with __ and the normal name is an alias. */
3960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3968 if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3970 eval "ac_cv_func_$ac_func=yes"
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3975 eval "ac_cv_func_$ac_func=no"
3980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3981 echo "$ac_t""yes" 1>&6
3982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3983 cat >> confdefs.h <<EOF
3984 #define $ac_tr_func 1
3988 echo "$ac_t""no" 1>&6
3992 # syscall() is needed for smbwrapper.
3993 for ac_func in syscall
3995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3996 echo "configure:3997: checking for $ac_func" >&5
3997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
4000 cat > conftest.$ac_ext <<EOF
4001 #line 4002 "configure"
4002 #include "confdefs.h"
4003 /* System header to define __stub macros and hopefully few prototypes,
4004 which can conflict with char $ac_func(); below. */
4006 /* Override any gcc2 internal prototype to avoid an error. */
4007 /* We use char because int might match the return type of a gcc2
4008 builtin and then its argument prototype would still apply. */
4013 /* The GNU C library defines this for functions which it implements
4014 to always fail with ENOSYS. Some functions are actually named
4015 something starting with __ and the normal name is an alias. */
4016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4026 eval "ac_cv_func_$ac_func=yes"
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 eval "ac_cv_func_$ac_func=no"
4036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4039 cat >> confdefs.h <<EOF
4040 #define $ac_tr_func 1
4044 echo "$ac_t""no" 1>&6
4049 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_func" >&5
4053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 cat > conftest.$ac_ext <<EOF
4057 #line 4058 "configure"
4058 #include "confdefs.h"
4059 /* System header to define __stub macros and hopefully few prototypes,
4060 which can conflict with char $ac_func(); below. */
4062 /* Override any gcc2 internal prototype to avoid an error. */
4063 /* We use char because int might match the return type of a gcc2
4064 builtin and then its argument prototype would still apply. */
4069 /* The GNU C library defines this for functions which it implements
4070 to always fail with ENOSYS. Some functions are actually named
4071 something starting with __ and the normal name is an alias. */
4072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4082 eval "ac_cv_func_$ac_func=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4087 eval "ac_cv_func_$ac_func=no"
4092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4093 echo "$ac_t""yes" 1>&6
4094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4095 cat >> confdefs.h <<EOF
4096 #define $ac_tr_func 1