3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
16 --enable-debug turn on debugging [default=no]"
18 --enable-developer turn on developer warnings and debugging [default=no]"
20 --enable-dmalloc enable heap debugging [default=no]"
22 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
24 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
26 --with-smbwrapper Include SMB wrapper support (default=no) "
28 --with-afs Include AFS clear-text auth support (default=no) "
30 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
32 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
34 --with-automount Include AUTOMOUNT support (default=no)"
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
38 --with-pam Include PAM support (default=no)"
40 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
42 --with-tdbsam Include experimental TDB SAM support (default=no)"
44 --with-ldapsam Include experimental LDAP SAM support (default=no)"
46 --with-nisplussam Include NISPLUS SAM support (default=no)"
48 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
50 --with-ssl Include SSL support (default=no)
51 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
52 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
54 --with-syslog Include experimental SYSLOG support (default=no)"
56 --with-profiling-data Include gathering source code profile information (default=no)"
58 --with-quotas Include experimental disk-quota support (default=no)"
60 --with-utmp Include experimental utmp accounting (default=no)"
62 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
64 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
66 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
68 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
70 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
72 --with-acl-support Include ACL support (default=no)"
74 --with-winbind Build winbind (default, if supported by OS)"
76 --with-included-popt use bundled popt library, not from system"
78 # Initialize some variables set by options.
79 # The variables have the same names as the options, with
80 # dashes changed to underlines.
82 cache_file=./config.cache
91 program_transform_name=s,x,x,
99 bindir='${exec_prefix}/bin'
100 sbindir='${exec_prefix}/sbin'
101 libexecdir='${exec_prefix}/libexec'
102 datadir='${prefix}/share'
103 sysconfdir='${prefix}/etc'
104 sharedstatedir='${prefix}/com'
105 localstatedir='${prefix}/var'
106 libdir='${exec_prefix}/lib'
107 includedir='${prefix}/include'
108 oldincludedir='/usr/include'
109 infodir='${prefix}/info'
110 mandir='${prefix}/man'
112 # Initialize some other variables.
115 SHELL=${CONFIG_SHELL-/bin/sh}
116 # Maximum number of lines to put in a shell here document.
123 # If the previous option needs an argument, assign it.
124 if test -n "$ac_prev"; then
125 eval "$ac_prev=\$ac_option"
131 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
135 # Accept the important Cygnus configure options, so we can diagnose typos.
139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
142 bindir="$ac_optarg" ;;
144 -build | --build | --buil | --bui | --bu)
146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
147 build="$ac_optarg" ;;
149 -cache-file | --cache-file | --cache-fil | --cache-fi \
150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
151 ac_prev=cache_file ;;
152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
154 cache_file="$ac_optarg" ;;
156 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
158 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
160 datadir="$ac_optarg" ;;
162 -disable-* | --disable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169 eval "enable_${ac_feature}=no" ;;
171 -enable-* | --enable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}='$ac_optarg'" ;;
184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
186 | --exec | --exe | --ex)
187 ac_prev=exec_prefix ;;
188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
190 | --exec=* | --exe=* | --ex=*)
191 exec_prefix="$ac_optarg" ;;
193 -gas | --gas | --ga | --g)
194 # Obsolete; use --with-gas.
197 -help | --help | --hel | --he)
198 # Omit some internal or obsolete options to make the list less imposing.
199 # This message is too long to be a string in the A/UX 3.1 sh.
201 Usage: configure [options] [host]
202 Options: [defaults in brackets after descriptions]
204 --cache-file=FILE cache test results in FILE
205 --help print this message
206 --no-create do not create output files
207 --quiet, --silent do not print \`checking...' messages
208 --version print the version of autoconf that created configure
209 Directory and file names:
210 --prefix=PREFIX install architecture-independent files in PREFIX
212 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
214 --bindir=DIR user executables in DIR [EPREFIX/bin]
215 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
216 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
217 --datadir=DIR read-only architecture-independent data in DIR
219 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
220 --sharedstatedir=DIR modifiable architecture-independent data in DIR
222 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
223 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
224 --includedir=DIR C header files in DIR [PREFIX/include]
225 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
226 --infodir=DIR info documentation in DIR [PREFIX/info]
227 --mandir=DIR man documentation in DIR [PREFIX/man]
228 --srcdir=DIR find the sources in DIR [configure dir or ..]
229 --program-prefix=PREFIX prepend PREFIX to installed program names
230 --program-suffix=SUFFIX append SUFFIX to installed program names
231 --program-transform-name=PROGRAM
232 run sed PROGRAM on installed program names
236 --build=BUILD configure for building on BUILD [BUILD=HOST]
237 --host=HOST configure for HOST [guessed]
238 --target=TARGET configure for TARGET [TARGET=HOST]
239 Features and packages:
240 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
241 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
242 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
243 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
244 --x-includes=DIR X include files are in DIR
245 --x-libraries=DIR X library files are in DIR
247 if test -n "$ac_help"; then
248 echo "--enable and --with options recognized:$ac_help"
252 -host | --host | --hos | --ho)
254 -host=* | --host=* | --hos=* | --ho=*)
257 -includedir | --includedir | --includedi | --included | --include \
258 | --includ | --inclu | --incl | --inc)
259 ac_prev=includedir ;;
260 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
261 | --includ=* | --inclu=* | --incl=* | --inc=*)
262 includedir="$ac_optarg" ;;
264 -infodir | --infodir | --infodi | --infod | --info | --inf)
266 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
267 infodir="$ac_optarg" ;;
269 -libdir | --libdir | --libdi | --libd)
271 -libdir=* | --libdir=* | --libdi=* | --libd=*)
272 libdir="$ac_optarg" ;;
274 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
275 | --libexe | --libex | --libe)
276 ac_prev=libexecdir ;;
277 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
278 | --libexe=* | --libex=* | --libe=*)
279 libexecdir="$ac_optarg" ;;
281 -localstatedir | --localstatedir | --localstatedi | --localstated \
282 | --localstate | --localstat | --localsta | --localst \
283 | --locals | --local | --loca | --loc | --lo)
284 ac_prev=localstatedir ;;
285 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
286 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
287 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
288 localstatedir="$ac_optarg" ;;
290 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
292 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
293 mandir="$ac_optarg" ;;
296 # Obsolete; use --without-fp.
299 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
303 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
304 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
307 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
308 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
309 | --oldin | --oldi | --old | --ol | --o)
310 ac_prev=oldincludedir ;;
311 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
312 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
313 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
314 oldincludedir="$ac_optarg" ;;
316 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
318 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
319 prefix="$ac_optarg" ;;
321 -program-prefix | --program-prefix | --program-prefi | --program-pref \
322 | --program-pre | --program-pr | --program-p)
323 ac_prev=program_prefix ;;
324 -program-prefix=* | --program-prefix=* | --program-prefi=* \
325 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
326 program_prefix="$ac_optarg" ;;
328 -program-suffix | --program-suffix | --program-suffi | --program-suff \
329 | --program-suf | --program-su | --program-s)
330 ac_prev=program_suffix ;;
331 -program-suffix=* | --program-suffix=* | --program-suffi=* \
332 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
333 program_suffix="$ac_optarg" ;;
335 -program-transform-name | --program-transform-name \
336 | --program-transform-nam | --program-transform-na \
337 | --program-transform-n | --program-transform- \
338 | --program-transform | --program-transfor \
339 | --program-transfo | --program-transf \
340 | --program-trans | --program-tran \
341 | --progr-tra | --program-tr | --program-t)
342 ac_prev=program_transform_name ;;
343 -program-transform-name=* | --program-transform-name=* \
344 | --program-transform-nam=* | --program-transform-na=* \
345 | --program-transform-n=* | --program-transform-=* \
346 | --program-transform=* | --program-transfor=* \
347 | --program-transfo=* | --program-transf=* \
348 | --program-trans=* | --program-tran=* \
349 | --progr-tra=* | --program-tr=* | --program-t=*)
350 program_transform_name="$ac_optarg" ;;
352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
353 | -silent | --silent | --silen | --sile | --sil)
356 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
358 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
360 sbindir="$ac_optarg" ;;
362 -sharedstatedir | --sharedstatedir | --sharedstatedi \
363 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
364 | --sharedst | --shareds | --shared | --share | --shar \
366 ac_prev=sharedstatedir ;;
367 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
368 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
369 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
371 sharedstatedir="$ac_optarg" ;;
373 -site | --site | --sit)
375 -site=* | --site=* | --sit=*)
378 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
380 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
381 srcdir="$ac_optarg" ;;
383 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
384 | --syscon | --sysco | --sysc | --sys | --sy)
385 ac_prev=sysconfdir ;;
386 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
387 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
388 sysconfdir="$ac_optarg" ;;
390 -target | --target | --targe | --targ | --tar | --ta | --t)
392 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
393 target="$ac_optarg" ;;
395 -v | -verbose | --verbose | --verbos | --verbo | --verb)
398 -version | --version | --versio | --versi | --vers)
399 echo "configure generated by autoconf version 2.13"
403 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}='$ac_optarg'" ;;
415 -without-* | --without-*)
416 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}=no" ;;
425 # Obsolete; use --with-x.
428 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
429 | --x-incl | --x-inc | --x-in | --x-i)
430 ac_prev=x_includes ;;
431 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
432 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
433 x_includes="$ac_optarg" ;;
435 -x-libraries | --x-libraries | --x-librarie | --x-librari \
436 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
437 ac_prev=x_libraries ;;
438 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
439 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
440 x_libraries="$ac_optarg" ;;
442 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
446 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
447 echo "configure: warning: $ac_option: invalid host type" 1>&2
449 if test "x$nonopt" != xNONE; then
450 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
458 if test -n "$ac_prev"; then
459 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
462 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
464 # File descriptor usage:
467 # 2 errors and warnings
468 # 3 some systems may open it to /dev/tty
469 # 4 used on the Kubota Titan
470 # 6 checking for... messages and results
471 # 5 compiler messages saved in config.log
472 if test "$silent" = yes; then
480 This file contains any messages produced by compilers while
481 running configure, to aid debugging if configure makes a mistake.
484 # Strip out --no-create and --no-recursion so they do not pile up.
485 # Also quote any args containing shell metacharacters.
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c) ;;
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
495 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
496 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
501 # Only set these to C if already set. These must not be set unconditionally
502 # because not all systems understand e.g. LANG=C (notably SCO).
503 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
504 # Non-C LC_CTYPE values break the ctype check.
505 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
506 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
507 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
508 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
510 # confdefs.h avoids OS command line length limits that DEFS can exceed.
511 rm -rf conftest* confdefs.h
512 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
515 # A filename unique to this package, relative to the directory that
516 # configure is in, which we can look for to find out if srcdir is correct.
517 ac_unique_file=include/includes.h
519 # Find the source files, if location was not specified.
520 if test -z "$srcdir"; then
521 ac_srcdir_defaulted=yes
522 # Try the directory containing this script, then its parent.
524 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
525 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
527 if test ! -r $srcdir/$ac_unique_file; then
531 ac_srcdir_defaulted=no
533 if test ! -r $srcdir/$ac_unique_file; then
534 if test "$ac_srcdir_defaulted" = yes; then
535 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
537 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
540 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
542 # Prefer explicitly selected file to automatically selected ones.
543 if test -z "$CONFIG_SITE"; then
544 if test "x$prefix" != xNONE; then
545 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
547 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
550 for ac_site_file in $CONFIG_SITE; do
551 if test -r "$ac_site_file"; then
552 echo "loading site script $ac_site_file"
557 if test -r "$cache_file"; then
558 echo "loading cache $cache_file"
561 echo "creating cache $cache_file"
566 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
567 ac_cpp='$CPP $CPPFLAGS'
568 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
569 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
570 cross_compiling=$ac_cv_prog_cc_cross
574 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
575 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
576 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
583 ac_n= ac_c='\c' ac_t=
588 # we want to be compatible with older versions of Samba
606 # compile with optimisation and without debugging by default
607 CFLAGS="-O ${CFLAGS}"
609 # Check whether --enable-debug or --disable-debug was given.
610 if test "${enable_debug+set}" = set; then
611 enableval="$enable_debug"
612 if eval "test x$enable_debug = xyes"; then
613 CFLAGS="${CFLAGS} -g"
618 # Check whether --enable-developer or --disable-developer was given.
619 if test "${enable_developer+set}" = set; then
620 enableval="$enable_developer"
621 if eval "test x$enable_developer = xyes"; then
622 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
627 # Check whether --enable-dmalloc or --disable-dmalloc was given.
628 if test "${enable_dmalloc+set}" = set; then
629 enableval="$enable_dmalloc"
634 if test "x$enable_dmalloc" = xyes
636 cat >> confdefs.h <<\EOF
637 #define ENABLE_DMALLOC 1
640 cat >> confdefs.h <<\EOF
641 #define DMALLOC_FUNC_CHECK 1
644 LIBS="$LIBS -ldmalloc"
647 # Extract the first word of "gcc", so it can be a program name with args.
648 set dummy gcc; ac_word=$2
649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
650 echo "configure:651: checking for $ac_word" >&5
651 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
652 echo $ac_n "(cached) $ac_c" 1>&6
654 if test -n "$CC"; then
655 ac_cv_prog_CC="$CC" # Let the user override the test.
657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
659 for ac_dir in $ac_dummy; do
660 test -z "$ac_dir" && ac_dir=.
661 if test -f $ac_dir/$ac_word; then
670 if test -n "$CC"; then
671 echo "$ac_t""$CC" 1>&6
673 echo "$ac_t""no" 1>&6
676 if test -z "$CC"; then
677 # Extract the first word of "cc", so it can be a program name with args.
678 set dummy cc; ac_word=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$CC"; then
685 ac_cv_prog_CC="$CC" # Let the user override the test.
687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
690 for ac_dir in $ac_dummy; do
691 test -z "$ac_dir" && ac_dir=.
692 if test -f $ac_dir/$ac_word; then
693 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
702 if test $ac_prog_rejected = yes; then
703 # We found a bogon in the path, so make sure we never use it.
704 set dummy $ac_cv_prog_CC
706 if test $# -gt 0; then
707 # We chose a different compiler from the bogus one.
708 # However, it has the same basename, so the bogon will be chosen
709 # first if we set CC to just the basename; use the full file name.
711 set dummy "$ac_dir/$ac_word" "$@"
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
725 if test -z "$CC"; then
728 # Extract the first word of "cl", so it can be a program name with args.
729 set dummy cl; ac_word=$2
730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
731 echo "configure:732: checking for $ac_word" >&5
732 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
733 echo $ac_n "(cached) $ac_c" 1>&6
735 if test -n "$CC"; then
736 ac_cv_prog_CC="$CC" # Let the user override the test.
738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
740 for ac_dir in $ac_dummy; do
741 test -z "$ac_dir" && ac_dir=.
742 if test -f $ac_dir/$ac_word; then
751 if test -n "$CC"; then
752 echo "$ac_t""$CC" 1>&6
754 echo "$ac_t""no" 1>&6
759 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
763 echo "configure:764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
766 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
767 ac_cpp='$CPP $CPPFLAGS'
768 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
769 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
770 cross_compiling=$ac_cv_prog_cc_cross
772 cat > conftest.$ac_ext << EOF
774 #line 775 "configure"
775 #include "confdefs.h"
779 if { (eval echo configure:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
780 ac_cv_prog_cc_works=yes
781 # If we can't run a trivial program, we are probably using a cross compiler.
782 if (./conftest; exit) 2>/dev/null; then
783 ac_cv_prog_cc_cross=no
785 ac_cv_prog_cc_cross=yes
788 echo "configure: failed program was:" >&5
789 cat conftest.$ac_ext >&5
790 ac_cv_prog_cc_works=no
794 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
795 ac_cpp='$CPP $CPPFLAGS'
796 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
797 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
798 cross_compiling=$ac_cv_prog_cc_cross
800 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
801 if test $ac_cv_prog_cc_works = no; then
802 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
804 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
805 echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
806 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
807 cross_compiling=$ac_cv_prog_cc_cross
809 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
810 echo "configure:811: checking whether we are using GNU C" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 cat > conftest.c <<EOF
819 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
826 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
828 if test $ac_cv_prog_gcc = yes; then
834 ac_test_CFLAGS="${CFLAGS+set}"
835 ac_save_CFLAGS="$CFLAGS"
837 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
838 echo "configure:839: checking whether ${CC-cc} accepts -g" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
842 echo 'void f(){}' > conftest.c
843 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
852 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
853 if test "$ac_test_CFLAGS" = set; then
854 CFLAGS="$ac_save_CFLAGS"
855 elif test $ac_cv_prog_cc_g = yes; then
856 if test "$GCC" = yes; then
862 if test "$GCC" = yes; then
870 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
871 if test -f $ac_dir/install-sh; then
873 ac_install_sh="$ac_aux_dir/install-sh -c"
875 elif test -f $ac_dir/install.sh; then
877 ac_install_sh="$ac_aux_dir/install.sh -c"
881 if test -z "$ac_aux_dir"; then
882 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
884 ac_config_guess=$ac_aux_dir/config.guess
885 ac_config_sub=$ac_aux_dir/config.sub
886 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
888 # Find a good install program. We prefer a C program (faster),
889 # so one script is as good as another. But avoid the broken or
890 # incompatible versions:
891 # SysV /etc/install, /usr/sbin/install
892 # SunOS /usr/etc/install
895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
898 # ./install, which can be erroneously created by make from ./install.sh.
899 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
900 echo "configure:901: checking for a BSD compatible install" >&5
901 if test -z "$INSTALL"; then
902 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
906 for ac_dir in $PATH; do
907 # Account for people who put trailing slashes in PATH elements.
909 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
911 # OSF1 and SCO ODT 3.0 have their own names for install.
912 # Don't use installbsd from OSF since it installs stuff as root
914 for ac_prog in ginstall scoinst install; do
915 if test -f $ac_dir/$ac_prog; then
916 if test $ac_prog = install &&
917 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
918 # AIX install. It has an incompatible calling convention.
921 ac_cv_path_install="$ac_dir/$ac_prog -c"
932 if test "${ac_cv_path_install+set}" = set; then
933 INSTALL="$ac_cv_path_install"
935 # As a last resort, use the slow shell script. We don't cache a
936 # path for INSTALL within a source directory, because that will
937 # break other packages using the cache if that directory is
938 # removed, or if the path is relative.
939 INSTALL="$ac_install_sh"
942 echo "$ac_t""$INSTALL" 1>&6
944 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
945 # It thinks the first close brace ends the variable substitution.
946 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
948 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
950 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
952 for ac_prog in gawk mawk nawk awk
954 # Extract the first word of "$ac_prog", so it can be a program name with args.
955 set dummy $ac_prog; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$AWK"; then
962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_AWK="$ac_prog"
976 AWK="$ac_cv_prog_AWK"
977 if test -n "$AWK"; then
978 echo "$ac_t""$AWK" 1>&6
980 echo "$ac_t""no" 1>&6
983 test -n "$AWK" && break
987 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
988 echo "configure:989: checking for POSIXized ISC" >&5
989 if test -d /etc/conf/kconfig.d &&
990 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
992 echo "$ac_t""yes" 1>&6
993 ISC=yes # If later tests want to check for ISC.
994 cat >> confdefs.h <<\EOF
995 #define _POSIX_SOURCE 1
998 if test "$GCC" = yes; then
1004 echo "$ac_t""no" 1>&6
1009 if test "x$CC" != xcc; then
1010 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether $CC and cc understand -c and -o together" >&5
1013 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1014 echo "configure:1015: checking whether cc understands -c and -o together" >&5
1016 set dummy $CC; ac_cc="`echo $2 |
1017 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1018 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1021 echo 'foo(){}' > conftest.c
1022 # Make sure it works both with $CC and with simple cc.
1023 # We do the test twice because some compilers refuse to overwrite an
1024 # existing .o file with -o, though they will create one.
1025 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1026 if { (eval echo configure:1027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1027 test -f conftest.o && { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1029 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1030 if test "x$CC" != xcc; then
1031 # Test first that cc exists at all.
1032 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1033 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1034 if { (eval echo configure:1035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1035 test -f conftest.o && { (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1040 # cc exists but doesn't like -o.
1041 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1046 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1051 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1052 echo "$ac_t""yes" 1>&6
1054 echo "$ac_t""no" 1>&6
1055 cat >> confdefs.h <<\EOF
1056 #define NO_MINUS_C_MINUS_O 1
1061 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1068 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1069 echo "configure:1070: checking that the C compiler understands volatile" >&5
1070 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.$ac_ext <<EOF
1075 #line 1076 "configure"
1076 #include "confdefs.h"
1077 #include <sys/types.h>
1082 if { (eval echo configure:1083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1084 samba_cv_volatile=yes
1086 echo "configure: failed program was:" >&5
1087 cat conftest.$ac_ext >&5
1089 samba_cv_volatile=no
1094 echo "$ac_t""$samba_cv_volatile" 1>&6
1095 if test x"$samba_cv_volatile" = x"yes"; then
1096 cat >> confdefs.h <<\EOF
1097 #define HAVE_VOLATILE 1
1104 # Do some error checking and defaulting for the host and target type.
1106 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1109 # 1. You are not allowed to specify --host, --target, and nonopt at the
1111 # 2. Host defaults to nonopt.
1112 # 3. If nonopt is not specified, then host defaults to the current host,
1113 # as determined by config.guess.
1114 # 4. Target and build default to nonopt.
1115 # 5. If nonopt is not specified, then target and build default to host.
1117 # The aliases save the names the user supplied, while $host etc.
1118 # will get canonicalized.
1119 case $host---$target---$nonopt in
1120 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1121 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1125 # Make sure we can run config.sub.
1126 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1127 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1130 echo $ac_n "checking host system type""... $ac_c" 1>&6
1131 echo "configure:1132: checking host system type" >&5
1134 case "$host_alias" in
1138 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1139 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1141 *) host_alias=$nonopt ;;
1145 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1146 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1147 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1148 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1149 echo "$ac_t""$host" 1>&6
1151 echo $ac_n "checking target system type""... $ac_c" 1>&6
1152 echo "configure:1153: checking target system type" >&5
1154 target_alias=$target
1155 case "$target_alias" in
1158 NONE) target_alias=$host_alias ;;
1159 *) target_alias=$nonopt ;;
1163 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1164 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1165 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1166 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1167 echo "$ac_t""$target" 1>&6
1169 echo $ac_n "checking build system type""... $ac_c" 1>&6
1170 echo "configure:1171: checking build system type" >&5
1173 case "$build_alias" in
1176 NONE) build_alias=$host_alias ;;
1177 *) build_alias=$nonopt ;;
1181 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1182 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1183 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1184 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1185 echo "$ac_t""$build" 1>&6
1187 test "$host_alias" != "$target_alias" &&
1188 test "$program_prefix$program_suffix$program_transform_name" = \
1190 program_prefix=${target_alias}-
1194 *irix6*) cat >> confdefs.h <<\EOF
1195 #include <standards.h>
1203 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1204 echo "configure:1205: checking config.cache system type" >&5
1205 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1206 test x"$ac_cv_host_system_type" != x"$host"; } ||
1207 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1208 test x"$ac_cv_build_system_type" != x"$build"; } ||
1209 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1210 test x"$ac_cv_target_system_type" != x"$target"; }; then
1211 echo "$ac_t""different" 1>&6
1212 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1214 echo "$ac_t""same" 1>&6
1216 ac_cv_host_system_type="$host"
1217 ac_cv_build_system_type="$build"
1218 ac_cv_target_system_type="$target"
1222 # Config CPPFLAG settings for strange OS's that must be set
1223 # before other tests.
1226 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1228 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1229 echo "configure:1230: checking whether ${CC-cc} accepts -Ae" >&5
1230 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1231 echo $ac_n "(cached) $ac_c" 1>&6
1233 echo 'void f(){}' > conftest.c
1234 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1235 ac_cv_prog_cc_Ae=yes
1243 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1244 # mmap on HPUX is completely broken...
1245 cat >> confdefs.h <<\EOF
1246 #define MMAP_BLACKLIST 1
1249 if test $ac_cv_prog_cc_Ae = yes; then
1250 CPPFLAGS="$CPPFLAGS -Ae"
1253 # Defines needed for HPUX support.
1254 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1255 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1259 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1260 cat >> confdefs.h <<\EOF
1261 #define USE_BOTH_CRYPT_CALLS 1
1266 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1267 cat >> confdefs.h <<\EOF
1268 #define USE_BOTH_CRYPT_CALLS 1
1276 # CRAY Unicos has broken const handling
1278 echo "$ac_t""disabling const" 1>&6
1279 CPPFLAGS="$CPPFLAGS -Dconst="
1283 # AIX4.x doesn't even admit to having large
1284 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1287 echo "$ac_t""enabling large file support" 1>&6
1288 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1291 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1292 # to the existance of large files..
1293 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1294 # recommendations on large file support, however it makes the
1295 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1296 # recommendation makes the compile fail on gcc2.7. JRA.
1300 5.0*|5.1*|5.2*|5.3*|5.5*)
1301 echo "$ac_t""no large file support" 1>&6
1304 echo "$ac_t""enabling large file support" 1>&6
1305 if test "$ac_cv_prog_gcc" = yes; then
1306 ${CC-cc} -v >conftest.c 2>&1
1307 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1309 case "$ac_cv_gcc_compiler_version_number" in
1310 *"gcc version 2.6"*|*"gcc version 2.7"*)
1311 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1314 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1318 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1324 # Tests needed for SINIX large file support.
1327 if test $host = mips-sni-sysv4 ; then
1328 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1329 echo "configure:1330: checking for LFS support" >&5
1330 old_CPPFLAGS="$CPPFLAGS"
1331 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1332 if test "$cross_compiling" = yes; then
1333 SINIX_LFS_SUPPORT=cross
1335 cat > conftest.$ac_ext <<EOF
1336 #line 1337 "configure"
1337 #include "confdefs.h"
1341 #if _LFS64_LARGEFILE == 1
1348 if { (eval echo configure:1349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1350 SINIX_LFS_SUPPORT=yes
1352 echo "configure: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1355 SINIX_LFS_SUPPORT=no
1360 CPPFLAGS="$old_CPPFLAGS"
1361 if test x$SINIX_LFS_SUPPORT = xyes ; then
1362 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1363 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1364 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1365 LIBS="`getconf LFS64_LIBS` $LIBS"
1367 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1371 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1374 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1375 echo "configure:1376: checking for LFS support" >&5
1376 old_CPPFLAGS="$CPPFLAGS"
1377 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1378 if test "$cross_compiling" = yes; then
1379 LINUX_LFS_SUPPORT=cross
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1386 #include <sys/utsname.h>
1388 #if _LFS64_LARGEFILE == 1
1393 /* Ensure this is glibc 2.2 or higher */
1394 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1395 int libc_major = __GLIBC__;
1396 int libc_minor = __GLIBC_MINOR__;
1404 /* Ensure this is kernel 2.4 or higher */
1407 release = uts.release;
1408 major = atoi(strsep(&release, "."));
1409 minor = atoi(strsep(&release, "."));
1411 if (major > 2 || (major == 2 && minor > 3))
1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1422 LINUX_LFS_SUPPORT=yes
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1427 LINUX_LFS_SUPPORT=no
1432 CPPFLAGS="$old_CPPFLAGS"
1433 if test x$LINUX_LFS_SUPPORT = xyes ; then
1434 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1436 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1440 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1441 echo "configure:1442: checking for LFS support" >&5
1442 old_CPPFLAGS="$CPPFLAGS"
1443 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1444 if test "$cross_compiling" = yes; then
1445 GLIBC_LFS_SUPPORT=cross
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1453 #if _LFS64_LARGEFILE == 1
1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1462 GLIBC_LFS_SUPPORT=yes
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 GLIBC_LFS_SUPPORT=no
1472 CPPFLAGS="$old_CPPFLAGS"
1473 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1474 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1476 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1481 echo $ac_n "checking for inline""... $ac_c" 1>&6
1482 echo "configure:1483: checking for inline" >&5
1483 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1487 for ac_kw in inline __inline__ __inline; do
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1496 if { (eval echo configure:1497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1498 ac_cv_c_inline=$ac_kw; break
1500 echo "configure: failed program was:" >&5
1501 cat conftest.$ac_ext >&5
1508 echo "$ac_t""$ac_cv_c_inline" 1>&6
1509 case "$ac_cv_c_inline" in
1511 no) cat >> confdefs.h <<\EOF
1515 *) cat >> confdefs.h <<EOF
1516 #define inline $ac_cv_c_inline
1521 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1522 echo "configure:1523: checking how to run the C preprocessor" >&5
1523 # On Suns, sometimes $CPP names a directory.
1524 if test -n "$CPP" && test -d "$CPP"; then
1527 if test -z "$CPP"; then
1528 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1531 # This must be in double quotes, not single quotes, because CPP may get
1532 # substituted into the Makefile and "${CC-cc}" will confuse make.
1534 # On the NeXT, cc -E runs the code through the compiler's parser,
1535 # not just through cpp.
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1545 if test -z "$ac_err"; then
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1552 CPP="${CC-cc} -E -traditional-cpp"
1553 cat > conftest.$ac_ext <<EOF
1554 #line 1555 "configure"
1555 #include "confdefs.h"
1559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1560 { (eval echo configure:1561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1562 if test -z "$ac_err"; then
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1569 CPP="${CC-cc} -nologo -E"
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1577 { (eval echo configure:1578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1579 if test -z "$ac_err"; then
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1593 ac_cv_prog_CPP="$CPP"
1595 CPP="$ac_cv_prog_CPP"
1597 ac_cv_prog_CPP="$CPP"
1599 echo "$ac_t""$CPP" 1>&6
1601 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1602 echo "configure:1603: checking for ANSI C header files" >&5
1603 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1606 cat > conftest.$ac_ext <<EOF
1607 #line 1608 "configure"
1608 #include "confdefs.h"
1614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1615 { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1617 if test -z "$ac_err"; then
1619 ac_cv_header_stdc=yes
1622 echo "configure: failed program was:" >&5
1623 cat conftest.$ac_ext >&5
1625 ac_cv_header_stdc=no
1629 if test $ac_cv_header_stdc = yes; then
1630 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1637 egrep "memchr" >/dev/null 2>&1; then
1641 ac_cv_header_stdc=no
1647 if test $ac_cv_header_stdc = yes; then
1648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1649 cat > conftest.$ac_ext <<EOF
1650 #line 1651 "configure"
1651 #include "confdefs.h"
1654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1655 egrep "free" >/dev/null 2>&1; then
1659 ac_cv_header_stdc=no
1665 if test $ac_cv_header_stdc = yes; then
1666 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1667 if test "$cross_compiling" = yes; then
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1674 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1675 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1677 int main () { int i; for (i = 0; i < 256; i++)
1678 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1686 echo "configure: failed program was:" >&5
1687 cat conftest.$ac_ext >&5
1689 ac_cv_header_stdc=no
1697 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1698 if test $ac_cv_header_stdc = yes; then
1699 cat >> confdefs.h <<\EOF
1700 #define STDC_HEADERS 1
1706 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1708 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1709 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_hdr that defines DIR" >&5
1711 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 cat > conftest.$ac_ext <<EOF
1715 #line 1716 "configure"
1716 #include "confdefs.h"
1717 #include <sys/types.h>
1723 if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1725 eval "ac_cv_header_dirent_$ac_safe=yes"
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1730 eval "ac_cv_header_dirent_$ac_safe=no"
1734 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1735 echo "$ac_t""yes" 1>&6
1736 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1737 cat >> confdefs.h <<EOF
1738 #define $ac_tr_hdr 1
1740 ac_header_dirent=$ac_hdr; break
1742 echo "$ac_t""no" 1>&6
1745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1746 if test $ac_header_dirent = dirent.h; then
1747 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1748 echo "configure:1749: checking for opendir in -ldir" >&5
1749 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 ac_save_LIBS="$LIBS"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1758 /* Override any gcc2 internal prototype to avoid an error. */
1759 /* We use char because int might match the return type of a gcc2
1760 builtin and then its argument prototype would still apply. */
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1769 eval "ac_cv_lib_$ac_lib_var=yes"
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 eval "ac_cv_lib_$ac_lib_var=no"
1777 LIBS="$ac_save_LIBS"
1780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1781 echo "$ac_t""yes" 1>&6
1784 echo "$ac_t""no" 1>&6
1788 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1789 echo "configure:1790: checking for opendir in -lx" >&5
1790 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1794 ac_save_LIBS="$LIBS"
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1799 /* Override any gcc2 internal prototype to avoid an error. */
1800 /* We use char because int might match the return type of a gcc2
1801 builtin and then its argument prototype would still apply. */
1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1810 eval "ac_cv_lib_$ac_lib_var=yes"
1812 echo "configure: failed program was:" >&5
1813 cat conftest.$ac_ext >&5
1815 eval "ac_cv_lib_$ac_lib_var=no"
1818 LIBS="$ac_save_LIBS"
1821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1825 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1831 echo "configure:1832: checking whether time.h and sys/time.h may both be included" >&5
1832 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1838 #include <sys/types.h>
1839 #include <sys/time.h>
1845 if { (eval echo configure:1846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1847 ac_cv_header_time=yes
1849 echo "configure: failed program was:" >&5
1850 cat conftest.$ac_ext >&5
1852 ac_cv_header_time=no
1857 echo "$ac_t""$ac_cv_header_time" 1>&6
1858 if test $ac_cv_header_time = yes; then
1859 cat >> confdefs.h <<\EOF
1860 #define TIME_WITH_SYS_TIME 1
1865 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1866 echo "configure:1867: checking for sys/wait.h that is POSIX.1 compatible" >&5
1867 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1868 echo $ac_n "(cached) $ac_c" 1>&6
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <sys/types.h>
1874 #include <sys/wait.h>
1876 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1879 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1884 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1887 if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1889 ac_cv_header_sys_wait_h=yes
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 ac_cv_header_sys_wait_h=no
1899 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1900 if test $ac_cv_header_sys_wait_h = yes; then
1901 cat >> confdefs.h <<\EOF
1902 #define HAVE_SYS_WAIT_H 1
1907 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1911 echo "configure:1912: checking for $ac_hdr" >&5
1912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1921 { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1923 if test -z "$ac_err"; then
1925 eval "ac_cv_header_$ac_safe=yes"
1928 echo "configure: failed program was:" >&5
1929 cat conftest.$ac_ext >&5
1931 eval "ac_cv_header_$ac_safe=no"
1935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1938 cat >> confdefs.h <<EOF
1939 #define $ac_tr_hdr 1
1943 echo "$ac_t""no" 1>&6
1947 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1949 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_hdr" >&5
1952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961 { (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1963 if test -z "$ac_err"; then
1965 eval "ac_cv_header_$ac_safe=yes"
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 eval "ac_cv_header_$ac_safe=no"
1975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976 echo "$ac_t""yes" 1>&6
1977 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978 cat >> confdefs.h <<EOF
1979 #define $ac_tr_hdr 1
1983 echo "$ac_t""no" 1>&6
1987 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1991 echo "configure:1992: checking for $ac_hdr" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2018 cat >> confdefs.h <<EOF
2019 #define $ac_tr_hdr 1
2023 echo "$ac_t""no" 1>&6
2027 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_hdr" >&5
2032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2033 echo $ac_n "(cached) $ac_c" 1>&6
2035 cat > conftest.$ac_ext <<EOF
2036 #line 2037 "configure"
2037 #include "confdefs.h"
2040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2041 { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2043 if test -z "$ac_err"; then
2045 eval "ac_cv_header_$ac_safe=yes"
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 eval "ac_cv_header_$ac_safe=no"
2055 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2056 echo "$ac_t""yes" 1>&6
2057 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2058 cat >> confdefs.h <<EOF
2059 #define $ac_tr_hdr 1
2063 echo "$ac_t""no" 1>&6
2067 for ac_hdr in sys/mman.h sys/filio.h sys/priv.h sys/shm.h string.h strings.h stdlib.h sys/socket.h
2069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_hdr" >&5
2072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2073 echo $ac_n "(cached) $ac_c" 1>&6
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2081 { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2083 if test -z "$ac_err"; then
2085 eval "ac_cv_header_$ac_safe=yes"
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2091 eval "ac_cv_header_$ac_safe=no"
2095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2096 echo "$ac_t""yes" 1>&6
2097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2098 cat >> confdefs.h <<EOF
2099 #define $ac_tr_hdr 1
2103 echo "$ac_t""no" 1>&6
2107 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2109 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2110 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2111 echo "configure:2112: checking for $ac_hdr" >&5
2112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2117 "configure"
2117 #include "confdefs.h"
2120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2121 { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2123 if test -z "$ac_err"; then
2125 eval "ac_cv_header_$ac_safe=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2131 eval "ac_cv_header_$ac_safe=no"
2135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2136 echo "$ac_t""yes" 1>&6
2137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2138 cat >> confdefs.h <<EOF
2139 #define $ac_tr_hdr 1
2143 echo "$ac_t""no" 1>&6
2147 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2151 echo "configure:2152: checking for $ac_hdr" >&5
2152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2161 { (eval echo configure:2162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2163 if test -z "$ac_err"; then
2165 eval "ac_cv_header_$ac_safe=yes"
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2171 eval "ac_cv_header_$ac_safe=no"
2175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2176 echo "$ac_t""yes" 1>&6
2177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2178 cat >> confdefs.h <<EOF
2179 #define $ac_tr_hdr 1
2183 echo "$ac_t""no" 1>&6
2187 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h
2189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2191 echo "configure:2192: checking for $ac_hdr" >&5
2192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2195 cat > conftest.$ac_ext <<EOF
2196 #line 2197 "configure"
2197 #include "confdefs.h"
2200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2201 { (eval echo configure:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2203 if test -z "$ac_err"; then
2205 eval "ac_cv_header_$ac_safe=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 eval "ac_cv_header_$ac_safe=no"
2215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2218 cat >> confdefs.h <<EOF
2219 #define $ac_tr_hdr 1
2223 echo "$ac_t""no" 1>&6
2229 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2230 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2242 if { (eval echo configure:2243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244 ac_cv_header_shadow_h=yes
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 ac_cv_header_shadow_h=no
2252 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2253 cat >> confdefs.h <<\EOF
2254 #define HAVE_SHADOW_H 1
2260 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_hdr 1
2296 echo "$ac_t""no" 1>&6
2300 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2304 echo "configure:2305: checking for $ac_hdr" >&5
2305 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then
2318 eval "ac_cv_header_$ac_safe=yes"
2321 echo "configure: failed program was:" >&5
2322 cat conftest.$ac_ext >&5
2324 eval "ac_cv_header_$ac_safe=no"
2328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2329 echo "$ac_t""yes" 1>&6
2330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2331 cat >> confdefs.h <<EOF
2332 #define $ac_tr_hdr 1
2336 echo "$ac_t""no" 1>&6
2340 for ac_hdr in stropts.h poll.h
2342 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2344 echo "configure:2345: checking for $ac_hdr" >&5
2345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2354 { (eval echo configure:2355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2356 if test -z "$ac_err"; then
2358 eval "ac_cv_header_$ac_safe=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2364 eval "ac_cv_header_$ac_safe=no"
2368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2369 echo "$ac_t""yes" 1>&6
2370 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2371 cat >> confdefs.h <<EOF
2372 #define $ac_tr_hdr 1
2376 echo "$ac_t""no" 1>&6
2380 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2384 echo "configure:2385: checking for $ac_hdr" >&5
2385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
2388 cat > conftest.$ac_ext <<EOF
2389 #line 2390 "configure"
2390 #include "confdefs.h"
2393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2394 { (eval echo configure:2395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2396 if test -z "$ac_err"; then
2398 eval "ac_cv_header_$ac_safe=yes"
2401 echo "configure: failed program was:" >&5
2402 cat conftest.$ac_ext >&5
2404 eval "ac_cv_header_$ac_safe=no"
2408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2409 echo "$ac_t""yes" 1>&6
2410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2411 cat >> confdefs.h <<EOF
2412 #define $ac_tr_hdr 1
2416 echo "$ac_t""no" 1>&6
2420 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2424 echo "configure:2425: checking for $ac_hdr" >&5
2425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2426 echo $ac_n "(cached) $ac_c" 1>&6
2428 cat > conftest.$ac_ext <<EOF
2429 #line 2430 "configure"
2430 #include "confdefs.h"
2433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2434 { (eval echo configure:2435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2436 if test -z "$ac_err"; then
2438 eval "ac_cv_header_$ac_safe=yes"
2441 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2444 eval "ac_cv_header_$ac_safe=no"
2448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2451 cat >> confdefs.h <<EOF
2452 #define $ac_tr_hdr 1
2456 echo "$ac_t""no" 1>&6
2461 # For experimental utmp support (lastlog on some BSD-like systems)
2462 for ac_hdr in utmp.h utmpx.h lastlog.h
2464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_hdr" >&5
2467 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 cat > conftest.$ac_ext <<EOF
2471 #line 2472 "configure"
2472 #include "confdefs.h"
2475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2476 { (eval echo configure:2477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2478 if test -z "$ac_err"; then
2480 eval "ac_cv_header_$ac_safe=yes"
2483 echo "configure: failed program was:" >&5
2484 cat conftest.$ac_ext >&5
2486 eval "ac_cv_header_$ac_safe=no"
2490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2491 echo "$ac_t""yes" 1>&6
2492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2493 cat >> confdefs.h <<EOF
2494 #define $ac_tr_hdr 1
2498 echo "$ac_t""no" 1>&6
2503 # For quotas on Veritas VxFS filesystems
2504 for ac_hdr in sys/fs/vx_quota.h
2506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 eval "ac_cv_header_$ac_safe=no"
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_hdr 1
2540 echo "$ac_t""no" 1>&6
2545 # For quotas on Linux XFS filesystems
2546 for ac_hdr in linux/xqm.h
2548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2550 echo "configure:2551: checking for $ac_hdr" >&5
2551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2564 eval "ac_cv_header_$ac_safe=yes"
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2570 eval "ac_cv_header_$ac_safe=no"
2574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2575 echo "$ac_t""yes" 1>&6
2576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2577 cat >> confdefs.h <<EOF
2578 #define $ac_tr_hdr 1
2582 echo "$ac_t""no" 1>&6
2587 echo $ac_n "checking size of int""... $ac_c" 1>&6
2588 echo "configure:2589: checking size of int" >&5
2589 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2592 if test "$cross_compiling" = yes; then
2593 ac_cv_sizeof_int=cross
2595 cat > conftest.$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2601 FILE *f=fopen("conftestval", "w");
2603 fprintf(f, "%d\n", sizeof(int));
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2609 ac_cv_sizeof_int=`cat conftestval`
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2620 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2621 cat >> confdefs.h <<EOF
2622 #define SIZEOF_INT $ac_cv_sizeof_int
2626 echo $ac_n "checking size of long""... $ac_c" 1>&6
2627 echo "configure:2628: checking size of long" >&5
2628 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 if test "$cross_compiling" = yes; then
2632 ac_cv_sizeof_long=cross
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2640 FILE *f=fopen("conftestval", "w");
2642 fprintf(f, "%d\n", sizeof(long));
2646 if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2648 ac_cv_sizeof_long=`cat conftestval`
2650 echo "configure: failed program was:" >&5
2651 cat conftest.$ac_ext >&5
2659 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2660 cat >> confdefs.h <<EOF
2661 #define SIZEOF_LONG $ac_cv_sizeof_long
2665 echo $ac_n "checking size of short""... $ac_c" 1>&6
2666 echo "configure:2667: checking size of short" >&5
2667 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 if test "$cross_compiling" = yes; then
2671 ac_cv_sizeof_short=cross
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2679 FILE *f=fopen("conftestval", "w");
2681 fprintf(f, "%d\n", sizeof(short));
2685 if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2687 ac_cv_sizeof_short=`cat conftestval`
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2692 ac_cv_sizeof_short=0
2698 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2699 cat >> confdefs.h <<EOF
2700 #define SIZEOF_SHORT $ac_cv_sizeof_short
2705 echo $ac_n "checking for working const""... $ac_c" 1>&6
2706 echo "configure:2707: checking for working const" >&5
2707 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2716 /* Ultrix mips cc rejects this. */
2717 typedef int charset[2]; const charset x;
2718 /* SunOS 4.1.1 cc rejects this. */
2719 char const *const *ccp;
2721 /* NEC SVR4.0.2 mips cc rejects this. */
2722 struct point {int x, y;};
2723 static struct point const zero = {0,0};
2724 /* AIX XL C 1.02.0.0 rejects this.
2725 It does not let you subtract one const X* pointer from another in an arm
2726 of an if-expression whose if-part is not a constant expression */
2727 const char *g = "string";
2728 ccp = &g + (g ? g-g : 0);
2729 /* HPUX 7.0 cc rejects these. */
2732 ccp = (char const *const *) p;
2733 { /* SCO 3.2v4 cc rejects this. */
2735 char const *s = 0 ? (char *) 0 : (char const *) 0;
2739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2741 const int *foo = &x[0];
2744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2745 typedef const int *iptr;
2749 { /* AIX XL C 1.02.0.0 rejects this saying
2750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2751 struct s { int j; const int *ap[3]; };
2752 struct s *b; b->j = 5;
2754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2760 if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2764 echo "configure: failed program was:" >&5
2765 cat conftest.$ac_ext >&5
2772 echo "$ac_t""$ac_cv_c_const" 1>&6
2773 if test $ac_cv_c_const = no; then
2774 cat >> confdefs.h <<\EOF
2780 echo $ac_n "checking for inline""... $ac_c" 1>&6
2781 echo "configure:2782: checking for inline" >&5
2782 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2783 echo $ac_n "(cached) $ac_c" 1>&6
2786 for ac_kw in inline __inline__ __inline; do
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2795 if { (eval echo configure:2796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 ac_cv_c_inline=$ac_kw; break
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2807 echo "$ac_t""$ac_cv_c_inline" 1>&6
2808 case "$ac_cv_c_inline" in
2810 no) cat >> confdefs.h <<\EOF
2814 *) cat >> confdefs.h <<EOF
2815 #define inline $ac_cv_c_inline
2820 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether byte ordering is bigendian" >&5
2822 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 ac_cv_c_bigendian=unknown
2826 # See if sys/param.h defines the BYTE_ORDER macro.
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2830 #include <sys/types.h>
2831 #include <sys/param.h>
2834 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2839 if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2841 # It does; now see whether it defined to BIG_ENDIAN or not.
2842 cat > conftest.$ac_ext <<EOF
2843 #line 2844 "configure"
2844 #include "confdefs.h"
2845 #include <sys/types.h>
2846 #include <sys/param.h>
2849 #if BYTE_ORDER != BIG_ENDIAN
2854 if { (eval echo configure:2855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2856 ac_cv_c_bigendian=yes
2858 echo "configure: failed program was:" >&5
2859 cat conftest.$ac_ext >&5
2861 ac_cv_c_bigendian=no
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2869 if test $ac_cv_c_bigendian = unknown; then
2870 if test "$cross_compiling" = yes; then
2871 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2877 /* Are we little or big endian? From Harbison&Steele. */
2881 char c[sizeof (long)];
2884 exit (u.c[sizeof (long) - 1] == 1);
2887 if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2889 ac_cv_c_bigendian=no
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2894 ac_cv_c_bigendian=yes
2902 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2903 if test $ac_cv_c_bigendian = yes; then
2904 cat >> confdefs.h <<\EOF
2905 #define WORDS_BIGENDIAN 1
2910 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2911 echo "configure:2912: checking whether char is unsigned" >&5
2912 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 if test "$GCC" = yes; then
2916 # GCC predefines this symbol on systems where it applies.
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 #ifdef __CHAR_UNSIGNED__
2925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2926 egrep "yes" >/dev/null 2>&1; then
2928 ac_cv_c_char_unsigned=yes
2931 ac_cv_c_char_unsigned=no
2936 if test "$cross_compiling" = yes; then
2937 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2939 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure"
2941 #include "confdefs.h"
2942 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2943 #if !defined(__STDC__) || __STDC__ != 1
2947 volatile char c = 255; exit(c < 0);
2950 if { (eval echo configure:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2952 ac_cv_c_char_unsigned=yes
2954 echo "configure: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2957 ac_cv_c_char_unsigned=no
2965 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2966 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2967 cat >> confdefs.h <<\EOF
2968 #define __CHAR_UNSIGNED__ 1
2974 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2975 echo "configure:2976: checking return type of signal handlers" >&5
2976 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <sys/types.h>
2988 extern "C" void (*signal (int, void (*)(int)))(int);
2990 void (*signal ()) ();
2997 if { (eval echo configure:2998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2999 ac_cv_type_signal=void
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3004 ac_cv_type_signal=int
3009 echo "$ac_t""$ac_cv_type_signal" 1>&6
3010 cat >> confdefs.h <<EOF
3011 #define RETSIGTYPE $ac_cv_type_signal
3015 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3016 echo "configure:3017: checking for uid_t in sys/types.h" >&5
3017 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 #include <sys/types.h>
3025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 egrep "uid_t" >/dev/null 2>&1; then
3028 ac_cv_type_uid_t=yes
3037 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3038 if test $ac_cv_type_uid_t = no; then
3039 cat >> confdefs.h <<\EOF
3043 cat >> confdefs.h <<\EOF
3049 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3050 echo "configure:3051: checking for mode_t" >&5
3051 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 cat > conftest.$ac_ext <<EOF
3055 #line 3056 "configure"
3056 #include "confdefs.h"
3057 #include <sys/types.h>
3063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3064 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3066 ac_cv_type_mode_t=yes
3069 ac_cv_type_mode_t=no
3074 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3075 if test $ac_cv_type_mode_t = no; then
3076 cat >> confdefs.h <<\EOF
3082 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3083 echo "configure:3084: checking for off_t" >&5
3084 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 #include <sys/types.h>
3096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3097 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3099 ac_cv_type_off_t=yes
3107 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3108 if test $ac_cv_type_off_t = no; then
3109 cat >> confdefs.h <<\EOF
3115 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3116 echo "configure:3117: checking for size_t" >&5
3117 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3123 #include <sys/types.h>
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3132 ac_cv_type_size_t=yes
3135 ac_cv_type_size_t=no
3140 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3141 if test $ac_cv_type_size_t = no; then
3142 cat >> confdefs.h <<\EOF
3143 #define size_t unsigned
3148 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3149 echo "configure:3150: checking for pid_t" >&5
3150 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3153 cat > conftest.$ac_ext <<EOF
3154 #line 3155 "configure"
3155 #include "confdefs.h"
3156 #include <sys/types.h>
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3165 ac_cv_type_pid_t=yes
3173 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3174 if test $ac_cv_type_pid_t = no; then
3175 cat >> confdefs.h <<\EOF
3181 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3182 echo "configure:3183: checking for st_rdev in struct stat" >&5
3183 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 #include <sys/types.h>
3190 #include <sys/stat.h>
3192 struct stat s; s.st_rdev;
3195 if { (eval echo configure:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3197 ac_cv_struct_st_rdev=yes
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_struct_st_rdev=no
3207 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3208 if test $ac_cv_struct_st_rdev = yes; then
3209 cat >> confdefs.h <<\EOF
3210 #define HAVE_ST_RDEV 1
3215 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3216 echo "configure:3217: checking for d_off in dirent" >&5
3217 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3225 #include <sys/types.h>
3228 struct dirent d; d.d_off;
3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3233 ac_cv_dirent_d_off=yes
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 ac_cv_dirent_d_off=no
3243 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3244 if test $ac_cv_dirent_d_off = yes; then
3245 cat >> confdefs.h <<\EOF
3246 #define HAVE_DIRENT_D_OFF 1
3251 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3252 echo "configure:3253: checking for ino_t" >&5
3253 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+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 #include <sys/types.h>
3265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3266 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3268 ac_cv_type_ino_t=yes
3276 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3277 if test $ac_cv_type_ino_t = no; then
3278 cat >> confdefs.h <<\EOF
3279 #define ino_t unsigned
3284 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3285 echo "configure:3286: checking for loff_t" >&5
3286 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <sys/types.h>
3298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3299 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3301 ac_cv_type_loff_t=yes
3304 ac_cv_type_loff_t=no
3309 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3310 if test $ac_cv_type_loff_t = no; then
3311 cat >> confdefs.h <<\EOF
3312 #define loff_t off_t
3317 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3318 echo "configure:3319: checking for offset_t" >&5
3319 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3320 echo $ac_n "(cached) $ac_c" 1>&6
3322 cat > conftest.$ac_ext <<EOF
3323 #line 3324 "configure"
3324 #include "confdefs.h"
3325 #include <sys/types.h>
3331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3334 ac_cv_type_offset_t=yes
3337 ac_cv_type_offset_t=no
3342 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3343 if test $ac_cv_type_offset_t = no; then
3344 cat >> confdefs.h <<\EOF
3345 #define offset_t loff_t
3350 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3351 echo "configure:3352: checking for ssize_t" >&5
3352 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 #include <sys/types.h>
3364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3365 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3367 ac_cv_type_ssize_t=yes
3370 ac_cv_type_ssize_t=no
3375 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3376 if test $ac_cv_type_ssize_t = no; then
3377 cat >> confdefs.h <<\EOF
3383 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3384 echo "configure:3385: checking for wchar_t" >&5
3385 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #include <sys/types.h>
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3400 ac_cv_type_wchar_t=yes
3403 ac_cv_type_wchar_t=no
3408 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3409 if test $ac_cv_type_wchar_t = no; then
3410 cat >> confdefs.h <<\EOF
3411 #define wchar_t unsigned short
3417 ############################################
3418 # for cups support we need libcups, and a handful of header files
3420 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3421 echo "configure:3422: checking for httpConnect in -lcups" >&5
3422 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_save_LIBS="$LIBS"
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3455 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3457 cat >> confdefs.h <<EOF
3458 #define $ac_tr_lib 1
3464 echo "$ac_t""no" 1>&6
3468 # I wonder if there is a nicer way of doing this?
3470 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3471 for ac_hdr in cups/cups.h cups/language.h
3473 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3474 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3475 echo "configure:3476: checking for $ac_hdr" >&5
3476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3485 { (eval echo configure:3486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3487 if test -z "$ac_err"; then
3489 eval "ac_cv_header_$ac_safe=yes"
3492 echo "configure: failed program was:" >&5
3493 cat conftest.$ac_ext >&5
3495 eval "ac_cv_header_$ac_safe=no"
3499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3500 echo "$ac_t""yes" 1>&6
3501 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3502 cat >> confdefs.h <<EOF
3503 #define $ac_tr_hdr 1
3507 echo "$ac_t""no" 1>&6
3511 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3512 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3513 cat >> confdefs.h <<\EOF
3521 ############################################
3522 # we need libdl for PAM and the new VFS code
3523 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3524 echo "configure:3525: checking for dlopen in -ldl" >&5
3525 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 ac_save_LIBS="$LIBS"
3531 cat > conftest.$ac_ext <<EOF
3532 #line 3533 "configure"
3533 #include "confdefs.h"
3534 /* Override any gcc2 internal prototype to avoid an error. */
3535 /* We use char because int might match the return type of a gcc2
3536 builtin and then its argument prototype would still apply. */
3543 if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3545 eval "ac_cv_lib_$ac_lib_var=yes"
3547 echo "configure: failed program was:" >&5
3548 cat conftest.$ac_ext >&5
3550 eval "ac_cv_lib_$ac_lib_var=no"
3553 LIBS="$ac_save_LIBS"
3556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3557 echo "$ac_t""yes" 1>&6
3559 cat >> confdefs.h <<\EOF
3560 #define HAVE_LIBDL 1
3564 echo "$ac_t""no" 1>&6
3568 ############################################
3569 # check if the compiler can do immediate structures
3570 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3571 echo "configure:3572: checking for immediate structures" >&5
3572 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3576 cat > conftest.$ac_ext <<EOF
3577 #line 3578 "configure"
3578 #include "confdefs.h"
3583 #define X_FOOBAR(x) ((FOOBAR) { x })
3584 typedef struct {unsigned x;} FOOBAR;
3585 FOOBAR f = X_FOOBAR(1);
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 samba_cv_immediate_structures=yes
3593 echo "configure: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3596 samba_cv_immediate_structures=no
3601 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3602 if test x"$samba_cv_immediate_structures" = x"yes"; then
3603 cat >> confdefs.h <<\EOF
3604 #define HAVE_IMMEDIATE_STRUCTURES 1
3609 ############################################
3610 # check for unix domain sockets
3611 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3612 echo "configure:3613: checking for unix domain sockets" >&5
3613 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3621 #include <sys/types.h>
3624 #include <sys/socket.h>
3628 struct sockaddr_un sunaddr;
3629 sunaddr.sun_family = AF_UNIX;
3633 if { (eval echo configure:3634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3635 samba_cv_unixsocket=yes
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 samba_cv_unixsocket=no
3645 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3646 if test x"$samba_cv_unixsocket" = x"yes"; then
3647 cat >> confdefs.h <<\EOF
3648 #define HAVE_UNIXSOCKET 1
3654 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3655 echo "configure:3656: checking for socklen_t type" >&5
3656 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3660 cat > conftest.$ac_ext <<EOF
3661 #line 3662 "configure"
3662 #include "confdefs.h"
3664 #include <sys/types.h>
3669 #include <sys/socket.h>
3674 if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3676 samba_cv_socklen_t=yes
3678 echo "configure: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3681 samba_cv_socklen_t=no
3686 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3687 if test x"$samba_cv_socklen_t" = x"yes"; then
3688 cat >> confdefs.h <<\EOF
3689 #define HAVE_SOCKLEN_T_TYPE 1
3694 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3695 echo "configure:3696: checking for sig_atomic_t type" >&5
3696 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3704 #include <sys/types.h>
3714 if { (eval echo configure:3715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3716 samba_cv_sig_atomic_t=yes
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3721 samba_cv_sig_atomic_t=no
3726 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3727 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3728 cat >> confdefs.h <<\EOF
3729 #define HAVE_SIG_ATOMIC_T_TYPE 1
3734 # stupid headers have the functions but no declaration. grrrr.
3736 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3737 echo "configure:3738: checking for errno declaration" >&5
3738 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3750 if { (eval echo configure:3751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 ac_cv_have_errno_decl=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3757 ac_cv_have_errno_decl=no
3762 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3763 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3764 cat >> confdefs.h <<\EOF
3765 #define HAVE_ERRNO_DECL 1
3771 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3772 echo "configure:3773: checking for setresuid declaration" >&5
3773 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3777 cat > conftest.$ac_ext <<EOF
3778 #line 3779 "configure"
3779 #include "confdefs.h"
3782 int i = (int)setresuid
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 ac_cv_have_setresuid_decl=yes
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3792 ac_cv_have_setresuid_decl=no
3797 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3798 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3799 cat >> confdefs.h <<\EOF
3800 #define HAVE_SETRESUID_DECL 1
3806 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3807 echo "configure:3808: checking for setresgid declaration" >&5
3808 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3817 int i = (int)setresgid
3820 if { (eval echo configure:3821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3822 ac_cv_have_setresgid_decl=yes
3824 echo "configure: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 ac_cv_have_setresgid_decl=no
3832 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3833 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3834 cat >> confdefs.h <<\EOF
3835 #define HAVE_SETRESGID_DECL 1
3841 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3842 echo "configure:3843: checking for asprintf declaration" >&5
3843 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3844 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3852 int i = (int)asprintf
3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3857 ac_cv_have_asprintf_decl=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.$ac_ext >&5
3862 ac_cv_have_asprintf_decl=no
3867 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3868 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3869 cat >> confdefs.h <<\EOF
3870 #define HAVE_ASPRINTF_DECL 1
3876 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3877 echo "configure:3878: checking for vasprintf declaration" >&5
3878 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3882 cat > conftest.$ac_ext <<EOF