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 --with-afs Include AFS support
16 --without-afs Don't include AFS support (default)"
18 --with-dfs Include DFS support
19 --without-dfs Don't include DFS support (default)"
21 --with-automount Include AUTOMOUNT support
22 --without-automount Don't include AUTOMOUNT support (default)"
24 --with-ldap Include LDAP support
25 --without-ldap Don't include LDAP support (default)"
27 --with-nisplus Include NISPLUS password database support
28 --without-nisplus Don't include NISPLUS password database support (default)"
30 --with-nisplus-home Include NISPLUS_HOME support
31 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
33 --with-ssl Include SSL support
34 --without-ssl Don't include SSL support (default)"
36 --with-mmap Include experimental MMAP support
37 --without-mmap Don't include MMAP support (default)"
39 --with-syslog Include experimental SYSLOG support
40 --without-syslog Don't include SYSLOG support (default)"
42 --with-netatalk Include experimental Netatalk support
43 --without-netatalk Don't include experimental Netatalk support (default)"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file=./config.cache
58 program_transform_name=s,x,x,
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
82 # Maximum number of lines to put in a shell here document.
89 # If the previous option needs an argument, assign it.
90 if test -n "$ac_prev"; then
91 eval "$ac_prev=\$ac_option"
97 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 # Accept the important Cygnus configure options, so we can diagnose typos.
105 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108 bindir="$ac_optarg" ;;
110 -build | --build | --buil | --bui | --bu)
112 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113 build="$ac_optarg" ;;
115 -cache-file | --cache-file | --cache-fil | --cache-fi \
116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117 ac_prev=cache_file ;;
118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120 cache_file="$ac_optarg" ;;
122 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 datadir="$ac_optarg" ;;
128 -disable-* | --disable-*)
129 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130 # Reject names that are not valid shell variable names.
131 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}=no" ;;
137 -enable-* | --enable-*)
138 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139 # Reject names that are not valid shell variable names.
140 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
148 eval "enable_${ac_feature}='$ac_optarg'" ;;
150 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152 | --exec | --exe | --ex)
153 ac_prev=exec_prefix ;;
154 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156 | --exec=* | --exe=* | --ex=*)
157 exec_prefix="$ac_optarg" ;;
159 -gas | --gas | --ga | --g)
160 # Obsolete; use --with-gas.
163 -help | --help | --hel | --he)
164 # Omit some internal or obsolete options to make the list less imposing.
165 # This message is too long to be a string in the A/UX 3.1 sh.
167 Usage: configure [options] [host]
168 Options: [defaults in brackets after descriptions]
170 --cache-file=FILE cache test results in FILE
171 --help print this message
172 --no-create do not create output files
173 --quiet, --silent do not print \`checking...' messages
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347 srcdir="$ac_optarg" ;;
349 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350 | --syscon | --sysco | --sysc | --sys | --sy)
351 ac_prev=sysconfdir ;;
352 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354 sysconfdir="$ac_optarg" ;;
356 -target | --target | --targe | --targ | --tar | --ta | --t)
358 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359 target="$ac_optarg" ;;
361 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 -version | --version | --versio | --versi | --vers)
365 echo "configure generated by autoconf version 2.12"
369 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
379 eval "with_${ac_package}='$ac_optarg'" ;;
381 -without-* | --without-*)
382 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383 # Reject names that are not valid shell variable names.
384 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
387 ac_package=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}=no" ;;
391 # Obsolete; use --with-x.
394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395 | --x-incl | --x-inc | --x-in | --x-i)
396 ac_prev=x_includes ;;
397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399 x_includes="$ac_optarg" ;;
401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403 ac_prev=x_libraries ;;
404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406 x_libraries="$ac_optarg" ;;
408 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
412 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413 echo "configure: warning: $ac_option: invalid host type" 1>&2
415 if test "x$nonopt" != xNONE; then
416 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424 if test -n "$ac_prev"; then
425 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
430 # File descriptor usage:
433 # 2 errors and warnings
434 # 3 some systems may open it to /dev/tty
435 # 4 used on the Kubota Titan
436 # 6 checking for... messages and results
437 # 5 compiler messages saved in config.log
438 if test "$silent" = yes; then
446 This file contains any messages produced by compilers while
447 running configure, to aid debugging if configure makes a mistake.
450 # Strip out --no-create and --no-recursion so they do not pile up.
451 # Also quote any args containing shell metacharacters.
456 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457 | --no-cr | --no-c) ;;
458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
467 # Only set these to C if already set. These must not be set unconditionally
468 # because not all systems understand e.g. LANG=C (notably SCO).
469 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470 # Non-C LC_CTYPE values break the ctype check.
471 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
472 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
476 # confdefs.h avoids OS command line length limits that DEFS can exceed.
477 rm -rf conftest* confdefs.h
478 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481 # A filename unique to this package, relative to the directory that
482 # configure is in, which we can look for to find out if srcdir is correct.
483 ac_unique_file=include/includes.h
485 # Find the source files, if location was not specified.
486 if test -z "$srcdir"; then
487 ac_srcdir_defaulted=yes
488 # Try the directory containing this script, then its parent.
490 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 if test ! -r $srcdir/$ac_unique_file; then
497 ac_srcdir_defaulted=no
499 if test ! -r $srcdir/$ac_unique_file; then
500 if test "$ac_srcdir_defaulted" = yes; then
501 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
508 # Prefer explicitly selected file to automatically selected ones.
509 if test -z "$CONFIG_SITE"; then
510 if test "x$prefix" != xNONE; then
511 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516 for ac_site_file in $CONFIG_SITE; do
517 if test -r "$ac_site_file"; then
518 echo "loading site script $ac_site_file"
523 if test -r "$cache_file"; then
524 echo "loading cache $cache_file"
527 echo "creating cache $cache_file"
532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533 ac_cpp='$CPP $CPPFLAGS'
534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536 cross_compiling=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
547 ac_n= ac_c='\c' ac_t=
553 # Extract the first word of "gcc", so it can be a program name with args.
554 set dummy gcc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564 for ac_dir in $PATH; do
565 test -z "$ac_dir" && ac_dir=.
566 if test -f $ac_dir/$ac_word; then
575 if test -n "$CC"; then
576 echo "$ac_t""$CC" 1>&6
578 echo "$ac_t""no" 1>&6
581 if test -z "$CC"; then
582 # Extract the first word of "cc", so it can be a program name with args.
583 set dummy cc; ac_word=$2
584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585 echo "configure:586: checking for $ac_word" >&5
586 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587 echo $ac_n "(cached) $ac_c" 1>&6
589 if test -n "$CC"; then
590 ac_cv_prog_CC="$CC" # Let the user override the test.
592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
594 for ac_dir in $PATH; do
595 test -z "$ac_dir" && ac_dir=.
596 if test -f $ac_dir/$ac_word; then
597 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
606 if test $ac_prog_rejected = yes; then
607 # We found a bogon in the path, so make sure we never use it.
608 set dummy $ac_cv_prog_CC
610 if test $# -gt 0; then
611 # We chose a different compiler from the bogus one.
612 # However, it has the same basename, so the bogon will be chosen
613 # first if we set CC to just the basename; use the full file name.
615 set dummy "$ac_dir/$ac_word" "$@"
623 if test -n "$CC"; then
624 echo "$ac_t""$CC" 1>&6
626 echo "$ac_t""no" 1>&6
629 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
632 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
633 echo "configure:634: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
637 ac_cpp='$CPP $CPPFLAGS'
638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
639 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
640 cross_compiling=$ac_cv_prog_cc_cross
642 cat > conftest.$ac_ext <<EOF
643 #line 644 "configure"
644 #include "confdefs.h"
647 if { (eval echo configure:648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
648 ac_cv_prog_cc_works=yes
649 # If we can't run a trivial program, we are probably using a cross compiler.
650 if (./conftest; exit) 2>/dev/null; then
651 ac_cv_prog_cc_cross=no
653 ac_cv_prog_cc_cross=yes
656 echo "configure: failed program was:" >&5
657 cat conftest.$ac_ext >&5
658 ac_cv_prog_cc_works=no
662 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
663 if test $ac_cv_prog_cc_works = no; then
664 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
666 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
667 echo "configure:668: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
668 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
669 cross_compiling=$ac_cv_prog_cc_cross
671 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
672 echo "configure:673: checking whether we are using GNU C" >&5
673 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
676 cat > conftest.c <<EOF
681 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
688 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
690 if test $ac_cv_prog_gcc = yes; then
692 ac_test_CFLAGS="${CFLAGS+set}"
693 ac_save_CFLAGS="$CFLAGS"
695 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
696 echo "configure:697: checking whether ${CC-cc} accepts -g" >&5
697 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
700 echo 'void f(){}' > conftest.c
701 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
710 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
711 if test "$ac_test_CFLAGS" = set; then
712 CFLAGS="$ac_save_CFLAGS"
713 elif test $ac_cv_prog_cc_g = yes; then
720 test "${CFLAGS+set}" = set || CFLAGS="-g"
724 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
725 if test -f $ac_dir/install-sh; then
727 ac_install_sh="$ac_aux_dir/install-sh -c"
729 elif test -f $ac_dir/install.sh; then
731 ac_install_sh="$ac_aux_dir/install.sh -c"
735 if test -z "$ac_aux_dir"; then
736 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
738 ac_config_guess=$ac_aux_dir/config.guess
739 ac_config_sub=$ac_aux_dir/config.sub
740 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
742 # Find a good install program. We prefer a C program (faster),
743 # so one script is as good as another. But avoid the broken or
744 # incompatible versions:
745 # SysV /etc/install, /usr/sbin/install
746 # SunOS /usr/etc/install
749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
751 # ./install, which can be erroneously created by make from ./install.sh.
752 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
753 echo "configure:754: checking for a BSD compatible install" >&5
754 if test -z "$INSTALL"; then
755 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
758 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
759 for ac_dir in $PATH; do
760 # Account for people who put trailing slashes in PATH elements.
762 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
764 # OSF1 and SCO ODT 3.0 have their own names for install.
765 for ac_prog in ginstall installbsd scoinst install; do
766 if test -f $ac_dir/$ac_prog; then
767 if test $ac_prog = install &&
768 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
769 # AIX install. It has an incompatible calling convention.
770 # OSF/1 installbsd also uses dspmsg, but is usable.
773 ac_cv_path_install="$ac_dir/$ac_prog -c"
784 if test "${ac_cv_path_install+set}" = set; then
785 INSTALL="$ac_cv_path_install"
787 # As a last resort, use the slow shell script. We don't cache a
788 # path for INSTALL within a source directory, because that will
789 # break other packages using the cache if that directory is
790 # removed, or if the path is relative.
791 INSTALL="$ac_install_sh"
794 echo "$ac_t""$INSTALL" 1>&6
796 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
797 # It thinks the first close brace ends the variable substitution.
798 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
800 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
803 for ac_prog in mawk gawk nawk awk
805 # Extract the first word of "$ac_prog", so it can be a program name with args.
806 set dummy $ac_prog; ac_word=$2
807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
808 echo "configure:809: checking for $ac_word" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 if test -n "$AWK"; then
813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
815 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
816 for ac_dir in $PATH; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_AWK="$ac_prog"
826 AWK="$ac_cv_prog_AWK"
827 if test -n "$AWK"; then
828 echo "$ac_t""$AWK" 1>&6
830 echo "$ac_t""no" 1>&6
833 test -n "$AWK" && break
838 # Do some error checking and defaulting for the host and target type.
840 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
843 # 1. You are not allowed to specify --host, --target, and nonopt at the
845 # 2. Host defaults to nonopt.
846 # 3. If nonopt is not specified, then host defaults to the current host,
847 # as determined by config.guess.
848 # 4. Target and build default to nonopt.
849 # 5. If nonopt is not specified, then target and build default to host.
851 # The aliases save the names the user supplied, while $host etc.
852 # will get canonicalized.
853 case $host---$target---$nonopt in
854 NONE---*---* | *---NONE---* | *---*---NONE) ;;
855 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
859 # Make sure we can run config.sub.
860 if $ac_config_sub sun4 >/dev/null 2>&1; then :
861 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
864 echo $ac_n "checking host system type""... $ac_c" 1>&6
865 echo "configure:866: checking host system type" >&5
868 case "$host_alias" in
872 if host_alias=`$ac_config_guess`; then :
873 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
875 *) host_alias=$nonopt ;;
879 host=`$ac_config_sub $host_alias`
880 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
881 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
882 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
883 echo "$ac_t""$host" 1>&6
885 echo $ac_n "checking target system type""... $ac_c" 1>&6
886 echo "configure:887: checking target system type" >&5
889 case "$target_alias" in
892 NONE) target_alias=$host_alias ;;
893 *) target_alias=$nonopt ;;
897 target=`$ac_config_sub $target_alias`
898 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
899 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
900 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo "$ac_t""$target" 1>&6
903 echo $ac_n "checking build system type""... $ac_c" 1>&6
904 echo "configure:905: checking build system type" >&5
907 case "$build_alias" in
910 NONE) build_alias=$host_alias ;;
911 *) build_alias=$nonopt ;;
915 build=`$ac_config_sub $build_alias`
916 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
917 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
918 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
919 echo "$ac_t""$build" 1>&6
921 test "$host_alias" != "$target_alias" &&
922 test "$program_prefix$program_suffix$program_transform_name" = \
924 program_prefix=${target_alias}-
927 *linux*) cat >> confdefs.h <<\EOF
931 *solaris*) cat >> confdefs.h <<\EOF
935 *sunos*) cat >> confdefs.h <<\EOF
939 *irix*) cat >> confdefs.h <<\EOF
943 *aix*) cat >> confdefs.h <<\EOF
947 *hpux*) cat >> confdefs.h <<\EOF
951 *qnx*) cat >> confdefs.h <<\EOF
955 *osf1*) cat >> confdefs.h <<\EOF
959 *sco*) cat >> confdefs.h <<\EOF
963 *next2*) cat >> confdefs.h <<\EOF
969 if test x"$ac_cv_canonical_host" != x &&
970 test x"$ac_cv_canonical_host" != x"$host"; then
971 echo "system config has changed - remove config.cache"; exit 1;
974 if eval "test \"`echo '$''{'ac_cv_canonical_host'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
977 ac_cv_canonical_host=$host;
982 echo $ac_n "checking for inline""... $ac_c" 1>&6
983 echo "configure:984: checking for inline" >&5
984 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
988 for ac_kw in inline __inline__ __inline; do
989 cat > conftest.$ac_ext <<EOF
990 #line 991 "configure"
991 #include "confdefs.h"
997 if { (eval echo configure:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
999 ac_cv_c_inline=$ac_kw; break
1001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1009 echo "$ac_t""$ac_cv_c_inline" 1>&6
1010 case "$ac_cv_c_inline" in
1012 no) cat >> confdefs.h <<\EOF
1016 *) cat >> confdefs.h <<EOF
1017 #define inline $ac_cv_c_inline
1022 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1023 echo "configure:1024: checking how to run the C preprocessor" >&5
1024 # On Suns, sometimes $CPP names a directory.
1025 if test -n "$CPP" && test -d "$CPP"; then
1028 if test -z "$CPP"; then
1029 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 # This must be in double quotes, not single quotes, because CPP may get
1033 # substituted into the Makefile and "${CC-cc}" will confuse make.
1035 # On the NeXT, cc -E runs the code through the compiler's parser,
1036 # not just through cpp.
1037 cat > conftest.$ac_ext <<EOF
1038 #line 1039 "configure"
1039 #include "confdefs.h"
1043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1044 { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1045 ac_err=`grep -v '^ *+' conftest.out`
1046 if test -z "$ac_err"; then
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1053 CPP="${CC-cc} -E -traditional-cpp"
1054 cat > conftest.$ac_ext <<EOF
1055 #line 1056 "configure"
1056 #include "confdefs.h"
1060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1061 { (eval echo configure:1062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1062 ac_err=`grep -v '^ *+' conftest.out`
1063 if test -z "$ac_err"; then
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1075 ac_cv_prog_CPP="$CPP"
1077 CPP="$ac_cv_prog_CPP"
1079 ac_cv_prog_CPP="$CPP"
1081 echo "$ac_t""$CPP" 1>&6
1083 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1084 echo "configure:1085: checking for ANSI C header files" >&5
1085 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1086 echo $ac_n "(cached) $ac_c" 1>&6
1088 cat > conftest.$ac_ext <<EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1097 { (eval echo configure:1098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1098 ac_err=`grep -v '^ *+' conftest.out`
1099 if test -z "$ac_err"; then
1101 ac_cv_header_stdc=yes
1104 echo "configure: failed program was:" >&5
1105 cat conftest.$ac_ext >&5
1107 ac_cv_header_stdc=no
1111 if test $ac_cv_header_stdc = yes; then
1112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1113 cat > conftest.$ac_ext <<EOF
1114 #line 1115 "configure"
1115 #include "confdefs.h"
1118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1119 egrep "memchr" >/dev/null 2>&1; then
1123 ac_cv_header_stdc=no
1129 if test $ac_cv_header_stdc = yes; then
1130 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1137 egrep "free" >/dev/null 2>&1; then
1141 ac_cv_header_stdc=no
1147 if test $ac_cv_header_stdc = yes; then
1148 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1149 if test "$cross_compiling" = yes; then
1152 cat > conftest.$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1156 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1157 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1159 int main () { int i; for (i = 0; i < 256; i++)
1160 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1164 if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1171 ac_cv_header_stdc=no
1179 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1180 if test $ac_cv_header_stdc = yes; then
1181 cat >> confdefs.h <<\EOF
1182 #define STDC_HEADERS 1
1188 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1191 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_hdr that defines DIR" >&5
1193 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 cat > conftest.$ac_ext <<EOF
1197 #line 1198 "configure"
1198 #include "confdefs.h"
1199 #include <sys/types.h>
1205 if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1207 eval "ac_cv_header_dirent_$ac_safe=yes"
1209 echo "configure: failed program was:" >&5
1210 cat conftest.$ac_ext >&5
1212 eval "ac_cv_header_dirent_$ac_safe=no"
1216 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1217 echo "$ac_t""yes" 1>&6
1218 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1219 cat >> confdefs.h <<EOF
1220 #define $ac_tr_hdr 1
1222 ac_header_dirent=$ac_hdr; break
1224 echo "$ac_t""no" 1>&6
1227 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1228 if test $ac_header_dirent = dirent.h; then
1229 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1230 echo "configure:1231: checking for opendir in -ldir" >&5
1231 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1233 echo $ac_n "(cached) $ac_c" 1>&6
1235 ac_save_LIBS="$LIBS"
1237 cat > conftest.$ac_ext <<EOF
1238 #line 1239 "configure"
1239 #include "confdefs.h"
1240 /* Override any gcc2 internal prototype to avoid an error. */
1241 /* We use char because int might match the return type of a gcc2
1242 builtin and then its argument prototype would still apply. */
1249 if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1251 eval "ac_cv_lib_$ac_lib_var=yes"
1253 echo "configure: failed program was:" >&5
1254 cat conftest.$ac_ext >&5
1256 eval "ac_cv_lib_$ac_lib_var=no"
1259 LIBS="$ac_save_LIBS"
1262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1266 echo "$ac_t""no" 1>&6
1270 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1271 echo "configure:1272: checking for opendir in -lx" >&5
1272 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1274 echo $ac_n "(cached) $ac_c" 1>&6
1276 ac_save_LIBS="$LIBS"
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1281 /* Override any gcc2 internal prototype to avoid an error. */
1282 /* We use char because int might match the return type of a gcc2
1283 builtin and then its argument prototype would still apply. */
1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1292 eval "ac_cv_lib_$ac_lib_var=yes"
1294 echo "configure: failed program was:" >&5
1295 cat conftest.$ac_ext >&5
1297 eval "ac_cv_lib_$ac_lib_var=no"
1300 LIBS="$ac_save_LIBS"
1303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1304 echo "$ac_t""yes" 1>&6
1307 echo "$ac_t""no" 1>&6
1312 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1313 echo "configure:1314: checking whether time.h and sys/time.h may both be included" >&5
1314 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 cat > conftest.$ac_ext <<EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1320 #include <sys/types.h>
1321 #include <sys/time.h>
1327 if { (eval echo configure:1328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1329 ac_cv_header_time=yes
1331 echo "configure: failed program was:" >&5
1332 cat conftest.$ac_ext >&5
1334 ac_cv_header_time=no
1339 echo "$ac_t""$ac_cv_header_time" 1>&6
1340 if test $ac_cv_header_time = yes; then
1341 cat >> confdefs.h <<\EOF
1342 #define TIME_WITH_SYS_TIME 1
1347 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1348 echo "configure:1349: checking for sys/wait.h that is POSIX.1 compatible" >&5
1349 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1355 #include <sys/types.h>
1356 #include <sys/wait.h>
1358 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1361 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1366 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1369 if { (eval echo configure:1370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1371 ac_cv_header_sys_wait_h=yes
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 ac_cv_header_sys_wait_h=no
1381 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1382 if test $ac_cv_header_sys_wait_h = yes; then
1383 cat >> confdefs.h <<\EOF
1384 #define HAVE_SYS_WAIT_H 1
1389 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1393 echo "configure:1394: checking for $ac_hdr" >&5
1394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1403 { (eval echo configure:1404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1404 ac_err=`grep -v '^ *+' conftest.out`
1405 if test -z "$ac_err"; then
1407 eval "ac_cv_header_$ac_safe=yes"
1410 echo "configure: failed program was:" >&5
1411 cat conftest.$ac_ext >&5
1413 eval "ac_cv_header_$ac_safe=no"
1417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1418 echo "$ac_t""yes" 1>&6
1419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1420 cat >> confdefs.h <<EOF
1421 #define $ac_tr_hdr 1
1425 echo "$ac_t""no" 1>&6
1429 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_hdr" >&5
1434 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1443 { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1444 ac_err=`grep -v '^ *+' conftest.out`
1445 if test -z "$ac_err"; then
1447 eval "ac_cv_header_$ac_safe=yes"
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1453 eval "ac_cv_header_$ac_safe=no"
1457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1458 echo "$ac_t""yes" 1>&6
1459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1460 cat >> confdefs.h <<EOF
1461 #define $ac_tr_hdr 1
1465 echo "$ac_t""no" 1>&6
1469 for ac_hdr in compat.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_hdr" >&5
1474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1483 { (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1484 ac_err=`grep -v '^ *+' conftest.out`
1485 if test -z "$ac_err"; then
1487 eval "ac_cv_header_$ac_safe=yes"
1490 echo "configure: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1493 eval "ac_cv_header_$ac_safe=no"
1497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1498 echo "$ac_t""yes" 1>&6
1499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1500 cat >> confdefs.h <<EOF
1501 #define $ac_tr_hdr 1
1505 echo "$ac_t""no" 1>&6
1509 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_hdr" >&5
1514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 cat > conftest.$ac_ext <<EOF
1518 #line 1519 "configure"
1519 #include "confdefs.h"
1522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1523 { (eval echo configure:1524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1524 ac_err=`grep -v '^ *+' conftest.out`
1525 if test -z "$ac_err"; then
1527 eval "ac_cv_header_$ac_safe=yes"
1530 echo "configure: failed program was:" >&5
1531 cat conftest.$ac_ext >&5
1533 eval "ac_cv_header_$ac_safe=no"
1537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1538 echo "$ac_t""yes" 1>&6
1539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1540 cat >> confdefs.h <<EOF
1541 #define $ac_tr_hdr 1
1545 echo "$ac_t""no" 1>&6
1549 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1551 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1553 echo "configure:1554: checking for $ac_hdr" >&5
1554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1563 { (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1564 ac_err=`grep -v '^ *+' conftest.out`
1565 if test -z "$ac_err"; then
1567 eval "ac_cv_header_$ac_safe=yes"
1570 echo "configure: failed program was:" >&5
1571 cat conftest.$ac_ext >&5
1573 eval "ac_cv_header_$ac_safe=no"
1577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1580 cat >> confdefs.h <<EOF
1581 #define $ac_tr_hdr 1
1585 echo "$ac_t""no" 1>&6
1589 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1591 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1593 echo "configure:1594: checking for $ac_hdr" >&5
1594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 cat > conftest.$ac_ext <<EOF
1598 #line 1599 "configure"
1599 #include "confdefs.h"
1602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1603 { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1604 ac_err=`grep -v '^ *+' conftest.out`
1605 if test -z "$ac_err"; then
1607 eval "ac_cv_header_$ac_safe=yes"
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1613 eval "ac_cv_header_$ac_safe=no"
1617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1618 echo "$ac_t""yes" 1>&6
1619 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1620 cat >> confdefs.h <<EOF
1621 #define $ac_tr_hdr 1
1625 echo "$ac_t""no" 1>&6
1629 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1631 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1633 echo "configure:1634: checking for $ac_hdr" >&5
1634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 cat > conftest.$ac_ext <<EOF
1638 #line 1639 "configure"
1639 #include "confdefs.h"
1642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1643 { (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1644 ac_err=`grep -v '^ *+' conftest.out`
1645 if test -z "$ac_err"; then
1647 eval "ac_cv_header_$ac_safe=yes"
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 eval "ac_cv_header_$ac_safe=no"
1657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1658 echo "$ac_t""yes" 1>&6
1659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1660 cat >> confdefs.h <<EOF
1661 #define $ac_tr_hdr 1
1665 echo "$ac_t""no" 1>&6
1669 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_hdr" >&5
1674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1683 { (eval echo configure:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1684 ac_err=`grep -v '^ *+' conftest.out`
1685 if test -z "$ac_err"; then
1687 eval "ac_cv_header_$ac_safe=yes"
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1693 eval "ac_cv_header_$ac_safe=no"
1697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1698 echo "$ac_t""yes" 1>&6
1699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1700 cat >> confdefs.h <<EOF
1701 #define $ac_tr_hdr 1
1705 echo "$ac_t""no" 1>&6
1709 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1713 echo "configure:1714: checking for $ac_hdr" >&5
1714 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 cat > conftest.$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1723 { (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1724 ac_err=`grep -v '^ *+' conftest.out`
1725 if test -z "$ac_err"; then
1727 eval "ac_cv_header_$ac_safe=yes"
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 eval "ac_cv_header_$ac_safe=no"
1737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1738 echo "$ac_t""yes" 1>&6
1739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1740 cat >> confdefs.h <<EOF
1741 #define $ac_tr_hdr 1
1745 echo "$ac_t""no" 1>&6
1749 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1753 echo "configure:1754: checking for $ac_hdr" >&5
1754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 cat > conftest.$ac_ext <<EOF
1758 #line 1759 "configure"
1759 #include "confdefs.h"
1762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1763 { (eval echo configure:1764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1764 ac_err=`grep -v '^ *+' conftest.out`
1765 if test -z "$ac_err"; then
1767 eval "ac_cv_header_$ac_safe=yes"
1770 echo "configure: failed program was:" >&5
1771 cat conftest.$ac_ext >&5
1773 eval "ac_cv_header_$ac_safe=no"
1777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1778 echo "$ac_t""yes" 1>&6
1779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1780 cat >> confdefs.h <<EOF
1781 #define $ac_tr_hdr 1
1785 echo "$ac_t""no" 1>&6
1789 for ac_hdr in readline/history.h
1791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1793 echo "configure:1794: checking for $ac_hdr" >&5
1794 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 cat > conftest.$ac_ext <<EOF
1798 #line 1799 "configure"
1799 #include "confdefs.h"
1802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1803 { (eval echo configure:1804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1804 ac_err=`grep -v '^ *+' conftest.out`
1805 if test -z "$ac_err"; then
1807 eval "ac_cv_header_$ac_safe=yes"
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1813 eval "ac_cv_header_$ac_safe=no"
1817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1818 echo "$ac_t""yes" 1>&6
1819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1820 cat >> confdefs.h <<EOF
1821 #define $ac_tr_hdr 1
1825 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking size of int""... $ac_c" 1>&6
1831 echo "configure:1832: checking size of int" >&5
1832 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 if test "$cross_compiling" = yes; then
1836 ac_cv_sizeof_int=cross
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1844 FILE *f=fopen("conftestval", "w");
1846 fprintf(f, "%d\n", sizeof(int));
1850 if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1852 ac_cv_sizeof_int=`cat conftestval`
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1863 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1864 cat >> confdefs.h <<EOF
1865 #define SIZEOF_INT $ac_cv_sizeof_int
1869 echo $ac_n "checking size of long""... $ac_c" 1>&6
1870 echo "configure:1871: checking size of long" >&5
1871 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1874 if test "$cross_compiling" = yes; then
1875 ac_cv_sizeof_long=cross
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1883 FILE *f=fopen("conftestval", "w");
1885 fprintf(f, "%d\n", sizeof(long));
1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1891 ac_cv_sizeof_long=`cat conftestval`
1893 echo "configure: failed program was:" >&5
1894 cat conftest.$ac_ext >&5
1902 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1903 cat >> confdefs.h <<EOF
1904 #define SIZEOF_LONG $ac_cv_sizeof_long
1908 echo $ac_n "checking size of short""... $ac_c" 1>&6
1909 echo "configure:1910: checking size of short" >&5
1910 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1911 echo $ac_n "(cached) $ac_c" 1>&6
1913 if test "$cross_compiling" = yes; then
1914 ac_cv_sizeof_short=cross
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1922 FILE *f=fopen("conftestval", "w");
1924 fprintf(f, "%d\n", sizeof(short));
1928 if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1930 ac_cv_sizeof_short=`cat conftestval`
1932 echo "configure: failed program was:" >&5
1933 cat conftest.$ac_ext >&5
1935 ac_cv_sizeof_short=0
1941 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1942 cat >> confdefs.h <<EOF
1943 #define SIZEOF_SHORT $ac_cv_sizeof_short
1948 echo $ac_n "checking for working const""... $ac_c" 1>&6
1949 echo "configure:1950: checking for working const" >&5
1950 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1959 /* Ultrix mips cc rejects this. */
1960 typedef int charset[2]; const charset x;
1961 /* SunOS 4.1.1 cc rejects this. */
1962 char const *const *ccp;
1964 /* NEC SVR4.0.2 mips cc rejects this. */
1965 struct point {int x, y;};
1966 static struct point const zero = {0,0};
1967 /* AIX XL C 1.02.0.0 rejects this.
1968 It does not let you subtract one const X* pointer from another in an arm
1969 of an if-expression whose if-part is not a constant expression */
1970 const char *g = "string";
1971 ccp = &g + (g ? g-g : 0);
1972 /* HPUX 7.0 cc rejects these. */
1975 ccp = (char const *const *) p;
1976 { /* SCO 3.2v4 cc rejects this. */
1978 char const *s = 0 ? (char *) 0 : (char const *) 0;
1982 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1984 const int *foo = &x[0];
1987 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1988 typedef const int *iptr;
1992 { /* AIX XL C 1.02.0.0 rejects this saying
1993 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1994 struct s { int j; const int *ap[3]; };
1995 struct s *b; b->j = 5;
1997 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2003 if { (eval echo configure:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2007 echo "configure: failed program was:" >&5
2008 cat conftest.$ac_ext >&5
2015 echo "$ac_t""$ac_cv_c_const" 1>&6
2016 if test $ac_cv_c_const = no; then
2017 cat >> confdefs.h <<\EOF
2023 echo $ac_n "checking for inline""... $ac_c" 1>&6
2024 echo "configure:2025: checking for inline" >&5
2025 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2029 for ac_kw in inline __inline__ __inline; do
2030 cat > conftest.$ac_ext <<EOF
2031 #line 2032 "configure"
2032 #include "confdefs.h"
2038 if { (eval echo configure:2039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2040 ac_cv_c_inline=$ac_kw; break
2042 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5
2050 echo "$ac_t""$ac_cv_c_inline" 1>&6
2051 case "$ac_cv_c_inline" in
2053 no) cat >> confdefs.h <<\EOF
2057 *) cat >> confdefs.h <<EOF
2058 #define inline $ac_cv_c_inline
2063 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2064 echo "configure:2065: checking whether byte ordering is bigendian" >&5
2065 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2068 ac_cv_c_bigendian=unknown
2069 # See if sys/param.h defines the BYTE_ORDER macro.
2070 cat > conftest.$ac_ext <<EOF
2071 #line 2072 "configure"
2072 #include "confdefs.h"
2073 #include <sys/types.h>
2074 #include <sys/param.h>
2077 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2082 if { (eval echo configure:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2084 # It does; now see whether it defined to BIG_ENDIAN or not.
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2087 "configure"
2087 #include "confdefs.h"
2088 #include <sys/types.h>
2089 #include <sys/param.h>
2092 #if BYTE_ORDER != BIG_ENDIAN
2097 if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2099 ac_cv_c_bigendian=yes
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 ac_cv_c_bigendian=no
2108 echo "configure: failed program was:" >&5
2109 cat conftest.$ac_ext >&5
2112 if test $ac_cv_c_bigendian = unknown; then
2113 if test "$cross_compiling" = yes; then
2114 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2116 cat > conftest.$ac_ext <<EOF
2117 #line 2118 "configure"
2118 #include "confdefs.h"
2120 /* Are we little or big endian? From Harbison&Steele. */
2124 char c[sizeof (long)];
2127 exit (u.c[sizeof (long) - 1] == 1);
2130 if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2132 ac_cv_c_bigendian=no
2134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2137 ac_cv_c_bigendian=yes
2145 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2146 if test $ac_cv_c_bigendian = yes; then
2147 cat >> confdefs.h <<\EOF
2148 #define WORDS_BIGENDIAN 1
2153 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2154 echo "configure:2155: checking whether char is unsigned" >&5
2155 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 if test "$GCC" = yes; then
2159 # GCC predefines this symbol on systems where it applies.
2160 cat > conftest.$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2163 #ifdef __CHAR_UNSIGNED__
2168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2169 egrep "yes" >/dev/null 2>&1; then
2171 ac_cv_c_char_unsigned=yes
2174 ac_cv_c_char_unsigned=no
2179 if test "$cross_compiling" = yes; then
2180 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2182 cat > conftest.$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2185 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2186 #if !defined(__STDC__) || __STDC__ != 1
2190 volatile char c = 255; exit(c < 0);
2193 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2195 ac_cv_c_char_unsigned=yes
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2200 ac_cv_c_char_unsigned=no
2208 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2209 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2210 cat >> confdefs.h <<\EOF
2211 #define __CHAR_UNSIGNED__ 1
2217 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2218 echo "configure:2219: checking return type of signal handlers" >&5
2219 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 #include <sys/types.h>
2231 extern "C" void (*signal (int, void (*)(int)))(int);
2233 void (*signal ()) ();
2240 if { (eval echo configure:2241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2242 ac_cv_type_signal=void
2244 echo "configure: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2247 ac_cv_type_signal=int
2252 echo "$ac_t""$ac_cv_type_signal" 1>&6
2253 cat >> confdefs.h <<EOF
2254 #define RETSIGTYPE $ac_cv_type_signal
2258 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2259 echo "configure:2260: checking for uid_t in sys/types.h" >&5
2260 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2261 echo $ac_n "(cached) $ac_c" 1>&6
2263 cat > conftest.$ac_ext <<EOF
2264 #line 2265 "configure"
2265 #include "confdefs.h"
2266 #include <sys/types.h>
2268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2269 egrep "uid_t" >/dev/null 2>&1; then
2271 ac_cv_type_uid_t=yes
2280 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2281 if test $ac_cv_type_uid_t = no; then
2282 cat >> confdefs.h <<\EOF
2286 cat >> confdefs.h <<\EOF
2292 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2293 echo "configure:2294: checking for mode_t" >&5
2294 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2300 #include <sys/types.h>
2306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2307 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2309 ac_cv_type_mode_t=yes
2312 ac_cv_type_mode_t=no
2317 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2318 if test $ac_cv_type_mode_t = no; then
2319 cat >> confdefs.h <<\EOF
2325 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2326 echo "configure:2327: checking for off_t" >&5
2327 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2330 cat > conftest.$ac_ext <<EOF
2331 #line 2332 "configure"
2332 #include "confdefs.h"
2333 #include <sys/types.h>
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2342 ac_cv_type_off_t=yes
2350 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2351 if test $ac_cv_type_off_t = no; then
2352 cat >> confdefs.h <<\EOF
2358 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2359 echo "configure:2360: checking for size_t" >&5
2360 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 #include <sys/types.h>
2372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2373 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2375 ac_cv_type_size_t=yes
2378 ac_cv_type_size_t=no
2383 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2384 if test $ac_cv_type_size_t = no; then
2385 cat >> confdefs.h <<\EOF
2386 #define size_t unsigned
2391 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2392 echo "configure:2393: checking for pid_t" >&5
2393 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 #include <sys/types.h>
2405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2406 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2408 ac_cv_type_pid_t=yes
2416 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2417 if test $ac_cv_type_pid_t = no; then
2418 cat >> confdefs.h <<\EOF
2424 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2425 echo "configure:2426: checking for st_rdev in struct stat" >&5
2426 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2427 echo $ac_n "(cached) $ac_c" 1>&6
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2431 "configure"
2431 #include "confdefs.h"
2432 #include <sys/types.h>
2433 #include <sys/stat.h>
2435 struct stat s; s.st_rdev;
2438 if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440 ac_cv_struct_st_rdev=yes
2442 echo "configure: failed program was:" >&5
2443 cat conftest.$ac_ext >&5
2445 ac_cv_struct_st_rdev=no
2450 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2451 if test $ac_cv_struct_st_rdev = yes; then
2452 cat >> confdefs.h <<\EOF
2453 #define HAVE_ST_RDEV 1
2458 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2459 echo "configure:2460: checking for ino_t" >&5
2460 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 cat > conftest.$ac_ext <<EOF
2464 #line 2465 "configure"
2465 #include "confdefs.h"
2466 #include <sys/types.h>
2472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2473 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2475 ac_cv_type_ino_t=yes
2483 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2484 if test $ac_cv_type_ino_t = no; then
2485 cat >> confdefs.h <<\EOF
2486 #define ino_t unsigned
2491 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
2492 echo "configure:2493: checking for ssize_t" >&5
2493 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <sys/types.h>
2505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2506 egrep "ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2508 ac_cv_type_ssize_t=yes
2511 ac_cv_type_ssize_t=no
2516 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
2517 if test $ac_cv_type_ssize_t = no; then
2518 cat >> confdefs.h <<\EOF
2525 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
2526 echo "configure:2527: checking for errno in errno.h" >&5
2527 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2531 cat > conftest.$ac_ext <<EOF
2532 #line 2533 "configure"
2533 #include "confdefs.h"
2539 if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2546 samba_cv_have_errno_decl=no
2551 echo "$ac_t""$samba_cv_errno" 1>&6
2552 if test x"$samba_cv_errno" = x"yes"; then
2553 cat >> confdefs.h <<\EOF
2554 #define HAVE_ERRNO_DECL 1
2559 # stupid glibc has the functions but no declaration. grrrr.
2560 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
2561 echo "configure:2562: checking for setresuid declaration" >&5
2562 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2566 cat > conftest.$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2574 if { (eval echo configure:2575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2576 samba_cv_have_setresuid_decl=yes
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2581 samba_cv_have_setresuid_decl=no
2586 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
2587 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
2588 cat >> confdefs.h <<\EOF
2589 #define HAVE_SETRESUID_DECL 1
2594 # and glibc has setresuid under linux but the function does
2595 # nothing until kernel 2.1.44! very dumb.
2596 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
2597 echo "configure:2598: checking for real setresuid" >&5
2598 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
2599 echo $ac_n "(cached) $ac_c" 1>&6
2602 if test "$cross_compiling" = yes; then
2603 samba_cv_have_setresuid=cross
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2609 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2613 samba_cv_have_setresuid=yes
2615 echo "configure: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2618 samba_cv_have_setresuid=no
2625 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
2626 if test x"$samba_cv_have_setresuid" = x"yes"; then
2627 cat >> confdefs.h <<\EOF
2628 #define HAVE_SETRESUID 1
2633 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2634 echo "configure:2635: checking for 8-bit clean memcmp" >&5
2635 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2636 echo $ac_n "(cached) $ac_c" 1>&6
2638 if test "$cross_compiling" = yes; then
2639 ac_cv_func_memcmp_clean=no
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2647 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2648 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2654 ac_cv_func_memcmp_clean=yes
2656 echo "configure: failed program was:" >&5
2657 cat conftest.$ac_ext >&5
2659 ac_cv_func_memcmp_clean=no
2666 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2667 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2670 ###############################################
2671 # test for where we get crypt() from
2672 for ac_func in crypt
2674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2675 echo "configure:2676: checking for $ac_func" >&5
2676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2682 /* System header to define __stub macros and hopefully few prototypes,
2683 which can conflict with char $ac_func(); below. */
2685 /* Override any gcc2 internal prototype to avoid an error. */
2686 /* We use char because int might match the return type of a gcc2
2687 builtin and then its argument prototype would still apply. */
2692 /* The GNU C library defines this for functions which it implements
2693 to always fail with ENOSYS. Some functions are actually named
2694 something starting with __ and the normal name is an alias. */
2695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2703 if { (eval echo configure:2704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2705 eval "ac_cv_func_$ac_func=yes"
2707 echo "configure: failed program was:" >&5
2708 cat conftest.$ac_ext >&5
2710 eval "ac_cv_func_$ac_func=no"
2715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2716 echo "$ac_t""yes" 1>&6
2717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2718 cat >> confdefs.h <<EOF
2719 #define $ac_tr_func 1
2723 echo "$ac_t""no" 1>&6
2727 if test x"$ac_cv_func_crypt" = x"no"; then
2728 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2729 echo "configure:2730: checking for crypt in -lcrypt" >&5
2730 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 ac_save_LIBS="$LIBS"
2735 LIBS="-lcrypt $LIBS"
2736 cat > conftest.$ac_ext <<EOF
2737 #line 2738 "configure"
2738 #include "confdefs.h"
2739 /* Override any gcc2 internal prototype to avoid an error. */
2740 /* We use char because int might match the return type of a gcc2
2741 builtin and then its argument prototype would still apply. */
2748 if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2750 eval "ac_cv_lib_$ac_lib_var=yes"
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2755 eval "ac_cv_lib_$ac_lib_var=no"
2758 LIBS="$ac_save_LIBS"
2761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 LIBS="$LIBS -lcrypt";
2764 cat >> confdefs.h <<\EOF
2765 #define HAVE_CRYPT 1
2769 echo "$ac_t""no" 1>&6
2775 ###############################################
2776 # test for where we get pam_authenticate() from
2777 # might need libdl for this to work
2778 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2779 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
2780 echo "configure:2781: checking for main in -ldl" >&5
2781 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
2782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2785 ac_save_LIBS="$LIBS"
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2797 eval "ac_cv_lib_$ac_lib_var=yes"
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2802 eval "ac_cv_lib_$ac_lib_var=no"
2805 LIBS="$ac_save_LIBS"
2808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2809 echo "$ac_t""yes" 1>&6
2810 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2812 cat >> confdefs.h <<EOF
2813 #define $ac_tr_lib 1
2819 echo "$ac_t""no" 1>&6
2823 for ac_func in pam_authenticate
2825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2826 echo "configure:2827: checking for $ac_func" >&5
2827 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2833 /* System header to define __stub macros and hopefully few prototypes,
2834 which can conflict with char $ac_func(); below. */
2836 /* Override any gcc2 internal prototype to avoid an error. */
2837 /* We use char because int might match the return type of a gcc2
2838 builtin and then its argument prototype would still apply. */
2843 /* The GNU C library defines this for functions which it implements
2844 to always fail with ENOSYS. Some functions are actually named
2845 something starting with __ and the normal name is an alias. */
2846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2854 if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2856 eval "ac_cv_func_$ac_func=yes"
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 eval "ac_cv_func_$ac_func=no"
2866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2867 echo "$ac_t""yes" 1>&6
2868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2869 cat >> confdefs.h <<EOF
2870 #define $ac_tr_func 1
2874 echo "$ac_t""no" 1>&6
2878 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
2879 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2880 echo "configure:2881: checking for pam_authenticate in -lpam" >&5
2881 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 ac_save_LIBS="$LIBS"
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 /* Override any gcc2 internal prototype to avoid an error. */
2891 /* We use char because int might match the return type of a gcc2
2892 builtin and then its argument prototype would still apply. */
2893 char pam_authenticate();
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2901 eval "ac_cv_lib_$ac_lib_var=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 eval "ac_cv_lib_$ac_lib_var=no"
2909 LIBS="$ac_save_LIBS"
2912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2915 cat >> confdefs.h <<\EOF
2916 #define HAVE_PAM_AUTHENTICATE 1
2920 echo "$ac_t""no" 1>&6
2926 ###############################################
2927 # test for where we get readline() from
2928 if test "$ac_cv_header_readline_h" = "yes" ||
2929 test "$ac_cv_header_readline_readline_h" = "yes"; then
2930 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
2931 echo "configure:2932: checking for readline in -lreadline" >&5
2932 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
2933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 ac_save_LIBS="$LIBS"
2937 LIBS="-lreadline $LIBS"
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* Override any gcc2 internal prototype to avoid an error. */
2942 /* We use char because int might match the return type of a gcc2
2943 builtin and then its argument prototype would still apply. */
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2952 eval "ac_cv_lib_$ac_lib_var=yes"
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 eval "ac_cv_lib_$ac_lib_var=no"
2960 LIBS="$ac_save_LIBS"
2963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2965 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2967 cat >> confdefs.h <<EOF
2968 #define $ac_tr_lib 1
2971 LIBS="-lreadline $LIBS"
2974 echo "$ac_t""no" 1>&6
2980 # The following test taken from the cvs sources
2981 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
2982 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
2983 # libsocket.so which has a bad implementation of gethostbyname (it
2984 # only looks in /etc/hosts), so we only look for -lsocket if we need
2986 for ac_func in connect
2988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2989 echo "configure:2990: checking for $ac_func" >&5
2990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.$ac_ext <<EOF
2994 #line 2995 "configure"
2995 #include "confdefs.h"
2996 /* System header to define __stub macros and hopefully few prototypes,
2997 which can conflict with char $ac_func(); below. */
2999 /* Override any gcc2 internal prototype to avoid an error. */
3000 /* We use char because int might match the return type of a gcc2
3001 builtin and then its argument prototype would still apply. */
3006 /* The GNU C library defines this for functions which it implements
3007 to always fail with ENOSYS. Some functions are actually named
3008 something starting with __ and the normal name is an alias. */
3009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3017 if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3019 eval "ac_cv_func_$ac_func=yes"
3021 echo "configure: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3024 eval "ac_cv_func_$ac_func=no"
3029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3030 echo "$ac_t""yes" 1>&6
3031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3032 cat >> confdefs.h <<EOF
3033 #define $ac_tr_func 1
3037 echo "$ac_t""no" 1>&6
3041 if test x"$ac_cv_func_connect" = x"no"; then
3044 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
3045 echo "configure:3046: checking for printf in -lnsl_s" >&5
3046 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
3047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 ac_save_LIBS="$LIBS"
3051 LIBS="-lnsl_s $LIBS"
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* Override any gcc2 internal prototype to avoid an error. */
3056 /* We use char because int might match the return type of a gcc2
3057 builtin and then its argument prototype would still apply. */
3064 if { (eval echo configure:3065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3066 eval "ac_cv_lib_$ac_lib_var=yes"
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3071 eval "ac_cv_lib_$ac_lib_var=no"
3074 LIBS="$ac_save_LIBS"
3077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3078 echo "$ac_t""yes" 1>&6
3079 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3080 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3081 cat >> confdefs.h <<EOF
3082 #define $ac_tr_lib 1
3085 LIBS="-lnsl_s $LIBS"
3088 echo "$ac_t""no" 1>&6
3094 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3095 echo "configure:3096: checking for printf in -lnsl" >&5
3096 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3097 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 ac_save_LIBS="$LIBS"
3102 cat > conftest.$ac_ext <<EOF
3103 #line 3104 "configure"
3104 #include "confdefs.h"
3105 /* Override any gcc2 internal prototype to avoid an error. */
3106 /* We use char because int might match the return type of a gcc2
3107 builtin and then its argument prototype would still apply. */
3114 if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3116 eval "ac_cv_lib_$ac_lib_var=yes"
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3121 eval "ac_cv_lib_$ac_lib_var=no"
3124 LIBS="$ac_save_LIBS"
3127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3128 echo "$ac_t""yes" 1>&6
3129 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3130 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3131 cat >> confdefs.h <<EOF
3132 #define $ac_tr_lib 1
3138 echo "$ac_t""no" 1>&6
3144 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3145 echo "configure:3146: checking for connect in -lsocket" >&5
3146 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 ac_save_LIBS="$LIBS"
3151 LIBS="-lsocket $LIBS"
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3155 /* Override any gcc2 internal prototype to avoid an error. */
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3166 eval "ac_cv_lib_$ac_lib_var=yes"
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3171 eval "ac_cv_lib_$ac_lib_var=no"
3174 LIBS="$ac_save_LIBS"
3177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3178 echo "$ac_t""yes" 1>&6
3179 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3181 cat >> confdefs.h <<EOF
3182 #define $ac_tr_lib 1
3185 LIBS="-lsocket $LIBS"
3188 echo "$ac_t""no" 1>&6
3194 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3195 echo "configure:3196: checking for connect in -linet" >&5
3196 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 ac_save_LIBS="$LIBS"
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* Override any gcc2 internal prototype to avoid an error. */
3206 /* We use char because int might match the return type of a gcc2
3207 builtin and then its argument prototype would still apply. */
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3216 eval "ac_cv_lib_$ac_lib_var=yes"
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3221 eval "ac_cv_lib_$ac_lib_var=no"
3224 LIBS="$ac_save_LIBS"
3227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3228 echo "$ac_t""yes" 1>&6
3229 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3230 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3231 cat >> confdefs.h <<EOF
3232 #define $ac_tr_lib 1
3238 echo "$ac_t""no" 1>&6
3242 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
3243 test x"$ac_cv_lib_inet_connect" = x"yes"; then
3244 # ac_cv_func_connect=yes
3245 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
3246 cat >> confdefs.h <<\EOF
3247 #define HAVE_CONNECT 1
3254 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3257 echo "configure:3258: checking for $ac_func" >&5
3258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.$ac_ext <<EOF
3262 #line 3263 "configure"
3263 #include "confdefs.h"
3264 /* System header to define __stub macros and hopefully few prototypes,
3265 which can conflict with char $ac_func(); below. */
3267 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3274 /* The GNU C library defines this for functions which it implements
3275 to always fail with ENOSYS. Some functions are actually named
3276 something starting with __ and the normal name is an alias. */
3277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3285 if { (eval echo configure:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3287 eval "ac_cv_func_$ac_func=yes"
3289 echo "configure: failed program was:" >&5
3290 cat conftest.$ac_ext >&5
3292 eval "ac_cv_func_$ac_func=no"
3297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3300 cat >> confdefs.h <<EOF
3301 #define $ac_tr_func 1
3305 echo "$ac_t""no" 1>&6
3309 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3311 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3312 echo "configure:3313: checking for $ac_func" >&5
3313 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3314 echo $ac_n "(cached) $ac_c" 1>&6
3316 cat > conftest.$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3319 /* System header to define __stub macros and hopefully few prototypes,
3320 which can conflict with char $ac_func(); below. */
3322 /* Override any gcc2 internal prototype to avoid an error. */
3323 /* We use char because int might match the return type of a gcc2
3324 builtin and then its argument prototype would still apply. */
3329 /* The GNU C library defines this for functions which it implements
3330 to always fail with ENOSYS. Some functions are actually named
3331 something starting with __ and the normal name is an alias. */
3332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3340 if { (eval echo configure:3341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3342 eval "ac_cv_func_$ac_func=yes"
3344 echo "configure: failed program was:" >&5
3345 cat conftest.$ac_ext >&5
3347 eval "ac_cv_func_$ac_func=no"
3352 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3353 echo "$ac_t""yes" 1>&6
3354 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3355 cat >> confdefs.h <<EOF
3356 #define $ac_tr_func 1
3360 echo "$ac_t""no" 1>&6
3364 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_func" >&5
3368 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 /* System header to define __stub macros and hopefully few prototypes,
3375 which can conflict with char $ac_func(); below. */
3377 /* Override any gcc2 internal prototype to avoid an error. */
3378 /* We use char because int might match the return type of a gcc2
3379 builtin and then its argument prototype would still apply. */
3384 /* The GNU C library defines this for functions which it implements
3385 to always fail with ENOSYS. Some functions are actually named
3386 something starting with __ and the normal name is an alias. */
3387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3397 eval "ac_cv_func_$ac_func=yes"
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3402 eval "ac_cv_func_$ac_func=no"
3407 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3410 cat >> confdefs.h <<EOF
3411 #define $ac_tr_func 1
3415 echo "$ac_t""no" 1>&6
3419 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3421 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3422 echo "configure:3423: checking for $ac_func" >&5
3423 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* System header to define __stub macros and hopefully few prototypes,
3430 which can conflict with char $ac_func(); below. */
3432 /* Override any gcc2 internal prototype to avoid an error. */
3433 /* We use char because int might match the return type of a gcc2
3434 builtin and then its argument prototype would still apply. */
3439 /* The GNU C library defines this for functions which it implements
3440 to always fail with ENOSYS. Some functions are actually named
3441 something starting with __ and the normal name is an alias. */
3442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3450 if { (eval echo configure:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3452 eval "ac_cv_func_$ac_func=yes"
3454 echo "configure: failed program was:" >&5
3455 cat conftest.$ac_ext >&5
3457 eval "ac_cv_func_$ac_func=no"
3462 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3463 echo "$ac_t""yes" 1>&6
3464 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3465 cat >> confdefs.h <<EOF
3466 #define $ac_tr_func 1
3470 echo "$ac_t""no" 1>&6
3474 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3477 echo "configure:3478: checking for $ac_func" >&5
3478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 /* System header to define __stub macros and hopefully few prototypes,
3485 which can conflict with char $ac_func(); below. */
3487 /* Override any gcc2 internal prototype to avoid an error. */
3488 /* We use char because int might match the return type of a gcc2
3489 builtin and then its argument prototype would still apply. */
3494 /* The GNU C library defines this for functions which it implements
3495 to always fail with ENOSYS. Some functions are actually named
3496 something starting with __ and the normal name is an alias. */
3497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3505 if { (eval echo configure:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3507 eval "ac_cv_func_$ac_func=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.$ac_ext >&5
3512 eval "ac_cv_func_$ac_func=no"
3517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3520 cat >> confdefs.h <<EOF
3521 #define $ac_tr_func 1
3525 echo "$ac_t""no" 1>&6
3529 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $ac_func" >&5
3533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 /* System header to define __stub macros and hopefully few prototypes,
3540 which can conflict with char $ac_func(); below. */
3542 /* Override any gcc2 internal prototype to avoid an error. */
3543 /* We use char because int might match the return type of a gcc2
3544 builtin and then its argument prototype would still apply. */
3549 /* The GNU C library defines this for functions which it implements
3550 to always fail with ENOSYS. Some functions are actually named
3551 something starting with __ and the normal name is an alias. */
3552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3562 eval "ac_cv_func_$ac_func=yes"
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 eval "ac_cv_func_$ac_func=no"
3572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3573 echo "$ac_t""yes" 1>&6
3574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3575 cat >> confdefs.h <<EOF
3576 #define $ac_tr_func 1
3580 echo "$ac_t""no" 1>&6
3584 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3586 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3587 echo "configure:3588: checking for $ac_func" >&5
3588 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 /* System header to define __stub macros and hopefully few prototypes,
3595 which can conflict with char $ac_func(); below. */
3597 /* Override any gcc2 internal prototype to avoid an error. */
3598 /* We use char because int might match the return type of a gcc2
3599 builtin and then its argument prototype would still apply. */
3604 /* The GNU C library defines this for functions which it implements
3605 to always fail with ENOSYS. Some functions are actually named
3606 something starting with __ and the normal name is an alias. */
3607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3617 eval "ac_cv_func_$ac_func=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5
3622 eval "ac_cv_func_$ac_func=no"
3627 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3630 cat >> confdefs.h <<EOF
3631 #define $ac_tr_func 1
3635 echo "$ac_t""no" 1>&6
3639 for ac_func in fseek64 ftell64 bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3642 echo "configure:3643: checking for $ac_func" >&5
3643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 /* System header to define __stub macros and hopefully few prototypes,
3650 which can conflict with char $ac_func(); below. */
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3659 /* The GNU C library defines this for functions which it implements
3660 to always fail with ENOSYS. Some functions are actually named
3661 something starting with __ and the normal name is an alias. */
3662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3670 if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3672 eval "ac_cv_func_$ac_func=yes"
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3677 eval "ac_cv_func_$ac_func=no"
3682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3685 cat >> confdefs.h <<EOF
3686 #define $ac_tr_func 1
3690 echo "$ac_t""no" 1>&6
3695 echo $ac_n "checking for long long""... $ac_c" 1>&6
3696 echo "configure:3697: checking for long long" >&5
3697 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3701 if test "$cross_compiling" = yes; then
3702 samba_cv_have_longlong=cross
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3708 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3712 samba_cv_have_longlong=yes
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3717 samba_cv_have_longlong=no
3724 echo "$ac_t""$samba_cv_have_longlong" 1>&6
3725 if test x"$samba_cv_have_longlong" = x"yes"; then
3726 cat >> confdefs.h <<\EOF
3727 #define HAVE_LONGLONG 1
3732 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
3733 echo "configure:3734: checking for 64 bit off_t" >&5
3734 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3738 if test "$cross_compiling" = yes; then
3739 samba_cv_SIZEOF_OFF_T=cross
3741 cat > conftest.$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3745 #include <sys/stat.h>
3746 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
3748 if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3750 samba_cv_SIZEOF_OFF_T=yes
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 samba_cv_SIZEOF_OFF_T=no
3762 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
3763 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
3764 cat >> confdefs.h <<\EOF
3765 #define SIZEOF_OFF_T 8
3770 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
3771 echo "configure:3772: checking for off64_t" >&5
3772 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3776 if test "$cross_compiling" = yes; then
3777 samba_cv_HAVE_OFF64_T=cross
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3783 #include <sys/stat.h>
3784 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3788 samba_cv_HAVE_OFF64_T=yes
3790 echo "configure: failed program was:" >&5
3791 cat conftest.$ac_ext >&5
3793 samba_cv_HAVE_OFF64_T=no
3800 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
3801 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
3802 cat >> confdefs.h <<\EOF
3803 #define HAVE_OFF64_T 1
3808 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
3809 echo "configure:3810: checking for 64 bit ino_t" >&5
3810 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3814 if test "$cross_compiling" = yes; then
3815 samba_cv_SIZEOF_INO_T=cross
3817 cat > conftest.$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3821 #include <sys/stat.h>
3822 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3826 samba_cv_SIZEOF_INO_T=yes
3828 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5
3831 samba_cv_SIZEOF_INO_T=no
3838 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
3839 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
3840 cat >> confdefs.h <<\EOF
3841 #define SIZEOF_INO_T 8
3846 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
3847 echo "configure:3848: checking for ino64_t" >&5
3848 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3852 if test "$cross_compiling" = yes; then
3853 samba_cv_HAVE_INO64_T=cross
3855 cat > conftest.$ac_ext <<EOF
3856 #line 3857 "configure"
3857 #include "confdefs.h"
3859 #include <sys/stat.h>
3860 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3862 if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3864 samba_cv_HAVE_INO64_T=yes
3866 echo "configure: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3869 samba_cv_HAVE_INO64_T=no
3876 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
3877 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
3878 cat >> confdefs.h <<\EOF
3879 #define HAVE_INO64_T 1
3884 echo $ac_n "checking for union semun""... $ac_c" 1>&6
3885 echo "configure:3886: checking for union semun" >&5
3886 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3890 if test "$cross_compiling" = yes; then
3891 samba_cv_HAVE_UNION_SEMUN=cross
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3897 #include <sys/types.h>
3898 #include <sys/ipc.h>
3899 #include <sys/sem.h>
3900 main() { union semun ss; exit(0); }
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3904 samba_cv_HAVE_UNION_SEMUN=yes
3906 echo "configure: failed program was:" >&5
3907 cat conftest.$ac_ext >&5
3909 samba_cv_HAVE_UNION_SEMUN=no
3916 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
3917 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
3918 cat >> confdefs.h <<\EOF
3919 #define HAVE_UNION_SEMUN 1
3924 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
3925 echo "configure:3926: checking for unsigned char" >&5
3926 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
3927 echo $ac_n "(cached) $ac_c" 1>&6
3930 if test "$cross_compiling" = yes; then
3931 samba_cv_HAVE_UNSIGNED_CHAR=cross
3933 cat > conftest.$ac_ext <<EOF
3934 #line 3935 "configure"
3935 #include "confdefs.h"
3937 main() { char c; c=250; exit((c > 0)?0:1); }
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3941 samba_cv_HAVE_UNSIGNED_CHAR=yes
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3946 samba_cv_HAVE_UNSIGNED_CHAR=no
3953 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
3954 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_UNSIGNED_CHAR 1
3961 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
3962 echo "configure:3963: checking for sin_len in sock" >&5
3963 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 #include <sys/types.h>
3971 #include <sys/socket.h>
3972 #include <netinet/in.h>
3974 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3977 if { (eval echo configure:3978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3979 samba_cv_HAVE_SOCK_SIN_LEN=yes
3981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3984 samba_cv_HAVE_SOCK_SIN_LEN=no
3989 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
3990 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
3991 cat >> confdefs.h <<\EOF
3992 #define HAVE_SOCK_SIN_LEN 1
3997 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
3998 echo "configure:3999: checking for __FILE__ macro" >&5
3999 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4003 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure"
4005 #include "confdefs.h"
4008 printf("%s\n", __FILE__);
4011 if { (eval echo configure:4012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4013 samba_cv_HAVE_FILE_MACRO=yes
4015 echo "configure: failed program was:" >&5
4016 cat conftest.$ac_ext >&5
4018 samba_cv_HAVE_FILE_MACRO=no
4023 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
4024 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
4025 cat >> confdefs.h <<\EOF
4026 #define HAVE_FILE_MACRO 1
4031 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
4032 echo "configure:4033: checking for __FUNCTION__ macro" >&5
4033 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4037 cat > conftest.$ac_ext <<EOF
4038 #line 4039 "configure"
4039 #include "confdefs.h"
4042 printf("%s\n", __FUNCTION__);
4045 if { (eval echo configure:4046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4047 samba_cv_HAVE_FUNCTION_MACRO=yes
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4052 samba_cv_HAVE_FUNCTION_MACRO=no
4057 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
4058 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
4059 cat >> confdefs.h <<\EOF
4060 #define HAVE_FUNCTION_MACRO 1
4065 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
4066 echo "configure:4067: checking if gettimeofday takes tz argument" >&5
4067 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4071 if test "$cross_compiling" = yes; then
4072 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4078 #include <sys/time.h>
4080 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4084 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4089 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
4096 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
4097 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_GETTIMEOFDAY_TZ 1
4105 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
4106 echo "configure:4107: checking for broken readdir" >&5
4107 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4111 if test "$cross_compiling" = yes; then
4112 samba_cv_HAVE_BROKEN_READDIR=cross
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 #include <sys/types.h>
4119 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
4120 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
4121 di->d_name[0] == 0) exit(0); exit(1);}
4123 if { (eval echo configure:4124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4125 samba_cv_HAVE_BROKEN_READDIR=yes
4127 echo "configure: failed program was:" >&5
4128 cat conftest.$ac_ext >&5
4130 samba_cv_HAVE_BROKEN_READDIR=no
4137 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
4138 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
4139 cat >> confdefs.h <<\EOF
4140 #define HAVE_BROKEN_READDIR 1
4145 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
4146 echo "configure:4147: checking for utimbuf" >&5
4147 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4151 cat > conftest.$ac_ext <<EOF
4152 #line 4153 "configure"
4153 #include "confdefs.h"
4154 #include <sys/types.h>
4157 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
4160 if { (eval echo configure:4161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 samba_cv_HAVE_UTIMBUF=yes
4164 echo "configure: failed program was:" >&5
4165 cat conftest.$ac_ext >&5
4167 samba_cv_HAVE_UTIMBUF=no
4172 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
4173 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
4174 cat >> confdefs.h <<\EOF
4175 #define HAVE_UTIMBUF 1
4180 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
4181 echo "configure:4182: checking for kernel oplock type definitions" >&5
4182 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4192 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4197 samba_cv_HAVE_KERNEL_OPLOCKS=yes
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 samba_cv_HAVE_KERNEL_OPLOCKS=no
4207 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
4208 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_KERNEL_OPLOCKS 1
4216 echo $ac_n "checking for test routines""... $ac_c" 1>&6
4217 echo "configure:4218: checking for test routines" >&5
4218 if test "$cross_compiling" = yes; then
4219 echo "configure: warning: cannot run when cross-compiling" 1>&2
4221 cat > conftest.$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 #include "${srcdir-.}/tests/trivial.c"
4226 if { (eval echo configure:4227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4228 echo "$ac_t""yes" 1>&6
4230 echo "configure: failed program was:" >&5
4231 cat conftest.$ac_ext >&5
4233 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
4239 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
4240 echo "configure:4241: checking for ftruncate extend" >&5
4241 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4245 if test "$cross_compiling" = yes; then
4246 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #include "${srcdir-.}/tests/ftruncate.c"
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4255 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4260 samba_cv_HAVE_FTRUNCATE_EXTEND=no
4267 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
4268 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_FTRUNCATE_EXTEND 1
4275 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
4276 echo "configure:4277: checking for broken getgroups" >&5
4277 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4281 if test "$cross_compiling" = yes; then
4282 samba_cv_HAVE_BROKEN_GETGROUPS=cross
4284 cat > conftest.$ac_ext <<EOF
4285 #line 4286 "configure"
4286 #include "confdefs.h"
4287 #include "${srcdir-.}/tests/getgroups.c"
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4291 samba_cv_HAVE_BROKEN_GETGROUPS=yes
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 samba_cv_HAVE_BROKEN_GETGROUPS=no
4303 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
4304 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
4305 cat >> confdefs.h <<\EOF
4306 #define HAVE_BROKEN_GETGROUPS 1
4311 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
4312 echo "configure:4313: checking whether getpass should be replaced" >&5
4313 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4317 SAVE_CPPFLAGS="$CPPFLAGS"
4318 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4323 #define REPLACE_GETPASS 1
4324 #define NO_CONFIG_H 1
4325 #define main dont_declare_main
4326 #include "${srcdir-.}/lib/getsmbpass.c"
4333 if { (eval echo configure:4334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4335 samba_cv_REPLACE_GETPASS=yes
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4340 samba_cv_REPLACE_GETPASS=no
4343 CPPFLAGS="$SAVE_CPPFLAGS"
4347 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
4348 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
4349 cat >> confdefs.h <<\EOF
4350 #define REPLACE_GETPASS 1
4355 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
4356 echo "configure:4357: checking for broken inet_ntoa" >&5
4357 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4361 if test "$cross_compiling" = yes; then
4362 samba_cv_REPLACE_INET_NTOA=cross
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4369 #include <sys/types.h>
4370 #include <netinet/in.h>
4371 #include <arpa/inet.h>
4372 main() { struct in_addr ip; ip.s_addr = 0x12345678;
4373 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
4374 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
4377 if { (eval echo configure:4378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4379 samba_cv_REPLACE_INET_NTOA=yes
4381 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5
4384 samba_cv_REPLACE_INET_NTOA=no
4391 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
4392 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
4393 cat >> confdefs.h <<\EOF
4394 #define REPLACE_INET_NTOA 1
4399 echo $ac_n "checking for root""... $ac_c" 1>&6
4400 echo "configure:4401: checking for root" >&5
4401 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4405 if test "$cross_compiling" = yes; then
4406 samba_cv_HAVE_ROOT=cross
4408 cat > conftest.$ac_ext <<EOF
4409 #line 4410 "configure"
4410 #include "confdefs.h"
4411 main() { exit(getuid() != 0); }
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4415 samba_cv_HAVE_ROOT=yes
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4420 samba_cv_HAVE_ROOT=no
4427 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
4428 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
4429 cat >> confdefs.h <<\EOF
4434 echo "configure: warning: running as non-root will disable some tests" 1>&2
4438 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
4439 echo "configure:4440: checking for netmask ifconf" >&5
4440 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4444 if test "$cross_compiling" = yes; then
4445 samba_cv_HAVE_NETMASK_IFCONF=cross
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4451 #define HAVE_NETMASK_IFCONF 1
4453 #include "${srcdir-.}/lib/netmask.c"
4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4457 samba_cv_HAVE_NETMASK_IFCONF=yes
4459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4462 samba_cv_HAVE_NETMASK_IFCONF=no
4469 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
4470 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
4471 netmask=yes;cat >> confdefs.h <<\EOF
4472 #define HAVE_NETMASK_IFCONF 1
4477 if test $netmask = no; then
4478 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
4479 echo "configure:4480: checking for netmask ifreq" >&5
4480 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4484 if test "$cross_compiling" = yes; then
4485 samba_cv_HAVE_NETMASK_IFREQ=cross
4487 cat > conftest.$ac_ext <<EOF
4488 #line 4489 "configure"
4489 #include "confdefs.h"
4491 #define HAVE_NETMASK_IFREQ 1
4493 #include "${srcdir-.}/lib/netmask.c"
4495 if { (eval echo configure:4496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4497 samba_cv_HAVE_NETMASK_IFREQ=yes
4499 echo "configure: failed program was:" >&5
4500 cat conftest.$ac_ext >&5
4502 samba_cv_HAVE_NETMASK_IFREQ=no
4509 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
4510 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
4511 netmask=yes;cat >> confdefs.h <<\EOF
4512 #define HAVE_NETMASK_IFREQ 1
4518 if test $netmask = no; then
4519 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
4520 echo "configure:4521: checking for netmask AIX" >&5
4521 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
4522 echo $ac_n "(cached) $ac_c" 1>&6
4525 if test "$cross_compiling" = yes; then
4526 samba_cv_HAVE_NETMASK_AIX=cross
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4532 #define HAVE_NETMASK_AIX 1
4534 #include "${srcdir-.}/lib/netmask.c"
4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4538 samba_cv_HAVE_NETMASK_AIX=yes
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 samba_cv_HAVE_NETMASK_AIX=no
4550 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
4551 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
4552 netmask=yes;cat >> confdefs.h <<\EOF
4553 #define HAVE_NETMASK_AIX 1
4559 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
4560 echo "configure:4561: checking for trapdoor seteuid" >&5
4561 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4565 if test "$cross_compiling" = yes; then
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include "${srcdir-.}/tests/trapdoor.c"
4573 if { (eval echo configure:4574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4575 samba_cv_HAVE_TRAPDOOR_UID=no
4577 echo "configure: failed program was:" >&5
4578 cat conftest.$ac_ext >&5
4580 samba_cv_HAVE_TRAPDOOR_UID=yes
4587 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
4588 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
4589 cat >> confdefs.h <<\EOF
4590 #define HAVE_TRAPDOOR_UID 1
4595 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
4596 echo "configure:4597: checking for shared mmap" >&5
4597 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
4598 echo $ac_n "(cached) $ac_c" 1>&6
4601 if test "$cross_compiling" = yes; then
4602 samba_cv_HAVE_SHARED_MMAP=cross
4604 cat > conftest.$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include "${srcdir-.}/tests/shared_mmap.c"
4609 if { (eval echo configure:4610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4611 samba_cv_HAVE_SHARED_MMAP=yes
4613 echo "configure: failed program was:" >&5
4614 cat conftest.$ac_ext >&5
4616 samba_cv_HAVE_SHARED_MMAP=no
4623 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
4624 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
4625 cat >> confdefs.h <<\EOF
4626 #define HAVE_SHARED_MMAP 1
4631 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
4632 echo "configure:4633: checking for fcntl locking" >&5
4633 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4637 if test "$cross_compiling" = yes; then
4638 samba_cv_HAVE_FCNTL_LOCK=cross
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4643 #include "${srcdir-.}/tests/fcntl_lock.c"
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4647 samba_cv_HAVE_FCNTL_LOCK=yes
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 samba_cv_HAVE_FCNTL_LOCK=no
4659 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
4660 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
4661 cat >> confdefs.h <<\EOF
4662 #define HAVE_FCNTL_LOCK 1
4667 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
4668 echo "configure:4669: checking for 64 bit fcntl locking" >&5
4669 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4673 if test "$cross_compiling" = yes; then
4674 samba_cv_HAVE_STRUCT_FLOCK64=cross
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4687 #ifdef HAVE_SYS_FCNTL_H
4688 #include <sys/fcntl.h>
4690 main() { struct flock64 fl64;
4691 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
4698 if { (eval echo configure:4699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4700 samba_cv_HAVE_STRUCT_FLOCK64=yes
4702 echo "configure: failed program was:" >&5
4703 cat conftest.$ac_ext >&5
4705 samba_cv_HAVE_STRUCT_FLOCK64=no
4712 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
4713 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
4714 cat >> confdefs.h <<\EOF
4715 #define HAVE_STRUCT_FLOCK64 1
4720 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
4721 echo "configure:4722: checking for sysv ipc" >&5
4722 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
4723 echo $ac_n "(cached) $ac_c" 1>&6
4726 if test "$cross_compiling" = yes; then
4727 samba_cv_HAVE_SYSV_IPC=cross
4729 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure"
4731 #include "confdefs.h"
4732 #include "${srcdir-.}/tests/sysv_ipc.c"
4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4736 samba_cv_HAVE_SYSV_IPC=yes
4738 echo "configure: failed program was:" >&5
4739 cat conftest.$ac_ext >&5
4741 samba_cv_HAVE_SYSV_IPC=no
4748 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
4749 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
4750 cat >> confdefs.h <<\EOF
4751 #define HAVE_SYSV_IPC 1
4756 #################################################
4757 # check for the AFS filesystem
4758 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
4759 echo "configure:4760: checking whether to use AFS" >&5
4760 # Check whether --with-afs or --without-afs was given.
4761 if test "${with_afs+set}" = set; then
4765 echo "$ac_t""yes" 1>&6
4766 cat >> confdefs.h <<\EOF
4772 echo "$ac_t""no" 1>&6
4776 echo "$ac_t""no" 1>&6
4782 #################################################
4783 # check for the DFS auth system
4784 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
4785 echo "configure:4786: checking whether to use DFS auth" >&5
4786 # Check whether --with-dfs or --without-dfs was given.
4787 if test "${with_dfs+set}" = set; then
4791 echo "$ac_t""yes" 1>&6
4792 cat >> confdefs.h <<\EOF
4798 echo "$ac_t""no" 1>&6
4802 echo "$ac_t""no" 1>&6
4807 #################################################
4808 # check for automount support
4809 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
4810 echo "configure:4811: checking whether to use AUTOMOUNT" >&5
4811 # Check whether --with-automount or --without-automount was given.
4812 if test "${with_automount+set}" = set; then
4813 withval="$with_automount"
4816 echo "$ac_t""yes" 1>&6
4817 cat >> confdefs.h <<\EOF
4818 #define WITH_AUTOMOUNT 1
4823 echo "$ac_t""no" 1>&6
4827 echo "$ac_t""no" 1>&6
4832 #################################################
4833 # check for a LDAP password database
4834 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
4835 echo "configure:4836: checking whether to use LDAP password database" >&5
4836 # Check whether --with-ldap or --without-ldap was given.
4837 if test "${with_ldap+set}" = set; then
4838 withval="$with_ldap"
4841 echo "$ac_t""yes" 1>&6
4842 cat >> confdefs.h <<\EOF
4848 echo "$ac_t""no" 1>&6
4852 echo "$ac_t""no" 1>&6
4857 #################################################
4858 # check for a NISPLUS password database
4859 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
4860 echo "configure:4861: checking whether to use NISPLUS password database" >&5
4861 # Check whether --with-nisplus or --without-nisplus was given.
4862 if test "${with_nisplus+set}" = set; then
4863 withval="$with_nisplus"
4866 echo "$ac_t""yes" 1>&6
4867 cat >> confdefs.h <<\EOF
4868 #define WITH_NISPLUS 1
4873 echo "$ac_t""no" 1>&6
4877 echo "$ac_t""no" 1>&6
4882 #################################################
4883 # check for a NISPLUS_HOME support
4884 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
4885 echo "configure:4886: checking whether to use NISPLUS_HOME" >&5
4886 # Check whether --with-nisplus-home or --without-nisplus-home was given.
4887 if test "${with_nisplus_home+set}" = set; then
4888 withval="$with_nisplus_home"
4891 echo "$ac_t""yes" 1>&6
4892 cat >> confdefs.h <<\EOF
4893 #define WITH_NISPLUS_HOME 1
4898 echo "$ac_t""no" 1>&6
4902 echo "$ac_t""no" 1>&6
4907 #################################################
4908 # check for the secure socket layer
4909 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
4910 echo "configure:4911: checking whether to use SSL" >&5
4911 # Check whether --with-ssl or --without-ssl was given.
4912 if test "${with_ssl+set}" = set; then
4916 echo "$ac_t""yes" 1>&6
4917 cat >> confdefs.h <<\EOF
4923 echo "$ac_t""no" 1>&6
4927 echo "$ac_t""no" 1>&6
4932 #################################################
4933 # check for experimental mmap support
4934 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
4935 echo "configure:4936: checking whether to use MMAP" >&5
4936 # Check whether --with-mmap or --without-mmap was given.
4937 if test "${with_mmap+set}" = set; then
4938 withval="$with_mmap"
4941 echo "$ac_t""yes" 1>&6
4942 cat >> confdefs.h <<\EOF
4948 echo "$ac_t""no" 1>&6
4952 echo "$ac_t""no" 1>&6
4957 #################################################
4958 # check for syslog logging
4959 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
4960 echo "configure:4961: checking whether to use syslog logging" >&5
4961 # Check whether --with-syslog or --without-syslog was given.
4962 if test "${with_syslog+set}" = set; then
4963 withval="$with_syslog"
4966 echo "$ac_t""yes" 1>&6
4967 cat >> confdefs.h <<\EOF
4968 #define WITH_SYSLOG 1
4973 echo "$ac_t""no" 1>&6
4977 echo "$ac_t""no" 1>&6
4982 #################################################
4983 # check for experimental netatalk resource fork support
4984 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
4985 echo "configure:4986: checking whether to support netatalk" >&5
4986 # Check whether --with-netatalk or --without-netatalk was given.
4987 if test "${with_netatalk+set}" = set; then
4988 withval="$with_netatalk"
4991 echo "$ac_t""yes" 1>&6
4992 cat >> confdefs.h <<\EOF
4993 #define WITH_NETATALK 1
4998 echo "$ac_t""no" 1>&6
5002 echo "$ac_t""no" 1>&6
5008 #################################################
5009 # these tests are taken from the GNU fileutils package
5010 echo "checking how to get filesystem space usage" 1>&6
5011 echo "configure:5012: checking how to get filesystem space usage" >&5
5014 # Test for statvfs64.
5015 if test $space = no; then
5017 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
5018 echo "configure:5019: checking statvfs64 function (SVR4)" >&5
5019 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 if test "$cross_compiling" = yes; then
5023 fu_cv_sys_stat_statvfs64=cross
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5029 #include <sys/types.h>
5030 #include <sys/statvfs.h>
5033 struct statvfs64 fsd;
5034 exit (statfs64 (".", &fsd));
5037 if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5039 fu_cv_sys_stat_statvfs64=yes
5041 echo "configure: failed program was:" >&5
5042 cat conftest.$ac_ext >&5
5044 fu_cv_sys_stat_statvfs64=no
5051 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
5052 if test $fu_cv_sys_stat_statvfs64 = yes; then
5054 cat >> confdefs.h <<\EOF
5055 #define STAT_STATVFS64 1
5061 # Perform only the link test since it seems there are no variants of the
5062 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
5063 # because that got a false positive on SCO OSR5. Adding the declaration
5064 # of a `struct statvfs' causes this test to fail (as it should) on such
5065 # systems. That system is reported to work fine with STAT_STATFS4 which
5066 # is what it gets when this test fails.
5067 if test $space = no; then
5069 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
5070 echo "configure:5071: checking statvfs function (SVR4)" >&5
5071 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077 #include <sys/types.h>
5078 #include <sys/statvfs.h>
5080 struct statvfs fsd; statvfs (0, &fsd);
5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5085 fu_cv_sys_stat_statvfs=yes
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5090 fu_cv_sys_stat_statvfs=no
5095 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
5096 if test $fu_cv_sys_stat_statvfs = yes; then
5098 cat >> confdefs.h <<\EOF
5099 #define STAT_STATVFS 1
5105 if test $space = no; then
5106 # DEC Alpha running OSF/1
5107 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
5108 echo "configure:5109: checking for 3-argument statfs function (DEC OSF/1)" >&5
5109 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5112 if test "$cross_compiling" = yes; then
5113 fu_cv_sys_stat_statfs3_osf1=no
5115 cat > conftest.$ac_ext <<EOF
5116 #line 5117 "configure"
5117 #include "confdefs.h"
5119 #include <sys/param.h>
5120 #include <sys/types.h>
5121 #include <sys/mount.h>
5126 exit (statfs (".", &fsd, sizeof (struct statfs)));
5129 if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5131 fu_cv_sys_stat_statfs3_osf1=yes
5133 echo "configure: failed program was:" >&5
5134 cat conftest.$ac_ext >&5
5136 fu_cv_sys_stat_statfs3_osf1=no
5143 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
5144 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
5146 cat >> confdefs.h <<\EOF
5147 #define STAT_STATFS3_OSF1 1
5153 if test $space = no; then
5155 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
5156 echo "configure:5157: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
5157 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 if test "$cross_compiling" = yes; then
5161 fu_cv_sys_stat_statfs2_bsize=no
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5167 #ifdef HAVE_SYS_PARAM_H
5168 #include <sys/param.h>
5170 #ifdef HAVE_SYS_MOUNT_H
5171 #include <sys/mount.h>
5173 #ifdef HAVE_SYS_VFS_H
5174 #include <sys/vfs.h>
5180 exit (statfs (".", &fsd));
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5185 fu_cv_sys_stat_statfs2_bsize=yes
5187 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5
5190 fu_cv_sys_stat_statfs2_bsize=no
5197 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
5198 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
5200 cat >> confdefs.h <<\EOF
5201 #define STAT_STATFS2_BSIZE 1
5207 if test $space = no; then
5209 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
5210 echo "configure:5211: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
5211 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5214 if test "$cross_compiling" = yes; then
5215 fu_cv_sys_stat_statfs4=no
5217 cat > conftest.$ac_ext <<EOF
5218 #line 5219 "configure"
5219 #include "confdefs.h"
5220 #include <sys/types.h>
5221 #include <sys/statfs.h>
5225 exit (statfs (".", &fsd, sizeof fsd, 0));
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5230 fu_cv_sys_stat_statfs4=yes
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 fu_cv_sys_stat_statfs4=no
5242 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
5243 if test $fu_cv_sys_stat_statfs4 = yes; then
5245 cat >> confdefs.h <<\EOF
5246 #define STAT_STATFS4 1
5252 if test $space = no; then
5254 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
5255 echo "configure:5256: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
5256 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
5257 echo $ac_n "(cached) $ac_c" 1>&6
5259 if test "$cross_compiling" = yes; then
5260 fu_cv_sys_stat_statfs2_fsize=no
5262 cat > conftest.$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 #include <sys/types.h>
5266 #ifdef HAVE_SYS_PARAM_H
5267 #include <sys/param.h>
5269 #ifdef HAVE_SYS_MOUNT_H
5270 #include <sys/mount.h>
5276 exit (statfs (".", &fsd));
5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5281 fu_cv_sys_stat_statfs2_fsize=yes
5283 echo "configure: failed program was:" >&5
5284 cat conftest.$ac_ext >&5
5286 fu_cv_sys_stat_statfs2_fsize=no
5293 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
5294 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
5296 cat >> confdefs.h <<\EOF
5297 #define STAT_STATFS2_FSIZE 1
5303 if test $space = no; then
5305 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
5306 echo "configure:5307: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
5307 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
5308 echo $ac_n "(cached) $ac_c" 1>&6
5310 if test "$cross_compiling" = yes; then
5311 fu_cv_sys_stat_fs_data=no
5313 cat > conftest.$ac_ext <<EOF
5314 #line 5315 "configure"
5315 #include "confdefs.h"
5316 #include <sys/types.h>
5317 #ifdef HAVE_SYS_PARAM_H
5318 #include <sys/param.h>
5320 #ifdef HAVE_SYS_MOUNT_H
5321 #include <sys/mount.h>
5323 #ifdef HAVE_SYS_FS_TYPES_H
5324 #include <sys/fs_types.h>
5329 /* Ultrix's statfs returns 1 for success,
5330 0 for not mounted, -1 for failure. */
5331 exit (statfs (".", &fsd) != 1);
5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5336 fu_cv_sys_stat_fs_data=yes
5338 echo "configure: failed program was:" >&5
5339 cat conftest.$ac_ext >&5
5341 fu_cv_sys_stat_fs_data=no
5348 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
5349 if test $fu_cv_sys_stat_fs_data = yes; then
5351 cat >> confdefs.h <<\EOF
5352 #define STAT_STATFS2_FS_DATA 1
5358 echo "checking configure summary"
5359 if test "$cross_compiling" = yes; then
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 #include "${srcdir-.}/tests/summary.c"
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
5369 echo "configure OK";
5371 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5
5374 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
5382 cat > confcache <<\EOF
5383 # This file is a shell script that caches the results of configure
5384 # tests run on this system so they can be shared between configure
5385 # scripts and configure runs. It is not useful on other systems.
5386 # If it contains results you don't want to keep, you may remove or edit it.
5388 # By default, configure uses ./config.cache as the cache file,
5389 # creating it if it does not exist already. You can give configure
5390 # the --cache-file=FILE option to use a different cache file; that is
5391 # what configure does when it calls configure scripts in
5392 # subdirectories, so they share the cache.
5393 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5394 # config.status only pays attention to the cache file if you give it the
5395 # --recheck option to rerun configure.
5398 # The following way of writing the cache mishandles newlines in values,
5399 # but we know of no workaround that is simple, portable, and efficient.
5400 # So, don't put newlines in cache variables' values.
5401 # Ultrix sh set writes to stderr and can't be redirected directly,
5402 # and sets the high bit in the cache file unless we assign to the vars.
5404 case `(ac_space=' '; set) 2>&1` in
5406 # `set' does not quote correctly, so add quotes (double-quote substitution
5407 # turns \\\\ into \\, and sed turns \\ into \).
5409 -e "s/'/'\\\\''/g" \
5410 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5413 # `set' quotes correctly as required by POSIX, so do not add quotes.
5414 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5417 if cmp -s $cache_file confcache; then
5420 if test -w $cache_file; then
5421 echo "updating cache $cache_file"
5422 cat confcache > $cache_file
5424 echo "not updating unwritable cache $cache_file"
5429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5431 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5432 # Let make expand exec_prefix.
5433 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5435 # Any assignment to VPATH causes Sun make to only execute
5436 # the first set of double-colon rules, so remove it if not needed.
5437 # If there is a colon in the path, we need to keep it.
5438 if test "x$srcdir" = x.; then
5439 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5442 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5444 DEFS=-DHAVE_CONFIG_H
5446 # Without the "./", some shells look in PATH for config.status.
5447 : ${CONFIG_STATUS=./config.status}
5449 echo creating $CONFIG_STATUS
5450 rm -f $CONFIG_STATUS
5451 cat > $CONFIG_STATUS <<EOF
5453 # Generated automatically by configure.
5454 # Run this file to recreate the current configuration.
5455 # This directory was configured as follows,
5456 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5458 # $0 $ac_configure_args
5460 # Compiler output produced by configure, useful for debugging
5461 # configure, is in ./config.log if it exists.
5463 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5466 case "\$ac_option" in
5467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5468 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5469 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5470 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5471 echo "$CONFIG_STATUS generated by autoconf version 2.12"
5473 -help | --help | --hel | --he | --h)
5474 echo "\$ac_cs_usage"; exit 0 ;;
5475 *) echo "\$ac_cs_usage"; exit 1 ;;
5479 ac_given_srcdir=$srcdir
5480 ac_given_INSTALL="$INSTALL"
5482 trap 'rm -fr `echo "Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
5483 web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
5484 rpc_client/dummy rpc_parse/dummy locking/dummy passdb/dummy
5485 script/dummy include/dummy codepages/dummy libsmb/dummy bin/dummy
5486 utils/dummy printing/dummy include/stamp-h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5488 cat >> $CONFIG_STATUS <<EOF
5490 # Protect against being on the right side of a sed subst in config.status.
5491 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5492 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5495 s%@CFLAGS@%$CFLAGS%g
5496 s%@CPPFLAGS@%$CPPFLAGS%g
5497 s%@CXXFLAGS@%$CXXFLAGS%g
5499 s%@LDFLAGS@%$LDFLAGS%g
5501 s%@exec_prefix@%$exec_prefix%g
5502 s%@prefix@%$prefix%g
5503 s%@program_transform_name@%$program_transform_name%g
5504 s%@bindir@%$bindir%g
5505 s%@sbindir@%$sbindir%g
5506 s%@libexecdir@%$libexecdir%g
5507 s%@datadir@%$datadir%g
5508 s%@sysconfdir@%$sysconfdir%g
5509 s%@sharedstatedir@%$sharedstatedir%g
5510 s%@localstatedir@%$localstatedir%g
5511 s%@libdir@%$libdir%g
5512 s%@includedir@%$includedir%g
5513 s%@oldincludedir@%$oldincludedir%g
5514 s%@infodir@%$infodir%g
5515 s%@mandir@%$mandir%g
5517 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5518 s%@INSTALL_DATA@%$INSTALL_DATA%g
5522 s%@host_alias@%$host_alias%g
5523 s%@host_cpu@%$host_cpu%g
5524 s%@host_vendor@%$host_vendor%g
5525 s%@host_os@%$host_os%g
5526 s%@target@%$target%g
5527 s%@target_alias@%$target_alias%g
5528 s%@target_cpu@%$target_cpu%g
5529 s%@target_vendor@%$target_vendor%g
5530 s%@target_os@%$target_os%g
5532 s%@build_alias@%$build_alias%g
5533 s%@build_cpu@%$build_cpu%g
5534 s%@build_vendor@%$build_vendor%g
5535 s%@build_os@%$build_os%g
5537 s%@LIBOBJS@%$LIBOBJS%g
5542 cat >> $CONFIG_STATUS <<\EOF
5544 # Split the substitutions into bite-sized pieces for seds with
5545 # small command number limits, like on Digital OSF/1 and HP-UX.
5546 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5547 ac_file=1 # Number of current file.
5548 ac_beg=1 # First line for current file.
5549 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5552 while $ac_more_lines; do
5553 if test $ac_beg -gt 1; then
5554 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5556 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5558 if test ! -s conftest.s$ac_file; then
5560 rm -f conftest.s$ac_file
5562 if test -z "$ac_sed_cmds"; then
5563 ac_sed_cmds="sed -f conftest.s$ac_file"
5565 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5567 ac_file=`expr $ac_file + 1`
5569 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5572 if test -z "$ac_sed_cmds"; then
5577 cat >> $CONFIG_STATUS <<EOF
5579 CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
5580 web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
5581 rpc_client/dummy rpc_parse/dummy locking/dummy passdb/dummy
5582 script/dummy include/dummy codepages/dummy libsmb/dummy bin/dummy
5583 utils/dummy printing/dummy include/stamp-h"}
5585 cat >> $CONFIG_STATUS <<\EOF
5586 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5587 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5589 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5590 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5591 *) ac_file_in="${ac_file}.in" ;;
5594 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5596 # Remove last slash and all that follows it. Not all systems have dirname.
5597 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5598 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5599 # The file is in a subdirectory.
5600 test ! -d "$ac_dir" && mkdir "$ac_dir"
5601 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5602 # A "../" for each directory in $ac_dir_suffix.
5603 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5605 ac_dir_suffix= ac_dots=
5608 case "$ac_given_srcdir" in
5610 if test -z "$ac_dots"; then top_srcdir=.
5611 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5612 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5614 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5615 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5618 case "$ac_given_INSTALL" in
5619 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5620 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5623 echo creating "$ac_file"
5625 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5627 *Makefile*) ac_comsub="1i\\
5628 # $configure_input" ;;
5632 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5634 s%@configure_input@%$configure_input%g
5635 s%@srcdir@%$srcdir%g
5636 s%@top_srcdir@%$top_srcdir%g
5637 s%@INSTALL@%$INSTALL%g
5638 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5642 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5643 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5645 # ac_d sets the value in "#define NAME VALUE" lines.
5646 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5647 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5650 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5651 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5652 ac_uB='\([ ]\)%\1#\2define\3'
5655 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5656 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5657 ac_eB='$%\1#\2define\3'
5661 if test "${CONFIG_HEADERS+set}" != set; then
5663 cat >> $CONFIG_STATUS <<EOF
5664 CONFIG_HEADERS="include/config.h"
5666 cat >> $CONFIG_STATUS <<\EOF
5668 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5669 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5671 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5672 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5673 *) ac_file_in="${ac_file}.in" ;;
5676 echo creating $ac_file
5678 rm -f conftest.frag conftest.in conftest.out
5679 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5680 cat $ac_file_inputs > conftest.in
5684 # Transform confdefs.h into a sed script conftest.vals that substitutes
5685 # the proper values into config.h.in to produce config.h. And first:
5686 # Protect against being on the right side of a sed subst in config.status.
5687 # Protect against being in an unquoted here document in config.status.
5689 cat > conftest.hdr <<\EOF
5692 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5696 sed -n -f conftest.hdr confdefs.h > conftest.vals
5699 # This sed command replaces #undef with comments. This is necessary, for
5700 # example, in the case of _POSIX_SOURCE, which is predefined and required
5701 # on some systems where configure will not decide to define it.
5702 cat >> conftest.vals <<\EOF
5703 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5706 # Break up conftest.vals because some shells have a limit on
5707 # the size of here documents, and old seds have small limits too.
5712 ac_lines=`grep -c . conftest.vals`
5713 # grep -c gives empty output for an empty file on some AIX systems.
5714 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5715 # Write a limited-size here document to conftest.frag.
5716 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5717 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5719 sed -f conftest.frag conftest.in > conftest.out
5721 mv conftest.out conftest.in
5723 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5725 mv conftest.tail conftest.vals
5729 cat >> $CONFIG_STATUS <<\EOF
5730 rm -f conftest.frag conftest.h
5731 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5732 cat conftest.in >> conftest.h
5734 if cmp -s $ac_file conftest.h 2>/dev/null; then
5735 echo "$ac_file is unchanged"
5738 # Remove last slash and all that follows it. Not all systems have dirname.
5739 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5740 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5741 # The file is in a subdirectory.
5742 test ! -d "$ac_dir" && mkdir "$ac_dir"
5745 mv conftest.h $ac_file
5750 cat >> $CONFIG_STATUS <<EOF
5753 cat >> $CONFIG_STATUS <<\EOF
5757 chmod +x $CONFIG_STATUS
5758 rm -fr confdefs* $ac_clean_files
5759 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1