/tmp/cvsVTEaY5
[Samba/gbeck.git] / source / configure
blobc7b8fe9a9136a50faca92dca788174e544682969
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_default_prefix=/usr/local/samba
15 ac_help="$ac_help
16 --enable-debug turn on debugging [default=no]"
17 ac_help="$ac_help
18 --with-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
19 ac_help="$ac_help
20 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
21 ac_help="$ac_help
22 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
23 ac_help="$ac_help
24 --with-smbwrapper Include SMB wrapper support (default=no) "
25 ac_help="$ac_help
26 --with-afs Include AFS support (default=no) "
27 ac_help="$ac_help
28 --with-dce-dfs Include DCE/DFS support (default=no)"
29 ac_help="$ac_help
30 --with-krb4=base-dir Include Kerberos IV support (default=no)"
31 ac_help="$ac_help
32 --with-krb5=base-dir Include Kerberos 5 support (defualt=no)"
33 ac_help="$ac_help
34 --with-automount Include AUTOMOUNT support (default=no)"
35 ac_help="$ac_help
36 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
37 ac_help="$ac_help
38 --with-pam Include PAM password database support (default=no)"
39 ac_help="$ac_help
40 --with-pam_smbpass Include the smbpass PAM module (default=no)"
41 ac_help="$ac_help
42 --with-tdbsam Include experimental TDB password database (default=no)"
43 ac_help="$ac_help
44 --with-ldapsam Include Experimental LDAP-Sam support (default=no)"
45 ac_help="$ac_help
46 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
47 ac_help="$ac_help
48 --with-ssl Include SSL support (default=no)"
49 ac_help="$ac_help
50 --with-syslog Include experimental SYSLOG support (default=no)"
51 ac_help="$ac_help
52 --with-profiling-data Include gathering source code profile information (default=no)"
53 ac_help="$ac_help
54 --with-quotas Include experimental disk-quota support (default=no)"
55 ac_help="$ac_help
56 --with-utmp Include experimental utmp accounting (default=no)"
57 ac_help="$ac_help
58 --with-msdfs Include MS Dfs support (default=no)"
59 ac_help="$ac_help
60 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
61 ac_help="$ac_help
62 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
63 ac_help="$ac_help
64 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
65 ac_help="$ac_help
66 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
67 ac_help="$ac_help
68 --with-acl-support Include ACL support (default=no)"
69 ac_help="$ac_help
70 --with-winbind Build winbind (default, if supported by OS)"
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=include/includes.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
582 # we want to be compatibe with older versions of Samba
600 # compile with optimisation and without debugging by default
601 CFLAGS="-O ${CFLAGS}"
603 # Check whether --enable-debug or --disable-debug was given.
604 if test "${enable_debug+set}" = set; then
605 enableval="$enable_debug"
606 if eval "test x$enable_debug = xyes"; then
607 CFLAGS="${CFLAGS} -g"
613 # Extract the first word of "gcc", so it can be a program name with args.
614 set dummy gcc; ac_word=$2
615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
616 echo "configure:617: checking for $ac_word" >&5
617 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 if test -n "$CC"; then
621 ac_cv_prog_CC="$CC" # Let the user override the test.
622 else
623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
624 ac_dummy="$PATH"
625 for ac_dir in $ac_dummy; do
626 test -z "$ac_dir" && ac_dir=.
627 if test -f $ac_dir/$ac_word; then
628 ac_cv_prog_CC="gcc"
629 break
631 done
632 IFS="$ac_save_ifs"
635 CC="$ac_cv_prog_CC"
636 if test -n "$CC"; then
637 echo "$ac_t""$CC" 1>&6
638 else
639 echo "$ac_t""no" 1>&6
642 if test -z "$CC"; then
643 # Extract the first word of "cc", so it can be a program name with args.
644 set dummy cc; ac_word=$2
645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
646 echo "configure:647: checking for $ac_word" >&5
647 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
649 else
650 if test -n "$CC"; then
651 ac_cv_prog_CC="$CC" # Let the user override the test.
652 else
653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
654 ac_prog_rejected=no
655 ac_dummy="$PATH"
656 for ac_dir in $ac_dummy; do
657 test -z "$ac_dir" && ac_dir=.
658 if test -f $ac_dir/$ac_word; then
659 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
660 ac_prog_rejected=yes
661 continue
663 ac_cv_prog_CC="cc"
664 break
666 done
667 IFS="$ac_save_ifs"
668 if test $ac_prog_rejected = yes; then
669 # We found a bogon in the path, so make sure we never use it.
670 set dummy $ac_cv_prog_CC
671 shift
672 if test $# -gt 0; then
673 # We chose a different compiler from the bogus one.
674 # However, it has the same basename, so the bogon will be chosen
675 # first if we set CC to just the basename; use the full file name.
676 shift
677 set dummy "$ac_dir/$ac_word" "$@"
678 shift
679 ac_cv_prog_CC="$@"
684 CC="$ac_cv_prog_CC"
685 if test -n "$CC"; then
686 echo "$ac_t""$CC" 1>&6
687 else
688 echo "$ac_t""no" 1>&6
691 if test -z "$CC"; then
692 case "`uname -s`" in
693 *win32* | *WIN32*)
694 # Extract the first word of "cl", so it can be a program name with args.
695 set dummy cl; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700 else
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
703 else
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
705 ac_dummy="$PATH"
706 for ac_dir in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 ac_cv_prog_CC="cl"
710 break
712 done
713 IFS="$ac_save_ifs"
716 CC="$ac_cv_prog_CC"
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
719 else
720 echo "$ac_t""no" 1>&6
723 esac
725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
729 echo "configure:730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
731 ac_ext=c
732 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
733 ac_cpp='$CPP $CPPFLAGS'
734 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
735 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
736 cross_compiling=$ac_cv_prog_cc_cross
738 cat > conftest.$ac_ext << EOF
740 #line 741 "configure"
741 #include "confdefs.h"
743 main(){return(0);}
745 if { (eval echo configure:746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
746 ac_cv_prog_cc_works=yes
747 # If we can't run a trivial program, we are probably using a cross compiler.
748 if (./conftest; exit) 2>/dev/null; then
749 ac_cv_prog_cc_cross=no
750 else
751 ac_cv_prog_cc_cross=yes
753 else
754 echo "configure: failed program was:" >&5
755 cat conftest.$ac_ext >&5
756 ac_cv_prog_cc_works=no
758 rm -fr conftest*
759 ac_ext=c
760 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
761 ac_cpp='$CPP $CPPFLAGS'
762 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
763 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
764 cross_compiling=$ac_cv_prog_cc_cross
766 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
767 if test $ac_cv_prog_cc_works = no; then
768 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
772 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
773 cross_compiling=$ac_cv_prog_cc_cross
775 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
776 echo "configure:777: checking whether we are using GNU C" >&5
777 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
779 else
780 cat > conftest.c <<EOF
781 #ifdef __GNUC__
782 yes;
783 #endif
785 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
786 ac_cv_prog_gcc=yes
787 else
788 ac_cv_prog_gcc=no
792 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
794 if test $ac_cv_prog_gcc = yes; then
795 GCC=yes
796 else
797 GCC=
800 ac_test_CFLAGS="${CFLAGS+set}"
801 ac_save_CFLAGS="$CFLAGS"
802 CFLAGS=
803 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
804 echo "configure:805: checking whether ${CC-cc} accepts -g" >&5
805 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
807 else
808 echo 'void f(){}' > conftest.c
809 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
810 ac_cv_prog_cc_g=yes
811 else
812 ac_cv_prog_cc_g=no
814 rm -f conftest*
818 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
819 if test "$ac_test_CFLAGS" = set; then
820 CFLAGS="$ac_save_CFLAGS"
821 elif test $ac_cv_prog_cc_g = yes; then
822 if test "$GCC" = yes; then
823 CFLAGS="-g -O2"
824 else
825 CFLAGS="-g"
827 else
828 if test "$GCC" = yes; then
829 CFLAGS="-O2"
830 else
831 CFLAGS=
835 ac_aux_dir=
836 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
837 if test -f $ac_dir/install-sh; then
838 ac_aux_dir=$ac_dir
839 ac_install_sh="$ac_aux_dir/install-sh -c"
840 break
841 elif test -f $ac_dir/install.sh; then
842 ac_aux_dir=$ac_dir
843 ac_install_sh="$ac_aux_dir/install.sh -c"
844 break
846 done
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
850 ac_config_guess=$ac_aux_dir/config.guess
851 ac_config_sub=$ac_aux_dir/config.sub
852 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
854 # Find a good install program. We prefer a C program (faster),
855 # so one script is as good as another. But avoid the broken or
856 # incompatible versions:
857 # SysV /etc/install, /usr/sbin/install
858 # SunOS /usr/etc/install
859 # IRIX /sbin/install
860 # AIX /bin/install
861 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
862 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
863 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
864 # ./install, which can be erroneously created by make from ./install.sh.
865 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
866 echo "configure:867: checking for a BSD compatible install" >&5
867 if test -z "$INSTALL"; then
868 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
870 else
871 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
872 for ac_dir in $PATH; do
873 # Account for people who put trailing slashes in PATH elements.
874 case "$ac_dir/" in
875 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
877 # OSF1 and SCO ODT 3.0 have their own names for install.
878 # Don't use installbsd from OSF since it installs stuff as root
879 # by default.
880 for ac_prog in ginstall scoinst install; do
881 if test -f $ac_dir/$ac_prog; then
882 if test $ac_prog = install &&
883 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
884 # AIX install. It has an incompatible calling convention.
886 else
887 ac_cv_path_install="$ac_dir/$ac_prog -c"
888 break 2
891 done
893 esac
894 done
895 IFS="$ac_save_IFS"
898 if test "${ac_cv_path_install+set}" = set; then
899 INSTALL="$ac_cv_path_install"
900 else
901 # As a last resort, use the slow shell script. We don't cache a
902 # path for INSTALL within a source directory, because that will
903 # break other packages using the cache if that directory is
904 # removed, or if the path is relative.
905 INSTALL="$ac_install_sh"
908 echo "$ac_t""$INSTALL" 1>&6
910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
911 # It thinks the first close brace ends the variable substitution.
912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
918 for ac_prog in mawk gawk nawk awk
920 # Extract the first word of "$ac_prog", so it can be a program name with args.
921 set dummy $ac_prog; ac_word=$2
922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
923 echo "configure:924: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926 else
927 if test -n "$AWK"; then
928 ac_cv_prog_AWK="$AWK" # Let the user override the test.
929 else
930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
931 ac_dummy="$PATH"
932 for ac_dir in $ac_dummy; do
933 test -z "$ac_dir" && ac_dir=.
934 if test -f $ac_dir/$ac_word; then
935 ac_cv_prog_AWK="$ac_prog"
936 break
938 done
939 IFS="$ac_save_ifs"
942 AWK="$ac_cv_prog_AWK"
943 if test -n "$AWK"; then
944 echo "$ac_t""$AWK" 1>&6
945 else
946 echo "$ac_t""no" 1>&6
949 test -n "$AWK" && break
950 done
953 if test "x$CC" != xcc; then
954 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
955 echo "configure:956: checking whether $CC and cc understand -c and -o together" >&5
956 else
957 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
958 echo "configure:959: checking whether cc understands -c and -o together" >&5
960 set dummy $CC; ac_cc="`echo $2 |
961 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
962 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
964 else
965 echo 'foo(){}' > conftest.c
966 # Make sure it works both with $CC and with simple cc.
967 # We do the test twice because some compilers refuse to overwrite an
968 # existing .o file with -o, though they will create one.
969 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
970 if { (eval echo configure:971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
971 test -f conftest.o && { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
972 then
973 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
974 if test "x$CC" != xcc; then
975 # Test first that cc exists at all.
976 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
977 ac_try='cc -c conftest.c -o conftest.o 1>&5'
978 if { (eval echo configure:979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
979 test -f conftest.o && { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
980 then
981 # cc works too.
983 else
984 # cc exists but doesn't like -o.
985 eval ac_cv_prog_cc_${ac_cc}_c_o=no
989 else
990 eval ac_cv_prog_cc_${ac_cc}_c_o=no
992 rm -f conftest*
995 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
996 echo "$ac_t""yes" 1>&6
997 else
998 echo "$ac_t""no" 1>&6
999 cat >> confdefs.h <<\EOF
1000 #define NO_MINUS_C_MINUS_O 1
1005 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1006 BROKEN_CC=
1007 else
1008 BROKEN_CC=#
1012 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1013 echo "configure:1014: checking that the C compiler understands volatile" >&5
1014 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1018 cat > conftest.$ac_ext <<EOF
1019 #line 1020 "configure"
1020 #include "confdefs.h"
1021 #include <sys/types.h>
1022 int main() {
1023 volatile int i = 0
1024 ; return 0; }
1026 if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1027 rm -rf conftest*
1028 samba_cv_volatile=yes
1029 else
1030 echo "configure: failed program was:" >&5
1031 cat conftest.$ac_ext >&5
1032 rm -rf conftest*
1033 samba_cv_volatile=no
1035 rm -f conftest*
1038 echo "$ac_t""$samba_cv_volatile" 1>&6
1039 if test x"$samba_cv_volatile" = x"yes"; then
1040 cat >> confdefs.h <<\EOF
1041 #define HAVE_VOLATILE 1
1047 #################################################
1048 # set codepage directory location
1049 # Check whether --with-codepagedir or --without-codepagedir was given.
1050 if test "${with_codepagedir+set}" = set; then
1051 withval="$with_codepagedir"
1052 case "$withval" in
1053 yes|no)
1055 # Just in case anybody does it
1057 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
1060 codepagedir="$withval"
1062 esac
1068 # Do some error checking and defaulting for the host and target type.
1069 # The inputs are:
1070 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1072 # The rules are:
1073 # 1. You are not allowed to specify --host, --target, and nonopt at the
1074 # same time.
1075 # 2. Host defaults to nonopt.
1076 # 3. If nonopt is not specified, then host defaults to the current host,
1077 # as determined by config.guess.
1078 # 4. Target and build default to nonopt.
1079 # 5. If nonopt is not specified, then target and build default to host.
1081 # The aliases save the names the user supplied, while $host etc.
1082 # will get canonicalized.
1083 case $host---$target---$nonopt in
1084 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1085 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1086 esac
1089 # Make sure we can run config.sub.
1090 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1091 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1094 echo $ac_n "checking host system type""... $ac_c" 1>&6
1095 echo "configure:1096: checking host system type" >&5
1097 host_alias=$host
1098 case "$host_alias" in
1099 NONE)
1100 case $nonopt in
1101 NONE)
1102 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1103 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1104 fi ;;
1105 *) host_alias=$nonopt ;;
1106 esac ;;
1107 esac
1109 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1110 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1111 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1112 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1113 echo "$ac_t""$host" 1>&6
1115 echo $ac_n "checking target system type""... $ac_c" 1>&6
1116 echo "configure:1117: checking target system type" >&5
1118 target_alias=$target
1119 case "$target_alias" in
1120 NONE)
1121 case $nonopt in
1122 NONE) target_alias=$host_alias ;;
1123 *) target_alias=$nonopt ;;
1124 esac ;;
1125 esac
1127 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1128 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1129 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1130 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1131 echo "$ac_t""$target" 1>&6
1133 echo $ac_n "checking build system type""... $ac_c" 1>&6
1134 echo "configure:1135: checking build system type" >&5
1136 build_alias=$build
1137 case "$build_alias" in
1138 NONE)
1139 case $nonopt in
1140 NONE) build_alias=$host_alias ;;
1141 *) build_alias=$nonopt ;;
1142 esac ;;
1143 esac
1145 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1146 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1147 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1148 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1149 echo "$ac_t""$build" 1>&6
1151 test "$host_alias" != "$target_alias" &&
1152 test "$program_prefix$program_suffix$program_transform_name" = \
1153 NONENONEs,x,x, &&
1154 program_prefix=${target_alias}-
1157 case "$host_os" in
1158 *irix6*) cat >> confdefs.h <<\EOF
1159 #include <standards.h>
1163 esac
1167 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1168 echo "configure:1169: checking config.cache system type" >&5
1169 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1170 test x"$ac_cv_host_system_type" != x"$host"; } ||
1171 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1172 test x"$ac_cv_build_system_type" != x"$build"; } ||
1173 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1174 test x"$ac_cv_target_system_type" != x"$target"; }; then
1175 echo "$ac_t""different" 1>&6
1176 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1177 else
1178 echo "$ac_t""same" 1>&6
1180 ac_cv_host_system_type="$host"
1181 ac_cv_build_system_type="$build"
1182 ac_cv_target_system_type="$target"
1186 # Config CPPFLAG settings for strange OS's that must be set
1187 # before other tests.
1189 case "$host_os" in
1190 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1191 *hpux*)
1192 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${CC-cc} accepts -Ae" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1196 else
1197 echo 'void f(){}' > conftest.c
1198 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1199 ac_cv_prog_cc_Ae=yes
1200 else
1201 ac_cv_prog_cc_Ae=no
1203 rm -f conftest*
1207 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1208 # mmap on HPUX is completely broken...
1209 cat >> confdefs.h <<\EOF
1210 #define MMAP_BLACKLIST 1
1213 if test $ac_cv_prog_cc_Ae = yes; then
1214 CPPFLAGS="$CPPFLAGS -Ae"
1217 # Defines needed for HPUX support.
1218 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1219 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1221 case `uname -r` in
1222 *9*|*10*)
1223 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE"
1224 cat >> confdefs.h <<\EOF
1225 #define USE_BOTH_CRYPT_CALLS 1
1229 *11*)
1230 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE"
1231 cat >> confdefs.h <<\EOF
1232 #define USE_BOTH_CRYPT_CALLS 1
1236 esac
1239 # AIX4.x doesn't even admit to having large
1240 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1242 *aix4*)
1243 echo "$ac_t""enabling large file support" 1>&6
1244 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1247 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1248 # to the existance of large files..
1249 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1250 # recommendations on large file support, however it makes the
1251 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1252 # recommendation makes the compile fail on gcc2.7. JRA.
1254 *solaris*)
1255 case `uname -r` in
1256 5.6*|5.7*)
1257 echo "$ac_t""enabling large file support" 1>&6
1258 if test "$ac_cv_prog_gcc" = yes; then
1259 ${CC-cc} -v >conftest.c 2>&1
1260 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1261 rm -fr conftest.c
1262 case "$ac_cv_gcc_compiler_version_number" in
1263 *"gcc version 2.6"*|*"gcc version 2.7"*)
1264 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1267 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1269 esac
1270 else
1271 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1274 esac
1277 # Tests needed for SINIX large file support.
1279 *sysv4*)
1280 if test $host = mips-sni-sysv4 ; then
1281 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1282 echo "configure:1283: checking for LFS support" >&5
1283 old_CPPFLAGS="$CPPFLAGS"
1284 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1285 if test "$cross_compiling" = yes; then
1286 SINIX_LFS_SUPPORT=cross
1287 else
1288 cat > conftest.$ac_ext <<EOF
1289 #line 1290 "configure"
1290 #include "confdefs.h"
1292 #include <unistd.h>
1293 main () {
1294 #if _LFS64_LARGEFILE == 1
1295 exit(0);
1296 #else
1297 exit(1);
1298 #endif
1301 if { (eval echo configure:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1302 then
1303 SINIX_LFS_SUPPORT=yes
1304 else
1305 echo "configure: failed program was:" >&5
1306 cat conftest.$ac_ext >&5
1307 rm -fr conftest*
1308 SINIX_LFS_SUPPORT=no
1310 rm -fr conftest*
1313 CPPFLAGS="$old_CPPFLAGS"
1314 if test x$SINIX_LFS_SUPPORT = xyes ; then
1315 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1316 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1317 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1318 LIBS="`getconf LFS64_LIBS` $LIBS"
1320 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1324 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1326 *linux*)
1327 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1328 echo "configure:1329: checking for LFS support" >&5
1329 old_CPPFLAGS="$CPPFLAGS"
1330 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1331 if test "$cross_compiling" = yes; then
1332 LINUX_LFS_SUPPORT=cross
1333 else
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1338 #include <unistd.h>
1339 #include <sys/utsname.h>
1340 main() {
1341 #if _LFS64_LARGEFILE == 1
1342 struct utsname uts;
1343 char *release;
1344 int major, minor;
1346 /* Ensure this is glibc 2.2 or higher */
1347 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1348 int libc_major = __GLIBC__;
1349 int libc_minor = __GLIBC_MINOR__;
1351 if (libc_major < 2)
1352 exit(1);
1353 if (libc_minor < 2)
1354 exit(1);
1355 #endif
1357 /* Ensure this is kernel 2.4 or higher */
1359 uname(&uts);
1360 release = uts.release;
1361 major = atoi(strsep(&release, "."));
1362 minor = atoi(strsep(&release, "."));
1364 if (major > 2 || (major == 2 && minor > 3))
1365 exit(0);
1366 exit(1);
1367 #else
1368 exit(1);
1369 #endif
1373 if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1374 then
1375 LINUX_LFS_SUPPORT=yes
1376 else
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -fr conftest*
1380 LINUX_LFS_SUPPORT=no
1382 rm -fr conftest*
1385 CPPFLAGS="$old_CPPFLAGS"
1386 if test x$LINUX_LFS_SUPPORT = xyes ; then
1387 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1389 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1392 *hurd*)
1393 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1394 echo "configure:1395: checking for LFS support" >&5
1395 old_CPPFLAGS="$CPPFLAGS"
1396 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1397 if test "$cross_compiling" = yes; then
1398 GLIBC_LFS_SUPPORT=cross
1399 else
1400 cat > conftest.$ac_ext <<EOF
1401 #line 1402 "configure"
1402 #include "confdefs.h"
1404 #include <unistd.h>
1405 main () {
1406 #if _LFS64_LARGEFILE == 1
1407 exit(0);
1408 #else
1409 exit(1);
1410 #endif
1413 if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1414 then
1415 GLIBC_LFS_SUPPORT=yes
1416 else
1417 echo "configure: failed program was:" >&5
1418 cat conftest.$ac_ext >&5
1419 rm -fr conftest*
1420 GLIBC_LFS_SUPPORT=no
1422 rm -fr conftest*
1425 CPPFLAGS="$old_CPPFLAGS"
1426 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1427 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1429 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1432 esac
1434 echo $ac_n "checking for inline""... $ac_c" 1>&6
1435 echo "configure:1436: checking for inline" >&5
1436 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1438 else
1439 ac_cv_c_inline=no
1440 for ac_kw in inline __inline__ __inline; do
1441 cat > conftest.$ac_ext <<EOF
1442 #line 1443 "configure"
1443 #include "confdefs.h"
1445 int main() {
1446 } $ac_kw foo() {
1447 ; return 0; }
1449 if { (eval echo configure:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450 rm -rf conftest*
1451 ac_cv_c_inline=$ac_kw; break
1452 else
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1456 rm -f conftest*
1457 done
1461 echo "$ac_t""$ac_cv_c_inline" 1>&6
1462 case "$ac_cv_c_inline" in
1463 inline | yes) ;;
1464 no) cat >> confdefs.h <<\EOF
1465 #define inline
1468 *) cat >> confdefs.h <<EOF
1469 #define inline $ac_cv_c_inline
1472 esac
1474 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1475 echo "configure:1476: checking how to run the C preprocessor" >&5
1476 # On Suns, sometimes $CPP names a directory.
1477 if test -n "$CPP" && test -d "$CPP"; then
1478 CPP=
1480 if test -z "$CPP"; then
1481 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1483 else
1484 # This must be in double quotes, not single quotes, because CPP may get
1485 # substituted into the Makefile and "${CC-cc}" will confuse make.
1486 CPP="${CC-cc} -E"
1487 # On the NeXT, cc -E runs the code through the compiler's parser,
1488 # not just through cpp.
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 #include <assert.h>
1493 Syntax Error
1495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496 { (eval echo configure:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1498 if test -z "$ac_err"; then
1500 else
1501 echo "$ac_err" >&5
1502 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1504 rm -rf conftest*
1505 CPP="${CC-cc} -E -traditional-cpp"
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1509 #include <assert.h>
1510 Syntax Error
1512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1513 { (eval echo configure:1514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1515 if test -z "$ac_err"; then
1517 else
1518 echo "$ac_err" >&5
1519 echo "configure: failed program was:" >&5
1520 cat conftest.$ac_ext >&5
1521 rm -rf conftest*
1522 CPP="${CC-cc} -nologo -E"
1523 cat > conftest.$ac_ext <<EOF
1524 #line 1525 "configure"
1525 #include "confdefs.h"
1526 #include <assert.h>
1527 Syntax Error
1529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1530 { (eval echo configure:1531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1532 if test -z "$ac_err"; then
1534 else
1535 echo "$ac_err" >&5
1536 echo "configure: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 rm -rf conftest*
1539 CPP=/lib/cpp
1541 rm -f conftest*
1543 rm -f conftest*
1545 rm -f conftest*
1546 ac_cv_prog_CPP="$CPP"
1548 CPP="$ac_cv_prog_CPP"
1549 else
1550 ac_cv_prog_CPP="$CPP"
1552 echo "$ac_t""$CPP" 1>&6
1554 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1555 echo "configure:1556: checking for ANSI C header files" >&5
1556 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1558 else
1559 cat > conftest.$ac_ext <<EOF
1560 #line 1561 "configure"
1561 #include "confdefs.h"
1562 #include <stdlib.h>
1563 #include <stdarg.h>
1564 #include <string.h>
1565 #include <float.h>
1567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1568 { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1570 if test -z "$ac_err"; then
1571 rm -rf conftest*
1572 ac_cv_header_stdc=yes
1573 else
1574 echo "$ac_err" >&5
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1577 rm -rf conftest*
1578 ac_cv_header_stdc=no
1580 rm -f conftest*
1582 if test $ac_cv_header_stdc = yes; then
1583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1584 cat > conftest.$ac_ext <<EOF
1585 #line 1586 "configure"
1586 #include "confdefs.h"
1587 #include <string.h>
1589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1590 egrep "memchr" >/dev/null 2>&1; then
1592 else
1593 rm -rf conftest*
1594 ac_cv_header_stdc=no
1596 rm -f conftest*
1600 if test $ac_cv_header_stdc = yes; then
1601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1602 cat > conftest.$ac_ext <<EOF
1603 #line 1604 "configure"
1604 #include "confdefs.h"
1605 #include <stdlib.h>
1607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1608 egrep "free" >/dev/null 2>&1; then
1610 else
1611 rm -rf conftest*
1612 ac_cv_header_stdc=no
1614 rm -f conftest*
1618 if test $ac_cv_header_stdc = yes; then
1619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1620 if test "$cross_compiling" = yes; then
1622 else
1623 cat > conftest.$ac_ext <<EOF
1624 #line 1625 "configure"
1625 #include "confdefs.h"
1626 #include <ctype.h>
1627 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1628 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1630 int main () { int i; for (i = 0; i < 256; i++)
1631 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1632 exit (0); }
1635 if { (eval echo configure:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1636 then
1638 else
1639 echo "configure: failed program was:" >&5
1640 cat conftest.$ac_ext >&5
1641 rm -fr conftest*
1642 ac_cv_header_stdc=no
1644 rm -fr conftest*
1650 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1651 if test $ac_cv_header_stdc = yes; then
1652 cat >> confdefs.h <<\EOF
1653 #define STDC_HEADERS 1
1658 ac_header_dirent=no
1659 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1661 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1662 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1663 echo "configure:1664: checking for $ac_hdr that defines DIR" >&5
1664 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1666 else
1667 cat > conftest.$ac_ext <<EOF
1668 #line 1669 "configure"
1669 #include "confdefs.h"
1670 #include <sys/types.h>
1671 #include <$ac_hdr>
1672 int main() {
1673 DIR *dirp = 0;
1674 ; return 0; }
1676 if { (eval echo configure:1677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1677 rm -rf conftest*
1678 eval "ac_cv_header_dirent_$ac_safe=yes"
1679 else
1680 echo "configure: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1682 rm -rf conftest*
1683 eval "ac_cv_header_dirent_$ac_safe=no"
1685 rm -f conftest*
1687 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1688 echo "$ac_t""yes" 1>&6
1689 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1690 cat >> confdefs.h <<EOF
1691 #define $ac_tr_hdr 1
1693 ac_header_dirent=$ac_hdr; break
1694 else
1695 echo "$ac_t""no" 1>&6
1697 done
1698 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1699 if test $ac_header_dirent = dirent.h; then
1700 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1701 echo "configure:1702: checking for opendir in -ldir" >&5
1702 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1705 else
1706 ac_save_LIBS="$LIBS"
1707 LIBS="-ldir $LIBS"
1708 cat > conftest.$ac_ext <<EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1711 /* Override any gcc2 internal prototype to avoid an error. */
1712 /* We use char because int might match the return type of a gcc2
1713 builtin and then its argument prototype would still apply. */
1714 char opendir();
1716 int main() {
1717 opendir()
1718 ; return 0; }
1720 if { (eval echo configure:1721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1721 rm -rf conftest*
1722 eval "ac_cv_lib_$ac_lib_var=yes"
1723 else
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1726 rm -rf conftest*
1727 eval "ac_cv_lib_$ac_lib_var=no"
1729 rm -f conftest*
1730 LIBS="$ac_save_LIBS"
1733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1734 echo "$ac_t""yes" 1>&6
1735 LIBS="$LIBS -ldir"
1736 else
1737 echo "$ac_t""no" 1>&6
1740 else
1741 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1742 echo "configure:1743: checking for opendir in -lx" >&5
1743 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1745 echo $ac_n "(cached) $ac_c" 1>&6
1746 else
1747 ac_save_LIBS="$LIBS"
1748 LIBS="-lx $LIBS"
1749 cat > conftest.$ac_ext <<EOF
1750 #line 1751 "configure"
1751 #include "confdefs.h"
1752 /* Override any gcc2 internal prototype to avoid an error. */
1753 /* We use char because int might match the return type of a gcc2
1754 builtin and then its argument prototype would still apply. */
1755 char opendir();
1757 int main() {
1758 opendir()
1759 ; return 0; }
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1762 rm -rf conftest*
1763 eval "ac_cv_lib_$ac_lib_var=yes"
1764 else
1765 echo "configure: failed program was:" >&5
1766 cat conftest.$ac_ext >&5
1767 rm -rf conftest*
1768 eval "ac_cv_lib_$ac_lib_var=no"
1770 rm -f conftest*
1771 LIBS="$ac_save_LIBS"
1774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1775 echo "$ac_t""yes" 1>&6
1776 LIBS="$LIBS -lx"
1777 else
1778 echo "$ac_t""no" 1>&6
1783 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1784 echo "configure:1785: checking whether time.h and sys/time.h may both be included" >&5
1785 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1787 else
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 #include <sys/types.h>
1792 #include <sys/time.h>
1793 #include <time.h>
1794 int main() {
1795 struct tm *tp;
1796 ; return 0; }
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1799 rm -rf conftest*
1800 ac_cv_header_time=yes
1801 else
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1804 rm -rf conftest*
1805 ac_cv_header_time=no
1807 rm -f conftest*
1810 echo "$ac_t""$ac_cv_header_time" 1>&6
1811 if test $ac_cv_header_time = yes; then
1812 cat >> confdefs.h <<\EOF
1813 #define TIME_WITH_SYS_TIME 1
1818 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1819 echo "configure:1820: checking for sys/wait.h that is POSIX.1 compatible" >&5
1820 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1822 else
1823 cat > conftest.$ac_ext <<EOF
1824 #line 1825 "configure"
1825 #include "confdefs.h"
1826 #include <sys/types.h>
1827 #include <sys/wait.h>
1828 #ifndef WEXITSTATUS
1829 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1830 #endif
1831 #ifndef WIFEXITED
1832 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1833 #endif
1834 int main() {
1835 int s;
1836 wait (&s);
1837 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1838 ; return 0; }
1840 if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1841 rm -rf conftest*
1842 ac_cv_header_sys_wait_h=yes
1843 else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 ac_cv_header_sys_wait_h=no
1849 rm -f conftest*
1852 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1853 if test $ac_cv_header_sys_wait_h = yes; then
1854 cat >> confdefs.h <<\EOF
1855 #define HAVE_SYS_WAIT_H 1
1860 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1864 echo "configure:1865: checking for $ac_hdr" >&5
1865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1867 else
1868 cat > conftest.$ac_ext <<EOF
1869 #line 1870 "configure"
1870 #include "confdefs.h"
1871 #include <$ac_hdr>
1873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1874 { (eval echo configure:1875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1876 if test -z "$ac_err"; then
1877 rm -rf conftest*
1878 eval "ac_cv_header_$ac_safe=yes"
1879 else
1880 echo "$ac_err" >&5
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 eval "ac_cv_header_$ac_safe=no"
1886 rm -f conftest*
1888 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1889 echo "$ac_t""yes" 1>&6
1890 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1891 cat >> confdefs.h <<EOF
1892 #define $ac_tr_hdr 1
1895 else
1896 echo "$ac_t""no" 1>&6
1898 done
1900 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
1902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1904 echo "configure:1905: checking for $ac_hdr" >&5
1905 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1906 echo $ac_n "(cached) $ac_c" 1>&6
1907 else
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 #include <$ac_hdr>
1913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1914 { (eval echo configure:1915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1916 if test -z "$ac_err"; then
1917 rm -rf conftest*
1918 eval "ac_cv_header_$ac_safe=yes"
1919 else
1920 echo "$ac_err" >&5
1921 echo "configure: failed program was:" >&5
1922 cat conftest.$ac_ext >&5
1923 rm -rf conftest*
1924 eval "ac_cv_header_$ac_safe=no"
1926 rm -f conftest*
1928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1929 echo "$ac_t""yes" 1>&6
1930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1931 cat >> confdefs.h <<EOF
1932 #define $ac_tr_hdr 1
1935 else
1936 echo "$ac_t""no" 1>&6
1938 done
1940 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
1942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1944 echo "configure:1945: checking for $ac_hdr" >&5
1945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1947 else
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <$ac_hdr>
1953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1954 { (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1956 if test -z "$ac_err"; then
1957 rm -rf conftest*
1958 eval "ac_cv_header_$ac_safe=yes"
1959 else
1960 echo "$ac_err" >&5
1961 echo "configure: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1963 rm -rf conftest*
1964 eval "ac_cv_header_$ac_safe=no"
1966 rm -f conftest*
1968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1969 echo "$ac_t""yes" 1>&6
1970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1971 cat >> confdefs.h <<EOF
1972 #define $ac_tr_hdr 1
1975 else
1976 echo "$ac_t""no" 1>&6
1978 done
1980 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
1982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_hdr" >&5
1985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1987 else
1988 cat > conftest.$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 #include <$ac_hdr>
1993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1994 { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1996 if test -z "$ac_err"; then
1997 rm -rf conftest*
1998 eval "ac_cv_header_$ac_safe=yes"
1999 else
2000 echo "$ac_err" >&5
2001 echo "configure: failed program was:" >&5
2002 cat conftest.$ac_ext >&5
2003 rm -rf conftest*
2004 eval "ac_cv_header_$ac_safe=no"
2006 rm -f conftest*
2008 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2009 echo "$ac_t""yes" 1>&6
2010 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2011 cat >> confdefs.h <<EOF
2012 #define $ac_tr_hdr 1
2015 else
2016 echo "$ac_t""no" 1>&6
2018 done
2020 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
2022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2024 echo "configure:2025: checking for $ac_hdr" >&5
2025 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2026 echo $ac_n "(cached) $ac_c" 1>&6
2027 else
2028 cat > conftest.$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 #include <$ac_hdr>
2033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2034 { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2036 if test -z "$ac_err"; then
2037 rm -rf conftest*
2038 eval "ac_cv_header_$ac_safe=yes"
2039 else
2040 echo "$ac_err" >&5
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 rm -rf conftest*
2044 eval "ac_cv_header_$ac_safe=no"
2046 rm -f conftest*
2048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2049 echo "$ac_t""yes" 1>&6
2050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2051 cat >> confdefs.h <<EOF
2052 #define $ac_tr_hdr 1
2055 else
2056 echo "$ac_t""no" 1>&6
2058 done
2060 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2062 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2064 echo "configure:2065: checking for $ac_hdr" >&5
2065 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2066 echo $ac_n "(cached) $ac_c" 1>&6
2067 else
2068 cat > conftest.$ac_ext <<EOF
2069 #line 2070 "configure"
2070 #include "confdefs.h"
2071 #include <$ac_hdr>
2073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2074 { (eval echo configure:2075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2076 if test -z "$ac_err"; then
2077 rm -rf conftest*
2078 eval "ac_cv_header_$ac_safe=yes"
2079 else
2080 echo "$ac_err" >&5
2081 echo "configure: failed program was:" >&5
2082 cat conftest.$ac_ext >&5
2083 rm -rf conftest*
2084 eval "ac_cv_header_$ac_safe=no"
2086 rm -f conftest*
2088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2089 echo "$ac_t""yes" 1>&6
2090 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2091 cat >> confdefs.h <<EOF
2092 #define $ac_tr_hdr 1
2095 else
2096 echo "$ac_t""no" 1>&6
2098 done
2100 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2102 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2103 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2104 echo "configure:2105: checking for $ac_hdr" >&5
2105 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2106 echo $ac_n "(cached) $ac_c" 1>&6
2107 else
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2110 "configure"
2110 #include "confdefs.h"
2111 #include <$ac_hdr>
2113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2114 { (eval echo configure:2115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2116 if test -z "$ac_err"; then
2117 rm -rf conftest*
2118 eval "ac_cv_header_$ac_safe=yes"
2119 else
2120 echo "$ac_err" >&5
2121 echo "configure: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 rm -rf conftest*
2124 eval "ac_cv_header_$ac_safe=no"
2126 rm -f conftest*
2128 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2129 echo "$ac_t""yes" 1>&6
2130 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2131 cat >> confdefs.h <<EOF
2132 #define $ac_tr_hdr 1
2135 else
2136 echo "$ac_t""no" 1>&6
2138 done
2140 for ac_hdr in security/pam_modules.h security/_pam_macros.h
2142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_hdr" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <$ac_hdr>
2153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2154 { (eval echo configure:2155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2156 if test -z "$ac_err"; then
2157 rm -rf conftest*
2158 eval "ac_cv_header_$ac_safe=yes"
2159 else
2160 echo "$ac_err" >&5
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -rf conftest*
2164 eval "ac_cv_header_$ac_safe=no"
2166 rm -f conftest*
2168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2171 cat >> confdefs.h <<EOF
2172 #define $ac_tr_hdr 1
2175 else
2176 echo "$ac_t""no" 1>&6
2178 done
2182 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2183 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2185 case "$host_os" in
2186 *hpux*)
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <shadow.h>
2191 int main() {
2192 struct spwd testme
2193 ; return 0; }
2195 if { (eval echo configure:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2196 rm -rf conftest*
2197 ac_cv_header_shadow_h=yes
2198 else
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -rf conftest*
2202 ac_cv_header_shadow_h=no
2204 rm -f conftest*
2205 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2206 cat >> confdefs.h <<\EOF
2207 #define HAVE_SHADOW_H 1
2212 esac
2213 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2215 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2216 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2217 echo "configure:2218: checking for $ac_hdr" >&5
2218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2219 echo $ac_n "(cached) $ac_c" 1>&6
2220 else
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 #include <$ac_hdr>
2226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2227 { (eval echo configure:2228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2229 if test -z "$ac_err"; then
2230 rm -rf conftest*
2231 eval "ac_cv_header_$ac_safe=yes"
2232 else
2233 echo "$ac_err" >&5
2234 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 rm -rf conftest*
2237 eval "ac_cv_header_$ac_safe=no"
2239 rm -f conftest*
2241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2244 cat >> confdefs.h <<EOF
2245 #define $ac_tr_hdr 1
2248 else
2249 echo "$ac_t""no" 1>&6
2251 done
2253 for ac_hdr in nss.h nss_common.h sys/security.h security/pam_appl.h security/pam_modules.h
2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_hdr" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <$ac_hdr>
2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269 if test -z "$ac_err"; then
2270 rm -rf conftest*
2271 eval "ac_cv_header_$ac_safe=yes"
2272 else
2273 echo "$ac_err" >&5
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 rm -rf conftest*
2277 eval "ac_cv_header_$ac_safe=no"
2279 rm -f conftest*
2281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2282 echo "$ac_t""yes" 1>&6
2283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2284 cat >> confdefs.h <<EOF
2285 #define $ac_tr_hdr 1
2288 else
2289 echo "$ac_t""no" 1>&6
2291 done
2293 for ac_hdr in stropts.h poll.h
2295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2297 echo "configure:2298: checking for $ac_hdr" >&5
2298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2300 else
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <$ac_hdr>
2306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2307 { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2309 if test -z "$ac_err"; then
2310 rm -rf conftest*
2311 eval "ac_cv_header_$ac_safe=yes"
2312 else
2313 echo "$ac_err" >&5
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -rf conftest*
2317 eval "ac_cv_header_$ac_safe=no"
2319 rm -f conftest*
2321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_hdr 1
2328 else
2329 echo "$ac_t""no" 1>&6
2331 done
2333 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2337 echo "configure:2338: checking for $ac_hdr" >&5
2338 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <$ac_hdr>
2346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2347 { (eval echo configure:2348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2349 if test -z "$ac_err"; then
2350 rm -rf conftest*
2351 eval "ac_cv_header_$ac_safe=yes"
2352 else
2353 echo "$ac_err" >&5
2354 echo "configure: failed program was:" >&5
2355 cat conftest.$ac_ext >&5
2356 rm -rf conftest*
2357 eval "ac_cv_header_$ac_safe=no"
2359 rm -f conftest*
2361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2362 echo "$ac_t""yes" 1>&6
2363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2364 cat >> confdefs.h <<EOF
2365 #define $ac_tr_hdr 1
2368 else
2369 echo "$ac_t""no" 1>&6
2371 done
2373 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_hdr" >&5
2378 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2380 else
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <$ac_hdr>
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2389 if test -z "$ac_err"; then
2390 rm -rf conftest*
2391 eval "ac_cv_header_$ac_safe=yes"
2392 else
2393 echo "$ac_err" >&5
2394 echo "configure: failed program was:" >&5
2395 cat conftest.$ac_ext >&5
2396 rm -rf conftest*
2397 eval "ac_cv_header_$ac_safe=no"
2399 rm -f conftest*
2401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2402 echo "$ac_t""yes" 1>&6
2403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2404 cat >> confdefs.h <<EOF
2405 #define $ac_tr_hdr 1
2408 else
2409 echo "$ac_t""no" 1>&6
2411 done
2414 # For experimental utmp support (lastlog on some BSD-like systems)
2415 for ac_hdr in utmp.h utmpx.h lastlog.h
2417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2419 echo "configure:2420: checking for $ac_hdr" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 #include <$ac_hdr>
2428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2429 { (eval echo configure:2430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2431 if test -z "$ac_err"; then
2432 rm -rf conftest*
2433 eval "ac_cv_header_$ac_safe=yes"
2434 else
2435 echo "$ac_err" >&5
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2438 rm -rf conftest*
2439 eval "ac_cv_header_$ac_safe=no"
2441 rm -f conftest*
2443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2446 cat >> confdefs.h <<EOF
2447 #define $ac_tr_hdr 1
2450 else
2451 echo "$ac_t""no" 1>&6
2453 done
2456 # For quotas on Veritas VxFS filesystems
2457 for ac_hdr in sys/fs/vx_quota.h
2459 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2460 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2461 echo "configure:2462: checking for $ac_hdr" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <$ac_hdr>
2470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2471 { (eval echo configure:2472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2473 if test -z "$ac_err"; then
2474 rm -rf conftest*
2475 eval "ac_cv_header_$ac_safe=yes"
2476 else
2477 echo "$ac_err" >&5
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 rm -rf conftest*
2481 eval "ac_cv_header_$ac_safe=no"
2483 rm -f conftest*
2485 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2488 cat >> confdefs.h <<EOF
2489 #define $ac_tr_hdr 1
2492 else
2493 echo "$ac_t""no" 1>&6
2495 done
2498 echo $ac_n "checking size of int""... $ac_c" 1>&6
2499 echo "configure:2500: checking size of int" >&5
2500 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2501 echo $ac_n "(cached) $ac_c" 1>&6
2502 else
2503 if test "$cross_compiling" = yes; then
2504 ac_cv_sizeof_int=cross
2505 else
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <stdio.h>
2510 main()
2512 FILE *f=fopen("conftestval", "w");
2513 if (!f) exit(1);
2514 fprintf(f, "%d\n", sizeof(int));
2515 exit(0);
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2519 then
2520 ac_cv_sizeof_int=`cat conftestval`
2521 else
2522 echo "configure: failed program was:" >&5
2523 cat conftest.$ac_ext >&5
2524 rm -fr conftest*
2525 ac_cv_sizeof_int=0
2527 rm -fr conftest*
2531 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2532 cat >> confdefs.h <<EOF
2533 #define SIZEOF_INT $ac_cv_sizeof_int
2537 echo $ac_n "checking size of long""... $ac_c" 1>&6
2538 echo "configure:2539: checking size of long" >&5
2539 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2541 else
2542 if test "$cross_compiling" = yes; then
2543 ac_cv_sizeof_long=cross
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 #include <stdio.h>
2549 main()
2551 FILE *f=fopen("conftestval", "w");
2552 if (!f) exit(1);
2553 fprintf(f, "%d\n", sizeof(long));
2554 exit(0);
2557 if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2558 then
2559 ac_cv_sizeof_long=`cat conftestval`
2560 else
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -fr conftest*
2564 ac_cv_sizeof_long=0
2566 rm -fr conftest*
2570 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2571 cat >> confdefs.h <<EOF
2572 #define SIZEOF_LONG $ac_cv_sizeof_long
2576 echo $ac_n "checking size of short""... $ac_c" 1>&6
2577 echo "configure:2578: checking size of short" >&5
2578 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2581 if test "$cross_compiling" = yes; then
2582 ac_cv_sizeof_short=cross
2583 else
2584 cat > conftest.$ac_ext <<EOF
2585 #line 2586 "configure"
2586 #include "confdefs.h"
2587 #include <stdio.h>
2588 main()
2590 FILE *f=fopen("conftestval", "w");
2591 if (!f) exit(1);
2592 fprintf(f, "%d\n", sizeof(short));
2593 exit(0);
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2597 then
2598 ac_cv_sizeof_short=`cat conftestval`
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -fr conftest*
2603 ac_cv_sizeof_short=0
2605 rm -fr conftest*
2609 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2610 cat >> confdefs.h <<EOF
2611 #define SIZEOF_SHORT $ac_cv_sizeof_short
2616 echo $ac_n "checking for working const""... $ac_c" 1>&6
2617 echo "configure:2618: checking for working const" >&5
2618 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2620 else
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2625 int main() {
2627 /* Ultrix mips cc rejects this. */
2628 typedef int charset[2]; const charset x;
2629 /* SunOS 4.1.1 cc rejects this. */
2630 char const *const *ccp;
2631 char **p;
2632 /* NEC SVR4.0.2 mips cc rejects this. */
2633 struct point {int x, y;};
2634 static struct point const zero = {0,0};
2635 /* AIX XL C 1.02.0.0 rejects this.
2636 It does not let you subtract one const X* pointer from another in an arm
2637 of an if-expression whose if-part is not a constant expression */
2638 const char *g = "string";
2639 ccp = &g + (g ? g-g : 0);
2640 /* HPUX 7.0 cc rejects these. */
2641 ++ccp;
2642 p = (char**) ccp;
2643 ccp = (char const *const *) p;
2644 { /* SCO 3.2v4 cc rejects this. */
2645 char *t;
2646 char const *s = 0 ? (char *) 0 : (char const *) 0;
2648 *t++ = 0;
2650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2651 int x[] = {25, 17};
2652 const int *foo = &x[0];
2653 ++foo;
2655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2656 typedef const int *iptr;
2657 iptr p = 0;
2658 ++p;
2660 { /* AIX XL C 1.02.0.0 rejects this saying
2661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2662 struct s { int j; const int *ap[3]; };
2663 struct s *b; b->j = 5;
2665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2666 const int foo = 10;
2669 ; return 0; }
2671 if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2672 rm -rf conftest*
2673 ac_cv_c_const=yes
2674 else
2675 echo "configure: failed program was:" >&5
2676 cat conftest.$ac_ext >&5
2677 rm -rf conftest*
2678 ac_cv_c_const=no
2680 rm -f conftest*
2683 echo "$ac_t""$ac_cv_c_const" 1>&6
2684 if test $ac_cv_c_const = no; then
2685 cat >> confdefs.h <<\EOF
2686 #define const
2691 echo $ac_n "checking for inline""... $ac_c" 1>&6
2692 echo "configure:2693: checking for inline" >&5
2693 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2695 else
2696 ac_cv_c_inline=no
2697 for ac_kw in inline __inline__ __inline; do
2698 cat > conftest.$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2702 int main() {
2703 } $ac_kw foo() {
2704 ; return 0; }
2706 if { (eval echo configure:2707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2707 rm -rf conftest*
2708 ac_cv_c_inline=$ac_kw; break
2709 else
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2713 rm -f conftest*
2714 done
2718 echo "$ac_t""$ac_cv_c_inline" 1>&6
2719 case "$ac_cv_c_inline" in
2720 inline | yes) ;;
2721 no) cat >> confdefs.h <<\EOF
2722 #define inline
2725 *) cat >> confdefs.h <<EOF
2726 #define inline $ac_cv_c_inline
2729 esac
2731 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2732 echo "configure:2733: checking whether byte ordering is bigendian" >&5
2733 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2734 echo $ac_n "(cached) $ac_c" 1>&6
2735 else
2736 ac_cv_c_bigendian=unknown
2737 # See if sys/param.h defines the BYTE_ORDER macro.
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2742 #include <sys/param.h>
2743 int main() {
2745 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2746 bogus endian macros
2747 #endif
2748 ; return 0; }
2750 if { (eval echo configure:2751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2751 rm -rf conftest*
2752 # It does; now see whether it defined to BIG_ENDIAN or not.
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 #include <sys/types.h>
2757 #include <sys/param.h>
2758 int main() {
2760 #if BYTE_ORDER != BIG_ENDIAN
2761 not big endian
2762 #endif
2763 ; return 0; }
2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2766 rm -rf conftest*
2767 ac_cv_c_bigendian=yes
2768 else
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2771 rm -rf conftest*
2772 ac_cv_c_bigendian=no
2774 rm -f conftest*
2775 else
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2779 rm -f conftest*
2780 if test $ac_cv_c_bigendian = unknown; then
2781 if test "$cross_compiling" = yes; then
2782 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2783 else
2784 cat > conftest.$ac_ext <<EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2787 main () {
2788 /* Are we little or big endian? From Harbison&Steele. */
2789 union
2791 long l;
2792 char c[sizeof (long)];
2793 } u;
2794 u.l = 1;
2795 exit (u.c[sizeof (long) - 1] == 1);
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2799 then
2800 ac_cv_c_bigendian=no
2801 else
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -fr conftest*
2805 ac_cv_c_bigendian=yes
2807 rm -fr conftest*
2813 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2814 if test $ac_cv_c_bigendian = yes; then
2815 cat >> confdefs.h <<\EOF
2816 #define WORDS_BIGENDIAN 1
2821 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2822 echo "configure:2823: checking whether char is unsigned" >&5
2823 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2825 else
2826 if test "$GCC" = yes; then
2827 # GCC predefines this symbol on systems where it applies.
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #ifdef __CHAR_UNSIGNED__
2833 #endif
2836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2837 egrep "yes" >/dev/null 2>&1; then
2838 rm -rf conftest*
2839 ac_cv_c_char_unsigned=yes
2840 else
2841 rm -rf conftest*
2842 ac_cv_c_char_unsigned=no
2844 rm -f conftest*
2846 else
2847 if test "$cross_compiling" = yes; then
2848 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2849 else
2850 cat > conftest.$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2853 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2854 #if !defined(__STDC__) || __STDC__ != 1
2855 #define volatile
2856 #endif
2857 main() {
2858 volatile char c = 255; exit(c < 0);
2861 if { (eval echo configure:2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2862 then
2863 ac_cv_c_char_unsigned=yes
2864 else
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867 rm -fr conftest*
2868 ac_cv_c_char_unsigned=no
2870 rm -fr conftest*
2876 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2877 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2878 cat >> confdefs.h <<\EOF
2879 #define __CHAR_UNSIGNED__ 1
2885 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2886 echo "configure:2887: checking return type of signal handlers" >&5
2887 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2889 else
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 #include <sys/types.h>
2894 #include <signal.h>
2895 #ifdef signal
2896 #undef signal
2897 #endif
2898 #ifdef __cplusplus
2899 extern "C" void (*signal (int, void (*)(int)))(int);
2900 #else
2901 void (*signal ()) ();
2902 #endif
2904 int main() {
2905 int i;
2906 ; return 0; }
2908 if { (eval echo configure:2909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2909 rm -rf conftest*
2910 ac_cv_type_signal=void
2911 else
2912 echo "configure: failed program was:" >&5
2913 cat conftest.$ac_ext >&5
2914 rm -rf conftest*
2915 ac_cv_type_signal=int
2917 rm -f conftest*
2920 echo "$ac_t""$ac_cv_type_signal" 1>&6
2921 cat >> confdefs.h <<EOF
2922 #define RETSIGTYPE $ac_cv_type_signal
2926 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2927 echo "configure:2928: checking for uid_t in sys/types.h" >&5
2928 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2930 else
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 #include <sys/types.h>
2936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2937 egrep "uid_t" >/dev/null 2>&1; then
2938 rm -rf conftest*
2939 ac_cv_type_uid_t=yes
2940 else
2941 rm -rf conftest*
2942 ac_cv_type_uid_t=no
2944 rm -f conftest*
2948 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2949 if test $ac_cv_type_uid_t = no; then
2950 cat >> confdefs.h <<\EOF
2951 #define uid_t int
2954 cat >> confdefs.h <<\EOF
2955 #define gid_t int
2960 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2961 echo "configure:2962: checking for mode_t" >&5
2962 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2964 else
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 #include <sys/types.h>
2969 #if STDC_HEADERS
2970 #include <stdlib.h>
2971 #include <stddef.h>
2972 #endif
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2976 rm -rf conftest*
2977 ac_cv_type_mode_t=yes
2978 else
2979 rm -rf conftest*
2980 ac_cv_type_mode_t=no
2982 rm -f conftest*
2985 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2986 if test $ac_cv_type_mode_t = no; then
2987 cat >> confdefs.h <<\EOF
2988 #define mode_t int
2993 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2994 echo "configure:2995: checking for off_t" >&5
2995 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <sys/types.h>
3002 #if STDC_HEADERS
3003 #include <stdlib.h>
3004 #include <stddef.h>
3005 #endif
3007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3009 rm -rf conftest*
3010 ac_cv_type_off_t=yes
3011 else
3012 rm -rf conftest*
3013 ac_cv_type_off_t=no
3015 rm -f conftest*
3018 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3019 if test $ac_cv_type_off_t = no; then
3020 cat >> confdefs.h <<\EOF
3021 #define off_t long
3026 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3027 echo "configure:3028: checking for size_t" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3030 else
3031 cat > conftest.$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3035 #if STDC_HEADERS
3036 #include <stdlib.h>
3037 #include <stddef.h>
3038 #endif
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3042 rm -rf conftest*
3043 ac_cv_type_size_t=yes
3044 else
3045 rm -rf conftest*
3046 ac_cv_type_size_t=no
3048 rm -f conftest*
3051 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3052 if test $ac_cv_type_size_t = no; then
3053 cat >> confdefs.h <<\EOF
3054 #define size_t unsigned
3059 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3060 echo "configure:3061: checking for pid_t" >&5
3061 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3062 echo $ac_n "(cached) $ac_c" 1>&6
3063 else
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067 #include <sys/types.h>
3068 #if STDC_HEADERS
3069 #include <stdlib.h>
3070 #include <stddef.h>
3071 #endif
3073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3074 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3075 rm -rf conftest*
3076 ac_cv_type_pid_t=yes
3077 else
3078 rm -rf conftest*
3079 ac_cv_type_pid_t=no
3081 rm -f conftest*
3084 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3085 if test $ac_cv_type_pid_t = no; then
3086 cat >> confdefs.h <<\EOF
3087 #define pid_t int
3092 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3093 echo "configure:3094: checking for st_rdev in struct stat" >&5
3094 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3096 else
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3100 #include <sys/types.h>
3101 #include <sys/stat.h>
3102 int main() {
3103 struct stat s; s.st_rdev;
3104 ; return 0; }
3106 if { (eval echo configure:3107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3107 rm -rf conftest*
3108 ac_cv_struct_st_rdev=yes
3109 else
3110 echo "configure: failed program was:" >&5
3111 cat conftest.$ac_ext >&5
3112 rm -rf conftest*
3113 ac_cv_struct_st_rdev=no
3115 rm -f conftest*
3118 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3119 if test $ac_cv_struct_st_rdev = yes; then
3120 cat >> confdefs.h <<\EOF
3121 #define HAVE_ST_RDEV 1
3126 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3127 echo "configure:3128: checking for d_off in dirent" >&5
3128 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3130 else
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3135 #include <unistd.h>
3136 #include <sys/types.h>
3137 #include <dirent.h>
3138 int main() {
3139 struct dirent d; d.d_off;
3140 ; return 0; }
3142 if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3143 rm -rf conftest*
3144 ac_cv_dirent_d_off=yes
3145 else
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3148 rm -rf conftest*
3149 ac_cv_dirent_d_off=no
3151 rm -f conftest*
3154 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3155 if test $ac_cv_dirent_d_off = yes; then
3156 cat >> confdefs.h <<\EOF
3157 #define HAVE_DIRENT_D_OFF 1
3162 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3163 echo "configure:3164: checking for ino_t" >&5
3164 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3165 echo $ac_n "(cached) $ac_c" 1>&6
3166 else
3167 cat > conftest.$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include <sys/types.h>
3171 #if STDC_HEADERS
3172 #include <stdlib.h>
3173 #include <stddef.h>
3174 #endif
3176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3177 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3178 rm -rf conftest*
3179 ac_cv_type_ino_t=yes
3180 else
3181 rm -rf conftest*
3182 ac_cv_type_ino_t=no
3184 rm -f conftest*
3187 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3188 if test $ac_cv_type_ino_t = no; then
3189 cat >> confdefs.h <<\EOF
3190 #define ino_t unsigned
3195 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3196 echo "configure:3197: checking for loff_t" >&5
3197 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3199 else
3200 cat > conftest.$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3203 #include <sys/types.h>
3204 #if STDC_HEADERS
3205 #include <stdlib.h>
3206 #include <stddef.h>
3207 #endif
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3211 rm -rf conftest*
3212 ac_cv_type_loff_t=yes
3213 else
3214 rm -rf conftest*
3215 ac_cv_type_loff_t=no
3217 rm -f conftest*
3220 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3221 if test $ac_cv_type_loff_t = no; then
3222 cat >> confdefs.h <<\EOF
3223 #define loff_t off_t
3228 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3229 echo "configure:3230: checking for offset_t" >&5
3230 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3232 else
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3236 #include <sys/types.h>
3237 #if STDC_HEADERS
3238 #include <stdlib.h>
3239 #include <stddef.h>
3240 #endif
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3244 rm -rf conftest*
3245 ac_cv_type_offset_t=yes
3246 else
3247 rm -rf conftest*
3248 ac_cv_type_offset_t=no
3250 rm -f conftest*
3253 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3254 if test $ac_cv_type_offset_t = no; then
3255 cat >> confdefs.h <<\EOF
3256 #define offset_t loff_t
3261 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3262 echo "configure:3263: checking for ssize_t" >&5
3263 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3265 else
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 #include <sys/types.h>
3270 #if STDC_HEADERS
3271 #include <stdlib.h>
3272 #include <stddef.h>
3273 #endif
3275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3276 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3277 rm -rf conftest*
3278 ac_cv_type_ssize_t=yes
3279 else
3280 rm -rf conftest*
3281 ac_cv_type_ssize_t=no
3283 rm -f conftest*
3286 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3287 if test $ac_cv_type_ssize_t = no; then
3288 cat >> confdefs.h <<\EOF
3289 #define ssize_t int
3294 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3295 echo "configure:3296: checking for wchar_t" >&5
3296 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298 else
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 #include <sys/types.h>
3303 #if STDC_HEADERS
3304 #include <stdlib.h>
3305 #include <stddef.h>
3306 #endif
3308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3310 rm -rf conftest*
3311 ac_cv_type_wchar_t=yes
3312 else
3313 rm -rf conftest*
3314 ac_cv_type_wchar_t=no
3316 rm -f conftest*
3319 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3320 if test $ac_cv_type_wchar_t = no; then
3321 cat >> confdefs.h <<\EOF
3322 #define wchar_t unsigned short
3328 ############################################
3329 # for cups support we need libcups, and a handful of header files
3331 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3332 echo "configure:3333: checking for httpConnect in -lcups" >&5
3333 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3336 else
3337 ac_save_LIBS="$LIBS"
3338 LIBS="-lcups $LIBS"
3339 cat > conftest.$ac_ext <<EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3342 /* Override any gcc2 internal prototype to avoid an error. */
3343 /* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3345 char httpConnect();
3347 int main() {
3348 httpConnect()
3349 ; return 0; }
3351 if { (eval echo configure:3352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3352 rm -rf conftest*
3353 eval "ac_cv_lib_$ac_lib_var=yes"
3354 else
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 rm -rf conftest*
3358 eval "ac_cv_lib_$ac_lib_var=no"
3360 rm -f conftest*
3361 LIBS="$ac_save_LIBS"
3364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3365 echo "$ac_t""yes" 1>&6
3366 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3367 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3368 cat >> confdefs.h <<EOF
3369 #define $ac_tr_lib 1
3372 LIBS="-lcups $LIBS"
3374 else
3375 echo "$ac_t""no" 1>&6
3379 # I wonder if there is a nicer way of doing this?
3381 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3382 for ac_hdr in cups/cups.h cups/language.h
3384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3386 echo "configure:3387: checking for $ac_hdr" >&5
3387 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3389 else
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 #include <$ac_hdr>
3395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3396 { (eval echo configure:3397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3398 if test -z "$ac_err"; then
3399 rm -rf conftest*
3400 eval "ac_cv_header_$ac_safe=yes"
3401 else
3402 echo "$ac_err" >&5
3403 echo "configure: failed program was:" >&5
3404 cat conftest.$ac_ext >&5
3405 rm -rf conftest*
3406 eval "ac_cv_header_$ac_safe=no"
3408 rm -f conftest*
3410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3411 echo "$ac_t""yes" 1>&6
3412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3413 cat >> confdefs.h <<EOF
3414 #define $ac_tr_hdr 1
3417 else
3418 echo "$ac_t""no" 1>&6
3420 done
3422 if x"$ac_cv_header_cups_cups_h" = x"yes"; then
3423 if x"$ac_cv_header_cups_language_h" = x"yes"; then
3424 cat >> confdefs.h <<\EOF
3425 #define HAVE_CUPS 1
3432 ############################################
3433 # we need libdl for PAM and the new VFS code
3434 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3435 echo "configure:3436: checking for dlopen in -ldl" >&5
3436 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3439 else
3440 ac_save_LIBS="$LIBS"
3441 LIBS="-ldl $LIBS"
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 /* Override any gcc2 internal prototype to avoid an error. */
3446 /* We use char because int might match the return type of a gcc2
3447 builtin and then its argument prototype would still apply. */
3448 char dlopen();
3450 int main() {
3451 dlopen()
3452 ; return 0; }
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455 rm -rf conftest*
3456 eval "ac_cv_lib_$ac_lib_var=yes"
3457 else
3458 echo "configure: failed program was:" >&5
3459 cat conftest.$ac_ext >&5
3460 rm -rf conftest*
3461 eval "ac_cv_lib_$ac_lib_var=no"
3463 rm -f conftest*
3464 LIBS="$ac_save_LIBS"
3467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3468 echo "$ac_t""yes" 1>&6
3469 LIBS="$LIBS -ldl";
3470 cat >> confdefs.h <<\EOF
3471 #define HAVE_LIBDL 1
3474 else
3475 echo "$ac_t""no" 1>&6
3479 ############################################
3480 # check for unix domain sockets
3481 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3482 echo "configure:3483: checking for unix domain sockets" >&5
3483 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3485 else
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3491 #include <sys/types.h>
3492 #include <stdlib.h>
3493 #include <stddef.h>
3494 #include <sys/socket.h>
3495 #include <sys/un.h>
3496 int main() {
3498 struct sockaddr_un sunaddr;
3499 sunaddr.sun_family = AF_UNIX;
3501 ; return 0; }
3503 if { (eval echo configure:3504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3504 rm -rf conftest*
3505 samba_cv_unixsocket=yes
3506 else
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3509 rm -rf conftest*
3510 samba_cv_unixsocket=no
3512 rm -f conftest*
3515 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3516 if test x"$samba_cv_unixsocket" = x"yes"; then
3517 cat >> confdefs.h <<\EOF
3518 #define HAVE_UNIXSOCKET 1
3524 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3525 echo "configure:3526: checking for socklen_t type" >&5
3526 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3528 else
3530 cat > conftest.$ac_ext <<EOF
3531 #line 3532 "configure"
3532 #include "confdefs.h"
3534 #include <sys/types.h>
3535 #if STDC_HEADERS
3536 #include <stdlib.h>
3537 #include <stddef.h>
3538 #endif
3539 #include <sys/socket.h>
3540 int main() {
3541 socklen_t i = 0
3542 ; return 0; }
3544 if { (eval echo configure:3545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3545 rm -rf conftest*
3546 samba_cv_socklen_t=yes
3547 else
3548 echo "configure: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3550 rm -rf conftest*
3551 samba_cv_socklen_t=no
3553 rm -f conftest*
3556 echo "$ac_t""$samba_cv_socklen_t" 1>&6
3557 if test x"$samba_cv_socklen_t" = x"yes"; then
3558 cat >> confdefs.h <<\EOF
3559 #define HAVE_SOCKLEN_T_TYPE 1
3564 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
3565 echo "configure:3566: checking for sig_atomic_t type" >&5
3566 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3568 else
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3574 #include <sys/types.h>
3575 #if STDC_HEADERS
3576 #include <stdlib.h>
3577 #include <stddef.h>
3578 #endif
3579 #include <signal.h>
3580 int main() {
3581 sig_atomic_t i = 0
3582 ; return 0; }
3584 if { (eval echo configure:3585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3585 rm -rf conftest*
3586 samba_cv_sig_atomic_t=yes
3587 else
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3590 rm -rf conftest*
3591 samba_cv_sig_atomic_t=no
3593 rm -f conftest*
3596 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
3597 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
3598 cat >> confdefs.h <<\EOF
3599 #define HAVE_SIG_ATOMIC_T_TYPE 1
3604 # stupid headers have the functions but no declaration. grrrr.
3606 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
3607 echo "configure:3608: checking for errno declaration" >&5
3608 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
3609 echo $ac_n "(cached) $ac_c" 1>&6
3610 else
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 #include <errno.h>
3616 int main() {
3617 int i = (int)errno
3618 ; return 0; }
3620 if { (eval echo configure:3621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3621 rm -rf conftest*
3622 ac_cv_have_errno_decl=yes
3623 else
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3626 rm -rf conftest*
3627 ac_cv_have_errno_decl=no
3629 rm -f conftest*
3632 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
3633 if test x"$ac_cv_have_errno_decl" = x"yes"; then
3634 cat >> confdefs.h <<\EOF
3635 #define HAVE_ERRNO_DECL 1
3641 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3642 echo "configure:3643: checking for setresuid declaration" >&5
3643 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3645 else
3647 cat > conftest.$ac_ext <<EOF
3648 #line 3649 "configure"
3649 #include "confdefs.h"
3650 #include <unistd.h>
3651 int main() {
3652 int i = (int)setresuid
3653 ; return 0; }
3655 if { (eval echo configure:3656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3656 rm -rf conftest*
3657 ac_cv_have_setresuid_decl=yes
3658 else
3659 echo "configure: failed program was:" >&5
3660 cat conftest.$ac_ext >&5
3661 rm -rf conftest*
3662 ac_cv_have_setresuid_decl=no
3664 rm -f conftest*
3667 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
3668 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
3669 cat >> confdefs.h <<\EOF
3670 #define HAVE_SETRESUID_DECL 1
3676 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
3677 echo "configure:3678: checking for setresgid declaration" >&5
3678 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3680 else
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 #include <unistd.h>
3686 int main() {
3687 int i = (int)setresgid
3688 ; return 0; }
3690 if { (eval echo configure:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691 rm -rf conftest*
3692 ac_cv_have_setresgid_decl=yes
3693 else
3694 echo "configure: failed program was:" >&5
3695 cat conftest.$ac_ext >&5
3696 rm -rf conftest*
3697 ac_cv_have_setresgid_decl=no
3699 rm -f conftest*
3702 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
3703 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
3704 cat >> confdefs.h <<\EOF
3705 #define HAVE_SETRESGID_DECL 1
3711 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
3712 echo "configure:3713: checking for asprintf declaration" >&5
3713 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
3714 echo $ac_n "(cached) $ac_c" 1>&6
3715 else
3717 cat > conftest.$ac_ext <<EOF
3718 #line 3719 "configure"
3719 #include "confdefs.h"
3720 #include <stdio.h>
3721 int main() {
3722 int i = (int)asprintf
3723 ; return 0; }
3725 if { (eval echo configure:3726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3726 rm -rf conftest*
3727 ac_cv_have_asprintf_decl=yes
3728 else
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 rm -rf conftest*
3732 ac_cv_have_asprintf_decl=no
3734 rm -f conftest*
3737 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
3738 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
3739 cat >> confdefs.h <<\EOF
3740 #define HAVE_ASPRINTF_DECL 1
3746 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
3747 echo "configure:3748: checking for vasprintf declaration" >&5
3748 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3750 else
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 #include <stdio.h>
3756 int main() {
3757 int i = (int)vasprintf
3758 ; return 0; }
3760 if { (eval echo configure:3761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3761 rm -rf conftest*
3762 ac_cv_have_vasprintf_decl=yes
3763 else
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3766 rm -rf conftest*
3767 ac_cv_have_vasprintf_decl=no
3769 rm -f conftest*
3772 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
3773 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
3774 cat >> confdefs.h <<\EOF
3775 #define HAVE_VASPRINTF_DECL 1
3781 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
3782 echo "configure:3783: checking for vsnprintf declaration" >&5
3783 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
3784 echo $ac_n "(cached) $ac_c" 1>&6
3785 else
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3790 #include <stdio.h>
3791 int main() {
3792 int i = (int)vsnprintf
3793 ; return 0; }
3795 if { (eval echo configure:3796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3796 rm -rf conftest*
3797 ac_cv_have_vsnprintf_decl=yes
3798 else
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3801 rm -rf conftest*
3802 ac_cv_have_vsnprintf_decl=no
3804 rm -f conftest*
3807 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
3808 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
3809 cat >> confdefs.h <<\EOF
3810 #define HAVE_VSNPRINTF_DECL 1
3816 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
3817 echo "configure:3818: checking for snprintf declaration" >&5
3818 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3820 else
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 #include <stdio.h>
3826 int main() {
3827 int i = (int)snprintf
3828 ; return 0; }
3830 if { (eval echo configure:3831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3831 rm -rf conftest*
3832 ac_cv_have_snprintf_decl=yes
3833 else
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3836 rm -rf conftest*
3837 ac_cv_have_snprintf_decl=no
3839 rm -f conftest*
3842 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
3843 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
3844 cat >> confdefs.h <<\EOF
3845 #define HAVE_SNPRINTF_DECL 1
3851 # and glibc has setresuid under linux but the function does
3852 # nothing until kernel 2.1.44! very dumb.
3853 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3854 echo "configure:3855: checking for real setresuid" >&5
3855 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6
3857 else
3859 if test "$cross_compiling" = yes; then
3860 samba_cv_have_setresuid=cross
3861 else
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3865 #include <errno.h>
3866 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3868 if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3869 then
3870 samba_cv_have_setresuid=yes
3871 else
3872 echo "configure: failed program was:" >&5
3873 cat conftest.$ac_ext >&5
3874 rm -fr conftest*
3875 samba_cv_have_setresuid=no
3877 rm -fr conftest*
3882 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3883 if test x"$samba_cv_have_setresuid" = x"yes"; then
3884 cat >> confdefs.h <<\EOF
3885 #define HAVE_SETRESUID 1
3890 # Do the same check for setresguid...
3892 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
3893 echo "configure:3894: checking for real setresgid" >&5
3894 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3896 else
3898 if test "$cross_compiling" = yes; then
3899 samba_cv_have_setresgid=cross
3900 else
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 #include <unistd.h>
3905 #include <errno.h>
3906 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
3908 if { (eval echo configure:3909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3909 then
3910 samba_cv_have_setresgid=yes
3911 else
3912 echo "configure: failed program was:" >&5
3913 cat conftest.$ac_ext >&5
3914 rm -fr conftest*
3915 samba_cv_have_setresgid=no
3917 rm -fr conftest*
3922 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
3923 if test x"$samba_cv_have_setresgid" = x"yes"; then
3924 cat >> confdefs.h <<\EOF
3925 #define HAVE_SETRESGID 1
3930 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3931 echo "configure:3932: checking for 8-bit clean memcmp" >&5
3932 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3933 echo $ac_n "(cached) $ac_c" 1>&6
3934 else
3935 if test "$cross_compiling" = yes; then
3936 ac_cv_func_memcmp_clean=no
3937 else
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3942 main()
3944 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3945 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3950 then
3951 ac_cv_func_memcmp_clean=yes
3952 else
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 rm -fr conftest*
3956 ac_cv_func_memcmp_clean=no
3958 rm -fr conftest*
3963 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3964 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3967 ###############################################
3968 # test for where we get crypt() from
3969 for ac_func in crypt
3971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3972 echo "configure:3973: checking for $ac_func" >&5
3973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3975 else
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 /* System header to define __stub macros and hopefully few prototypes,
3980 which can conflict with char $ac_func(); below. */
3981 #include <assert.h>
3982 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3985 char $ac_func();
3987 int main() {
3989 /* The GNU C library defines this for functions which it implements
3990 to always fail with ENOSYS. Some functions are actually named
3991 something starting with __ and the normal name is an alias. */
3992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3993 choke me
3994 #else
3995 $ac_func();
3996 #endif
3998 ; return 0; }
4000 if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4001 rm -rf conftest*
4002 eval "ac_cv_func_$ac_func=yes"
4003 else
4004 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5
4006 rm -rf conftest*
4007 eval "ac_cv_func_$ac_func=no"
4009 rm -f conftest*
4012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4015 cat >> confdefs.h <<EOF
4016 #define $ac_tr_func 1
4019 else
4020 echo "$ac_t""no" 1>&6
4022 done
4024 if test x"$ac_cv_func_crypt" = x"no"; then
4025 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4026 echo "configure:4027: checking for crypt in -lcrypt" >&5
4027 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 ac_save_LIBS="$LIBS"
4032 LIBS="-lcrypt $LIBS"
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039 char crypt();
4041 int main() {
4042 crypt()
4043 ; return 0; }
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 rm -rf conftest*
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4048 else
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 rm -rf conftest*
4052 eval "ac_cv_lib_$ac_lib_var=no"
4054 rm -f conftest*
4055 LIBS="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 LIBS="$LIBS -lcrypt";
4061 cat >> confdefs.h <<\EOF
4062 #define HAVE_CRYPT 1
4065 else
4066 echo "$ac_t""no" 1>&6
4072 ###############################################
4073 # Readline included by default unless explicitly asked not to
4074 test "${with_readline+set}" != "set" && with_readline=yes
4076 # test for where we get readline() from
4077 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4078 echo "configure:4079: checking whether to use readline" >&5
4079 # Check whether --with-readline or --without-readline was given.
4080 if test "${with_readline+set}" = set; then
4081 withval="$with_readline"
4082 case "$with_readline" in
4083 yes)
4084 echo "$ac_t""yes" 1>&6
4086 for ac_hdr in readline.h history.h readline/readline.h
4088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4090 echo "configure:4091: checking for $ac_hdr" >&5
4091 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4093 else
4094 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4097 #include <$ac_hdr>
4099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4100 { (eval echo configure:4101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4102 if test -z "$ac_err"; then
4103 rm -rf conftest*
4104 eval "ac_cv_header_$ac_safe=yes"
4105 else
4106 echo "$ac_err" >&5
4107 echo "configure: failed program was:" >&5
4108 cat conftest.$ac_ext >&5
4109 rm -rf conftest*
4110 eval "ac_cv_header_$ac_safe=no"
4112 rm -f conftest*
4114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4115 echo "$ac_t""yes" 1>&6
4116 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4117 cat >> confdefs.h <<EOF
4118 #define $ac_tr_hdr 1
4121 else
4122 echo "$ac_t""no" 1>&6
4124 done
4126 for ac_hdr in readline/history.h
4128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_hdr" >&5
4131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4133 else
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4137 #include <$ac_hdr>
4139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4142 if test -z "$ac_err"; then
4143 rm -rf conftest*
4144 eval "ac_cv_header_$ac_safe=yes"
4145 else
4146 echo "$ac_err" >&5
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4149 rm -rf conftest*
4150 eval "ac_cv_header_$ac_safe=no"
4152 rm -f conftest*
4154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4157 cat >> confdefs.h <<EOF
4158 #define $ac_tr_hdr 1
4161 else
4162 echo "$ac_t""no" 1>&6
4164 done
4167 for ac_hdr in readline.h readline/readline.h
4169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_hdr" >&5
4172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4174 else
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 #include <$ac_hdr>
4180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4183 if test -z "$ac_err"; then
4184 rm -rf conftest*
4185 eval "ac_cv_header_$ac_safe=yes"
4186 else
4187 echo "$ac_err" >&5
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4190 rm -rf conftest*
4191 eval "ac_cv_header_$ac_safe=no"
4193 rm -f conftest*
4195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4198 cat >> confdefs.h <<EOF
4199 #define $ac_tr_hdr 1
4202 for termlib in ncurses curses termcap terminfo termlib; do
4203 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4204 echo "configure:4205: checking for tgetent in -l${termlib}" >&5
4205 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4206 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4208 else
4209 ac_save_LIBS="$LIBS"
4210 LIBS="-l${termlib} $LIBS"
4211 cat > conftest.$ac_ext <<EOF
4212 #line 4213 "configure"
4213 #include "confdefs.h"
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4217 char tgetent();
4219 int main() {
4220 tgetent()
4221 ; return 0; }
4223 if { (eval echo configure:4224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4224 rm -rf conftest*
4225 eval "ac_cv_lib_$ac_lib_var=yes"
4226 else
4227 echo "configure: failed program was:" >&5
4228 cat conftest.$ac_ext >&5
4229 rm -rf conftest*
4230 eval "ac_cv_lib_$ac_lib_var=no"
4232 rm -f conftest*
4233 LIBS="$ac_save_LIBS"
4236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4237 echo "$ac_t""yes" 1>&6
4238 TERMLIBS="-l${termlib}"; break
4239 else
4240 echo "$ac_t""no" 1>&6
4243 done
4244 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4245 echo "configure:4246: checking for rl_callback_handler_install in -lreadline" >&5
4246 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4249 else
4250 ac_save_LIBS="$LIBS"
4251 LIBS="-lreadline $TERMLIBS $LIBS"
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4255 /* Override any gcc2 internal prototype to avoid an error. */
4256 /* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258 char rl_callback_handler_install();
4260 int main() {
4261 rl_callback_handler_install()
4262 ; return 0; }
4264 if { (eval echo configure:4265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4265 rm -rf conftest*
4266 eval "ac_cv_lib_$ac_lib_var=yes"
4267 else
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4270 rm -rf conftest*
4271 eval "ac_cv_lib_$ac_lib_var=no"
4273 rm -f conftest*
4274 LIBS="$ac_save_LIBS"
4277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4278 echo "$ac_t""yes" 1>&6
4279 TERMLIBS="-lreadline $TERMLIBS"
4280 cat >> confdefs.h <<\EOF
4281 #define HAVE_LIBREADLINE 1
4284 break
4285 else
4286 echo "$ac_t""no" 1>&6
4287 TERMLIBS=
4290 else
4291 echo "$ac_t""no" 1>&6
4293 done
4297 echo "$ac_t""no" 1>&6
4300 echo "$ac_t""yes" 1>&6
4302 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4303 # alternate readline path
4304 _ldflags=${LDFLAGS}
4305 _cppflags=${CPPFLAGS}
4307 # Add additional search path
4308 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4309 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4311 for ac_hdr in readline.h history.h readline/readline.h
4313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4315 echo "configure:4316: checking for $ac_hdr" >&5
4316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4318 else
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 #include <$ac_hdr>
4324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4325 { (eval echo configure:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4327 if test -z "$ac_err"; then
4328 rm -rf conftest*
4329 eval "ac_cv_header_$ac_safe=yes"
4330 else
4331 echo "$ac_err" >&5
4332 echo "configure: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4334 rm -rf conftest*
4335 eval "ac_cv_header_$ac_safe=no"
4337 rm -f conftest*
4339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4342 cat >> confdefs.h <<EOF
4343 #define $ac_tr_hdr 1
4346 else
4347 echo "$ac_t""no" 1>&6
4349 done
4351 for ac_hdr in readline/history.h
4353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4355 echo "configure:4356: checking for $ac_hdr" >&5
4356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4357 echo $ac_n "(cached) $ac_c" 1>&6
4358 else
4359 cat > conftest.$ac_ext <<EOF
4360 #line 4361 "configure"
4361 #include "confdefs.h"
4362 #include <$ac_hdr>
4364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4365 { (eval echo configure:4366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4367 if test -z "$ac_err"; then
4368 rm -rf conftest*
4369 eval "ac_cv_header_$ac_safe=yes"
4370 else
4371 echo "$ac_err" >&5
4372 echo "configure: failed program was:" >&5
4373 cat conftest.$ac_ext >&5
4374 rm -rf conftest*
4375 eval "ac_cv_header_$ac_safe=no"
4377 rm -f conftest*
4379 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4380 echo "$ac_t""yes" 1>&6
4381 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4382 cat >> confdefs.h <<EOF
4383 #define $ac_tr_hdr 1
4386 else
4387 echo "$ac_t""no" 1>&6
4389 done
4392 for ac_hdr in readline.h readline/readline.h
4394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4396 echo "configure:4397: checking for $ac_hdr" >&5
4397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4399 else
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 #include <$ac_hdr>
4405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4406 { (eval echo configure:4407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4408 if test -z "$ac_err"; then
4409 rm -rf conftest*
4410 eval "ac_cv_header_$ac_safe=yes"
4411 else
4412 echo "$ac_err" >&5
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 rm -rf conftest*
4416 eval "ac_cv_header_$ac_safe=no"
4418 rm -f conftest*
4420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4421 echo "$ac_t""yes" 1>&6
4422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4423 cat >> confdefs.h <<EOF
4424 #define $ac_tr_hdr 1
4427 for termlib in ncurses curses termcap terminfo termlib; do
4428 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4429 echo "configure:4430: checking for tgetent in -l${termlib}" >&5
4430 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4433 else
4434 ac_save_LIBS="$LIBS"
4435 LIBS="-l${termlib} $LIBS"
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4442 char tgetent();
4444 int main() {
4445 tgetent()
4446 ; return 0; }
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4449 rm -rf conftest*
4450 eval "ac_cv_lib_$ac_lib_var=yes"
4451 else
4452 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5
4454 rm -rf conftest*
4455 eval "ac_cv_lib_$ac_lib_var=no"
4457 rm -f conftest*
4458 LIBS="$ac_save_LIBS"
4461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4462 echo "$ac_t""yes" 1>&6
4463 TERMLIBS="-l${termlib}"; break
4464 else
4465 echo "$ac_t""no" 1>&6
4468 done
4469 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4470 echo "configure:4471: checking for rl_callback_handler_install in -lreadline" >&5
4471 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4474 else
4475 ac_save_LIBS="$LIBS"
4476 LIBS="-lreadline $TERMLIBS $LIBS"
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char rl_callback_handler_install();
4485 int main() {
4486 rl_callback_handler_install()
4487 ; return 0; }
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4490 rm -rf conftest*
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4492 else
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 rm -rf conftest*
4496 eval "ac_cv_lib_$ac_lib_var=no"
4498 rm -f conftest*
4499 LIBS="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4504 TERMLDFLAGS="-L$with_readline/lib"
4505 TERMCPPFLAGS="-I$with_readline/include"
4506 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4507 TERMLIBS="-lreadline $TERMLIBS"
4508 cat >> confdefs.h <<\EOF
4509 #define HAVE_LIBREADLINE 1
4512 break
4513 else
4514 echo "$ac_t""no" 1>&6
4515 TERMLIBS= CPPFLAGS=$_cppflags
4518 else
4519 echo "$ac_t""no" 1>&6
4521 done
4524 LDFLAGS=$_ldflags
4526 esac
4527 else
4528 echo "$ac_t""no" 1>&6
4535 # The following test taken from the cvs sources
4536 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4537 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4538 # libsocket.so which has a bad implementation of gethostbyname (it
4539 # only looks in /etc/hosts), so we only look for -lsocket if we need
4540 # it.
4541 for ac_func in connect
4543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4544 echo "configure:4545: checking for $ac_func" >&5
4545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4547 else
4548 cat > conftest.$ac_ext <<EOF
4549 #line 4550 "configure"
4550 #include "confdefs.h"
4551 /* System header to define __stub macros and hopefully few prototypes,
4552 which can conflict with char $ac_func(); below. */
4553 #include <assert.h>
4554 /* Override any gcc2 internal prototype to avoid an error. */
4555 /* We use char because int might match the return type of a gcc2
4556 builtin and then its argument prototype would still apply. */
4557 char $ac_func();
4559 int main() {
4561 /* The GNU C library defines this for functions which it implements
4562 to always fail with ENOSYS. Some functions are actually named
4563 something starting with __ and the normal name is an alias. */
4564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4565 choke me
4566 #else
4567 $ac_func();
4568 #endif
4570 ; return 0; }
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573 rm -rf conftest*
4574 eval "ac_cv_func_$ac_func=yes"
4575 else
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 rm -rf conftest*
4579 eval "ac_cv_func_$ac_func=no"
4581 rm -f conftest*
4584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4587 cat >> confdefs.h <<EOF
4588 #define $ac_tr_func 1
4591 else
4592 echo "$ac_t""no" 1>&6
4594 done
4596 if test x"$ac_cv_func_connect" = x"no"; then
4597 case "$LIBS" in
4598 *-lnsl*) ;;
4599 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4600 echo "configure:4601: checking for printf in -lnsl_s" >&5
4601 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4602 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4604 else
4605 ac_save_LIBS="$LIBS"
4606 LIBS="-lnsl_s $LIBS"
4607 cat > conftest.$ac_ext <<EOF
4608 #line 4609 "configure"
4609 #include "confdefs.h"
4610 /* Override any gcc2 internal prototype to avoid an error. */
4611 /* We use char because int might match the return type of a gcc2
4612 builtin and then its argument prototype would still apply. */
4613 char printf();
4615 int main() {
4616 printf()
4617 ; return 0; }
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 rm -rf conftest*
4621 eval "ac_cv_lib_$ac_lib_var=yes"
4622 else
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 rm -rf conftest*
4626 eval "ac_cv_lib_$ac_lib_var=no"
4628 rm -f conftest*
4629 LIBS="$ac_save_LIBS"
4632 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4633 echo "$ac_t""yes" 1>&6
4634 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4635 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4636 cat >> confdefs.h <<EOF
4637 #define $ac_tr_lib 1
4640 LIBS="-lnsl_s $LIBS"
4642 else
4643 echo "$ac_t""no" 1>&6
4646 esac
4647 case "$LIBS" in
4648 *-lnsl*) ;;
4649 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4650 echo "configure:4651: checking for printf in -lnsl" >&5
4651 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4654 else
4655 ac_save_LIBS="$LIBS"
4656 LIBS="-lnsl $LIBS"
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4660 /* Override any gcc2 internal prototype to avoid an error. */
4661 /* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663 char printf();
4665 int main() {
4666 printf()
4667 ; return 0; }
4669 if { (eval echo configure:4670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4670 rm -rf conftest*
4671 eval "ac_cv_lib_$ac_lib_var=yes"
4672 else
4673 echo "configure: failed program was:" >&5
4674 cat conftest.$ac_ext >&5
4675 rm -rf conftest*
4676 eval "ac_cv_lib_$ac_lib_var=no"
4678 rm -f conftest*
4679 LIBS="$ac_save_LIBS"
4682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4683 echo "$ac_t""yes" 1>&6
4684 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4686 cat >> confdefs.h <<EOF
4687 #define $ac_tr_lib 1
4690 LIBS="-lnsl $LIBS"
4692 else
4693 echo "$ac_t""no" 1>&6
4696 esac
4697 case "$LIBS" in
4698 *-lsocket*) ;;
4699 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4700 echo "configure:4701: checking for connect in -lsocket" >&5
4701 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4703 echo $ac_n "(cached) $ac_c" 1>&6
4704 else
4705 ac_save_LIBS="$LIBS"
4706 LIBS="-lsocket $LIBS"
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* Override any gcc2 internal prototype to avoid an error. */
4711 /* We use char because int might match the return type of a gcc2
4712 builtin and then its argument prototype would still apply. */
4713 char connect();
4715 int main() {
4716 connect()
4717 ; return 0; }
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4720 rm -rf conftest*
4721 eval "ac_cv_lib_$ac_lib_var=yes"
4722 else
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4725 rm -rf conftest*
4726 eval "ac_cv_lib_$ac_lib_var=no"
4728 rm -f conftest*
4729 LIBS="$ac_save_LIBS"
4732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4733 echo "$ac_t""yes" 1>&6
4734 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4735 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4736 cat >> confdefs.h <<EOF
4737 #define $ac_tr_lib 1
4740 LIBS="-lsocket $LIBS"
4742 else
4743 echo "$ac_t""no" 1>&6
4746 esac
4747 case "$LIBS" in
4748 *-linet*) ;;
4749 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4750 echo "configure:4751: checking for connect in -linet" >&5
4751 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4752 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4753 echo $ac_n "(cached) $ac_c" 1>&6
4754 else
4755 ac_save_LIBS="$LIBS"
4756 LIBS="-linet $LIBS"
4757 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure"
4759 #include "confdefs.h"
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char connect();
4765 int main() {
4766 connect()
4767 ; return 0; }
4769 if { (eval echo configure:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770 rm -rf conftest*
4771 eval "ac_cv_lib_$ac_lib_var=yes"
4772 else
4773 echo "configure: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4775 rm -rf conftest*
4776 eval "ac_cv_lib_$ac_lib_var=no"
4778 rm -f conftest*
4779 LIBS="$ac_save_LIBS"
4782 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4783 echo "$ac_t""yes" 1>&6
4784 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4785 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4786 cat >> confdefs.h <<EOF
4787 #define $ac_tr_lib 1
4790 LIBS="-linet $LIBS"
4792 else
4793 echo "$ac_t""no" 1>&6
4796 esac
4797 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4798 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4799 # ac_cv_func_connect=yes
4800 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4801 cat >> confdefs.h <<\EOF
4802 #define HAVE_CONNECT 1
4808 ###############################################
4809 # test for where we get get_yp_default_domain() from
4810 for ac_func in yp_get_default_domain
4812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_func" >&5
4814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4816 else
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4820 /* System header to define __stub macros and hopefully few prototypes,
4821 which can conflict with char $ac_func(); below. */
4822 #include <assert.h>
4823 /* Override any gcc2 internal prototype to avoid an error. */
4824 /* We use char because int might match the return type of a gcc2
4825 builtin and then its argument prototype would still apply. */
4826 char $ac_func();
4828 int main() {
4830 /* The GNU C library defines this for functions which it implements
4831 to always fail with ENOSYS. Some functions are actually named
4832 something starting with __ and the normal name is an alias. */
4833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4834 choke me
4835 #else
4836 $ac_func();
4837 #endif
4839 ; return 0; }
4841 if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 rm -rf conftest*
4843 eval "ac_cv_func_$ac_func=yes"
4844 else
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 rm -rf conftest*
4848 eval "ac_cv_func_$ac_func=no"
4850 rm -f conftest*
4853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4856 cat >> confdefs.h <<EOF
4857 #define $ac_tr_func 1
4860 else
4861 echo "$ac_t""no" 1>&6
4863 done
4865 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
4866 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
4867 echo "configure:4868: checking for yp_get_default_domain in -lnsl" >&5
4868 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
4869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4870 echo $ac_n "(cached) $ac_c" 1>&6
4871 else
4872 ac_save_LIBS="$LIBS"
4873 LIBS="-lnsl $LIBS"
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4877 /* Override any gcc2 internal prototype to avoid an error. */
4878 /* We use char because int might match the return type of a gcc2
4879 builtin and then its argument prototype would still apply. */
4880 char yp_get_default_domain();
4882 int main() {
4883 yp_get_default_domain()
4884 ; return 0; }
4886 if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4887 rm -rf conftest*
4888 eval "ac_cv_lib_$ac_lib_var=yes"
4889 else
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4892 rm -rf conftest*
4893 eval "ac_cv_lib_$ac_lib_var=no"
4895 rm -f conftest*
4896 LIBS="$ac_save_LIBS"
4899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4900 echo "$ac_t""yes" 1>&6
4901 LIBS="$LIBS -lnsl";
4902 cat >> confdefs.h <<\EOF
4903 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
4906 else
4907 echo "$ac_t""no" 1>&6
4912 # Check if we have execl, if not we need to compile smbrun.
4913 for ac_func in execl
4915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4916 echo "configure:4917: checking for $ac_func" >&5
4917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4918 echo $ac_n "(cached) $ac_c" 1>&6
4919 else
4920 cat > conftest.$ac_ext <<EOF
4921 #line 4922 "configure"
4922 #include "confdefs.h"
4923 /* System header to define __stub macros and hopefully few prototypes,
4924 which can conflict with char $ac_func(); below. */
4925 #include <assert.h>
4926 /* Override any gcc2 internal prototype to avoid an error. */
4927 /* We use char because int might match the return type of a gcc2
4928 builtin and then its argument prototype would still apply. */
4929 char $ac_func();
4931 int main() {
4933 /* The GNU C library defines this for functions which it implements
4934 to always fail with ENOSYS. Some functions are actually named
4935 something starting with __ and the normal name is an alias. */
4936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4937 choke me
4938 #else
4939 $ac_func();
4940 #endif
4942 ; return 0; }
4944 if { (eval echo configure:4945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4945 rm -rf conftest*
4946 eval "ac_cv_func_$ac_func=yes"
4947 else
4948 echo "configure: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 rm -rf conftest*
4951 eval "ac_cv_func_$ac_func=no"
4953 rm -f conftest*
4956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4957 echo "$ac_t""yes" 1>&6
4958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4959 cat >> confdefs.h <<EOF
4960 #define $ac_tr_func 1
4963 else
4964 echo "$ac_t""no" 1>&6
4966 done
4968 if test x"$ac_cv_func_execl" = x"no"; then
4969 RUNPROG="bin/smbrun"
4970 else
4971 RUNPROG=""
4974 for ac_func in waitpid getcwd strdup strtoul strerror chown fchown chmod fchmod chroot
4976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4977 echo "configure:4978: checking for $ac_func" >&5
4978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4980 else
4981 cat > conftest.$ac_ext <<EOF
4982 #line 4983 "configure"
4983 #include "confdefs.h"
4984 /* System header to define __stub macros and hopefully few prototypes,
4985 which can conflict with char $ac_func(); below. */
4986 #include <assert.h>
4987 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */
4990 char $ac_func();
4992 int main() {
4994 /* The GNU C library defines this for functions which it implements
4995 to always fail with ENOSYS. Some functions are actually named
4996 something starting with __ and the normal name is an alias. */
4997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4998 choke me
4999 #else
5000 $ac_func();
5001 #endif
5003 ; return 0; }
5005 if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5006 rm -rf conftest*
5007 eval "ac_cv_func_$ac_func=yes"
5008 else
5009 echo "configure: failed program was:" >&5
5010 cat conftest.$ac_ext >&5
5011 rm -rf conftest*
5012 eval "ac_cv_func_$ac_func=no"
5014 rm -f conftest*
5017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5018 echo "$ac_t""yes" 1>&6
5019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5020 cat >> confdefs.h <<EOF
5021 #define $ac_tr_func 1
5024 else
5025 echo "$ac_t""no" 1>&6
5027 done
5029 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset
5031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5032 echo "configure:5033: checking for $ac_func" >&5
5033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5035 else
5036 cat > conftest.$ac_ext <<EOF
5037 #line 5038 "configure"
5038 #include "confdefs.h"
5039 /* System header to define __stub macros and hopefully few prototypes,
5040 which can conflict with char $ac_func(); below. */
5041 #include <assert.h>
5042 /* Override any gcc2 internal prototype to avoid an error. */
5043 /* We use char because int might match the return type of a gcc2
5044 builtin and then its argument prototype would still apply. */
5045 char $ac_func();
5047 int main() {
5049 /* The GNU C library defines this for functions which it implements
5050 to always fail with ENOSYS. Some functions are actually named
5051 something starting with __ and the normal name is an alias. */
5052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5053 choke me
5054 #else
5055 $ac_func();
5056 #endif
5058 ; return 0; }
5060 if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5061 rm -rf conftest*
5062 eval "ac_cv_func_$ac_func=yes"
5063 else
5064 echo "configure: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 rm -rf conftest*
5067 eval "ac_cv_func_$ac_func=no"
5069 rm -f conftest*
5072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5073 echo "$ac_t""yes" 1>&6
5074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5075 cat >> confdefs.h <<EOF
5076 #define $ac_tr_func 1
5079 else
5080 echo "$ac_t""no" 1>&6
5082 done
5084 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5086 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5087 echo "configure:5088: checking for $ac_func" >&5
5088 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5090 else
5091 cat > conftest.$ac_ext <<EOF
5092 #line 5093 "configure"
5093 #include "confdefs.h"
5094 /* System header to define __stub macros and hopefully few prototypes,
5095 which can conflict with char $ac_func(); below. */
5096 #include <assert.h>
5097 /* Override any gcc2 internal prototype to avoid an error. */
5098 /* We use char because int might match the return type of a gcc2
5099 builtin and then its argument prototype would still apply. */
5100 char $ac_func();
5102 int main() {
5104 /* The GNU C library defines this for functions which it implements
5105 to always fail with ENOSYS. Some functions are actually named
5106 something starting with __ and the normal name is an alias. */
5107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5108 choke me
5109 #else
5110 $ac_func();
5111 #endif
5113 ; return 0; }
5115 if { (eval echo configure:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5116 rm -rf conftest*
5117 eval "ac_cv_func_$ac_func=yes"
5118 else
5119 echo "configure: failed program was:" >&5
5120 cat conftest.$ac_ext >&5
5121 rm -rf conftest*
5122 eval "ac_cv_func_$ac_func=no"
5124 rm -f conftest*
5127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5128 echo "$ac_t""yes" 1>&6
5129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5130 cat >> confdefs.h <<EOF
5131 #define $ac_tr_func 1
5134 else
5135 echo "$ac_t""no" 1>&6
5137 done
5139 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
5141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5142 echo "configure:5143: checking for $ac_func" >&5
5143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5145 else
5146 cat > conftest.$ac_ext <<EOF
5147 #line 5148 "configure"
5148 #include "confdefs.h"
5149 /* System header to define __stub macros and hopefully few prototypes,
5150 which can conflict with char $ac_func(); below. */
5151 #include <assert.h>
5152 /* Override any gcc2 internal prototype to avoid an error. */
5153 /* We use char because int might match the return type of a gcc2
5154 builtin and then its argument prototype would still apply. */
5155 char $ac_func();
5157 int main() {
5159 /* The GNU C library defines this for functions which it implements
5160 to always fail with ENOSYS. Some functions are actually named
5161 something starting with __ and the normal name is an alias. */
5162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5163 choke me
5164 #else
5165 $ac_func();
5166 #endif
5168 ; return 0; }
5170 if { (eval echo configure:5171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5171 rm -rf conftest*
5172 eval "ac_cv_func_$ac_func=yes"
5173 else
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 rm -rf conftest*
5177 eval "ac_cv_func_$ac_func=no"
5179 rm -f conftest*
5182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5183 echo "$ac_t""yes" 1>&6
5184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5185 cat >> confdefs.h <<EOF
5186 #define $ac_tr_func 1
5189 else
5190 echo "$ac_t""no" 1>&6
5192 done
5194 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf
5196 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5197 echo "configure:5198: checking for $ac_func" >&5
5198 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5199 echo $ac_n "(cached) $ac_c" 1>&6
5200 else
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5204 /* System header to define __stub macros and hopefully few prototypes,
5205 which can conflict with char $ac_func(); below. */
5206 #include <assert.h>
5207 /* Override any gcc2 internal prototype to avoid an error. */
5208 /* We use char because int might match the return type of a gcc2
5209 builtin and then its argument prototype would still apply. */
5210 char $ac_func();
5212 int main() {
5214 /* The GNU C library defines this for functions which it implements
5215 to always fail with ENOSYS. Some functions are actually named
5216 something starting with __ and the normal name is an alias. */
5217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5218 choke me
5219 #else
5220 $ac_func();
5221 #endif
5223 ; return 0; }
5225 if { (eval echo configure:5226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5226 rm -rf conftest*
5227 eval "ac_cv_func_$ac_func=yes"
5228 else
5229 echo "configure: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5231 rm -rf conftest*
5232 eval "ac_cv_func_$ac_func=no"
5234 rm -f conftest*
5237 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5238 echo "$ac_t""yes" 1>&6
5239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5240 cat >> confdefs.h <<EOF
5241 #define $ac_tr_func 1
5244 else
5245 echo "$ac_t""no" 1>&6
5247 done
5249 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5252 echo "configure:5253: checking for $ac_func" >&5
5253 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6
5255 else
5256 cat > conftest.$ac_ext <<EOF
5257 #line 5258 "configure"
5258 #include "confdefs.h"
5259 /* System header to define __stub macros and hopefully few prototypes,
5260 which can conflict with char $ac_func(); below. */
5261 #include <assert.h>
5262 /* Override any gcc2 internal prototype to avoid an error. */
5263 /* We use char because int might match the return type of a gcc2
5264 builtin and then its argument prototype would still apply. */
5265 char $ac_func();
5267 int main() {
5269 /* The GNU C library defines this for functions which it implements
5270 to always fail with ENOSYS. Some functions are actually named
5271 something starting with __ and the normal name is an alias. */
5272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5273 choke me
5274 #else
5275 $ac_func();
5276 #endif
5278 ; return 0; }
5280 if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5281 rm -rf conftest*
5282 eval "ac_cv_func_$ac_func=yes"
5283 else
5284 echo "configure: failed program was:" >&5
5285 cat conftest.$ac_ext >&5
5286 rm -rf conftest*
5287 eval "ac_cv_func_$ac_func=no"
5289 rm -f conftest*
5292 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5293 echo "$ac_t""yes" 1>&6
5294 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5295 cat >> confdefs.h <<EOF
5296 #define $ac_tr_func 1
5299 else
5300 echo "$ac_t""no" 1>&6
5302 done
5304 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5307 echo "configure:5308: checking for $ac_func" >&5
5308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5309 echo $ac_n "(cached) $ac_c" 1>&6
5310 else
5311 cat > conftest.$ac_ext <<EOF
5312 #line 5313 "configure"
5313 #include "confdefs.h"
5314 /* System header to define __stub macros and hopefully few prototypes,
5315 which can conflict with char $ac_func(); below. */
5316 #include <assert.h>
5317 /* Override any gcc2 internal prototype to avoid an error. */
5318 /* We use char because int might match the return type of a gcc2
5319 builtin and then its argument prototype would still apply. */
5320 char $ac_func();
5322 int main() {
5324 /* The GNU C library defines this for functions which it implements
5325 to always fail with ENOSYS. Some functions are actually named
5326 something starting with __ and the normal name is an alias. */
5327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5328 choke me
5329 #else
5330 $ac_func();
5331 #endif
5333 ; return 0; }
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 rm -rf conftest*
5337 eval "ac_cv_func_$ac_func=yes"
5338 else
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 rm -rf conftest*
5342 eval "ac_cv_func_$ac_func=no"
5344 rm -f conftest*
5347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5348 echo "$ac_t""yes" 1>&6
5349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5350 cat >> confdefs.h <<EOF
5351 #define $ac_tr_func 1
5354 else
5355 echo "$ac_t""no" 1>&6
5357 done
5359 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5362 echo "configure:5363: checking for $ac_func" >&5
5363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5364 echo $ac_n "(cached) $ac_c" 1>&6
5365 else
5366 cat > conftest.$ac_ext <<EOF
5367 #line 5368 "configure"
5368 #include "confdefs.h"
5369 /* System header to define __stub macros and hopefully few prototypes,
5370 which can conflict with char $ac_func(); below. */
5371 #include <assert.h>
5372 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5375 char $ac_func();
5377 int main() {
5379 /* The GNU C library defines this for functions which it implements
5380 to always fail with ENOSYS. Some functions are actually named
5381 something starting with __ and the normal name is an alias. */
5382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5383 choke me
5384 #else
5385 $ac_func();
5386 #endif
5388 ; return 0; }
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 rm -rf conftest*
5392 eval "ac_cv_func_$ac_func=yes"
5393 else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 eval "ac_cv_func_$ac_func=no"
5399 rm -f conftest*
5402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5403 echo "$ac_t""yes" 1>&6
5404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5405 cat >> confdefs.h <<EOF
5406 #define $ac_tr_func 1
5409 else
5410 echo "$ac_t""no" 1>&6
5412 done
5414 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5417 echo "configure:5418: checking for $ac_func" >&5
5418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5420 else
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5424 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char $ac_func(); below. */
5426 #include <assert.h>
5427 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */
5430 char $ac_func();
5432 int main() {
5434 /* The GNU C library defines this for functions which it implements
5435 to always fail with ENOSYS. Some functions are actually named
5436 something starting with __ and the normal name is an alias. */
5437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5438 choke me
5439 #else
5440 $ac_func();
5441 #endif
5443 ; return 0; }
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5446 rm -rf conftest*
5447 eval "ac_cv_func_$ac_func=yes"
5448 else
5449 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 rm -rf conftest*
5452 eval "ac_cv_func_$ac_func=no"
5454 rm -f conftest*
5457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5458 echo "$ac_t""yes" 1>&6
5459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5460 cat >> confdefs.h <<EOF
5461 #define $ac_tr_func 1
5464 else
5465 echo "$ac_t""no" 1>&6
5467 done
5469 # setbuffer is needed for smbtorture
5470 for ac_func in setbuffer
5472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5473 echo "configure:5474: checking for $ac_func" >&5
5474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5476 else
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 /* System header to define __stub macros and hopefully few prototypes,
5481 which can conflict with char $ac_func(); below. */
5482 #include <assert.h>
5483 /* Override any gcc2 internal prototype to avoid an error. */
5484 /* We use char because int might match the return type of a gcc2
5485 builtin and then its argument prototype would still apply. */
5486 char $ac_func();
5488 int main() {
5490 /* The GNU C library defines this for functions which it implements
5491 to always fail with ENOSYS. Some functions are actually named
5492 something starting with __ and the normal name is an alias. */
5493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5494 choke me
5495 #else
5496 $ac_func();
5497 #endif
5499 ; return 0; }
5501 if { (eval echo configure:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5502 rm -rf conftest*
5503 eval "ac_cv_func_$ac_func=yes"
5504 else
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 rm -rf conftest*
5508 eval "ac_cv_func_$ac_func=no"
5510 rm -f conftest*
5513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5514 echo "$ac_t""yes" 1>&6
5515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5516 cat >> confdefs.h <<EOF
5517 #define $ac_tr_func 1
5520 else
5521 echo "$ac_t""no" 1>&6
5523 done
5526 # syscall() is needed for smbwrapper.
5527 for ac_func in syscall
5529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5530 echo "configure:5531: checking for $ac_func" >&5
5531 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5533 else
5534 cat > conftest.$ac_ext <<EOF
5535 #line 5536 "configure"
5536 #include "confdefs.h"
5537 /* System header to define __stub macros and hopefully few prototypes,
5538 which can conflict with char $ac_func(); below. */
5539 #include <assert.h>
5540 /* Override any gcc2 internal prototype to avoid an error. */
5541 /* We use char because int might match the return type of a gcc2
5542 builtin and then its argument prototype would still apply. */
5543 char $ac_func();
5545 int main() {
5547 /* The GNU C library defines this for functions which it implements
5548 to always fail with ENOSYS. Some functions are actually named
5549 something starting with __ and the normal name is an alias. */
5550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5551 choke me
5552 #else
5553 $ac_func();
5554 #endif
5556 ; return 0; }
5558 if { (eval echo configure:5559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5559 rm -rf conftest*
5560 eval "ac_cv_func_$ac_func=yes"
5561 else
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 rm -rf conftest*
5565 eval "ac_cv_func_$ac_func=no"
5567 rm -f conftest*
5570 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5571 echo "$ac_t""yes" 1>&6
5572 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5573 cat >> confdefs.h <<EOF
5574 #define $ac_tr_func 1
5577 else
5578 echo "$ac_t""no" 1>&6
5580 done
5583 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5585 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5586 echo "configure:5587: checking for $ac_func" >&5
5587 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5588 echo $ac_n "(cached) $ac_c" 1>&6
5589 else
5590 cat > conftest.$ac_ext <<EOF
5591 #line 5592 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char $ac_func(); below. */
5595 #include <assert.h>
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 /* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599 char $ac_func();
5601 int main() {
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5607 choke me
5608 #else
5609 $ac_func();
5610 #endif
5612 ; return 0; }
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615 rm -rf conftest*
5616 eval "ac_cv_func_$ac_func=yes"
5617 else
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5620 rm -rf conftest*
5621 eval "ac_cv_func_$ac_func=no"
5623 rm -f conftest*
5626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5629 cat >> confdefs.h <<EOF
5630 #define $ac_tr_func 1
5633 else
5634 echo "$ac_t""no" 1>&6
5636 done
5638 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_func" >&5
5642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5644 else
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func(); below. */
5650 #include <assert.h>
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5654 char $ac_func();
5656 int main() {
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5662 choke me
5663 #else
5664 $ac_func();
5665 #endif
5667 ; return 0; }
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5670 rm -rf conftest*
5671 eval "ac_cv_func_$ac_func=yes"
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 eval "ac_cv_func_$ac_func=no"
5678 rm -f conftest*
5681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684 cat >> confdefs.h <<EOF
5685 #define $ac_tr_func 1
5688 else
5689 echo "$ac_t""no" 1>&6
5691 done
5693 for ac_func in __getcwd _getcwd
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5705 #include <assert.h>
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5709 char $ac_func();
5711 int main() {
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5717 choke me
5718 #else
5719 $ac_func();
5720 #endif
5722 ; return 0; }
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 rm -rf conftest*
5726 eval "ac_cv_func_$ac_func=yes"
5727 else
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 rm -rf conftest*
5731 eval "ac_cv_func_$ac_func=no"
5733 rm -f conftest*
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h <<EOF
5740 #define $ac_tr_func 1
5743 else
5744 echo "$ac_t""no" 1>&6
5746 done
5748 for ac_func in __xstat __fxstat __lxstat
5750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_func" >&5
5752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5754 else
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5760 #include <assert.h>
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5764 char $ac_func();
5766 int main() {
5768 /* The GNU C library defines this for functions which it implements
5769 to always fail with ENOSYS. Some functions are actually named
5770 something starting with __ and the normal name is an alias. */
5771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5772 choke me
5773 #else
5774 $ac_func();
5775 #endif
5777 ; return 0; }
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5780 rm -rf conftest*
5781 eval "ac_cv_func_$ac_func=yes"
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 eval "ac_cv_func_$ac_func=no"
5788 rm -f conftest*
5791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5794 cat >> confdefs.h <<EOF
5795 #define $ac_tr_func 1
5798 else
5799 echo "$ac_t""no" 1>&6
5801 done
5803 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
5805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5806 echo "configure:5807: checking for $ac_func" >&5
5807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5809 else
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 /* System header to define __stub macros and hopefully few prototypes,
5814 which can conflict with char $ac_func(); below. */
5815 #include <assert.h>
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5819 char $ac_func();
5821 int main() {
5823 /* The GNU C library defines this for functions which it implements
5824 to always fail with ENOSYS. Some functions are actually named
5825 something starting with __ and the normal name is an alias. */
5826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5827 choke me
5828 #else
5829 $ac_func();
5830 #endif
5832 ; return 0; }
5834 if { (eval echo configure:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5835 rm -rf conftest*
5836 eval "ac_cv_func_$ac_func=yes"
5837 else
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5840 rm -rf conftest*
5841 eval "ac_cv_func_$ac_func=no"
5843 rm -f conftest*
5846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5847 echo "$ac_t""yes" 1>&6
5848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5849 cat >> confdefs.h <<EOF
5850 #define $ac_tr_func 1
5853 else
5854 echo "$ac_t""no" 1>&6
5856 done
5858 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_func" >&5
5862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5864 else
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* System header to define __stub macros and hopefully few prototypes,
5869 which can conflict with char $ac_func(); below. */
5870 #include <assert.h>
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 /* We use char because int might match the return type of a gcc2
5873 builtin and then its argument prototype would still apply. */
5874 char $ac_func();
5876 int main() {
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5882 choke me
5883 #else
5884 $ac_func();
5885 #endif
5887 ; return 0; }
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 rm -rf conftest*
5891 eval "ac_cv_func_$ac_func=yes"
5892 else
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 rm -rf conftest*
5896 eval "ac_cv_func_$ac_func=no"
5898 rm -f conftest*
5901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5904 cat >> confdefs.h <<EOF
5905 #define $ac_tr_func 1
5908 else
5909 echo "$ac_t""no" 1>&6
5911 done
5913 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_func" >&5
5917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* System header to define __stub macros and hopefully few prototypes,
5924 which can conflict with char $ac_func(); below. */
5925 #include <assert.h>
5926 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5929 char $ac_func();
5931 int main() {
5933 /* The GNU C library defines this for functions which it implements
5934 to always fail with ENOSYS. Some functions are actually named
5935 something starting with __ and the normal name is an alias. */
5936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5937 choke me
5938 #else
5939 $ac_func();
5940 #endif
5942 ; return 0; }
5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 rm -rf conftest*
5946 eval "ac_cv_func_$ac_func=yes"
5947 else
5948 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 rm -rf conftest*
5951 eval "ac_cv_func_$ac_func=no"
5953 rm -f conftest*
5956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959 cat >> confdefs.h <<EOF
5960 #define $ac_tr_func 1
5963 else
5964 echo "$ac_t""no" 1>&6
5966 done
5968 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_func" >&5
5972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5974 else
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func(); below. */
5980 #include <assert.h>
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char $ac_func();
5986 int main() {
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5992 choke me
5993 #else
5994 $ac_func();
5995 #endif
5997 ; return 0; }
5999 if { (eval echo configure:6000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6000 rm -rf conftest*
6001 eval "ac_cv_func_$ac_func=yes"
6002 else
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 rm -rf conftest*
6006 eval "ac_cv_func_$ac_func=no"
6008 rm -f conftest*
6011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6014 cat >> confdefs.h <<EOF
6015 #define $ac_tr_func 1
6018 else
6019 echo "$ac_t""no" 1>&6
6021 done
6023 for ac_func in _write __write _fork __fork
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6029 else
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6035 #include <assert.h>
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6039 char $ac_func();
6041 int main() {
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 choke me
6048 #else
6049 $ac_func();
6050 #endif
6052 ; return 0; }
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 rm -rf conftest*
6056 eval "ac_cv_func_$ac_func=yes"
6057 else
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 rm -rf conftest*
6061 eval "ac_cv_func_$ac_func=no"
6063 rm -f conftest*
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_func 1
6073 else
6074 echo "$ac_t""no" 1>&6
6076 done
6078 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6081 echo "configure:6082: checking for $ac_func" >&5
6082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6084 else
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func(); below. */
6090 #include <assert.h>
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6094 char $ac_func();
6096 int main() {
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6102 choke me
6103 #else
6104 $ac_func();
6105 #endif
6107 ; return 0; }
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6110 rm -rf conftest*
6111 eval "ac_cv_func_$ac_func=yes"
6112 else
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 rm -rf conftest*
6116 eval "ac_cv_func_$ac_func=no"
6118 rm -f conftest*
6121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6124 cat >> confdefs.h <<EOF
6125 #define $ac_tr_func 1
6128 else
6129 echo "$ac_t""no" 1>&6
6131 done
6133 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6139 else
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6145 #include <assert.h>
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char $ac_func();
6151 int main() {
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 choke me
6158 #else
6159 $ac_func();
6160 #endif
6162 ; return 0; }
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 rm -rf conftest*
6166 eval "ac_cv_func_$ac_func=yes"
6167 else
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 rm -rf conftest*
6171 eval "ac_cv_func_$ac_func=no"
6173 rm -f conftest*
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h <<EOF
6180 #define $ac_tr_func 1
6183 else
6184 echo "$ac_t""no" 1>&6
6186 done
6188 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6191 echo "configure:6192: checking for $ac_func" >&5
6192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6193 echo $ac_n "(cached) $ac_c" 1>&6
6194 else
6195 cat > conftest.$ac_ext <<EOF
6196 #line 6197 "configure"
6197 #include "confdefs.h"
6198 /* System header to define __stub macros and hopefully few prototypes,
6199 which can conflict with char $ac_func(); below. */
6200 #include <assert.h>
6201 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */
6204 char $ac_func();
6206 int main() {
6208 /* The GNU C library defines this for functions which it implements
6209 to always fail with ENOSYS. Some functions are actually named
6210 something starting with __ and the normal name is an alias. */
6211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6212 choke me
6213 #else
6214 $ac_func();
6215 #endif
6217 ; return 0; }
6219 if { (eval echo configure:6220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6220 rm -rf conftest*
6221 eval "ac_cv_func_$ac_func=yes"
6222 else
6223 echo "configure: failed program was:" >&5
6224 cat conftest.$ac_ext >&5
6225 rm -rf conftest*
6226 eval "ac_cv_func_$ac_func=no"
6228 rm -f conftest*
6231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6232 echo "$ac_t""yes" 1>&6
6233 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6234 cat >> confdefs.h <<EOF
6235 #define $ac_tr_func 1
6238 else
6239 echo "$ac_t""no" 1>&6
6241 done
6243 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6245 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_func" >&5
6247 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6249 else
6250 cat > conftest.$ac_ext <<EOF
6251 #line 6252 "configure"
6252 #include "confdefs.h"
6253 /* System header to define __stub macros and hopefully few prototypes,
6254 which can conflict with char $ac_func(); below. */
6255 #include <assert.h>
6256 /* Override any gcc2 internal prototype to avoid an error. */
6257 /* We use char because int might match the return type of a gcc2
6258 builtin and then its argument prototype would still apply. */
6259 char $ac_func();
6261 int main() {
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6267 choke me
6268 #else
6269 $ac_func();
6270 #endif
6272 ; return 0; }
6274 if { (eval echo configure:6275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6275 rm -rf conftest*
6276 eval "ac_cv_func_$ac_func=yes"
6277 else
6278 echo "configure: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6280 rm -rf conftest*
6281 eval "ac_cv_func_$ac_func=no"
6283 rm -f conftest*
6286 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6287 echo "$ac_t""yes" 1>&6
6288 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6289 cat >> confdefs.h <<EOF
6290 #define $ac_tr_func 1
6293 else
6294 echo "$ac_t""no" 1>&6
6296 done
6298 for ac_func in open64 _open64 __open64 creat64
6300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6301 echo "configure:6302: checking for $ac_func" >&5
6302 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6303 echo $ac_n "(cached) $ac_c" 1>&6
6304 else
6305 cat > conftest.$ac_ext <<EOF
6306 #line 6307 "configure"
6307 #include "confdefs.h"
6308 /* System header to define __stub macros and hopefully few prototypes,
6309 which can conflict with char $ac_func(); below. */
6310 #include <assert.h>
6311 /* Override any gcc2 internal prototype to avoid an error. */
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6314 char $ac_func();
6316 int main() {
6318 /* The GNU C library defines this for functions which it implements
6319 to always fail with ENOSYS. Some functions are actually named
6320 something starting with __ and the normal name is an alias. */
6321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6322 choke me
6323 #else
6324 $ac_func();
6325 #endif
6327 ; return 0; }
6329 if { (eval echo configure:6330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 rm -rf conftest*
6331 eval "ac_cv_func_$ac_func=yes"
6332 else
6333 echo "configure: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6335 rm -rf conftest*
6336 eval "ac_cv_func_$ac_func=no"
6338 rm -f conftest*
6341 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6342 echo "$ac_t""yes" 1>&6
6343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6344 cat >> confdefs.h <<EOF
6345 #define $ac_tr_func 1
6348 else
6349 echo "$ac_t""no" 1>&6
6351 done
6355 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6358 if test x$ac_cv_func_stat64 = xno ; then
6359 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6360 echo "configure:6361: checking for stat64 in <sys/stat.h>" >&5
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6365 #if defined(HAVE_UNISTD_H)
6366 #include <unistd.h>
6367 #endif
6368 #include <sys/stat.h>
6370 int main() {
6371 struct stat64 st64; exit(stat64(".",&st64));
6372 ; return 0; }
6374 if { (eval echo configure:6375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6375 rm -rf conftest*
6376 ac_cv_func_stat64=yes
6377 else
6378 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6381 rm -f conftest*
6382 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6383 if test x$ac_cv_func_stat64 = xyes ; then
6384 cat >> confdefs.h <<\EOF
6385 #define HAVE_STAT64 1
6391 if test x$ac_cv_func_lstat64 = xno ; then
6392 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6393 echo "configure:6394: checking for lstat64 in <sys/stat.h>" >&5
6394 cat > conftest.$ac_ext <<EOF
6395 #line 6396 "configure"
6396 #include "confdefs.h"
6398 #if defined(HAVE_UNISTD_H)
6399 #include <unistd.h>
6400 #endif
6401 #include <sys/stat.h>
6403 int main() {
6404 struct stat64 st64; exit(lstat64(".",&st64));
6405 ; return 0; }
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6408 rm -rf conftest*
6409 ac_cv_func_lstat64=yes
6410 else
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6414 rm -f conftest*
6415 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6416 if test x$ac_cv_func_lstat64 = xyes ; then
6417 cat >> confdefs.h <<\EOF
6418 #define HAVE_LSTAT64 1
6424 if test x$ac_cv_func_fstat64 = xno ; then
6425 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6426 echo "configure:6427: checking for fstat64 in <sys/stat.h>" >&5
6427 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure"
6429 #include "confdefs.h"
6431 #if defined(HAVE_UNISTD_H)
6432 #include <unistd.h>
6433 #endif
6434 #include <sys/stat.h>
6436 int main() {
6437 struct stat64 st64; exit(fstat64(0,&st64));
6438 ; return 0; }
6440 if { (eval echo configure:6441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6441 rm -rf conftest*
6442 ac_cv_func_fstat64=yes
6443 else
6444 echo "configure: failed program was:" >&5
6445 cat conftest.$ac_ext >&5
6447 rm -f conftest*
6448 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6449 if test x$ac_cv_func_fstat64 = xyes ; then
6450 cat >> confdefs.h <<\EOF
6451 #define HAVE_FSTAT64 1
6458 # If no strcasecmp, check for it in some known places
6459 # It is in -lresolv on ReliantUNIX and UnixWare
6460 # -lresolve *must* follow -lnsl for name resolution to work properly
6463 if test x$ac_cv_func_strcasecmp = xno ; then
6464 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6465 echo "configure:6466: checking for strcasecmp in -lresolv" >&5
6466 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6468 echo $ac_n "(cached) $ac_c" 1>&6
6469 else
6470 ac_save_LIBS="$LIBS"
6471 LIBS="-lresolv $LIBS"
6472 cat > conftest.$ac_ext <<EOF
6473 #line 6474 "configure"
6474 #include "confdefs.h"
6475 /* Override any gcc2 internal prototype to avoid an error. */
6476 /* We use char because int might match the return type of a gcc2
6477 builtin and then its argument prototype would still apply. */
6478 char strcasecmp();
6480 int main() {
6481 strcasecmp()
6482 ; return 0; }
6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6485 rm -rf conftest*
6486 eval "ac_cv_lib_$ac_lib_var=yes"
6487 else
6488 echo "configure: failed program was:" >&5
6489 cat conftest.$ac_ext >&5
6490 rm -rf conftest*
6491 eval "ac_cv_lib_$ac_lib_var=no"
6493 rm -f conftest*
6494 LIBS="$ac_save_LIBS"
6497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6498 echo "$ac_t""yes" 1>&6
6499 LIBS="$LIBS -lresolv"
6500 cat >> confdefs.h <<\EOF
6501 #define HAVE_STRCASECMP 1
6504 else
6505 echo "$ac_t""no" 1>&6
6511 # Check for the functions putprpwnam, set_auth_parameters,
6512 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6513 # Needed for OSF1 and HPUX.
6516 case "$LIBS" in
6517 *-lsecurity*) for ac_func in putprpwnam
6519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6520 echo "configure:6521: checking for $ac_func" >&5
6521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6523 else
6524 cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6527 /* System header to define __stub macros and hopefully few prototypes,
6528 which can conflict with char $ac_func(); below. */
6529 #include <assert.h>
6530 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6533 char $ac_func();
6535 int main() {
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6541 choke me
6542 #else
6543 $ac_func();
6544 #endif
6546 ; return 0; }
6548 if { (eval echo configure:6549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6549 rm -rf conftest*
6550 eval "ac_cv_func_$ac_func=yes"
6551 else
6552 echo "configure: failed program was:" >&5
6553 cat conftest.$ac_ext >&5
6554 rm -rf conftest*
6555 eval "ac_cv_func_$ac_func=no"
6557 rm -f conftest*
6560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6561 echo "$ac_t""yes" 1>&6
6562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6563 cat >> confdefs.h <<EOF
6564 #define $ac_tr_func 1
6567 else
6568 echo "$ac_t""no" 1>&6
6570 done
6572 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6573 echo "configure:6574: checking for putprpwnam in -lsecurity" >&5
6574 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6576 echo $ac_n "(cached) $ac_c" 1>&6
6577 else
6578 ac_save_LIBS="$LIBS"
6579 LIBS="-lsecurity $LIBS"
6580 cat > conftest.$ac_ext <<EOF
6581 #line 6582 "configure"
6582 #include "confdefs.h"
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6586 char putprpwnam();
6588 int main() {
6589 putprpwnam()
6590 ; return 0; }
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6593 rm -rf conftest*
6594 eval "ac_cv_lib_$ac_lib_var=yes"
6595 else
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6598 rm -rf conftest*
6599 eval "ac_cv_lib_$ac_lib_var=no"
6601 rm -f conftest*
6602 LIBS="$ac_save_LIBS"
6605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6606 echo "$ac_t""yes" 1>&6
6607 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6608 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6609 cat >> confdefs.h <<EOF
6610 #define $ac_tr_lib 1
6613 LIBS="-lsecurity $LIBS"
6615 else
6616 echo "$ac_t""no" 1>&6
6619 for ac_func in putprpwnam
6621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6622 echo "configure:6623: checking for $ac_func" >&5
6623 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6624 echo $ac_n "(cached) $ac_c" 1>&6
6625 else
6626 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure"
6628 #include "confdefs.h"
6629 /* System header to define __stub macros and hopefully few prototypes,
6630 which can conflict with char $ac_func(); below. */
6631 #include <assert.h>
6632 /* Override any gcc2 internal prototype to avoid an error. */
6633 /* We use char because int might match the return type of a gcc2
6634 builtin and then its argument prototype would still apply. */
6635 char $ac_func();
6637 int main() {
6639 /* The GNU C library defines this for functions which it implements
6640 to always fail with ENOSYS. Some functions are actually named
6641 something starting with __ and the normal name is an alias. */
6642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6643 choke me
6644 #else
6645 $ac_func();
6646 #endif
6648 ; return 0; }
6650 if { (eval echo configure:6651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651 rm -rf conftest*
6652 eval "ac_cv_func_$ac_func=yes"
6653 else
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6656 rm -rf conftest*
6657 eval "ac_cv_func_$ac_func=no"
6659 rm -f conftest*
6662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6663 echo "$ac_t""yes" 1>&6
6664 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6665 cat >> confdefs.h <<EOF
6666 #define $ac_tr_func 1
6669 else
6670 echo "$ac_t""no" 1>&6
6672 done
6675 esac
6677 case "$LIBS" in
6678 *-lsec*) for ac_func in putprpwnam
6680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6681 echo "configure:6682: checking for $ac_func" >&5
6682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6683 echo $ac_n "(cached) $ac_c" 1>&6
6684 else
6685 cat > conftest.$ac_ext <<EOF
6686 #line 6687 "configure"
6687 #include "confdefs.h"
6688 /* System header to define __stub macros and hopefully few prototypes,
6689 which can conflict with char $ac_func(); below. */
6690 #include <assert.h>
6691 /* Override any gcc2 internal prototype to avoid an error. */
6692 /* We use char because int might match the return type of a gcc2
6693 builtin and then its argument prototype would still apply. */
6694 char $ac_func();
6696 int main() {
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6702 choke me
6703 #else
6704 $ac_func();
6705 #endif
6707 ; return 0; }
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 rm -rf conftest*
6711 eval "ac_cv_func_$ac_func=yes"
6712 else
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 rm -rf conftest*
6716 eval "ac_cv_func_$ac_func=no"
6718 rm -f conftest*
6721 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6724 cat >> confdefs.h <<EOF
6725 #define $ac_tr_func 1
6728 else
6729 echo "$ac_t""no" 1>&6
6731 done
6733 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
6734 echo "configure:6735: checking for putprpwnam in -lsec" >&5
6735 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
6736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6737 echo $ac_n "(cached) $ac_c" 1>&6
6738 else
6739 ac_save_LIBS="$LIBS"
6740 LIBS="-lsec $LIBS"
6741 cat > conftest.$ac_ext <<EOF
6742 #line 6743 "configure"
6743 #include "confdefs.h"
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747 char putprpwnam();
6749 int main() {
6750 putprpwnam()
6751 ; return 0; }
6753 if { (eval echo configure:6754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6754 rm -rf conftest*
6755 eval "ac_cv_lib_$ac_lib_var=yes"
6756 else
6757 echo "configure: failed program was:" >&5
6758 cat conftest.$ac_ext >&5
6759 rm -rf conftest*
6760 eval "ac_cv_lib_$ac_lib_var=no"
6762 rm -f conftest*
6763 LIBS="$ac_save_LIBS"
6766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6767 echo "$ac_t""yes" 1>&6
6768 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6770 cat >> confdefs.h <<EOF
6771 #define $ac_tr_lib 1
6774 LIBS="-lsec $LIBS"
6776 else
6777 echo "$ac_t""no" 1>&6
6780 for ac_func in putprpwnam
6782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6783 echo "configure:6784: checking for $ac_func" >&5
6784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6785 echo $ac_n "(cached) $ac_c" 1>&6
6786 else
6787 cat > conftest.$ac_ext <<EOF
6788 #line 6789 "configure"
6789 #include "confdefs.h"
6790 /* System header to define __stub macros and hopefully few prototypes,
6791 which can conflict with char $ac_func(); below. */
6792 #include <assert.h>
6793 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796 char $ac_func();
6798 int main() {
6800 /* The GNU C library defines this for functions which it implements
6801 to always fail with ENOSYS. Some functions are actually named
6802 something starting with __ and the normal name is an alias. */
6803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6804 choke me
6805 #else
6806 $ac_func();
6807 #endif
6809 ; return 0; }
6811 if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6812 rm -rf conftest*
6813 eval "ac_cv_func_$ac_func=yes"
6814 else
6815 echo "configure: failed program was:" >&5
6816 cat conftest.$ac_ext >&5
6817 rm -rf conftest*
6818 eval "ac_cv_func_$ac_func=no"
6820 rm -f conftest*
6823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6824 echo "$ac_t""yes" 1>&6
6825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6826 cat >> confdefs.h <<EOF
6827 #define $ac_tr_func 1
6830 else
6831 echo "$ac_t""no" 1>&6
6833 done
6836 esac
6839 case "$LIBS" in
6840 *-lsecurity*) for ac_func in set_auth_parameters
6842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6843 echo "configure:6844: checking for $ac_func" >&5
6844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6
6846 else
6847 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure"
6849 #include "confdefs.h"
6850 /* System header to define __stub macros and hopefully few prototypes,
6851 which can conflict with char $ac_func(); below. */
6852 #include <assert.h>
6853 /* Override any gcc2 internal prototype to avoid an error. */
6854 /* We use char because int might match the return type of a gcc2
6855 builtin and then its argument prototype would still apply. */
6856 char $ac_func();
6858 int main() {
6860 /* The GNU C library defines this for functions which it implements
6861 to always fail with ENOSYS. Some functions are actually named
6862 something starting with __ and the normal name is an alias. */
6863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6864 choke me
6865 #else
6866 $ac_func();
6867 #endif
6869 ; return 0; }
6871 if { (eval echo configure:6872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6872 rm -rf conftest*
6873 eval "ac_cv_func_$ac_func=yes"
6874 else
6875 echo "configure: failed program was:" >&5
6876 cat conftest.$ac_ext >&5
6877 rm -rf conftest*
6878 eval "ac_cv_func_$ac_func=no"
6880 rm -f conftest*
6883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6884 echo "$ac_t""yes" 1>&6
6885 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6886 cat >> confdefs.h <<EOF
6887 #define $ac_tr_func 1
6890 else
6891 echo "$ac_t""no" 1>&6
6893 done
6895 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
6896 echo "configure:6897: checking for set_auth_parameters in -lsecurity" >&5
6897 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6899 echo $ac_n "(cached) $ac_c" 1>&6
6900 else
6901 ac_save_LIBS="$LIBS"
6902 LIBS="-lsecurity $LIBS"
6903 cat > conftest.$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6909 char set_auth_parameters();
6911 int main() {
6912 set_auth_parameters()
6913 ; return 0; }
6915 if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6916 rm -rf conftest*
6917 eval "ac_cv_lib_$ac_lib_var=yes"
6918 else
6919 echo "configure: failed program was:" >&5
6920 cat conftest.$ac_ext >&5
6921 rm -rf conftest*
6922 eval "ac_cv_lib_$ac_lib_var=no"
6924 rm -f conftest*
6925 LIBS="$ac_save_LIBS"
6928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6929 echo "$ac_t""yes" 1>&6
6930 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6932 cat >> confdefs.h <<EOF
6933 #define $ac_tr_lib 1
6936 LIBS="-lsecurity $LIBS"
6938 else
6939 echo "$ac_t""no" 1>&6
6942 for ac_func in set_auth_parameters
6944 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6945 echo "configure:6946: checking for $ac_func" >&5
6946 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6947 echo $ac_n "(cached) $ac_c" 1>&6
6948 else
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* System header to define __stub macros and hopefully few prototypes,
6953 which can conflict with char $ac_func(); below. */
6954 #include <assert.h>
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 /* We use char because int might match the return type of a gcc2
6957 builtin and then its argument prototype would still apply. */
6958 char $ac_func();
6960 int main() {
6962 /* The GNU C library defines this for functions which it implements
6963 to always fail with ENOSYS. Some functions are actually named
6964 something starting with __ and the normal name is an alias. */
6965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6966 choke me
6967 #else
6968 $ac_func();
6969 #endif
6971 ; return 0; }
6973 if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6974 rm -rf conftest*
6975 eval "ac_cv_func_$ac_func=yes"
6976 else
6977 echo "configure: failed program was:" >&5
6978 cat conftest.$ac_ext >&5
6979 rm -rf conftest*
6980 eval "ac_cv_func_$ac_func=no"
6982 rm -f conftest*
6985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6988 cat >> confdefs.h <<EOF
6989 #define $ac_tr_func 1
6992 else
6993 echo "$ac_t""no" 1>&6
6995 done
6998 esac
7000 case "$LIBS" in
7001 *-lsec*) for ac_func in set_auth_parameters
7003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7004 echo "configure:7005: checking for $ac_func" >&5
7005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7006 echo $ac_n "(cached) $ac_c" 1>&6
7007 else
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7011 /* System header to define __stub macros and hopefully few prototypes,
7012 which can conflict with char $ac_func(); below. */
7013 #include <assert.h>
7014 /* Override any gcc2 internal prototype to avoid an error. */
7015 /* We use char because int might match the return type of a gcc2
7016 builtin and then its argument prototype would still apply. */
7017 char $ac_func();
7019 int main() {
7021 /* The GNU C library defines this for functions which it implements
7022 to always fail with ENOSYS. Some functions are actually named
7023 something starting with __ and the normal name is an alias. */
7024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7025 choke me
7026 #else
7027 $ac_func();
7028 #endif
7030 ; return 0; }
7032 if { (eval echo configure:7033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7033 rm -rf conftest*
7034 eval "ac_cv_func_$ac_func=yes"
7035 else
7036 echo "configure: failed program was:" >&5
7037 cat conftest.$ac_ext >&5
7038 rm -rf conftest*
7039 eval "ac_cv_func_$ac_func=no"
7041 rm -f conftest*
7044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7045 echo "$ac_t""yes" 1>&6
7046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7047 cat >> confdefs.h <<EOF
7048 #define $ac_tr_func 1
7051 else
7052 echo "$ac_t""no" 1>&6
7054 done
7056 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7057 echo "configure:7058: checking for set_auth_parameters in -lsec" >&5
7058 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7060 echo $ac_n "(cached) $ac_c" 1>&6
7061 else
7062 ac_save_LIBS="$LIBS"
7063 LIBS="-lsec $LIBS"
7064 cat > conftest.$ac_ext <<EOF
7065 #line 7066 "configure"
7066 #include "confdefs.h"
7067 /* Override any gcc2 internal prototype to avoid an error. */
7068 /* We use char because int might match the return type of a gcc2
7069 builtin and then its argument prototype would still apply. */
7070 char set_auth_parameters();
7072 int main() {
7073 set_auth_parameters()
7074 ; return 0; }
7076 if { (eval echo configure:7077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7077 rm -rf conftest*
7078 eval "ac_cv_lib_$ac_lib_var=yes"
7079 else
7080 echo "configure: failed program was:" >&5
7081 cat conftest.$ac_ext >&5
7082 rm -rf conftest*
7083 eval "ac_cv_lib_$ac_lib_var=no"
7085 rm -f conftest*
7086 LIBS="$ac_save_LIBS"
7089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7093 cat >> confdefs.h <<EOF
7094 #define $ac_tr_lib 1
7097 LIBS="-lsec $LIBS"
7099 else
7100 echo "$ac_t""no" 1>&6
7103 for ac_func in set_auth_parameters
7105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_func" >&5
7107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7109 else
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* System header to define __stub macros and hopefully few prototypes,
7114 which can conflict with char $ac_func(); below. */
7115 #include <assert.h>
7116 /* Override any gcc2 internal prototype to avoid an error. */
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7119 char $ac_func();
7121 int main() {
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7127 choke me
7128 #else
7129 $ac_func();
7130 #endif
7132 ; return 0; }
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7135 rm -rf conftest*
7136 eval "ac_cv_func_$ac_func=yes"
7137 else
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 rm -rf conftest*
7141 eval "ac_cv_func_$ac_func=no"
7143 rm -f conftest*
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h <<EOF
7150 #define $ac_tr_func 1
7153 else
7154 echo "$ac_t""no" 1>&6
7156 done
7159 esac
7162 # UnixWare 7.x has its getspnam in -lgen
7163 case "$LIBS" in
7164 *-lgen*) for ac_func in getspnam
7166 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7167 echo "configure:7168: checking for $ac_func" >&5
7168 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7169 echo $ac_n "(cached) $ac_c" 1>&6
7170 else
7171 cat > conftest.$ac_ext <<EOF
7172 #line 7173 "configure"
7173 #include "confdefs.h"
7174 /* System header to define __stub macros and hopefully few prototypes,
7175 which can conflict with char $ac_func(); below. */
7176 #include <assert.h>
7177 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7180 char $ac_func();
7182 int main() {
7184 /* The GNU C library defines this for functions which it implements
7185 to always fail with ENOSYS. Some functions are actually named
7186 something starting with __ and the normal name is an alias. */
7187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7188 choke me
7189 #else
7190 $ac_func();
7191 #endif
7193 ; return 0; }
7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7196 rm -rf conftest*
7197 eval "ac_cv_func_$ac_func=yes"
7198 else
7199 echo "configure: failed program was:" >&5
7200 cat conftest.$ac_ext >&5
7201 rm -rf conftest*
7202 eval "ac_cv_func_$ac_func=no"
7204 rm -f conftest*
7207 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7208 echo "$ac_t""yes" 1>&6
7209 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7210 cat >> confdefs.h <<EOF
7211 #define $ac_tr_func 1
7214 else
7215 echo "$ac_t""no" 1>&6
7217 done
7219 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7220 echo "configure:7221: checking for getspnam in -lgen" >&5
7221 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7222 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7223 echo $ac_n "(cached) $ac_c" 1>&6
7224 else
7225 ac_save_LIBS="$LIBS"
7226 LIBS="-lgen $LIBS"
7227 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure"
7229 #include "confdefs.h"
7230 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7233 char getspnam();
7235 int main() {
7236 getspnam()
7237 ; return 0; }
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 rm -rf conftest*
7241 eval "ac_cv_lib_$ac_lib_var=yes"
7242 else
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7245 rm -rf conftest*
7246 eval "ac_cv_lib_$ac_lib_var=no"
7248 rm -f conftest*
7249 LIBS="$ac_save_LIBS"
7252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7254 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7255 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7256 cat >> confdefs.h <<EOF
7257 #define $ac_tr_lib 1
7260 LIBS="-lgen $LIBS"
7262 else
7263 echo "$ac_t""no" 1>&6
7266 for ac_func in getspnam
7268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7269 echo "configure:7270: checking for $ac_func" >&5
7270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7271 echo $ac_n "(cached) $ac_c" 1>&6
7272 else
7273 cat > conftest.$ac_ext <<EOF
7274 #line 7275 "configure"
7275 #include "confdefs.h"
7276 /* System header to define __stub macros and hopefully few prototypes,
7277 which can conflict with char $ac_func(); below. */
7278 #include <assert.h>
7279 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */
7282 char $ac_func();
7284 int main() {
7286 /* The GNU C library defines this for functions which it implements
7287 to always fail with ENOSYS. Some functions are actually named
7288 something starting with __ and the normal name is an alias. */
7289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7290 choke me
7291 #else
7292 $ac_func();
7293 #endif
7295 ; return 0; }
7297 if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7298 rm -rf conftest*
7299 eval "ac_cv_func_$ac_func=yes"
7300 else
7301 echo "configure: failed program was:" >&5
7302 cat conftest.$ac_ext >&5
7303 rm -rf conftest*
7304 eval "ac_cv_func_$ac_func=no"
7306 rm -f conftest*
7309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7310 echo "$ac_t""yes" 1>&6
7311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7312 cat >> confdefs.h <<EOF
7313 #define $ac_tr_func 1
7316 else
7317 echo "$ac_t""no" 1>&6
7319 done
7322 esac
7325 case "$LIBS" in
7326 *-lsecurity*) for ac_func in getspnam
7328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7329 echo "configure:7330: checking for $ac_func" >&5
7330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7331 echo $ac_n "(cached) $ac_c" 1>&6
7332 else
7333 cat > conftest.$ac_ext <<EOF
7334 #line 7335 "configure"
7335 #include "confdefs.h"
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char $ac_func(); below. */
7338 #include <assert.h>
7339 /* Override any gcc2 internal prototype to avoid an error. */
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char $ac_func();
7344 int main() {
7346 /* The GNU C library defines this for functions which it implements
7347 to always fail with ENOSYS. Some functions are actually named
7348 something starting with __ and the normal name is an alias. */
7349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7350 choke me
7351 #else
7352 $ac_func();
7353 #endif
7355 ; return 0; }
7357 if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7358 rm -rf conftest*
7359 eval "ac_cv_func_$ac_func=yes"
7360 else
7361 echo "configure: failed program was:" >&5
7362 cat conftest.$ac_ext >&5
7363 rm -rf conftest*
7364 eval "ac_cv_func_$ac_func=no"
7366 rm -f conftest*
7369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7370 echo "$ac_t""yes" 1>&6
7371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7372 cat >> confdefs.h <<EOF
7373 #define $ac_tr_func 1
7376 else
7377 echo "$ac_t""no" 1>&6
7379 done
7381 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7382 echo "configure:7383: checking for getspnam in -lsecurity" >&5
7383 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7385 echo $ac_n "(cached) $ac_c" 1>&6
7386 else
7387 ac_save_LIBS="$LIBS"
7388 LIBS="-lsecurity $LIBS"
7389 cat > conftest.$ac_ext <<EOF
7390 #line 7391 "configure"
7391 #include "confdefs.h"
7392 /* Override any gcc2 internal prototype to avoid an error. */
7393 /* We use char because int might match the return type of a gcc2
7394 builtin and then its argument prototype would still apply. */
7395 char getspnam();
7397 int main() {
7398 getspnam()
7399 ; return 0; }
7401 if { (eval echo configure:7402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7402 rm -rf conftest*
7403 eval "ac_cv_lib_$ac_lib_var=yes"
7404 else
7405 echo "configure: failed program was:" >&5
7406 cat conftest.$ac_ext >&5
7407 rm -rf conftest*
7408 eval "ac_cv_lib_$ac_lib_var=no"
7410 rm -f conftest*
7411 LIBS="$ac_save_LIBS"
7414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7415 echo "$ac_t""yes" 1>&6
7416 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7417 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7418 cat >> confdefs.h <<EOF
7419 #define $ac_tr_lib 1
7422 LIBS="-lsecurity $LIBS"
7424 else
7425 echo "$ac_t""no" 1>&6
7428 for ac_func in getspnam
7430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7431 echo "configure:7432: checking for $ac_func" >&5
7432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7433 echo $ac_n "(cached) $ac_c" 1>&6
7434 else
7435 cat > conftest.$ac_ext <<EOF
7436 #line 7437 "configure"
7437 #include "confdefs.h"
7438 /* System header to define __stub macros and hopefully few prototypes,
7439 which can conflict with char $ac_func(); below. */
7440 #include <assert.h>
7441 /* Override any gcc2 internal prototype to avoid an error. */
7442 /* We use char because int might match the return type of a gcc2
7443 builtin and then its argument prototype would still apply. */
7444 char $ac_func();
7446 int main() {
7448 /* The GNU C library defines this for functions which it implements
7449 to always fail with ENOSYS. Some functions are actually named
7450 something starting with __ and the normal name is an alias. */
7451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7452 choke me
7453 #else
7454 $ac_func();
7455 #endif
7457 ; return 0; }
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7460 rm -rf conftest*
7461 eval "ac_cv_func_$ac_func=yes"
7462 else
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7465 rm -rf conftest*
7466 eval "ac_cv_func_$ac_func=no"
7468 rm -f conftest*
7471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7472 echo "$ac_t""yes" 1>&6
7473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7474 cat >> confdefs.h <<EOF
7475 #define $ac_tr_func 1
7478 else
7479 echo "$ac_t""no" 1>&6
7481 done
7484 esac
7486 case "$LIBS" in
7487 *-lsec*) for ac_func in getspnam
7489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7490 echo "configure:7491: checking for $ac_func" >&5
7491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7493 else
7494 cat > conftest.$ac_ext <<EOF
7495 #line 7496 "configure"
7496 #include "confdefs.h"
7497 /* System header to define __stub macros and hopefully few prototypes,
7498 which can conflict with char $ac_func(); below. */
7499 #include <assert.h>
7500 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char $ac_func();
7505 int main() {
7507 /* The GNU C library defines this for functions which it implements
7508 to always fail with ENOSYS. Some functions are actually named
7509 something starting with __ and the normal name is an alias. */
7510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7511 choke me
7512 #else
7513 $ac_func();
7514 #endif
7516 ; return 0; }
7518 if { (eval echo configure:7519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7519 rm -rf conftest*
7520 eval "ac_cv_func_$ac_func=yes"
7521 else
7522 echo "configure: failed program was:" >&5
7523 cat conftest.$ac_ext >&5
7524 rm -rf conftest*
7525 eval "ac_cv_func_$ac_func=no"
7527 rm -f conftest*
7530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7531 echo "$ac_t""yes" 1>&6
7532 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7533 cat >> confdefs.h <<EOF
7534 #define $ac_tr_func 1
7537 else
7538 echo "$ac_t""no" 1>&6
7540 done
7542 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7543 echo "configure:7544: checking for getspnam in -lsec" >&5
7544 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6
7547 else
7548 ac_save_LIBS="$LIBS"
7549 LIBS="-lsec $LIBS"
7550 cat > conftest.$ac_ext <<EOF
7551 #line 7552 "configure"
7552 #include "confdefs.h"
7553 /* Override any gcc2 internal prototype to avoid an error. */
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556 char getspnam();
7558 int main() {
7559 getspnam()
7560 ; return 0; }
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7563 rm -rf conftest*
7564 eval "ac_cv_lib_$ac_lib_var=yes"
7565 else
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7568 rm -rf conftest*
7569 eval "ac_cv_lib_$ac_lib_var=no"
7571 rm -f conftest*
7572 LIBS="$ac_save_LIBS"
7575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7576 echo "$ac_t""yes" 1>&6
7577 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7578 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7579 cat >> confdefs.h <<EOF
7580 #define $ac_tr_lib 1
7583 LIBS="-lsec $LIBS"
7585 else
7586 echo "$ac_t""no" 1>&6
7589 for ac_func in getspnam
7591 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7592 echo "configure:7593: checking for $ac_func" >&5
7593 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7594 echo $ac_n "(cached) $ac_c" 1>&6
7595 else
7596 cat > conftest.$ac_ext <<EOF
7597 #line 7598 "configure"
7598 #include "confdefs.h"
7599 /* System header to define __stub macros and hopefully few prototypes,
7600 which can conflict with char $ac_func(); below. */
7601 #include <assert.h>
7602 /* Override any gcc2 internal prototype to avoid an error. */
7603 /* We use char because int might match the return type of a gcc2
7604 builtin and then its argument prototype would still apply. */
7605 char $ac_func();
7607 int main() {
7609 /* The GNU C library defines this for functions which it implements
7610 to always fail with ENOSYS. Some functions are actually named
7611 something starting with __ and the normal name is an alias. */
7612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7613 choke me
7614 #else
7615 $ac_func();
7616 #endif
7618 ; return 0; }
7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7621 rm -rf conftest*
7622 eval "ac_cv_func_$ac_func=yes"
7623 else
7624 echo "configure: failed program was:" >&5
7625 cat conftest.$ac_ext >&5
7626 rm -rf conftest*
7627 eval "ac_cv_func_$ac_func=no"
7629 rm -f conftest*
7632 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7633 echo "$ac_t""yes" 1>&6
7634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7635 cat >> confdefs.h <<EOF
7636 #define $ac_tr_func 1
7639 else
7640 echo "$ac_t""no" 1>&6
7642 done
7645 esac
7648 case "$LIBS" in
7649 *-lsecurity*) for ac_func in bigcrypt
7651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7652 echo "configure:7653: checking for $ac_func" >&5
7653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7654 echo $ac_n "(cached) $ac_c" 1>&6
7655 else
7656 cat > conftest.$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 /* System header to define __stub macros and hopefully few prototypes,
7660 which can conflict with char $ac_func(); below. */
7661 #include <assert.h>
7662 /* Override any gcc2 internal prototype to avoid an error. */
7663 /* We use char because int might match the return type of a gcc2
7664 builtin and then its argument prototype would still apply. */
7665 char $ac_func();
7667 int main() {
7669 /* The GNU C library defines this for functions which it implements
7670 to always fail with ENOSYS. Some functions are actually named
7671 something starting with __ and the normal name is an alias. */
7672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7673 choke me
7674 #else
7675 $ac_func();
7676 #endif
7678 ; return 0; }
7680 if { (eval echo configure:7681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7681 rm -rf conftest*
7682 eval "ac_cv_func_$ac_func=yes"
7683 else
7684 echo "configure: failed program was:" >&5
7685 cat conftest.$ac_ext >&5
7686 rm -rf conftest*
7687 eval "ac_cv_func_$ac_func=no"
7689 rm -f conftest*
7692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7693 echo "$ac_t""yes" 1>&6
7694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7695 cat >> confdefs.h <<EOF
7696 #define $ac_tr_func 1
7699 else
7700 echo "$ac_t""no" 1>&6
7702 done
7704 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
7705 echo "configure:7706: checking for bigcrypt in -lsecurity" >&5
7706 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
7707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7708 echo $ac_n "(cached) $ac_c" 1>&6
7709 else
7710 ac_save_LIBS="$LIBS"
7711 LIBS="-lsecurity $LIBS"
7712 cat > conftest.$ac_ext <<EOF
7713 #line 7714 "configure"
7714 #include "confdefs.h"
7715 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7718 char bigcrypt();
7720 int main() {
7721 bigcrypt()
7722 ; return 0; }
7724 if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7725 rm -rf conftest*
7726 eval "ac_cv_lib_$ac_lib_var=yes"
7727 else
7728 echo "configure: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 rm -rf conftest*
7731 eval "ac_cv_lib_$ac_lib_var=no"
7733 rm -f conftest*
7734 LIBS="$ac_save_LIBS"
7737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7738 echo "$ac_t""yes" 1>&6
7739 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7740 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7741 cat >> confdefs.h <<EOF
7742 #define $ac_tr_lib 1
7745 LIBS="-lsecurity $LIBS"
7747 else
7748 echo "$ac_t""no" 1>&6
7751 for ac_func in bigcrypt
7753 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7754 echo "configure:7755: checking for $ac_func" >&5
7755 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7756 echo $ac_n "(cached) $ac_c" 1>&6
7757 else
7758 cat > conftest.$ac_ext <<EOF
7759 #line 7760 "configure"
7760 #include "confdefs.h"
7761 /* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char $ac_func(); below. */
7763 #include <assert.h>
7764 /* Override any gcc2 internal prototype to avoid an error. */
7765 /* We use char because int might match the return type of a gcc2
7766 builtin and then its argument prototype would still apply. */
7767 char $ac_func();
7769 int main() {
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7775 choke me
7776 #else
7777 $ac_func();
7778 #endif
7780 ; return 0; }
7782 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7783 rm -rf conftest*
7784 eval "ac_cv_func_$ac_func=yes"
7785 else
7786 echo "configure: failed program was:" >&5
7787 cat conftest.$ac_ext >&5
7788 rm -rf conftest*
7789 eval "ac_cv_func_$ac_func=no"
7791 rm -f conftest*
7794 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7795 echo "$ac_t""yes" 1>&6
7796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7797 cat >> confdefs.h <<EOF
7798 #define $ac_tr_func 1
7801 else
7802 echo "$ac_t""no" 1>&6
7804 done
7807 esac
7809 case "$LIBS" in
7810 *-lsec*) for ac_func in bigcrypt
7812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_func" >&5
7814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7816 else
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* System header to define __stub macros and hopefully few prototypes,
7821 which can conflict with char $ac_func(); below. */
7822 #include <assert.h>
7823 /* Override any gcc2 internal prototype to avoid an error. */
7824 /* We use char because int might match the return type of a gcc2
7825 builtin and then its argument prototype would still apply. */
7826 char $ac_func();
7828 int main() {
7830 /* The GNU C library defines this for functions which it implements
7831 to always fail with ENOSYS. Some functions are actually named
7832 something starting with __ and the normal name is an alias. */
7833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7834 choke me
7835 #else
7836 $ac_func();
7837 #endif
7839 ; return 0; }
7841 if { (eval echo configure:7842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7842 rm -rf conftest*
7843 eval "ac_cv_func_$ac_func=yes"
7844 else
7845 echo "configure: failed program was:" >&5
7846 cat conftest.$ac_ext >&5
7847 rm -rf conftest*
7848 eval "ac_cv_func_$ac_func=no"
7850 rm -f conftest*
7853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7854 echo "$ac_t""yes" 1>&6
7855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7856 cat >> confdefs.h <<EOF
7857 #define $ac_tr_func 1
7860 else
7861 echo "$ac_t""no" 1>&6
7863 done
7865 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
7866 echo "configure:7867: checking for bigcrypt in -lsec" >&5
7867 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
7868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7870 else
7871 ac_save_LIBS="$LIBS"
7872 LIBS="-lsec $LIBS"
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* Override any gcc2 internal prototype to avoid an error. */
7877 /* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879 char bigcrypt();
7881 int main() {
7882 bigcrypt()
7883 ; return 0; }
7885 if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7886 rm -rf conftest*
7887 eval "ac_cv_lib_$ac_lib_var=yes"
7888 else
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7891 rm -rf conftest*
7892 eval "ac_cv_lib_$ac_lib_var=no"
7894 rm -f conftest*
7895 LIBS="$ac_save_LIBS"
7898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7899 echo "$ac_t""yes" 1>&6
7900 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7902 cat >> confdefs.h <<EOF
7903 #define $ac_tr_lib 1
7906 LIBS="-lsec $LIBS"
7908 else
7909 echo "$ac_t""no" 1>&6
7912 for ac_func in bigcrypt
7914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7915 echo "configure:7916: checking for $ac_func" >&5
7916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7917 echo $ac_n "(cached) $ac_c" 1>&6
7918 else
7919 cat > conftest.$ac_ext <<EOF
7920 #line 7921 "configure"
7921 #include "confdefs.h"
7922 /* System header to define __stub macros and hopefully few prototypes,
7923 which can conflict with char $ac_func(); below. */
7924 #include <assert.h>
7925 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7928 char $ac_func();
7930 int main() {
7932 /* The GNU C library defines this for functions which it implements
7933 to always fail with ENOSYS. Some functions are actually named
7934 something starting with __ and the normal name is an alias. */
7935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7936 choke me
7937 #else
7938 $ac_func();
7939 #endif
7941 ; return 0; }
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 rm -rf conftest*
7945 eval "ac_cv_func_$ac_func=yes"
7946 else
7947 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5
7949 rm -rf conftest*
7950 eval "ac_cv_func_$ac_func=no"
7952 rm -f conftest*
7955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7956 echo "$ac_t""yes" 1>&6
7957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7958 cat >> confdefs.h <<EOF
7959 #define $ac_tr_func 1
7962 else
7963 echo "$ac_t""no" 1>&6
7965 done
7968 esac
7971 case "$LIBS" in
7972 *-lsecurity*) for ac_func in getprpwnam
7974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7975 echo "configure:7976: checking for $ac_func" >&5
7976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7977 echo $ac_n "(cached) $ac_c" 1>&6
7978 else
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7982 /* System header to define __stub macros and hopefully few prototypes,
7983 which can conflict with char $ac_func(); below. */
7984 #include <assert.h>
7985 /* Override any gcc2 internal prototype to avoid an error. */
7986 /* We use char because int might match the return type of a gcc2
7987 builtin and then its argument prototype would still apply. */
7988 char $ac_func();
7990 int main() {
7992 /* The GNU C library defines this for functions which it implements
7993 to always fail with ENOSYS. Some functions are actually named
7994 something starting with __ and the normal name is an alias. */
7995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7996 choke me
7997 #else
7998 $ac_func();
7999 #endif
8001 ; return 0; }
8003 if { (eval echo configure:8004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8004 rm -rf conftest*
8005 eval "ac_cv_func_$ac_func=yes"
8006 else
8007 echo "configure: failed program was:" >&5
8008 cat conftest.$ac_ext >&5
8009 rm -rf conftest*
8010 eval "ac_cv_func_$ac_func=no"
8012 rm -f conftest*
8015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8016 echo "$ac_t""yes" 1>&6
8017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8018 cat >> confdefs.h <<EOF
8019 #define $ac_tr_func 1
8022 else
8023 echo "$ac_t""no" 1>&6
8025 done
8027 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8028 echo "configure:8029: checking for getprpwnam in -lsecurity" >&5
8029 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8032 else
8033 ac_save_LIBS="$LIBS"
8034 LIBS="-lsecurity $LIBS"
8035 cat > conftest.$ac_ext <<EOF
8036 #line 8037 "configure"
8037 #include "confdefs.h"
8038 /* Override any gcc2 internal prototype to avoid an error. */
8039 /* We use char because int might match the return type of a gcc2
8040 builtin and then its argument prototype would still apply. */
8041 char getprpwnam();
8043 int main() {
8044 getprpwnam()
8045 ; return 0; }
8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8048 rm -rf conftest*
8049 eval "ac_cv_lib_$ac_lib_var=yes"
8050 else
8051 echo "configure: failed program was:" >&5
8052 cat conftest.$ac_ext >&5
8053 rm -rf conftest*
8054 eval "ac_cv_lib_$ac_lib_var=no"
8056 rm -f conftest*
8057 LIBS="$ac_save_LIBS"
8060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8061 echo "$ac_t""yes" 1>&6
8062 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8063 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8064 cat >> confdefs.h <<EOF
8065 #define $ac_tr_lib 1
8068 LIBS="-lsecurity $LIBS"
8070 else
8071 echo "$ac_t""no" 1>&6
8074 for ac_func in getprpwnam
8076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8077 echo "configure:8078: checking for $ac_func" >&5
8078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8079 echo $ac_n "(cached) $ac_c" 1>&6
8080 else
8081 cat > conftest.$ac_ext <<EOF
8082 #line 8083 "configure"
8083 #include "confdefs.h"
8084 /* System header to define __stub macros and hopefully few prototypes,
8085 which can conflict with char $ac_func(); below. */
8086 #include <assert.h>
8087 /* Override any gcc2 internal prototype to avoid an error. */
8088 /* We use char because int might match the return type of a gcc2
8089 builtin and then its argument prototype would still apply. */
8090 char $ac_func();
8092 int main() {
8094 /* The GNU C library defines this for functions which it implements
8095 to always fail with ENOSYS. Some functions are actually named
8096 something starting with __ and the normal name is an alias. */
8097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8098 choke me
8099 #else
8100 $ac_func();
8101 #endif
8103 ; return 0; }
8105 if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8106 rm -rf conftest*
8107 eval "ac_cv_func_$ac_func=yes"
8108 else
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 rm -rf conftest*
8112 eval "ac_cv_func_$ac_func=no"
8114 rm -f conftest*
8117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8118 echo "$ac_t""yes" 1>&6
8119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8120 cat >> confdefs.h <<EOF
8121 #define $ac_tr_func 1
8124 else
8125 echo "$ac_t""no" 1>&6
8127 done
8130 esac
8132 case "$LIBS" in
8133 *-lsec*) for ac_func in getprpwnam
8135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8136 echo "configure:8137: checking for $ac_func" >&5
8137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8139 else
8140 cat > conftest.$ac_ext <<EOF
8141 #line 8142 "configure"
8142 #include "confdefs.h"
8143 /* System header to define __stub macros and hopefully few prototypes,
8144 which can conflict with char $ac_func(); below. */
8145 #include <assert.h>
8146 /* Override any gcc2 internal prototype to avoid an error. */
8147 /* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8149 char $ac_func();
8151 int main() {
8153 /* The GNU C library defines this for functions which it implements
8154 to always fail with ENOSYS. Some functions are actually named
8155 something starting with __ and the normal name is an alias. */
8156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8157 choke me
8158 #else
8159 $ac_func();
8160 #endif
8162 ; return 0; }
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8165 rm -rf conftest*
8166 eval "ac_cv_func_$ac_func=yes"
8167 else
8168 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5
8170 rm -rf conftest*
8171 eval "ac_cv_func_$ac_func=no"
8173 rm -f conftest*
8176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8177 echo "$ac_t""yes" 1>&6
8178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8179 cat >> confdefs.h <<EOF
8180 #define $ac_tr_func 1
8183 else
8184 echo "$ac_t""no" 1>&6
8186 done
8188 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8189 echo "configure:8190: checking for getprpwnam in -lsec" >&5
8190 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8191 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8192 echo $ac_n "(cached) $ac_c" 1>&6
8193 else
8194 ac_save_LIBS="$LIBS"
8195 LIBS="-lsec $LIBS"
8196 cat > conftest.$ac_ext <<EOF
8197 #line 8198 "configure"
8198 #include "confdefs.h"
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8202 char getprpwnam();
8204 int main() {
8205 getprpwnam()
8206 ; return 0; }
8208 if { (eval echo configure:8209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8209 rm -rf conftest*
8210 eval "ac_cv_lib_$ac_lib_var=yes"
8211 else
8212 echo "configure: failed program was:" >&5
8213 cat conftest.$ac_ext >&5
8214 rm -rf conftest*
8215 eval "ac_cv_lib_$ac_lib_var=no"
8217 rm -f conftest*
8218 LIBS="$ac_save_LIBS"
8221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8222 echo "$ac_t""yes" 1>&6
8223 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8224 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8225 cat >> confdefs.h <<EOF
8226 #define $ac_tr_lib 1
8229 LIBS="-lsec $LIBS"
8231 else
8232 echo "$ac_t""no" 1>&6
8235 for ac_func in getprpwnam
8237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8238 echo "configure:8239: checking for $ac_func" >&5
8239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8241 else
8242 cat > conftest.$ac_ext <<EOF
8243 #line 8244 "configure"
8244 #include "confdefs.h"
8245 /* System header to define __stub macros and hopefully few prototypes,
8246 which can conflict with char $ac_func(); below. */
8247 #include <assert.h>
8248 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8251 char $ac_func();
8253 int main() {
8255 /* The GNU C library defines this for functions which it implements
8256 to always fail with ENOSYS. Some functions are actually named
8257 something starting with __ and the normal name is an alias. */
8258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8259 choke me
8260 #else
8261 $ac_func();
8262 #endif
8264 ; return 0; }
8266 if { (eval echo configure:8267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8267 rm -rf conftest*
8268 eval "ac_cv_func_$ac_func=yes"
8269 else
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8272 rm -rf conftest*
8273 eval "ac_cv_func_$ac_func=no"
8275 rm -f conftest*
8278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8279 echo "$ac_t""yes" 1>&6
8280 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8281 cat >> confdefs.h <<EOF
8282 #define $ac_tr_func 1
8285 else
8286 echo "$ac_t""no" 1>&6
8288 done
8291 esac
8294 # this bit needs to be modified for each OS that is suported by
8295 # smbwrapper. You need to specify how to created a shared library and
8296 # how to compile C code to produce PIC object files
8298 # these are the defaults, good for lots of systems
8299 HOST_OS="$host_os"
8300 LDSHFLAGS="-shared"
8301 SHLD="\${CC}"
8302 PICFLAG=""
8303 PICSUFFIX="po"
8304 POBAD_CC="#"
8305 SHLIBEXT="so"
8306 BLDSHARED="false"
8308 # and these are for particular systems
8309 case "$host_os" in
8310 *linux*) cat >> confdefs.h <<\EOF
8311 #define LINUX 1
8314 BLDSHARED="true"
8315 LDSHFLAGS="-shared"
8316 PICFLAG="-fPIC"
8318 *solaris*) cat >> confdefs.h <<\EOF
8319 #define SUNOS5 1
8322 BLDSHARED="true"
8323 LDSHFLAGS="-Wl,-h,\$@.so -G"
8324 if test "${ac_cv_prog_CC}" = "gcc"; then
8325 PICFLAG="-fPIC"
8326 else
8327 PICFLAG="-KPIC -xO4"
8328 POBAD_CC=""
8329 PICSUFFIX="po.o"
8332 *sunos*) cat >> confdefs.h <<\EOF
8333 #define SUNOS4 1
8336 BLDSHARED="true"
8337 LDSHFLAGS="-Wl,-h,\$@ -G"
8338 PICFLAG="-KPIC -O2" # Is this correct for SunOS
8340 *bsd*) BLDSHARED="true"
8341 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8342 PICFLAG="-fPIC -O2"
8344 *irix*) cat >> confdefs.h <<\EOF
8345 #define IRIX 1
8348 case "$host_os" in
8349 *irix6*) cat >> confdefs.h <<\EOF
8350 #define IRIX6 1
8354 esac
8355 ATTEMPT_WRAP32_BUILD=yes
8356 BLDSHARED="true"
8357 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8358 if test "${ac_cv_prog_CC}" = "gcc"; then
8359 PICFLAG="-fPIC"
8360 else
8361 PICFLAG="-KPIC"
8364 *aix*) cat >> confdefs.h <<\EOF
8365 #define AIX 1
8368 BLDSHARED="true"
8369 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8370 PICFLAG="-O2 -qmaxmem=6000"
8372 *hpux*) cat >> confdefs.h <<\EOF
8373 #define HPUX 1
8376 SHLIBEXT="sl"
8377 # Use special PIC flags for the native HP-UX compiler.
8378 if test $ac_cv_prog_cc_Ae = yes; then
8379 #BLDSHARED="true"
8380 LDSHFLAGS="-b -z +h \$@"
8381 PICFLAG="+z"
8384 *qnx*) cat >> confdefs.h <<\EOF
8385 #define QNX 1
8388 *osf*) cat >> confdefs.h <<\EOF
8389 #define OSF1 1
8392 BLDSHARED="true"
8393 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8394 PICFLAG="-fPIC"
8396 *sco*) cat >> confdefs.h <<\EOF
8397 #define SCO 1
8400 *unixware*) cat >> confdefs.h <<\EOF
8401 #define UNIXWARE 1
8404 BLDSHARED="true"
8405 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8406 PICFLAG="-KPIC"
8408 *next2*) cat >> confdefs.h <<\EOF
8409 #define NEXT2 1
8412 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8413 set dummy groff; ac_word=$2
8414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8415 echo "configure:8416: checking for $ac_word" >&5
8416 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8417 echo $ac_n "(cached) $ac_c" 1>&6
8418 else
8419 if test -n "$ROFF"; then
8420 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8421 else
8422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8423 ac_dummy="$PATH"
8424 for ac_dir in $ac_dummy; do
8425 test -z "$ac_dir" && ac_dir=.
8426 if test -f $ac_dir/$ac_word; then
8427 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8428 break
8430 done
8431 IFS="$ac_save_ifs"
8434 ROFF="$ac_cv_prog_ROFF"
8435 if test -n "$ROFF"; then
8436 echo "$ac_t""$ROFF" 1>&6
8437 else
8438 echo "$ac_t""no" 1>&6
8441 *sysv4*)
8442 case "$host" in
8443 *-univel-*) if test "$GCC" != yes ; then
8444 cat >> confdefs.h <<\EOF
8445 #define HAVE_MEMSET 1
8449 LDSHFLAGS="-G"
8451 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8452 #define RELIANTUNIX 1
8455 esac
8457 *sysv5*)
8458 if test "$GCC" != yes ; then
8459 cat >> confdefs.h <<\EOF
8460 #define HAVE_MEMSET 1
8464 LDSHFLAGS="-G"
8466 esac
8468 ################
8470 echo $ac_n "checking for long long""... $ac_c" 1>&6
8471 echo "configure:8472: checking for long long" >&5
8472 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8473 echo $ac_n "(cached) $ac_c" 1>&6
8474 else
8476 if test "$cross_compiling" = yes; then
8477 samba_cv_have_longlong=cross
8478 else
8479 cat > conftest.$ac_ext <<EOF
8480 #line 8481 "configure"
8481 #include "confdefs.h"
8482 #include <stdio.h>
8483 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8485 if { (eval echo configure:8486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8486 then
8487 samba_cv_have_longlong=yes
8488 else
8489 echo "configure: failed program was:" >&5
8490 cat conftest.$ac_ext >&5
8491 rm -fr conftest*
8492 samba_cv_have_longlong=no
8494 rm -fr conftest*
8499 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8500 if test x"$samba_cv_have_longlong" = x"yes"; then
8501 cat >> confdefs.h <<\EOF
8502 #define HAVE_LONGLONG 1
8508 # Check if the compiler supports the LL prefix on long long integers.
8509 # AIX needs this.
8511 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8512 echo "configure:8513: checking for LL suffix on long long integers" >&5
8513 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8515 else
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8520 #include <stdio.h>
8521 int main() {
8522 long long i = 0x8000000000LL
8523 ; return 0; }
8525 if { (eval echo configure:8526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8526 rm -rf conftest*
8527 samba_cv_compiler_supports_ll=yes
8528 else
8529 echo "configure: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8531 rm -rf conftest*
8532 samba_cv_compiler_supports_ll=no
8534 rm -f conftest*
8537 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
8538 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
8539 cat >> confdefs.h <<\EOF
8540 #define COMPILER_SUPPORTS_LL 1
8546 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
8547 echo "configure:8548: checking for 64 bit off_t" >&5
8548 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
8549 echo $ac_n "(cached) $ac_c" 1>&6
8550 else
8552 if test "$cross_compiling" = yes; then
8553 samba_cv_SIZEOF_OFF_T=cross
8554 else
8555 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure"
8557 #include "confdefs.h"
8558 #include <stdio.h>
8559 #include <sys/stat.h>
8560 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
8562 if { (eval echo configure:8563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8563 then
8564 samba_cv_SIZEOF_OFF_T=yes
8565 else
8566 echo "configure: failed program was:" >&5
8567 cat conftest.$ac_ext >&5
8568 rm -fr conftest*
8569 samba_cv_SIZEOF_OFF_T=no
8571 rm -fr conftest*
8576 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
8577 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
8578 cat >> confdefs.h <<\EOF
8579 #define SIZEOF_OFF_T 8
8584 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
8585 echo "configure:8586: checking for off64_t" >&5
8586 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
8587 echo $ac_n "(cached) $ac_c" 1>&6
8588 else
8590 if test "$cross_compiling" = yes; then
8591 samba_cv_HAVE_OFF64_T=cross
8592 else
8593 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure"
8595 #include "confdefs.h"
8597 #if defined(HAVE_UNISTD_H)
8598 #include <unistd.h>
8599 #endif
8600 #include <stdio.h>
8601 #include <sys/stat.h>
8602 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8604 if { (eval echo configure:8605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8605 then
8606 samba_cv_HAVE_OFF64_T=yes
8607 else
8608 echo "configure: failed program was:" >&5
8609 cat conftest.$ac_ext >&5
8610 rm -fr conftest*
8611 samba_cv_HAVE_OFF64_T=no
8613 rm -fr conftest*
8618 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
8619 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
8620 cat >> confdefs.h <<\EOF
8621 #define HAVE_OFF64_T 1
8626 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
8627 echo "configure:8628: checking for 64 bit ino_t" >&5
8628 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8630 else
8632 if test "$cross_compiling" = yes; then
8633 samba_cv_SIZEOF_INO_T=cross
8634 else
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638 #include <stdio.h>
8639 #include <sys/stat.h>
8640 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8643 then
8644 samba_cv_SIZEOF_INO_T=yes
8645 else
8646 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8648 rm -fr conftest*
8649 samba_cv_SIZEOF_INO_T=no
8651 rm -fr conftest*
8656 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
8657 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
8658 cat >> confdefs.h <<\EOF
8659 #define SIZEOF_INO_T 8
8664 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
8665 echo "configure:8666: checking for ino64_t" >&5
8666 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8668 else
8670 if test "$cross_compiling" = yes; then
8671 samba_cv_HAVE_INO64_T=cross
8672 else
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8677 #if defined(HAVE_UNISTD_H)
8678 #include <unistd.h>
8679 #endif
8680 #include <stdio.h>
8681 #include <sys/stat.h>
8682 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
8684 if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8685 then
8686 samba_cv_HAVE_INO64_T=yes
8687 else
8688 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5
8690 rm -fr conftest*
8691 samba_cv_HAVE_INO64_T=no
8693 rm -fr conftest*
8698 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
8699 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
8700 cat >> confdefs.h <<\EOF
8701 #define HAVE_INO64_T 1
8706 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
8707 echo "configure:8708: checking for struct dirent64" >&5
8708 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8710 else
8712 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8716 #if defined(HAVE_UNISTD_H)
8717 #include <unistd.h>
8718 #endif
8719 #include <sys/types.h>
8720 #include <dirent.h>
8721 int main() {
8722 struct dirent64 de;
8723 ; return 0; }
8725 if { (eval echo configure:8726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8726 rm -rf conftest*
8727 samba_cv_HAVE_STRUCT_DIRENT64=yes
8728 else
8729 echo "configure: failed program was:" >&5
8730 cat conftest.$ac_ext >&5
8731 rm -rf conftest*
8732 samba_cv_HAVE_STRUCT_DIRENT64=no
8734 rm -f conftest*
8737 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
8738 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
8739 cat >> confdefs.h <<\EOF
8740 #define HAVE_STRUCT_DIRENT64 1
8745 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
8746 echo "configure:8747: checking for unsigned char" >&5
8747 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
8748 echo $ac_n "(cached) $ac_c" 1>&6
8749 else
8751 if test "$cross_compiling" = yes; then
8752 samba_cv_HAVE_UNSIGNED_CHAR=cross
8753 else
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8757 #include <stdio.h>
8758 main() { char c; c=250; exit((c > 0)?0:1); }
8760 if { (eval echo configure:8761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8761 then
8762 samba_cv_HAVE_UNSIGNED_CHAR=yes
8763 else
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8766 rm -fr conftest*
8767 samba_cv_HAVE_UNSIGNED_CHAR=no
8769 rm -fr conftest*
8774 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
8775 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
8776 cat >> confdefs.h <<\EOF
8777 #define HAVE_UNSIGNED_CHAR 1
8782 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
8783 echo "configure:8784: checking for sin_len in sock" >&5
8784 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
8785 echo $ac_n "(cached) $ac_c" 1>&6
8786 else
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8790 "configure"
8790 #include "confdefs.h"
8791 #include <sys/types.h>
8792 #include <sys/socket.h>
8793 #include <netinet/in.h>
8794 int main() {
8795 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
8796 ; return 0; }
8798 if { (eval echo configure:8799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8799 rm -rf conftest*
8800 samba_cv_HAVE_SOCK_SIN_LEN=yes
8801 else
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8804 rm -rf conftest*
8805 samba_cv_HAVE_SOCK_SIN_LEN=no
8807 rm -f conftest*
8810 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
8811 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
8812 cat >> confdefs.h <<\EOF
8813 #define HAVE_SOCK_SIN_LEN 1
8818 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
8819 echo "configure:8820: checking whether seekdir returns void" >&5
8820 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
8822 else
8824 cat > conftest.$ac_ext <<EOF
8825 #line 8826 "configure"
8826 #include "confdefs.h"
8827 #include <sys/types.h>
8828 #include <dirent.h>
8829 void seekdir(DIR *d, long loc) { return; }
8830 int main() {
8831 return 0;
8832 ; return 0; }
8834 if { (eval echo configure:8835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8835 rm -rf conftest*
8836 samba_cv_SEEKDIR_RETURNS_VOID=yes
8837 else
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8840 rm -rf conftest*
8841 samba_cv_SEEKDIR_RETURNS_VOID=no
8843 rm -f conftest*
8846 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
8847 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
8848 cat >> confdefs.h <<\EOF
8849 #define SEEKDIR_RETURNS_VOID 1
8854 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
8855 echo "configure:8856: checking for __FILE__ macro" >&5
8856 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
8857 echo $ac_n "(cached) $ac_c" 1>&6
8858 else
8860 cat > conftest.$ac_ext <<EOF
8861 #line 8862 "configure"
8862 #include "confdefs.h"
8863 #include <stdio.h>
8864 int main() {
8865 printf("%s\n", __FILE__);
8866 ; return 0; }
8868 if { (eval echo configure:8869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8869 rm -rf conftest*
8870 samba_cv_HAVE_FILE_MACRO=yes
8871 else
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 rm -rf conftest*
8875 samba_cv_HAVE_FILE_MACRO=no
8877 rm -f conftest*
8880 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
8881 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
8882 cat >> confdefs.h <<\EOF
8883 #define HAVE_FILE_MACRO 1
8888 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
8889 echo "configure:8890: checking for __FUNCTION__ macro" >&5
8890 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8892 else
8894 cat > conftest.$ac_ext <<EOF
8895 #line 8896 "configure"
8896 #include "confdefs.h"
8897 #include <stdio.h>
8898 int main() {
8899 printf("%s\n", __FUNCTION__);
8900 ; return 0; }
8902 if { (eval echo configure:8903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8903 rm -rf conftest*
8904 samba_cv_HAVE_FUNCTION_MACRO=yes
8905 else
8906 echo "configure: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 rm -rf conftest*
8909 samba_cv_HAVE_FUNCTION_MACRO=no
8911 rm -f conftest*
8914 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
8915 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
8916 cat >> confdefs.h <<\EOF
8917 #define HAVE_FUNCTION_MACRO 1
8922 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
8923 echo "configure:8924: checking if gettimeofday takes tz argument" >&5
8924 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8926 else
8928 if test "$cross_compiling" = yes; then
8929 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
8930 else
8931 cat > conftest.$ac_ext <<EOF
8932 #line 8933 "configure"
8933 #include "confdefs.h"
8935 #include <sys/time.h>
8936 #include <unistd.h>
8937 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8940 then
8941 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
8942 else
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8945 rm -fr conftest*
8946 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
8948 rm -fr conftest*
8953 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
8954 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
8955 cat >> confdefs.h <<\EOF
8956 #define HAVE_GETTIMEOFDAY_TZ 1
8961 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
8962 echo "configure:8963: checking for C99 vsnprintf" >&5
8963 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
8964 echo $ac_n "(cached) $ac_c" 1>&6
8965 else
8967 if test "$cross_compiling" = yes; then
8968 samba_cv_HAVE_C99_VSNPRINTF=cross
8969 else
8970 cat > conftest.$ac_ext <<EOF
8971 #line 8972 "configure"
8972 #include "confdefs.h"
8974 #include <sys/types.h>
8975 #include <stdarg.h>
8976 void foo(const char *format, ...) {
8977 va_list ap;
8978 int len;
8979 char buf[5];
8981 va_start(ap, format);
8982 len = vsnprintf(0, 0, format, ap);
8983 va_end(ap);
8984 if (len != 5) exit(1);
8986 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
8988 exit(0);
8990 main() { foo("hello"); }
8993 if { (eval echo configure:8994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8994 then
8995 samba_cv_HAVE_C99_VSNPRINTF=yes
8996 else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -fr conftest*
9000 samba_cv_HAVE_C99_VSNPRINTF=no
9002 rm -fr conftest*
9007 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9008 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9009 cat >> confdefs.h <<\EOF
9010 #define HAVE_C99_VSNPRINTF 1
9015 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9016 echo "configure:9017: checking for broken readdir" >&5
9017 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9018 echo $ac_n "(cached) $ac_c" 1>&6
9019 else
9021 if test "$cross_compiling" = yes; then
9022 samba_cv_HAVE_BROKEN_READDIR=cross
9023 else
9024 cat > conftest.$ac_ext <<EOF
9025 #line 9026 "configure"
9026 #include "confdefs.h"
9027 #include <sys/types.h>
9028 #include <dirent.h>
9029 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9030 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9031 di->d_name[0] == 0) exit(0); exit(1);}
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9034 then
9035 samba_cv_HAVE_BROKEN_READDIR=yes
9036 else
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 rm -fr conftest*
9040 samba_cv_HAVE_BROKEN_READDIR=no
9042 rm -fr conftest*
9047 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9048 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9049 cat >> confdefs.h <<\EOF
9050 #define HAVE_BROKEN_READDIR 1
9055 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9056 echo "configure:9057: checking for utimbuf" >&5
9057 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9059 else
9061 cat > conftest.$ac_ext <<EOF
9062 #line 9063 "configure"
9063 #include "confdefs.h"
9064 #include <sys/types.h>
9065 #include <utime.h>
9066 int main() {
9067 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9068 ; return 0; }
9070 if { (eval echo configure:9071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9071 rm -rf conftest*
9072 samba_cv_HAVE_UTIMBUF=yes
9073 else
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 rm -rf conftest*
9077 samba_cv_HAVE_UTIMBUF=no
9079 rm -f conftest*
9082 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9083 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9084 cat >> confdefs.h <<\EOF
9085 #define HAVE_UTIMBUF 1
9091 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9094 echo "configure:9095: checking for $ac_func" >&5
9095 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9096 echo $ac_n "(cached) $ac_c" 1>&6
9097 else
9098 cat > conftest.$ac_ext <<EOF
9099 #line 9100 "configure"
9100 #include "confdefs.h"
9101 /* System header to define __stub macros and hopefully few prototypes,
9102 which can conflict with char $ac_func(); below. */
9103 #include <assert.h>
9104 /* Override any gcc2 internal prototype to avoid an error. */
9105 /* We use char because int might match the return type of a gcc2
9106 builtin and then its argument prototype would still apply. */
9107 char $ac_func();
9109 int main() {
9111 /* The GNU C library defines this for functions which it implements
9112 to always fail with ENOSYS. Some functions are actually named
9113 something starting with __ and the normal name is an alias. */
9114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9115 choke me
9116 #else
9117 $ac_func();
9118 #endif
9120 ; return 0; }
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9123 rm -rf conftest*
9124 eval "ac_cv_func_$ac_func=yes"
9125 else
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9128 rm -rf conftest*
9129 eval "ac_cv_func_$ac_func=no"
9131 rm -f conftest*
9134 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9135 echo "$ac_t""yes" 1>&6
9136 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9137 cat >> confdefs.h <<EOF
9138 #define $ac_tr_func 1
9141 else
9142 echo "$ac_t""no" 1>&6
9144 done
9147 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9148 echo "configure:9149: checking for ut_name in utmp" >&5
9149 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9151 else
9153 cat > conftest.$ac_ext <<EOF
9154 #line 9155 "configure"
9155 #include "confdefs.h"
9156 #include <sys/types.h>
9157 #include <utmp.h>
9158 int main() {
9159 struct utmp ut; ut.ut_name[0] = 'a';
9160 ; return 0; }
9162 if { (eval echo configure:9163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9163 rm -rf conftest*
9164 samba_cv_HAVE_UT_UT_NAME=yes
9165 else
9166 echo "configure: failed program was:" >&5
9167 cat conftest.$ac_ext >&5
9168 rm -rf conftest*
9169 samba_cv_HAVE_UT_UT_NAME=no
9171 rm -f conftest*
9174 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9175 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9176 cat >> confdefs.h <<\EOF
9177 #define HAVE_UT_UT_NAME 1
9182 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9183 echo "configure:9184: checking for ut_user in utmp" >&5
9184 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9185 echo $ac_n "(cached) $ac_c" 1>&6
9186 else
9188 cat > conftest.$ac_ext <<EOF
9189 #line 9190 "configure"
9190 #include "confdefs.h"
9191 #include <sys/types.h>
9192 #include <utmp.h>
9193 int main() {
9194 struct utmp ut; ut.ut_user[0] = 'a';
9195 ; return 0; }
9197 if { (eval echo configure:9198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9198 rm -rf conftest*
9199 samba_cv_HAVE_UT_UT_USER=yes
9200 else
9201 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 rm -rf conftest*
9204 samba_cv_HAVE_UT_UT_USER=no
9206 rm -f conftest*
9209 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9210 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9211 cat >> confdefs.h <<\EOF
9212 #define HAVE_UT_UT_USER 1
9217 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9218 echo "configure:9219: checking for ut_id in utmp" >&5
9219 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9221 else
9223 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure"
9225 #include "confdefs.h"
9226 #include <sys/types.h>
9227 #include <utmp.h>
9228 int main() {
9229 struct utmp ut; ut.ut_id[0] = 'a';
9230 ; return 0; }
9232 if { (eval echo configure:9233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9233 rm -rf conftest*
9234 samba_cv_HAVE_UT_UT_ID=yes
9235 else
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9238 rm -rf conftest*
9239 samba_cv_HAVE_UT_UT_ID=no
9241 rm -f conftest*
9244 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9245 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9246 cat >> confdefs.h <<\EOF
9247 #define HAVE_UT_UT_ID 1
9252 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9253 echo "configure:9254: checking for ut_host in utmp" >&5
9254 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9261 #include <sys/types.h>
9262 #include <utmp.h>
9263 int main() {
9264 struct utmp ut; ut.ut_host[0] = 'a';
9265 ; return 0; }
9267 if { (eval echo configure:9268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9268 rm -rf conftest*
9269 samba_cv_HAVE_UT_UT_HOST=yes
9270 else
9271 echo "configure: failed program was:" >&5
9272 cat conftest.$ac_ext >&5
9273 rm -rf conftest*
9274 samba_cv_HAVE_UT_UT_HOST=no
9276 rm -f conftest*
9279 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9280 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9281 cat >> confdefs.h <<\EOF
9282 #define HAVE_UT_UT_HOST 1
9287 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9288 echo "configure:9289: checking for ut_time in utmp" >&5
9289 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9291 else
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9296 #include <sys/types.h>
9297 #include <utmp.h>
9298 int main() {
9299 struct utmp ut; time_t t; ut.ut_time = t;
9300 ; return 0; }
9302 if { (eval echo configure:9303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9303 rm -rf conftest*
9304 samba_cv_HAVE_UT_UT_TIME=yes
9305 else
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 rm -rf conftest*
9309 samba_cv_HAVE_UT_UT_TIME=no
9311 rm -f conftest*
9314 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
9315 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
9316 cat >> confdefs.h <<\EOF
9317 #define HAVE_UT_UT_TIME 1
9322 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
9323 echo "configure:9324: checking for ut_tv in utmp" >&5
9324 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
9325 echo $ac_n "(cached) $ac_c" 1>&6
9326 else
9328 cat > conftest.$ac_ext <<EOF
9329 #line 9330 "configure"
9330 #include "confdefs.h"
9331 #include <sys/types.h>
9332 #include <utmp.h>
9333 int main() {
9334 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
9335 ; return 0; }
9337 if { (eval echo configure:9338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9338 rm -rf conftest*
9339 samba_cv_HAVE_UT_UT_TV=yes
9340 else
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 rm -rf conftest*
9344 samba_cv_HAVE_UT_UT_TV=no
9346 rm -f conftest*
9349 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
9350 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
9351 cat >> confdefs.h <<\EOF
9352 #define HAVE_UT_UT_TV 1
9357 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
9358 echo "configure:9359: checking for ut_type in utmp" >&5
9359 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9361 else
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 #include <sys/types.h>
9367 #include <utmp.h>
9368 int main() {
9369 struct utmp ut; ut.ut_type = 0;
9370 ; return 0; }
9372 if { (eval echo configure:9373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9373 rm -rf conftest*
9374 samba_cv_HAVE_UT_UT_TYPE=yes
9375 else
9376 echo "configure: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9378 rm -rf conftest*
9379 samba_cv_HAVE_UT_UT_TYPE=no
9381 rm -f conftest*
9384 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
9385 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
9386 cat >> confdefs.h <<\EOF
9387 #define HAVE_UT_UT_TYPE 1
9392 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
9393 echo "configure:9394: checking for ut_pid in utmp" >&5
9394 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9398 cat > conftest.$ac_ext <<EOF
9399 #line 9400 "configure"
9400 #include "confdefs.h"
9401 #include <sys/types.h>
9402 #include <utmp.h>
9403 int main() {
9404 struct utmp ut; ut.ut_pid = 0;
9405 ; return 0; }
9407 if { (eval echo configure:9408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9408 rm -rf conftest*
9409 samba_cv_HAVE_UT_UT_PID=yes
9410 else
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9413 rm -rf conftest*
9414 samba_cv_HAVE_UT_UT_PID=no
9416 rm -f conftest*
9419 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
9420 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
9421 cat >> confdefs.h <<\EOF
9422 #define HAVE_UT_UT_PID 1
9427 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
9428 echo "configure:9429: checking for ut_exit in utmp" >&5
9429 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9431 else
9433 cat > conftest.$ac_ext <<EOF
9434 #line 9435 "configure"
9435 #include "confdefs.h"
9436 #include <sys/types.h>
9437 #include <utmp.h>
9438 int main() {
9439 struct utmp ut; ut.ut_exit.e_exit = 0;
9440 ; return 0; }
9442 if { (eval echo configure:9443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9443 rm -rf conftest*
9444 samba_cv_HAVE_UT_UT_EXIT=yes
9445 else
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 rm -rf conftest*
9449 samba_cv_HAVE_UT_UT_EXIT=no
9451 rm -f conftest*
9454 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
9455 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
9456 cat >> confdefs.h <<\EOF
9457 #define HAVE_UT_UT_EXIT 1
9462 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
9463 echo "configure:9464: checking for ut_addr in utmp" >&5
9464 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9466 else
9468 cat > conftest.$ac_ext <<EOF
9469 #line 9470 "configure"
9470 #include "confdefs.h"
9471 #include <sys/types.h>
9472 #include <utmp.h>
9473 int main() {
9474 struct utmp ut; ut.ut_addr = 0;
9475 ; return 0; }
9477 if { (eval echo configure:9478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9478 rm -rf conftest*
9479 samba_cv_HAVE_UT_UT_ADDR=yes
9480 else
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 rm -rf conftest*
9484 samba_cv_HAVE_UT_UT_ADDR=no
9486 rm -f conftest*
9489 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
9490 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
9491 cat >> confdefs.h <<\EOF
9492 #define HAVE_UT_UT_ADDR 1
9497 if test x$ac_cv_func_pututline = xyes ; then
9498 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
9499 echo "configure:9500: checking whether pututline returns pointer" >&5
9500 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502 else
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <sys/types.h>
9508 #include <utmp.h>
9509 int main() {
9510 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
9511 ; return 0; }
9513 if { (eval echo configure:9514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9514 rm -rf conftest*
9515 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
9516 else
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 samba_cv_PUTUTLINE_RETURNS_UTMP=no
9522 rm -f conftest*
9525 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
9526 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
9527 cat >> confdefs.h <<\EOF
9528 #define PUTUTLINE_RETURNS_UTMP 1
9534 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
9535 echo "configure:9536: checking for ut_syslen in utmpx" >&5
9536 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
9537 echo $ac_n "(cached) $ac_c" 1>&6
9538 else
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <sys/types.h>
9544 #include <utmpx.h>
9545 int main() {
9546 struct utmpx ux; ux.ut_syslen = 0;
9547 ; return 0; }
9549 if { (eval echo configure:9550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9550 rm -rf conftest*
9551 samba_cv_HAVE_UX_UT_SYSLEN=yes
9552 else
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -rf conftest*
9556 samba_cv_HAVE_UX_UT_SYSLEN=no
9558 rm -f conftest*
9561 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
9562 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
9563 cat >> confdefs.h <<\EOF
9564 #define HAVE_UX_UT_SYSLEN 1
9570 #################################################
9571 # check for libiconv support
9572 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
9573 echo "configure:9574: checking whether to use libiconv" >&5
9574 # Check whether --with-libiconv or --without-libiconv was given.
9575 if test "${with_libiconv+set}" = set; then
9576 withval="$with_libiconv"
9577 case "$withval" in
9579 echo "$ac_t""no" 1>&6
9582 echo "$ac_t""yes" 1>&6
9583 CFLAGS="$CFLAGS -I$withval/include"
9584 LDFLAGS="$LDFLAGS -L$withval/lib"
9585 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
9586 echo "configure:9587: checking for iconv_open in -liconv" >&5
9587 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
9588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9590 else
9591 ac_save_LIBS="$LIBS"
9592 LIBS="-liconv $LIBS"
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9596 /* Override any gcc2 internal prototype to avoid an error. */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9599 char iconv_open();
9601 int main() {
9602 iconv_open()
9603 ; return 0; }
9605 if { (eval echo configure:9606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9606 rm -rf conftest*
9607 eval "ac_cv_lib_$ac_lib_var=yes"
9608 else
9609 echo "configure: failed program was:" >&5
9610 cat conftest.$ac_ext >&5
9611 rm -rf conftest*
9612 eval "ac_cv_lib_$ac_lib_var=no"
9614 rm -f conftest*
9615 LIBS="$ac_save_LIBS"
9618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9619 echo "$ac_t""yes" 1>&6
9620 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9622 cat >> confdefs.h <<EOF
9623 #define $ac_tr_lib 1
9626 LIBS="-liconv $LIBS"
9628 else
9629 echo "$ac_t""no" 1>&6
9633 esac
9634 else
9635 echo "$ac_t""no" 1>&6
9641 ############
9642 # check for iconv in libc
9643 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
9644 echo "configure:9645: checking for working iconv" >&5
9645 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9647 else
9649 if test "$cross_compiling" = yes; then
9650 samba_cv_HAVE_NATIVE_ICONV=cross
9651 else
9652 cat > conftest.$ac_ext <<EOF
9653 #line 9654 "configure"
9654 #include "confdefs.h"
9656 #include <iconv.h>
9657 main() {
9658 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
9659 if (cd == 0 || cd == (iconv_t)-1) return -1;
9660 return 0;
9664 if { (eval echo configure:9665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9665 then
9666 samba_cv_HAVE_NATIVE_ICONV=yes
9667 else
9668 echo "configure: failed program was:" >&5
9669 cat conftest.$ac_ext >&5
9670 rm -fr conftest*
9671 samba_cv_HAVE_NATIVE_ICONV=no
9673 rm -fr conftest*
9678 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
9679 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
9680 cat >> confdefs.h <<\EOF
9681 #define HAVE_NATIVE_ICONV 1
9687 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
9688 echo "configure:9689: checking for Linux kernel oplocks" >&5
9689 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9691 else
9693 if test "$cross_compiling" = yes; then
9694 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
9695 else
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9700 #include <sys/types.h>
9701 #include <fcntl.h>
9702 #ifndef F_GETLEASE
9703 #define F_GETLEASE 1025
9704 #endif
9705 main() {
9706 int fd = open("/dev/null", O_RDONLY);
9707 return fcntl(fd, F_GETLEASE, 0) == -1;
9711 if { (eval echo configure:9712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9712 then
9713 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
9714 else
9715 echo "configure: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 rm -fr conftest*
9718 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
9720 rm -fr conftest*
9725 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
9726 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
9727 cat >> confdefs.h <<\EOF
9728 #define HAVE_KERNEL_OPLOCKS_LINUX 1
9733 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
9734 echo "configure:9735: checking for kernel change notify support" >&5
9735 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
9736 echo $ac_n "(cached) $ac_c" 1>&6
9737 else
9739 if test "$cross_compiling" = yes; then
9740 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
9741 else
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9746 #include <sys/types.h>
9747 #include <fcntl.h>
9748 #include <signal.h>
9749 #ifndef F_NOTIFY
9750 #define F_NOTIFY 1026
9751 #endif
9752 main() {
9753 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9758 then
9759 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
9760 else
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 rm -fr conftest*
9764 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
9766 rm -fr conftest*
9771 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
9772 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
9773 cat >> confdefs.h <<\EOF
9774 #define HAVE_KERNEL_CHANGE_NOTIFY 1
9779 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
9780 echo "configure:9781: checking for kernel share modes" >&5
9781 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
9783 else
9785 if test "$cross_compiling" = yes; then
9786 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
9787 else
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9792 #include <sys/types.h>
9793 #include <fcntl.h>
9794 #include <signal.h>
9795 #include <sys/file.h>
9796 #ifndef LOCK_MAND
9797 #define LOCK_MAND 32
9798 #define LOCK_READ 64
9799 #endif
9800 main() {
9801 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
9805 if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9806 then
9807 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
9808 else
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9811 rm -fr conftest*
9812 samba_cv_HAVE_KERNEL_SHARE_MODES=no
9814 rm -fr conftest*
9819 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
9820 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
9821 cat >> confdefs.h <<\EOF
9822 #define HAVE_KERNEL_SHARE_MODES 1
9830 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
9831 echo "configure:9832: checking for IRIX kernel oplock type definitions" >&5
9832 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9834 else
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 #include <sys/types.h>
9840 #include <fcntl.h>
9841 int main() {
9842 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
9843 ; return 0; }
9845 if { (eval echo configure:9846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9846 rm -rf conftest*
9847 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
9848 else
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9851 rm -rf conftest*
9852 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
9854 rm -f conftest*
9857 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
9858 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
9859 cat >> confdefs.h <<\EOF
9860 #define HAVE_KERNEL_OPLOCKS_IRIX 1
9865 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
9866 echo "configure:9867: checking for irix specific capabilities" >&5
9867 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9869 else
9871 if test "$cross_compiling" = yes; then
9872 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
9873 else
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9876 "configure"
9876 #include "confdefs.h"
9877 #include <sys/types.h>
9878 #include <sys/capability.h>
9879 main() {
9880 cap_t cap;
9881 if ((cap = cap_get_proc()) == NULL)
9882 exit(1);
9883 cap->cap_effective |= CAP_NETWORK_MGT;
9884 cap->cap_inheritable |= CAP_NETWORK_MGT;
9885 cap_set_proc(cap);
9886 exit(0);
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9891 then
9892 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
9893 else
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 rm -fr conftest*
9897 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
9899 rm -fr conftest*
9904 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
9905 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
9906 cat >> confdefs.h <<\EOF
9907 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
9913 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
9914 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
9917 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9918 echo "configure:9919: checking for int16 typedef included by rpc/rpc.h" >&5
9919 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9921 else
9923 cat > conftest.$ac_ext <<EOF
9924 #line 9925 "configure"
9925 #include "confdefs.h"
9926 #include <sys/types.h>
9927 #if defined(HAVE_RPC_RPC_H)
9928 #include <rpc/rpc.h>
9929 #endif
9930 int main() {
9931 int16 testvar;
9932 ; return 0; }
9934 if { (eval echo configure:9935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9935 rm -rf conftest*
9936 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
9937 else
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
9943 rm -f conftest*
9946 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
9947 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
9948 cat >> confdefs.h <<\EOF
9949 #define HAVE_INT16_FROM_RPC_RPC_H 1
9954 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9955 echo "configure:9956: checking for uint16 typedef included by rpc/rpc.h" >&5
9956 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9958 else
9960 cat > conftest.$ac_ext <<EOF
9961 #line 9962 "configure"
9962 #include "confdefs.h"
9963 #include <sys/types.h>
9964 #if defined(HAVE_RPC_RPC_H)
9965 #include <rpc/rpc.h>
9966 #endif
9967 int main() {
9968 uint16 testvar;
9969 ; return 0; }
9971 if { (eval echo configure:9972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9972 rm -rf conftest*
9973 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
9974 else
9975 echo "configure: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 rm -rf conftest*
9978 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
9980 rm -f conftest*
9983 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
9984 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
9985 cat >> confdefs.h <<\EOF
9986 #define HAVE_UINT16_FROM_RPC_RPC_H 1
9991 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
9992 echo "configure:9993: checking for int32 typedef included by rpc/rpc.h" >&5
9993 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
9994 echo $ac_n "(cached) $ac_c" 1>&6
9995 else
9997 cat > conftest.$ac_ext <<EOF
9998 #line 9999 "configure"
9999 #include "confdefs.h"
10000 #include <sys/types.h>
10001 #if defined(HAVE_RPC_RPC_H)
10002 #include <rpc/rpc.h>
10003 #endif
10004 int main() {
10005 int32 testvar;
10006 ; return 0; }
10008 if { (eval echo configure:10009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10009 rm -rf conftest*
10010 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10011 else
10012 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5
10014 rm -rf conftest*
10015 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10017 rm -f conftest*
10020 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10021 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10022 cat >> confdefs.h <<\EOF
10023 #define HAVE_INT32_FROM_RPC_RPC_H 1
10028 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10029 echo "configure:10030: checking for uint32 typedef included by rpc/rpc.h" >&5
10030 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032 else
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #if defined(HAVE_RPC_RPC_H)
10039 #include <rpc/rpc.h>
10040 #endif
10041 int main() {
10042 uint32 testvar;
10043 ; return 0; }
10045 if { (eval echo configure:10046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10046 rm -rf conftest*
10047 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10048 else
10049 echo "configure: failed program was:" >&5
10050 cat conftest.$ac_ext >&5
10051 rm -rf conftest*
10052 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10054 rm -f conftest*
10057 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10058 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10066 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10067 echo "configure:10068: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10068 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10069 echo $ac_n "(cached) $ac_c" 1>&6
10070 else
10072 cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 #include <sys/types.h>
10076 #ifdef HAVE_SYS_SECURITY_H
10077 #include <sys/security.h>
10078 #include <prot.h>
10079 #endif /* HAVE_SYS_SECURITY_H */
10080 #if defined(HAVE_RPC_RPC_H)
10081 #include <rpc/rpc.h>
10082 #endif
10083 int main() {
10084 int testvar;
10085 ; return 0; }
10087 if { (eval echo configure:10088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10088 rm -rf conftest*
10089 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10090 else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 rm -rf conftest*
10094 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10096 rm -f conftest*
10099 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10100 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10101 cat >> confdefs.h <<\EOF
10102 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10107 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10108 echo "configure:10109: checking for test routines" >&5
10109 if test "$cross_compiling" = yes; then
10110 echo "configure: warning: cannot run when cross-compiling" 1>&2
10111 else
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 #include "${srcdir-.}/tests/trivial.c"
10117 if { (eval echo configure:10118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10118 then
10119 echo "$ac_t""yes" 1>&6
10120 else
10121 echo "configure: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 rm -fr conftest*
10124 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10126 rm -fr conftest*
10130 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10131 echo "configure:10132: checking for ftruncate extend" >&5
10132 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10134 else
10136 if test "$cross_compiling" = yes; then
10137 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10138 else
10139 cat > conftest.$ac_ext <<EOF
10140 #line 10141 "configure"
10141 #include "confdefs.h"
10142 #include "${srcdir-.}/tests/ftruncate.c"
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10145 then
10146 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10147 else
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10150 rm -fr conftest*
10151 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10153 rm -fr conftest*
10158 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10159 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10160 cat >> confdefs.h <<\EOF
10161 #define HAVE_FTRUNCATE_EXTEND 1
10166 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10167 echo "configure:10168: checking for AF_LOCAL socket support" >&5
10168 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10170 else
10172 if test "$cross_compiling" = yes; then
10173 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10174 else
10175 cat > conftest.$ac_ext <<EOF
10176 #line 10177 "configure"
10177 #include "confdefs.h"
10178 #include "${srcdir-.}/tests/unixsock.c"
10180 if { (eval echo configure:10181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10181 then
10182 samba_cv_HAVE_WORKING_AF_LOCAL=yes
10183 else
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10186 rm -fr conftest*
10187 samba_cv_HAVE_WORKING_AF_LOCAL=no
10189 rm -fr conftest*
10194 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
10195 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
10196 then
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_WORKING_AF_LOCAL 1
10203 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10204 echo "configure:10205: checking for broken getgroups" >&5
10205 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207 else
10209 if test "$cross_compiling" = yes; then
10210 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10211 else
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10215 #include "${srcdir-.}/tests/getgroups.c"
10217 if { (eval echo configure:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10218 then
10219 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10220 else
10221 echo "configure: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 rm -fr conftest*
10224 samba_cv_HAVE_BROKEN_GETGROUPS=no
10226 rm -fr conftest*
10231 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10232 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10233 cat >> confdefs.h <<\EOF
10234 #define HAVE_BROKEN_GETGROUPS 1
10239 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10240 echo "configure:10241: checking whether getpass should be replaced" >&5
10241 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10243 else
10245 SAVE_CPPFLAGS="$CPPFLAGS"
10246 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10251 #define REPLACE_GETPASS 1
10252 #define NO_CONFIG_H 1
10253 #define main dont_declare_main
10254 #include "${srcdir-.}/lib/getsmbpass.c"
10255 #undef main
10257 int main() {
10259 ; return 0; }
10261 if { (eval echo configure:10262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10262 rm -rf conftest*
10263 samba_cv_REPLACE_GETPASS=yes
10264 else
10265 echo "configure: failed program was:" >&5
10266 cat conftest.$ac_ext >&5
10267 rm -rf conftest*
10268 samba_cv_REPLACE_GETPASS=no
10270 rm -f conftest*
10271 CPPFLAGS="$SAVE_CPPFLAGS"
10275 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10276 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10277 cat >> confdefs.h <<\EOF
10278 #define REPLACE_GETPASS 1
10283 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10284 echo "configure:10285: checking for broken inet_ntoa" >&5
10285 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10287 else
10289 if test "$cross_compiling" = yes; then
10290 samba_cv_REPLACE_INET_NTOA=cross
10291 else
10292 cat > conftest.$ac_ext <<EOF
10293 #line 10294 "configure"
10294 #include "confdefs.h"
10296 #include <stdio.h>
10297 #include <sys/types.h>
10298 #include <netinet/in.h>
10299 #ifdef HAVE_ARPA_INET_H
10300 #include <arpa/inet.h>
10301 #endif
10302 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10303 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10304 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10305 exit(1);}
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10308 then
10309 samba_cv_REPLACE_INET_NTOA=yes
10310 else
10311 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10313 rm -fr conftest*
10314 samba_cv_REPLACE_INET_NTOA=no
10316 rm -fr conftest*
10321 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10322 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10323 cat >> confdefs.h <<\EOF
10324 #define REPLACE_INET_NTOA 1
10329 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10330 echo "configure:10331: checking for secure mkstemp" >&5
10331 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10332 echo $ac_n "(cached) $ac_c" 1>&6
10333 else
10335 if test "$cross_compiling" = yes; then
10336 samba_cv_HAVE_SECURE_MKSTEMP=cross
10337 else
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <stdlib.h>
10342 #include <sys/types.h>
10343 #include <sys/stat.h>
10344 #include <unistd.h>
10345 main() {
10346 struct stat st;
10347 char tpl[20]="/tmp/test.XXXXXX";
10348 int fd = mkstemp(tpl);
10349 if (fd == -1) exit(1);
10350 unlink(tpl);
10351 if (fstat(fd, &st) != 0) exit(1);
10352 if ((st.st_mode & 0777) != 0600) exit(1);
10353 exit(0);
10356 if { (eval echo configure:10357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10357 then
10358 samba_cv_HAVE_SECURE_MKSTEMP=yes
10359 else
10360 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10362 rm -fr conftest*
10363 samba_cv_HAVE_SECURE_MKSTEMP=no
10365 rm -fr conftest*
10370 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10371 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10372 cat >> confdefs.h <<\EOF
10373 #define HAVE_SECURE_MKSTEMP 1
10378 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10379 echo "configure:10380: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10380 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10382 else
10384 if test "$cross_compiling" = yes; then
10385 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10386 else
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10390 #include <unistd.h>
10391 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10394 then
10395 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10396 else
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10399 rm -fr conftest*
10400 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10402 rm -fr conftest*
10407 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10408 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10409 cat >> confdefs.h <<\EOF
10410 #define SYSCONF_SC_NGROUPS_MAX 1
10415 echo $ac_n "checking for root""... $ac_c" 1>&6
10416 echo "configure:10417: checking for root" >&5
10417 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10418 echo $ac_n "(cached) $ac_c" 1>&6
10419 else
10421 if test "$cross_compiling" = yes; then
10422 samba_cv_HAVE_ROOT=cross
10423 else
10424 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10427 main() { exit(getuid() != 0); }
10429 if { (eval echo configure:10430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10430 then
10431 samba_cv_HAVE_ROOT=yes
10432 else
10433 echo "configure: failed program was:" >&5
10434 cat conftest.$ac_ext >&5
10435 rm -fr conftest*
10436 samba_cv_HAVE_ROOT=no
10438 rm -fr conftest*
10443 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10444 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10445 cat >> confdefs.h <<\EOF
10446 #define HAVE_ROOT 1
10449 else
10450 echo "configure: warning: running as non-root will disable some tests" 1>&2
10453 ##################
10454 # look for a method of finding the list of network interfaces
10455 iface=no;
10456 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10457 echo "configure:10458: checking for iface AIX" >&5
10458 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10459 echo $ac_n "(cached) $ac_c" 1>&6
10460 else
10462 if test "$cross_compiling" = yes; then
10463 samba_cv_HAVE_IFACE_AIX=cross
10464 else
10465 cat > conftest.$ac_ext <<EOF
10466 #line 10467 "configure"
10467 #include "confdefs.h"
10469 #define HAVE_IFACE_AIX 1
10470 #define AUTOCONF_TEST 1
10471 #include "confdefs.h"
10472 #include "${srcdir-.}/lib/interfaces.c"
10474 if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10475 then
10476 samba_cv_HAVE_IFACE_AIX=yes
10477 else
10478 echo "configure: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10480 rm -fr conftest*
10481 samba_cv_HAVE_IFACE_AIX=no
10483 rm -fr conftest*
10488 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
10489 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
10490 iface=yes;cat >> confdefs.h <<\EOF
10491 #define HAVE_IFACE_AIX 1
10496 if test $iface = no; then
10497 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
10498 echo "configure:10499: checking for iface ifconf" >&5
10499 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10501 else
10503 if test "$cross_compiling" = yes; then
10504 samba_cv_HAVE_IFACE_IFCONF=cross
10505 else
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10510 #define HAVE_IFACE_IFCONF 1
10511 #define AUTOCONF_TEST 1
10512 #include "confdefs.h"
10513 #include "${srcdir-.}/lib/interfaces.c"
10515 if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10516 then
10517 samba_cv_HAVE_IFACE_IFCONF=yes
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -fr conftest*
10522 samba_cv_HAVE_IFACE_IFCONF=no
10524 rm -fr conftest*
10529 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
10530 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
10531 iface=yes;cat >> confdefs.h <<\EOF
10532 #define HAVE_IFACE_IFCONF 1
10538 if test $iface = no; then
10539 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
10540 echo "configure:10541: checking for iface ifreq" >&5
10541 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10543 else
10545 if test "$cross_compiling" = yes; then
10546 samba_cv_HAVE_IFACE_IFREQ=cross
10547 else
10548 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure"
10550 #include "confdefs.h"
10552 #define HAVE_IFACE_IFREQ 1
10553 #define AUTOCONF_TEST 1
10554 #include "confdefs.h"
10555 #include "${srcdir-.}/lib/interfaces.c"
10557 if { (eval echo configure:10558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10558 then
10559 samba_cv_HAVE_IFACE_IFREQ=yes
10560 else
10561 echo "configure: failed program was:" >&5
10562 cat conftest.$ac_ext >&5
10563 rm -fr conftest*
10564 samba_cv_HAVE_IFACE_IFREQ=no
10566 rm -fr conftest*
10571 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
10572 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
10573 iface=yes;cat >> confdefs.h <<\EOF
10574 #define HAVE_IFACE_IFREQ 1
10581 ################################################
10582 # look for a method of setting the effective uid
10583 seteuid=no;
10584 if test $seteuid = no; then
10585 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
10586 echo "configure:10587: checking for setresuid" >&5
10587 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10589 else
10591 if test "$cross_compiling" = yes; then
10592 samba_cv_USE_SETRESUID=cross
10593 else
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10598 #define AUTOCONF_TEST 1
10599 #define USE_SETRESUID 1
10600 #include "confdefs.h"
10601 #include "${srcdir-.}/lib/util_sec.c"
10603 if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10604 then
10605 samba_cv_USE_SETRESUID=yes
10606 else
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -fr conftest*
10610 samba_cv_USE_SETRESUID=no
10612 rm -fr conftest*
10617 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
10618 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
10619 seteuid=yes;cat >> confdefs.h <<\EOF
10620 #define USE_SETRESUID 1
10627 if test $seteuid = no; then
10628 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
10629 echo "configure:10630: checking for setreuid" >&5
10630 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
10631 echo $ac_n "(cached) $ac_c" 1>&6
10632 else
10634 if test "$cross_compiling" = yes; then
10635 samba_cv_USE_SETREUID=cross
10636 else
10637 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10641 #define AUTOCONF_TEST 1
10642 #define USE_SETREUID 1
10643 #include "confdefs.h"
10644 #include "${srcdir-.}/lib/util_sec.c"
10646 if { (eval echo configure:10647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10647 then
10648 samba_cv_USE_SETREUID=yes
10649 else
10650 echo "configure: failed program was:" >&5
10651 cat conftest.$ac_ext >&5
10652 rm -fr conftest*
10653 samba_cv_USE_SETREUID=no
10655 rm -fr conftest*
10660 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
10661 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
10662 seteuid=yes;cat >> confdefs.h <<\EOF
10663 #define USE_SETREUID 1
10669 if test $seteuid = no; then
10670 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
10671 echo "configure:10672: checking for seteuid" >&5
10672 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
10673 echo $ac_n "(cached) $ac_c" 1>&6
10674 else
10676 if test "$cross_compiling" = yes; then
10677 samba_cv_USE_SETEUID=cross
10678 else
10679 cat > conftest.$ac_ext <<EOF
10680 #line 10681 "configure"
10681 #include "confdefs.h"
10683 #define AUTOCONF_TEST 1
10684 #define USE_SETEUID 1
10685 #include "confdefs.h"
10686 #include "${srcdir-.}/lib/util_sec.c"
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10689 then
10690 samba_cv_USE_SETEUID=yes
10691 else
10692 echo "configure: failed program was:" >&5
10693 cat conftest.$ac_ext >&5
10694 rm -fr conftest*
10695 samba_cv_USE_SETEUID=no
10697 rm -fr conftest*
10702 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
10703 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
10704 seteuid=yes;cat >> confdefs.h <<\EOF
10705 #define USE_SETEUID 1
10711 if test $seteuid = no; then
10712 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
10713 echo "configure:10714: checking for setuidx" >&5
10714 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10716 else
10718 if test "$cross_compiling" = yes; then
10719 samba_cv_USE_SETUIDX=cross
10720 else
10721 cat > conftest.$ac_ext <<EOF
10722 #line 10723 "configure"
10723 #include "confdefs.h"
10725 #define AUTOCONF_TEST 1
10726 #define USE_SETUIDX 1
10727 #include "confdefs.h"
10728 #include "${srcdir-.}/lib/util_sec.c"
10730 if { (eval echo configure:10731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10731 then
10732 samba_cv_USE_SETUIDX=yes
10733 else
10734 echo "configure: failed program was:" >&5
10735 cat conftest.$ac_ext >&5
10736 rm -fr conftest*
10737 samba_cv_USE_SETUIDX=no
10739 rm -fr conftest*
10744 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
10745 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
10746 seteuid=yes;cat >> confdefs.h <<\EOF
10747 #define USE_SETUIDX 1
10754 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10755 echo "configure:10756: checking for working mmap" >&5
10756 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
10757 echo $ac_n "(cached) $ac_c" 1>&6
10758 else
10760 if test "$cross_compiling" = yes; then
10761 samba_cv_HAVE_MMAP=cross
10762 else
10763 cat > conftest.$ac_ext <<EOF
10764 #line 10765 "configure"
10765 #include "confdefs.h"
10766 #include "${srcdir-.}/tests/shared_mmap.c"
10768 if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10769 then
10770 samba_cv_HAVE_MMAP=yes
10771 else
10772 echo "configure: failed program was:" >&5
10773 cat conftest.$ac_ext >&5
10774 rm -fr conftest*
10775 samba_cv_HAVE_MMAP=no
10777 rm -fr conftest*
10782 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
10783 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
10784 cat >> confdefs.h <<\EOF
10785 #define HAVE_MMAP 1
10790 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
10791 echo "configure:10792: checking for ftruncate needs root" >&5
10792 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
10793 echo $ac_n "(cached) $ac_c" 1>&6
10794 else
10796 if test "$cross_compiling" = yes; then
10797 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
10798 else
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 #include "${srcdir-.}/tests/ftruncroot.c"
10804 if { (eval echo configure:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10805 then
10806 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
10807 else
10808 echo "configure: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10810 rm -fr conftest*
10811 samba_cv_FTRUNCATE_NEEDS_ROOT=no
10813 rm -fr conftest*
10818 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
10819 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
10820 cat >> confdefs.h <<\EOF
10821 #define FTRUNCATE_NEEDS_ROOT 1
10826 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
10827 echo "configure:10828: checking for fcntl locking" >&5
10828 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10830 else
10832 if test "$cross_compiling" = yes; then
10833 samba_cv_HAVE_FCNTL_LOCK=cross
10834 else
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10838 #include "${srcdir-.}/tests/fcntl_lock.c"
10840 if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10841 then
10842 samba_cv_HAVE_FCNTL_LOCK=yes
10843 else
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 rm -fr conftest*
10847 samba_cv_HAVE_FCNTL_LOCK=no
10849 rm -fr conftest*
10854 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
10855 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
10856 cat >> confdefs.h <<\EOF
10857 #define HAVE_FCNTL_LOCK 1
10862 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
10863 echo "configure:10864: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
10864 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10866 else
10868 if test "$cross_compiling" = yes; then
10869 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
10870 else
10871 cat > conftest.$ac_ext <<EOF
10872 #line 10873 "configure"
10873 #include "confdefs.h"
10874 #include "${srcdir-.}/tests/fcntl_lock64.c"
10876 if { (eval echo configure:10877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10877 then
10878 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
10879 else
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 rm -fr conftest*
10883 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
10885 rm -fr conftest*
10890 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
10891 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
10892 cat >> confdefs.h <<\EOF
10893 #define HAVE_BROKEN_FCNTL64_LOCKS 1
10897 else
10900 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
10901 echo "configure:10902: checking for 64 bit fcntl locking" >&5
10902 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10904 else
10906 if test "$cross_compiling" = yes; then
10907 samba_cv_HAVE_STRUCT_FLOCK64=cross
10908 else
10909 cat > conftest.$ac_ext <<EOF
10910 #line 10911 "configure"
10911 #include "confdefs.h"
10913 #if defined(HAVE_UNISTD_H)
10914 #include <unistd.h>
10915 #endif
10916 #include <stdio.h>
10917 #include <stdlib.h>
10919 #ifdef HAVE_FCNTL_H
10920 #include <fcntl.h>
10921 #endif
10923 #ifdef HAVE_SYS_FCNTL_H
10924 #include <sys/fcntl.h>
10925 #endif
10926 main() { struct flock64 fl64;
10927 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
10928 exit(0);
10929 #else
10930 exit(1);
10931 #endif
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10935 then
10936 samba_cv_HAVE_STRUCT_FLOCK64=yes
10937 else
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10940 rm -fr conftest*
10941 samba_cv_HAVE_STRUCT_FLOCK64=no
10943 rm -fr conftest*
10948 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
10950 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
10951 cat >> confdefs.h <<\EOF
10952 #define HAVE_STRUCT_FLOCK64 1
10958 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
10959 echo "configure:10960: checking for broken nisplus include files" >&5
10960 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10962 else
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 #include <sys/acl.h>
10968 #if defined(HAVE_RPCSVC_NIS_H)
10969 #include <rpcsvc/nis.h>
10970 #endif
10971 int main() {
10972 return 0;
10973 ; return 0; }
10975 if { (eval echo configure:10976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10976 rm -rf conftest*
10977 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
10978 else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -rf conftest*
10982 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
10984 rm -f conftest*
10987 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
10988 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
10989 cat >> confdefs.h <<\EOF
10990 #define BROKEN_NISPLUS_INCLUDE_FILES 1
10996 #################################################
10997 # check for smbwrapper support
10998 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
10999 echo "configure:11000: checking whether to use smbwrapper" >&5
11000 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11001 if test "${with_smbwrapper+set}" = set; then
11002 withval="$with_smbwrapper"
11003 case "$withval" in
11004 yes)
11005 echo "$ac_t""yes" 1>&6
11006 cat >> confdefs.h <<\EOF
11007 #define WITH_SMBWRAPPER 1
11010 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11012 if test x$ATTEMPT_WRAP32_BUILD = x; then
11013 WRAP32=""
11014 else
11015 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11018 # Conditions under which smbwrapper should not be built.
11020 if test x$PICFLAG = x; then
11021 echo No support for PIC code - disabling smbwrapper and smbsh
11022 WRAP=""
11023 WRAP32=""
11024 elif test x$ac_cv_func_syscall = xno; then
11025 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11026 WRAP=""
11027 WRAP32=""
11031 echo "$ac_t""no" 1>&6
11033 esac
11034 else
11035 echo "$ac_t""no" 1>&6
11040 #################################################
11041 # check for the AFS filesystem
11042 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11043 echo "configure:11044: checking whether to use AFS" >&5
11044 # Check whether --with-afs or --without-afs was given.
11045 if test "${with_afs+set}" = set; then
11046 withval="$with_afs"
11047 case "$withval" in
11048 yes)
11049 echo "$ac_t""yes" 1>&6
11050 cat >> confdefs.h <<\EOF
11051 #define WITH_AFS 1
11056 echo "$ac_t""no" 1>&6
11058 esac
11059 else
11060 echo "$ac_t""no" 1>&6
11066 #################################################
11067 # check for the DFS auth system
11068 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
11069 echo "configure:11070: checking whether to use DFS auth" >&5
11070 # Check whether --with-dfs or --without-dfs was given.
11071 if test "${with_dfs+set}" = set; then
11072 withval="$with_dfs"
11073 case "$withval" in
11074 yes)
11075 echo "$ac_t""yes" 1>&6
11076 cat >> confdefs.h <<\EOF
11077 #define WITH_DFS 1
11082 echo "$ac_t""no" 1>&6
11084 esac
11085 else
11086 echo "$ac_t""no" 1>&6
11091 #################################################
11092 # check for Kerberos IV auth system
11093 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11094 echo "configure:11095: checking whether to use Kerberos IV" >&5
11095 # Check whether --with-krb4 or --without-krb4 was given.
11096 if test "${with_krb4+set}" = set; then
11097 withval="$with_krb4"
11098 case "$withval" in
11099 yes)
11100 echo "$ac_t""yes" 1>&6
11101 cat >> confdefs.h <<\EOF
11102 #define KRB4_AUTH 1
11105 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11106 echo "configure:11107: checking for dn_expand in -lresolv" >&5
11107 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11109 echo $ac_n "(cached) $ac_c" 1>&6
11110 else
11111 ac_save_LIBS="$LIBS"
11112 LIBS="-lresolv $LIBS"
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 /* Override any gcc2 internal prototype to avoid an error. */
11117 /* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11119 char dn_expand();
11121 int main() {
11122 dn_expand()
11123 ; return 0; }
11125 if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11126 rm -rf conftest*
11127 eval "ac_cv_lib_$ac_lib_var=yes"
11128 else
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11131 rm -rf conftest*
11132 eval "ac_cv_lib_$ac_lib_var=no"
11134 rm -f conftest*
11135 LIBS="$ac_save_LIBS"
11138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11139 echo "$ac_t""yes" 1>&6
11140 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11142 cat >> confdefs.h <<EOF
11143 #define $ac_tr_lib 1
11146 LIBS="-lresolv $LIBS"
11148 else
11149 echo "$ac_t""no" 1>&6
11152 LIBS="$LIBS -lkrb -ldes"
11153 CFLAGS="$CFLAGS -I$withval/include"
11154 LDFLAGS="$LDFLAGS -L$withval/lib"
11157 echo "$ac_t""no" 1>&6
11159 esac
11160 else
11161 echo "$ac_t""no" 1>&6
11166 #################################################
11167 # check for Kerberos 5 auth system
11168 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11169 echo "configure:11170: checking whether to use Kerberos 5" >&5
11170 # Check whether --with-krb5 or --without-krb5 was given.
11171 if test "${with_krb5+set}" = set; then
11172 withval="$with_krb5"
11173 case "$withval" in
11174 yes)
11175 echo "$ac_t""yes" 1>&6
11176 cat >> confdefs.h <<\EOF
11177 #define KRB5_AUTH 1
11180 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11181 CFLAGS="$CFLAGS -I$withval/include"
11182 LDFLAGS="$LDFLAGS -L$withval/lib"
11185 echo "$ac_t""no" 1>&6
11187 esac
11188 else
11189 echo "$ac_t""no" 1>&6
11194 #################################################
11195 # check for automount support
11196 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11197 echo "configure:11198: checking whether to use AUTOMOUNT" >&5
11198 # Check whether --with-automount or --without-automount was given.
11199 if test "${with_automount+set}" = set; then
11200 withval="$with_automount"
11201 case "$withval" in
11202 yes)
11203 echo "$ac_t""yes" 1>&6
11204 cat >> confdefs.h <<\EOF
11205 #define WITH_AUTOMOUNT 1
11210 echo "$ac_t""no" 1>&6
11212 esac
11213 else
11214 echo "$ac_t""no" 1>&6
11219 #################################################
11220 # check for smbmount support
11221 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11222 echo "configure:11223: checking whether to use SMBMOUNT" >&5
11223 # Check whether --with-smbmount or --without-smbmount was given.
11224 if test "${with_smbmount+set}" = set; then
11225 withval="$with_smbmount"
11226 case "$withval" in
11227 yes)
11228 echo "$ac_t""yes" 1>&6
11229 cat >> confdefs.h <<\EOF
11230 #define WITH_SMBMOUNT 1
11233 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11236 echo "$ac_t""no" 1>&6
11237 MPROGS=
11239 esac
11240 else
11241 echo "$ac_t""no" 1>&6
11242 MPROGS=
11248 #################################################
11249 # check for a PAM password database
11250 with_pam_for_crypt=no
11251 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11252 echo "configure:11253: checking whether to use PAM password database" >&5
11253 # Check whether --with-pam or --without-pam was given.
11254 if test "${with_pam+set}" = set; then
11255 withval="$with_pam"
11256 case "$withval" in
11257 yes)
11258 echo "$ac_t""yes" 1>&6
11259 cat >> confdefs.h <<\EOF
11260 #define WITH_PAM 1
11263 LIBS="$LIBS -lpam"
11264 with_pam_for_crypt=yes
11267 echo "$ac_t""no" 1>&6
11269 esac
11270 else
11271 echo "$ac_t""no" 1>&6
11276 # we can't build a pam module if we don't have pam.
11277 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11278 echo "configure:11279: checking for pam_get_data in -lpam" >&5
11279 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11281 echo $ac_n "(cached) $ac_c" 1>&6
11282 else
11283 ac_save_LIBS="$LIBS"
11284 LIBS="-lpam $LIBS"
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11288 /* Override any gcc2 internal prototype to avoid an error. */
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11291 char pam_get_data();
11293 int main() {
11294 pam_get_data()
11295 ; return 0; }
11297 if { (eval echo configure:11298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11298 rm -rf conftest*
11299 eval "ac_cv_lib_$ac_lib_var=yes"
11300 else
11301 echo "configure: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11303 rm -rf conftest*
11304 eval "ac_cv_lib_$ac_lib_var=no"
11306 rm -f conftest*
11307 LIBS="$ac_save_LIBS"
11310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11311 echo "$ac_t""yes" 1>&6
11312 cat >> confdefs.h <<\EOF
11313 #define HAVE_LIBPAM 1
11316 else
11317 echo "$ac_t""no" 1>&6
11321 #################################################
11322 # check for pam_smbpass support
11323 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11324 echo "configure:11325: checking whether to use pam_smbpass" >&5
11325 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11326 if test "${with_pam_smbpass+set}" = set; then
11327 withval="$with_pam_smbpass"
11328 case "$withval" in
11329 yes)
11330 echo "$ac_t""yes" 1>&6
11332 # Conditions under which pam_smbpass should not be built.
11334 if test x$PICFLAG = x; then
11335 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11336 PAM_MOD=""
11337 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11338 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11339 PAM_MOD=""
11340 else
11341 cat >> confdefs.h <<\EOF
11342 #define WITH_PAM_SMBPASS 1
11345 PAM_MOD="bin/pam_smbpass.so"
11349 echo "$ac_t""no" 1>&6
11351 esac
11352 else
11353 echo "$ac_t""no" 1>&6
11359 ###############################################
11360 # test for where we get crypt() from, but only
11361 # if not using PAM
11362 if test $with_pam_for_crypt = no; then
11363 for ac_func in crypt
11365 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11366 echo "configure:11367: checking for $ac_func" >&5
11367 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11368 echo $ac_n "(cached) $ac_c" 1>&6
11369 else
11370 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure"
11372 #include "confdefs.h"
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func(); below. */
11375 #include <assert.h>
11376 /* Override any gcc2 internal prototype to avoid an error. */
11377 /* We use char because int might match the return type of a gcc2
11378 builtin and then its argument prototype would still apply. */
11379 char $ac_func();
11381 int main() {
11383 /* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11387 choke me
11388 #else
11389 $ac_func();
11390 #endif
11392 ; return 0; }
11394 if { (eval echo configure:11395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11395 rm -rf conftest*
11396 eval "ac_cv_func_$ac_func=yes"
11397 else
11398 echo "configure: failed program was:" >&5
11399 cat conftest.$ac_ext >&5
11400 rm -rf conftest*
11401 eval "ac_cv_func_$ac_func=no"
11403 rm -f conftest*
11406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11407 echo "$ac_t""yes" 1>&6
11408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11409 cat >> confdefs.h <<EOF
11410 #define $ac_tr_func 1
11413 else
11414 echo "$ac_t""no" 1>&6
11416 done
11418 if test x"$ac_cv_func_crypt" = x"no"; then
11419 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11420 echo "configure:11421: checking for crypt in -lcrypt" >&5
11421 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11423 echo $ac_n "(cached) $ac_c" 1>&6
11424 else
11425 ac_save_LIBS="$LIBS"
11426 LIBS="-lcrypt $LIBS"
11427 cat > conftest.$ac_ext <<EOF
11428 #line 11429 "configure"
11429 #include "confdefs.h"
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11433 char crypt();
11435 int main() {
11436 crypt()
11437 ; return 0; }
11439 if { (eval echo configure:11440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11440 rm -rf conftest*
11441 eval "ac_cv_lib_$ac_lib_var=yes"
11442 else
11443 echo "configure: failed program was:" >&5
11444 cat conftest.$ac_ext >&5
11445 rm -rf conftest*
11446 eval "ac_cv_lib_$ac_lib_var=no"
11448 rm -f conftest*
11449 LIBS="$ac_save_LIBS"
11452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11453 echo "$ac_t""yes" 1>&6
11454 LIBS="$LIBS -lcrypt";
11455 cat >> confdefs.h <<\EOF
11456 #define HAVE_CRYPT 1
11459 else
11460 echo "$ac_t""no" 1>&6
11467 ## moved after the check for -lcrypt in order to
11468 ## ensure that the necessary libraries are included
11469 ## check checking for truncated salt. Wrapped by the
11470 ## $with_pam_for_crypt variable as above --jerry
11472 if test $with_pam_for_crypt = no; then
11473 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
11474 echo "configure:11475: checking for a crypt that needs truncated salt" >&5
11475 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11477 else
11479 if test "$cross_compiling" = yes; then
11480 samba_cv_HAVE_TRUNCATED_SALT=cross
11481 else
11482 cat > conftest.$ac_ext <<EOF
11483 #line 11484 "configure"
11484 #include "confdefs.h"
11485 #include "${srcdir-.}/tests/crypttest.c"
11487 if { (eval echo configure:11488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11488 then
11489 samba_cv_HAVE_TRUNCATED_SALT=no
11490 else
11491 echo "configure: failed program was:" >&5
11492 cat conftest.$ac_ext >&5
11493 rm -fr conftest*
11494 samba_cv_HAVE_TRUNCATED_SALT=yes
11496 rm -fr conftest*
11501 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
11502 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
11503 cat >> confdefs.h <<\EOF
11504 #define HAVE_TRUNCATED_SALT 1
11511 #################################################
11512 # check for a TDB password database
11513 echo $ac_n "checking whether to use TDB password database""... $ac_c" 1>&6
11514 echo "configure:11515: checking whether to use TDB password database" >&5
11515 # Check whether --with-tdbsam or --without-tdbsam was given.
11516 if test "${with_tdbsam+set}" = set; then
11517 withval="$with_tdbsam"
11518 case "$withval" in
11519 yes)
11520 echo "$ac_t""yes" 1>&6
11521 cat >> confdefs.h <<\EOF
11522 #define WITH_TDBPWD 1
11525 # AC_MSG_ERROR([TDB password database not supported in this version.])
11528 echo "$ac_t""no" 1>&6
11530 esac
11531 else
11532 echo "$ac_t""no" 1>&6
11537 #################################################
11538 # check for a LDAP password database
11539 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
11540 echo "configure:11541: checking whether to use LDAP password database" >&5
11541 # Check whether --with-ldap or --without-ldap was given.
11542 if test "${with_ldap+set}" = set; then
11543 withval="$with_ldap"
11544 case "$withval" in
11545 yes)
11546 echo "$ac_t""yes" 1>&6
11547 cat >> confdefs.h <<\EOF
11548 #define WITH_LDAP 1
11551 { echo "configure: error: LDAP password database not supported in this version." 1>&2; exit 1; }
11554 echo "$ac_t""no" 1>&6
11556 esac
11557 else
11558 echo "$ac_t""no" 1>&6
11563 #################################################
11564 # commented out by --jerry
11565 # check for a NISPLUS password database
11566 #AC_MSG_CHECKING(whether to use NISPLUS password database)
11567 #AC_ARG_WITH(nisplus,
11568 #[ --with-nisplus Include NISPLUS password database support
11569 #[ case "$withval" in
11570 # yes)
11571 # AC_MSG_RESULT(yes)
11572 # AC_DEFINE(WITH_NISPLUS)
11573 # ;;
11574 # *)
11575 # AC_MSG_RESULT(no)
11576 # ;;
11577 # esac ],
11578 # AC_MSG_RESULT(no)
11581 #################################################
11582 # check for a NISPLUS_HOME support
11583 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
11584 echo "configure:11585: checking whether to use NISPLUS_HOME" >&5
11585 # Check whether --with-nisplus-home or --without-nisplus-home was given.
11586 if test "${with_nisplus_home+set}" = set; then
11587 withval="$with_nisplus_home"
11588 case "$withval" in
11589 yes)
11590 echo "$ac_t""yes" 1>&6
11591 cat >> confdefs.h <<\EOF
11592 #define WITH_NISPLUS_HOME 1
11597 echo "$ac_t""no" 1>&6
11599 esac
11600 else
11601 echo "$ac_t""no" 1>&6
11606 #################################################
11607 # check for the secure socket layer
11608 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
11609 echo "configure:11610: checking whether to use SSL" >&5
11610 # Check whether --with-ssl or --without-ssl was given.
11611 if test "${with_ssl+set}" = set; then
11612 withval="$with_ssl"
11613 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl)]
11614 else
11615 case "$withval" in
11616 yes)
11617 echo "$ac_t""yes" 1>&6
11618 cat >> confdefs.h <<\EOF
11619 #define WITH_SSL 1
11622 withval="/usr/local/ssl" # default
11624 if test "${with_sslinc+set}" = set; then
11626 withval="$with_sslinc"
11627 case "$withval" in
11628 yes|no)
11629 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
11630 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11631 LIBS="-lssl -lcrypto $LIBS"
11632 LDFLAGS="=L/usr/local/ssl/lib $LDFLAGS"
11635 CFLAGS="-I${withval} $CFLAGS"
11636 LIBS="-lssl -lcrypto $LIBS"
11637 LDFLAGS="-L${withval}/lib $LDFLAGS"
11639 esac
11641 else
11643 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
11644 LIBS="-lssl -lcrypto $LIBS"
11645 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
11649 if test ! -d ${withval}; then
11650 echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
11651 exit 1
11654 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
11658 echo "$ac_t""no" 1>&6
11660 esac
11664 #################################################
11665 # check for syslog logging
11666 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
11667 echo "configure:11668: checking whether to use syslog logging" >&5
11668 # Check whether --with-syslog or --without-syslog was given.
11669 if test "${with_syslog+set}" = set; then
11670 withval="$with_syslog"
11671 case "$withval" in
11672 yes)
11673 echo "$ac_t""yes" 1>&6
11674 cat >> confdefs.h <<\EOF
11675 #define WITH_SYSLOG 1
11680 echo "$ac_t""no" 1>&6
11682 esac
11683 else
11684 echo "$ac_t""no" 1>&6
11689 #################################################
11690 # check for a shared memory profiling support
11691 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
11692 echo "configure:11693: checking whether to use profiling" >&5
11693 # Check whether --with-profile or --without-profile was given.
11694 if test "${with_profile+set}" = set; then
11695 withval="$with_profile"
11696 case "$withval" in
11697 yes)
11698 echo "$ac_t""yes" 1>&6
11699 cat >> confdefs.h <<\EOF
11700 #define WITH_PROFILE 1
11705 echo "$ac_t""no" 1>&6
11707 esac
11708 else
11709 echo "$ac_t""no" 1>&6
11715 #################################################
11716 # check for experimental disk-quotas support
11717 QUOTAOBJS=smbd/noquotas.o
11719 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
11720 echo "configure:11721: checking whether to support disk-quotas" >&5
11721 # Check whether --with-quotas or --without-quotas was given.
11722 if test "${with_quotas+set}" = set; then
11723 withval="$with_quotas"
11724 case "$withval" in
11725 yes)
11726 echo "$ac_t""yes" 1>&6
11727 QUOTAOBJS=smbd/quotas.o
11730 echo "$ac_t""no" 1>&6
11732 esac
11733 else
11734 echo "$ac_t""no" 1>&6
11740 #################################################
11741 # check for experimental utmp accounting
11743 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
11744 echo "configure:11745: checking whether to support utmp accounting" >&5
11745 # Check whether --with-utmp or --without-utmp was given.
11746 if test "${with_utmp+set}" = set; then
11747 withval="$with_utmp"
11748 case "$withval" in
11749 yes)
11750 echo "$ac_t""yes" 1>&6
11751 cat >> confdefs.h <<\EOF
11752 #define WITH_UTMP 1
11757 echo "$ac_t""no" 1>&6
11759 esac
11760 else
11761 echo "$ac_t""no" 1>&6
11766 #################################################
11767 # check for MS Dfs support
11769 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
11770 echo "configure:11771: checking whether to support Microsoft Dfs" >&5
11771 # Check whether --with-msdfs or --without-msdfs was given.
11772 if test "${with_msdfs+set}" = set; then
11773 withval="$with_msdfs"
11774 case "$withval" in
11775 yes)
11776 echo "$ac_t""yes" 1>&6
11777 cat >> confdefs.h <<\EOF
11778 #define WITH_MSDFS 1
11783 echo "$ac_t""no" 1>&6
11785 esac
11786 else
11787 echo "$ac_t""no" 1>&6
11792 #################################################
11793 # set private directory location
11794 # Check whether --with-privatedir or --without-privatedir was given.
11795 if test "${with_privatedir+set}" = set; then
11796 withval="$with_privatedir"
11797 case "$withval" in
11798 yes|no)
11800 # Just in case anybody calls it without argument
11802 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
11803 privatedir='${prefix}/private'
11806 privatedir="$withval"
11808 esac
11810 else
11811 privatedir='${prefix}/private'
11817 #################################################
11818 # set lock directory location
11819 # Check whether --with-lockdir or --without-lockdir was given.
11820 if test "${with_lockdir+set}" = set; then
11821 withval="$with_lockdir"
11822 case "$withval" in
11823 yes|no)
11825 # Just in case anybody calls it without argument
11827 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
11828 lockdir='$(VARDIR)/locks'
11831 lockdir="$withval"
11833 esac
11835 else
11836 lockdir='$(VARDIR)/locks'
11842 #################################################
11843 # set SWAT directory location
11844 # Check whether --with-swatdir or --without-swatdir was given.
11845 if test "${with_swatdir+set}" = set; then
11846 withval="$with_swatdir"
11847 case "$withval" in
11848 yes|no)
11850 # Just in case anybody does it
11852 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
11853 swatdir='${prefix}/swat'
11856 swatdir="$withval"
11858 esac
11860 else
11861 swatdir='${prefix}/swat'
11867 #################################################
11868 # these tests are taken from the GNU fileutils package
11869 echo "checking how to get filesystem space usage" 1>&6
11870 echo "configure:11871: checking how to get filesystem space usage" >&5
11871 space=no
11873 # Test for statvfs64.
11874 if test $space = no; then
11875 # SVR4
11876 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
11877 echo "configure:11878: checking statvfs64 function (SVR4)" >&5
11878 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11880 else
11881 if test "$cross_compiling" = yes; then
11882 fu_cv_sys_stat_statvfs64=cross
11883 else
11884 cat > conftest.$ac_ext <<EOF
11885 #line 11886 "configure"
11886 #include "confdefs.h"
11888 #if defined(HAVE_UNISTD_H)
11889 #include <unistd.h>
11890 #endif
11891 #include <sys/types.h>
11892 #include <sys/statvfs.h>
11893 main ()
11895 struct statvfs64 fsd;
11896 exit (statvfs64 (".", &fsd));
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11900 then
11901 fu_cv_sys_stat_statvfs64=yes
11902 else
11903 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11905 rm -fr conftest*
11906 fu_cv_sys_stat_statvfs64=no
11908 rm -fr conftest*
11913 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
11914 if test $fu_cv_sys_stat_statvfs64 = yes; then
11915 space=yes
11916 cat >> confdefs.h <<\EOF
11917 #define STAT_STATVFS64 1
11923 # Perform only the link test since it seems there are no variants of the
11924 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
11925 # because that got a false positive on SCO OSR5. Adding the declaration
11926 # of a `struct statvfs' causes this test to fail (as it should) on such
11927 # systems. That system is reported to work fine with STAT_STATFS4 which
11928 # is what it gets when this test fails.
11929 if test $space = no; then
11930 # SVR4
11931 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
11932 echo "configure:11933: checking statvfs function (SVR4)" >&5
11933 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
11934 echo $ac_n "(cached) $ac_c" 1>&6
11935 else
11936 cat > conftest.$ac_ext <<EOF
11937 #line 11938 "configure"
11938 #include "confdefs.h"
11939 #include <sys/types.h>
11940 #include <sys/statvfs.h>
11941 int main() {
11942 struct statvfs fsd; statvfs (0, &fsd);
11943 ; return 0; }
11945 if { (eval echo configure:11946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11946 rm -rf conftest*
11947 fu_cv_sys_stat_statvfs=yes
11948 else
11949 echo "configure: failed program was:" >&5
11950 cat conftest.$ac_ext >&5
11951 rm -rf conftest*
11952 fu_cv_sys_stat_statvfs=no
11954 rm -f conftest*
11957 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
11958 if test $fu_cv_sys_stat_statvfs = yes; then
11959 space=yes
11960 cat >> confdefs.h <<\EOF
11961 #define STAT_STATVFS 1
11967 if test $space = no; then
11968 # DEC Alpha running OSF/1
11969 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
11970 echo "configure:11971: checking for 3-argument statfs function (DEC OSF/1)" >&5
11971 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11973 else
11974 if test "$cross_compiling" = yes; then
11975 fu_cv_sys_stat_statfs3_osf1=no
11976 else
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11981 #include <sys/param.h>
11982 #include <sys/types.h>
11983 #include <sys/mount.h>
11984 main ()
11986 struct statfs fsd;
11987 fsd.f_fsize = 0;
11988 exit (statfs (".", &fsd, sizeof (struct statfs)));
11991 if { (eval echo configure:11992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11992 then
11993 fu_cv_sys_stat_statfs3_osf1=yes
11994 else
11995 echo "configure: failed program was:" >&5
11996 cat conftest.$ac_ext >&5
11997 rm -fr conftest*
11998 fu_cv_sys_stat_statfs3_osf1=no
12000 rm -fr conftest*
12005 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12006 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12007 space=yes
12008 cat >> confdefs.h <<\EOF
12009 #define STAT_STATFS3_OSF1 1
12015 if test $space = no; then
12016 # AIX
12017 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12018 echo "configure:12019: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12019 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12021 else
12022 if test "$cross_compiling" = yes; then
12023 fu_cv_sys_stat_statfs2_bsize=no
12024 else
12025 cat > conftest.$ac_ext <<EOF
12026 #line 12027 "configure"
12027 #include "confdefs.h"
12029 #ifdef HAVE_SYS_PARAM_H
12030 #include <sys/param.h>
12031 #endif
12032 #ifdef HAVE_SYS_MOUNT_H
12033 #include <sys/mount.h>
12034 #endif
12035 #ifdef HAVE_SYS_VFS_H
12036 #include <sys/vfs.h>
12037 #endif
12038 main ()
12040 struct statfs fsd;
12041 fsd.f_bsize = 0;
12042 exit (statfs (".", &fsd));
12045 if { (eval echo configure:12046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12046 then
12047 fu_cv_sys_stat_statfs2_bsize=yes
12048 else
12049 echo "configure: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12051 rm -fr conftest*
12052 fu_cv_sys_stat_statfs2_bsize=no
12054 rm -fr conftest*
12059 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12060 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12061 space=yes
12062 cat >> confdefs.h <<\EOF
12063 #define STAT_STATFS2_BSIZE 1
12069 if test $space = no; then
12070 # SVR3
12071 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12072 echo "configure:12073: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12073 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12074 echo $ac_n "(cached) $ac_c" 1>&6
12075 else
12076 if test "$cross_compiling" = yes; then
12077 fu_cv_sys_stat_statfs4=no
12078 else
12079 cat > conftest.$ac_ext <<EOF
12080 #line 12081 "configure"
12081 #include "confdefs.h"
12082 #include <sys/types.h>
12083 #include <sys/statfs.h>
12084 main ()
12086 struct statfs fsd;
12087 exit (statfs (".", &fsd, sizeof fsd, 0));
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12091 then
12092 fu_cv_sys_stat_statfs4=yes
12093 else
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12096 rm -fr conftest*
12097 fu_cv_sys_stat_statfs4=no
12099 rm -fr conftest*
12104 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12105 if test $fu_cv_sys_stat_statfs4 = yes; then
12106 space=yes
12107 cat >> confdefs.h <<\EOF
12108 #define STAT_STATFS4 1
12114 if test $space = no; then
12115 # 4.4BSD and NetBSD
12116 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12117 echo "configure:12118: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12118 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12120 else
12121 if test "$cross_compiling" = yes; then
12122 fu_cv_sys_stat_statfs2_fsize=no
12123 else
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 #include <sys/types.h>
12128 #ifdef HAVE_SYS_PARAM_H
12129 #include <sys/param.h>
12130 #endif
12131 #ifdef HAVE_SYS_MOUNT_H
12132 #include <sys/mount.h>
12133 #endif
12134 main ()
12136 struct statfs fsd;
12137 fsd.f_fsize = 0;
12138 exit (statfs (".", &fsd));
12141 if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12142 then
12143 fu_cv_sys_stat_statfs2_fsize=yes
12144 else
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 rm -fr conftest*
12148 fu_cv_sys_stat_statfs2_fsize=no
12150 rm -fr conftest*
12155 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12156 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12157 space=yes
12158 cat >> confdefs.h <<\EOF
12159 #define STAT_STATFS2_FSIZE 1
12165 if test $space = no; then
12166 # Ultrix
12167 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12168 echo "configure:12169: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12169 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12171 else
12172 if test "$cross_compiling" = yes; then
12173 fu_cv_sys_stat_fs_data=no
12174 else
12175 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure"
12177 #include "confdefs.h"
12178 #include <sys/types.h>
12179 #ifdef HAVE_SYS_PARAM_H
12180 #include <sys/param.h>
12181 #endif
12182 #ifdef HAVE_SYS_MOUNT_H
12183 #include <sys/mount.h>
12184 #endif
12185 #ifdef HAVE_SYS_FS_TYPES_H
12186 #include <sys/fs_types.h>
12187 #endif
12188 main ()
12190 struct fs_data fsd;
12191 /* Ultrix's statfs returns 1 for success,
12192 0 for not mounted, -1 for failure. */
12193 exit (statfs (".", &fsd) != 1);
12196 if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12197 then
12198 fu_cv_sys_stat_fs_data=yes
12199 else
12200 echo "configure: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 rm -fr conftest*
12203 fu_cv_sys_stat_fs_data=no
12205 rm -fr conftest*
12210 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12211 if test $fu_cv_sys_stat_fs_data = yes; then
12212 space=yes
12213 cat >> confdefs.h <<\EOF
12214 #define STAT_STATFS2_FS_DATA 1
12221 # As a gating factor for large file support, in order to
12222 # use <4GB files we must have the following minimal support
12223 # available.
12224 # long long, and a 64 bit off_t or off64_t.
12225 # If we don't have all of these then disable large
12226 # file support.
12228 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12229 echo "configure:12230: checking if large file support can be enabled" >&5
12230 cat > conftest.$ac_ext <<EOF
12231 #line 12232 "configure"
12232 #include "confdefs.h"
12234 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12235 #include <sys/types.h>
12236 #else
12237 __COMPILE_ERROR_
12238 #endif
12240 int main() {
12241 int i
12242 ; return 0; }
12244 if { (eval echo configure:12245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12245 rm -rf conftest*
12246 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12247 else
12248 echo "configure: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12250 rm -rf conftest*
12251 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12253 rm -f conftest*
12254 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12255 cat >> confdefs.h <<\EOF
12256 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
12260 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
12262 # Check whether --with-spinlocks or --without-spinlocks was given.
12263 if test "${with_spinlocks+set}" = set; then
12264 withval="$with_spinlocks"
12268 if test "x$with_spinlocks" = "xyes"; then
12269 cat >> confdefs.h <<\EOF
12270 #define USE_SPINLOCKS 1
12274 case "$host_cpu" in
12275 sparc)
12276 cat >> confdefs.h <<\EOF
12277 #define SPARC_SPINLOCKS 1
12282 i386|i486|i586|i686)
12283 cat >> confdefs.h <<\EOF
12284 #define INTEL_SPINLOCKS 1
12289 mips)
12290 cat >> confdefs.h <<\EOF
12291 #define MIPS_SPINLOCKS 1
12296 powerpc)
12297 cat >> confdefs.h <<\EOF
12298 #define POWERPC_SPINLOCKS 1
12302 esac
12305 #################################################
12306 # check for ACL support
12308 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
12309 echo "configure:12310: checking whether to support ACLs" >&5
12310 # Check whether --with-acl-support or --without-acl-support was given.
12311 if test "${with_acl_support+set}" = set; then
12312 withval="$with_acl_support"
12313 case "$withval" in
12314 yes)
12316 case "$host_os" in
12317 *sysv5*)
12318 echo "$ac_t""Using UnixWare ACLs" 1>&6
12319 cat >> confdefs.h <<\EOF
12320 #define HAVE_UNIXWARE_ACLS 1
12324 *solaris*)
12325 echo "$ac_t""Using solaris ACLs" 1>&6
12326 cat >> confdefs.h <<\EOF
12327 #define HAVE_SOLARIS_ACLS 1
12331 *irix*)
12332 echo "$ac_t""Using IRIX ACLs" 1>&6
12333 cat >> confdefs.h <<\EOF
12334 #define HAVE_IRIX_ACLS 1
12338 *aix*)
12339 echo "$ac_t""Using AIX ACLs" 1>&6
12340 cat >> confdefs.h <<\EOF
12341 #define HAVE_AIX_ACLS 1
12345 *osf*)
12346 echo "$ac_t""Using Tru64 ACLs" 1>&6
12347 cat >> confdefs.h <<\EOF
12348 #define HAVE_TRU64_ACLS 1
12351 LIBS="$LIBS -lpacl"
12354 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
12355 echo "configure:12356: checking for acl_get_file in -lacl" >&5
12356 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
12357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12358 echo $ac_n "(cached) $ac_c" 1>&6
12359 else
12360 ac_save_LIBS="$LIBS"
12361 LIBS="-lacl $LIBS"
12362 cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure"
12364 #include "confdefs.h"
12365 /* Override any gcc2 internal prototype to avoid an error. */
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12368 char acl_get_file();
12370 int main() {
12371 acl_get_file()
12372 ; return 0; }
12374 if { (eval echo configure:12375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12375 rm -rf conftest*
12376 eval "ac_cv_lib_$ac_lib_var=yes"
12377 else
12378 echo "configure: failed program was:" >&5
12379 cat conftest.$ac_ext >&5
12380 rm -rf conftest*
12381 eval "ac_cv_lib_$ac_lib_var=no"
12383 rm -f conftest*
12384 LIBS="$ac_save_LIBS"
12387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12388 echo "$ac_t""yes" 1>&6
12389 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12391 cat >> confdefs.h <<EOF
12392 #define $ac_tr_lib 1
12395 LIBS="-lacl $LIBS"
12397 else
12398 echo "$ac_t""no" 1>&6
12401 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
12402 echo "configure:12403: checking for ACL support" >&5
12403 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12405 else
12407 cat > conftest.$ac_ext <<EOF
12408 #line 12409 "configure"
12409 #include "confdefs.h"
12410 #include <sys/types.h>
12411 #include <sys/acl.h>
12412 int main() {
12413 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
12414 ; return 0; }
12416 if { (eval echo configure:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12417 rm -rf conftest*
12418 samba_cv_HAVE_POSIX_ACLS=yes
12419 else
12420 echo "configure: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12422 rm -rf conftest*
12423 samba_cv_HAVE_POSIX_ACLS=no
12425 rm -f conftest*
12428 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
12429 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
12430 echo "$ac_t""Using posix ACLs" 1>&6
12431 cat >> confdefs.h <<\EOF
12432 #define HAVE_POSIX_ACLS 1
12435 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
12436 echo "configure:12437: checking for acl_get_perm_np" >&5
12437 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
12438 echo $ac_n "(cached) $ac_c" 1>&6
12439 else
12441 cat > conftest.$ac_ext <<EOF
12442 #line 12443 "configure"
12443 #include "confdefs.h"
12444 #include <sys/types.h>
12445 #include <sys/acl.h>
12446 int main() {
12447 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
12448 ; return 0; }
12450 if { (eval echo configure:12451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12451 rm -rf conftest*
12452 samba_cv_HAVE_ACL_GET_PERM_NP=yes
12453 else
12454 echo "configure: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 rm -rf conftest*
12457 samba_cv_HAVE_ACL_GET_PERM_NP=no
12459 rm -f conftest*
12462 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
12463 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
12464 cat >> confdefs.h <<\EOF
12465 #define HAVE_ACL_GET_PERM_NP 1
12471 esac
12474 echo "$ac_t""no" 1>&6
12475 cat >> confdefs.h <<\EOF
12476 #define HAVE_NO_ACLS 1
12480 esac
12481 else
12482 cat >> confdefs.h <<\EOF
12483 #define HAVE_NO_ACLS 1
12486 echo "$ac_t""no" 1>&6
12491 #################################################
12492 # Check whether winbind is supported on this platform. If so we need to
12493 # build and install client programs (WINBIND_TARGETS), sbin programs
12494 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
12496 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
12497 echo "configure:12498: checking whether to build winbind" >&5
12499 # Initially, the value of $host_os decides whether winbind is supported
12501 case "$host_os" in
12502 *linux*|*solaris*)
12503 HAVE_WINBIND=yes
12506 HAVE_WINBIND=no
12507 winbind_no_reason=", unsupported on $host_os"
12509 esac
12511 # Check the setting of --with-winbindd
12513 # Check whether --with-winbind or --without-winbind was given.
12514 if test "${with_winbind+set}" = set; then
12515 withval="$with_winbind"
12517 case "$withval" in
12518 yes)
12519 HAVE_WINBIND=yes
12522 HAVE_WINBIND=no
12523 winbind_reason=""
12525 esac
12529 # We need unix domain sockets for winbind
12531 if test x"$HAVE_WINBIND" = x"yes"; then
12532 if test x"$samba_cv_unixsocket" = x"no"; then
12533 winbind_no_reason=", no unix domain socket support on $host_os"
12534 HAVE_WINBIND=no
12538 # Display test results
12540 if test x"$HAVE_WINBIND" = x"yes"; then
12542 echo "$ac_t""yes" 1>&6
12544 WINBIND_TARGETS="\$(WINBIND_PROGS)"
12545 WINBIND_STARGETS="\$(WINBIND_SPROGS)"
12546 WINBIND_LTARGETS="\$(WINBIND_LPROGS)"
12548 case "$with_pam" in
12549 yes)
12550 WINBIND_PAM_PROGS="\$(WINBIND_PAM_PROGS)"
12552 esac
12553 else
12554 echo "$ac_t""no$winbind_no_reason" 1>&6
12556 WINBIND_TARGETS=""
12557 WINBIND_STARGETS=""
12558 WINBIND_LTARGETS=""
12559 WINBIND_PAM_PROGS=""
12562 # Substitution time!
12569 #################################################
12570 # final configure stuff
12572 echo "checking configure summary"
12573 if test "$cross_compiling" = yes; then
12575 else
12576 cat > conftest.$ac_ext <<EOF
12577 #line 12578 "configure"
12578 #include "confdefs.h"
12579 #include "${srcdir-.}/tests/summary.c"
12581 if { (eval echo configure:12582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12582 then
12583 echo "configure OK";
12584 else
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 rm -fr conftest*
12588 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
12590 rm -fr conftest*
12594 builddir=`pwd`
12597 trap '' 1 2 15
12598 cat > confcache <<\EOF
12599 # This file is a shell script that caches the results of configure
12600 # tests run on this system so they can be shared between configure
12601 # scripts and configure runs. It is not useful on other systems.
12602 # If it contains results you don't want to keep, you may remove or edit it.
12604 # By default, configure uses ./config.cache as the cache file,
12605 # creating it if it does not exist already. You can give configure
12606 # the --cache-file=FILE option to use a different cache file; that is
12607 # what configure does when it calls configure scripts in
12608 # subdirectories, so they share the cache.
12609 # Giving --cache-file=/dev/null disables caching, for debugging configure.
12610 # config.status only pays attention to the cache file if you give it the
12611 # --recheck option to rerun configure.
12614 # The following way of writing the cache mishandles newlines in values,
12615 # but we know of no workaround that is simple, portable, and efficient.
12616 # So, don't put newlines in cache variables' values.
12617 # Ultrix sh set writes to stderr and can't be redirected directly,
12618 # and sets the high bit in the cache file unless we assign to the vars.
12619 (set) 2>&1 |
12620 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12621 *ac_space=\ *)
12622 # `set' does not quote correctly, so add quotes (double-quote substitution
12623 # turns \\\\ into \\, and sed turns \\ into \).
12624 sed -n \
12625 -e "s/'/'\\\\''/g" \
12626 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
12629 # `set' quotes correctly as required by POSIX, so do not add quotes.
12630 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
12632 esac >> confcache
12633 if cmp -s $cache_file confcache; then
12635 else
12636 if test -w $cache_file; then
12637 echo "updating cache $cache_file"
12638 cat confcache > $cache_file
12639 else
12640 echo "not updating unwritable cache $cache_file"
12643 rm -f confcache
12645 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12647 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12648 # Let make expand exec_prefix.
12649 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12651 # Any assignment to VPATH causes Sun make to only execute
12652 # the first set of double-colon rules, so remove it if not needed.
12653 # If there is a colon in the path, we need to keep it.
12654 if test "x$srcdir" = x.; then
12655 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
12658 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
12660 DEFS=-DHAVE_CONFIG_H
12662 # Without the "./", some shells look in PATH for config.status.
12663 : ${CONFIG_STATUS=./config.status}
12665 echo creating $CONFIG_STATUS
12666 rm -f $CONFIG_STATUS
12667 cat > $CONFIG_STATUS <<EOF
12668 #! /bin/sh
12669 # Generated automatically by configure.
12670 # Run this file to recreate the current configuration.
12671 # This directory was configured as follows,
12672 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12674 # $0 $ac_configure_args
12676 # Compiler output produced by configure, useful for debugging
12677 # configure, is in ./config.log if it exists.
12679 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
12680 for ac_option
12682 case "\$ac_option" in
12683 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12684 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12685 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12686 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12687 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12688 exit 0 ;;
12689 -help | --help | --hel | --he | --h)
12690 echo "\$ac_cs_usage"; exit 0 ;;
12691 *) echo "\$ac_cs_usage"; exit 1 ;;
12692 esac
12693 done
12695 ac_given_srcdir=$srcdir
12696 ac_given_INSTALL="$INSTALL"
12698 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
12700 cat >> $CONFIG_STATUS <<EOF
12702 # Protect against being on the right side of a sed subst in config.status.
12703 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12704 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12705 $ac_vpsub
12706 $extrasub
12707 s%@SHELL@%$SHELL%g
12708 s%@CFLAGS@%$CFLAGS%g
12709 s%@CPPFLAGS@%$CPPFLAGS%g
12710 s%@CXXFLAGS@%$CXXFLAGS%g
12711 s%@FFLAGS@%$FFLAGS%g
12712 s%@DEFS@%$DEFS%g
12713 s%@LDFLAGS@%$LDFLAGS%g
12714 s%@LIBS@%$LIBS%g
12715 s%@exec_prefix@%$exec_prefix%g
12716 s%@prefix@%$prefix%g
12717 s%@program_transform_name@%$program_transform_name%g
12718 s%@bindir@%$bindir%g
12719 s%@sbindir@%$sbindir%g
12720 s%@libexecdir@%$libexecdir%g
12721 s%@datadir@%$datadir%g
12722 s%@sysconfdir@%$sysconfdir%g
12723 s%@sharedstatedir@%$sharedstatedir%g
12724 s%@localstatedir@%$localstatedir%g
12725 s%@libdir@%$libdir%g
12726 s%@includedir@%$includedir%g
12727 s%@oldincludedir@%$oldincludedir%g
12728 s%@infodir@%$infodir%g
12729 s%@mandir@%$mandir%g
12730 s%@RUNPROG@%$RUNPROG%g
12731 s%@MPROGS@%$MPROGS%g
12732 s%@LDSHFLAGS@%$LDSHFLAGS%g
12733 s%@SHLD@%$SHLD%g
12734 s%@HOST_OS@%$HOST_OS%g
12735 s%@PAM_MOD@%$PAM_MOD%g
12736 s%@WRAP@%$WRAP%g
12737 s%@WRAP32@%$WRAP32%g
12738 s%@PICFLAG@%$PICFLAG%g
12739 s%@PICSUFFIX@%$PICSUFFIX%g
12740 s%@POBAD_CC@%$POBAD_CC%g
12741 s%@SHLIBEXT@%$SHLIBEXT%g
12742 s%@BLDSHARED@%$BLDSHARED%g
12743 s%@CC@%$CC%g
12744 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12745 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12746 s%@INSTALL_DATA@%$INSTALL_DATA%g
12747 s%@AWK@%$AWK%g
12748 s%@BROKEN_CC@%$BROKEN_CC%g
12749 s%@host@%$host%g
12750 s%@host_alias@%$host_alias%g
12751 s%@host_cpu@%$host_cpu%g
12752 s%@host_vendor@%$host_vendor%g
12753 s%@host_os@%$host_os%g
12754 s%@target@%$target%g
12755 s%@target_alias@%$target_alias%g
12756 s%@target_cpu@%$target_cpu%g
12757 s%@target_vendor@%$target_vendor%g
12758 s%@target_os@%$target_os%g
12759 s%@build@%$build%g
12760 s%@build_alias@%$build_alias%g
12761 s%@build_cpu@%$build_cpu%g
12762 s%@build_vendor@%$build_vendor%g
12763 s%@build_os@%$build_os%g
12764 s%@CPP@%$CPP%g
12765 s%@LIBOBJS@%$LIBOBJS%g
12766 s%@TERMLIBS@%$TERMLIBS%g
12767 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
12768 s%@ROFF@%$ROFF%g
12769 s%@QUOTAOBJS@%$QUOTAOBJS%g
12770 s%@privatedir@%$privatedir%g
12771 s%@lockdir@%$lockdir%g
12772 s%@swatdir@%$swatdir%g
12773 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
12774 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
12775 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
12776 s%@WINBIND_PAM_PROGS@%$WINBIND_PAM_PROGS%g
12777 s%@builddir@%$builddir%g
12779 CEOF
12782 cat >> $CONFIG_STATUS <<\EOF
12784 # Split the substitutions into bite-sized pieces for seds with
12785 # small command number limits, like on Digital OSF/1 and HP-UX.
12786 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
12787 ac_file=1 # Number of current file.
12788 ac_beg=1 # First line for current file.
12789 ac_end=$ac_max_sed_cmds # Line after last line for current file.
12790 ac_more_lines=:
12791 ac_sed_cmds=""
12792 while $ac_more_lines; do
12793 if test $ac_beg -gt 1; then
12794 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
12795 else
12796 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
12798 if test ! -s conftest.s$ac_file; then
12799 ac_more_lines=false
12800 rm -f conftest.s$ac_file
12801 else
12802 if test -z "$ac_sed_cmds"; then
12803 ac_sed_cmds="sed -f conftest.s$ac_file"
12804 else
12805 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
12807 ac_file=`expr $ac_file + 1`
12808 ac_beg=$ac_end
12809 ac_end=`expr $ac_end + $ac_max_sed_cmds`
12811 done
12812 if test -z "$ac_sed_cmds"; then
12813 ac_sed_cmds=cat
12817 cat >> $CONFIG_STATUS <<EOF
12819 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
12821 cat >> $CONFIG_STATUS <<\EOF
12822 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
12823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12824 case "$ac_file" in
12825 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12826 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12827 *) ac_file_in="${ac_file}.in" ;;
12828 esac
12830 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
12832 # Remove last slash and all that follows it. Not all systems have dirname.
12833 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12834 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12835 # The file is in a subdirectory.
12836 test ! -d "$ac_dir" && mkdir "$ac_dir"
12837 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
12838 # A "../" for each directory in $ac_dir_suffix.
12839 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
12840 else
12841 ac_dir_suffix= ac_dots=
12844 case "$ac_given_srcdir" in
12845 .) srcdir=.
12846 if test -z "$ac_dots"; then top_srcdir=.
12847 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
12848 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
12849 *) # Relative path.
12850 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
12851 top_srcdir="$ac_dots$ac_given_srcdir" ;;
12852 esac
12854 case "$ac_given_INSTALL" in
12855 [/$]*) INSTALL="$ac_given_INSTALL" ;;
12856 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
12857 esac
12859 echo creating "$ac_file"
12860 rm -f "$ac_file"
12861 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
12862 case "$ac_file" in
12863 *Makefile*) ac_comsub="1i\\
12864 # $configure_input" ;;
12865 *) ac_comsub= ;;
12866 esac
12868 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12869 sed -e "$ac_comsub
12870 s%@configure_input@%$configure_input%g
12871 s%@srcdir@%$srcdir%g
12872 s%@top_srcdir@%$top_srcdir%g
12873 s%@INSTALL@%$INSTALL%g
12874 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
12875 fi; done
12876 rm -f conftest.s*
12878 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12879 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12881 # ac_d sets the value in "#define NAME VALUE" lines.
12882 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12883 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
12884 ac_dC='\3'
12885 ac_dD='%g'
12886 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12887 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12888 ac_uB='\([ ]\)%\1#\2define\3'
12889 ac_uC=' '
12890 ac_uD='\4%g'
12891 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12892 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12893 ac_eB='$%\1#\2define\3'
12894 ac_eC=' '
12895 ac_eD='%g'
12897 if test "${CONFIG_HEADERS+set}" != set; then
12899 cat >> $CONFIG_STATUS <<EOF
12900 CONFIG_HEADERS="include/config.h"
12902 cat >> $CONFIG_STATUS <<\EOF
12904 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
12905 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12906 case "$ac_file" in
12907 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
12908 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12909 *) ac_file_in="${ac_file}.in" ;;
12910 esac
12912 echo creating $ac_file
12914 rm -f conftest.frag conftest.in conftest.out
12915 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
12916 cat $ac_file_inputs > conftest.in
12920 # Transform confdefs.h into a sed script conftest.vals that substitutes
12921 # the proper values into config.h.in to produce config.h. And first:
12922 # Protect against being on the right side of a sed subst in config.status.
12923 # Protect against being in an unquoted here document in config.status.
12924 rm -f conftest.vals
12925 cat > conftest.hdr <<\EOF
12926 s/[\\&%]/\\&/g
12927 s%[\\$`]%\\&%g
12928 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
12929 s%ac_d%ac_u%gp
12930 s%ac_u%ac_e%gp
12932 sed -n -f conftest.hdr confdefs.h > conftest.vals
12933 rm -f conftest.hdr
12935 # This sed command replaces #undef with comments. This is necessary, for
12936 # example, in the case of _POSIX_SOURCE, which is predefined and required
12937 # on some systems where configure will not decide to define it.
12938 cat >> conftest.vals <<\EOF
12939 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
12942 # Break up conftest.vals because some shells have a limit on
12943 # the size of here documents, and old seds have small limits too.
12945 rm -f conftest.tail
12946 while :
12948 ac_lines=`grep -c . conftest.vals`
12949 # grep -c gives empty output for an empty file on some AIX systems.
12950 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
12951 # Write a limited-size here document to conftest.frag.
12952 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
12953 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12954 echo 'CEOF
12955 sed -f conftest.frag conftest.in > conftest.out
12956 rm -f conftest.in
12957 mv conftest.out conftest.in
12958 ' >> $CONFIG_STATUS
12959 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12960 rm -f conftest.vals
12961 mv conftest.tail conftest.vals
12962 done
12963 rm -f conftest.vals
12965 cat >> $CONFIG_STATUS <<\EOF
12966 rm -f conftest.frag conftest.h
12967 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
12968 cat conftest.in >> conftest.h
12969 rm -f conftest.in
12970 if cmp -s $ac_file conftest.h 2>/dev/null; then
12971 echo "$ac_file is unchanged"
12972 rm -f conftest.h
12973 else
12974 # Remove last slash and all that follows it. Not all systems have dirname.
12975 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
12976 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12977 # The file is in a subdirectory.
12978 test ! -d "$ac_dir" && mkdir "$ac_dir"
12980 rm -f $ac_file
12981 mv conftest.h $ac_file
12983 fi; done
12986 cat >> $CONFIG_STATUS <<EOF
12989 cat >> $CONFIG_STATUS <<\EOF
12991 exit 0
12993 chmod +x $CONFIG_STATUS
12994 rm -fr confdefs* $ac_clean_files
12995 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1