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 echo $ac_n "checking for inline""... $ac_c" 1>&6
970 echo "configure:971: checking for inline" >&5
971 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
975 for ac_kw in inline __inline__ __inline; do
976 cat > conftest.$ac_ext <<EOF
977 #line 978 "configure"
978 #include "confdefs.h"
984 if { (eval echo configure:985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
986 ac_cv_c_inline=$ac_kw; break
988 echo "configure: failed program was:" >&5
989 cat conftest.$ac_ext >&5
996 echo "$ac_t""$ac_cv_c_inline" 1>&6
997 case "$ac_cv_c_inline" in
999 no) cat >> confdefs.h <<\EOF
1003 *) cat >> confdefs.h <<EOF
1004 #define inline $ac_cv_c_inline
1009 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1010 echo "configure:1011: checking how to run the C preprocessor" >&5
1011 # On Suns, sometimes $CPP names a directory.
1012 if test -n "$CPP" && test -d "$CPP"; then
1015 if test -z "$CPP"; then
1016 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 # This must be in double quotes, not single quotes, because CPP may get
1020 # substituted into the Makefile and "${CC-cc}" will confuse make.
1022 # On the NeXT, cc -E runs the code through the compiler's parser,
1023 # not just through cpp.
1024 cat > conftest.$ac_ext <<EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1031 { (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 ac_err=`grep -v '^ *+' conftest.out`
1033 if test -z "$ac_err"; then
1037 echo "configure: failed program was:" >&5
1038 cat conftest.$ac_ext >&5
1040 CPP="${CC-cc} -E -traditional-cpp"
1041 cat > conftest.$ac_ext <<EOF
1042 #line 1043 "configure"
1043 #include "confdefs.h"
1047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1048 { (eval echo configure:1049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1049 ac_err=`grep -v '^ *+' conftest.out`
1050 if test -z "$ac_err"; then
1054 echo "configure: failed program was:" >&5
1055 cat conftest.$ac_ext >&5
1062 ac_cv_prog_CPP="$CPP"
1064 CPP="$ac_cv_prog_CPP"
1066 ac_cv_prog_CPP="$CPP"
1068 echo "$ac_t""$CPP" 1>&6
1070 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1071 echo "configure:1072: checking for ANSI C header files" >&5
1072 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1073 echo $ac_n "(cached) $ac_c" 1>&6
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1077 "configure"
1077 #include "confdefs.h"
1083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1084 { (eval echo configure:1085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1085 ac_err=`grep -v '^ *+' conftest.out`
1086 if test -z "$ac_err"; then
1088 ac_cv_header_stdc=yes
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1094 ac_cv_header_stdc=no
1098 if test $ac_cv_header_stdc = yes; then
1099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1106 egrep "memchr" >/dev/null 2>&1; then
1110 ac_cv_header_stdc=no
1116 if test $ac_cv_header_stdc = yes; then
1117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1124 egrep "free" >/dev/null 2>&1; then
1128 ac_cv_header_stdc=no
1134 if test $ac_cv_header_stdc = yes; then
1135 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1136 if test "$cross_compiling" = yes; then
1139 cat > conftest.$ac_ext <<EOF
1140 #line 1141 "configure"
1141 #include "confdefs.h"
1143 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1144 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1145 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1146 int main () { int i; for (i = 0; i < 256; i++)
1147 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1158 ac_cv_header_stdc=no
1166 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1167 if test $ac_cv_header_stdc = yes; then
1168 cat >> confdefs.h <<\EOF
1169 #define STDC_HEADERS 1
1175 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1178 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1179 echo "configure:1180: checking for $ac_hdr that defines DIR" >&5
1180 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1186 #include <sys/types.h>
1192 if { (eval echo configure:1193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1194 eval "ac_cv_header_dirent_$ac_safe=yes"
1196 echo "configure: failed program was:" >&5
1197 cat conftest.$ac_ext >&5
1199 eval "ac_cv_header_dirent_$ac_safe=no"
1203 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1206 cat >> confdefs.h <<EOF
1207 #define $ac_tr_hdr 1
1209 ac_header_dirent=$ac_hdr; break
1211 echo "$ac_t""no" 1>&6
1214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1215 if test $ac_header_dirent = dirent.h; then
1216 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1217 echo "configure:1218: checking for opendir in -ldir" >&5
1218 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1220 echo $ac_n "(cached) $ac_c" 1>&6
1222 ac_save_LIBS="$LIBS"
1224 cat > conftest.$ac_ext <<EOF
1225 #line 1226 "configure"
1226 #include "confdefs.h"
1227 /* Override any gcc2 internal prototype to avoid an error. */
1228 /* We use char because int might match the return type of a gcc2
1229 builtin and then its argument prototype would still apply. */
1236 if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1238 eval "ac_cv_lib_$ac_lib_var=yes"
1240 echo "configure: failed program was:" >&5
1241 cat conftest.$ac_ext >&5
1243 eval "ac_cv_lib_$ac_lib_var=no"
1246 LIBS="$ac_save_LIBS"
1249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1250 echo "$ac_t""yes" 1>&6
1253 echo "$ac_t""no" 1>&6
1257 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1258 echo "configure:1259: checking for opendir in -lx" >&5
1259 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1263 ac_save_LIBS="$LIBS"
1265 cat > conftest.$ac_ext <<EOF
1266 #line 1267 "configure"
1267 #include "confdefs.h"
1268 /* Override any gcc2 internal prototype to avoid an error. */
1269 /* We use char because int might match the return type of a gcc2
1270 builtin and then its argument prototype would still apply. */
1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1279 eval "ac_cv_lib_$ac_lib_var=yes"
1281 echo "configure: failed program was:" >&5
1282 cat conftest.$ac_ext >&5
1284 eval "ac_cv_lib_$ac_lib_var=no"
1287 LIBS="$ac_save_LIBS"
1290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1291 echo "$ac_t""yes" 1>&6
1294 echo "$ac_t""no" 1>&6
1299 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1300 echo "configure:1301: checking whether time.h and sys/time.h may both be included" >&5
1301 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 cat > conftest.$ac_ext <<EOF
1305 #line 1306 "configure"
1306 #include "confdefs.h"
1307 #include <sys/types.h>
1308 #include <sys/time.h>
1314 if { (eval echo configure:1315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1316 ac_cv_header_time=yes
1318 echo "configure: failed program was:" >&5
1319 cat conftest.$ac_ext >&5
1321 ac_cv_header_time=no
1326 echo "$ac_t""$ac_cv_header_time" 1>&6
1327 if test $ac_cv_header_time = yes; then
1328 cat >> confdefs.h <<\EOF
1329 #define TIME_WITH_SYS_TIME 1
1334 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1335 echo "configure:1336: checking for sys/wait.h that is POSIX.1 compatible" >&5
1336 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 cat > conftest.$ac_ext <<EOF
1340 #line 1341 "configure"
1341 #include "confdefs.h"
1342 #include <sys/types.h>
1343 #include <sys/wait.h>
1345 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1348 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1353 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1356 if { (eval echo configure:1357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1358 ac_cv_header_sys_wait_h=yes
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 ac_cv_header_sys_wait_h=no
1368 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1369 if test $ac_cv_header_sys_wait_h = yes; then
1370 cat >> confdefs.h <<\EOF
1371 #define HAVE_SYS_WAIT_H 1
1376 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1378 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1379 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1380 echo "configure:1381: checking for $ac_hdr" >&5
1381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure:1391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err=`grep -v '^ *+' conftest.out`
1392 if test -z "$ac_err"; then
1394 eval "ac_cv_header_$ac_safe=yes"
1397 echo "configure: failed program was:" >&5
1398 cat conftest.$ac_ext >&5
1400 eval "ac_cv_header_$ac_safe=no"
1404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1405 echo "$ac_t""yes" 1>&6
1406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1407 cat >> confdefs.h <<EOF
1408 #define $ac_tr_hdr 1
1412 echo "$ac_t""no" 1>&6
1416 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_hdr" >&5
1421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1430 { (eval echo configure:1431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1431 ac_err=`grep -v '^ *+' conftest.out`
1432 if test -z "$ac_err"; then
1434 eval "ac_cv_header_$ac_safe=yes"
1437 echo "configure: failed program was:" >&5
1438 cat conftest.$ac_ext >&5
1440 eval "ac_cv_header_$ac_safe=no"
1444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1445 echo "$ac_t""yes" 1>&6
1446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1447 cat >> confdefs.h <<EOF
1448 #define $ac_tr_hdr 1
1452 echo "$ac_t""no" 1>&6
1456 for ac_hdr in compat.h rpc/types.h rpc/xdr.h rpc/auth.h rpc/clnt.h
1458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1460 echo "configure:1461: checking for $ac_hdr" >&5
1461 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1470 { (eval echo configure:1471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1471 ac_err=`grep -v '^ *+' conftest.out`
1472 if test -z "$ac_err"; then
1474 eval "ac_cv_header_$ac_safe=yes"
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1480 eval "ac_cv_header_$ac_safe=no"
1484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1487 cat >> confdefs.h <<EOF
1488 #define $ac_tr_hdr 1
1492 echo "$ac_t""no" 1>&6
1496 for ac_hdr in rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1500 echo "configure:1501: checking for $ac_hdr" >&5
1501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1502 echo $ac_n "(cached) $ac_c" 1>&6
1504 cat > conftest.$ac_ext <<EOF
1505 #line 1506 "configure"
1506 #include "confdefs.h"
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out`
1512 if test -z "$ac_err"; then
1514 eval "ac_cv_header_$ac_safe=yes"
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1520 eval "ac_cv_header_$ac_safe=no"
1524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1527 cat >> confdefs.h <<EOF
1528 #define $ac_tr_hdr 1
1532 echo "$ac_t""no" 1>&6
1536 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h
1538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1540 echo "configure:1541: checking for $ac_hdr" >&5
1541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1544 cat > conftest.$ac_ext <<EOF
1545 #line 1546 "configure"
1546 #include "confdefs.h"
1549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1550 { (eval echo configure:1551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1551 ac_err=`grep -v '^ *+' conftest.out`
1552 if test -z "$ac_err"; then
1554 eval "ac_cv_header_$ac_safe=yes"
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1560 eval "ac_cv_header_$ac_safe=no"
1564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1565 echo "$ac_t""yes" 1>&6
1566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1567 cat >> confdefs.h <<EOF
1568 #define $ac_tr_hdr 1
1572 echo "$ac_t""no" 1>&6
1576 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h
1578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1580 echo "configure:1581: checking for $ac_hdr" >&5
1581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err=`grep -v '^ *+' conftest.out`
1592 if test -z "$ac_err"; then
1594 eval "ac_cv_header_$ac_safe=yes"
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1600 eval "ac_cv_header_$ac_safe=no"
1604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1607 cat >> confdefs.h <<EOF
1608 #define $ac_tr_hdr 1
1612 echo "$ac_t""no" 1>&6
1616 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1620 echo "configure:1621: checking for $ac_hdr" >&5
1621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1622 echo $ac_n "(cached) $ac_c" 1>&6
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err=`grep -v '^ *+' conftest.out`
1632 if test -z "$ac_err"; then
1634 eval "ac_cv_header_$ac_safe=yes"
1637 echo "configure: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1640 eval "ac_cv_header_$ac_safe=no"
1644 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1645 echo "$ac_t""yes" 1>&6
1646 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1647 cat >> confdefs.h <<EOF
1648 #define $ac_tr_hdr 1
1652 echo "$ac_t""no" 1>&6
1656 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_hdr" >&5
1661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 cat > conftest.$ac_ext <<EOF
1665 #line 1666 "configure"
1666 #include "confdefs.h"
1669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1670 { (eval echo configure:1671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1671 ac_err=`grep -v '^ *+' conftest.out`
1672 if test -z "$ac_err"; then
1674 eval "ac_cv_header_$ac_safe=yes"
1677 echo "configure: failed program was:" >&5
1678 cat conftest.$ac_ext >&5
1680 eval "ac_cv_header_$ac_safe=no"
1684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1685 echo "$ac_t""yes" 1>&6
1686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1687 cat >> confdefs.h <<EOF
1688 #define $ac_tr_hdr 1
1692 echo "$ac_t""no" 1>&6
1696 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1698 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1699 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1700 echo "configure:1701: checking for $ac_hdr" >&5
1701 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1704 cat > conftest.$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1710 { (eval echo configure:1711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1711 ac_err=`grep -v '^ *+' conftest.out`
1712 if test -z "$ac_err"; then
1714 eval "ac_cv_header_$ac_safe=yes"
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1720 eval "ac_cv_header_$ac_safe=no"
1724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1725 echo "$ac_t""yes" 1>&6
1726 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1727 cat >> confdefs.h <<EOF
1728 #define $ac_tr_hdr 1
1732 echo "$ac_t""no" 1>&6
1736 for ac_hdr in stropts.h poll.h
1738 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1739 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_hdr" >&5
1741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 cat > conftest.$ac_ext <<EOF
1745 #line 1746 "configure"
1746 #include "confdefs.h"
1749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1750 { (eval echo configure:1751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1751 ac_err=`grep -v '^ *+' conftest.out`
1752 if test -z "$ac_err"; then
1754 eval "ac_cv_header_$ac_safe=yes"
1757 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1760 eval "ac_cv_header_$ac_safe=no"
1764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1765 echo "$ac_t""yes" 1>&6
1766 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1767 cat >> confdefs.h <<EOF
1768 #define $ac_tr_hdr 1
1772 echo "$ac_t""no" 1>&6
1777 echo $ac_n "checking size of int""... $ac_c" 1>&6
1778 echo "configure:1779: checking size of int" >&5
1779 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1780 echo $ac_n "(cached) $ac_c" 1>&6
1782 if test "$cross_compiling" = yes; then
1783 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1791 FILE *f=fopen("conftestval", "w");
1793 fprintf(f, "%d\n", sizeof(int));
1797 if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1799 ac_cv_sizeof_int=`cat conftestval`
1801 echo "configure: failed program was:" >&5
1802 cat conftest.$ac_ext >&5
1810 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1811 cat >> confdefs.h <<EOF
1812 #define SIZEOF_INT $ac_cv_sizeof_int
1816 echo $ac_n "checking size of long""... $ac_c" 1>&6
1817 echo "configure:1818: checking size of long" >&5
1818 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 if test "$cross_compiling" = yes; then
1822 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1830 FILE *f=fopen("conftestval", "w");
1832 fprintf(f, "%d\n", sizeof(long));
1836 if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1838 ac_cv_sizeof_long=`cat conftestval`
1840 echo "configure: failed program was:" >&5
1841 cat conftest.$ac_ext >&5
1849 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1850 cat >> confdefs.h <<EOF
1851 #define SIZEOF_LONG $ac_cv_sizeof_long
1855 echo $ac_n "checking size of short""... $ac_c" 1>&6
1856 echo "configure:1857: checking size of short" >&5
1857 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1860 if test "$cross_compiling" = yes; then
1861 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1869 FILE *f=fopen("conftestval", "w");
1871 fprintf(f, "%d\n", sizeof(short));
1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1877 ac_cv_sizeof_short=`cat conftestval`
1879 echo "configure: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1882 ac_cv_sizeof_short=0
1888 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1889 cat >> confdefs.h <<EOF
1890 #define SIZEOF_SHORT $ac_cv_sizeof_short
1895 echo $ac_n "checking for working const""... $ac_c" 1>&6
1896 echo "configure:1897: checking for working const" >&5
1897 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1906 /* Ultrix mips cc rejects this. */
1907 typedef int charset[2]; const charset x;
1908 /* SunOS 4.1.1 cc rejects this. */
1909 char const *const *ccp;
1911 /* NEC SVR4.0.2 mips cc rejects this. */
1912 struct point {int x, y;};
1913 static struct point const zero = {0,0};
1914 /* AIX XL C 1.02.0.0 rejects this.
1915 It does not let you subtract one const X* pointer from another in an arm
1916 of an if-expression whose if-part is not a constant expression */
1917 const char *g = "string";
1918 ccp = &g + (g ? g-g : 0);
1919 /* HPUX 7.0 cc rejects these. */
1922 ccp = (char const *const *) p;
1923 { /* SCO 3.2v4 cc rejects this. */
1925 char const *s = 0 ? (char *) 0 : (char const *) 0;
1929 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1931 const int *foo = &x[0];
1934 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1935 typedef const int *iptr;
1939 { /* AIX XL C 1.02.0.0 rejects this saying
1940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1941 struct s { int j; const int *ap[3]; };
1942 struct s *b; b->j = 5;
1944 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1950 if { (eval echo configure:1951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1962 echo "$ac_t""$ac_cv_c_const" 1>&6
1963 if test $ac_cv_c_const = no; then
1964 cat >> confdefs.h <<\EOF
1970 echo $ac_n "checking for inline""... $ac_c" 1>&6
1971 echo "configure:1972: checking for inline" >&5
1972 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1973 echo $ac_n "(cached) $ac_c" 1>&6
1976 for ac_kw in inline __inline__ __inline; do
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1985 if { (eval echo configure:1986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1987 ac_cv_c_inline=$ac_kw; break
1989 echo "configure: failed program was:" >&5
1990 cat conftest.$ac_ext >&5
1997 echo "$ac_t""$ac_cv_c_inline" 1>&6
1998 case "$ac_cv_c_inline" in
2000 no) cat >> confdefs.h <<\EOF
2004 *) cat >> confdefs.h <<EOF
2005 #define inline $ac_cv_c_inline
2010 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2011 echo "configure:2012: checking whether byte ordering is bigendian" >&5
2012 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2013 echo $ac_n "(cached) $ac_c" 1>&6
2015 ac_cv_c_bigendian=unknown
2016 # See if sys/param.h defines the BYTE_ORDER macro.
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2020 #include <sys/types.h>
2021 #include <sys/param.h>
2024 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2029 if { (eval echo configure:2030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2031 # It does; now see whether it defined to BIG_ENDIAN or not.
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 #include <sys/types.h>
2036 #include <sys/param.h>
2039 #if BYTE_ORDER != BIG_ENDIAN
2044 if { (eval echo configure:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 ac_cv_c_bigendian=yes
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 ac_cv_c_bigendian=no
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2059 if test $ac_cv_c_bigendian = unknown; then
2060 if test "$cross_compiling" = yes; then
2061 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2063 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2067 /* Are we little or big endian? From Harbison&Steele. */
2071 char c[sizeof (long)];
2074 exit (u.c[sizeof (long) - 1] == 1);
2077 if { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2079 ac_cv_c_bigendian=no
2081 echo "configure: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2084 ac_cv_c_bigendian=yes
2092 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2093 if test $ac_cv_c_bigendian = yes; then
2094 cat >> confdefs.h <<\EOF
2095 #define WORDS_BIGENDIAN 1
2100 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2101 echo "configure:2102: checking whether char is unsigned" >&5
2102 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2105 if test "$GCC" = yes; then
2106 # GCC predefines this symbol on systems where it applies.
2107 cat > conftest.$ac_ext <<EOF
2108 #line 2109 "configure"
2109 #include "confdefs.h"
2110 #ifdef __CHAR_UNSIGNED__
2115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2116 egrep "yes" >/dev/null 2>&1; then
2118 ac_cv_c_char_unsigned=yes
2121 ac_cv_c_char_unsigned=no
2126 if test "$cross_compiling" = yes; then
2127 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2129 cat > conftest.$ac_ext <<EOF
2130 #line 2131 "configure"
2131 #include "confdefs.h"
2132 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2133 #if !defined(__STDC__) || __STDC__ != 1
2137 volatile char c = 255; exit(c < 0);
2140 if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2142 ac_cv_c_char_unsigned=yes
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 ac_cv_c_char_unsigned=no
2155 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2156 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2157 cat >> confdefs.h <<\EOF
2158 #define __CHAR_UNSIGNED__ 1
2164 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2165 echo "configure:2166: checking return type of signal handlers" >&5
2166 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 #include <sys/types.h>
2178 extern "C" void (*signal (int, void (*)(int)))(int);
2180 void (*signal ()) ();
2187 if { (eval echo configure:2188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2189 ac_cv_type_signal=void
2191 echo "configure: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2194 ac_cv_type_signal=int
2199 echo "$ac_t""$ac_cv_type_signal" 1>&6
2200 cat >> confdefs.h <<EOF
2201 #define RETSIGTYPE $ac_cv_type_signal
2205 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2206 echo "configure:2207: checking for uid_t in sys/types.h" >&5
2207 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2208 echo $ac_n "(cached) $ac_c" 1>&6
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 #include <sys/types.h>
2215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2216 egrep "uid_t" >/dev/null 2>&1; then
2218 ac_cv_type_uid_t=yes
2227 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2228 if test $ac_cv_type_uid_t = no; then
2229 cat >> confdefs.h <<\EOF
2233 cat >> confdefs.h <<\EOF
2239 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2240 echo "configure:2241: checking for mode_t" >&5
2241 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 #include <sys/types.h>
2253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2254 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2256 ac_cv_type_mode_t=yes
2259 ac_cv_type_mode_t=no
2264 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2265 if test $ac_cv_type_mode_t = no; then
2266 cat >> confdefs.h <<\EOF
2272 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2273 echo "configure:2274: checking for off_t" >&5
2274 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure"
2279 #include "confdefs.h"
2280 #include <sys/types.h>
2286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2287 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2289 ac_cv_type_off_t=yes
2297 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2298 if test $ac_cv_type_off_t = no; then
2299 cat >> confdefs.h <<\EOF
2305 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2306 echo "configure:2307: checking for size_t" >&5
2307 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 #include <sys/types.h>
2319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2320 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2322 ac_cv_type_size_t=yes
2325 ac_cv_type_size_t=no
2330 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2331 if test $ac_cv_type_size_t = no; then
2332 cat >> confdefs.h <<\EOF
2333 #define size_t unsigned
2338 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2339 echo "configure:2340: checking for pid_t" >&5
2340 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6
2343 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure"
2345 #include "confdefs.h"
2346 #include <sys/types.h>
2352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2353 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2355 ac_cv_type_pid_t=yes
2363 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2364 if test $ac_cv_type_pid_t = no; then
2365 cat >> confdefs.h <<\EOF
2371 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2372 echo "configure:2373: checking for st_rdev in struct stat" >&5
2373 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <sys/types.h>
2380 #include <sys/stat.h>
2382 struct stat s; s.st_rdev;
2385 if { (eval echo configure:2386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 ac_cv_struct_st_rdev=yes
2389 echo "configure: failed program was:" >&5
2390 cat conftest.$ac_ext >&5
2392 ac_cv_struct_st_rdev=no
2397 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2398 if test $ac_cv_struct_st_rdev = yes; then
2399 cat >> confdefs.h <<\EOF
2400 #define HAVE_ST_RDEV 1
2405 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
2406 echo "configure:2407: checking for ino_t" >&5
2407 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include <sys/types.h>
2419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2420 egrep "ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2422 ac_cv_type_ino_t=yes
2430 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
2431 if test $ac_cv_type_ino_t = no; then
2432 cat >> confdefs.h <<\EOF
2433 #define ino_t unsigned
2439 echo $ac_n "checking for errno in errno.h... $ac_c"
2440 cat > conftest.$ac_ext <<EOF
2441 #line 2442 "configure"
2442 #include "confdefs.h"
2448 if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2450 echo yes; cat >> confdefs.h <<\EOF
2451 #define HAVE_ERRNO_DECL 1
2455 echo "configure: failed program was:" >&5
2456 cat conftest.$ac_ext >&5
2462 # stupid glibc has the functions but no declaration. grrrr.
2463 echo $ac_n "checking for setresuid declaration $ac_c"
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2472 if { (eval echo configure:2473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 echo yes; cat >> confdefs.h <<\EOF
2475 #define HAVE_SETRESUID_DECL 1
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2486 # and glibc has setresuid under linux but the function does
2487 # nothing until kernel 2.1.44! very dumb.
2488 echo $ac_n "checking for real setresuid $ac_c"
2489 if test "$cross_compiling" = yes; then
2490 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2496 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
2498 if { (eval echo configure:2499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2500 echo yes;cat >> confdefs.h <<\EOF
2501 #define HAVE_SETRESUID 1
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2515 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2516 echo "configure:2517: checking for 8-bit clean memcmp" >&5
2517 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2520 if test "$cross_compiling" = yes; then
2521 ac_cv_func_memcmp_clean=no
2523 cat > conftest.$ac_ext <<EOF
2524 #line 2525 "configure"
2525 #include "confdefs.h"
2529 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2530 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2534 if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2536 ac_cv_func_memcmp_clean=yes
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2541 ac_cv_func_memcmp_clean=no
2548 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2549 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2552 ###############################################
2553 # test for where we get crypt() from
2554 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2555 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2556 echo "configure:2557: checking for crypt in -lcrypt" >&5
2557 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2561 ac_save_LIBS="$LIBS"
2562 LIBS="-lcrypt $LIBS"
2563 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2566 /* Override any gcc2 internal prototype to avoid an error. */
2567 /* We use char because int might match the return type of a gcc2
2568 builtin and then its argument prototype would still apply. */
2575 if { (eval echo configure:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2577 eval "ac_cv_lib_$ac_lib_var=yes"
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2582 eval "ac_cv_lib_$ac_lib_var=no"
2585 LIBS="$ac_save_LIBS"
2588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2589 echo "$ac_t""yes" 1>&6
2590 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2592 cat >> confdefs.h <<EOF
2593 #define $ac_tr_lib 1
2596 LIBS="-lcrypt $LIBS"
2599 echo "$ac_t""no" 1>&6
2602 cat >> confdefs.h <<\EOF
2603 #define HAVE_CRYPT 1
2607 if test "$ac_cv_lib_crypt_crypt" = "no" ||
2608 test "$ac_cv_lib_crypt_crypt" = ""; then
2610 echo $ac_n "checking for crypt""... $ac_c" 1>&6
2611 echo "configure:2612: checking for crypt" >&5
2612 if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
2613 echo $ac_n "(cached) $ac_c" 1>&6
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2618 /* System header to define __stub macros and hopefully few prototypes,
2619 which can conflict with char crypt(); below. */
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 /* We use char because int might match the return type of a gcc2
2623 builtin and then its argument prototype would still apply. */
2628 /* The GNU C library defines this for functions which it implements
2629 to always fail with ENOSYS. Some functions are actually named
2630 something starting with __ and the normal name is an alias. */
2631 #if defined (__stub_crypt) || defined (__stub___crypt)
2639 if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2641 eval "ac_cv_func_crypt=yes"
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2646 eval "ac_cv_func_crypt=no"
2651 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
2652 echo "$ac_t""yes" 1>&6
2653 cat >> confdefs.h <<\EOF
2654 #define HAVE_CRYPT 1
2658 echo "$ac_t""no" 1>&6
2661 *) echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2662 echo "configure:2663: checking for crypt in -lcrypt" >&5
2663 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2667 ac_save_LIBS="$LIBS"
2668 LIBS="-lcrypt $LIBS"
2669 cat > conftest.$ac_ext <<EOF
2670 #line 2671 "configure"
2671 #include "confdefs.h"
2672 /* Override any gcc2 internal prototype to avoid an error. */
2673 /* We use char because int might match the return type of a gcc2
2674 builtin and then its argument prototype would still apply. */
2681 if { (eval echo configure:2682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2683 eval "ac_cv_lib_$ac_lib_var=yes"
2685 echo "configure: failed program was:" >&5
2686 cat conftest.$ac_ext >&5
2688 eval "ac_cv_lib_$ac_lib_var=no"
2691 LIBS="$ac_save_LIBS"
2694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2695 echo "$ac_t""yes" 1>&6
2696 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2698 cat >> confdefs.h <<EOF
2699 #define $ac_tr_lib 1
2702 LIBS="-lcrypt $LIBS"
2705 echo "$ac_t""no" 1>&6
2709 if test "$ac_cv_lib_crypt_crypt" = "yes"; then
2710 ac_cv_func_crypt=yes
2711 cat >> confdefs.h <<\EOF
2712 #define HAVE_CRYPT 1
2721 ###############################################
2722 # test for where we get pam_authenticate() from
2723 # might need libdl for this to work
2724 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
2725 echo $ac_n "checking for -ldl""... $ac_c" 1>&6
2726 echo "configure:2727: checking for -ldl" >&5
2727 if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 ac_save_LIBS="$LIBS"
2732 cat > conftest.$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2750 LIBS="$ac_save_LIBS"
2753 echo "$ac_t""$ac_cv_lib_dl" 1>&6
2754 if test "$ac_cv_lib_dl" = yes; then
2755 cat >> confdefs.h <<\EOF
2756 #define HAVE_LIBDL 1
2764 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2765 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2766 echo "configure:2767: checking for pam_authenticate in -lpam" >&5
2767 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2771 ac_save_LIBS="$LIBS"
2773 cat > conftest.$ac_ext <<EOF
2774 #line 2775 "configure"
2775 #include "confdefs.h"
2776 /* Override any gcc2 internal prototype to avoid an error. */
2777 /* We use char because int might match the return type of a gcc2
2778 builtin and then its argument prototype would still apply. */
2779 char pam_authenticate();
2785 if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2787 eval "ac_cv_lib_$ac_lib_var=yes"
2789 echo "configure: failed program was:" >&5
2790 cat conftest.$ac_ext >&5
2792 eval "ac_cv_lib_$ac_lib_var=no"
2795 LIBS="$ac_save_LIBS"
2798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2801 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2802 cat >> confdefs.h <<EOF
2803 #define $ac_tr_lib 1
2809 echo "$ac_t""no" 1>&6
2812 cat >> confdefs.h <<\EOF
2813 #define HAVE_PAM_AUTHENTICATE 1
2817 if test "$ac_cv_lib_pam_pam_authenticate" = "no" ||
2818 test "$ac_cv_lib_pam_pam_authenticate" = ""; then
2819 # look for pam_authenticate
2820 echo $ac_n "checking for pam_authenticate""... $ac_c" 1>&6
2821 echo "configure:2822: checking for pam_authenticate" >&5
2822 if eval "test \"`echo '$''{'ac_cv_func_pam_authenticate'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2828 /* System header to define __stub macros and hopefully few prototypes,
2829 which can conflict with char pam_authenticate(); below. */
2831 /* Override any gcc2 internal prototype to avoid an error. */
2832 /* We use char because int might match the return type of a gcc2
2833 builtin and then its argument prototype would still apply. */
2834 char pam_authenticate();
2838 /* The GNU C library defines this for functions which it implements
2839 to always fail with ENOSYS. Some functions are actually named
2840 something starting with __ and the normal name is an alias. */
2841 #if defined (__stub_pam_authenticate) || defined (__stub___pam_authenticate)
2849 if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2851 eval "ac_cv_func_pam_authenticate=yes"
2853 echo "configure: failed program was:" >&5
2854 cat conftest.$ac_ext >&5
2856 eval "ac_cv_func_pam_authenticate=no"
2861 if eval "test \"`echo '$ac_cv_func_'pam_authenticate`\" = yes"; then
2862 echo "$ac_t""yes" 1>&6
2863 cat >> confdefs.h <<\EOF
2864 #define HAVE_PAM_AUTHENTICATE 1
2868 echo "$ac_t""no" 1>&6
2871 *) echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
2872 echo "configure:2873: checking for pam_authenticate in -lpam" >&5
2873 ac_lib_var=`echo pam'_'pam_authenticate | sed 'y%./+-%__p_%'`
2874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2875 echo $ac_n "(cached) $ac_c" 1>&6
2877 ac_save_LIBS="$LIBS"
2879 cat > conftest.$ac_ext <<EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2885 char pam_authenticate();
2891 if { (eval echo configure:2892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2893 eval "ac_cv_lib_$ac_lib_var=yes"
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 eval "ac_cv_lib_$ac_lib_var=no"
2901 LIBS="$ac_save_LIBS"
2904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2905 echo "$ac_t""yes" 1>&6
2906 ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2907 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2908 cat >> confdefs.h <<EOF
2909 #define $ac_tr_lib 1
2915 echo "$ac_t""no" 1>&6
2919 if test "$ac_cv_lib_pam_pam_authenticate" = "yes"; then
2920 ac_cv_func_pam_authenticate=yes
2921 cat >> confdefs.h <<\EOF
2922 #define HAVE_PAM_AUTHENTICATE 1
2930 # The following test taken from the cvs sources
2931 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
2932 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
2933 # libsocket.so which has a bad implementation of gethostbyname (it
2934 # only looks in /etc/hosts), so we only look for -lsocket if we need
2936 echo $ac_n "checking for connect""... $ac_c" 1>&6
2937 echo "configure:2938: checking for connect" >&5
2938 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2939 echo $ac_n "(cached) $ac_c" 1>&6
2941 cat > conftest.$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2944 /* System header to define __stub macros and hopefully few prototypes,
2945 which can conflict with char connect(); below. */
2947 /* Override any gcc2 internal prototype to avoid an error. */
2948 /* We use char because int might match the return type of a gcc2
2949 builtin and then its argument prototype would still apply. */
2954 /* The GNU C library defines this for functions which it implements
2955 to always fail with ENOSYS. Some functions are actually named
2956 something starting with __ and the normal name is an alias. */
2957 #if defined (__stub_connect) || defined (__stub___connect)
2965 if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2967 eval "ac_cv_func_connect=yes"
2969 echo "configure: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2972 eval "ac_cv_func_connect=no"
2977 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2978 echo "$ac_t""yes" 1>&6
2981 echo "$ac_t""no" 1>&6
2984 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
2985 echo "configure:2986: checking for printf in -lnsl_s" >&5
2986 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
2987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2988 echo $ac_n "(cached) $ac_c" 1>&6
2990 ac_save_LIBS="$LIBS"
2991 LIBS="-lnsl_s $LIBS"
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 /* Override any gcc2 internal prototype to avoid an error. */
2996 /* We use char because int might match the return type of a gcc2
2997 builtin and then its argument prototype would still apply. */
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3006 eval "ac_cv_lib_$ac_lib_var=yes"
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3011 eval "ac_cv_lib_$ac_lib_var=no"
3014 LIBS="$ac_save_LIBS"
3017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3018 echo "$ac_t""yes" 1>&6
3019 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3021 cat >> confdefs.h <<EOF
3022 #define $ac_tr_lib 1
3025 LIBS="-lnsl_s $LIBS"
3028 echo "$ac_t""no" 1>&6
3034 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
3035 echo "configure:3036: checking for printf in -lnsl" >&5
3036 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
3037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 ac_save_LIBS="$LIBS"
3042 cat > conftest.$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 /* Override any gcc2 internal prototype to avoid an error. */
3046 /* We use char because int might match the return type of a gcc2
3047 builtin and then its argument prototype would still apply. */
3054 if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3056 eval "ac_cv_lib_$ac_lib_var=yes"
3058 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3061 eval "ac_cv_lib_$ac_lib_var=no"
3064 LIBS="$ac_save_LIBS"
3067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3068 echo "$ac_t""yes" 1>&6
3069 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3071 cat >> confdefs.h <<EOF
3072 #define $ac_tr_lib 1
3078 echo "$ac_t""no" 1>&6
3084 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3085 echo "configure:3086: checking for connect in -lsocket" >&5
3086 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 ac_save_LIBS="$LIBS"
3091 LIBS="-lsocket $LIBS"
3092 cat > conftest.$ac_ext <<EOF
3093 #line 3094 "configure"
3094 #include "confdefs.h"
3095 /* Override any gcc2 internal prototype to avoid an error. */
3096 /* We use char because int might match the return type of a gcc2
3097 builtin and then its argument prototype would still apply. */
3104 if { (eval echo configure:3105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3106 eval "ac_cv_lib_$ac_lib_var=yes"
3108 echo "configure: failed program was:" >&5
3109 cat conftest.$ac_ext >&5
3111 eval "ac_cv_lib_$ac_lib_var=no"
3114 LIBS="$ac_save_LIBS"
3117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3119 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3120 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3121 cat >> confdefs.h <<EOF
3122 #define $ac_tr_lib 1
3125 LIBS="-lsocket $LIBS"
3128 echo "$ac_t""no" 1>&6
3134 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
3135 echo "configure:3136: checking for connect in -linet" >&5
3136 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3138 echo $ac_n "(cached) $ac_c" 1>&6
3140 ac_save_LIBS="$LIBS"
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3145 /* Override any gcc2 internal prototype to avoid an error. */
3146 /* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3154 if { (eval echo configure:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3156 eval "ac_cv_lib_$ac_lib_var=yes"
3158 echo "configure: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3161 eval "ac_cv_lib_$ac_lib_var=no"
3164 LIBS="$ac_save_LIBS"
3167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3168 echo "$ac_t""yes" 1>&6
3169 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3171 cat >> confdefs.h <<EOF
3172 #define $ac_tr_lib 1
3178 echo "$ac_t""no" 1>&6
3182 if test "$ac_cv_lib_socket_connect" = "yes" ||
3183 test "$ac_cv_lib_inet_connect" = "yes"; then
3184 ac_cv_func_connect=yes
3185 cat >> confdefs.h <<\EOF
3186 #define HAVE_CONNECT 1
3194 for ac_func in waitpid getcwd strdup strerror chown chmod chroot
3196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3197 echo "configure:3198: checking for $ac_func" >&5
3198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 /* System header to define __stub macros and hopefully few prototypes,
3205 which can conflict with char $ac_func(); below. */
3207 /* Override any gcc2 internal prototype to avoid an error. */
3208 /* We use char because int might match the return type of a gcc2
3209 builtin and then its argument prototype would still apply. */
3214 /* The GNU C library defines this for functions which it implements
3215 to always fail with ENOSYS. Some functions are actually named
3216 something starting with __ and the normal name is an alias. */
3217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3225 if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3227 eval "ac_cv_func_$ac_func=yes"
3229 echo "configure: failed program was:" >&5
3230 cat conftest.$ac_ext >&5
3232 eval "ac_cv_func_$ac_func=no"
3237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3238 echo "$ac_t""yes" 1>&6
3239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3240 cat >> confdefs.h <<EOF
3241 #define $ac_tr_func 1
3245 echo "$ac_t""no" 1>&6
3249 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
3251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_func" >&5
3253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char $ac_func(); below. */
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3282 eval "ac_cv_func_$ac_func=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_func_$ac_func=no"
3292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3295 cat >> confdefs.h <<EOF
3296 #define $ac_tr_func 1
3300 echo "$ac_t""no" 1>&6
3304 for ac_func in memmove vsnprintf setsid glob strpbrk pipe crypt16 getauthuid
3306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_func" >&5
3308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* System header to define __stub macros and hopefully few prototypes,
3315 which can conflict with char $ac_func(); below. */
3317 /* Override any gcc2 internal prototype to avoid an error. */
3318 /* We use char because int might match the return type of a gcc2
3319 builtin and then its argument prototype would still apply. */
3324 /* The GNU C library defines this for functions which it implements
3325 to always fail with ENOSYS. Some functions are actually named
3326 something starting with __ and the normal name is an alias. */
3327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3335 if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3337 eval "ac_cv_func_$ac_func=yes"
3339 echo "configure: failed program was:" >&5
3340 cat conftest.$ac_ext >&5
3342 eval "ac_cv_func_$ac_func=no"
3347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3348 echo "$ac_t""yes" 1>&6
3349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3350 cat >> confdefs.h <<EOF
3351 #define $ac_tr_func 1
3355 echo "$ac_t""no" 1>&6
3359 for ac_func in strftime sigprocmask sigblock sigaction innetgr
3361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3362 echo "configure:3363: checking for $ac_func" >&5
3363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 cat > conftest.$ac_ext <<EOF
3367 #line 3368 "configure"
3368 #include "confdefs.h"
3369 /* System header to define __stub macros and hopefully few prototypes,
3370 which can conflict with char $ac_func(); below. */
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3379 /* The GNU C library defines this for functions which it implements
3380 to always fail with ENOSYS. Some functions are actually named
3381 something starting with __ and the normal name is an alias. */
3382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3390 if { (eval echo configure:3391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3392 eval "ac_cv_func_$ac_func=yes"
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3397 eval "ac_cv_func_$ac_func=no"
3402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3403 echo "$ac_t""yes" 1>&6
3404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3405 cat >> confdefs.h <<EOF
3406 #define $ac_tr_func 1
3410 echo "$ac_t""no" 1>&6
3414 for ac_func in initgroups select rdchk getgrnam pathconf putprpwnam
3416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_func" >&5
3418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3424 /* System header to define __stub macros and hopefully few prototypes,
3425 which can conflict with char $ac_func(); below. */
3427 /* Override any gcc2 internal prototype to avoid an error. */
3428 /* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3434 /* The GNU C library defines this for functions which it implements
3435 to always fail with ENOSYS. Some functions are actually named
3436 something starting with __ and the normal name is an alias. */
3437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3447 eval "ac_cv_func_$ac_func=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3452 eval "ac_cv_func_$ac_func=no"
3457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3460 cat >> confdefs.h <<EOF
3461 #define $ac_tr_func 1
3465 echo "$ac_t""no" 1>&6
3469 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64
3471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3472 echo "configure:3473: checking for $ac_func" >&5
3473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3474 echo $ac_n "(cached) $ac_c" 1>&6
3476 cat > conftest.$ac_ext <<EOF
3477 #line 3478 "configure"
3478 #include "confdefs.h"
3479 /* System header to define __stub macros and hopefully few prototypes,
3480 which can conflict with char $ac_func(); below. */
3482 /* Override any gcc2 internal prototype to avoid an error. */
3483 /* We use char because int might match the return type of a gcc2
3484 builtin and then its argument prototype would still apply. */
3489 /* The GNU C library defines this for functions which it implements
3490 to always fail with ENOSYS. Some functions are actually named
3491 something starting with __ and the normal name is an alias. */
3492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3502 eval "ac_cv_func_$ac_func=yes"
3504 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5
3507 eval "ac_cv_func_$ac_func=no"
3512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3515 cat >> confdefs.h <<EOF
3516 #define $ac_tr_func 1
3520 echo "$ac_t""no" 1>&6
3524 for ac_func in set_auth_parameters atexit grantpt getspnam dup2 lseek64 ftruncate64
3526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3527 echo "configure:3528: checking for $ac_func" >&5
3528 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* System header to define __stub macros and hopefully few prototypes,
3535 which can conflict with char $ac_func(); below. */
3537 /* Override any gcc2 internal prototype to avoid an error. */
3538 /* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3544 /* The GNU C library defines this for functions which it implements
3545 to always fail with ENOSYS. Some functions are actually named
3546 something starting with __ and the normal name is an alias. */
3547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3555 if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3557 eval "ac_cv_func_$ac_func=yes"
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3562 eval "ac_cv_func_$ac_func=no"
3567 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3570 cat >> confdefs.h <<EOF
3571 #define $ac_tr_func 1
3575 echo "$ac_t""no" 1>&6
3579 for ac_func in bigcrypt getprpwnam setluid yp_get_default_domain getpwanam
3581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3582 echo "configure:3583: checking for $ac_func" >&5
3583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 /* System header to define __stub macros and hopefully few prototypes,
3590 which can conflict with char $ac_func(); below. */
3592 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3599 /* The GNU C library defines this for functions which it implements
3600 to always fail with ENOSYS. Some functions are actually named
3601 something starting with __ and the normal name is an alias. */
3602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3610 if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3612 eval "ac_cv_func_$ac_func=yes"
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 eval "ac_cv_func_$ac_func=no"
3622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3623 echo "$ac_t""yes" 1>&6
3624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3625 cat >> confdefs.h <<EOF
3626 #define $ac_tr_func 1
3630 echo "$ac_t""no" 1>&6
3635 echo $ac_n "checking for long long ... $ac_c"
3636 if test "$cross_compiling" = yes; then
3637 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3643 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3647 echo yes;cat >> confdefs.h <<\EOF
3648 #define HAVE_LONGLONG 1
3652 echo "configure: failed program was:" >&5
3653 cat conftest.$ac_ext >&5
3661 echo $ac_n "checking for 64 bit off_t ... $ac_c"
3662 if test "$cross_compiling" = yes; then
3663 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3669 #include <sys/stat.h>
3670 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
3672 if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3674 echo yes;cat >> confdefs.h <<\EOF
3675 #define SIZEOF_OFF_T 8
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3688 echo $ac_n "checking for off64_t ... $ac_c"
3689 if test "$cross_compiling" = yes; then
3690 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3696 #include <sys/stat.h>
3697 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3701 echo yes;cat >> confdefs.h <<\EOF
3702 #define HAVE_OFF64_T 1
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3715 echo $ac_n "checking for 64 bit ino_t ... $ac_c"
3716 if test "$cross_compiling" = yes; then
3717 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3723 #include <sys/stat.h>
3724 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
3726 if { (eval echo configure:3727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3728 echo yes;cat >> confdefs.h <<\EOF
3729 #define SIZEOF_INO_T 8
3733 echo "configure: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3742 echo $ac_n "checking for ino64_t ... $ac_c"
3743 if test "$cross_compiling" = yes; then
3744 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3746 cat > conftest.$ac_ext <<EOF
3747 #line 3748 "configure"
3748 #include "confdefs.h"
3750 #include <sys/stat.h>
3751 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
3753 if { (eval echo configure:3754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3755 echo yes;cat >> confdefs.h <<\EOF
3756 #define HAVE_INO64_T 1
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3769 echo $ac_n "checking for union semun ... $ac_c"
3770 if test "$cross_compiling" = yes; then
3771 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3777 #include <sys/types.h>
3778 #include <sys/ipc.h>
3779 #include <sys/sem.h>
3780 main() { union semun ss; exit(0); }
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3784 echo yes;cat >> confdefs.h <<\EOF
3785 #define HAVE_UNION_SEMUN 1
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3798 echo $ac_n "checking for unsigned char ... $ac_c"
3799 if test "$cross_compiling" = yes; then
3800 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3806 main() { char c; c=250; exit((c > 0)?0:1); }
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3810 echo yes;cat >> confdefs.h <<\EOF
3811 #define HAVE_UNSIGNED_CHAR 1
3815 echo "configure: failed program was:" >&5
3816 cat conftest.$ac_ext >&5
3824 echo $ac_n "checking for sin_len in sock ... $ac_c"
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <sys/types.h>
3829 #include <sys/socket.h>
3830 #include <netinet/in.h>
3832 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
3835 if { (eval echo configure:3836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3837 echo yes;cat >> confdefs.h <<\EOF
3838 #define HAVE_SOCK_SIN_LEN 1
3842 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3849 echo $ac_n "checking for __FILE__ macro ... $ac_c"
3850 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure"
3852 #include "confdefs.h"
3855 printf("%s\n", __FILE__);
3858 if { (eval echo configure:3859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3860 echo yes;cat >> confdefs.h <<\EOF
3861 #define HAVE_FILE_MACRO 1
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3872 echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3878 printf("%s\n", __FUNCTION__);
3881 if { (eval echo configure:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3883 echo yes;cat >> confdefs.h <<\EOF
3884 #define HAVE_FUNCTION_MACRO 1
3888 echo "configure: failed program was:" >&5
3889 cat conftest.$ac_ext >&5
3895 echo $ac_n "checking if gettimeofday takes tz argument ... $ac_c"
3896 if test "$cross_compiling" = yes; then
3897 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3903 #include <sys/time.h>
3905 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
3907 if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3909 echo yes;cat >> confdefs.h <<\EOF
3910 #define HAVE_GETTIMEOFDAY_TZ 1
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3924 echo $ac_n "checking for broken readdir ... $ac_c"
3925 if test "$cross_compiling" = yes; then
3926 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 #include <sys/types.h>
3933 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
3934 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
3935 di->d_name[0] == 0) exit(0); exit(1);}
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3939 echo yes - you are using the broken /usr/ucb/cc;cat >> confdefs.h <<\EOF
3940 #define HAVE_BROKEN_READDIR 1
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3953 echo $ac_n "checking for utimbuf ... $ac_c"
3954 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure"
3956 #include "confdefs.h"
3957 #include <sys/types.h>
3960 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
3963 if { (eval echo configure:3964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3965 echo yes;cat >> confdefs.h <<\EOF
3966 #define HAVE_UTIMBUF 1
3970 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5
3977 echo $ac_n "checking for ftruncate extend ... $ac_c"
3978 if test "$cross_compiling" = yes; then
3979 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 #include "tests/ftruncate.c"
3986 if { (eval echo configure:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3988 echo yes;cat >> confdefs.h <<\EOF
3989 #define HAVE_FTRUNCATE_EXTEND 1
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
4002 echo $ac_n "checking for broken getgroups ... $ac_c"
4003 if test "$cross_compiling" = yes; then
4004 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 #include "tests/getgroups.c"
4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4013 echo yes;cat >> confdefs.h <<\EOF
4014 #define HAVE_BROKEN_GETGROUPS 1
4018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4028 echo $ac_n "checking for broken inet_ntoa ... $ac_c"
4029 if test "$cross_compiling" = yes; then
4030 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4037 #include <sys/types.h>
4038 #include <netinet/in.h>
4039 #include <arpa/inet.h>
4040 main() { struct in_addr ip; ip.s_addr = 0x12345678;
4041 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
4042 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4047 echo yes;cat >> confdefs.h <<\EOF
4048 #define REPLACE_INET_NTOA 1
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4061 echo $ac_n "checking for root ... $ac_c"
4062 if test "$cross_compiling" = yes; then
4063 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 main() { exit(getuid() != 0); }
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4072 echo yes;cat >> confdefs.h <<\EOF
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 echo WARNING: running as non-root will disable some tests;
4087 echo $ac_n "checking for netmask ifconf ... $ac_c"
4088 if test "$cross_compiling" = yes; then
4089 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4095 #define HAVE_NETMASK_IFCONF 1
4097 #include "lib/netmask.c"
4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4101 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
4102 #define HAVE_NETMASK_IFCONF 1
4106 echo "configure: failed program was:" >&5
4107 cat conftest.$ac_ext >&5
4115 if test $netmask = no; then
4116 echo $ac_n "checking for netmask ifreq ... $ac_c"
4117 if test "$cross_compiling" = yes; then
4118 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4124 #define HAVE_NETMASK_IFREQ 1
4126 #include "lib/netmask.c"
4128 if { (eval echo configure:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4130 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
4131 #define HAVE_NETMASK_IFREQ 1
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4145 if test $netmask = no; then
4146 echo $ac_n "checking for netmask AIX ... $ac_c"
4147 if test "$cross_compiling" = yes; then
4148 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4150 cat > conftest.$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4154 #define HAVE_NETMASK_AIX 1
4156 #include "lib/netmask.c"
4158 if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4160 echo yes;netmask=yes;cat >> confdefs.h <<\EOF
4161 #define HAVE_NETMASK_AIX 1
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4175 echo $ac_n "checking for trapdoor seteuid ... $ac_c"
4176 if test "$cross_compiling" = yes; then
4177 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 #include "tests/trapdoor.c"
4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4191 echo yes;cat >> confdefs.h <<\EOF
4192 #define HAVE_TRAPDOOR_UID 1
4200 echo $ac_n "checking for shared mmap ... $ac_c"
4201 if test "$cross_compiling" = yes; then
4202 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4204 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure"
4206 #include "confdefs.h"
4207 #include "tests/shared_mmap.c"
4209 if { (eval echo configure:4210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4211 echo yes;cat >> confdefs.h <<\EOF
4212 #define HAVE_SHARED_MMAP 1
4216 echo "configure: failed program was:" >&5
4217 cat conftest.$ac_ext >&5
4225 echo $ac_n "checking for fcntl locking ... $ac_c"
4226 if test "$cross_compiling" = yes; then
4227 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4229 cat > conftest.$ac_ext <<EOF
4230 #line 4231 "configure"
4231 #include "confdefs.h"
4232 #include "tests/fcntl_lock.c"
4234 if { (eval echo configure:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4236 echo yes;cat >> confdefs.h <<\EOF
4237 #define HAVE_FCNTL_LOCK 1
4241 echo "configure: failed program was:" >&5
4242 cat conftest.$ac_ext >&5
4250 echo $ac_n "checking for 64 bit fcntl locking ... $ac_c"
4251 if test "$cross_compiling" = yes; then
4252 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4265 #ifdef HAVE_SYS_FCNTL_H
4266 #include <sys/fcntl.h>
4268 main() { struct flock64 fl64;
4269 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4278 echo yes;cat >> confdefs.h <<\EOF
4279 #define HAVE_STRUCT_FLOCK64 1
4283 echo "configure: failed program was:" >&5
4284 cat conftest.$ac_ext >&5
4292 echo $ac_n "checking for sysv ipc ... $ac_c"
4293 if test "$cross_compiling" = yes; then
4294 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4296 cat > conftest.$ac_ext <<EOF
4297 #line 4298 "configure"
4298 #include "confdefs.h"
4299 #include "tests/sysv_ipc.c"
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4303 echo yes;cat >> confdefs.h <<\EOF
4304 #define HAVE_SYSV_IPC 1
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4317 #################################################
4318 # check for the AFS filesystem
4319 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
4320 echo "configure:4321: checking whether to use AFS" >&5
4321 # Check whether --with-afs or --without-afs was given.
4322 if test "${with_afs+set}" = set; then
4326 echo "$ac_t""yes" 1>&6
4327 cat >> confdefs.h <<\EOF
4333 echo "$ac_t""no" 1>&6
4337 echo "$ac_t""no" 1>&6
4343 #################################################
4344 # check for the DFS auth system
4345 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
4346 echo "configure:4347: checking whether to use DFS auth" >&5
4347 # Check whether --with-dfs or --without-dfs was given.
4348 if test "${with_dfs+set}" = set; then
4352 echo "$ac_t""yes" 1>&6
4353 cat >> confdefs.h <<\EOF
4359 echo "$ac_t""no" 1>&6
4363 echo "$ac_t""no" 1>&6
4368 #################################################
4369 # check for automount support
4370 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
4371 echo "configure:4372: checking whether to use AUTOMOUNT" >&5
4372 # Check whether --with-automount or --without-automount was given.
4373 if test "${with_automount+set}" = set; then
4374 withval="$with_automount"
4377 echo "$ac_t""yes" 1>&6
4378 cat >> confdefs.h <<\EOF
4379 #define WITH_AUTOMOUNT 1
4384 echo "$ac_t""no" 1>&6
4388 echo "$ac_t""no" 1>&6
4393 #################################################
4394 # check for a LDAP password database
4395 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
4396 echo "configure:4397: checking whether to use LDAP password database" >&5
4397 # Check whether --with-ldap or --without-ldap was given.
4398 if test "${with_ldap+set}" = set; then
4399 withval="$with_ldap"
4402 echo "$ac_t""yes" 1>&6
4403 cat >> confdefs.h <<\EOF
4409 echo "$ac_t""no" 1>&6
4413 echo "$ac_t""no" 1>&6
4418 #################################################
4419 # check for a NISPLUS password database
4420 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
4421 echo "configure:4422: checking whether to use NISPLUS password database" >&5
4422 # Check whether --with-nisplus or --without-nisplus was given.
4423 if test "${with_nisplus+set}" = set; then
4424 withval="$with_nisplus"
4427 echo "$ac_t""yes" 1>&6
4428 cat >> confdefs.h <<\EOF
4429 #define WITH_NISPLUS 1
4434 echo "$ac_t""no" 1>&6
4438 echo "$ac_t""no" 1>&6
4443 #################################################
4444 # check for a NISPLUS_HOME support
4445 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
4446 echo "configure:4447: checking whether to use NISPLUS_HOME" >&5
4447 # Check whether --with-nisplus-home or --without-nisplus-home was given.
4448 if test "${with_nisplus_home+set}" = set; then
4449 withval="$with_nisplus_home"
4452 echo "$ac_t""yes" 1>&6
4453 cat >> confdefs.h <<\EOF
4454 #define WITH_NISPLUS_HOME 1
4459 echo "$ac_t""no" 1>&6
4463 echo "$ac_t""no" 1>&6
4468 #################################################
4469 # check for the secure socket layer
4470 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
4471 echo "configure:4472: checking whether to use SSL" >&5
4472 # Check whether --with-ssl or --without-ssl was given.
4473 if test "${with_ssl+set}" = set; then
4477 echo "$ac_t""yes" 1>&6
4478 cat >> confdefs.h <<\EOF
4484 echo "$ac_t""no" 1>&6
4488 echo "$ac_t""no" 1>&6
4493 #################################################
4494 # check for experimental mmap support
4495 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
4496 echo "configure:4497: checking whether to use MMAP" >&5
4497 # Check whether --with-mmap or --without-mmap was given.
4498 if test "${with_mmap+set}" = set; then
4499 withval="$with_mmap"
4502 echo "$ac_t""yes" 1>&6
4503 cat >> confdefs.h <<\EOF
4509 echo "$ac_t""no" 1>&6
4513 echo "$ac_t""no" 1>&6
4518 #################################################
4519 # check for syslog logging
4520 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
4521 echo "configure:4522: checking whether to use syslog logging" >&5
4522 # Check whether --with-syslog or --without-syslog was given.
4523 if test "${with_syslog+set}" = set; then
4524 withval="$with_syslog"
4527 echo "$ac_t""yes" 1>&6
4528 cat >> confdefs.h <<\EOF
4529 #define WITH_SYSLOG 1
4534 echo "$ac_t""no" 1>&6
4538 echo "$ac_t""no" 1>&6
4543 #################################################
4544 # check for experimental netatalk resource fork support
4545 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
4546 echo "configure:4547: checking whether to support netatalk" >&5
4547 # Check whether --with-netatalk or --without-netatalk was given.
4548 if test "${with_netatalk+set}" = set; then
4549 withval="$with_netatalk"
4552 echo "$ac_t""yes" 1>&6
4553 cat >> confdefs.h <<\EOF
4554 #define WITH_NETATALK 1
4559 echo "$ac_t""no" 1>&6
4563 echo "$ac_t""no" 1>&6
4569 #################################################
4570 # these tests are taken from the GNU fileutils package
4571 echo "checking how to get filesystem space usage" 1>&6
4572 echo "configure:4573: checking how to get filesystem space usage" >&5
4575 # Perform only the link test since it seems there are no variants of the
4576 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
4577 # because that got a false positive on SCO OSR5. Adding the declaration
4578 # of a `struct statvfs' causes this test to fail (as it should) on such
4579 # systems. That system is reported to work fine with STAT_STATFS4 which
4580 # is what it gets when this test fails.
4581 if test $space = no; then
4583 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
4584 echo "configure:4585: checking statvfs function (SVR4)" >&5
4585 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 #include <sys/types.h>
4592 #include <sys/statvfs.h>
4594 struct statvfs fsd; statvfs (0, &fsd);
4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4599 fu_cv_sys_stat_statvfs=yes
4601 echo "configure: failed program was:" >&5
4602 cat conftest.$ac_ext >&5
4604 fu_cv_sys_stat_statvfs=no
4609 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
4610 if test $fu_cv_sys_stat_statvfs = yes; then
4612 cat >> confdefs.h <<\EOF
4613 #define STAT_STATVFS 1
4619 if test $space = no; then
4620 # DEC Alpha running OSF/1
4621 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
4622 echo "configure:4623: checking for 3-argument statfs function (DEC OSF/1)" >&5
4623 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 if test "$cross_compiling" = yes; then
4627 fu_cv_sys_stat_statfs3_osf1=no
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4633 #include <sys/param.h>
4634 #include <sys/types.h>
4635 #include <sys/mount.h>
4640 exit (statfs (".", &fsd, sizeof (struct statfs)));
4643 if { (eval echo configure:4644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4645 fu_cv_sys_stat_statfs3_osf1=yes
4647 echo "configure: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 fu_cv_sys_stat_statfs3_osf1=no
4657 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
4658 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
4660 cat >> confdefs.h <<\EOF
4661 #define STAT_STATFS3_OSF1 1
4667 if test $space = no; then
4669 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
4670 echo "configure:4671: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
4671 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 if test "$cross_compiling" = yes; then
4675 fu_cv_sys_stat_statfs2_bsize=no
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4681 #ifdef HAVE_SYS_PARAM_H
4682 #include <sys/param.h>
4684 #ifdef HAVE_SYS_MOUNT_H
4685 #include <sys/mount.h>
4687 #ifdef HAVE_SYS_VFS_H
4688 #include <sys/vfs.h>
4694 exit (statfs (".", &fsd));
4697 if { (eval echo configure:4698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4699 fu_cv_sys_stat_statfs2_bsize=yes
4701 echo "configure: failed program was:" >&5
4702 cat conftest.$ac_ext >&5
4704 fu_cv_sys_stat_statfs2_bsize=no
4711 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
4712 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
4714 cat >> confdefs.h <<\EOF
4715 #define STAT_STATFS2_BSIZE 1
4721 if test $space = no; then
4723 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
4724 echo "configure:4725: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
4725 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
4726 echo $ac_n "(cached) $ac_c" 1>&6
4728 if test "$cross_compiling" = yes; then
4729 fu_cv_sys_stat_statfs4=no
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 #include <sys/types.h>
4735 #include <sys/statfs.h>
4739 exit (statfs (".", &fsd, sizeof fsd, 0));
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4744 fu_cv_sys_stat_statfs4=yes
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 fu_cv_sys_stat_statfs4=no
4756 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
4757 if test $fu_cv_sys_stat_statfs4 = yes; then
4759 cat >> confdefs.h <<\EOF
4760 #define STAT_STATFS4 1
4766 if test $space = no; then
4768 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
4769 echo "configure:4770: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
4770 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 if test "$cross_compiling" = yes; then
4774 fu_cv_sys_stat_statfs2_fsize=no
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 #include <sys/types.h>
4780 #ifdef HAVE_SYS_PARAM_H
4781 #include <sys/param.h>
4783 #ifdef HAVE_SYS_MOUNT_H
4784 #include <sys/mount.h>
4790 exit (statfs (".", &fsd));
4793 if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4795 fu_cv_sys_stat_statfs2_fsize=yes
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4800 fu_cv_sys_stat_statfs2_fsize=no
4807 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
4808 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
4810 cat >> confdefs.h <<\EOF
4811 #define STAT_STATFS2_FSIZE 1
4817 if test $space = no; then
4819 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
4820 echo "configure:4821: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
4821 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 if test "$cross_compiling" = yes; then
4825 fu_cv_sys_stat_fs_data=no
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 #include <sys/types.h>
4831 #ifdef HAVE_SYS_PARAM_H
4832 #include <sys/param.h>
4834 #ifdef HAVE_SYS_MOUNT_H
4835 #include <sys/mount.h>
4837 #ifdef HAVE_SYS_FS_TYPES_H
4838 #include <sys/fs_types.h>
4843 /* Ultrix's statfs returns 1 for success,
4844 0 for not mounted, -1 for failure. */
4845 exit (statfs (".", &fsd) != 1);
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4850 fu_cv_sys_stat_fs_data=yes
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 fu_cv_sys_stat_fs_data=no
4862 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
4863 if test $fu_cv_sys_stat_fs_data = yes; then
4865 cat >> confdefs.h <<\EOF
4866 #define STAT_STATFS2_FS_DATA 1
4874 cat > confcache <<\EOF
4875 # This file is a shell script that caches the results of configure
4876 # tests run on this system so they can be shared between configure
4877 # scripts and configure runs. It is not useful on other systems.
4878 # If it contains results you don't want to keep, you may remove or edit it.
4880 # By default, configure uses ./config.cache as the cache file,
4881 # creating it if it does not exist already. You can give configure
4882 # the --cache-file=FILE option to use a different cache file; that is
4883 # what configure does when it calls configure scripts in
4884 # subdirectories, so they share the cache.
4885 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4886 # config.status only pays attention to the cache file if you give it the
4887 # --recheck option to rerun configure.
4890 # The following way of writing the cache mishandles newlines in values,
4891 # but we know of no workaround that is simple, portable, and efficient.
4892 # So, don't put newlines in cache variables' values.
4893 # Ultrix sh set writes to stderr and can't be redirected directly,
4894 # and sets the high bit in the cache file unless we assign to the vars.
4896 case `(ac_space=' '; set) 2>&1` in
4898 # `set' does not quote correctly, so add quotes (double-quote substitution
4899 # turns \\\\ into \\, and sed turns \\ into \).
4901 -e "s/'/'\\\\''/g" \
4902 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4905 # `set' quotes correctly as required by POSIX, so do not add quotes.
4906 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4909 if cmp -s $cache_file confcache; then
4912 if test -w $cache_file; then
4913 echo "updating cache $cache_file"
4914 cat confcache > $cache_file
4916 echo "not updating unwritable cache $cache_file"
4921 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4924 # Let make expand exec_prefix.
4925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4927 # Any assignment to VPATH causes Sun make to only execute
4928 # the first set of double-colon rules, so remove it if not needed.
4929 # If there is a colon in the path, we need to keep it.
4930 if test "x$srcdir" = x.; then
4931 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4934 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4936 DEFS=-DHAVE_CONFIG_H
4938 # Without the "./", some shells look in PATH for config.status.
4939 : ${CONFIG_STATUS=./config.status}
4941 echo creating $CONFIG_STATUS
4942 rm -f $CONFIG_STATUS
4943 cat > $CONFIG_STATUS <<EOF
4945 # Generated automatically by configure.
4946 # Run this file to recreate the current configuration.
4947 # This directory was configured as follows,
4948 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4950 # $0 $ac_configure_args
4952 # Compiler output produced by configure, useful for debugging
4953 # configure, is in ./config.log if it exists.
4955 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4958 case "\$ac_option" in
4959 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4960 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4961 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4962 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4963 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4965 -help | --help | --hel | --he | --h)
4966 echo "\$ac_cs_usage"; exit 0 ;;
4967 *) echo "\$ac_cs_usage"; exit 1 ;;
4971 ac_given_srcdir=$srcdir
4972 ac_given_INSTALL="$INSTALL"
4974 trap 'rm -fr `echo "Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
4975 web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
4976 rpc_parse/dummy script/dummy include/dummy codepages/dummy
4977 libsmb/dummy bin/dummy printing/dummy include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4979 cat >> $CONFIG_STATUS <<EOF
4981 # Protect against being on the right side of a sed subst in config.status.
4982 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4983 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4986 s%@CFLAGS@%$CFLAGS%g
4987 s%@CPPFLAGS@%$CPPFLAGS%g
4988 s%@CXXFLAGS@%$CXXFLAGS%g
4990 s%@LDFLAGS@%$LDFLAGS%g
4992 s%@exec_prefix@%$exec_prefix%g
4993 s%@prefix@%$prefix%g
4994 s%@program_transform_name@%$program_transform_name%g
4995 s%@bindir@%$bindir%g
4996 s%@sbindir@%$sbindir%g
4997 s%@libexecdir@%$libexecdir%g
4998 s%@datadir@%$datadir%g
4999 s%@sysconfdir@%$sysconfdir%g
5000 s%@sharedstatedir@%$sharedstatedir%g
5001 s%@localstatedir@%$localstatedir%g
5002 s%@libdir@%$libdir%g
5003 s%@includedir@%$includedir%g
5004 s%@oldincludedir@%$oldincludedir%g
5005 s%@infodir@%$infodir%g
5006 s%@mandir@%$mandir%g
5008 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5009 s%@INSTALL_DATA@%$INSTALL_DATA%g
5013 s%@host_alias@%$host_alias%g
5014 s%@host_cpu@%$host_cpu%g
5015 s%@host_vendor@%$host_vendor%g
5016 s%@host_os@%$host_os%g
5017 s%@target@%$target%g
5018 s%@target_alias@%$target_alias%g
5019 s%@target_cpu@%$target_cpu%g
5020 s%@target_vendor@%$target_vendor%g
5021 s%@target_os@%$target_os%g
5023 s%@build_alias@%$build_alias%g
5024 s%@build_cpu@%$build_cpu%g
5025 s%@build_vendor@%$build_vendor%g
5026 s%@build_os@%$build_os%g
5028 s%@LIBOBJS@%$LIBOBJS%g
5033 cat >> $CONFIG_STATUS <<\EOF
5035 # Split the substitutions into bite-sized pieces for seds with
5036 # small command number limits, like on Digital OSF/1 and HP-UX.
5037 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5038 ac_file=1 # Number of current file.
5039 ac_beg=1 # First line for current file.
5040 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5043 while $ac_more_lines; do
5044 if test $ac_beg -gt 1; then
5045 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5047 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5049 if test ! -s conftest.s$ac_file; then
5051 rm -f conftest.s$ac_file
5053 if test -z "$ac_sed_cmds"; then
5054 ac_sed_cmds="sed -f conftest.s$ac_file"
5056 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5058 ac_file=`expr $ac_file + 1`
5060 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5063 if test -z "$ac_sed_cmds"; then
5068 cat >> $CONFIG_STATUS <<EOF
5070 CONFIG_FILES=\${CONFIG_FILES-"Makefile tests/dummy client/dummy lib/dummy ubiqx/dummy
5071 web/dummy param/dummy nmbd/dummy smbd/dummy rpc_server/dummy
5072 rpc_parse/dummy script/dummy include/dummy codepages/dummy
5073 libsmb/dummy bin/dummy printing/dummy"}
5075 cat >> $CONFIG_STATUS <<\EOF
5076 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5079 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5080 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5081 *) ac_file_in="${ac_file}.in" ;;
5084 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5086 # Remove last slash and all that follows it. Not all systems have dirname.
5087 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5088 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5089 # The file is in a subdirectory.
5090 test ! -d "$ac_dir" && mkdir "$ac_dir"
5091 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5092 # A "../" for each directory in $ac_dir_suffix.
5093 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5095 ac_dir_suffix= ac_dots=
5098 case "$ac_given_srcdir" in
5100 if test -z "$ac_dots"; then top_srcdir=.
5101 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5102 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5104 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5105 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5108 case "$ac_given_INSTALL" in
5109 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5110 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5113 echo creating "$ac_file"
5115 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5117 *Makefile*) ac_comsub="1i\\
5118 # $configure_input" ;;
5122 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5124 s%@configure_input@%$configure_input%g
5125 s%@srcdir@%$srcdir%g
5126 s%@top_srcdir@%$top_srcdir%g
5127 s%@INSTALL@%$INSTALL%g
5128 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5132 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5133 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5135 # ac_d sets the value in "#define NAME VALUE" lines.
5136 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5137 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5140 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5141 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5142 ac_uB='\([ ]\)%\1#\2define\3'
5145 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5146 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5147 ac_eB='$%\1#\2define\3'
5151 if test "${CONFIG_HEADERS+set}" != set; then
5153 cat >> $CONFIG_STATUS <<EOF
5154 CONFIG_HEADERS="include/config.h"
5156 cat >> $CONFIG_STATUS <<\EOF
5158 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5161 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5162 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5163 *) ac_file_in="${ac_file}.in" ;;
5166 echo creating $ac_file
5168 rm -f conftest.frag conftest.in conftest.out
5169 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5170 cat $ac_file_inputs > conftest.in
5174 # Transform confdefs.h into a sed script conftest.vals that substitutes
5175 # the proper values into config.h.in to produce config.h. And first:
5176 # Protect against being on the right side of a sed subst in config.status.
5177 # Protect against being in an unquoted here document in config.status.
5179 cat > conftest.hdr <<\EOF
5182 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5186 sed -n -f conftest.hdr confdefs.h > conftest.vals
5189 # This sed command replaces #undef with comments. This is necessary, for
5190 # example, in the case of _POSIX_SOURCE, which is predefined and required
5191 # on some systems where configure will not decide to define it.
5192 cat >> conftest.vals <<\EOF
5193 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5196 # Break up conftest.vals because some shells have a limit on
5197 # the size of here documents, and old seds have small limits too.
5202 ac_lines=`grep -c . conftest.vals`
5203 # grep -c gives empty output for an empty file on some AIX systems.
5204 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5205 # Write a limited-size here document to conftest.frag.
5206 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5207 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5209 sed -f conftest.frag conftest.in > conftest.out
5211 mv conftest.out conftest.in
5213 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5215 mv conftest.tail conftest.vals
5219 cat >> $CONFIG_STATUS <<\EOF
5220 rm -f conftest.frag conftest.h
5221 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5222 cat conftest.in >> conftest.h
5224 if cmp -s $ac_file conftest.h 2>/dev/null; then
5225 echo "$ac_file is unchanged"
5228 # Remove last slash and all that follows it. Not all systems have dirname.
5229 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5230 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5231 # The file is in a subdirectory.
5232 test ! -d "$ac_dir" && mkdir "$ac_dir"
5235 mv conftest.h $ac_file
5240 cat >> $CONFIG_STATUS <<EOF
5243 cat >> $CONFIG_STATUS <<\EOF
5247 chmod +x $CONFIG_STATUS
5248 rm -fr confdefs* $ac_clean_files
5249 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1