Straus VOS detection patches from Paul Green
[Samba.git] / source / configure
blobff2c5c05c803cecc31ef842f8afbac74532e0f74
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 --with-fhs Use FHS-compliant paths (default=no)"
17 ac_help="$ac_help
18 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
19 ac_help="$ac_help
20 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
21 ac_help="$ac_help
22 --with-piddir=DIR Where to put pid files ($ac_default_prefix/var/locks)"
23 ac_help="$ac_help
24 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
25 ac_help="$ac_help
26 --with-configdir=DIR Where to put configuration files (\$libdir)"
27 ac_help="$ac_help
28 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
29 ac_help="$ac_help
30 --enable-debug Turn on compiler debugging information (default=no)"
31 ac_help="$ac_help
32 --enable-developer Turn on developer warnings and debugging (default=no)"
33 ac_help="$ac_help
34 --enable-krb5developer Turn on developer warnings and debugging, except -Wstrict-prototypes (default=no)"
35 ac_help="$ac_help
36 --enable-dmalloc Enable heap debugging [default=no]"
37 ac_help="$ac_help
38 --enable-dynrpc Enable dynamic RPC modules [default=no]"
39 ac_help="$ac_help
40 --enable-cups Turn on CUPS support (default=auto)"
41 ac_help="$ac_help
42 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
43 ac_help="$ac_help
44 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
45 ac_help="$ac_help
46 --with-smbwrapper Include SMB wrapper support (default=no) "
47 ac_help="$ac_help
48 --with-afs Include AFS clear-text auth support (default=no) "
49 ac_help="$ac_help
50 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
51 ac_help="$ac_help
52 --with-ads Active Directory support (default yes)"
53 ac_help="$ac_help
54 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
55 ac_help="$ac_help
56 --with-ldap LDAP support (default yes)"
57 ac_help="$ac_help
58 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
59 ac_help="$ac_help
60 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
61 ac_help="$ac_help
62 --disable-mysqltest Do not try to compile and run a test MYSQL program"
63 ac_help="$ac_help
64 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
65 ac_help="$ac_help
66 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
67 ac_help="$ac_help
68 --disable-xmltest Do not try to compile and run a test LIBXML program"
69 ac_help="$ac_help
70 --with-automount Include automount support (default=no)"
71 ac_help="$ac_help
72 --with-smbmount Include smbmount (Linux only) support (default=no)"
73 ac_help="$ac_help
74 --with-pam Include PAM support (default=no)"
75 ac_help="$ac_help
76 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
77 ac_help="$ac_help
78 --with-sam Build new (experimental) SAM database (default=no)"
79 ac_help="$ac_help
80 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
81 ac_help="$ac_help
82 --with-tdbsam Include experimental TDB SAM support (default=no)"
83 ac_help="$ac_help
84 --with-nisplussam Include NISPLUS SAM support (default=no)"
85 ac_help="$ac_help
86 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
87 ac_help="$ac_help
88 --with-syslog Include experimental SYSLOG support (default=no)"
89 ac_help="$ac_help
90 --with-profiling-data Include gathering source code profile information (default=no)"
91 ac_help="$ac_help
92 --with-quotas Include experimental disk-quota support (default=no)"
93 ac_help="$ac_help
94 --with-utmp Include experimental utmp accounting (default=no)"
95 ac_help="$ac_help
96 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
97 ac_help="$ac_help
98 --with-libsmbclient Build the libsmbclient shared library (default=yes if shared libs supported)"
99 ac_help="$ac_help
100 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
101 ac_help="$ac_help
102 --with-acl-support Include ACL support (default=no)"
103 ac_help="$ac_help
104 --with-sendfile-support Check for sendfile support (default=yes)"
105 ac_help="$ac_help
106 --with-winbind Build winbind (default, if supported by OS)"
107 ac_help="$ac_help
108 --with-included-popt use bundled popt library, not from system"
109 ac_help="$ac_help
110 --with-python=PYTHONNAME build Python libraries"
112 # Initialize some variables set by options.
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
115 build=NONE
116 cache_file=./config.cache
117 exec_prefix=NONE
118 host=NONE
119 no_create=
120 nonopt=NONE
121 no_recursion=
122 prefix=NONE
123 program_prefix=NONE
124 program_suffix=NONE
125 program_transform_name=s,x,x,
126 silent=
127 site=
128 srcdir=
129 target=NONE
130 verbose=
131 x_includes=NONE
132 x_libraries=NONE
133 bindir='${exec_prefix}/bin'
134 sbindir='${exec_prefix}/sbin'
135 libexecdir='${exec_prefix}/libexec'
136 datadir='${prefix}/share'
137 sysconfdir='${prefix}/etc'
138 sharedstatedir='${prefix}/com'
139 localstatedir='${prefix}/var'
140 libdir='${exec_prefix}/lib'
141 includedir='${prefix}/include'
142 oldincludedir='/usr/include'
143 infodir='${prefix}/info'
144 mandir='${prefix}/man'
146 # Initialize some other variables.
147 subdirs=
148 MFLAGS= MAKEFLAGS=
149 SHELL=${CONFIG_SHELL-/bin/sh}
150 # Maximum number of lines to put in a shell here document.
151 ac_max_here_lines=12
153 ac_prev=
154 for ac_option
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
160 ac_prev=
161 continue
164 case "$ac_option" in
165 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166 *) ac_optarg= ;;
167 esac
169 # Accept the important Cygnus configure options, so we can diagnose typos.
171 case "$ac_option" in
173 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 ac_prev=bindir ;;
175 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 bindir="$ac_optarg" ;;
178 -build | --build | --buil | --bui | --bu)
179 ac_prev=build ;;
180 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
181 build="$ac_optarg" ;;
183 -cache-file | --cache-file | --cache-fil | --cache-fi \
184 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
185 ac_prev=cache_file ;;
186 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
187 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
188 cache_file="$ac_optarg" ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191 ac_prev=datadir ;;
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193 | --da=*)
194 datadir="$ac_optarg" ;;
196 -disable-* | --disable-*)
197 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
202 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
203 eval "enable_${ac_feature}=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
207 # Reject names that are not valid shell variable names.
208 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
209 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
211 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
212 case "$ac_option" in
213 *=*) ;;
214 *) ac_optarg=yes ;;
215 esac
216 eval "enable_${ac_feature}='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix="$ac_optarg" ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
229 with_gas=yes ;;
231 -help | --help | --hel | --he)
232 # Omit some internal or obsolete options to make the list less imposing.
233 # This message is too long to be a string in the A/UX 3.1 sh.
234 cat << EOF
235 Usage: configure [options] [host]
236 Options: [defaults in brackets after descriptions]
237 Configuration:
238 --cache-file=FILE cache test results in FILE
239 --help print this message
240 --no-create do not create output files
241 --quiet, --silent do not print \`checking...' messages
242 --version print the version of autoconf that created configure
243 Directory and file names:
244 --prefix=PREFIX install architecture-independent files in PREFIX
245 [$ac_default_prefix]
246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
247 [same as prefix]
248 --bindir=DIR user executables in DIR [EPREFIX/bin]
249 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
250 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
251 --datadir=DIR read-only architecture-independent data in DIR
252 [PREFIX/share]
253 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
254 --sharedstatedir=DIR modifiable architecture-independent data in DIR
255 [PREFIX/com]
256 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
257 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
258 --includedir=DIR C header files in DIR [PREFIX/include]
259 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
260 --infodir=DIR info documentation in DIR [PREFIX/info]
261 --mandir=DIR man documentation in DIR [PREFIX/man]
262 --srcdir=DIR find the sources in DIR [configure dir or ..]
263 --program-prefix=PREFIX prepend PREFIX to installed program names
264 --program-suffix=SUFFIX append SUFFIX to installed program names
265 --program-transform-name=PROGRAM
266 run sed PROGRAM on installed program names
268 cat << EOF
269 Host type:
270 --build=BUILD configure for building on BUILD [BUILD=HOST]
271 --host=HOST configure for HOST [guessed]
272 --target=TARGET configure for TARGET [TARGET=HOST]
273 Features and packages:
274 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
275 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
276 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
277 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
278 --x-includes=DIR X include files are in DIR
279 --x-libraries=DIR X library files are in DIR
281 if test -n "$ac_help"; then
282 echo "--enable and --with options recognized:$ac_help"
284 exit 0 ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host="$ac_optarg" ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir="$ac_optarg" ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 ac_prev=infodir ;;
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir="$ac_optarg" ;;
303 -libdir | --libdir | --libdi | --libd)
304 ac_prev=libdir ;;
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 libdir="$ac_optarg" ;;
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir="$ac_optarg" ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir="$ac_optarg" ;;
324 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
325 ac_prev=mandir ;;
326 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 mandir="$ac_optarg" ;;
329 -nfp | --nfp | --nf)
330 # Obsolete; use --without-fp.
331 with_fp=no ;;
333 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 | --no-cr | --no-c)
335 no_create=yes ;;
337 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
338 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
339 no_recursion=yes ;;
341 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
342 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
343 | --oldin | --oldi | --old | --ol | --o)
344 ac_prev=oldincludedir ;;
345 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
346 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
347 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
348 oldincludedir="$ac_optarg" ;;
350 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
351 ac_prev=prefix ;;
352 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
353 prefix="$ac_optarg" ;;
355 -program-prefix | --program-prefix | --program-prefi | --program-pref \
356 | --program-pre | --program-pr | --program-p)
357 ac_prev=program_prefix ;;
358 -program-prefix=* | --program-prefix=* | --program-prefi=* \
359 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
360 program_prefix="$ac_optarg" ;;
362 -program-suffix | --program-suffix | --program-suffi | --program-suff \
363 | --program-suf | --program-su | --program-s)
364 ac_prev=program_suffix ;;
365 -program-suffix=* | --program-suffix=* | --program-suffi=* \
366 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
367 program_suffix="$ac_optarg" ;;
369 -program-transform-name | --program-transform-name \
370 | --program-transform-nam | --program-transform-na \
371 | --program-transform-n | --program-transform- \
372 | --program-transform | --program-transfor \
373 | --program-transfo | --program-transf \
374 | --program-trans | --program-tran \
375 | --progr-tra | --program-tr | --program-t)
376 ac_prev=program_transform_name ;;
377 -program-transform-name=* | --program-transform-name=* \
378 | --program-transform-nam=* | --program-transform-na=* \
379 | --program-transform-n=* | --program-transform-=* \
380 | --program-transform=* | --program-transfor=* \
381 | --program-transfo=* | --program-transf=* \
382 | --program-trans=* | --program-tran=* \
383 | --progr-tra=* | --program-tr=* | --program-t=*)
384 program_transform_name="$ac_optarg" ;;
386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
387 | -silent | --silent | --silen | --sile | --sil)
388 silent=yes ;;
390 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
391 ac_prev=sbindir ;;
392 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
393 | --sbi=* | --sb=*)
394 sbindir="$ac_optarg" ;;
396 -sharedstatedir | --sharedstatedir | --sharedstatedi \
397 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
398 | --sharedst | --shareds | --shared | --share | --shar \
399 | --sha | --sh)
400 ac_prev=sharedstatedir ;;
401 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
402 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
403 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
404 | --sha=* | --sh=*)
405 sharedstatedir="$ac_optarg" ;;
407 -site | --site | --sit)
408 ac_prev=site ;;
409 -site=* | --site=* | --sit=*)
410 site="$ac_optarg" ;;
412 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
413 ac_prev=srcdir ;;
414 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
415 srcdir="$ac_optarg" ;;
417 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
418 | --syscon | --sysco | --sysc | --sys | --sy)
419 ac_prev=sysconfdir ;;
420 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
421 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
422 sysconfdir="$ac_optarg" ;;
424 -target | --target | --targe | --targ | --tar | --ta | --t)
425 ac_prev=target ;;
426 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
427 target="$ac_optarg" ;;
429 -v | -verbose | --verbose | --verbos | --verbo | --verb)
430 verbose=yes ;;
432 -version | --version | --versio | --versi | --vers)
433 echo "configure generated by autoconf version 2.13"
434 exit 0 ;;
436 -with-* | --with-*)
437 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
438 # Reject names that are not valid shell variable names.
439 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
440 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
442 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 case "$ac_option" in
444 *=*) ;;
445 *) ac_optarg=yes ;;
446 esac
447 eval "with_${ac_package}='$ac_optarg'" ;;
449 -without-* | --without-*)
450 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
451 # Reject names that are not valid shell variable names.
452 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
453 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
455 ac_package=`echo $ac_package| sed 's/-/_/g'`
456 eval "with_${ac_package}=no" ;;
458 --x)
459 # Obsolete; use --with-x.
460 with_x=yes ;;
462 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
463 | --x-incl | --x-inc | --x-in | --x-i)
464 ac_prev=x_includes ;;
465 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
466 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
467 x_includes="$ac_optarg" ;;
469 -x-libraries | --x-libraries | --x-librarie | --x-librari \
470 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
471 ac_prev=x_libraries ;;
472 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
473 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
474 x_libraries="$ac_optarg" ;;
476 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
480 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
481 echo "configure: warning: $ac_option: invalid host type" 1>&2
483 if test "x$nonopt" != xNONE; then
484 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
486 nonopt="$ac_option"
489 esac
490 done
492 if test -n "$ac_prev"; then
493 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
496 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
498 # File descriptor usage:
499 # 0 standard input
500 # 1 file creation
501 # 2 errors and warnings
502 # 3 some systems may open it to /dev/tty
503 # 4 used on the Kubota Titan
504 # 6 checking for... messages and results
505 # 5 compiler messages saved in config.log
506 if test "$silent" = yes; then
507 exec 6>/dev/null
508 else
509 exec 6>&1
511 exec 5>./config.log
513 echo "\
514 This file contains any messages produced by compilers while
515 running configure, to aid debugging if configure makes a mistake.
516 " 1>&5
518 # Strip out --no-create and --no-recursion so they do not pile up.
519 # Also quote any args containing shell metacharacters.
520 ac_configure_args=
521 for ac_arg
523 case "$ac_arg" in
524 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
525 | --no-cr | --no-c) ;;
526 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
527 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
528 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
529 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
530 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
531 esac
532 done
534 # NLS nuisances.
535 # Only set these to C if already set. These must not be set unconditionally
536 # because not all systems understand e.g. LANG=C (notably SCO).
537 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
538 # Non-C LC_CTYPE values break the ctype check.
539 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
540 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
541 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
542 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
544 # confdefs.h avoids OS command line length limits that DEFS can exceed.
545 rm -rf conftest* confdefs.h
546 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
547 echo > confdefs.h
549 # A filename unique to this package, relative to the directory that
550 # configure is in, which we can look for to find out if srcdir is correct.
551 ac_unique_file=include/includes.h
553 # Find the source files, if location was not specified.
554 if test -z "$srcdir"; then
555 ac_srcdir_defaulted=yes
556 # Try the directory containing this script, then its parent.
557 ac_prog=$0
558 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
559 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
560 srcdir=$ac_confdir
561 if test ! -r $srcdir/$ac_unique_file; then
562 srcdir=..
564 else
565 ac_srcdir_defaulted=no
567 if test ! -r $srcdir/$ac_unique_file; then
568 if test "$ac_srcdir_defaulted" = yes; then
569 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
570 else
571 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
574 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
576 # Prefer explicitly selected file to automatically selected ones.
577 if test -z "$CONFIG_SITE"; then
578 if test "x$prefix" != xNONE; then
579 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
580 else
581 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
584 for ac_site_file in $CONFIG_SITE; do
585 if test -r "$ac_site_file"; then
586 echo "loading site script $ac_site_file"
587 . "$ac_site_file"
589 done
591 if test -r "$cache_file"; then
592 echo "loading cache $cache_file"
593 . $cache_file
594 else
595 echo "creating cache $cache_file"
596 > $cache_file
599 ac_ext=c
600 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
601 ac_cpp='$CPP $CPPFLAGS'
602 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
603 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
604 cross_compiling=$ac_cv_prog_cc_cross
606 ac_exeext=
607 ac_objext=o
608 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
609 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
610 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
611 ac_n= ac_c='
612 ' ac_t=' '
613 else
614 ac_n=-n ac_c= ac_t=
616 else
617 ac_n= ac_c='\c' ac_t=
623 #################################################
624 # Directory handling stuff to support both the
625 # legacy SAMBA directories and FHS compliant
626 # ones...
629 # Check whether --with-fhs or --without-fhs was given.
630 if test "${with_fhs+set}" = set; then
631 withval="$with_fhs"
632 configdir="${sysconfdir}/samba"
633 lockdir="\${VARDIR}/cache/samba"
634 piddir="\${VARDIR}/run/samba"
635 logfilebase="\${VARDIR}/log/samba"
636 privatedir="\${CONFIGDIR}/private"
637 libdir="\${prefix}/lib/samba"
638 swatdir="\${DATADIR}/samba/swat"
639 else
640 configdir="\${LIBDIR}"
641 logfilebase="\${VARDIR}"
642 lockdir="\${VARDIR}/locks"
643 piddir="\${VARDIR}/locks"
644 privatedir="\${prefix}/private"
645 swatdir="\${prefix}/swat"
649 #################################################
650 # set private directory location
651 # Check whether --with-privatedir or --without-privatedir was given.
652 if test "${with_privatedir+set}" = set; then
653 withval="$with_privatedir"
654 case "$withval" in
655 yes|no)
657 # Just in case anybody calls it without argument
659 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
662 privatedir="$withval"
664 esac
668 #################################################
669 # set lock directory location
670 # Check whether --with-lockdir or --without-lockdir was given.
671 if test "${with_lockdir+set}" = set; then
672 withval="$with_lockdir"
673 case "$withval" in
674 yes|no)
676 # Just in case anybody calls it without argument
678 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
681 lockdir="$withval"
683 esac
687 #################################################
688 # set pid directory location
689 # Check whether --with-piddir or --without-piddir was given.
690 if test "${with_piddir+set}" = set; then
691 withval="$with_piddir"
692 case "$withval" in
693 yes|no)
695 # Just in case anybody calls it without argument
697 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
700 piddir="$withval"
702 esac
706 #################################################
707 # set SWAT directory location
708 # Check whether --with-swatdir or --without-swatdir was given.
709 if test "${with_swatdir+set}" = set; then
710 withval="$with_swatdir"
711 case "$withval" in
712 yes|no)
714 # Just in case anybody does it
716 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
719 swatdir="$withval"
721 esac
725 #################################################
726 # set configuration directory location
727 # Check whether --with-configdir or --without-configdir was given.
728 if test "${with_configdir+set}" = set; then
729 withval="$with_configdir"
730 case "$withval" in
731 yes|no)
733 # Just in case anybody does it
735 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
738 configdir="$withval"
740 esac
744 #################################################
745 # set log directory location
746 # Check whether --with-logfilebase or --without-logfilebase was given.
747 if test "${with_logfilebase+set}" = set; then
748 withval="$with_logfilebase"
749 case "$withval" in
750 yes|no)
752 # Just in case anybody does it
754 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
757 logfilebase="$withval"
759 esac
794 LSA_DYNAMIC_YES="#"
795 LSA_DYNAMIC_NO=
798 NETLOG_DYNAMIC_YES="#"
799 NETLOG_DYNAMIC_NO=
802 SAMR_DYNAMIC_YES="#"
803 SAMR_DYNAMIC_NO=
806 SVC_DYNAMIC_YES="#"
807 SVC_DYNAMIC_NO=
810 WKS_DYNAMIC_YES="#"
811 WKS_DYNAMIC_NO=
814 REG_DYNAMIC_YES="#"
815 REG_DYNAMIC_NO=
818 SPOOLSS_DYNAMIC_YES="#"
819 SPOOLSS_DYNAMIC_NO=
822 DFS_DYNAMIC_YES="#"
823 DFS_DYNAMIC_NO=
825 # compile with optimization and without debugging by default
826 CFLAGS="-O ${CFLAGS}"
828 # Check whether --enable-debug or --disable-debug was given.
829 if test "${enable_debug+set}" = set; then
830 enableval="$enable_debug"
831 if eval "test x$enable_debug = xyes"; then
832 CFLAGS="${CFLAGS} -g"
837 # Check whether --enable-developer or --disable-developer was given.
838 if test "${enable_developer+set}" = set; then
839 enableval="$enable_developer"
840 if eval "test x$enable_developer = xyes"; then
841 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
846 # Check whether --enable-krb5developer or --disable-krb5developer was given.
847 if test "${enable_krb5developer+set}" = set; then
848 enableval="$enable_krb5developer"
849 if eval "test x$enable_krb5developer = xyes"; then
850 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
855 # Check whether --enable-dmalloc or --disable-dmalloc was given.
856 if test "${enable_dmalloc+set}" = set; then
857 enableval="$enable_dmalloc"
862 if test "x$enable_dmalloc" = xyes
863 then
864 cat >> confdefs.h <<\EOF
865 #define ENABLE_DMALLOC 1
868 cat >> confdefs.h <<\EOF
869 #define DMALLOC_FUNC_CHECK 1
872 LIBS="$LIBS -ldmalloc"
875 # Check whether --enable-dynrpc or --disable-dynrpc was given.
876 if test "${enable_dynrpc+set}" = set; then
877 enableval="$enable_dynrpc"
882 if test x$enable_dynrpc = xyes
883 then
884 enable_dynrpc=lsa,samr,reg,wks,netlog,dfs
887 if test x$enable_dynrpc != xno
888 then
889 for i in `echo $enable_dynrpc | sed -e's/,/ /g'`
890 do case $i in lsa)
891 LSA_DYNAMIC_YES=
892 LSA_DYNAMIC_NO="#"
893 cat >> confdefs.h <<\EOF
894 #define RPC_LSA_DYNAMIC 1
897 ;; samr)
898 SAMR_DYNAMIC_YES=
899 SAMR_DYNAMIC_NO="#"
900 cat >> confdefs.h <<\EOF
901 #define RPC_SAMR_DYNAMIC 1
904 ;; svc)
905 SVC_DYNAMIC_YES=
906 SVC_DYNAMIC_NO="#"
907 cat >> confdefs.h <<\EOF
908 #define RPC_SVC_DYNAMIC 1
911 ;; wks)
912 WKS_DYNAMIC_YES=
913 WKS_DYNAMIC_NO="#"
914 cat >> confdefs.h <<\EOF
915 #define RPC_WKS_DYNAMIC 1
918 ;; netlog)
919 NETLOG_DYNAMIC_YES=
920 NETLOG_DYNAMIC_NO="#"
921 cat >> confdefs.h <<\EOF
922 #define RPC_NETLOG_DYNAMIC 1
925 ;; reg)
926 REG_DYNAMIC_YES=
927 REG_DYNAMIC_NO="#"
928 cat >> confdefs.h <<\EOF
929 #define RPC_REG_DYNAMIC 1
932 ;; spoolss)
933 SPOOLSS_DYNAMIC_YES=
934 SPOOLSS_DYNAMIC_NO="#"
935 cat >> confdefs.h <<\EOF
936 #define RPC_SPOOLSS_DYNAMIC 1
939 ;; dfs)
940 DFS_DYNAMIC_YES=
941 DFS_DYNAMIC_NO="#"
942 cat >> confdefs.h <<\EOF
943 #define RPC_DFS_DYNAMIC 1
946 ;; esac
947 done
950 # Extract the first word of "gcc", so it can be a program name with args.
951 set dummy gcc; ac_word=$2
952 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
953 echo "configure:954: checking for $ac_word" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
956 else
957 if test -n "$CC"; then
958 ac_cv_prog_CC="$CC" # Let the user override the test.
959 else
960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
961 ac_dummy="$PATH"
962 for ac_dir in $ac_dummy; do
963 test -z "$ac_dir" && ac_dir=.
964 if test -f $ac_dir/$ac_word; then
965 ac_cv_prog_CC="gcc"
966 break
968 done
969 IFS="$ac_save_ifs"
972 CC="$ac_cv_prog_CC"
973 if test -n "$CC"; then
974 echo "$ac_t""$CC" 1>&6
975 else
976 echo "$ac_t""no" 1>&6
979 if test -z "$CC"; then
980 # Extract the first word of "cc", so it can be a program name with args.
981 set dummy cc; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
986 else
987 if test -n "$CC"; then
988 ac_cv_prog_CC="$CC" # Let the user override the test.
989 else
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
991 ac_prog_rejected=no
992 ac_dummy="$PATH"
993 for ac_dir in $ac_dummy; do
994 test -z "$ac_dir" && ac_dir=.
995 if test -f $ac_dir/$ac_word; then
996 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
997 ac_prog_rejected=yes
998 continue
1000 ac_cv_prog_CC="cc"
1001 break
1003 done
1004 IFS="$ac_save_ifs"
1005 if test $ac_prog_rejected = yes; then
1006 # We found a bogon in the path, so make sure we never use it.
1007 set dummy $ac_cv_prog_CC
1008 shift
1009 if test $# -gt 0; then
1010 # We chose a different compiler from the bogus one.
1011 # However, it has the same basename, so the bogon will be chosen
1012 # first if we set CC to just the basename; use the full file name.
1013 shift
1014 set dummy "$ac_dir/$ac_word" "$@"
1015 shift
1016 ac_cv_prog_CC="$@"
1021 CC="$ac_cv_prog_CC"
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1024 else
1025 echo "$ac_t""no" 1>&6
1028 if test -z "$CC"; then
1029 case "`uname -s`" in
1030 *win32* | *WIN32*)
1031 # Extract the first word of "cl", so it can be a program name with args.
1032 set dummy cl; ac_word=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1037 else
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC="$CC" # Let the user override the test.
1040 else
1041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1042 ac_dummy="$PATH"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_CC="cl"
1047 break
1049 done
1050 IFS="$ac_save_ifs"
1053 CC="$ac_cv_prog_CC"
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1056 else
1057 echo "$ac_t""no" 1>&6
1060 esac
1062 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1065 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1066 echo "configure:1067: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1068 ac_ext=c
1069 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1070 ac_cpp='$CPP $CPPFLAGS'
1071 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1072 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1073 cross_compiling=$ac_cv_prog_cc_cross
1075 cat > conftest.$ac_ext << EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1080 main(){return(0);}
1082 if { (eval echo configure:1083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1083 ac_cv_prog_cc_works=yes
1084 # If we can't run a trivial program, we are probably using a cross compiler.
1085 if (./conftest; exit) 2>/dev/null; then
1086 ac_cv_prog_cc_cross=no
1087 else
1088 ac_cv_prog_cc_cross=yes
1090 else
1091 echo "configure: failed program was:" >&5
1092 cat conftest.$ac_ext >&5
1093 ac_cv_prog_cc_works=no
1095 rm -fr conftest*
1096 ac_ext=c
1097 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1098 ac_cpp='$CPP $CPPFLAGS'
1099 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1100 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1101 cross_compiling=$ac_cv_prog_cc_cross
1103 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1104 if test $ac_cv_prog_cc_works = no; then
1105 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1107 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1108 echo "configure:1109: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1109 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1110 cross_compiling=$ac_cv_prog_cc_cross
1112 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether we are using GNU C" >&5
1114 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1116 else
1117 cat > conftest.c <<EOF
1118 #ifdef __GNUC__
1119 yes;
1120 #endif
1122 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1123 ac_cv_prog_gcc=yes
1124 else
1125 ac_cv_prog_gcc=no
1129 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1131 if test $ac_cv_prog_gcc = yes; then
1132 GCC=yes
1133 else
1134 GCC=
1137 ac_test_CFLAGS="${CFLAGS+set}"
1138 ac_save_CFLAGS="$CFLAGS"
1139 CFLAGS=
1140 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1141 echo "configure:1142: checking whether ${CC-cc} accepts -g" >&5
1142 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1144 else
1145 echo 'void f(){}' > conftest.c
1146 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1147 ac_cv_prog_cc_g=yes
1148 else
1149 ac_cv_prog_cc_g=no
1151 rm -f conftest*
1155 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1156 if test "$ac_test_CFLAGS" = set; then
1157 CFLAGS="$ac_save_CFLAGS"
1158 elif test $ac_cv_prog_cc_g = yes; then
1159 if test "$GCC" = yes; then
1160 CFLAGS="-g -O2"
1161 else
1162 CFLAGS="-g"
1164 else
1165 if test "$GCC" = yes; then
1166 CFLAGS="-O2"
1167 else
1168 CFLAGS=
1172 ac_aux_dir=
1173 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1174 if test -f $ac_dir/install-sh; then
1175 ac_aux_dir=$ac_dir
1176 ac_install_sh="$ac_aux_dir/install-sh -c"
1177 break
1178 elif test -f $ac_dir/install.sh; then
1179 ac_aux_dir=$ac_dir
1180 ac_install_sh="$ac_aux_dir/install.sh -c"
1181 break
1183 done
1184 if test -z "$ac_aux_dir"; then
1185 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1187 ac_config_guess=$ac_aux_dir/config.guess
1188 ac_config_sub=$ac_aux_dir/config.sub
1189 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1191 # Find a good install program. We prefer a C program (faster),
1192 # so one script is as good as another. But avoid the broken or
1193 # incompatible versions:
1194 # SysV /etc/install, /usr/sbin/install
1195 # SunOS /usr/etc/install
1196 # IRIX /sbin/install
1197 # AIX /bin/install
1198 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1199 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1200 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1201 # ./install, which can be erroneously created by make from ./install.sh.
1202 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1203 echo "configure:1204: checking for a BSD compatible install" >&5
1204 if test -z "$INSTALL"; then
1205 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1207 else
1208 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1209 for ac_dir in $PATH; do
1210 # Account for people who put trailing slashes in PATH elements.
1211 case "$ac_dir/" in
1212 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1214 # OSF1 and SCO ODT 3.0 have their own names for install.
1215 # Don't use installbsd from OSF since it installs stuff as root
1216 # by default.
1217 for ac_prog in ginstall scoinst install; do
1218 if test -f $ac_dir/$ac_prog; then
1219 if test $ac_prog = install &&
1220 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1221 # AIX install. It has an incompatible calling convention.
1223 else
1224 ac_cv_path_install="$ac_dir/$ac_prog -c"
1225 break 2
1228 done
1230 esac
1231 done
1232 IFS="$ac_save_IFS"
1235 if test "${ac_cv_path_install+set}" = set; then
1236 INSTALL="$ac_cv_path_install"
1237 else
1238 # As a last resort, use the slow shell script. We don't cache a
1239 # path for INSTALL within a source directory, because that will
1240 # break other packages using the cache if that directory is
1241 # removed, or if the path is relative.
1242 INSTALL="$ac_install_sh"
1245 echo "$ac_t""$INSTALL" 1>&6
1247 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1248 # It thinks the first close brace ends the variable substitution.
1249 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1251 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1253 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1255 for ac_prog in gawk mawk nawk awk
1257 # Extract the first word of "$ac_prog", so it can be a program name with args.
1258 set dummy $ac_prog; ac_word=$2
1259 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1260 echo "configure:1261: checking for $ac_word" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1263 else
1264 if test -n "$AWK"; then
1265 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1266 else
1267 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1268 ac_dummy="$PATH"
1269 for ac_dir in $ac_dummy; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_AWK="$ac_prog"
1273 break
1275 done
1276 IFS="$ac_save_ifs"
1279 AWK="$ac_cv_prog_AWK"
1280 if test -n "$AWK"; then
1281 echo "$ac_t""$AWK" 1>&6
1282 else
1283 echo "$ac_t""no" 1>&6
1286 test -n "$AWK" && break
1287 done
1290 LD=ld
1291 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1292 echo "configure:1293: checking if the linker ($LD) is GNU ld" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1295 else
1296 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1297 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1298 ac_cv_prog_gnu_ld=yes
1299 else
1300 ac_cv_prog_gnu_ld=no
1304 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1307 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1308 echo "configure:1309: checking for POSIXized ISC" >&5
1309 if test -d /etc/conf/kconfig.d &&
1310 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1311 then
1312 echo "$ac_t""yes" 1>&6
1313 ISC=yes # If later tests want to check for ISC.
1314 cat >> confdefs.h <<\EOF
1315 #define _POSIX_SOURCE 1
1318 if test "$GCC" = yes; then
1319 CC="$CC -posix"
1320 else
1321 CC="$CC -Xp"
1323 else
1324 echo "$ac_t""no" 1>&6
1325 ISC=
1329 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1330 echo "configure:1331: checking for Cygwin environment" >&5
1331 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1338 int main() {
1340 #ifndef __CYGWIN__
1341 #define __CYGWIN__ __CYGWIN32__
1342 #endif
1343 return __CYGWIN__;
1344 ; return 0; }
1346 if { (eval echo configure:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1347 rm -rf conftest*
1348 ac_cv_cygwin=yes
1349 else
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1352 rm -rf conftest*
1353 ac_cv_cygwin=no
1355 rm -f conftest*
1356 rm -f conftest*
1359 echo "$ac_t""$ac_cv_cygwin" 1>&6
1360 CYGWIN=
1361 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1362 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1363 echo "configure:1364: checking for mingw32 environment" >&5
1364 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1365 echo $ac_n "(cached) $ac_c" 1>&6
1366 else
1367 cat > conftest.$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1371 int main() {
1372 return __MINGW32__;
1373 ; return 0; }
1375 if { (eval echo configure:1376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1376 rm -rf conftest*
1377 ac_cv_mingw32=yes
1378 else
1379 echo "configure: failed program was:" >&5
1380 cat conftest.$ac_ext >&5
1381 rm -rf conftest*
1382 ac_cv_mingw32=no
1384 rm -f conftest*
1385 rm -f conftest*
1388 echo "$ac_t""$ac_cv_mingw32" 1>&6
1389 MINGW32=
1390 test "$ac_cv_mingw32" = yes && MINGW32=yes
1393 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1394 echo "configure:1395: checking for executable suffix" >&5
1395 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1397 else
1398 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1399 ac_cv_exeext=.exe
1400 else
1401 rm -f conftest*
1402 echo 'int main () { return 0; }' > conftest.$ac_ext
1403 ac_cv_exeext=
1404 if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1405 for file in conftest.*; do
1406 case $file in
1407 *.c | *.o | *.obj) ;;
1408 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1409 esac
1410 done
1411 else
1412 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1414 rm -f conftest*
1415 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1419 EXEEXT=""
1420 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1421 echo "$ac_t""${ac_cv_exeext}" 1>&6
1422 ac_exeext=$EXEEXT
1425 if test "x$CC" != xcc; then
1426 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether $CC and cc understand -c and -o together" >&5
1428 else
1429 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1430 echo "configure:1431: checking whether cc understands -c and -o together" >&5
1432 set dummy $CC; ac_cc="`echo $2 |
1433 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1434 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1436 else
1437 echo 'foo(){}' > conftest.c
1438 # Make sure it works both with $CC and with simple cc.
1439 # We do the test twice because some compilers refuse to overwrite an
1440 # existing .o file with -o, though they will create one.
1441 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1442 if { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1443 test -f conftest.o && { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1444 then
1445 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1446 if test "x$CC" != xcc; then
1447 # Test first that cc exists at all.
1448 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1449 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1450 if { (eval echo configure:1451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1451 test -f conftest.o && { (eval echo configure:1452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1452 then
1453 # cc works too.
1455 else
1456 # cc exists but doesn't like -o.
1457 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1461 else
1462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1464 rm -f conftest*
1467 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1468 echo "$ac_t""yes" 1>&6
1469 else
1470 echo "$ac_t""no" 1>&6
1471 cat >> confdefs.h <<\EOF
1472 #define NO_MINUS_C_MINUS_O 1
1477 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1478 BROKEN_CC=
1479 else
1480 BROKEN_CC=#
1484 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1485 echo "configure:1486: checking that the C compiler understands volatile" >&5
1486 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1490 cat > conftest.$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 #include <sys/types.h>
1494 int main() {
1495 volatile int i = 0
1496 ; return 0; }
1498 if { (eval echo configure:1499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1499 rm -rf conftest*
1500 samba_cv_volatile=yes
1501 else
1502 echo "configure: failed program was:" >&5
1503 cat conftest.$ac_ext >&5
1504 rm -rf conftest*
1505 samba_cv_volatile=no
1507 rm -f conftest*
1510 echo "$ac_t""$samba_cv_volatile" 1>&6
1511 if test x"$samba_cv_volatile" = x"yes"; then
1512 cat >> confdefs.h <<\EOF
1513 #define HAVE_VOLATILE 1
1520 # Do some error checking and defaulting for the host and target type.
1521 # The inputs are:
1522 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1524 # The rules are:
1525 # 1. You are not allowed to specify --host, --target, and nonopt at the
1526 # same time.
1527 # 2. Host defaults to nonopt.
1528 # 3. If nonopt is not specified, then host defaults to the current host,
1529 # as determined by config.guess.
1530 # 4. Target and build default to nonopt.
1531 # 5. If nonopt is not specified, then target and build default to host.
1533 # The aliases save the names the user supplied, while $host etc.
1534 # will get canonicalized.
1535 case $host---$target---$nonopt in
1536 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1537 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1538 esac
1541 # Make sure we can run config.sub.
1542 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1543 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1546 echo $ac_n "checking host system type""... $ac_c" 1>&6
1547 echo "configure:1548: checking host system type" >&5
1549 host_alias=$host
1550 case "$host_alias" in
1551 NONE)
1552 case $nonopt in
1553 NONE)
1554 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1555 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1556 fi ;;
1557 *) host_alias=$nonopt ;;
1558 esac ;;
1559 esac
1561 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1562 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1563 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1564 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1565 echo "$ac_t""$host" 1>&6
1567 echo $ac_n "checking target system type""... $ac_c" 1>&6
1568 echo "configure:1569: checking target system type" >&5
1570 target_alias=$target
1571 case "$target_alias" in
1572 NONE)
1573 case $nonopt in
1574 NONE) target_alias=$host_alias ;;
1575 *) target_alias=$nonopt ;;
1576 esac ;;
1577 esac
1579 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1580 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583 echo "$ac_t""$target" 1>&6
1585 echo $ac_n "checking build system type""... $ac_c" 1>&6
1586 echo "configure:1587: checking build system type" >&5
1588 build_alias=$build
1589 case "$build_alias" in
1590 NONE)
1591 case $nonopt in
1592 NONE) build_alias=$host_alias ;;
1593 *) build_alias=$nonopt ;;
1594 esac ;;
1595 esac
1597 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1598 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1599 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1600 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$ac_t""$build" 1>&6
1603 test "$host_alias" != "$target_alias" &&
1604 test "$program_prefix$program_suffix$program_transform_name" = \
1605 NONENONEs,x,x, &&
1606 program_prefix=${target_alias}-
1609 case "$host_os" in
1610 *irix6*) cat >> confdefs.h <<\EOF
1611 #include <standards.h>
1615 esac
1619 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1620 echo "configure:1621: checking config.cache system type" >&5
1621 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1622 test x"$ac_cv_host_system_type" != x"$host"; } ||
1623 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1624 test x"$ac_cv_build_system_type" != x"$build"; } ||
1625 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1626 test x"$ac_cv_target_system_type" != x"$target"; }; then
1627 echo "$ac_t""different" 1>&6
1628 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1629 else
1630 echo "$ac_t""same" 1>&6
1632 ac_cv_host_system_type="$host"
1633 ac_cv_build_system_type="$build"
1634 ac_cv_target_system_type="$target"
1637 DYNEXP=
1640 # Config CPPFLAG settings for strange OS's that must be set
1641 # before other tests.
1643 case "$host_os" in
1644 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1645 *hpux*)
1647 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1648 echo "configure:1649: checking whether ${CC-cc} accepts -Ae" >&5
1649 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1650 echo $ac_n "(cached) $ac_c" 1>&6
1651 else
1652 echo 'void f(){}' > conftest.c
1653 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1654 ac_cv_prog_cc_Ae=yes
1655 else
1656 ac_cv_prog_cc_Ae=no
1658 rm -f conftest*
1662 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1663 # mmap on HPUX is completely broken...
1664 cat >> confdefs.h <<\EOF
1665 #define MMAP_BLACKLIST 1
1668 if test $ac_cv_prog_cc_Ae = yes; then
1669 CPPFLAGS="$CPPFLAGS -Ae"
1672 # Defines needed for HPUX support.
1673 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1674 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1676 case `uname -r` in
1677 *9*|*10*)
1678 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1679 cat >> confdefs.h <<\EOF
1680 #define USE_BOTH_CRYPT_CALLS 1
1683 cat >> confdefs.h <<\EOF
1684 #define _HPUX_SOURCE 1
1687 cat >> confdefs.h <<\EOF
1688 #define _POSIX_SOURCE 1
1691 cat >> confdefs.h <<\EOF
1692 #define _ALIGNMENT_REQUIRED 1
1695 cat >> confdefs.h <<\EOF
1696 #define _MAX_ALIGNMENT 4
1700 *11*)
1701 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1702 cat >> confdefs.h <<\EOF
1703 #define USE_BOTH_CRYPT_CALLS 1
1706 cat >> confdefs.h <<\EOF
1707 #define _HPUX_SOURCE 1
1710 cat >> confdefs.h <<\EOF
1711 #define _POSIX_SOURCE 1
1714 cat >> confdefs.h <<\EOF
1715 #define _LARGEFILE64_SOURCE 1
1718 cat >> confdefs.h <<\EOF
1719 #define _ALIGNMENT_REQUIRED 1
1722 cat >> confdefs.h <<\EOF
1723 #define _MAX_ALIGNMENT 4
1727 esac
1728 DYNEXP="-Wl,-E"
1732 # CRAY Unicos has broken const handling
1733 *unicos*)
1734 echo "$ac_t""disabling const" 1>&6
1735 CPPFLAGS="$CPPFLAGS -Dconst="
1739 # AIX4.x doesn't even admit to having large
1740 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1742 *aix4*)
1743 echo "$ac_t""enabling large file support" 1>&6
1744 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1745 cat >> confdefs.h <<\EOF
1746 #define _LARGE_FILES 1
1751 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1752 # to the existance of large files..
1753 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1754 # recommendations on large file support, however it makes the
1755 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1756 # recommendation makes the compile fail on gcc2.7. JRA.
1758 *solaris*)
1759 case `uname -r` in
1760 5.0*|5.1*|5.2*|5.3*|5.5*)
1761 echo "$ac_t""no large file support" 1>&6
1763 5.*)
1764 echo "$ac_t""enabling large file support" 1>&6
1765 if test "$ac_cv_prog_gcc" = yes; then
1766 ${CC-cc} -v >conftest.c 2>&1
1767 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1768 rm -fr conftest.c
1769 case "$ac_cv_gcc_compiler_version_number" in
1770 *"gcc version 2.6"*|*"gcc version 2.7"*)
1771 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1772 cat >> confdefs.h <<\EOF
1773 #define _LARGEFILE64_SOURCE 1
1778 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1779 cat >> confdefs.h <<\EOF
1780 #define _LARGEFILE64_SOURCE 1
1783 cat >> confdefs.h <<\EOF
1784 #define _FILE_OFFSET_BITS 64
1788 esac
1789 else
1790 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1791 cat >> confdefs.h <<\EOF
1792 #define _LARGEFILE64_SOURCE 1
1795 cat >> confdefs.h <<\EOF
1796 #define _FILE_OFFSET_BITS 64
1801 esac
1804 # VOS may need to have POSIX support and System V compatibility enabled.
1806 *vos*)
1807 case "$CPPFLAGS" in
1808 *-D_POSIX_C_SOURCE*)
1811 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=199506L"
1812 cat >> confdefs.h <<\EOF
1813 #define _POSIX_C_SOURCE 199506L
1817 esac
1818 case "$CPPFLAGS" in
1819 *-D_SYSV*|*-D_SVID_SOURCE*)
1822 CPPFLAGS="$CPPFLAGS -D_SYSV"
1823 cat >> confdefs.h <<\EOF
1824 #define _SYSV 1
1827 esac
1830 # Tests needed for SINIX large file support.
1832 *sysv4*)
1833 if test $host = mips-sni-sysv4 ; then
1834 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1835 echo "configure:1836: checking for LFS support" >&5
1836 old_CPPFLAGS="$CPPFLAGS"
1837 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1838 if test "$cross_compiling" = yes; then
1839 SINIX_LFS_SUPPORT=cross
1840 else
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1845 #include <unistd.h>
1846 main () {
1847 #if _LFS64_LARGEFILE == 1
1848 exit(0);
1849 #else
1850 exit(1);
1851 #endif
1854 if { (eval echo configure:1855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1855 then
1856 SINIX_LFS_SUPPORT=yes
1857 else
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -fr conftest*
1861 SINIX_LFS_SUPPORT=no
1863 rm -fr conftest*
1866 CPPFLAGS="$old_CPPFLAGS"
1867 if test x$SINIX_LFS_SUPPORT = xyes ; then
1868 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1869 cat >> confdefs.h <<\EOF
1870 #define _LARGEFILE64_SOURCE 1
1873 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1874 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1875 LIBS="`getconf LFS64_LIBS` $LIBS"
1877 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1881 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1883 *linux*)
1884 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1885 echo "configure:1886: checking for LFS support" >&5
1886 old_CPPFLAGS="$CPPFLAGS"
1887 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1888 if test "$cross_compiling" = yes; then
1889 LINUX_LFS_SUPPORT=cross
1890 else
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1895 #include <unistd.h>
1896 #include <sys/utsname.h>
1897 main() {
1898 #if _LFS64_LARGEFILE == 1
1899 struct utsname uts;
1900 char *release;
1901 int major, minor;
1903 /* Ensure this is glibc 2.2 or higher */
1904 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1905 int libc_major = __GLIBC__;
1906 int libc_minor = __GLIBC_MINOR__;
1908 if (libc_major < 2)
1909 exit(1);
1910 if (libc_minor < 2)
1911 exit(1);
1912 #endif
1914 /* Ensure this is kernel 2.4 or higher */
1916 uname(&uts);
1917 release = uts.release;
1918 major = atoi(strsep(&release, "."));
1919 minor = atoi(strsep(&release, "."));
1921 if (major > 2 || (major == 2 && minor > 3))
1922 exit(0);
1923 exit(1);
1924 #else
1925 exit(1);
1926 #endif
1930 if { (eval echo configure:1931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1931 then
1932 LINUX_LFS_SUPPORT=yes
1933 else
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936 rm -fr conftest*
1937 LINUX_LFS_SUPPORT=no
1939 rm -fr conftest*
1942 CPPFLAGS="$old_CPPFLAGS"
1943 if test x$LINUX_LFS_SUPPORT = xyes ; then
1944 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1945 cat >> confdefs.h <<\EOF
1946 #define _LARGEFILE64_SOURCE 1
1949 cat >> confdefs.h <<\EOF
1950 #define _FILE_OFFSET_BITS 64
1953 cat >> confdefs.h <<\EOF
1954 #define _GNU_SOURCE 1
1958 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1961 *hurd*)
1962 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1963 echo "configure:1964: checking for LFS support" >&5
1964 old_CPPFLAGS="$CPPFLAGS"
1965 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1966 if test "$cross_compiling" = yes; then
1967 GLIBC_LFS_SUPPORT=cross
1968 else
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1973 #include <unistd.h>
1974 main () {
1975 #if _LFS64_LARGEFILE == 1
1976 exit(0);
1977 #else
1978 exit(1);
1979 #endif
1982 if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1983 then
1984 GLIBC_LFS_SUPPORT=yes
1985 else
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -fr conftest*
1989 GLIBC_LFS_SUPPORT=no
1991 rm -fr conftest*
1994 CPPFLAGS="$old_CPPFLAGS"
1995 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1996 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1997 cat >> confdefs.h <<\EOF
1998 #define _LARGEFILE64_SOURCE 1
2001 cat >> confdefs.h <<\EOF
2002 #define _GNU_SOURCE 1
2006 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
2009 esac
2011 echo $ac_n "checking for inline""... $ac_c" 1>&6
2012 echo "configure:2013: checking for inline" >&5
2013 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2014 echo $ac_n "(cached) $ac_c" 1>&6
2015 else
2016 ac_cv_c_inline=no
2017 for ac_kw in inline __inline__ __inline; do
2018 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure"
2020 #include "confdefs.h"
2022 int main() {
2023 } $ac_kw foo() {
2024 ; return 0; }
2026 if { (eval echo configure:2027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2027 rm -rf conftest*
2028 ac_cv_c_inline=$ac_kw; break
2029 else
2030 echo "configure: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2033 rm -f conftest*
2034 done
2038 echo "$ac_t""$ac_cv_c_inline" 1>&6
2039 case "$ac_cv_c_inline" in
2040 inline | yes) ;;
2041 no) cat >> confdefs.h <<\EOF
2042 #define inline
2045 *) cat >> confdefs.h <<EOF
2046 #define inline $ac_cv_c_inline
2049 esac
2051 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2052 echo "configure:2053: checking how to run the C preprocessor" >&5
2053 # On Suns, sometimes $CPP names a directory.
2054 if test -n "$CPP" && test -d "$CPP"; then
2055 CPP=
2057 if test -z "$CPP"; then
2058 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2060 else
2061 # This must be in double quotes, not single quotes, because CPP may get
2062 # substituted into the Makefile and "${CC-cc}" will confuse make.
2063 CPP="${CC-cc} -E"
2064 # On the NeXT, cc -E runs the code through the compiler's parser,
2065 # not just through cpp.
2066 cat > conftest.$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 #include <assert.h>
2070 Syntax Error
2072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2073 { (eval echo configure:2074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2075 if test -z "$ac_err"; then
2077 else
2078 echo "$ac_err" >&5
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2081 rm -rf conftest*
2082 CPP="${CC-cc} -E -traditional-cpp"
2083 cat > conftest.$ac_ext <<EOF
2084 #line 2085 "configure"
2085 #include "confdefs.h"
2086 #include <assert.h>
2087 Syntax Error
2089 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2090 { (eval echo configure:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2091 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2092 if test -z "$ac_err"; then
2094 else
2095 echo "$ac_err" >&5
2096 echo "configure: failed program was:" >&5
2097 cat conftest.$ac_ext >&5
2098 rm -rf conftest*
2099 CPP="${CC-cc} -nologo -E"
2100 cat > conftest.$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2103 #include <assert.h>
2104 Syntax Error
2106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2107 { (eval echo configure:2108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2109 if test -z "$ac_err"; then
2111 else
2112 echo "$ac_err" >&5
2113 echo "configure: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 rm -rf conftest*
2116 CPP=/lib/cpp
2118 rm -f conftest*
2120 rm -f conftest*
2122 rm -f conftest*
2123 ac_cv_prog_CPP="$CPP"
2125 CPP="$ac_cv_prog_CPP"
2126 else
2127 ac_cv_prog_CPP="$CPP"
2129 echo "$ac_t""$CPP" 1>&6
2131 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2132 echo "configure:2133: checking for ANSI C header files" >&5
2133 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2135 else
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2139 #include <stdlib.h>
2140 #include <stdarg.h>
2141 #include <string.h>
2142 #include <float.h>
2144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2145 { (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2147 if test -z "$ac_err"; then
2148 rm -rf conftest*
2149 ac_cv_header_stdc=yes
2150 else
2151 echo "$ac_err" >&5
2152 echo "configure: failed program was:" >&5
2153 cat conftest.$ac_ext >&5
2154 rm -rf conftest*
2155 ac_cv_header_stdc=no
2157 rm -f conftest*
2159 if test $ac_cv_header_stdc = yes; then
2160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 #include <string.h>
2166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2167 egrep "memchr" >/dev/null 2>&1; then
2169 else
2170 rm -rf conftest*
2171 ac_cv_header_stdc=no
2173 rm -f conftest*
2177 if test $ac_cv_header_stdc = yes; then
2178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 #include <stdlib.h>
2184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2185 egrep "free" >/dev/null 2>&1; then
2187 else
2188 rm -rf conftest*
2189 ac_cv_header_stdc=no
2191 rm -f conftest*
2195 if test $ac_cv_header_stdc = yes; then
2196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2197 if test "$cross_compiling" = yes; then
2199 else
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <ctype.h>
2204 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2205 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2206 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2207 int main () { int i; for (i = 0; i < 256; i++)
2208 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2209 exit (0); }
2212 if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2213 then
2215 else
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2218 rm -fr conftest*
2219 ac_cv_header_stdc=no
2221 rm -fr conftest*
2227 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2228 if test $ac_cv_header_stdc = yes; then
2229 cat >> confdefs.h <<\EOF
2230 #define STDC_HEADERS 1
2235 ac_header_dirent=no
2236 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2239 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2240 echo "configure:2241: checking for $ac_hdr that defines DIR" >&5
2241 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2243 else
2244 cat > conftest.$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2247 #include <sys/types.h>
2248 #include <$ac_hdr>
2249 int main() {
2250 DIR *dirp = 0;
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2254 rm -rf conftest*
2255 eval "ac_cv_header_dirent_$ac_safe=yes"
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 eval "ac_cv_header_dirent_$ac_safe=no"
2262 rm -f conftest*
2264 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2267 cat >> confdefs.h <<EOF
2268 #define $ac_tr_hdr 1
2270 ac_header_dirent=$ac_hdr; break
2271 else
2272 echo "$ac_t""no" 1>&6
2274 done
2275 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2276 if test $ac_header_dirent = dirent.h; then
2277 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2278 echo "configure:2279: checking for opendir in -ldir" >&5
2279 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2281 echo $ac_n "(cached) $ac_c" 1>&6
2282 else
2283 ac_save_LIBS="$LIBS"
2284 LIBS="-ldir $LIBS"
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* Override any gcc2 internal prototype to avoid an error. */
2289 /* We use char because int might match the return type of a gcc2
2290 builtin and then its argument prototype would still apply. */
2291 char opendir();
2293 int main() {
2294 opendir()
2295 ; return 0; }
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 rm -rf conftest*
2299 eval "ac_cv_lib_$ac_lib_var=yes"
2300 else
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2303 rm -rf conftest*
2304 eval "ac_cv_lib_$ac_lib_var=no"
2306 rm -f conftest*
2307 LIBS="$ac_save_LIBS"
2310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 LIBS="$LIBS -ldir"
2313 else
2314 echo "$ac_t""no" 1>&6
2317 else
2318 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2319 echo "configure:2320: checking for opendir in -lx" >&5
2320 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 ac_save_LIBS="$LIBS"
2325 LIBS="-lx $LIBS"
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 /* Override any gcc2 internal prototype to avoid an error. */
2330 /* We use char because int might match the return type of a gcc2
2331 builtin and then its argument prototype would still apply. */
2332 char opendir();
2334 int main() {
2335 opendir()
2336 ; return 0; }
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2339 rm -rf conftest*
2340 eval "ac_cv_lib_$ac_lib_var=yes"
2341 else
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -rf conftest*
2345 eval "ac_cv_lib_$ac_lib_var=no"
2347 rm -f conftest*
2348 LIBS="$ac_save_LIBS"
2351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 LIBS="$LIBS -lx"
2354 else
2355 echo "$ac_t""no" 1>&6
2360 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2361 echo "configure:2362: checking whether time.h and sys/time.h may both be included" >&5
2362 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2368 #include <sys/types.h>
2369 #include <sys/time.h>
2370 #include <time.h>
2371 int main() {
2372 struct tm *tp;
2373 ; return 0; }
2375 if { (eval echo configure:2376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2376 rm -rf conftest*
2377 ac_cv_header_time=yes
2378 else
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 rm -rf conftest*
2382 ac_cv_header_time=no
2384 rm -f conftest*
2387 echo "$ac_t""$ac_cv_header_time" 1>&6
2388 if test $ac_cv_header_time = yes; then
2389 cat >> confdefs.h <<\EOF
2390 #define TIME_WITH_SYS_TIME 1
2395 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2396 echo "configure:2397: checking for sys/wait.h that is POSIX.1 compatible" >&5
2397 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2398 echo $ac_n "(cached) $ac_c" 1>&6
2399 else
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 #include <sys/types.h>
2404 #include <sys/wait.h>
2405 #ifndef WEXITSTATUS
2406 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2407 #endif
2408 #ifndef WIFEXITED
2409 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2410 #endif
2411 int main() {
2412 int s;
2413 wait (&s);
2414 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2415 ; return 0; }
2417 if { (eval echo configure:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2418 rm -rf conftest*
2419 ac_cv_header_sys_wait_h=yes
2420 else
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 ac_cv_header_sys_wait_h=no
2426 rm -f conftest*
2429 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2430 if test $ac_cv_header_sys_wait_h = yes; then
2431 cat >> confdefs.h <<\EOF
2432 #define HAVE_SYS_WAIT_H 1
2437 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_hdr" >&5
2442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444 else
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 #include <$ac_hdr>
2450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2451 { (eval echo configure:2452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2453 if test -z "$ac_err"; then
2454 rm -rf conftest*
2455 eval "ac_cv_header_$ac_safe=yes"
2456 else
2457 echo "$ac_err" >&5
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 eval "ac_cv_header_$ac_safe=no"
2463 rm -f conftest*
2465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2466 echo "$ac_t""yes" 1>&6
2467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2468 cat >> confdefs.h <<EOF
2469 #define $ac_tr_hdr 1
2472 else
2473 echo "$ac_t""no" 1>&6
2475 done
2477 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2481 echo "configure:2482: checking for $ac_hdr" >&5
2482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2484 else
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <$ac_hdr>
2490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2491 { (eval echo configure:2492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2493 if test -z "$ac_err"; then
2494 rm -rf conftest*
2495 eval "ac_cv_header_$ac_safe=yes"
2496 else
2497 echo "$ac_err" >&5
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2500 rm -rf conftest*
2501 eval "ac_cv_header_$ac_safe=no"
2503 rm -f conftest*
2505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2506 echo "$ac_t""yes" 1>&6
2507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2508 cat >> confdefs.h <<EOF
2509 #define $ac_tr_hdr 1
2512 else
2513 echo "$ac_t""no" 1>&6
2515 done
2517 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_hdr" >&5
2522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2524 else
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2528 #include <$ac_hdr>
2530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2531 { (eval echo configure:2532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2533 if test -z "$ac_err"; then
2534 rm -rf conftest*
2535 eval "ac_cv_header_$ac_safe=yes"
2536 else
2537 echo "$ac_err" >&5
2538 echo "configure: failed program was:" >&5
2539 cat conftest.$ac_ext >&5
2540 rm -rf conftest*
2541 eval "ac_cv_header_$ac_safe=no"
2543 rm -f conftest*
2545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2548 cat >> confdefs.h <<EOF
2549 #define $ac_tr_hdr 1
2552 else
2553 echo "$ac_t""no" 1>&6
2555 done
2557 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_hdr" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <$ac_hdr>
2570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2571 { (eval echo configure:2572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2573 if test -z "$ac_err"; then
2574 rm -rf conftest*
2575 eval "ac_cv_header_$ac_safe=yes"
2576 else
2577 echo "$ac_err" >&5
2578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580 rm -rf conftest*
2581 eval "ac_cv_header_$ac_safe=no"
2583 rm -f conftest*
2585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2586 echo "$ac_t""yes" 1>&6
2587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2588 cat >> confdefs.h <<EOF
2589 #define $ac_tr_hdr 1
2592 else
2593 echo "$ac_t""no" 1>&6
2595 done
2597 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
2599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2601 echo "configure:2602: checking for $ac_hdr" >&5
2602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6
2604 else
2605 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure"
2607 #include "confdefs.h"
2608 #include <$ac_hdr>
2610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2611 { (eval echo configure:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2613 if test -z "$ac_err"; then
2614 rm -rf conftest*
2615 eval "ac_cv_header_$ac_safe=yes"
2616 else
2617 echo "$ac_err" >&5
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2620 rm -rf conftest*
2621 eval "ac_cv_header_$ac_safe=no"
2623 rm -f conftest*
2625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2626 echo "$ac_t""yes" 1>&6
2627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2628 cat >> confdefs.h <<EOF
2629 #define $ac_tr_hdr 1
2632 else
2633 echo "$ac_t""no" 1>&6
2635 done
2637 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_hdr" >&5
2642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2644 else
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 #include <$ac_hdr>
2650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2651 { (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2653 if test -z "$ac_err"; then
2654 rm -rf conftest*
2655 eval "ac_cv_header_$ac_safe=yes"
2656 else
2657 echo "$ac_err" >&5
2658 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5
2660 rm -rf conftest*
2661 eval "ac_cv_header_$ac_safe=no"
2663 rm -f conftest*
2665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2668 cat >> confdefs.h <<EOF
2669 #define $ac_tr_hdr 1
2672 else
2673 echo "$ac_t""no" 1>&6
2675 done
2677 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_hdr" >&5
2682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2684 else
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 #include <$ac_hdr>
2690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2691 { (eval echo configure:2692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2693 if test -z "$ac_err"; then
2694 rm -rf conftest*
2695 eval "ac_cv_header_$ac_safe=yes"
2696 else
2697 echo "$ac_err" >&5
2698 echo "configure: failed program was:" >&5
2699 cat conftest.$ac_ext >&5
2700 rm -rf conftest*
2701 eval "ac_cv_header_$ac_safe=no"
2703 rm -f conftest*
2705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2708 cat >> confdefs.h <<EOF
2709 #define $ac_tr_hdr 1
2712 else
2713 echo "$ac_t""no" 1>&6
2715 done
2717 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2721 echo "configure:2722: checking for $ac_hdr" >&5
2722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2723 echo $ac_n "(cached) $ac_c" 1>&6
2724 else
2725 cat > conftest.$ac_ext <<EOF
2726 #line 2727 "configure"
2727 #include "confdefs.h"
2728 #include <$ac_hdr>
2730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2731 { (eval echo configure:2732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2733 if test -z "$ac_err"; then
2734 rm -rf conftest*
2735 eval "ac_cv_header_$ac_safe=yes"
2736 else
2737 echo "$ac_err" >&5
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 eval "ac_cv_header_$ac_safe=no"
2743 rm -f conftest*
2745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2746 echo "$ac_t""yes" 1>&6
2747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2748 cat >> confdefs.h <<EOF
2749 #define $ac_tr_hdr 1
2752 else
2753 echo "$ac_t""no" 1>&6
2755 done
2757 for ac_hdr in sys/syslog.h syslog.h
2759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2761 echo "configure:2762: checking for $ac_hdr" >&5
2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2763 echo $ac_n "(cached) $ac_c" 1>&6
2764 else
2765 cat > conftest.$ac_ext <<EOF
2766 #line 2767 "configure"
2767 #include "confdefs.h"
2768 #include <$ac_hdr>
2770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2771 { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2773 if test -z "$ac_err"; then
2774 rm -rf conftest*
2775 eval "ac_cv_header_$ac_safe=yes"
2776 else
2777 echo "$ac_err" >&5
2778 echo "configure: failed program was:" >&5
2779 cat conftest.$ac_ext >&5
2780 rm -rf conftest*
2781 eval "ac_cv_header_$ac_safe=no"
2783 rm -f conftest*
2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2786 echo "$ac_t""yes" 1>&6
2787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2788 cat >> confdefs.h <<EOF
2789 #define $ac_tr_hdr 1
2792 else
2793 echo "$ac_t""no" 1>&6
2795 done
2799 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2800 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2802 case "$host_os" in
2803 *hpux*)
2804 cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <shadow.h>
2808 int main() {
2809 struct spwd testme
2810 ; return 0; }
2812 if { (eval echo configure:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2813 rm -rf conftest*
2814 ac_cv_header_shadow_h=yes
2815 else
2816 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5
2818 rm -rf conftest*
2819 ac_cv_header_shadow_h=no
2821 rm -f conftest*
2822 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2823 cat >> confdefs.h <<\EOF
2824 #define HAVE_SHADOW_H 1
2829 esac
2830 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_hdr" >&5
2835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2837 else
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 #include <$ac_hdr>
2843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2844 { (eval echo configure:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2846 if test -z "$ac_err"; then
2847 rm -rf conftest*
2848 eval "ac_cv_header_$ac_safe=yes"
2849 else
2850 echo "$ac_err" >&5
2851 echo "configure: failed program was:" >&5
2852 cat conftest.$ac_ext >&5
2853 rm -rf conftest*
2854 eval "ac_cv_header_$ac_safe=no"
2856 rm -f conftest*
2858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2861 cat >> confdefs.h <<EOF
2862 #define $ac_tr_hdr 1
2865 else
2866 echo "$ac_t""no" 1>&6
2868 done
2870 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_hdr" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2877 else
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 #include <$ac_hdr>
2883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2884 { (eval echo configure:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886 if test -z "$ac_err"; then
2887 rm -rf conftest*
2888 eval "ac_cv_header_$ac_safe=yes"
2889 else
2890 echo "$ac_err" >&5
2891 echo "configure: failed program was:" >&5
2892 cat conftest.$ac_ext >&5
2893 rm -rf conftest*
2894 eval "ac_cv_header_$ac_safe=no"
2896 rm -f conftest*
2898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2901 cat >> confdefs.h <<EOF
2902 #define $ac_tr_hdr 1
2905 else
2906 echo "$ac_t""no" 1>&6
2908 done
2910 for ac_hdr in stropts.h poll.h
2912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 #include <$ac_hdr>
2923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2927 rm -rf conftest*
2928 eval "ac_cv_header_$ac_safe=yes"
2929 else
2930 echo "$ac_err" >&5
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 rm -rf conftest*
2934 eval "ac_cv_header_$ac_safe=no"
2936 rm -f conftest*
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h <<EOF
2942 #define $ac_tr_hdr 1
2945 else
2946 echo "$ac_t""no" 1>&6
2948 done
2950 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_hdr" >&5
2955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <$ac_hdr>
2963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964 { (eval echo configure:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2966 if test -z "$ac_err"; then
2967 rm -rf conftest*
2968 eval "ac_cv_header_$ac_safe=yes"
2969 else
2970 echo "$ac_err" >&5
2971 echo "configure: failed program was:" >&5
2972 cat conftest.$ac_ext >&5
2973 rm -rf conftest*
2974 eval "ac_cv_header_$ac_safe=no"
2976 rm -f conftest*
2978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2981 cat >> confdefs.h <<EOF
2982 #define $ac_tr_hdr 1
2985 else
2986 echo "$ac_t""no" 1>&6
2988 done
2990 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_hdr" >&5
2995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 <$ac_hdr>
3003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3004 { (eval echo configure:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3006 if test -z "$ac_err"; then
3007 rm -rf conftest*
3008 eval "ac_cv_header_$ac_safe=yes"
3009 else
3010 echo "$ac_err" >&5
3011 echo "configure: failed program was:" >&5
3012 cat conftest.$ac_ext >&5
3013 rm -rf conftest*
3014 eval "ac_cv_header_$ac_safe=no"
3016 rm -f conftest*
3018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3019 echo "$ac_t""yes" 1>&6
3020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3021 cat >> confdefs.h <<EOF
3022 #define $ac_tr_hdr 1
3025 else
3026 echo "$ac_t""no" 1>&6
3028 done
3031 # For experimental utmp support (lastlog on some BSD-like systems)
3032 for ac_hdr in utmp.h utmpx.h lastlog.h
3034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_hdr" >&5
3037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3039 else
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <$ac_hdr>
3045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3046 { (eval echo configure:3047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3048 if test -z "$ac_err"; then
3049 rm -rf conftest*
3050 eval "ac_cv_header_$ac_safe=yes"
3051 else
3052 echo "$ac_err" >&5
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3055 rm -rf conftest*
3056 eval "ac_cv_header_$ac_safe=no"
3058 rm -f conftest*
3060 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3061 echo "$ac_t""yes" 1>&6
3062 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3063 cat >> confdefs.h <<EOF
3064 #define $ac_tr_hdr 1
3067 else
3068 echo "$ac_t""no" 1>&6
3070 done
3073 # For quotas on Veritas VxFS filesystems
3074 for ac_hdr in sys/fs/vx_quota.h
3076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_hdr" >&5
3079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3081 else
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3085 #include <$ac_hdr>
3087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3088 { (eval echo configure:3089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3090 if test -z "$ac_err"; then
3091 rm -rf conftest*
3092 eval "ac_cv_header_$ac_safe=yes"
3093 else
3094 echo "$ac_err" >&5
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -rf conftest*
3098 eval "ac_cv_header_$ac_safe=no"
3100 rm -f conftest*
3102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3105 cat >> confdefs.h <<EOF
3106 #define $ac_tr_hdr 1
3109 else
3110 echo "$ac_t""no" 1>&6
3112 done
3115 # For quotas on Linux XFS filesystems
3116 for ac_hdr in linux/xqm.h
3118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3120 echo "configure:3121: checking for $ac_hdr" >&5
3121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <$ac_hdr>
3129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3133 rm -rf conftest*
3134 eval "ac_cv_header_$ac_safe=yes"
3135 else
3136 echo "$ac_err" >&5
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 rm -rf conftest*
3140 eval "ac_cv_header_$ac_safe=no"
3142 rm -f conftest*
3144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3147 cat >> confdefs.h <<EOF
3148 #define $ac_tr_hdr 1
3151 else
3152 echo "$ac_t""no" 1>&6
3154 done
3156 for ac_hdr in xfs/xqm.h
3158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_hdr" >&5
3161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3163 else
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #include <$ac_hdr>
3169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3170 { (eval echo configure:3171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3172 if test -z "$ac_err"; then
3173 rm -rf conftest*
3174 eval "ac_cv_header_$ac_safe=yes"
3175 else
3176 echo "$ac_err" >&5
3177 echo "configure: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3179 rm -rf conftest*
3180 eval "ac_cv_header_$ac_safe=no"
3182 rm -f conftest*
3184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3185 echo "$ac_t""yes" 1>&6
3186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3187 cat >> confdefs.h <<EOF
3188 #define $ac_tr_hdr 1
3191 else
3192 echo "$ac_t""no" 1>&6
3194 done
3197 echo $ac_n "checking size of int""... $ac_c" 1>&6
3198 echo "configure:3199: checking size of int" >&5
3199 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3201 else
3202 if test "$cross_compiling" = yes; then
3203 ac_cv_sizeof_int=cross
3204 else
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3208 #include <stdio.h>
3209 int main()
3211 FILE *f=fopen("conftestval", "w");
3212 if (!f) return(1);
3213 fprintf(f, "%d\n", sizeof(int));
3214 return(0);
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3218 then
3219 ac_cv_sizeof_int=`cat conftestval`
3220 else
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3223 rm -fr conftest*
3224 ac_cv_sizeof_int=0
3226 rm -fr conftest*
3230 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3231 cat >> confdefs.h <<EOF
3232 #define SIZEOF_INT $ac_cv_sizeof_int
3236 echo $ac_n "checking size of long""... $ac_c" 1>&6
3237 echo "configure:3238: checking size of long" >&5
3238 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3240 else
3241 if test "$cross_compiling" = yes; then
3242 ac_cv_sizeof_long=cross
3243 else
3244 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <stdio.h>
3248 int main()
3250 FILE *f=fopen("conftestval", "w");
3251 if (!f) return(1);
3252 fprintf(f, "%d\n", sizeof(long));
3253 return(0);
3256 if { (eval echo configure:3257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3257 then
3258 ac_cv_sizeof_long=`cat conftestval`
3259 else
3260 echo "configure: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 rm -fr conftest*
3263 ac_cv_sizeof_long=0
3265 rm -fr conftest*
3269 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3270 cat >> confdefs.h <<EOF
3271 #define SIZEOF_LONG $ac_cv_sizeof_long
3275 echo $ac_n "checking size of short""... $ac_c" 1>&6
3276 echo "configure:3277: checking size of short" >&5
3277 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3278 echo $ac_n "(cached) $ac_c" 1>&6
3279 else
3280 if test "$cross_compiling" = yes; then
3281 ac_cv_sizeof_short=cross
3282 else
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #include <stdio.h>
3287 int main()
3289 FILE *f=fopen("conftestval", "w");
3290 if (!f) return(1);
3291 fprintf(f, "%d\n", sizeof(short));
3292 return(0);
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3296 then
3297 ac_cv_sizeof_short=`cat conftestval`
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -fr conftest*
3302 ac_cv_sizeof_short=0
3304 rm -fr conftest*
3308 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3309 cat >> confdefs.h <<EOF
3310 #define SIZEOF_SHORT $ac_cv_sizeof_short
3315 echo $ac_n "checking for working const""... $ac_c" 1>&6
3316 echo "configure:3317: checking for working const" >&5
3317 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3324 int main() {
3326 /* Ultrix mips cc rejects this. */
3327 typedef int charset[2]; const charset x;
3328 /* SunOS 4.1.1 cc rejects this. */
3329 char const *const *ccp;
3330 char **p;
3331 /* NEC SVR4.0.2 mips cc rejects this. */
3332 struct point {int x, y;};
3333 static struct point const zero = {0,0};
3334 /* AIX XL C 1.02.0.0 rejects this.
3335 It does not let you subtract one const X* pointer from another in an arm
3336 of an if-expression whose if-part is not a constant expression */
3337 const char *g = "string";
3338 ccp = &g + (g ? g-g : 0);
3339 /* HPUX 7.0 cc rejects these. */
3340 ++ccp;
3341 p = (char**) ccp;
3342 ccp = (char const *const *) p;
3343 { /* SCO 3.2v4 cc rejects this. */
3344 char *t;
3345 char const *s = 0 ? (char *) 0 : (char const *) 0;
3347 *t++ = 0;
3349 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3350 int x[] = {25, 17};
3351 const int *foo = &x[0];
3352 ++foo;
3354 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3355 typedef const int *iptr;
3356 iptr p = 0;
3357 ++p;
3359 { /* AIX XL C 1.02.0.0 rejects this saying
3360 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3361 struct s { int j; const int *ap[3]; };
3362 struct s *b; b->j = 5;
3364 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3365 const int foo = 10;
3368 ; return 0; }
3370 if { (eval echo configure:3371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3371 rm -rf conftest*
3372 ac_cv_c_const=yes
3373 else
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3376 rm -rf conftest*
3377 ac_cv_c_const=no
3379 rm -f conftest*
3382 echo "$ac_t""$ac_cv_c_const" 1>&6
3383 if test $ac_cv_c_const = no; then
3384 cat >> confdefs.h <<\EOF
3385 #define const
3390 echo $ac_n "checking for inline""... $ac_c" 1>&6
3391 echo "configure:3392: checking for inline" >&5
3392 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3394 else
3395 ac_cv_c_inline=no
3396 for ac_kw in inline __inline__ __inline; do
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3401 int main() {
3402 } $ac_kw foo() {
3403 ; return 0; }
3405 if { (eval echo configure:3406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3406 rm -rf conftest*
3407 ac_cv_c_inline=$ac_kw; break
3408 else
3409 echo "configure: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3412 rm -f conftest*
3413 done
3417 echo "$ac_t""$ac_cv_c_inline" 1>&6
3418 case "$ac_cv_c_inline" in
3419 inline | yes) ;;
3420 no) cat >> confdefs.h <<\EOF
3421 #define inline
3424 *) cat >> confdefs.h <<EOF
3425 #define inline $ac_cv_c_inline
3428 esac
3430 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3431 echo "configure:3432: checking whether byte ordering is bigendian" >&5
3432 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3433 echo $ac_n "(cached) $ac_c" 1>&6
3434 else
3435 ac_cv_c_bigendian=unknown
3436 # See if sys/param.h defines the BYTE_ORDER macro.
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441 #include <sys/param.h>
3442 int main() {
3444 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3445 bogus endian macros
3446 #endif
3447 ; return 0; }
3449 if { (eval echo configure:3450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3450 rm -rf conftest*
3451 # It does; now see whether it defined to BIG_ENDIAN or not.
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3456 #include <sys/param.h>
3457 int main() {
3459 #if BYTE_ORDER != BIG_ENDIAN
3460 not big endian
3461 #endif
3462 ; return 0; }
3464 if { (eval echo configure:3465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3465 rm -rf conftest*
3466 ac_cv_c_bigendian=yes
3467 else
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3470 rm -rf conftest*
3471 ac_cv_c_bigendian=no
3473 rm -f conftest*
3474 else
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3478 rm -f conftest*
3479 if test $ac_cv_c_bigendian = unknown; then
3480 if test "$cross_compiling" = yes; then
3481 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3482 else
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 main () {
3487 /* Are we little or big endian? From Harbison&Steele. */
3488 union
3490 long l;
3491 char c[sizeof (long)];
3492 } u;
3493 u.l = 1;
3494 exit (u.c[sizeof (long) - 1] == 1);
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3498 then
3499 ac_cv_c_bigendian=no
3500 else
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 rm -fr conftest*
3504 ac_cv_c_bigendian=yes
3506 rm -fr conftest*
3512 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3513 if test $ac_cv_c_bigendian = yes; then
3514 cat >> confdefs.h <<\EOF
3515 #define WORDS_BIGENDIAN 1
3520 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3521 echo "configure:3522: checking whether char is unsigned" >&5
3522 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3524 else
3525 if test "$GCC" = yes; then
3526 # GCC predefines this symbol on systems where it applies.
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 #ifdef __CHAR_UNSIGNED__
3532 #endif
3535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3536 egrep "yes" >/dev/null 2>&1; then
3537 rm -rf conftest*
3538 ac_cv_c_char_unsigned=yes
3539 else
3540 rm -rf conftest*
3541 ac_cv_c_char_unsigned=no
3543 rm -f conftest*
3545 else
3546 if test "$cross_compiling" = yes; then
3547 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3548 else
3549 cat > conftest.$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3553 #if !defined(__STDC__) || __STDC__ != 1
3554 #define volatile
3555 #endif
3556 main() {
3557 volatile char c = 255; exit(c < 0);
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3561 then
3562 ac_cv_c_char_unsigned=yes
3563 else
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3566 rm -fr conftest*
3567 ac_cv_c_char_unsigned=no
3569 rm -fr conftest*
3575 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3576 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3577 cat >> confdefs.h <<\EOF
3578 #define __CHAR_UNSIGNED__ 1
3584 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3585 echo "configure:3586: checking return type of signal handlers" >&5
3586 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3588 else
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 #include <sys/types.h>
3593 #include <signal.h>
3594 #ifdef signal
3595 #undef signal
3596 #endif
3597 #ifdef __cplusplus
3598 extern "C" void (*signal (int, void (*)(int)))(int);
3599 #else
3600 void (*signal ()) ();
3601 #endif
3603 int main() {
3604 int i;
3605 ; return 0; }
3607 if { (eval echo configure:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3608 rm -rf conftest*
3609 ac_cv_type_signal=void
3610 else
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 ac_cv_type_signal=int
3616 rm -f conftest*
3619 echo "$ac_t""$ac_cv_type_signal" 1>&6
3620 cat >> confdefs.h <<EOF
3621 #define RETSIGTYPE $ac_cv_type_signal
3625 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3626 echo "configure:3627: checking for uid_t in sys/types.h" >&5
3627 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3629 else
3630 cat > conftest.$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 #include <sys/types.h>
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "uid_t" >/dev/null 2>&1; then
3637 rm -rf conftest*
3638 ac_cv_type_uid_t=yes
3639 else
3640 rm -rf conftest*
3641 ac_cv_type_uid_t=no
3643 rm -f conftest*
3647 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3648 if test $ac_cv_type_uid_t = no; then
3649 cat >> confdefs.h <<\EOF
3650 #define uid_t int
3653 cat >> confdefs.h <<\EOF
3654 #define gid_t int
3659 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3660 echo "configure:3661: checking for mode_t" >&5
3661 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3663 else
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 #include <sys/types.h>
3668 #if STDC_HEADERS
3669 #include <stdlib.h>
3670 #include <stddef.h>
3671 #endif
3673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3674 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3675 rm -rf conftest*
3676 ac_cv_type_mode_t=yes
3677 else
3678 rm -rf conftest*
3679 ac_cv_type_mode_t=no
3681 rm -f conftest*
3684 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3685 if test $ac_cv_type_mode_t = no; then
3686 cat >> confdefs.h <<\EOF
3687 #define mode_t int
3692 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3693 echo "configure:3694: checking for off_t" >&5
3694 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3696 else
3697 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3701 #if STDC_HEADERS
3702 #include <stdlib.h>
3703 #include <stddef.h>
3704 #endif
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3708 rm -rf conftest*
3709 ac_cv_type_off_t=yes
3710 else
3711 rm -rf conftest*
3712 ac_cv_type_off_t=no
3714 rm -f conftest*
3717 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3718 if test $ac_cv_type_off_t = no; then
3719 cat >> confdefs.h <<\EOF
3720 #define off_t long
3725 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3726 echo "configure:3727: checking for size_t" >&5
3727 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3729 else
3730 cat > conftest.$ac_ext <<EOF
3731 #line 3732 "configure"
3732 #include "confdefs.h"
3733 #include <sys/types.h>
3734 #if STDC_HEADERS
3735 #include <stdlib.h>
3736 #include <stddef.h>
3737 #endif
3739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3740 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3741 rm -rf conftest*
3742 ac_cv_type_size_t=yes
3743 else
3744 rm -rf conftest*
3745 ac_cv_type_size_t=no
3747 rm -f conftest*
3750 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3751 if test $ac_cv_type_size_t = no; then
3752 cat >> confdefs.h <<\EOF
3753 #define size_t unsigned
3758 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3759 echo "configure:3760: checking for pid_t" >&5
3760 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3762 else
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3766 #include <sys/types.h>
3767 #if STDC_HEADERS
3768 #include <stdlib.h>
3769 #include <stddef.h>
3770 #endif
3772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3773 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3774 rm -rf conftest*
3775 ac_cv_type_pid_t=yes
3776 else
3777 rm -rf conftest*
3778 ac_cv_type_pid_t=no
3780 rm -f conftest*
3783 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3784 if test $ac_cv_type_pid_t = no; then
3785 cat >> confdefs.h <<\EOF
3786 #define pid_t int
3791 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3792 echo "configure:3793: checking for st_rdev in struct stat" >&5
3793 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3794 echo $ac_n "(cached) $ac_c" 1>&6
3795 else
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 #include <sys/types.h>
3800 #include <sys/stat.h>
3801 int main() {
3802 struct stat s; s.st_rdev;
3803 ; return 0; }
3805 if { (eval echo configure:3806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3806 rm -rf conftest*
3807 ac_cv_struct_st_rdev=yes
3808 else
3809 echo "configure: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3811 rm -rf conftest*
3812 ac_cv_struct_st_rdev=no
3814 rm -f conftest*
3817 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3818 if test $ac_cv_struct_st_rdev = yes; then
3819 cat >> confdefs.h <<\EOF
3820 #define HAVE_ST_RDEV 1
3825 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3826 echo "configure:3827: checking for d_off in dirent" >&5
3827 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3829 else
3830 cat > conftest.$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3834 #include <unistd.h>
3835 #include <sys/types.h>
3836 #include <dirent.h>
3837 int main() {
3838 struct dirent d; d.d_off;
3839 ; return 0; }
3841 if { (eval echo configure:3842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3842 rm -rf conftest*
3843 ac_cv_dirent_d_off=yes
3844 else
3845 echo "configure: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 rm -rf conftest*
3848 ac_cv_dirent_d_off=no
3850 rm -f conftest*
3853 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3854 if test $ac_cv_dirent_d_off = yes; then
3855 cat >> confdefs.h <<\EOF
3856 #define HAVE_DIRENT_D_OFF 1
3861 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3862 echo "configure:3863: checking for ino_t" >&5
3863 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3864 echo $ac_n "(cached) $ac_c" 1>&6
3865 else
3866 cat > conftest.$ac_ext <<EOF
3867 #line 3868 "configure"
3868 #include "confdefs.h"
3869 #include <sys/types.h>
3870 #if STDC_HEADERS
3871 #include <stdlib.h>
3872 #include <stddef.h>
3873 #endif
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3877 rm -rf conftest*
3878 ac_cv_type_ino_t=yes
3879 else
3880 rm -rf conftest*
3881 ac_cv_type_ino_t=no
3883 rm -f conftest*
3886 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3887 if test $ac_cv_type_ino_t = no; then
3888 cat >> confdefs.h <<\EOF
3889 #define ino_t unsigned
3894 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3895 echo "configure:3896: checking for loff_t" >&5
3896 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3898 else
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 #include <sys/types.h>
3903 #if STDC_HEADERS
3904 #include <stdlib.h>
3905 #include <stddef.h>
3906 #endif
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3910 rm -rf conftest*
3911 ac_cv_type_loff_t=yes
3912 else
3913 rm -rf conftest*
3914 ac_cv_type_loff_t=no
3916 rm -f conftest*
3919 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3920 if test $ac_cv_type_loff_t = no; then
3921 cat >> confdefs.h <<\EOF
3922 #define loff_t off_t
3927 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3928 echo "configure:3929: checking for offset_t" >&5
3929 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3931 else
3932 cat > conftest.$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3935 #include <sys/types.h>
3936 #if STDC_HEADERS
3937 #include <stdlib.h>
3938 #include <stddef.h>
3939 #endif
3941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3942 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3943 rm -rf conftest*
3944 ac_cv_type_offset_t=yes
3945 else
3946 rm -rf conftest*
3947 ac_cv_type_offset_t=no
3949 rm -f conftest*
3952 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3953 if test $ac_cv_type_offset_t = no; then
3954 cat >> confdefs.h <<\EOF
3955 #define offset_t loff_t
3960 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3961 echo "configure:3962: checking for ssize_t" >&5
3962 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3964 else
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 #include <sys/types.h>
3969 #if STDC_HEADERS
3970 #include <stdlib.h>
3971 #include <stddef.h>
3972 #endif
3974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3976 rm -rf conftest*
3977 ac_cv_type_ssize_t=yes
3978 else
3979 rm -rf conftest*
3980 ac_cv_type_ssize_t=no
3982 rm -f conftest*
3985 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3986 if test $ac_cv_type_ssize_t = no; then
3987 cat >> confdefs.h <<\EOF
3988 #define ssize_t int
3993 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3994 echo "configure:3995: checking for wchar_t" >&5
3995 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3997 else
3998 cat > conftest.$ac_ext <<EOF
3999 #line 4000 "configure"
4000 #include "confdefs.h"
4001 #include <sys/types.h>
4002 #if STDC_HEADERS
4003 #include <stdlib.h>
4004 #include <stddef.h>
4005 #endif
4007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4008 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4009 rm -rf conftest*
4010 ac_cv_type_wchar_t=yes
4011 else
4012 rm -rf conftest*
4013 ac_cv_type_wchar_t=no
4015 rm -f conftest*
4018 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
4019 if test $ac_cv_type_wchar_t = no; then
4020 cat >> confdefs.h <<\EOF
4021 #define wchar_t unsigned short
4027 ############################################
4028 # for cups support we need libcups, and a handful of header files
4030 # Check whether --enable-cups or --disable-cups was given.
4031 if test "${enable_cups+set}" = set; then
4032 enableval="$enable_cups"
4037 if test x$enable_cups != xno; then
4038 # Extract the first word of "cups-config", so it can be a program name with args.
4039 set dummy cups-config; ac_word=$2
4040 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4041 echo "configure:4042: checking for $ac_word" >&5
4042 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 case "$CUPS_CONFIG" in
4047 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
4049 ?:/*)
4050 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
4053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4054 ac_dummy="$PATH"
4055 for ac_dir in $ac_dummy; do
4056 test -z "$ac_dir" && ac_dir=.
4057 if test -f $ac_dir/$ac_word; then
4058 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
4059 break
4061 done
4062 IFS="$ac_save_ifs"
4064 esac
4066 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
4067 if test -n "$CUPS_CONFIG"; then
4068 echo "$ac_t""$CUPS_CONFIG" 1>&6
4069 else
4070 echo "$ac_t""no" 1>&6
4074 if test "x$CUPS_CONFIG" != x; then
4075 cat >> confdefs.h <<\EOF
4076 #define HAVE_CUPS 1
4079 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
4080 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
4081 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
4085 ############################################
4086 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
4088 echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
4089 echo "configure:4090: checking for library containing dlopen" >&5
4090 if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
4091 echo $ac_n "(cached) $ac_c" 1>&6
4092 else
4093 ac_func_search_save_LIBS="$LIBS"
4094 ac_cv_search_dlopen="no"
4095 cat > conftest.$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4101 char dlopen();
4103 int main() {
4104 dlopen()
4105 ; return 0; }
4107 if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4108 rm -rf conftest*
4109 ac_cv_search_dlopen="none required"
4110 else
4111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
4114 rm -f conftest*
4115 test "$ac_cv_search_dlopen" = "no" && for i in dl; do
4116 LIBS="-l$i $ac_func_search_save_LIBS"
4117 cat > conftest.$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4123 char dlopen();
4125 int main() {
4126 dlopen()
4127 ; return 0; }
4129 if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4130 rm -rf conftest*
4131 ac_cv_search_dlopen="-l$i"
4132 break
4133 else
4134 echo "configure: failed program was:" >&5
4135 cat conftest.$ac_ext >&5
4137 rm -f conftest*
4138 done
4139 LIBS="$ac_func_search_save_LIBS"
4142 echo "$ac_t""$ac_cv_search_dlopen" 1>&6
4143 if test "$ac_cv_search_dlopen" != "no"; then
4144 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
4146 else :
4149 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4151 ############################################
4152 # check if the compiler can do immediate structures
4153 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4154 echo "configure:4155: checking for immediate structures" >&5
4155 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4157 else
4159 cat > conftest.$ac_ext <<EOF
4160 #line 4161 "configure"
4161 #include "confdefs.h"
4163 #include <stdio.h>
4164 int main() {
4166 typedef struct {unsigned x;} FOOBAR;
4167 #define X_FOOBAR(x) ((FOOBAR) { x })
4168 #define FOO_ONE X_FOOBAR(1)
4169 FOOBAR f = FOO_ONE;
4170 static struct {
4171 FOOBAR y;
4172 } f2[] = {
4173 {FOO_ONE}
4176 ; return 0; }
4178 if { (eval echo configure:4179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4179 rm -rf conftest*
4180 samba_cv_immediate_structures=yes
4181 else
4182 echo "configure: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4184 rm -rf conftest*
4185 samba_cv_immediate_structures=no
4187 rm -f conftest*
4190 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4191 if test x"$samba_cv_immediate_structures" = x"yes"; then
4192 cat >> confdefs.h <<\EOF
4193 #define HAVE_IMMEDIATE_STRUCTURES 1
4198 ############################################
4199 # check for unix domain sockets
4200 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4201 echo "configure:4202: checking for unix domain sockets" >&5
4202 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4204 else
4206 cat > conftest.$ac_ext <<EOF
4207 #line 4208 "configure"
4208 #include "confdefs.h"
4210 #include <sys/types.h>
4211 #include <stdlib.h>
4212 #include <stddef.h>
4213 #include <sys/socket.h>
4214 #include <sys/un.h>
4215 int main() {
4217 struct sockaddr_un sunaddr;
4218 sunaddr.sun_family = AF_UNIX;
4220 ; return 0; }
4222 if { (eval echo configure:4223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4223 rm -rf conftest*
4224 samba_cv_unixsocket=yes
4225 else
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4228 rm -rf conftest*
4229 samba_cv_unixsocket=no
4231 rm -f conftest*
4234 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4235 if test x"$samba_cv_unixsocket" = x"yes"; then
4236 cat >> confdefs.h <<\EOF
4237 #define HAVE_UNIXSOCKET 1
4243 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4244 echo "configure:4245: checking for socklen_t type" >&5
4245 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4247 else
4249 cat > conftest.$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4253 #include <sys/types.h>
4254 #if STDC_HEADERS
4255 #include <stdlib.h>
4256 #include <stddef.h>
4257 #endif
4258 #include <sys/socket.h>
4259 int main() {
4260 socklen_t i = 0
4261 ; return 0; }
4263 if { (eval echo configure:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4264 rm -rf conftest*
4265 samba_cv_socklen_t=yes
4266 else
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 samba_cv_socklen_t=no
4272 rm -f conftest*
4275 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4276 if test x"$samba_cv_socklen_t" = x"yes"; then
4277 cat >> confdefs.h <<\EOF
4278 #define HAVE_SOCKLEN_T_TYPE 1
4283 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4284 echo "configure:4285: checking for sig_atomic_t type" >&5
4285 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4287 else
4289 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4293 #include <sys/types.h>
4294 #if STDC_HEADERS
4295 #include <stdlib.h>
4296 #include <stddef.h>
4297 #endif
4298 #include <signal.h>
4299 int main() {
4300 sig_atomic_t i = 0
4301 ; return 0; }
4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4304 rm -rf conftest*
4305 samba_cv_sig_atomic_t=yes
4306 else
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 rm -rf conftest*
4310 samba_cv_sig_atomic_t=no
4312 rm -f conftest*
4315 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4316 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4317 cat >> confdefs.h <<\EOF
4318 #define HAVE_SIG_ATOMIC_T_TYPE 1
4323 # stupid headers have the functions but no declaration. grrrr.
4325 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4326 echo "configure:4327: checking for errno declaration" >&5
4327 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4328 echo $ac_n "(cached) $ac_c" 1>&6
4329 else
4331 cat > conftest.$ac_ext <<EOF
4332 #line 4333 "configure"
4333 #include "confdefs.h"
4334 #include <errno.h>
4335 int main() {
4336 int i = (int)errno
4337 ; return 0; }
4339 if { (eval echo configure:4340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4340 rm -rf conftest*
4341 ac_cv_have_errno_decl=yes
4342 else
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 rm -rf conftest*
4346 ac_cv_have_errno_decl=no
4348 rm -f conftest*
4351 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4352 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4353 cat >> confdefs.h <<\EOF
4354 #define HAVE_ERRNO_DECL 1
4360 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4361 echo "configure:4362: checking for setresuid declaration" >&5
4362 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4364 else
4366 cat > conftest.$ac_ext <<EOF
4367 #line 4368 "configure"
4368 #include "confdefs.h"
4369 #include <unistd.h>
4370 int main() {
4371 int i = (int)setresuid
4372 ; return 0; }
4374 if { (eval echo configure:4375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4375 rm -rf conftest*
4376 ac_cv_have_setresuid_decl=yes
4377 else
4378 echo "configure: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4380 rm -rf conftest*
4381 ac_cv_have_setresuid_decl=no
4383 rm -f conftest*
4386 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4387 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_SETRESUID_DECL 1
4395 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4396 echo "configure:4397: checking for setresgid declaration" >&5
4397 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6
4399 else
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 #include <unistd.h>
4405 int main() {
4406 int i = (int)setresgid
4407 ; return 0; }
4409 if { (eval echo configure:4410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4410 rm -rf conftest*
4411 ac_cv_have_setresgid_decl=yes
4412 else
4413 echo "configure: failed program was:" >&5
4414 cat conftest.$ac_ext >&5
4415 rm -rf conftest*
4416 ac_cv_have_setresgid_decl=no
4418 rm -f conftest*
4421 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4422 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4423 cat >> confdefs.h <<\EOF
4424 #define HAVE_SETRESGID_DECL 1
4430 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4431 echo "configure:4432: checking for asprintf declaration" >&5
4432 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4434 else
4436 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure"
4438 #include "confdefs.h"
4439 #include <stdio.h>
4440 int main() {
4441 int i = (int)asprintf
4442 ; return 0; }
4444 if { (eval echo configure:4445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4445 rm -rf conftest*
4446 ac_cv_have_asprintf_decl=yes
4447 else
4448 echo "configure: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4450 rm -rf conftest*
4451 ac_cv_have_asprintf_decl=no
4453 rm -f conftest*
4456 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4457 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4458 cat >> confdefs.h <<\EOF
4459 #define HAVE_ASPRINTF_DECL 1
4465 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4466 echo "configure:4467: checking for vasprintf declaration" >&5
4467 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4471 cat > conftest.$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4474 #include <stdio.h>
4475 int main() {
4476 int i = (int)vasprintf
4477 ; return 0; }
4479 if { (eval echo configure:4480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4480 rm -rf conftest*
4481 ac_cv_have_vasprintf_decl=yes
4482 else
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 rm -rf conftest*
4486 ac_cv_have_vasprintf_decl=no
4488 rm -f conftest*
4491 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4492 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4493 cat >> confdefs.h <<\EOF
4494 #define HAVE_VASPRINTF_DECL 1
4500 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4501 echo "configure:4502: checking for vsnprintf declaration" >&5
4502 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4503 echo $ac_n "(cached) $ac_c" 1>&6
4504 else
4506 cat > conftest.$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4509 #include <stdio.h>
4510 int main() {
4511 int i = (int)vsnprintf
4512 ; return 0; }
4514 if { (eval echo configure:4515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4515 rm -rf conftest*
4516 ac_cv_have_vsnprintf_decl=yes
4517 else
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4520 rm -rf conftest*
4521 ac_cv_have_vsnprintf_decl=no
4523 rm -f conftest*
4526 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4527 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4528 cat >> confdefs.h <<\EOF
4529 #define HAVE_VSNPRINTF_DECL 1
4535 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4536 echo "configure:4537: checking for snprintf declaration" >&5
4537 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4539 else
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 #include <stdio.h>
4545 int main() {
4546 int i = (int)snprintf
4547 ; return 0; }
4549 if { (eval echo configure:4550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4550 rm -rf conftest*
4551 ac_cv_have_snprintf_decl=yes
4552 else
4553 echo "configure: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 rm -rf conftest*
4556 ac_cv_have_snprintf_decl=no
4558 rm -f conftest*
4561 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4562 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4563 cat >> confdefs.h <<\EOF
4564 #define HAVE_SNPRINTF_DECL 1
4570 # and glibc has setresuid under linux but the function does
4571 # nothing until kernel 2.1.44! very dumb.
4572 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4573 echo "configure:4574: checking for real setresuid" >&5
4574 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4576 else
4578 if test "$cross_compiling" = yes; then
4579 samba_cv_have_setresuid=cross
4580 else
4581 cat > conftest.$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 #include <errno.h>
4585 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4588 then
4589 samba_cv_have_setresuid=yes
4590 else
4591 echo "configure: failed program was:" >&5
4592 cat conftest.$ac_ext >&5
4593 rm -fr conftest*
4594 samba_cv_have_setresuid=no
4596 rm -fr conftest*
4601 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4602 if test x"$samba_cv_have_setresuid" = x"yes"; then
4603 cat >> confdefs.h <<\EOF
4604 #define HAVE_SETRESUID 1
4609 # Do the same check for setresguid...
4611 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4612 echo "configure:4613: checking for real setresgid" >&5
4613 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4615 else
4617 if test "$cross_compiling" = yes; then
4618 samba_cv_have_setresgid=cross
4619 else
4620 cat > conftest.$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 #include <unistd.h>
4624 #include <errno.h>
4625 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4627 if { (eval echo configure:4628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4628 then
4629 samba_cv_have_setresgid=yes
4630 else
4631 echo "configure: failed program was:" >&5
4632 cat conftest.$ac_ext >&5
4633 rm -fr conftest*
4634 samba_cv_have_setresgid=no
4636 rm -fr conftest*
4641 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4642 if test x"$samba_cv_have_setresgid" = x"yes"; then
4643 cat >> confdefs.h <<\EOF
4644 #define HAVE_SETRESGID 1
4649 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4650 echo "configure:4651: checking for 8-bit clean memcmp" >&5
4651 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4653 else
4654 if test "$cross_compiling" = yes; then
4655 ac_cv_func_memcmp_clean=no
4656 else
4657 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure"
4659 #include "confdefs.h"
4661 main()
4663 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4664 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4668 if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4669 then
4670 ac_cv_func_memcmp_clean=yes
4671 else
4672 echo "configure: failed program was:" >&5
4673 cat conftest.$ac_ext >&5
4674 rm -fr conftest*
4675 ac_cv_func_memcmp_clean=no
4677 rm -fr conftest*
4682 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4683 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4686 ###############################################
4687 # test for where we get crypt() from
4689 echo $ac_n "checking for library containing crypt""... $ac_c" 1>&6
4690 echo "configure:4691: checking for library containing crypt" >&5
4691 if eval "test \"`echo '$''{'ac_cv_search_crypt'+set}'`\" = set"; then
4692 echo $ac_n "(cached) $ac_c" 1>&6
4693 else
4694 ac_func_search_save_LIBS="$LIBS"
4695 ac_cv_search_crypt="no"
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 /* Override any gcc2 internal prototype to avoid an error. */
4700 /* We use char because int might match the return type of a gcc2
4701 builtin and then its argument prototype would still apply. */
4702 char crypt();
4704 int main() {
4705 crypt()
4706 ; return 0; }
4708 if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4709 rm -rf conftest*
4710 ac_cv_search_crypt="none required"
4711 else
4712 echo "configure: failed program was:" >&5
4713 cat conftest.$ac_ext >&5
4715 rm -f conftest*
4716 test "$ac_cv_search_crypt" = "no" && for i in crypt; do
4717 LIBS="-l$i $ac_func_search_save_LIBS"
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 /* Override any gcc2 internal prototype to avoid an error. */
4722 /* We use char because int might match the return type of a gcc2
4723 builtin and then its argument prototype would still apply. */
4724 char crypt();
4726 int main() {
4727 crypt()
4728 ; return 0; }
4730 if { (eval echo configure:4731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4731 rm -rf conftest*
4732 ac_cv_search_crypt="-l$i"
4733 break
4734 else
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 rm -f conftest*
4739 done
4740 LIBS="$ac_func_search_save_LIBS"
4743 echo "$ac_t""$ac_cv_search_crypt" 1>&6
4744 if test "$ac_cv_search_crypt" != "no"; then
4745 test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
4746 AUTHLIBS="$AUTHLIBS -lcrypt";
4747 cat >> confdefs.h <<\EOF
4748 #define HAVE_CRYPT 1
4751 else :
4755 ###############################################
4756 # Readline included by default unless explicitly asked not to
4757 test "${with_readline+set}" != "set" && with_readline=yes
4759 # test for where we get readline() from
4760 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4761 echo "configure:4762: checking whether to use readline" >&5
4762 # Check whether --with-readline or --without-readline was given.
4763 if test "${with_readline+set}" = set; then
4764 withval="$with_readline"
4765 case "$with_readline" in
4766 yes)
4767 echo "$ac_t""yes" 1>&6
4769 for ac_hdr in readline.h history.h readline/readline.h
4771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4773 echo "configure:4774: checking for $ac_hdr" >&5
4774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4775 echo $ac_n "(cached) $ac_c" 1>&6
4776 else
4777 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure"
4779 #include "confdefs.h"
4780 #include <$ac_hdr>
4782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4783 { (eval echo configure:4784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4785 if test -z "$ac_err"; then
4786 rm -rf conftest*
4787 eval "ac_cv_header_$ac_safe=yes"
4788 else
4789 echo "$ac_err" >&5
4790 echo "configure: failed program was:" >&5
4791 cat conftest.$ac_ext >&5
4792 rm -rf conftest*
4793 eval "ac_cv_header_$ac_safe=no"
4795 rm -f conftest*
4797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4798 echo "$ac_t""yes" 1>&6
4799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_hdr 1
4804 else
4805 echo "$ac_t""no" 1>&6
4807 done
4809 for ac_hdr in readline/history.h
4811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_hdr" >&5
4814 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 #include <$ac_hdr>
4822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4823 { (eval echo configure:4824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4825 if test -z "$ac_err"; then
4826 rm -rf conftest*
4827 eval "ac_cv_header_$ac_safe=yes"
4828 else
4829 echo "$ac_err" >&5
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 rm -rf conftest*
4833 eval "ac_cv_header_$ac_safe=no"
4835 rm -f conftest*
4837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4838 echo "$ac_t""yes" 1>&6
4839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4840 cat >> confdefs.h <<EOF
4841 #define $ac_tr_hdr 1
4844 else
4845 echo "$ac_t""no" 1>&6
4847 done
4850 for ac_hdr in readline.h readline/readline.h
4852 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4853 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4854 echo "configure:4855: checking for $ac_hdr" >&5
4855 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4857 else
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 #include <$ac_hdr>
4863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4864 { (eval echo configure:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4866 if test -z "$ac_err"; then
4867 rm -rf conftest*
4868 eval "ac_cv_header_$ac_safe=yes"
4869 else
4870 echo "$ac_err" >&5
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 rm -rf conftest*
4874 eval "ac_cv_header_$ac_safe=no"
4876 rm -f conftest*
4878 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4881 cat >> confdefs.h <<EOF
4882 #define $ac_tr_hdr 1
4885 for termlib in ncurses curses termcap terminfo termlib; do
4886 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4887 echo "configure:4888: checking for tgetent in -l${termlib}" >&5
4888 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4889 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4890 echo $ac_n "(cached) $ac_c" 1>&6
4891 else
4892 ac_save_LIBS="$LIBS"
4893 LIBS="-l${termlib} $LIBS"
4894 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 /* Override any gcc2 internal prototype to avoid an error. */
4898 /* We use char because int might match the return type of a gcc2
4899 builtin and then its argument prototype would still apply. */
4900 char tgetent();
4902 int main() {
4903 tgetent()
4904 ; return 0; }
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4907 rm -rf conftest*
4908 eval "ac_cv_lib_$ac_lib_var=yes"
4909 else
4910 echo "configure: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4912 rm -rf conftest*
4913 eval "ac_cv_lib_$ac_lib_var=no"
4915 rm -f conftest*
4916 LIBS="$ac_save_LIBS"
4919 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4920 echo "$ac_t""yes" 1>&6
4921 TERMLIBS="-l${termlib}"; break
4922 else
4923 echo "$ac_t""no" 1>&6
4926 done
4927 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4928 echo "configure:4929: checking for rl_callback_handler_install in -lreadline" >&5
4929 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4931 echo $ac_n "(cached) $ac_c" 1>&6
4932 else
4933 ac_save_LIBS="$LIBS"
4934 LIBS="-lreadline $TERMLIBS $LIBS"
4935 cat > conftest.$ac_ext <<EOF
4936 #line 4937 "configure"
4937 #include "confdefs.h"
4938 /* Override any gcc2 internal prototype to avoid an error. */
4939 /* We use char because int might match the return type of a gcc2
4940 builtin and then its argument prototype would still apply. */
4941 char rl_callback_handler_install();
4943 int main() {
4944 rl_callback_handler_install()
4945 ; return 0; }
4947 if { (eval echo configure:4948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4948 rm -rf conftest*
4949 eval "ac_cv_lib_$ac_lib_var=yes"
4950 else
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4953 rm -rf conftest*
4954 eval "ac_cv_lib_$ac_lib_var=no"
4956 rm -f conftest*
4957 LIBS="$ac_save_LIBS"
4960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4961 echo "$ac_t""yes" 1>&6
4962 TERMLIBS="-lreadline $TERMLIBS"
4963 cat >> confdefs.h <<\EOF
4964 #define HAVE_LIBREADLINE 1
4967 break
4968 else
4969 echo "$ac_t""no" 1>&6
4970 TERMLIBS=
4973 else
4974 echo "$ac_t""no" 1>&6
4976 done
4980 echo "$ac_t""no" 1>&6
4983 echo "$ac_t""yes" 1>&6
4985 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4986 # alternate readline path
4987 _ldflags=${LDFLAGS}
4988 _cppflags=${CPPFLAGS}
4990 # Add additional search path
4991 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4992 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4994 for ac_hdr in readline.h history.h readline/readline.h
4996 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4997 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4998 echo "configure:4999: checking for $ac_hdr" >&5
4999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5000 echo $ac_n "(cached) $ac_c" 1>&6
5001 else
5002 cat > conftest.$ac_ext <<EOF
5003 #line 5004 "configure"
5004 #include "confdefs.h"
5005 #include <$ac_hdr>
5007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5008 { (eval echo configure:5009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5010 if test -z "$ac_err"; then
5011 rm -rf conftest*
5012 eval "ac_cv_header_$ac_safe=yes"
5013 else
5014 echo "$ac_err" >&5
5015 echo "configure: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5017 rm -rf conftest*
5018 eval "ac_cv_header_$ac_safe=no"
5020 rm -f conftest*
5022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5023 echo "$ac_t""yes" 1>&6
5024 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5025 cat >> confdefs.h <<EOF
5026 #define $ac_tr_hdr 1
5029 else
5030 echo "$ac_t""no" 1>&6
5032 done
5034 for ac_hdr in readline/history.h
5036 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5038 echo "configure:5039: checking for $ac_hdr" >&5
5039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5040 echo $ac_n "(cached) $ac_c" 1>&6
5041 else
5042 cat > conftest.$ac_ext <<EOF
5043 #line 5044 "configure"
5044 #include "confdefs.h"
5045 #include <$ac_hdr>
5047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5048 { (eval echo configure:5049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5050 if test -z "$ac_err"; then
5051 rm -rf conftest*
5052 eval "ac_cv_header_$ac_safe=yes"
5053 else
5054 echo "$ac_err" >&5
5055 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5
5057 rm -rf conftest*
5058 eval "ac_cv_header_$ac_safe=no"
5060 rm -f conftest*
5062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5063 echo "$ac_t""yes" 1>&6
5064 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5065 cat >> confdefs.h <<EOF
5066 #define $ac_tr_hdr 1
5069 else
5070 echo "$ac_t""no" 1>&6
5072 done
5075 for ac_hdr in readline.h readline/readline.h
5077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5079 echo "configure:5080: checking for $ac_hdr" >&5
5080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5081 echo $ac_n "(cached) $ac_c" 1>&6
5082 else
5083 cat > conftest.$ac_ext <<EOF
5084 #line 5085 "configure"
5085 #include "confdefs.h"
5086 #include <$ac_hdr>
5088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5089 { (eval echo configure:5090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5091 if test -z "$ac_err"; then
5092 rm -rf conftest*
5093 eval "ac_cv_header_$ac_safe=yes"
5094 else
5095 echo "$ac_err" >&5
5096 echo "configure: failed program was:" >&5
5097 cat conftest.$ac_ext >&5
5098 rm -rf conftest*
5099 eval "ac_cv_header_$ac_safe=no"
5101 rm -f conftest*
5103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5106 cat >> confdefs.h <<EOF
5107 #define $ac_tr_hdr 1
5110 for termlib in ncurses curses termcap terminfo termlib; do
5111 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5112 echo "configure:5113: checking for tgetent in -l${termlib}" >&5
5113 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5116 else
5117 ac_save_LIBS="$LIBS"
5118 LIBS="-l${termlib} $LIBS"
5119 cat > conftest.$ac_ext <<EOF
5120 #line 5121 "configure"
5121 #include "confdefs.h"
5122 /* Override any gcc2 internal prototype to avoid an error. */
5123 /* We use char because int might match the return type of a gcc2
5124 builtin and then its argument prototype would still apply. */
5125 char tgetent();
5127 int main() {
5128 tgetent()
5129 ; return 0; }
5131 if { (eval echo configure:5132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5132 rm -rf conftest*
5133 eval "ac_cv_lib_$ac_lib_var=yes"
5134 else
5135 echo "configure: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 rm -rf conftest*
5138 eval "ac_cv_lib_$ac_lib_var=no"
5140 rm -f conftest*
5141 LIBS="$ac_save_LIBS"
5144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5145 echo "$ac_t""yes" 1>&6
5146 TERMLIBS="-l${termlib}"; break
5147 else
5148 echo "$ac_t""no" 1>&6
5151 done
5152 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5153 echo "configure:5154: checking for rl_callback_handler_install in -lreadline" >&5
5154 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5156 echo $ac_n "(cached) $ac_c" 1>&6
5157 else
5158 ac_save_LIBS="$LIBS"
5159 LIBS="-lreadline $TERMLIBS $LIBS"
5160 cat > conftest.$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5163 /* Override any gcc2 internal prototype to avoid an error. */
5164 /* We use char because int might match the return type of a gcc2
5165 builtin and then its argument prototype would still apply. */
5166 char rl_callback_handler_install();
5168 int main() {
5169 rl_callback_handler_install()
5170 ; return 0; }
5172 if { (eval echo configure:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5173 rm -rf conftest*
5174 eval "ac_cv_lib_$ac_lib_var=yes"
5175 else
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5178 rm -rf conftest*
5179 eval "ac_cv_lib_$ac_lib_var=no"
5181 rm -f conftest*
5182 LIBS="$ac_save_LIBS"
5185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5186 echo "$ac_t""yes" 1>&6
5187 TERMLDFLAGS="-L$with_readline/lib"
5188 TERMCPPFLAGS="-I$with_readline/include"
5189 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
5190 TERMLIBS="-lreadline $TERMLIBS"
5191 cat >> confdefs.h <<\EOF
5192 #define HAVE_LIBREADLINE 1
5195 break
5196 else
5197 echo "$ac_t""no" 1>&6
5198 TERMLIBS= CPPFLAGS=$_cppflags
5201 else
5202 echo "$ac_t""no" 1>&6
5204 done
5207 LDFLAGS=$_ldflags
5209 esac
5210 else
5211 echo "$ac_t""no" 1>&6
5218 # The readline API changed slightly from readline3 to readline4, so
5219 # code will generate warnings on one of them unless we have a few
5220 # special cases.
5221 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5222 echo "configure:5223: checking for rl_completion_matches in -lreadline" >&5
5223 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5226 else
5227 ac_save_LIBS="$LIBS"
5228 LIBS="-lreadline $TERMLIBS $LIBS"
5229 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* Override any gcc2 internal prototype to avoid an error. */
5233 /* We use char because int might match the return type of a gcc2
5234 builtin and then its argument prototype would still apply. */
5235 char rl_completion_matches();
5237 int main() {
5238 rl_completion_matches()
5239 ; return 0; }
5241 if { (eval echo configure:5242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5242 rm -rf conftest*
5243 eval "ac_cv_lib_$ac_lib_var=yes"
5244 else
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5247 rm -rf conftest*
5248 eval "ac_cv_lib_$ac_lib_var=no"
5250 rm -f conftest*
5251 LIBS="$ac_save_LIBS"
5254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5255 echo "$ac_t""yes" 1>&6
5256 cat >> confdefs.h <<\EOF
5257 #define HAVE_NEW_LIBREADLINE 1
5260 else
5261 echo "$ac_t""no" 1>&6
5265 # The following test taken from the cvs sources
5266 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5267 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5268 # libsocket.so which has a bad implementation of gethostbyname (it
5269 # only looks in /etc/hosts), so we only look for -lsocket if we need
5270 # it.
5271 for ac_func in connect
5273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5274 echo "configure:5275: checking for $ac_func" >&5
5275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5276 echo $ac_n "(cached) $ac_c" 1>&6
5277 else
5278 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure"
5280 #include "confdefs.h"
5281 /* System header to define __stub macros and hopefully few prototypes,
5282 which can conflict with char $ac_func(); below. */
5283 #include <assert.h>
5284 /* Override any gcc2 internal prototype to avoid an error. */
5285 /* We use char because int might match the return type of a gcc2
5286 builtin and then its argument prototype would still apply. */
5287 char $ac_func();
5289 int main() {
5291 /* The GNU C library defines this for functions which it implements
5292 to always fail with ENOSYS. Some functions are actually named
5293 something starting with __ and the normal name is an alias. */
5294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5295 choke me
5296 #else
5297 $ac_func();
5298 #endif
5300 ; return 0; }
5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5303 rm -rf conftest*
5304 eval "ac_cv_func_$ac_func=yes"
5305 else
5306 echo "configure: failed program was:" >&5
5307 cat conftest.$ac_ext >&5
5308 rm -rf conftest*
5309 eval "ac_cv_func_$ac_func=no"
5311 rm -f conftest*
5314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5317 cat >> confdefs.h <<EOF
5318 #define $ac_tr_func 1
5321 else
5322 echo "$ac_t""no" 1>&6
5324 done
5326 if test x"$ac_cv_func_connect" = x"no"; then
5327 case "$LIBS" in
5328 *-lnsl*) ;;
5329 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5330 echo "configure:5331: checking for printf in -lnsl_s" >&5
5331 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5334 else
5335 ac_save_LIBS="$LIBS"
5336 LIBS="-lnsl_s $LIBS"
5337 cat > conftest.$ac_ext <<EOF
5338 #line 5339 "configure"
5339 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */
5341 /* We use char because int might match the return type of a gcc2
5342 builtin and then its argument prototype would still apply. */
5343 char printf();
5345 int main() {
5346 printf()
5347 ; return 0; }
5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5350 rm -rf conftest*
5351 eval "ac_cv_lib_$ac_lib_var=yes"
5352 else
5353 echo "configure: failed program was:" >&5
5354 cat conftest.$ac_ext >&5
5355 rm -rf conftest*
5356 eval "ac_cv_lib_$ac_lib_var=no"
5358 rm -f conftest*
5359 LIBS="$ac_save_LIBS"
5362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5364 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5365 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5366 cat >> confdefs.h <<EOF
5367 #define $ac_tr_lib 1
5370 LIBS="-lnsl_s $LIBS"
5372 else
5373 echo "$ac_t""no" 1>&6
5376 esac
5377 case "$LIBS" in
5378 *-lnsl*) ;;
5379 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5380 echo "configure:5381: checking for printf in -lnsl" >&5
5381 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5382 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5383 echo $ac_n "(cached) $ac_c" 1>&6
5384 else
5385 ac_save_LIBS="$LIBS"
5386 LIBS="-lnsl $LIBS"
5387 cat > conftest.$ac_ext <<EOF
5388 #line 5389 "configure"
5389 #include "confdefs.h"
5390 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5393 char printf();
5395 int main() {
5396 printf()
5397 ; return 0; }
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 rm -rf conftest*
5401 eval "ac_cv_lib_$ac_lib_var=yes"
5402 else
5403 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5
5405 rm -rf conftest*
5406 eval "ac_cv_lib_$ac_lib_var=no"
5408 rm -f conftest*
5409 LIBS="$ac_save_LIBS"
5412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5413 echo "$ac_t""yes" 1>&6
5414 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5416 cat >> confdefs.h <<EOF
5417 #define $ac_tr_lib 1
5420 LIBS="-lnsl $LIBS"
5422 else
5423 echo "$ac_t""no" 1>&6
5426 esac
5427 case "$LIBS" in
5428 *-lsocket*) ;;
5429 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5430 echo "configure:5431: checking for connect in -lsocket" >&5
5431 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5433 echo $ac_n "(cached) $ac_c" 1>&6
5434 else
5435 ac_save_LIBS="$LIBS"
5436 LIBS="-lsocket $LIBS"
5437 cat > conftest.$ac_ext <<EOF
5438 #line 5439 "configure"
5439 #include "confdefs.h"
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5443 char connect();
5445 int main() {
5446 connect()
5447 ; return 0; }
5449 if { (eval echo configure:5450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5450 rm -rf conftest*
5451 eval "ac_cv_lib_$ac_lib_var=yes"
5452 else
5453 echo "configure: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 rm -rf conftest*
5456 eval "ac_cv_lib_$ac_lib_var=no"
5458 rm -f conftest*
5459 LIBS="$ac_save_LIBS"
5462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5463 echo "$ac_t""yes" 1>&6
5464 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5465 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5466 cat >> confdefs.h <<EOF
5467 #define $ac_tr_lib 1
5470 LIBS="-lsocket $LIBS"
5472 else
5473 echo "$ac_t""no" 1>&6
5476 esac
5477 case "$LIBS" in
5478 *-linet*) ;;
5479 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5480 echo "configure:5481: checking for connect in -linet" >&5
5481 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5483 echo $ac_n "(cached) $ac_c" 1>&6
5484 else
5485 ac_save_LIBS="$LIBS"
5486 LIBS="-linet $LIBS"
5487 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure"
5489 #include "confdefs.h"
5490 /* Override any gcc2 internal prototype to avoid an error. */
5491 /* We use char because int might match the return type of a gcc2
5492 builtin and then its argument prototype would still apply. */
5493 char connect();
5495 int main() {
5496 connect()
5497 ; return 0; }
5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5500 rm -rf conftest*
5501 eval "ac_cv_lib_$ac_lib_var=yes"
5502 else
5503 echo "configure: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5505 rm -rf conftest*
5506 eval "ac_cv_lib_$ac_lib_var=no"
5508 rm -f conftest*
5509 LIBS="$ac_save_LIBS"
5512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5513 echo "$ac_t""yes" 1>&6
5514 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5515 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5516 cat >> confdefs.h <<EOF
5517 #define $ac_tr_lib 1
5520 LIBS="-linet $LIBS"
5522 else
5523 echo "$ac_t""no" 1>&6
5526 esac
5527 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5528 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5529 # ac_cv_func_connect=yes
5530 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5531 cat >> confdefs.h <<\EOF
5532 #define HAVE_CONNECT 1
5538 ###############################################
5539 # test for where we get yp_get_default_domain() from
5541 echo $ac_n "checking for library containing yp_get_default_domain""... $ac_c" 1>&6
5542 echo "configure:5543: checking for library containing yp_get_default_domain" >&5
5543 if eval "test \"`echo '$''{'ac_cv_search_yp_get_default_domain'+set}'`\" = set"; then
5544 echo $ac_n "(cached) $ac_c" 1>&6
5545 else
5546 ac_func_search_save_LIBS="$LIBS"
5547 ac_cv_search_yp_get_default_domain="no"
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 /* We use char because int might match the return type of a gcc2
5553 builtin and then its argument prototype would still apply. */
5554 char yp_get_default_domain();
5556 int main() {
5557 yp_get_default_domain()
5558 ; return 0; }
5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5561 rm -rf conftest*
5562 ac_cv_search_yp_get_default_domain="none required"
5563 else
5564 echo "configure: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5567 rm -f conftest*
5568 test "$ac_cv_search_yp_get_default_domain" = "no" && for i in nsl; do
5569 LIBS="-l$i $ac_func_search_save_LIBS"
5570 cat > conftest.$ac_ext <<EOF
5571 #line 5572 "configure"
5572 #include "confdefs.h"
5573 /* Override any gcc2 internal prototype to avoid an error. */
5574 /* We use char because int might match the return type of a gcc2
5575 builtin and then its argument prototype would still apply. */
5576 char yp_get_default_domain();
5578 int main() {
5579 yp_get_default_domain()
5580 ; return 0; }
5582 if { (eval echo configure:5583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5583 rm -rf conftest*
5584 ac_cv_search_yp_get_default_domain="-l$i"
5585 break
5586 else
5587 echo "configure: failed program was:" >&5
5588 cat conftest.$ac_ext >&5
5590 rm -f conftest*
5591 done
5592 LIBS="$ac_func_search_save_LIBS"
5595 echo "$ac_t""$ac_cv_search_yp_get_default_domain" 1>&6
5596 if test "$ac_cv_search_yp_get_default_domain" != "no"; then
5597 test "$ac_cv_search_yp_get_default_domain" = "none required" || LIBS="$ac_cv_search_yp_get_default_domain $LIBS"
5599 else :
5602 for ac_func in yp_get_default_domain
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5608 else
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5614 #include <assert.h>
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5618 char $ac_func();
5620 int main() {
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5626 choke me
5627 #else
5628 $ac_func();
5629 #endif
5631 ; return 0; }
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 rm -rf conftest*
5635 eval "ac_cv_func_$ac_func=yes"
5636 else
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 rm -rf conftest*
5640 eval "ac_cv_func_$ac_func=no"
5642 rm -f conftest*
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h <<EOF
5649 #define $ac_tr_func 1
5652 else
5653 echo "$ac_t""no" 1>&6
5655 done
5658 # Check if we have execl, if not we need to compile smbrun.
5659 for ac_func in execl
5661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5662 echo "configure:5663: checking for $ac_func" >&5
5663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5664 echo $ac_n "(cached) $ac_c" 1>&6
5665 else
5666 cat > conftest.$ac_ext <<EOF
5667 #line 5668 "configure"
5668 #include "confdefs.h"
5669 /* System header to define __stub macros and hopefully few prototypes,
5670 which can conflict with char $ac_func(); below. */
5671 #include <assert.h>
5672 /* Override any gcc2 internal prototype to avoid an error. */
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5675 char $ac_func();
5677 int main() {
5679 /* The GNU C library defines this for functions which it implements
5680 to always fail with ENOSYS. Some functions are actually named
5681 something starting with __ and the normal name is an alias. */
5682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5683 choke me
5684 #else
5685 $ac_func();
5686 #endif
5688 ; return 0; }
5690 if { (eval echo configure:5691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5691 rm -rf conftest*
5692 eval "ac_cv_func_$ac_func=yes"
5693 else
5694 echo "configure: failed program was:" >&5
5695 cat conftest.$ac_ext >&5
5696 rm -rf conftest*
5697 eval "ac_cv_func_$ac_func=no"
5699 rm -f conftest*
5702 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5703 echo "$ac_t""yes" 1>&6
5704 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5705 cat >> confdefs.h <<EOF
5706 #define $ac_tr_func 1
5709 else
5710 echo "$ac_t""no" 1>&6
5712 done
5714 if test x"$ac_cv_func_execl" = x"no"; then
5715 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5718 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5724 else
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5730 #include <assert.h>
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5734 char $ac_func();
5736 int main() {
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5742 choke me
5743 #else
5744 $ac_func();
5745 #endif
5747 ; return 0; }
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 rm -rf conftest*
5751 eval "ac_cv_func_$ac_func=yes"
5752 else
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 rm -rf conftest*
5756 eval "ac_cv_func_$ac_func=no"
5758 rm -f conftest*
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_func 1
5768 else
5769 echo "$ac_t""no" 1>&6
5771 done
5773 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5779 else
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5785 #include <assert.h>
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5789 char $ac_func();
5791 int main() {
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5797 choke me
5798 #else
5799 $ac_func();
5800 #endif
5802 ; return 0; }
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 rm -rf conftest*
5806 eval "ac_cv_func_$ac_func=yes"
5807 else
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5810 rm -rf conftest*
5811 eval "ac_cv_func_$ac_func=no"
5813 rm -f conftest*
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h <<EOF
5820 #define $ac_tr_func 1
5823 else
5824 echo "$ac_t""no" 1>&6
5826 done
5828 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5834 else
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5840 #include <assert.h>
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5844 char $ac_func();
5846 int main() {
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5852 choke me
5853 #else
5854 $ac_func();
5855 #endif
5857 ; return 0; }
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 rm -rf conftest*
5861 eval "ac_cv_func_$ac_func=yes"
5862 else
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 rm -rf conftest*
5866 eval "ac_cv_func_$ac_func=no"
5868 rm -f conftest*
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h <<EOF
5875 #define $ac_tr_func 1
5878 else
5879 echo "$ac_t""no" 1>&6
5881 done
5883 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5886 echo "configure:5887: checking for $ac_func" >&5
5887 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5888 echo $ac_n "(cached) $ac_c" 1>&6
5889 else
5890 cat > conftest.$ac_ext <<EOF
5891 #line 5892 "configure"
5892 #include "confdefs.h"
5893 /* System header to define __stub macros and hopefully few prototypes,
5894 which can conflict with char $ac_func(); below. */
5895 #include <assert.h>
5896 /* Override any gcc2 internal prototype to avoid an error. */
5897 /* We use char because int might match the return type of a gcc2
5898 builtin and then its argument prototype would still apply. */
5899 char $ac_func();
5901 int main() {
5903 /* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 choke me
5908 #else
5909 $ac_func();
5910 #endif
5912 ; return 0; }
5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5915 rm -rf conftest*
5916 eval "ac_cv_func_$ac_func=yes"
5917 else
5918 echo "configure: failed program was:" >&5
5919 cat conftest.$ac_ext >&5
5920 rm -rf conftest*
5921 eval "ac_cv_func_$ac_func=no"
5923 rm -f conftest*
5926 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5927 echo "$ac_t""yes" 1>&6
5928 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5929 cat >> confdefs.h <<EOF
5930 #define $ac_tr_func 1
5933 else
5934 echo "$ac_t""no" 1>&6
5936 done
5938 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5940 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5941 echo "configure:5942: checking for $ac_func" >&5
5942 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5944 else
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5948 /* System header to define __stub macros and hopefully few prototypes,
5949 which can conflict with char $ac_func(); below. */
5950 #include <assert.h>
5951 /* Override any gcc2 internal prototype to avoid an error. */
5952 /* We use char because int might match the return type of a gcc2
5953 builtin and then its argument prototype would still apply. */
5954 char $ac_func();
5956 int main() {
5958 /* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5962 choke me
5963 #else
5964 $ac_func();
5965 #endif
5967 ; return 0; }
5969 if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5970 rm -rf conftest*
5971 eval "ac_cv_func_$ac_func=yes"
5972 else
5973 echo "configure: failed program was:" >&5
5974 cat conftest.$ac_ext >&5
5975 rm -rf conftest*
5976 eval "ac_cv_func_$ac_func=no"
5978 rm -f conftest*
5981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5982 echo "$ac_t""yes" 1>&6
5983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5984 cat >> confdefs.h <<EOF
5985 #define $ac_tr_func 1
5988 else
5989 echo "$ac_t""no" 1>&6
5991 done
5993 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5996 echo "configure:5997: checking for $ac_func" >&5
5997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5998 echo $ac_n "(cached) $ac_c" 1>&6
5999 else
6000 cat > conftest.$ac_ext <<EOF
6001 #line 6002 "configure"
6002 #include "confdefs.h"
6003 /* System header to define __stub macros and hopefully few prototypes,
6004 which can conflict with char $ac_func(); below. */
6005 #include <assert.h>
6006 /* Override any gcc2 internal prototype to avoid an error. */
6007 /* We use char because int might match the return type of a gcc2
6008 builtin and then its argument prototype would still apply. */
6009 char $ac_func();
6011 int main() {
6013 /* The GNU C library defines this for functions which it implements
6014 to always fail with ENOSYS. Some functions are actually named
6015 something starting with __ and the normal name is an alias. */
6016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017 choke me
6018 #else
6019 $ac_func();
6020 #endif
6022 ; return 0; }
6024 if { (eval echo configure:6025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6025 rm -rf conftest*
6026 eval "ac_cv_func_$ac_func=yes"
6027 else
6028 echo "configure: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 rm -rf conftest*
6031 eval "ac_cv_func_$ac_func=no"
6033 rm -f conftest*
6036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6037 echo "$ac_t""yes" 1>&6
6038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6039 cat >> confdefs.h <<EOF
6040 #define $ac_tr_func 1
6043 else
6044 echo "$ac_t""no" 1>&6
6046 done
6048 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
6050 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6051 echo "configure:6052: checking for $ac_func" >&5
6052 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6053 echo $ac_n "(cached) $ac_c" 1>&6
6054 else
6055 cat > conftest.$ac_ext <<EOF
6056 #line 6057 "configure"
6057 #include "confdefs.h"
6058 /* System header to define __stub macros and hopefully few prototypes,
6059 which can conflict with char $ac_func(); below. */
6060 #include <assert.h>
6061 /* Override any gcc2 internal prototype to avoid an error. */
6062 /* We use char because int might match the return type of a gcc2
6063 builtin and then its argument prototype would still apply. */
6064 char $ac_func();
6066 int main() {
6068 /* The GNU C library defines this for functions which it implements
6069 to always fail with ENOSYS. Some functions are actually named
6070 something starting with __ and the normal name is an alias. */
6071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6072 choke me
6073 #else
6074 $ac_func();
6075 #endif
6077 ; return 0; }
6079 if { (eval echo configure:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6080 rm -rf conftest*
6081 eval "ac_cv_func_$ac_func=yes"
6082 else
6083 echo "configure: failed program was:" >&5
6084 cat conftest.$ac_ext >&5
6085 rm -rf conftest*
6086 eval "ac_cv_func_$ac_func=no"
6088 rm -f conftest*
6091 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6092 echo "$ac_t""yes" 1>&6
6093 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6094 cat >> confdefs.h <<EOF
6095 #define $ac_tr_func 1
6098 else
6099 echo "$ac_t""no" 1>&6
6101 done
6103 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6106 echo "configure:6107: checking for $ac_func" >&5
6107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6108 echo $ac_n "(cached) $ac_c" 1>&6
6109 else
6110 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure"
6112 #include "confdefs.h"
6113 /* System header to define __stub macros and hopefully few prototypes,
6114 which can conflict with char $ac_func(); below. */
6115 #include <assert.h>
6116 /* Override any gcc2 internal prototype to avoid an error. */
6117 /* We use char because int might match the return type of a gcc2
6118 builtin and then its argument prototype would still apply. */
6119 char $ac_func();
6121 int main() {
6123 /* The GNU C library defines this for functions which it implements
6124 to always fail with ENOSYS. Some functions are actually named
6125 something starting with __ and the normal name is an alias. */
6126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6127 choke me
6128 #else
6129 $ac_func();
6130 #endif
6132 ; return 0; }
6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6135 rm -rf conftest*
6136 eval "ac_cv_func_$ac_func=yes"
6137 else
6138 echo "configure: failed program was:" >&5
6139 cat conftest.$ac_ext >&5
6140 rm -rf conftest*
6141 eval "ac_cv_func_$ac_func=no"
6143 rm -f conftest*
6146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6147 echo "$ac_t""yes" 1>&6
6148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6149 cat >> confdefs.h <<EOF
6150 #define $ac_tr_func 1
6153 else
6154 echo "$ac_t""no" 1>&6
6156 done
6158 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
6160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6161 echo "configure:6162: checking for $ac_func" >&5
6162 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6163 echo $ac_n "(cached) $ac_c" 1>&6
6164 else
6165 cat > conftest.$ac_ext <<EOF
6166 #line 6167 "configure"
6167 #include "confdefs.h"
6168 /* System header to define __stub macros and hopefully few prototypes,
6169 which can conflict with char $ac_func(); below. */
6170 #include <assert.h>
6171 /* Override any gcc2 internal prototype to avoid an error. */
6172 /* We use char because int might match the return type of a gcc2
6173 builtin and then its argument prototype would still apply. */
6174 char $ac_func();
6176 int main() {
6178 /* The GNU C library defines this for functions which it implements
6179 to always fail with ENOSYS. Some functions are actually named
6180 something starting with __ and the normal name is an alias. */
6181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6182 choke me
6183 #else
6184 $ac_func();
6185 #endif
6187 ; return 0; }
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6190 rm -rf conftest*
6191 eval "ac_cv_func_$ac_func=yes"
6192 else
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6195 rm -rf conftest*
6196 eval "ac_cv_func_$ac_func=no"
6198 rm -f conftest*
6201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6202 echo "$ac_t""yes" 1>&6
6203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6204 cat >> confdefs.h <<EOF
6205 #define $ac_tr_func 1
6208 else
6209 echo "$ac_t""no" 1>&6
6211 done
6213 for ac_func in syslog vsyslog getgrouplist timegm
6215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6216 echo "configure:6217: checking for $ac_func" >&5
6217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6219 else
6220 cat > conftest.$ac_ext <<EOF
6221 #line 6222 "configure"
6222 #include "confdefs.h"
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func(); below. */
6225 #include <assert.h>
6226 /* Override any gcc2 internal prototype to avoid an error. */
6227 /* We use char because int might match the return type of a gcc2
6228 builtin and then its argument prototype would still apply. */
6229 char $ac_func();
6231 int main() {
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6237 choke me
6238 #else
6239 $ac_func();
6240 #endif
6242 ; return 0; }
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6245 rm -rf conftest*
6246 eval "ac_cv_func_$ac_func=yes"
6247 else
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 rm -rf conftest*
6251 eval "ac_cv_func_$ac_func=no"
6253 rm -f conftest*
6256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6257 echo "$ac_t""yes" 1>&6
6258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6259 cat >> confdefs.h <<EOF
6260 #define $ac_tr_func 1
6263 else
6264 echo "$ac_t""no" 1>&6
6266 done
6268 # setbuffer, shmget, shm_open are needed for smbtorture
6269 for ac_func in setbuffer shmget shm_open
6271 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272 echo "configure:6273: checking for $ac_func" >&5
6273 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274 echo $ac_n "(cached) $ac_c" 1>&6
6275 else
6276 cat > conftest.$ac_ext <<EOF
6277 #line 6278 "configure"
6278 #include "confdefs.h"
6279 /* System header to define __stub macros and hopefully few prototypes,
6280 which can conflict with char $ac_func(); below. */
6281 #include <assert.h>
6282 /* Override any gcc2 internal prototype to avoid an error. */
6283 /* We use char because int might match the return type of a gcc2
6284 builtin and then its argument prototype would still apply. */
6285 char $ac_func();
6287 int main() {
6289 /* The GNU C library defines this for functions which it implements
6290 to always fail with ENOSYS. Some functions are actually named
6291 something starting with __ and the normal name is an alias. */
6292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293 choke me
6294 #else
6295 $ac_func();
6296 #endif
6298 ; return 0; }
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301 rm -rf conftest*
6302 eval "ac_cv_func_$ac_func=yes"
6303 else
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6306 rm -rf conftest*
6307 eval "ac_cv_func_$ac_func=no"
6309 rm -f conftest*
6312 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313 echo "$ac_t""yes" 1>&6
6314 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315 cat >> confdefs.h <<EOF
6316 #define $ac_tr_func 1
6319 else
6320 echo "$ac_t""no" 1>&6
6322 done
6325 # syscall() is needed for smbwrapper.
6326 for ac_func in syscall
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func(); below. */
6338 #include <assert.h>
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6342 char $ac_func();
6344 int main() {
6346 /* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 choke me
6351 #else
6352 $ac_func();
6353 #endif
6355 ; return 0; }
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358 rm -rf conftest*
6359 eval "ac_cv_func_$ac_func=yes"
6360 else
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 rm -rf conftest*
6364 eval "ac_cv_func_$ac_func=no"
6366 rm -f conftest*
6369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6372 cat >> confdefs.h <<EOF
6373 #define $ac_tr_func 1
6376 else
6377 echo "$ac_t""no" 1>&6
6379 done
6382 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6385 echo "configure:6386: checking for $ac_func" >&5
6386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6387 echo $ac_n "(cached) $ac_c" 1>&6
6388 else
6389 cat > conftest.$ac_ext <<EOF
6390 #line 6391 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6394 #include <assert.h>
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char $ac_func();
6400 int main() {
6402 /* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6406 choke me
6407 #else
6408 $ac_func();
6409 #endif
6411 ; return 0; }
6413 if { (eval echo configure:6414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 rm -rf conftest*
6415 eval "ac_cv_func_$ac_func=yes"
6416 else
6417 echo "configure: failed program was:" >&5
6418 cat conftest.$ac_ext >&5
6419 rm -rf conftest*
6420 eval "ac_cv_func_$ac_func=no"
6422 rm -f conftest*
6425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6428 cat >> confdefs.h <<EOF
6429 #define $ac_tr_func 1
6432 else
6433 echo "$ac_t""no" 1>&6
6435 done
6437 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6440 echo "configure:6441: checking for $ac_func" >&5
6441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6442 echo $ac_n "(cached) $ac_c" 1>&6
6443 else
6444 cat > conftest.$ac_ext <<EOF
6445 #line 6446 "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448 which can conflict with char $ac_func(); below. */
6449 #include <assert.h>
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 /* We use char because int might match the return type of a gcc2
6452 builtin and then its argument prototype would still apply. */
6453 char $ac_func();
6455 int main() {
6457 /* The GNU C library defines this for functions which it implements
6458 to always fail with ENOSYS. Some functions are actually named
6459 something starting with __ and the normal name is an alias. */
6460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6461 choke me
6462 #else
6463 $ac_func();
6464 #endif
6466 ; return 0; }
6468 if { (eval echo configure:6469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6469 rm -rf conftest*
6470 eval "ac_cv_func_$ac_func=yes"
6471 else
6472 echo "configure: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6474 rm -rf conftest*
6475 eval "ac_cv_func_$ac_func=no"
6477 rm -f conftest*
6480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6481 echo "$ac_t""yes" 1>&6
6482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6483 cat >> confdefs.h <<EOF
6484 #define $ac_tr_func 1
6487 else
6488 echo "$ac_t""no" 1>&6
6490 done
6492 for ac_func in __getcwd _getcwd
6494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_func" >&5
6496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6498 else
6499 cat > conftest.$ac_ext <<EOF
6500 #line 6501 "configure"
6501 #include "confdefs.h"
6502 /* System header to define __stub macros and hopefully few prototypes,
6503 which can conflict with char $ac_func(); below. */
6504 #include <assert.h>
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 /* We use char because int might match the return type of a gcc2
6507 builtin and then its argument prototype would still apply. */
6508 char $ac_func();
6510 int main() {
6512 /* The GNU C library defines this for functions which it implements
6513 to always fail with ENOSYS. Some functions are actually named
6514 something starting with __ and the normal name is an alias. */
6515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6516 choke me
6517 #else
6518 $ac_func();
6519 #endif
6521 ; return 0; }
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6524 rm -rf conftest*
6525 eval "ac_cv_func_$ac_func=yes"
6526 else
6527 echo "configure: failed program was:" >&5
6528 cat conftest.$ac_ext >&5
6529 rm -rf conftest*
6530 eval "ac_cv_func_$ac_func=no"
6532 rm -f conftest*
6535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6536 echo "$ac_t""yes" 1>&6
6537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6538 cat >> confdefs.h <<EOF
6539 #define $ac_tr_func 1
6542 else
6543 echo "$ac_t""no" 1>&6
6545 done
6547 for ac_func in __xstat __fxstat __lxstat
6549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6550 echo "configure:6551: checking for $ac_func" >&5
6551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6552 echo $ac_n "(cached) $ac_c" 1>&6
6553 else
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* System header to define __stub macros and hopefully few prototypes,
6558 which can conflict with char $ac_func(); below. */
6559 #include <assert.h>
6560 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563 char $ac_func();
6565 int main() {
6567 /* The GNU C library defines this for functions which it implements
6568 to always fail with ENOSYS. Some functions are actually named
6569 something starting with __ and the normal name is an alias. */
6570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6571 choke me
6572 #else
6573 $ac_func();
6574 #endif
6576 ; return 0; }
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579 rm -rf conftest*
6580 eval "ac_cv_func_$ac_func=yes"
6581 else
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6584 rm -rf conftest*
6585 eval "ac_cv_func_$ac_func=no"
6587 rm -f conftest*
6590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6591 echo "$ac_t""yes" 1>&6
6592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6593 cat >> confdefs.h <<EOF
6594 #define $ac_tr_func 1
6597 else
6598 echo "$ac_t""no" 1>&6
6600 done
6602 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6605 echo "configure:6606: checking for $ac_func" >&5
6606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6607 echo $ac_n "(cached) $ac_c" 1>&6
6608 else
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6611 "configure"
6611 #include "confdefs.h"
6612 /* System header to define __stub macros and hopefully few prototypes,
6613 which can conflict with char $ac_func(); below. */
6614 #include <assert.h>
6615 /* Override any gcc2 internal prototype to avoid an error. */
6616 /* We use char because int might match the return type of a gcc2
6617 builtin and then its argument prototype would still apply. */
6618 char $ac_func();
6620 int main() {
6622 /* The GNU C library defines this for functions which it implements
6623 to always fail with ENOSYS. Some functions are actually named
6624 something starting with __ and the normal name is an alias. */
6625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6626 choke me
6627 #else
6628 $ac_func();
6629 #endif
6631 ; return 0; }
6633 if { (eval echo configure:6634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6634 rm -rf conftest*
6635 eval "ac_cv_func_$ac_func=yes"
6636 else
6637 echo "configure: failed program was:" >&5
6638 cat conftest.$ac_ext >&5
6639 rm -rf conftest*
6640 eval "ac_cv_func_$ac_func=no"
6642 rm -f conftest*
6645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6646 echo "$ac_t""yes" 1>&6
6647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6648 cat >> confdefs.h <<EOF
6649 #define $ac_tr_func 1
6652 else
6653 echo "$ac_t""no" 1>&6
6655 done
6657 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6660 echo "configure:6661: checking for $ac_func" >&5
6661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6662 echo $ac_n "(cached) $ac_c" 1>&6
6663 else
6664 cat > conftest.$ac_ext <<EOF
6665 #line 6666 "configure"
6666 #include "confdefs.h"
6667 /* System header to define __stub macros and hopefully few prototypes,
6668 which can conflict with char $ac_func(); below. */
6669 #include <assert.h>
6670 /* Override any gcc2 internal prototype to avoid an error. */
6671 /* We use char because int might match the return type of a gcc2
6672 builtin and then its argument prototype would still apply. */
6673 char $ac_func();
6675 int main() {
6677 /* The GNU C library defines this for functions which it implements
6678 to always fail with ENOSYS. Some functions are actually named
6679 something starting with __ and the normal name is an alias. */
6680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6681 choke me
6682 #else
6683 $ac_func();
6684 #endif
6686 ; return 0; }
6688 if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6689 rm -rf conftest*
6690 eval "ac_cv_func_$ac_func=yes"
6691 else
6692 echo "configure: failed program was:" >&5
6693 cat conftest.$ac_ext >&5
6694 rm -rf conftest*
6695 eval "ac_cv_func_$ac_func=no"
6697 rm -f conftest*
6700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6703 cat >> confdefs.h <<EOF
6704 #define $ac_tr_func 1
6707 else
6708 echo "$ac_t""no" 1>&6
6710 done
6712 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6715 echo "configure:6716: checking for $ac_func" >&5
6716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6717 echo $ac_n "(cached) $ac_c" 1>&6
6718 else
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6722 /* System header to define __stub macros and hopefully few prototypes,
6723 which can conflict with char $ac_func(); below. */
6724 #include <assert.h>
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6728 char $ac_func();
6730 int main() {
6732 /* The GNU C library defines this for functions which it implements
6733 to always fail with ENOSYS. Some functions are actually named
6734 something starting with __ and the normal name is an alias. */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6736 choke me
6737 #else
6738 $ac_func();
6739 #endif
6741 ; return 0; }
6743 if { (eval echo configure:6744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6744 rm -rf conftest*
6745 eval "ac_cv_func_$ac_func=yes"
6746 else
6747 echo "configure: failed program was:" >&5
6748 cat conftest.$ac_ext >&5
6749 rm -rf conftest*
6750 eval "ac_cv_func_$ac_func=no"
6752 rm -f conftest*
6755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6756 echo "$ac_t""yes" 1>&6
6757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6758 cat >> confdefs.h <<EOF
6759 #define $ac_tr_func 1
6762 else
6763 echo "$ac_t""no" 1>&6
6765 done
6767 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_func" >&5
6771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6773 else
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char $ac_func(); below. */
6779 #include <assert.h>
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6783 char $ac_func();
6785 int main() {
6787 /* The GNU C library defines this for functions which it implements
6788 to always fail with ENOSYS. Some functions are actually named
6789 something starting with __ and the normal name is an alias. */
6790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6791 choke me
6792 #else
6793 $ac_func();
6794 #endif
6796 ; return 0; }
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 rm -rf conftest*
6800 eval "ac_cv_func_$ac_func=yes"
6801 else
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6804 rm -rf conftest*
6805 eval "ac_cv_func_$ac_func=no"
6807 rm -f conftest*
6810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6813 cat >> confdefs.h <<EOF
6814 #define $ac_tr_func 1
6817 else
6818 echo "$ac_t""no" 1>&6
6820 done
6822 for ac_func in getdirentries _write __write _fork __fork
6824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6825 echo "configure:6826: checking for $ac_func" >&5
6826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6828 else
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char $ac_func(); below. */
6834 #include <assert.h>
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6838 char $ac_func();
6840 int main() {
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6846 choke me
6847 #else
6848 $ac_func();
6849 #endif
6851 ; return 0; }
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6854 rm -rf conftest*
6855 eval "ac_cv_func_$ac_func=yes"
6856 else
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 rm -rf conftest*
6860 eval "ac_cv_func_$ac_func=no"
6862 rm -f conftest*
6865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6868 cat >> confdefs.h <<EOF
6869 #define $ac_tr_func 1
6872 else
6873 echo "$ac_t""no" 1>&6
6875 done
6877 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6880 echo "configure:6881: checking for $ac_func" >&5
6881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6883 else
6884 cat > conftest.$ac_ext <<EOF
6885 #line 6886 "configure"
6886 #include "confdefs.h"
6887 /* System header to define __stub macros and hopefully few prototypes,
6888 which can conflict with char $ac_func(); below. */
6889 #include <assert.h>
6890 /* Override any gcc2 internal prototype to avoid an error. */
6891 /* We use char because int might match the return type of a gcc2
6892 builtin and then its argument prototype would still apply. */
6893 char $ac_func();
6895 int main() {
6897 /* The GNU C library defines this for functions which it implements
6898 to always fail with ENOSYS. Some functions are actually named
6899 something starting with __ and the normal name is an alias. */
6900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6901 choke me
6902 #else
6903 $ac_func();
6904 #endif
6906 ; return 0; }
6908 if { (eval echo configure:6909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6909 rm -rf conftest*
6910 eval "ac_cv_func_$ac_func=yes"
6911 else
6912 echo "configure: failed program was:" >&5
6913 cat conftest.$ac_ext >&5
6914 rm -rf conftest*
6915 eval "ac_cv_func_$ac_func=no"
6917 rm -f conftest*
6920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6921 echo "$ac_t""yes" 1>&6
6922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6923 cat >> confdefs.h <<EOF
6924 #define $ac_tr_func 1
6927 else
6928 echo "$ac_t""no" 1>&6
6930 done
6932 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6935 echo "configure:6936: checking for $ac_func" >&5
6936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6937 echo $ac_n "(cached) $ac_c" 1>&6
6938 else
6939 cat > conftest.$ac_ext <<EOF
6940 #line 6941 "configure"
6941 #include "confdefs.h"
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func(); below. */
6944 #include <assert.h>
6945 /* Override any gcc2 internal prototype to avoid an error. */
6946 /* We use char because int might match the return type of a gcc2
6947 builtin and then its argument prototype would still apply. */
6948 char $ac_func();
6950 int main() {
6952 /* The GNU C library defines this for functions which it implements
6953 to always fail with ENOSYS. Some functions are actually named
6954 something starting with __ and the normal name is an alias. */
6955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6956 choke me
6957 #else
6958 $ac_func();
6959 #endif
6961 ; return 0; }
6963 if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6964 rm -rf conftest*
6965 eval "ac_cv_func_$ac_func=yes"
6966 else
6967 echo "configure: failed program was:" >&5
6968 cat conftest.$ac_ext >&5
6969 rm -rf conftest*
6970 eval "ac_cv_func_$ac_func=no"
6972 rm -f conftest*
6975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6976 echo "$ac_t""yes" 1>&6
6977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6978 cat >> confdefs.h <<EOF
6979 #define $ac_tr_func 1
6982 else
6983 echo "$ac_t""no" 1>&6
6985 done
6987 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6990 echo "configure:6991: checking for $ac_func" >&5
6991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6992 echo $ac_n "(cached) $ac_c" 1>&6
6993 else
6994 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure"
6996 #include "confdefs.h"
6997 /* System header to define __stub macros and hopefully few prototypes,
6998 which can conflict with char $ac_func(); below. */
6999 #include <assert.h>
7000 /* Override any gcc2 internal prototype to avoid an error. */
7001 /* We use char because int might match the return type of a gcc2
7002 builtin and then its argument prototype would still apply. */
7003 char $ac_func();
7005 int main() {
7007 /* The GNU C library defines this for functions which it implements
7008 to always fail with ENOSYS. Some functions are actually named
7009 something starting with __ and the normal name is an alias. */
7010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7011 choke me
7012 #else
7013 $ac_func();
7014 #endif
7016 ; return 0; }
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7019 rm -rf conftest*
7020 eval "ac_cv_func_$ac_func=yes"
7021 else
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 rm -rf conftest*
7025 eval "ac_cv_func_$ac_func=no"
7027 rm -f conftest*
7030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7031 echo "$ac_t""yes" 1>&6
7032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7033 cat >> confdefs.h <<EOF
7034 #define $ac_tr_func 1
7037 else
7038 echo "$ac_t""no" 1>&6
7040 done
7042 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
7044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7045 echo "configure:7046: checking for $ac_func" >&5
7046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7048 else
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7052 /* System header to define __stub macros and hopefully few prototypes,
7053 which can conflict with char $ac_func(); below. */
7054 #include <assert.h>
7055 /* Override any gcc2 internal prototype to avoid an error. */
7056 /* We use char because int might match the return type of a gcc2
7057 builtin and then its argument prototype would still apply. */
7058 char $ac_func();
7060 int main() {
7062 /* The GNU C library defines this for functions which it implements
7063 to always fail with ENOSYS. Some functions are actually named
7064 something starting with __ and the normal name is an alias. */
7065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7066 choke me
7067 #else
7068 $ac_func();
7069 #endif
7071 ; return 0; }
7073 if { (eval echo configure:7074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7074 rm -rf conftest*
7075 eval "ac_cv_func_$ac_func=yes"
7076 else
7077 echo "configure: failed program was:" >&5
7078 cat conftest.$ac_ext >&5
7079 rm -rf conftest*
7080 eval "ac_cv_func_$ac_func=no"
7082 rm -f conftest*
7085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7086 echo "$ac_t""yes" 1>&6
7087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7088 cat >> confdefs.h <<EOF
7089 #define $ac_tr_func 1
7092 else
7093 echo "$ac_t""no" 1>&6
7095 done
7097 for ac_func in open64 _open64 __open64 creat64
7099 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7100 echo "configure:7101: checking for $ac_func" >&5
7101 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7102 echo $ac_n "(cached) $ac_c" 1>&6
7103 else
7104 cat > conftest.$ac_ext <<EOF
7105 #line 7106 "configure"
7106 #include "confdefs.h"
7107 /* System header to define __stub macros and hopefully few prototypes,
7108 which can conflict with char $ac_func(); below. */
7109 #include <assert.h>
7110 /* Override any gcc2 internal prototype to avoid an error. */
7111 /* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */
7113 char $ac_func();
7115 int main() {
7117 /* The GNU C library defines this for functions which it implements
7118 to always fail with ENOSYS. Some functions are actually named
7119 something starting with __ and the normal name is an alias. */
7120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7121 choke me
7122 #else
7123 $ac_func();
7124 #endif
7126 ; return 0; }
7128 if { (eval echo configure:7129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7129 rm -rf conftest*
7130 eval "ac_cv_func_$ac_func=yes"
7131 else
7132 echo "configure: failed program was:" >&5
7133 cat conftest.$ac_ext >&5
7134 rm -rf conftest*
7135 eval "ac_cv_func_$ac_func=no"
7137 rm -f conftest*
7140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7143 cat >> confdefs.h <<EOF
7144 #define $ac_tr_func 1
7147 else
7148 echo "$ac_t""no" 1>&6
7150 done
7154 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7157 if test x$ac_cv_func_stat64 = xno ; then
7158 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7159 echo "configure:7160: checking for stat64 in <sys/stat.h>" >&5
7160 cat > conftest.$ac_ext <<EOF
7161 #line 7162 "configure"
7162 #include "confdefs.h"
7164 #if defined(HAVE_UNISTD_H)
7165 #include <unistd.h>
7166 #endif
7167 #include <sys/stat.h>
7169 int main() {
7170 struct stat64 st64; exit(stat64(".",&st64));
7171 ; return 0; }
7173 if { (eval echo configure:7174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7174 rm -rf conftest*
7175 ac_cv_func_stat64=yes
7176 else
7177 echo "configure: failed program was:" >&5
7178 cat conftest.$ac_ext >&5
7180 rm -f conftest*
7181 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7182 if test x$ac_cv_func_stat64 = xyes ; then
7183 cat >> confdefs.h <<\EOF
7184 #define HAVE_STAT64 1
7190 if test x$ac_cv_func_lstat64 = xno ; then
7191 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7192 echo "configure:7193: checking for lstat64 in <sys/stat.h>" >&5
7193 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure"
7195 #include "confdefs.h"
7197 #if defined(HAVE_UNISTD_H)
7198 #include <unistd.h>
7199 #endif
7200 #include <sys/stat.h>
7202 int main() {
7203 struct stat64 st64; exit(lstat64(".",&st64));
7204 ; return 0; }
7206 if { (eval echo configure:7207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7207 rm -rf conftest*
7208 ac_cv_func_lstat64=yes
7209 else
7210 echo "configure: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7213 rm -f conftest*
7214 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7215 if test x$ac_cv_func_lstat64 = xyes ; then
7216 cat >> confdefs.h <<\EOF
7217 #define HAVE_LSTAT64 Whether lstat64() is available
7223 if test x$ac_cv_func_fstat64 = xno ; then
7224 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7225 echo "configure:7226: checking for fstat64 in <sys/stat.h>" >&5
7226 cat > conftest.$ac_ext <<EOF
7227 #line 7228 "configure"
7228 #include "confdefs.h"
7230 #if defined(HAVE_UNISTD_H)
7231 #include <unistd.h>
7232 #endif
7233 #include <sys/stat.h>
7235 int main() {
7236 struct stat64 st64; exit(fstat64(0,&st64));
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 ac_cv_func_fstat64=yes
7242 else
7243 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5
7246 rm -f conftest*
7247 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7248 if test x$ac_cv_func_fstat64 = xyes ; then
7249 cat >> confdefs.h <<\EOF
7250 #define HAVE_FSTAT64 1
7256 #####################################
7257 # we might need the resolv library on some systems
7258 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7259 echo "configure:7260: checking for dn_expand in -lresolv" >&5
7260 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7262 echo $ac_n "(cached) $ac_c" 1>&6
7263 else
7264 ac_save_LIBS="$LIBS"
7265 LIBS="-lresolv $LIBS"
7266 cat > conftest.$ac_ext <<EOF
7267 #line 7268 "configure"
7268 #include "confdefs.h"
7269 /* Override any gcc2 internal prototype to avoid an error. */
7270 /* We use char because int might match the return type of a gcc2
7271 builtin and then its argument prototype would still apply. */
7272 char dn_expand();
7274 int main() {
7275 dn_expand()
7276 ; return 0; }
7278 if { (eval echo configure:7279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7279 rm -rf conftest*
7280 eval "ac_cv_lib_$ac_lib_var=yes"
7281 else
7282 echo "configure: failed program was:" >&5
7283 cat conftest.$ac_ext >&5
7284 rm -rf conftest*
7285 eval "ac_cv_lib_$ac_lib_var=no"
7287 rm -f conftest*
7288 LIBS="$ac_save_LIBS"
7291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7295 cat >> confdefs.h <<EOF
7296 #define $ac_tr_lib 1
7299 LIBS="-lresolv $LIBS"
7301 else
7302 echo "$ac_t""no" 1>&6
7307 # Check for the functions putprpwnam, set_auth_parameters,
7308 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7309 # Needed for OSF1 and HPUX.
7312 case "$LIBS" in
7313 *-lsecurity*) for ac_func in putprpwnam
7315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7316 echo "configure:7317: checking for $ac_func" >&5
7317 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7318 echo $ac_n "(cached) $ac_c" 1>&6
7319 else
7320 cat > conftest.$ac_ext <<EOF
7321 #line 7322 "configure"
7322 #include "confdefs.h"
7323 /* System header to define __stub macros and hopefully few prototypes,
7324 which can conflict with char $ac_func(); below. */
7325 #include <assert.h>
7326 /* Override any gcc2 internal prototype to avoid an error. */
7327 /* We use char because int might match the return type of a gcc2
7328 builtin and then its argument prototype would still apply. */
7329 char $ac_func();
7331 int main() {
7333 /* The GNU C library defines this for functions which it implements
7334 to always fail with ENOSYS. Some functions are actually named
7335 something starting with __ and the normal name is an alias. */
7336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7337 choke me
7338 #else
7339 $ac_func();
7340 #endif
7342 ; return 0; }
7344 if { (eval echo configure:7345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7345 rm -rf conftest*
7346 eval "ac_cv_func_$ac_func=yes"
7347 else
7348 echo "configure: failed program was:" >&5
7349 cat conftest.$ac_ext >&5
7350 rm -rf conftest*
7351 eval "ac_cv_func_$ac_func=no"
7353 rm -f conftest*
7356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7357 echo "$ac_t""yes" 1>&6
7358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7359 cat >> confdefs.h <<EOF
7360 #define $ac_tr_func 1
7363 else
7364 echo "$ac_t""no" 1>&6
7366 done
7368 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7369 echo "configure:7370: checking for putprpwnam in -lsecurity" >&5
7370 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7373 else
7374 ac_save_LIBS="$LIBS"
7375 LIBS="-lsecurity $LIBS"
7376 cat > conftest.$ac_ext <<EOF
7377 #line 7378 "configure"
7378 #include "confdefs.h"
7379 /* Override any gcc2 internal prototype to avoid an error. */
7380 /* We use char because int might match the return type of a gcc2
7381 builtin and then its argument prototype would still apply. */
7382 char putprpwnam();
7384 int main() {
7385 putprpwnam()
7386 ; return 0; }
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7389 rm -rf conftest*
7390 eval "ac_cv_lib_$ac_lib_var=yes"
7391 else
7392 echo "configure: failed program was:" >&5
7393 cat conftest.$ac_ext >&5
7394 rm -rf conftest*
7395 eval "ac_cv_lib_$ac_lib_var=no"
7397 rm -f conftest*
7398 LIBS="$ac_save_LIBS"
7401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7402 echo "$ac_t""yes" 1>&6
7403 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7404 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7405 cat >> confdefs.h <<EOF
7406 #define $ac_tr_lib 1
7409 LIBS="-lsecurity $LIBS"
7411 else
7412 echo "$ac_t""no" 1>&6
7415 for ac_func in putprpwnam
7417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7418 echo "configure:7419: checking for $ac_func" >&5
7419 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7420 echo $ac_n "(cached) $ac_c" 1>&6
7421 else
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7425 /* System header to define __stub macros and hopefully few prototypes,
7426 which can conflict with char $ac_func(); below. */
7427 #include <assert.h>
7428 /* Override any gcc2 internal prototype to avoid an error. */
7429 /* We use char because int might match the return type of a gcc2
7430 builtin and then its argument prototype would still apply. */
7431 char $ac_func();
7433 int main() {
7435 /* The GNU C library defines this for functions which it implements
7436 to always fail with ENOSYS. Some functions are actually named
7437 something starting with __ and the normal name is an alias. */
7438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7439 choke me
7440 #else
7441 $ac_func();
7442 #endif
7444 ; return 0; }
7446 if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7447 rm -rf conftest*
7448 eval "ac_cv_func_$ac_func=yes"
7449 else
7450 echo "configure: failed program was:" >&5
7451 cat conftest.$ac_ext >&5
7452 rm -rf conftest*
7453 eval "ac_cv_func_$ac_func=no"
7455 rm -f conftest*
7458 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7459 echo "$ac_t""yes" 1>&6
7460 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7461 cat >> confdefs.h <<EOF
7462 #define $ac_tr_func 1
7465 else
7466 echo "$ac_t""no" 1>&6
7468 done
7471 esac
7473 case "$LIBS" in
7474 *-lsec*) for ac_func in putprpwnam
7476 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7477 echo "configure:7478: checking for $ac_func" >&5
7478 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7479 echo $ac_n "(cached) $ac_c" 1>&6
7480 else
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func(); below. */
7486 #include <assert.h>
7487 /* Override any gcc2 internal prototype to avoid an error. */
7488 /* We use char because int might match the return type of a gcc2
7489 builtin and then its argument prototype would still apply. */
7490 char $ac_func();
7492 int main() {
7494 /* The GNU C library defines this for functions which it implements
7495 to always fail with ENOSYS. Some functions are actually named
7496 something starting with __ and the normal name is an alias. */
7497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7498 choke me
7499 #else
7500 $ac_func();
7501 #endif
7503 ; return 0; }
7505 if { (eval echo configure:7506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7506 rm -rf conftest*
7507 eval "ac_cv_func_$ac_func=yes"
7508 else
7509 echo "configure: failed program was:" >&5
7510 cat conftest.$ac_ext >&5
7511 rm -rf conftest*
7512 eval "ac_cv_func_$ac_func=no"
7514 rm -f conftest*
7517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7518 echo "$ac_t""yes" 1>&6
7519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7520 cat >> confdefs.h <<EOF
7521 #define $ac_tr_func 1
7524 else
7525 echo "$ac_t""no" 1>&6
7527 done
7529 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7530 echo "configure:7531: checking for putprpwnam in -lsec" >&5
7531 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7532 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7533 echo $ac_n "(cached) $ac_c" 1>&6
7534 else
7535 ac_save_LIBS="$LIBS"
7536 LIBS="-lsec $LIBS"
7537 cat > conftest.$ac_ext <<EOF
7538 #line 7539 "configure"
7539 #include "confdefs.h"
7540 /* Override any gcc2 internal prototype to avoid an error. */
7541 /* We use char because int might match the return type of a gcc2
7542 builtin and then its argument prototype would still apply. */
7543 char putprpwnam();
7545 int main() {
7546 putprpwnam()
7547 ; return 0; }
7549 if { (eval echo configure:7550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7550 rm -rf conftest*
7551 eval "ac_cv_lib_$ac_lib_var=yes"
7552 else
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 rm -rf conftest*
7556 eval "ac_cv_lib_$ac_lib_var=no"
7558 rm -f conftest*
7559 LIBS="$ac_save_LIBS"
7562 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7563 echo "$ac_t""yes" 1>&6
7564 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7565 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7566 cat >> confdefs.h <<EOF
7567 #define $ac_tr_lib 1
7570 LIBS="-lsec $LIBS"
7572 else
7573 echo "$ac_t""no" 1>&6
7576 for ac_func in putprpwnam
7578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7579 echo "configure:7580: checking for $ac_func" >&5
7580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7582 else
7583 cat > conftest.$ac_ext <<EOF
7584 #line 7585 "configure"
7585 #include "confdefs.h"
7586 /* System header to define __stub macros and hopefully few prototypes,
7587 which can conflict with char $ac_func(); below. */
7588 #include <assert.h>
7589 /* Override any gcc2 internal prototype to avoid an error. */
7590 /* We use char because int might match the return type of a gcc2
7591 builtin and then its argument prototype would still apply. */
7592 char $ac_func();
7594 int main() {
7596 /* The GNU C library defines this for functions which it implements
7597 to always fail with ENOSYS. Some functions are actually named
7598 something starting with __ and the normal name is an alias. */
7599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7600 choke me
7601 #else
7602 $ac_func();
7603 #endif
7605 ; return 0; }
7607 if { (eval echo configure:7608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7608 rm -rf conftest*
7609 eval "ac_cv_func_$ac_func=yes"
7610 else
7611 echo "configure: failed program was:" >&5
7612 cat conftest.$ac_ext >&5
7613 rm -rf conftest*
7614 eval "ac_cv_func_$ac_func=no"
7616 rm -f conftest*
7619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7620 echo "$ac_t""yes" 1>&6
7621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7622 cat >> confdefs.h <<EOF
7623 #define $ac_tr_func 1
7626 else
7627 echo "$ac_t""no" 1>&6
7629 done
7632 esac
7635 case "$LIBS" in
7636 *-lsecurity*) for ac_func in set_auth_parameters
7638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7639 echo "configure:7640: checking for $ac_func" >&5
7640 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7641 echo $ac_n "(cached) $ac_c" 1>&6
7642 else
7643 cat > conftest.$ac_ext <<EOF
7644 #line 7645 "configure"
7645 #include "confdefs.h"
7646 /* System header to define __stub macros and hopefully few prototypes,
7647 which can conflict with char $ac_func(); below. */
7648 #include <assert.h>
7649 /* Override any gcc2 internal prototype to avoid an error. */
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652 char $ac_func();
7654 int main() {
7656 /* The GNU C library defines this for functions which it implements
7657 to always fail with ENOSYS. Some functions are actually named
7658 something starting with __ and the normal name is an alias. */
7659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7660 choke me
7661 #else
7662 $ac_func();
7663 #endif
7665 ; return 0; }
7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7668 rm -rf conftest*
7669 eval "ac_cv_func_$ac_func=yes"
7670 else
7671 echo "configure: failed program was:" >&5
7672 cat conftest.$ac_ext >&5
7673 rm -rf conftest*
7674 eval "ac_cv_func_$ac_func=no"
7676 rm -f conftest*
7679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7680 echo "$ac_t""yes" 1>&6
7681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7682 cat >> confdefs.h <<EOF
7683 #define $ac_tr_func 1
7686 else
7687 echo "$ac_t""no" 1>&6
7689 done
7691 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7692 echo "configure:7693: checking for set_auth_parameters in -lsecurity" >&5
7693 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7695 echo $ac_n "(cached) $ac_c" 1>&6
7696 else
7697 ac_save_LIBS="$LIBS"
7698 LIBS="-lsecurity $LIBS"
7699 cat > conftest.$ac_ext <<EOF
7700 #line 7701 "configure"
7701 #include "confdefs.h"
7702 /* Override any gcc2 internal prototype to avoid an error. */
7703 /* We use char because int might match the return type of a gcc2
7704 builtin and then its argument prototype would still apply. */
7705 char set_auth_parameters();
7707 int main() {
7708 set_auth_parameters()
7709 ; return 0; }
7711 if { (eval echo configure:7712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7712 rm -rf conftest*
7713 eval "ac_cv_lib_$ac_lib_var=yes"
7714 else
7715 echo "configure: failed program was:" >&5
7716 cat conftest.$ac_ext >&5
7717 rm -rf conftest*
7718 eval "ac_cv_lib_$ac_lib_var=no"
7720 rm -f conftest*
7721 LIBS="$ac_save_LIBS"
7724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7725 echo "$ac_t""yes" 1>&6
7726 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7727 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7728 cat >> confdefs.h <<EOF
7729 #define $ac_tr_lib 1
7732 LIBS="-lsecurity $LIBS"
7734 else
7735 echo "$ac_t""no" 1>&6
7738 for ac_func in set_auth_parameters
7740 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7741 echo "configure:7742: checking for $ac_func" >&5
7742 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7744 else
7745 cat > conftest.$ac_ext <<EOF
7746 #line 7747 "configure"
7747 #include "confdefs.h"
7748 /* System header to define __stub macros and hopefully few prototypes,
7749 which can conflict with char $ac_func(); below. */
7750 #include <assert.h>
7751 /* Override any gcc2 internal prototype to avoid an error. */
7752 /* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7754 char $ac_func();
7756 int main() {
7758 /* The GNU C library defines this for functions which it implements
7759 to always fail with ENOSYS. Some functions are actually named
7760 something starting with __ and the normal name is an alias. */
7761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7762 choke me
7763 #else
7764 $ac_func();
7765 #endif
7767 ; return 0; }
7769 if { (eval echo configure:7770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7770 rm -rf conftest*
7771 eval "ac_cv_func_$ac_func=yes"
7772 else
7773 echo "configure: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7775 rm -rf conftest*
7776 eval "ac_cv_func_$ac_func=no"
7778 rm -f conftest*
7781 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7782 echo "$ac_t""yes" 1>&6
7783 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7784 cat >> confdefs.h <<EOF
7785 #define $ac_tr_func 1
7788 else
7789 echo "$ac_t""no" 1>&6
7791 done
7794 esac
7796 case "$LIBS" in
7797 *-lsec*) for ac_func in set_auth_parameters
7799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7800 echo "configure:7801: checking for $ac_func" >&5
7801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7803 else
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7807 /* System header to define __stub macros and hopefully few prototypes,
7808 which can conflict with char $ac_func(); below. */
7809 #include <assert.h>
7810 /* Override any gcc2 internal prototype to avoid an error. */
7811 /* We use char because int might match the return type of a gcc2
7812 builtin and then its argument prototype would still apply. */
7813 char $ac_func();
7815 int main() {
7817 /* The GNU C library defines this for functions which it implements
7818 to always fail with ENOSYS. Some functions are actually named
7819 something starting with __ and the normal name is an alias. */
7820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7821 choke me
7822 #else
7823 $ac_func();
7824 #endif
7826 ; return 0; }
7828 if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7829 rm -rf conftest*
7830 eval "ac_cv_func_$ac_func=yes"
7831 else
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7834 rm -rf conftest*
7835 eval "ac_cv_func_$ac_func=no"
7837 rm -f conftest*
7840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7841 echo "$ac_t""yes" 1>&6
7842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7843 cat >> confdefs.h <<EOF
7844 #define $ac_tr_func 1
7847 else
7848 echo "$ac_t""no" 1>&6
7850 done
7852 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7853 echo "configure:7854: checking for set_auth_parameters in -lsec" >&5
7854 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7857 else
7858 ac_save_LIBS="$LIBS"
7859 LIBS="-lsec $LIBS"
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7863 /* Override any gcc2 internal prototype to avoid an error. */
7864 /* We use char because int might match the return type of a gcc2
7865 builtin and then its argument prototype would still apply. */
7866 char set_auth_parameters();
7868 int main() {
7869 set_auth_parameters()
7870 ; return 0; }
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7873 rm -rf conftest*
7874 eval "ac_cv_lib_$ac_lib_var=yes"
7875 else
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7878 rm -rf conftest*
7879 eval "ac_cv_lib_$ac_lib_var=no"
7881 rm -f conftest*
7882 LIBS="$ac_save_LIBS"
7885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7886 echo "$ac_t""yes" 1>&6
7887 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7889 cat >> confdefs.h <<EOF
7890 #define $ac_tr_lib 1
7893 LIBS="-lsec $LIBS"
7895 else
7896 echo "$ac_t""no" 1>&6
7899 for ac_func in set_auth_parameters
7901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7902 echo "configure:7903: checking for $ac_func" >&5
7903 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7905 else
7906 cat > conftest.$ac_ext <<EOF
7907 #line 7908 "configure"
7908 #include "confdefs.h"
7909 /* System header to define __stub macros and hopefully few prototypes,
7910 which can conflict with char $ac_func(); below. */
7911 #include <assert.h>
7912 /* Override any gcc2 internal prototype to avoid an error. */
7913 /* We use char because int might match the return type of a gcc2
7914 builtin and then its argument prototype would still apply. */
7915 char $ac_func();
7917 int main() {
7919 /* The GNU C library defines this for functions which it implements
7920 to always fail with ENOSYS. Some functions are actually named
7921 something starting with __ and the normal name is an alias. */
7922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7923 choke me
7924 #else
7925 $ac_func();
7926 #endif
7928 ; return 0; }
7930 if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7931 rm -rf conftest*
7932 eval "ac_cv_func_$ac_func=yes"
7933 else
7934 echo "configure: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7936 rm -rf conftest*
7937 eval "ac_cv_func_$ac_func=no"
7939 rm -f conftest*
7942 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7943 echo "$ac_t""yes" 1>&6
7944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7945 cat >> confdefs.h <<EOF
7946 #define $ac_tr_func 1
7949 else
7950 echo "$ac_t""no" 1>&6
7952 done
7955 esac
7958 # UnixWare 7.x has its getspnam in -lgen
7959 case "$LIBS" in
7960 *-lgen*) for ac_func in getspnam
7962 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7963 echo "configure:7964: checking for $ac_func" >&5
7964 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7966 else
7967 cat > conftest.$ac_ext <<EOF
7968 #line 7969 "configure"
7969 #include "confdefs.h"
7970 /* System header to define __stub macros and hopefully few prototypes,
7971 which can conflict with char $ac_func(); below. */
7972 #include <assert.h>
7973 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976 char $ac_func();
7978 int main() {
7980 /* The GNU C library defines this for functions which it implements
7981 to always fail with ENOSYS. Some functions are actually named
7982 something starting with __ and the normal name is an alias. */
7983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7984 choke me
7985 #else
7986 $ac_func();
7987 #endif
7989 ; return 0; }
7991 if { (eval echo configure:7992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7992 rm -rf conftest*
7993 eval "ac_cv_func_$ac_func=yes"
7994 else
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
7997 rm -rf conftest*
7998 eval "ac_cv_func_$ac_func=no"
8000 rm -f conftest*
8003 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8004 echo "$ac_t""yes" 1>&6
8005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8006 cat >> confdefs.h <<EOF
8007 #define $ac_tr_func 1
8010 else
8011 echo "$ac_t""no" 1>&6
8013 done
8015 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
8016 echo "configure:8017: checking for getspnam in -lgen" >&5
8017 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
8018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8020 else
8021 ac_save_LIBS="$LIBS"
8022 LIBS="-lgen $LIBS"
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8026 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8029 char getspnam();
8031 int main() {
8032 getspnam()
8033 ; return 0; }
8035 if { (eval echo configure:8036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8036 rm -rf conftest*
8037 eval "ac_cv_lib_$ac_lib_var=yes"
8038 else
8039 echo "configure: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 rm -rf conftest*
8042 eval "ac_cv_lib_$ac_lib_var=no"
8044 rm -f conftest*
8045 LIBS="$ac_save_LIBS"
8048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8049 echo "$ac_t""yes" 1>&6
8050 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8051 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8052 cat >> confdefs.h <<EOF
8053 #define $ac_tr_lib 1
8056 LIBS="-lgen $LIBS"
8058 else
8059 echo "$ac_t""no" 1>&6
8062 for ac_func in getspnam
8064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8065 echo "configure:8066: checking for $ac_func" >&5
8066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8067 echo $ac_n "(cached) $ac_c" 1>&6
8068 else
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8072 /* System header to define __stub macros and hopefully few prototypes,
8073 which can conflict with char $ac_func(); below. */
8074 #include <assert.h>
8075 /* Override any gcc2 internal prototype to avoid an error. */
8076 /* We use char because int might match the return type of a gcc2
8077 builtin and then its argument prototype would still apply. */
8078 char $ac_func();
8080 int main() {
8082 /* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8086 choke me
8087 #else
8088 $ac_func();
8089 #endif
8091 ; return 0; }
8093 if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8094 rm -rf conftest*
8095 eval "ac_cv_func_$ac_func=yes"
8096 else
8097 echo "configure: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 rm -rf conftest*
8100 eval "ac_cv_func_$ac_func=no"
8102 rm -f conftest*
8105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8106 echo "$ac_t""yes" 1>&6
8107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8108 cat >> confdefs.h <<EOF
8109 #define $ac_tr_func 1
8112 else
8113 echo "$ac_t""no" 1>&6
8115 done
8118 esac
8121 case "$LIBS" in
8122 *-lsecurity*) for ac_func in getspnam
8124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8125 echo "configure:8126: checking for $ac_func" >&5
8126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8128 else
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 /* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char $ac_func(); below. */
8134 #include <assert.h>
8135 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */
8138 char $ac_func();
8140 int main() {
8142 /* The GNU C library defines this for functions which it implements
8143 to always fail with ENOSYS. Some functions are actually named
8144 something starting with __ and the normal name is an alias. */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 choke me
8147 #else
8148 $ac_func();
8149 #endif
8151 ; return 0; }
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8154 rm -rf conftest*
8155 eval "ac_cv_func_$ac_func=yes"
8156 else
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8159 rm -rf conftest*
8160 eval "ac_cv_func_$ac_func=no"
8162 rm -f conftest*
8165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8166 echo "$ac_t""yes" 1>&6
8167 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8168 cat >> confdefs.h <<EOF
8169 #define $ac_tr_func 1
8172 else
8173 echo "$ac_t""no" 1>&6
8175 done
8177 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8178 echo "configure:8179: checking for getspnam in -lsecurity" >&5
8179 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8181 echo $ac_n "(cached) $ac_c" 1>&6
8182 else
8183 ac_save_LIBS="$LIBS"
8184 LIBS="-lsecurity $LIBS"
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 /* Override any gcc2 internal prototype to avoid an error. */
8189 /* We use char because int might match the return type of a gcc2
8190 builtin and then its argument prototype would still apply. */
8191 char getspnam();
8193 int main() {
8194 getspnam()
8195 ; return 0; }
8197 if { (eval echo configure:8198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8198 rm -rf conftest*
8199 eval "ac_cv_lib_$ac_lib_var=yes"
8200 else
8201 echo "configure: failed program was:" >&5
8202 cat conftest.$ac_ext >&5
8203 rm -rf conftest*
8204 eval "ac_cv_lib_$ac_lib_var=no"
8206 rm -f conftest*
8207 LIBS="$ac_save_LIBS"
8210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8211 echo "$ac_t""yes" 1>&6
8212 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8213 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8214 cat >> confdefs.h <<EOF
8215 #define $ac_tr_lib 1
8218 LIBS="-lsecurity $LIBS"
8220 else
8221 echo "$ac_t""no" 1>&6
8224 for ac_func in getspnam
8226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8227 echo "configure:8228: checking for $ac_func" >&5
8228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8230 else
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234 /* System header to define __stub macros and hopefully few prototypes,
8235 which can conflict with char $ac_func(); below. */
8236 #include <assert.h>
8237 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8240 char $ac_func();
8242 int main() {
8244 /* The GNU C library defines this for functions which it implements
8245 to always fail with ENOSYS. Some functions are actually named
8246 something starting with __ and the normal name is an alias. */
8247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8248 choke me
8249 #else
8250 $ac_func();
8251 #endif
8253 ; return 0; }
8255 if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8256 rm -rf conftest*
8257 eval "ac_cv_func_$ac_func=yes"
8258 else
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8261 rm -rf conftest*
8262 eval "ac_cv_func_$ac_func=no"
8264 rm -f conftest*
8267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8268 echo "$ac_t""yes" 1>&6
8269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8270 cat >> confdefs.h <<EOF
8271 #define $ac_tr_func 1
8274 else
8275 echo "$ac_t""no" 1>&6
8277 done
8280 esac
8282 case "$LIBS" in
8283 *-lsec*) for ac_func in getspnam
8285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8286 echo "configure:8287: checking for $ac_func" >&5
8287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8289 else
8290 cat > conftest.$ac_ext <<EOF
8291 #line 8292 "configure"
8292 #include "confdefs.h"
8293 /* System header to define __stub macros and hopefully few prototypes,
8294 which can conflict with char $ac_func(); below. */
8295 #include <assert.h>
8296 /* Override any gcc2 internal prototype to avoid an error. */
8297 /* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8299 char $ac_func();
8301 int main() {
8303 /* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8307 choke me
8308 #else
8309 $ac_func();
8310 #endif
8312 ; return 0; }
8314 if { (eval echo configure:8315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 rm -rf conftest*
8316 eval "ac_cv_func_$ac_func=yes"
8317 else
8318 echo "configure: failed program was:" >&5
8319 cat conftest.$ac_ext >&5
8320 rm -rf conftest*
8321 eval "ac_cv_func_$ac_func=no"
8323 rm -f conftest*
8326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8327 echo "$ac_t""yes" 1>&6
8328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8329 cat >> confdefs.h <<EOF
8330 #define $ac_tr_func 1
8333 else
8334 echo "$ac_t""no" 1>&6
8336 done
8338 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8339 echo "configure:8340: checking for getspnam in -lsec" >&5
8340 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8342 echo $ac_n "(cached) $ac_c" 1>&6
8343 else
8344 ac_save_LIBS="$LIBS"
8345 LIBS="-lsec $LIBS"
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8352 char getspnam();
8354 int main() {
8355 getspnam()
8356 ; return 0; }
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8359 rm -rf conftest*
8360 eval "ac_cv_lib_$ac_lib_var=yes"
8361 else
8362 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5
8364 rm -rf conftest*
8365 eval "ac_cv_lib_$ac_lib_var=no"
8367 rm -f conftest*
8368 LIBS="$ac_save_LIBS"
8371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8373 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8375 cat >> confdefs.h <<EOF
8376 #define $ac_tr_lib 1
8379 LIBS="-lsec $LIBS"
8381 else
8382 echo "$ac_t""no" 1>&6
8385 for ac_func in getspnam
8387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8388 echo "configure:8389: checking for $ac_func" >&5
8389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8392 cat > conftest.$ac_ext <<EOF
8393 #line 8394 "configure"
8394 #include "confdefs.h"
8395 /* System header to define __stub macros and hopefully few prototypes,
8396 which can conflict with char $ac_func(); below. */
8397 #include <assert.h>
8398 /* Override any gcc2 internal prototype to avoid an error. */
8399 /* We use char because int might match the return type of a gcc2
8400 builtin and then its argument prototype would still apply. */
8401 char $ac_func();
8403 int main() {
8405 /* The GNU C library defines this for functions which it implements
8406 to always fail with ENOSYS. Some functions are actually named
8407 something starting with __ and the normal name is an alias. */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8409 choke me
8410 #else
8411 $ac_func();
8412 #endif
8414 ; return 0; }
8416 if { (eval echo configure:8417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8417 rm -rf conftest*
8418 eval "ac_cv_func_$ac_func=yes"
8419 else
8420 echo "configure: failed program was:" >&5
8421 cat conftest.$ac_ext >&5
8422 rm -rf conftest*
8423 eval "ac_cv_func_$ac_func=no"
8425 rm -f conftest*
8428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8431 cat >> confdefs.h <<EOF
8432 #define $ac_tr_func 1
8435 else
8436 echo "$ac_t""no" 1>&6
8438 done
8441 esac
8444 case "$LIBS" in
8445 *-lsecurity*) for ac_func in bigcrypt
8447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8448 echo "configure:8449: checking for $ac_func" >&5
8449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8451 else
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8455 /* System header to define __stub macros and hopefully few prototypes,
8456 which can conflict with char $ac_func(); below. */
8457 #include <assert.h>
8458 /* Override any gcc2 internal prototype to avoid an error. */
8459 /* We use char because int might match the return type of a gcc2
8460 builtin and then its argument prototype would still apply. */
8461 char $ac_func();
8463 int main() {
8465 /* The GNU C library defines this for functions which it implements
8466 to always fail with ENOSYS. Some functions are actually named
8467 something starting with __ and the normal name is an alias. */
8468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8469 choke me
8470 #else
8471 $ac_func();
8472 #endif
8474 ; return 0; }
8476 if { (eval echo configure:8477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8477 rm -rf conftest*
8478 eval "ac_cv_func_$ac_func=yes"
8479 else
8480 echo "configure: failed program was:" >&5
8481 cat conftest.$ac_ext >&5
8482 rm -rf conftest*
8483 eval "ac_cv_func_$ac_func=no"
8485 rm -f conftest*
8488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8489 echo "$ac_t""yes" 1>&6
8490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8491 cat >> confdefs.h <<EOF
8492 #define $ac_tr_func 1
8495 else
8496 echo "$ac_t""no" 1>&6
8498 done
8500 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8501 echo "configure:8502: checking for bigcrypt in -lsecurity" >&5
8502 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8504 echo $ac_n "(cached) $ac_c" 1>&6
8505 else
8506 ac_save_LIBS="$LIBS"
8507 LIBS="-lsecurity $LIBS"
8508 cat > conftest.$ac_ext <<EOF
8509 #line 8510 "configure"
8510 #include "confdefs.h"
8511 /* Override any gcc2 internal prototype to avoid an error. */
8512 /* We use char because int might match the return type of a gcc2
8513 builtin and then its argument prototype would still apply. */
8514 char bigcrypt();
8516 int main() {
8517 bigcrypt()
8518 ; return 0; }
8520 if { (eval echo configure:8521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8521 rm -rf conftest*
8522 eval "ac_cv_lib_$ac_lib_var=yes"
8523 else
8524 echo "configure: failed program was:" >&5
8525 cat conftest.$ac_ext >&5
8526 rm -rf conftest*
8527 eval "ac_cv_lib_$ac_lib_var=no"
8529 rm -f conftest*
8530 LIBS="$ac_save_LIBS"
8533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8534 echo "$ac_t""yes" 1>&6
8535 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8536 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8537 cat >> confdefs.h <<EOF
8538 #define $ac_tr_lib 1
8541 LIBS="-lsecurity $LIBS"
8543 else
8544 echo "$ac_t""no" 1>&6
8547 for ac_func in bigcrypt
8549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8550 echo "configure:8551: checking for $ac_func" >&5
8551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8552 echo $ac_n "(cached) $ac_c" 1>&6
8553 else
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* System header to define __stub macros and hopefully few prototypes,
8558 which can conflict with char $ac_func(); below. */
8559 #include <assert.h>
8560 /* Override any gcc2 internal prototype to avoid an error. */
8561 /* We use char because int might match the return type of a gcc2
8562 builtin and then its argument prototype would still apply. */
8563 char $ac_func();
8565 int main() {
8567 /* The GNU C library defines this for functions which it implements
8568 to always fail with ENOSYS. Some functions are actually named
8569 something starting with __ and the normal name is an alias. */
8570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8571 choke me
8572 #else
8573 $ac_func();
8574 #endif
8576 ; return 0; }
8578 if { (eval echo configure:8579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8579 rm -rf conftest*
8580 eval "ac_cv_func_$ac_func=yes"
8581 else
8582 echo "configure: failed program was:" >&5
8583 cat conftest.$ac_ext >&5
8584 rm -rf conftest*
8585 eval "ac_cv_func_$ac_func=no"
8587 rm -f conftest*
8590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8591 echo "$ac_t""yes" 1>&6
8592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8593 cat >> confdefs.h <<EOF
8594 #define $ac_tr_func 1
8597 else
8598 echo "$ac_t""no" 1>&6
8600 done
8603 esac
8605 case "$LIBS" in
8606 *-lsec*) for ac_func in bigcrypt
8608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8609 echo "configure:8610: checking for $ac_func" >&5
8610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8612 else
8613 cat > conftest.$ac_ext <<EOF
8614 #line 8615 "configure"
8615 #include "confdefs.h"
8616 /* System header to define __stub macros and hopefully few prototypes,
8617 which can conflict with char $ac_func(); below. */
8618 #include <assert.h>
8619 /* Override any gcc2 internal prototype to avoid an error. */
8620 /* We use char because int might match the return type of a gcc2
8621 builtin and then its argument prototype would still apply. */
8622 char $ac_func();
8624 int main() {
8626 /* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8630 choke me
8631 #else
8632 $ac_func();
8633 #endif
8635 ; return 0; }
8637 if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8638 rm -rf conftest*
8639 eval "ac_cv_func_$ac_func=yes"
8640 else
8641 echo "configure: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8643 rm -rf conftest*
8644 eval "ac_cv_func_$ac_func=no"
8646 rm -f conftest*
8649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8652 cat >> confdefs.h <<EOF
8653 #define $ac_tr_func 1
8656 else
8657 echo "$ac_t""no" 1>&6
8659 done
8661 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8662 echo "configure:8663: checking for bigcrypt in -lsec" >&5
8663 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8664 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8665 echo $ac_n "(cached) $ac_c" 1>&6
8666 else
8667 ac_save_LIBS="$LIBS"
8668 LIBS="-lsec $LIBS"
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 /* Override any gcc2 internal prototype to avoid an error. */
8673 /* We use char because int might match the return type of a gcc2
8674 builtin and then its argument prototype would still apply. */
8675 char bigcrypt();
8677 int main() {
8678 bigcrypt()
8679 ; return 0; }
8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8682 rm -rf conftest*
8683 eval "ac_cv_lib_$ac_lib_var=yes"
8684 else
8685 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5
8687 rm -rf conftest*
8688 eval "ac_cv_lib_$ac_lib_var=no"
8690 rm -f conftest*
8691 LIBS="$ac_save_LIBS"
8694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8695 echo "$ac_t""yes" 1>&6
8696 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8697 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8698 cat >> confdefs.h <<EOF
8699 #define $ac_tr_lib 1
8702 LIBS="-lsec $LIBS"
8704 else
8705 echo "$ac_t""no" 1>&6
8708 for ac_func in bigcrypt
8710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8711 echo "configure:8712: checking for $ac_func" >&5
8712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8713 echo $ac_n "(cached) $ac_c" 1>&6
8714 else
8715 cat > conftest.$ac_ext <<EOF
8716 #line 8717 "configure"
8717 #include "confdefs.h"
8718 /* System header to define __stub macros and hopefully few prototypes,
8719 which can conflict with char $ac_func(); below. */
8720 #include <assert.h>
8721 /* Override any gcc2 internal prototype to avoid an error. */
8722 /* We use char because int might match the return type of a gcc2
8723 builtin and then its argument prototype would still apply. */
8724 char $ac_func();
8726 int main() {
8728 /* The GNU C library defines this for functions which it implements
8729 to always fail with ENOSYS. Some functions are actually named
8730 something starting with __ and the normal name is an alias. */
8731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8732 choke me
8733 #else
8734 $ac_func();
8735 #endif
8737 ; return 0; }
8739 if { (eval echo configure:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8740 rm -rf conftest*
8741 eval "ac_cv_func_$ac_func=yes"
8742 else
8743 echo "configure: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8745 rm -rf conftest*
8746 eval "ac_cv_func_$ac_func=no"
8748 rm -f conftest*
8751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8752 echo "$ac_t""yes" 1>&6
8753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8754 cat >> confdefs.h <<EOF
8755 #define $ac_tr_func 1
8758 else
8759 echo "$ac_t""no" 1>&6
8761 done
8764 esac
8767 case "$LIBS" in
8768 *-lsecurity*) for ac_func in getprpwnam
8770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8771 echo "configure:8772: checking for $ac_func" >&5
8772 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8773 echo $ac_n "(cached) $ac_c" 1>&6
8774 else
8775 cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure"
8777 #include "confdefs.h"
8778 /* System header to define __stub macros and hopefully few prototypes,
8779 which can conflict with char $ac_func(); below. */
8780 #include <assert.h>
8781 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8784 char $ac_func();
8786 int main() {
8788 /* The GNU C library defines this for functions which it implements
8789 to always fail with ENOSYS. Some functions are actually named
8790 something starting with __ and the normal name is an alias. */
8791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8792 choke me
8793 #else
8794 $ac_func();
8795 #endif
8797 ; return 0; }
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8800 rm -rf conftest*
8801 eval "ac_cv_func_$ac_func=yes"
8802 else
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8805 rm -rf conftest*
8806 eval "ac_cv_func_$ac_func=no"
8808 rm -f conftest*
8811 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8812 echo "$ac_t""yes" 1>&6
8813 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8814 cat >> confdefs.h <<EOF
8815 #define $ac_tr_func 1
8818 else
8819 echo "$ac_t""no" 1>&6
8821 done
8823 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8824 echo "configure:8825: checking for getprpwnam in -lsecurity" >&5
8825 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8828 else
8829 ac_save_LIBS="$LIBS"
8830 LIBS="-lsecurity $LIBS"
8831 cat > conftest.$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8834 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8837 char getprpwnam();
8839 int main() {
8840 getprpwnam()
8841 ; return 0; }
8843 if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 rm -rf conftest*
8845 eval "ac_cv_lib_$ac_lib_var=yes"
8846 else
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 rm -rf conftest*
8850 eval "ac_cv_lib_$ac_lib_var=no"
8852 rm -f conftest*
8853 LIBS="$ac_save_LIBS"
8856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8857 echo "$ac_t""yes" 1>&6
8858 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8860 cat >> confdefs.h <<EOF
8861 #define $ac_tr_lib 1
8864 LIBS="-lsecurity $LIBS"
8866 else
8867 echo "$ac_t""no" 1>&6
8870 for ac_func in getprpwnam
8872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8873 echo "configure:8874: checking for $ac_func" >&5
8874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8876 else
8877 cat > conftest.$ac_ext <<EOF
8878 #line 8879 "configure"
8879 #include "confdefs.h"
8880 /* System header to define __stub macros and hopefully few prototypes,
8881 which can conflict with char $ac_func(); below. */
8882 #include <assert.h>
8883 /* Override any gcc2 internal prototype to avoid an error. */
8884 /* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8886 char $ac_func();
8888 int main() {
8890 /* The GNU C library defines this for functions which it implements
8891 to always fail with ENOSYS. Some functions are actually named
8892 something starting with __ and the normal name is an alias. */
8893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8894 choke me
8895 #else
8896 $ac_func();
8897 #endif
8899 ; return 0; }
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 rm -rf conftest*
8903 eval "ac_cv_func_$ac_func=yes"
8904 else
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8907 rm -rf conftest*
8908 eval "ac_cv_func_$ac_func=no"
8910 rm -f conftest*
8913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8914 echo "$ac_t""yes" 1>&6
8915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8916 cat >> confdefs.h <<EOF
8917 #define $ac_tr_func 1
8920 else
8921 echo "$ac_t""no" 1>&6
8923 done
8926 esac
8928 case "$LIBS" in
8929 *-lsec*) for ac_func in getprpwnam
8931 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8932 echo "configure:8933: checking for $ac_func" >&5
8933 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935 else
8936 cat > conftest.$ac_ext <<EOF
8937 #line 8938 "configure"
8938 #include "confdefs.h"
8939 /* System header to define __stub macros and hopefully few prototypes,
8940 which can conflict with char $ac_func(); below. */
8941 #include <assert.h>
8942 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8945 char $ac_func();
8947 int main() {
8949 /* The GNU C library defines this for functions which it implements
8950 to always fail with ENOSYS. Some functions are actually named
8951 something starting with __ and the normal name is an alias. */
8952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8953 choke me
8954 #else
8955 $ac_func();
8956 #endif
8958 ; return 0; }
8960 if { (eval echo configure:8961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8961 rm -rf conftest*
8962 eval "ac_cv_func_$ac_func=yes"
8963 else
8964 echo "configure: failed program was:" >&5
8965 cat conftest.$ac_ext >&5
8966 rm -rf conftest*
8967 eval "ac_cv_func_$ac_func=no"
8969 rm -f conftest*
8972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8973 echo "$ac_t""yes" 1>&6
8974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8975 cat >> confdefs.h <<EOF
8976 #define $ac_tr_func 1
8979 else
8980 echo "$ac_t""no" 1>&6
8982 done
8984 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8985 echo "configure:8986: checking for getprpwnam in -lsec" >&5
8986 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989 else
8990 ac_save_LIBS="$LIBS"
8991 LIBS="-lsec $LIBS"
8992 cat > conftest.$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 /* We use char because int might match the return type of a gcc2
8997 builtin and then its argument prototype would still apply. */
8998 char getprpwnam();
9000 int main() {
9001 getprpwnam()
9002 ; return 0; }
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9005 rm -rf conftest*
9006 eval "ac_cv_lib_$ac_lib_var=yes"
9007 else
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9010 rm -rf conftest*
9011 eval "ac_cv_lib_$ac_lib_var=no"
9013 rm -f conftest*
9014 LIBS="$ac_save_LIBS"
9017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9021 cat >> confdefs.h <<EOF
9022 #define $ac_tr_lib 1
9025 LIBS="-lsec $LIBS"
9027 else
9028 echo "$ac_t""no" 1>&6
9031 for ac_func in getprpwnam
9033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9034 echo "configure:9035: checking for $ac_func" >&5
9035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9037 else
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 /* System header to define __stub macros and hopefully few prototypes,
9042 which can conflict with char $ac_func(); below. */
9043 #include <assert.h>
9044 /* Override any gcc2 internal prototype to avoid an error. */
9045 /* We use char because int might match the return type of a gcc2
9046 builtin and then its argument prototype would still apply. */
9047 char $ac_func();
9049 int main() {
9051 /* The GNU C library defines this for functions which it implements
9052 to always fail with ENOSYS. Some functions are actually named
9053 something starting with __ and the normal name is an alias. */
9054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9055 choke me
9056 #else
9057 $ac_func();
9058 #endif
9060 ; return 0; }
9062 if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9063 rm -rf conftest*
9064 eval "ac_cv_func_$ac_func=yes"
9065 else
9066 echo "configure: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 rm -rf conftest*
9069 eval "ac_cv_func_$ac_func=no"
9071 rm -f conftest*
9074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9075 echo "$ac_t""yes" 1>&6
9076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9077 cat >> confdefs.h <<EOF
9078 #define $ac_tr_func 1
9081 else
9082 echo "$ac_t""no" 1>&6
9084 done
9087 esac
9090 # this bit needs to be modified for each OS that is suported by
9091 # smbwrapper. You need to specify how to created a shared library and
9092 # how to compile C code to produce PIC object files
9094 # these are the defaults, good for lots of systems
9095 HOST_OS="$host_os"
9096 LDSHFLAGS="-shared"
9097 SONAMEFLAG="#"
9098 SHLD="\${CC}"
9099 PICFLAG=""
9100 PICSUFFIX="po"
9101 POBAD_CC="#"
9102 SHLIBEXT="so"
9103 # Assume non-shared by default and override below
9104 BLDSHARED="false"
9105 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9106 echo "configure:9107: checking ability to build shared libraries" >&5
9108 # and these are for particular systems
9109 case "$host_os" in
9110 *linux*) cat >> confdefs.h <<\EOF
9111 #define LINUX 1
9114 BLDSHARED="true"
9115 LDSHFLAGS="-shared"
9116 DYNEXP="-Wl,--export-dynamic"
9117 PICFLAG="-fPIC"
9118 SONAMEFLAG="-Wl,-soname="
9119 cat >> confdefs.h <<\EOF
9120 #define STAT_ST_BLOCKSIZE 512
9124 *solaris*) cat >> confdefs.h <<\EOF
9125 #define SUNOS5 1
9128 BLDSHARED="true"
9129 LDSHFLAGS="-G"
9130 SONAMEFLAG="-h "
9131 if test "${GCC}" = "yes"; then
9132 PICFLAG="-fPIC"
9133 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9134 DYNEXP="-Wl,-E"
9136 else
9137 PICFLAG="-KPIC"
9138 ## ${CFLAGS} added for building 64-bit shared
9139 ## libs using Sun's Compiler
9140 LDSHFLAGS="-G \${CFLAGS}"
9141 POBAD_CC=""
9142 PICSUFFIX="po.o"
9144 cat >> confdefs.h <<\EOF
9145 #define STAT_ST_BLOCKSIZE 512
9149 *sunos*) cat >> confdefs.h <<\EOF
9150 #define SUNOS4 1
9153 BLDSHARED="true"
9154 LDSHFLAGS="-G"
9155 SONAMEFLAG="-Wl,-h,"
9156 PICFLAG="-KPIC" # Is this correct for SunOS
9157 cat >> confdefs.h <<\EOF
9158 #define STAT_ST_BLOCKSIZE 512
9162 *freebsd*) BLDSHARED="true"
9163 LDSHFLAGS="-shared"
9164 DYNEXP="-Wl,--export-dynamic"
9165 SONAMEFLAG="-Wl,-soname,"
9166 PICFLAG="-fPIC -DPIC"
9167 cat >> confdefs.h <<\EOF
9168 #define STAT_ST_BLOCKSIZE 512
9172 *openbsd*) BLDSHARED="true"
9173 LDSHFLAGS="-shared"
9174 DYNEXP="-Wl,-Bdynamic"
9175 SONAMEFLAG="-Wl,-soname,"
9176 PICFLAG="-fPIC"
9177 cat >> confdefs.h <<\EOF
9178 #define STAT_ST_BLOCKSIZE 512
9182 *irix*) cat >> confdefs.h <<\EOF
9183 #define IRIX 1
9186 case "$host_os" in
9187 *irix6*) cat >> confdefs.h <<\EOF
9188 #define IRIX6 1
9192 esac
9193 ATTEMPT_WRAP32_BUILD=yes
9194 BLDSHARED="true"
9195 LDSHFLAGS="-set_version sgi1.0 -shared"
9196 SONAMEFLAG="-soname "
9197 SHLD="\${LD}"
9198 if test "${GCC}" = "yes"; then
9199 PICFLAG="-fPIC"
9200 else
9201 PICFLAG="-KPIC"
9203 cat >> confdefs.h <<\EOF
9204 #define STAT_ST_BLOCKSIZE 512
9208 *aix*) cat >> confdefs.h <<\EOF
9209 #define AIX 1
9212 BLDSHARED="true"
9213 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
9214 DYNEXP="-Wl,-brtl,-bexpall"
9215 PICFLAG="-O2"
9216 if test "${GCC}" != "yes"; then
9217 ## for funky AIX compiler using strncpy()
9218 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9221 cat >> confdefs.h <<\EOF
9222 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9226 *hpux*) cat >> confdefs.h <<\EOF
9227 #define HPUX 1
9230 SHLIBEXT="sl"
9231 # Use special PIC flags for the native HP-UX compiler.
9232 if test $ac_cv_prog_cc_Ae = yes; then
9233 BLDSHARED="true"
9234 SHLD="/usr/bin/ld"
9235 LDSHFLAGS="-B symbolic -b -z"
9236 SONAMEFLAG="+h "
9237 PICFLAG="+z"
9239 DYNEXP="-Wl,-E"
9240 cat >> confdefs.h <<\EOF
9241 #define STAT_ST_BLOCKSIZE 8192
9245 *qnx*) cat >> confdefs.h <<\EOF
9246 #define QNX 1
9249 cat >> confdefs.h <<\EOF
9250 #define STAT_ST_BLOCKSIZE 512
9254 *osf*) cat >> confdefs.h <<\EOF
9255 #define OSF1 1
9258 BLDSHARED="true"
9259 LDSHFLAGS="-shared"
9260 SONAMEFLAG="-Wl,-soname,"
9261 PICFLAG="-fPIC"
9262 cat >> confdefs.h <<\EOF
9263 #define STAT_ST_BLOCKSIZE 512
9267 *sco*) cat >> confdefs.h <<\EOF
9268 #define SCO 1
9271 cat >> confdefs.h <<\EOF
9272 #define STAT_ST_BLOCKSIZE 512
9276 *unixware*) cat >> confdefs.h <<\EOF
9277 #define UNIXWARE 1
9280 BLDSHARED="true"
9281 LDSHFLAGS="-shared"
9282 SONAMEFLAG="-Wl,-soname,"
9283 PICFLAG="-KPIC"
9284 cat >> confdefs.h <<\EOF
9285 #define STAT_ST_BLOCKSIZE 512
9289 *next2*) cat >> confdefs.h <<\EOF
9290 #define NEXT2 1
9293 cat >> confdefs.h <<\EOF
9294 #define STAT_ST_BLOCKSIZE 512
9298 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9299 set dummy groff; ac_word=$2
9300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9301 echo "configure:9302: checking for $ac_word" >&5
9302 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9304 else
9305 if test -n "$ROFF"; then
9306 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9307 else
9308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9309 ac_dummy="$PATH"
9310 for ac_dir in $ac_dummy; do
9311 test -z "$ac_dir" && ac_dir=.
9312 if test -f $ac_dir/$ac_word; then
9313 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9314 break
9316 done
9317 IFS="$ac_save_ifs"
9320 ROFF="$ac_cv_prog_ROFF"
9321 if test -n "$ROFF"; then
9322 echo "$ac_t""$ROFF" 1>&6
9323 else
9324 echo "$ac_t""no" 1>&6
9327 cat >> confdefs.h <<\EOF
9328 #define STAT_ST_BLOCKSIZE 512
9332 *sysv4*) cat >> confdefs.h <<\EOF
9333 #define SYSV 1
9336 case "$host" in
9337 *-univel-*) if test "$GCC" != yes ; then
9338 cat >> confdefs.h <<\EOF
9339 #define HAVE_MEMSET 1
9343 LDSHFLAGS="-G"
9344 DYNEXP="-Bexport"
9346 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9347 #define RELIANTUNIX 1
9350 esac
9351 cat >> confdefs.h <<\EOF
9352 #define STAT_ST_BLOCKSIZE 512
9357 *sysv5*) cat >> confdefs.h <<\EOF
9358 #define SYSV 1
9361 if test "$GCC" != yes ; then
9362 cat >> confdefs.h <<\EOF
9363 #define HAVE_MEMSET 1
9367 LDSHFLAGS="-G"
9368 cat >> confdefs.h <<\EOF
9369 #define STAT_ST_BLOCKSIZE 512
9373 *vos*) cat >> confdefs.h <<\EOF
9374 #define STAT_ST_BLOCKSIZE 4096
9377 BLDSHARED="false"
9378 LDSHFLAGS=""
9381 cat >> confdefs.h <<\EOF
9382 #define STAT_ST_BLOCKSIZE 512
9386 esac
9388 echo "$ac_t""$BLDSHARED" 1>&6
9389 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9390 echo "configure:9391: checking linker flags for shared libraries" >&5
9391 echo "$ac_t""$LDSHFLAGS" 1>&6
9392 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9393 echo "configure:9394: checking compiler flags for position-independent code" >&5
9394 echo "$ac_t""$PICFLAGS" 1>&6
9396 #######################################################
9397 # test whether building a shared library actually works
9398 if test $BLDSHARED = true; then
9399 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9400 echo "configure:9401: checking whether building shared libraries actually works" >&5
9401 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9402 echo $ac_n "(cached) $ac_c" 1>&6
9403 else
9405 ac_cv_shlib_works=no
9406 # try building a trivial shared library
9407 if test "$PICSUFFIX" = "po"; then
9408 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9409 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9410 ac_cv_shlib_works=yes
9411 else
9412 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
9413 mv shlib.$PICSUFFIX shlib.po &&
9414 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9415 ac_cv_shlib_works=yes
9417 rm -f shlib.so shlib.po
9421 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9422 if test $ac_cv_shlib_works = no; then
9423 BLDSHARED=false
9427 ################
9429 echo $ac_n "checking for long long""... $ac_c" 1>&6
9430 echo "configure:9431: checking for long long" >&5
9431 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433 else
9435 if test "$cross_compiling" = yes; then
9436 samba_cv_have_longlong=cross
9437 else
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 #include <stdio.h>
9442 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9444 if { (eval echo configure:9445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9445 then
9446 samba_cv_have_longlong=yes
9447 else
9448 echo "configure: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9450 rm -fr conftest*
9451 samba_cv_have_longlong=no
9453 rm -fr conftest*
9458 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9459 if test x"$samba_cv_have_longlong" = x"yes"; then
9460 cat >> confdefs.h <<\EOF
9461 #define HAVE_LONGLONG 1
9467 # Check if the compiler supports the LL prefix on long long integers.
9468 # AIX needs this.
9470 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9471 echo "configure:9472: checking for LL suffix on long long integers" >&5
9472 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9473 echo $ac_n "(cached) $ac_c" 1>&6
9474 else
9476 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9479 #include <stdio.h>
9480 int main() {
9481 long long i = 0x8000000000LL
9482 ; return 0; }
9484 if { (eval echo configure:9485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9485 rm -rf conftest*
9486 samba_cv_compiler_supports_ll=yes
9487 else
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9490 rm -rf conftest*
9491 samba_cv_compiler_supports_ll=no
9493 rm -f conftest*
9496 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9497 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9498 cat >> confdefs.h <<\EOF
9499 #define COMPILER_SUPPORTS_LL 1
9505 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9506 echo "configure:9507: checking for 64 bit off_t" >&5
9507 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9509 else
9511 if test "$cross_compiling" = yes; then
9512 samba_cv_SIZEOF_OFF_T=cross
9513 else
9514 cat > conftest.$ac_ext <<EOF
9515 #line 9516 "configure"
9516 #include "confdefs.h"
9517 #include <stdio.h>
9518 #include <sys/stat.h>
9519 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9522 then
9523 samba_cv_SIZEOF_OFF_T=yes
9524 else
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9527 rm -fr conftest*
9528 samba_cv_SIZEOF_OFF_T=no
9530 rm -fr conftest*
9535 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9536 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9537 cat >> confdefs.h <<\EOF
9538 #define SIZEOF_OFF_T 8
9543 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9544 echo "configure:9545: checking for off64_t" >&5
9545 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9547 else
9549 if test "$cross_compiling" = yes; then
9550 samba_cv_HAVE_OFF64_T=cross
9551 else
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9556 #if defined(HAVE_UNISTD_H)
9557 #include <unistd.h>
9558 #endif
9559 #include <stdio.h>
9560 #include <sys/stat.h>
9561 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9563 if { (eval echo configure:9564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9564 then
9565 samba_cv_HAVE_OFF64_T=yes
9566 else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -fr conftest*
9570 samba_cv_HAVE_OFF64_T=no
9572 rm -fr conftest*
9577 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9578 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9579 cat >> confdefs.h <<\EOF
9580 #define HAVE_OFF64_T 1
9585 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9586 echo "configure:9587: checking for 64 bit ino_t" >&5
9587 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9591 if test "$cross_compiling" = yes; then
9592 samba_cv_SIZEOF_INO_T=cross
9593 else
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9597 #include <stdio.h>
9598 #include <sys/stat.h>
9599 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9601 if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9602 then
9603 samba_cv_SIZEOF_INO_T=yes
9604 else
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 rm -fr conftest*
9608 samba_cv_SIZEOF_INO_T=no
9610 rm -fr conftest*
9615 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9616 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9617 cat >> confdefs.h <<\EOF
9618 #define SIZEOF_INO_T 8
9623 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9624 echo "configure:9625: checking for ino64_t" >&5
9625 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9626 echo $ac_n "(cached) $ac_c" 1>&6
9627 else
9629 if test "$cross_compiling" = yes; then
9630 samba_cv_HAVE_INO64_T=cross
9631 else
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9636 #if defined(HAVE_UNISTD_H)
9637 #include <unistd.h>
9638 #endif
9639 #include <stdio.h>
9640 #include <sys/stat.h>
9641 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9643 if { (eval echo configure:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9644 then
9645 samba_cv_HAVE_INO64_T=yes
9646 else
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9649 rm -fr conftest*
9650 samba_cv_HAVE_INO64_T=no
9652 rm -fr conftest*
9657 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9658 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9659 cat >> confdefs.h <<\EOF
9660 #define HAVE_INO64_T 1
9665 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9666 echo "configure:9667: checking for dev64_t" >&5
9667 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669 else
9671 if test "$cross_compiling" = yes; then
9672 samba_cv_HAVE_DEV64_T=cross
9673 else
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9678 #if defined(HAVE_UNISTD_H)
9679 #include <unistd.h>
9680 #endif
9681 #include <stdio.h>
9682 #include <sys/stat.h>
9683 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9686 then
9687 samba_cv_HAVE_DEV64_T=yes
9688 else
9689 echo "configure: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 rm -fr conftest*
9692 samba_cv_HAVE_DEV64_T=no
9694 rm -fr conftest*
9699 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9700 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9701 cat >> confdefs.h <<\EOF
9702 #define HAVE_DEV64_T 1
9707 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9708 echo "configure:9709: checking for struct dirent64" >&5
9709 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9711 else
9713 cat > conftest.$ac_ext <<EOF
9714 #line 9715 "configure"
9715 #include "confdefs.h"
9717 #if defined(HAVE_UNISTD_H)
9718 #include <unistd.h>
9719 #endif
9720 #include <sys/types.h>
9721 #include <dirent.h>
9722 int main() {
9723 struct dirent64 de;
9724 ; return 0; }
9726 if { (eval echo configure:9727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9727 rm -rf conftest*
9728 samba_cv_HAVE_STRUCT_DIRENT64=yes
9729 else
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
9732 rm -rf conftest*
9733 samba_cv_HAVE_STRUCT_DIRENT64=no
9735 rm -f conftest*
9738 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9739 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9740 cat >> confdefs.h <<\EOF
9741 #define HAVE_STRUCT_DIRENT64 1
9746 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9747 echo "configure:9748: checking for major macro" >&5
9748 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750 else
9752 if test "$cross_compiling" = yes; then
9753 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9754 else
9755 cat > conftest.$ac_ext <<EOF
9756 #line 9757 "configure"
9757 #include "confdefs.h"
9759 #if defined(HAVE_UNISTD_H)
9760 #include <unistd.h>
9761 #endif
9762 #include <sys/types.h>
9763 main() { dev_t dev; int i = major(dev); return 0; }
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9766 then
9767 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9768 else
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9771 rm -fr conftest*
9772 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9774 rm -fr conftest*
9779 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9780 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9781 cat >> confdefs.h <<\EOF
9782 #define HAVE_DEVICE_MAJOR_FN 1
9787 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9788 echo "configure:9789: checking for minor macro" >&5
9789 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9790 echo $ac_n "(cached) $ac_c" 1>&6
9791 else
9793 if test "$cross_compiling" = yes; then
9794 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9795 else
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9800 #if defined(HAVE_UNISTD_H)
9801 #include <unistd.h>
9802 #endif
9803 #include <sys/types.h>
9804 main() { dev_t dev; int i = minor(dev); return 0; }
9806 if { (eval echo configure:9807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9807 then
9808 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9809 else
9810 echo "configure: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9812 rm -fr conftest*
9813 samba_cv_HAVE_DEVICE_MINOR_FN=no
9815 rm -fr conftest*
9820 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9821 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9822 cat >> confdefs.h <<\EOF
9823 #define HAVE_DEVICE_MINOR_FN 1
9828 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9829 echo "configure:9830: checking for unsigned char" >&5
9830 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9831 echo $ac_n "(cached) $ac_c" 1>&6
9832 else
9834 if test "$cross_compiling" = yes; then
9835 samba_cv_HAVE_UNSIGNED_CHAR=cross
9836 else
9837 cat > conftest.$ac_ext <<EOF
9838 #line 9839 "configure"
9839 #include "confdefs.h"
9840 #include <stdio.h>
9841 main() { char c; c=250; exit((c > 0)?0:1); }
9843 if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9844 then
9845 samba_cv_HAVE_UNSIGNED_CHAR=yes
9846 else
9847 echo "configure: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9849 rm -fr conftest*
9850 samba_cv_HAVE_UNSIGNED_CHAR=no
9852 rm -fr conftest*
9857 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9858 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9859 cat >> confdefs.h <<\EOF
9860 #define HAVE_UNSIGNED_CHAR 1
9865 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9866 echo "configure:9867: checking for sin_len in sock" >&5
9867 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9868 echo $ac_n "(cached) $ac_c" 1>&6
9869 else
9871 cat > conftest.$ac_ext <<EOF
9872 #line 9873 "configure"
9873 #include "confdefs.h"
9874 #include <sys/types.h>
9875 #include <sys/socket.h>
9876 #include <netinet/in.h>
9877 int main() {
9878 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9879 ; return 0; }
9881 if { (eval echo configure:9882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9882 rm -rf conftest*
9883 samba_cv_HAVE_SOCK_SIN_LEN=yes
9884 else
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9887 rm -rf conftest*
9888 samba_cv_HAVE_SOCK_SIN_LEN=no
9890 rm -f conftest*
9893 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9894 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9895 cat >> confdefs.h <<\EOF
9896 #define HAVE_SOCK_SIN_LEN 1
9901 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9902 echo "configure:9903: checking whether seekdir returns void" >&5
9903 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9904 echo $ac_n "(cached) $ac_c" 1>&6
9905 else
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 #include <sys/types.h>
9911 #include <dirent.h>
9912 void seekdir(DIR *d, long loc) { return; }
9913 int main() {
9914 return 0;
9915 ; return 0; }
9917 if { (eval echo configure:9918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9918 rm -rf conftest*
9919 samba_cv_SEEKDIR_RETURNS_VOID=yes
9920 else
9921 echo "configure: failed program was:" >&5
9922 cat conftest.$ac_ext >&5
9923 rm -rf conftest*
9924 samba_cv_SEEKDIR_RETURNS_VOID=no
9926 rm -f conftest*
9929 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9930 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9931 cat >> confdefs.h <<\EOF
9932 #define SEEKDIR_RETURNS_VOID 1
9937 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9938 echo "configure:9939: checking for __FUNCTION__ macro" >&5
9939 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9941 else
9943 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9946 #include <stdio.h>
9947 int main() {
9948 printf("%s\n", __FUNCTION__);
9949 ; return 0; }
9951 if { (eval echo configure:9952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9952 rm -rf conftest*
9953 samba_cv_HAVE_FUNCTION_MACRO=yes
9954 else
9955 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5
9957 rm -rf conftest*
9958 samba_cv_HAVE_FUNCTION_MACRO=no
9960 rm -f conftest*
9963 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9964 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9965 cat >> confdefs.h <<\EOF
9966 #define HAVE_FUNCTION_MACRO 1
9971 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9972 echo "configure:9973: checking if gettimeofday takes tz argument" >&5
9973 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9974 echo $ac_n "(cached) $ac_c" 1>&6
9975 else
9977 if test "$cross_compiling" = yes; then
9978 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9979 else
9980 cat > conftest.$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9984 #include <sys/time.h>
9985 #include <unistd.h>
9986 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9989 then
9990 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9991 else
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 rm -fr conftest*
9995 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9997 rm -fr conftest*
10002 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
10003 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
10004 cat >> confdefs.h <<\EOF
10005 #define HAVE_GETTIMEOFDAY_TZ 1
10010 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
10011 echo "configure:10012: checking for __va_copy" >&5
10012 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
10013 echo $ac_n "(cached) $ac_c" 1>&6
10014 else
10016 cat > conftest.$ac_ext <<EOF
10017 #line 10018 "configure"
10018 #include "confdefs.h"
10019 #include <stdarg.h>
10020 va_list ap1,ap2;
10021 int main() {
10022 __va_copy(ap1,ap2);
10023 ; return 0; }
10025 if { (eval echo configure:10026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10026 rm -rf conftest*
10027 samba_cv_HAVE_VA_COPY=yes
10028 else
10029 echo "configure: failed program was:" >&5
10030 cat conftest.$ac_ext >&5
10031 rm -rf conftest*
10032 samba_cv_HAVE_VA_COPY=no
10034 rm -f conftest*
10037 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
10038 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
10039 cat >> confdefs.h <<\EOF
10040 #define HAVE_VA_COPY 1
10045 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
10046 echo "configure:10047: checking for C99 vsnprintf" >&5
10047 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
10048 echo $ac_n "(cached) $ac_c" 1>&6
10049 else
10051 if test "$cross_compiling" = yes; then
10052 samba_cv_HAVE_C99_VSNPRINTF=cross
10053 else
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10058 #include <sys/types.h>
10059 #include <stdarg.h>
10060 void foo(const char *format, ...) {
10061 va_list ap;
10062 int len;
10063 char buf[5];
10065 va_start(ap, format);
10066 len = vsnprintf(buf, 0, format, ap);
10067 va_end(ap);
10068 if (len != 5) exit(1);
10070 va_start(ap, format);
10071 len = vsnprintf(0, 0, format, ap);
10072 va_end(ap);
10073 if (len != 5) exit(1);
10075 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10077 exit(0);
10079 main() { foo("hello"); }
10082 if { (eval echo configure:10083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10083 then
10084 samba_cv_HAVE_C99_VSNPRINTF=yes
10085 else
10086 echo "configure: failed program was:" >&5
10087 cat conftest.$ac_ext >&5
10088 rm -fr conftest*
10089 samba_cv_HAVE_C99_VSNPRINTF=no
10091 rm -fr conftest*
10096 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10097 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_C99_VSNPRINTF 1
10104 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10105 echo "configure:10106: checking for broken readdir" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10108 else
10110 if test "$cross_compiling" = yes; then
10111 samba_cv_HAVE_BROKEN_READDIR=cross
10112 else
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 #include <sys/types.h>
10117 #include <dirent.h>
10118 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10119 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10120 di->d_name[0] == 0) exit(0); exit(1);}
10122 if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10123 then
10124 samba_cv_HAVE_BROKEN_READDIR=yes
10125 else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -fr conftest*
10129 samba_cv_HAVE_BROKEN_READDIR=no
10131 rm -fr conftest*
10136 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10137 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
10138 cat >> confdefs.h <<\EOF
10139 #define HAVE_BROKEN_READDIR 1
10144 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10145 echo "configure:10146: checking for utimbuf" >&5
10146 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10148 else
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 #include <sys/types.h>
10154 #include <utime.h>
10155 int main() {
10156 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10157 ; return 0; }
10159 if { (eval echo configure:10160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10160 rm -rf conftest*
10161 samba_cv_HAVE_UTIMBUF=yes
10162 else
10163 echo "configure: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 rm -rf conftest*
10166 samba_cv_HAVE_UTIMBUF=no
10168 rm -f conftest*
10171 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10172 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_UTIMBUF 1
10180 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
10182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10183 echo "configure:10184: checking for $ac_func" >&5
10184 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
10186 else
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char $ac_func(); below. */
10192 #include <assert.h>
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 /* We use char because int might match the return type of a gcc2
10195 builtin and then its argument prototype would still apply. */
10196 char $ac_func();
10198 int main() {
10200 /* The GNU C library defines this for functions which it implements
10201 to always fail with ENOSYS. Some functions are actually named
10202 something starting with __ and the normal name is an alias. */
10203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10204 choke me
10205 #else
10206 $ac_func();
10207 #endif
10209 ; return 0; }
10211 if { (eval echo configure:10212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10212 rm -rf conftest*
10213 eval "ac_cv_func_$ac_func=yes"
10214 else
10215 echo "configure: failed program was:" >&5
10216 cat conftest.$ac_ext >&5
10217 rm -rf conftest*
10218 eval "ac_cv_func_$ac_func=no"
10220 rm -f conftest*
10223 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10224 echo "$ac_t""yes" 1>&6
10225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10226 cat >> confdefs.h <<EOF
10227 #define $ac_tr_func 1
10230 else
10231 echo "$ac_t""no" 1>&6
10233 done
10236 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10237 echo "configure:10238: checking for ut_name in utmp" >&5
10238 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10239 echo $ac_n "(cached) $ac_c" 1>&6
10240 else
10242 cat > conftest.$ac_ext <<EOF
10243 #line 10244 "configure"
10244 #include "confdefs.h"
10245 #include <sys/types.h>
10246 #include <utmp.h>
10247 int main() {
10248 struct utmp ut; ut.ut_name[0] = 'a';
10249 ; return 0; }
10251 if { (eval echo configure:10252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10252 rm -rf conftest*
10253 samba_cv_HAVE_UT_UT_NAME=yes
10254 else
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10257 rm -rf conftest*
10258 samba_cv_HAVE_UT_UT_NAME=no
10260 rm -f conftest*
10263 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10264 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10265 cat >> confdefs.h <<\EOF
10266 #define HAVE_UT_UT_NAME 1
10271 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10272 echo "configure:10273: checking for ut_user in utmp" >&5
10273 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10274 echo $ac_n "(cached) $ac_c" 1>&6
10275 else
10277 cat > conftest.$ac_ext <<EOF
10278 #line 10279 "configure"
10279 #include "confdefs.h"
10280 #include <sys/types.h>
10281 #include <utmp.h>
10282 int main() {
10283 struct utmp ut; ut.ut_user[0] = 'a';
10284 ; return 0; }
10286 if { (eval echo configure:10287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10287 rm -rf conftest*
10288 samba_cv_HAVE_UT_UT_USER=yes
10289 else
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 rm -rf conftest*
10293 samba_cv_HAVE_UT_UT_USER=no
10295 rm -f conftest*
10298 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10299 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_UT_UT_USER 1
10306 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10307 echo "configure:10308: checking for ut_id in utmp" >&5
10308 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10315 #include <sys/types.h>
10316 #include <utmp.h>
10317 int main() {
10318 struct utmp ut; ut.ut_id[0] = 'a';
10319 ; return 0; }
10321 if { (eval echo configure:10322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10322 rm -rf conftest*
10323 samba_cv_HAVE_UT_UT_ID=yes
10324 else
10325 echo "configure: failed program was:" >&5
10326 cat conftest.$ac_ext >&5
10327 rm -rf conftest*
10328 samba_cv_HAVE_UT_UT_ID=no
10330 rm -f conftest*
10333 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10334 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10335 cat >> confdefs.h <<\EOF
10336 #define HAVE_UT_UT_ID 1
10341 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10342 echo "configure:10343: checking for ut_host in utmp" >&5
10343 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10344 echo $ac_n "(cached) $ac_c" 1>&6
10345 else
10347 cat > conftest.$ac_ext <<EOF
10348 #line 10349 "configure"
10349 #include "confdefs.h"
10350 #include <sys/types.h>
10351 #include <utmp.h>
10352 int main() {
10353 struct utmp ut; ut.ut_host[0] = 'a';
10354 ; return 0; }
10356 if { (eval echo configure:10357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10357 rm -rf conftest*
10358 samba_cv_HAVE_UT_UT_HOST=yes
10359 else
10360 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5
10362 rm -rf conftest*
10363 samba_cv_HAVE_UT_UT_HOST=no
10365 rm -f conftest*
10368 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10369 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10370 cat >> confdefs.h <<\EOF
10371 #define HAVE_UT_UT_HOST 1
10376 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10377 echo "configure:10378: checking for ut_time in utmp" >&5
10378 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10379 echo $ac_n "(cached) $ac_c" 1>&6
10380 else
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 #include <sys/types.h>
10386 #include <utmp.h>
10387 int main() {
10388 struct utmp ut; time_t t; ut.ut_time = t;
10389 ; return 0; }
10391 if { (eval echo configure:10392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10392 rm -rf conftest*
10393 samba_cv_HAVE_UT_UT_TIME=yes
10394 else
10395 echo "configure: failed program was:" >&5
10396 cat conftest.$ac_ext >&5
10397 rm -rf conftest*
10398 samba_cv_HAVE_UT_UT_TIME=no
10400 rm -f conftest*
10403 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10404 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10405 cat >> confdefs.h <<\EOF
10406 #define HAVE_UT_UT_TIME 1
10411 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10412 echo "configure:10413: checking for ut_tv in utmp" >&5
10413 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10414 echo $ac_n "(cached) $ac_c" 1>&6
10415 else
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10420 #include <sys/types.h>
10421 #include <utmp.h>
10422 int main() {
10423 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10424 ; return 0; }
10426 if { (eval echo configure:10427: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10427 rm -rf conftest*
10428 samba_cv_HAVE_UT_UT_TV=yes
10429 else
10430 echo "configure: failed program was:" >&5
10431 cat conftest.$ac_ext >&5
10432 rm -rf conftest*
10433 samba_cv_HAVE_UT_UT_TV=no
10435 rm -f conftest*
10438 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10439 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10440 cat >> confdefs.h <<\EOF
10441 #define HAVE_UT_UT_TV 1
10446 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10447 echo "configure:10448: checking for ut_type in utmp" >&5
10448 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10450 else
10452 cat > conftest.$ac_ext <<EOF
10453 #line 10454 "configure"
10454 #include "confdefs.h"
10455 #include <sys/types.h>
10456 #include <utmp.h>
10457 int main() {
10458 struct utmp ut; ut.ut_type = 0;
10459 ; return 0; }
10461 if { (eval echo configure:10462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10462 rm -rf conftest*
10463 samba_cv_HAVE_UT_UT_TYPE=yes
10464 else
10465 echo "configure: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 rm -rf conftest*
10468 samba_cv_HAVE_UT_UT_TYPE=no
10470 rm -f conftest*
10473 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10474 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10475 cat >> confdefs.h <<\EOF
10476 #define HAVE_UT_UT_TYPE 1
10481 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10482 echo "configure:10483: checking for ut_pid in utmp" >&5
10483 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10484 echo $ac_n "(cached) $ac_c" 1>&6
10485 else
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10490 #include <sys/types.h>
10491 #include <utmp.h>
10492 int main() {
10493 struct utmp ut; ut.ut_pid = 0;
10494 ; return 0; }
10496 if { (eval echo configure:10497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10497 rm -rf conftest*
10498 samba_cv_HAVE_UT_UT_PID=yes
10499 else
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 rm -rf conftest*
10503 samba_cv_HAVE_UT_UT_PID=no
10505 rm -f conftest*
10508 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10509 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10510 cat >> confdefs.h <<\EOF
10511 #define HAVE_UT_UT_PID 1
10516 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10517 echo "configure:10518: checking for ut_exit in utmp" >&5
10518 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10519 echo $ac_n "(cached) $ac_c" 1>&6
10520 else
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10525 #include <sys/types.h>
10526 #include <utmp.h>
10527 int main() {
10528 struct utmp ut; ut.ut_exit.e_exit = 0;
10529 ; return 0; }
10531 if { (eval echo configure:10532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10532 rm -rf conftest*
10533 samba_cv_HAVE_UT_UT_EXIT=yes
10534 else
10535 echo "configure: failed program was:" >&5
10536 cat conftest.$ac_ext >&5
10537 rm -rf conftest*
10538 samba_cv_HAVE_UT_UT_EXIT=no
10540 rm -f conftest*
10543 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10544 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10545 cat >> confdefs.h <<\EOF
10546 #define HAVE_UT_UT_EXIT 1
10551 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10552 echo "configure:10553: checking for ut_addr in utmp" >&5
10553 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10554 echo $ac_n "(cached) $ac_c" 1>&6
10555 else
10557 cat > conftest.$ac_ext <<EOF
10558 #line 10559 "configure"
10559 #include "confdefs.h"
10560 #include <sys/types.h>
10561 #include <utmp.h>
10562 int main() {
10563 struct utmp ut; ut.ut_addr = 0;
10564 ; return 0; }
10566 if { (eval echo configure:10567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10567 rm -rf conftest*
10568 samba_cv_HAVE_UT_UT_ADDR=yes
10569 else
10570 echo "configure: failed program was:" >&5
10571 cat conftest.$ac_ext >&5
10572 rm -rf conftest*
10573 samba_cv_HAVE_UT_UT_ADDR=no
10575 rm -f conftest*
10578 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10579 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10580 cat >> confdefs.h <<\EOF
10581 #define HAVE_UT_UT_ADDR 1
10586 if test x$ac_cv_func_pututline = xyes ; then
10587 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10588 echo "configure:10589: checking whether pututline returns pointer" >&5
10589 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10590 echo $ac_n "(cached) $ac_c" 1>&6
10591 else
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 #include <sys/types.h>
10597 #include <utmp.h>
10598 int main() {
10599 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10600 ; return 0; }
10602 if { (eval echo configure:10603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10603 rm -rf conftest*
10604 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10605 else
10606 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5
10608 rm -rf conftest*
10609 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10611 rm -f conftest*
10614 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10615 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10616 cat >> confdefs.h <<\EOF
10617 #define PUTUTLINE_RETURNS_UTMP 1
10623 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10624 echo "configure:10625: checking for ut_syslen in utmpx" >&5
10625 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10627 else
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10632 #include <sys/types.h>
10633 #include <utmpx.h>
10634 int main() {
10635 struct utmpx ux; ux.ut_syslen = 0;
10636 ; return 0; }
10638 if { (eval echo configure:10639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10639 rm -rf conftest*
10640 samba_cv_HAVE_UX_UT_SYSLEN=yes
10641 else
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10644 rm -rf conftest*
10645 samba_cv_HAVE_UX_UT_SYSLEN=no
10647 rm -f conftest*
10650 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10651 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10652 cat >> confdefs.h <<\EOF
10653 #define HAVE_UX_UT_SYSLEN 1
10659 #################################################
10660 # check for libiconv support
10661 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10662 echo "configure:10663: checking whether to use libiconv" >&5
10663 # Check whether --with-libiconv or --without-libiconv was given.
10664 if test "${with_libiconv+set}" = set; then
10665 withval="$with_libiconv"
10666 case "$withval" in
10668 echo "$ac_t""no" 1>&6
10671 echo "$ac_t""yes" 1>&6
10672 CFLAGS="$CFLAGS -I$withval/include"
10673 LDFLAGS="$LDFLAGS -L$withval/lib"
10674 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10675 echo "configure:10676: checking for iconv_open in -liconv" >&5
10676 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10678 echo $ac_n "(cached) $ac_c" 1>&6
10679 else
10680 ac_save_LIBS="$LIBS"
10681 LIBS="-liconv $LIBS"
10682 cat > conftest.$ac_ext <<EOF
10683 #line 10684 "configure"
10684 #include "confdefs.h"
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 /* We use char because int might match the return type of a gcc2
10687 builtin and then its argument prototype would still apply. */
10688 char iconv_open();
10690 int main() {
10691 iconv_open()
10692 ; return 0; }
10694 if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10695 rm -rf conftest*
10696 eval "ac_cv_lib_$ac_lib_var=yes"
10697 else
10698 echo "configure: failed program was:" >&5
10699 cat conftest.$ac_ext >&5
10700 rm -rf conftest*
10701 eval "ac_cv_lib_$ac_lib_var=no"
10703 rm -f conftest*
10704 LIBS="$ac_save_LIBS"
10707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10708 echo "$ac_t""yes" 1>&6
10709 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10710 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10711 cat >> confdefs.h <<EOF
10712 #define $ac_tr_lib 1
10715 LIBS="-liconv $LIBS"
10717 else
10718 echo "$ac_t""no" 1>&6
10721 cat >> confdefs.h <<EOF
10722 #define WITH_LIBICONV "${withval}"
10726 esac
10727 else
10728 echo "$ac_t""no" 1>&6
10734 ############
10735 # check for iconv in libc
10736 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10737 echo "configure:10738: checking for working iconv" >&5
10738 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10740 else
10742 if test "$cross_compiling" = yes; then
10743 samba_cv_HAVE_NATIVE_ICONV=cross
10744 else
10745 cat > conftest.$ac_ext <<EOF
10746 #line 10747 "configure"
10747 #include "confdefs.h"
10749 #include <iconv.h>
10750 main() {
10751 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10752 if (cd == 0 || cd == (iconv_t)-1) return -1;
10753 return 0;
10757 if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10758 then
10759 samba_cv_HAVE_NATIVE_ICONV=yes
10760 else
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10763 rm -fr conftest*
10764 samba_cv_HAVE_NATIVE_ICONV=no
10766 rm -fr conftest*
10771 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10772 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10773 cat >> confdefs.h <<\EOF
10774 #define HAVE_NATIVE_ICONV 1
10780 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10781 echo "configure:10782: checking for Linux kernel oplocks" >&5
10782 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10783 echo $ac_n "(cached) $ac_c" 1>&6
10784 else
10786 if test "$cross_compiling" = yes; then
10787 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10788 else
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10793 #include <sys/types.h>
10794 #include <fcntl.h>
10795 #ifndef F_GETLEASE
10796 #define F_GETLEASE 1025
10797 #endif
10798 main() {
10799 int fd = open("/dev/null", O_RDONLY);
10800 return fcntl(fd, F_GETLEASE, 0) == -1;
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_HAVE_KERNEL_OPLOCKS_LINUX=yes
10807 else
10808 echo "configure: failed program was:" >&5
10809 cat conftest.$ac_ext >&5
10810 rm -fr conftest*
10811 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10813 rm -fr conftest*
10818 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10819 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10820 cat >> confdefs.h <<\EOF
10821 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10826 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10827 echo "configure:10828: checking for kernel change notify support" >&5
10828 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+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_KERNEL_CHANGE_NOTIFY=cross
10834 else
10835 cat > conftest.$ac_ext <<EOF
10836 #line 10837 "configure"
10837 #include "confdefs.h"
10839 #include <sys/types.h>
10840 #include <fcntl.h>
10841 #include <signal.h>
10842 #ifndef F_NOTIFY
10843 #define F_NOTIFY 1026
10844 #endif
10845 main() {
10846 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10850 if { (eval echo configure:10851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10851 then
10852 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10853 else
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10856 rm -fr conftest*
10857 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10859 rm -fr conftest*
10864 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10865 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10866 cat >> confdefs.h <<\EOF
10867 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10872 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10873 echo "configure:10874: checking for kernel share modes" >&5
10874 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10876 else
10878 if test "$cross_compiling" = yes; then
10879 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10880 else
10881 cat > conftest.$ac_ext <<EOF
10882 #line 10883 "configure"
10883 #include "confdefs.h"
10885 #include <sys/types.h>
10886 #include <fcntl.h>
10887 #include <signal.h>
10888 #include <sys/file.h>
10889 #ifndef LOCK_MAND
10890 #define LOCK_MAND 32
10891 #define LOCK_READ 64
10892 #endif
10893 main() {
10894 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10898 if { (eval echo configure:10899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10899 then
10900 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10901 else
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 rm -fr conftest*
10905 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10907 rm -fr conftest*
10912 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10913 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10914 cat >> confdefs.h <<\EOF
10915 #define HAVE_KERNEL_SHARE_MODES 1
10923 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10924 echo "configure:10925: checking for IRIX kernel oplock type definitions" >&5
10925 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10926 echo $ac_n "(cached) $ac_c" 1>&6
10927 else
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10932 #include <sys/types.h>
10933 #include <fcntl.h>
10934 int main() {
10935 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10936 ; return 0; }
10938 if { (eval echo configure:10939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10939 rm -rf conftest*
10940 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10941 else
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 rm -rf conftest*
10945 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10947 rm -f conftest*
10950 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10951 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10952 cat >> confdefs.h <<\EOF
10953 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10958 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10959 echo "configure:10960: checking for irix specific capabilities" >&5
10960 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10962 else
10964 if test "$cross_compiling" = yes; then
10965 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10966 else
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 #include <sys/types.h>
10971 #include <sys/capability.h>
10972 main() {
10973 cap_t cap;
10974 if ((cap = cap_get_proc()) == NULL)
10975 exit(1);
10976 cap->cap_effective |= CAP_NETWORK_MGT;
10977 cap->cap_inheritable |= CAP_NETWORK_MGT;
10978 cap_set_proc(cap);
10979 exit(0);
10983 if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10984 then
10985 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10986 else
10987 echo "configure: failed program was:" >&5
10988 cat conftest.$ac_ext >&5
10989 rm -fr conftest*
10990 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10992 rm -fr conftest*
10997 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10998 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10999 cat >> confdefs.h <<\EOF
11000 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
11006 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
11007 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
11010 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11011 echo "configure:11012: checking for int16 typedef included by rpc/rpc.h" >&5
11012 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
11013 echo $ac_n "(cached) $ac_c" 1>&6
11014 else
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <sys/types.h>
11020 #if defined(HAVE_RPC_RPC_H)
11021 #include <rpc/rpc.h>
11022 #endif
11023 int main() {
11024 int16 testvar;
11025 ; return 0; }
11027 if { (eval echo configure:11028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11028 rm -rf conftest*
11029 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
11030 else
11031 echo "configure: failed program was:" >&5
11032 cat conftest.$ac_ext >&5
11033 rm -rf conftest*
11034 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
11036 rm -f conftest*
11039 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
11040 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
11041 cat >> confdefs.h <<\EOF
11042 #define HAVE_INT16_FROM_RPC_RPC_H 1
11047 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11048 echo "configure:11049: checking for uint16 typedef included by rpc/rpc.h" >&5
11049 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11051 else
11053 cat > conftest.$ac_ext <<EOF
11054 #line 11055 "configure"
11055 #include "confdefs.h"
11056 #include <sys/types.h>
11057 #if defined(HAVE_RPC_RPC_H)
11058 #include <rpc/rpc.h>
11059 #endif
11060 int main() {
11061 uint16 testvar;
11062 ; return 0; }
11064 if { (eval echo configure:11065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11065 rm -rf conftest*
11066 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
11067 else
11068 echo "configure: failed program was:" >&5
11069 cat conftest.$ac_ext >&5
11070 rm -rf conftest*
11071 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
11073 rm -f conftest*
11076 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
11077 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
11078 cat >> confdefs.h <<\EOF
11079 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11084 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11085 echo "configure:11086: checking for int32 typedef included by rpc/rpc.h" >&5
11086 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11088 else
11090 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure"
11092 #include "confdefs.h"
11093 #include <sys/types.h>
11094 #if defined(HAVE_RPC_RPC_H)
11095 #include <rpc/rpc.h>
11096 #endif
11097 int main() {
11098 int32 testvar;
11099 ; return 0; }
11101 if { (eval echo configure:11102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11102 rm -rf conftest*
11103 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
11104 else
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 rm -rf conftest*
11108 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
11110 rm -f conftest*
11113 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11114 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
11115 cat >> confdefs.h <<\EOF
11116 #define HAVE_INT32_FROM_RPC_RPC_H 1
11121 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11122 echo "configure:11123: checking for uint32 typedef included by rpc/rpc.h" >&5
11123 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11125 else
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 #include <sys/types.h>
11131 #if defined(HAVE_RPC_RPC_H)
11132 #include <rpc/rpc.h>
11133 #endif
11134 int main() {
11135 uint32 testvar;
11136 ; return 0; }
11138 if { (eval echo configure:11139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 rm -rf conftest*
11140 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
11141 else
11142 echo "configure: failed program was:" >&5
11143 cat conftest.$ac_ext >&5
11144 rm -rf conftest*
11145 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
11147 rm -f conftest*
11150 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11151 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
11152 cat >> confdefs.h <<\EOF
11153 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11159 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11160 echo "configure:11161: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11161 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11163 else
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 #include <sys/types.h>
11169 #ifdef HAVE_SYS_SECURITY_H
11170 #include <sys/security.h>
11171 #include <prot.h>
11172 #endif /* HAVE_SYS_SECURITY_H */
11173 #if defined(HAVE_RPC_RPC_H)
11174 #include <rpc/rpc.h>
11175 #endif
11176 int main() {
11177 int testvar;
11178 ; return 0; }
11180 if { (eval echo configure:11181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11181 rm -rf conftest*
11182 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
11183 else
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11186 rm -rf conftest*
11187 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
11189 rm -f conftest*
11192 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11193 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
11194 cat >> confdefs.h <<\EOF
11195 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11200 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11201 echo "configure:11202: checking for test routines" >&5
11202 if test "$cross_compiling" = yes; then
11203 echo "configure: warning: cannot run when cross-compiling" 1>&2
11204 else
11205 cat > conftest.$ac_ext <<EOF
11206 #line 11207 "configure"
11207 #include "confdefs.h"
11208 #include "${srcdir-.}/tests/trivial.c"
11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11211 then
11212 echo "$ac_t""yes" 1>&6
11213 else
11214 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5
11216 rm -fr conftest*
11217 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11219 rm -fr conftest*
11223 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11224 echo "configure:11225: checking for ftruncate extend" >&5
11225 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11226 echo $ac_n "(cached) $ac_c" 1>&6
11227 else
11229 if test "$cross_compiling" = yes; then
11230 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
11231 else
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 #include "${srcdir-.}/tests/ftruncate.c"
11237 if { (eval echo configure:11238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11238 then
11239 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
11240 else
11241 echo "configure: failed program was:" >&5
11242 cat conftest.$ac_ext >&5
11243 rm -fr conftest*
11244 samba_cv_HAVE_FTRUNCATE_EXTEND=no
11246 rm -fr conftest*
11251 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11252 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
11253 cat >> confdefs.h <<\EOF
11254 #define HAVE_FTRUNCATE_EXTEND 1
11259 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11260 echo "configure:11261: checking for AF_LOCAL socket support" >&5
11261 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11263 else
11265 if test "$cross_compiling" = yes; then
11266 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11267 else
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 #include "${srcdir-.}/tests/unixsock.c"
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11274 then
11275 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11276 else
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11279 rm -fr conftest*
11280 samba_cv_HAVE_WORKING_AF_LOCAL=no
11282 rm -fr conftest*
11287 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11288 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11289 then
11290 cat >> confdefs.h <<\EOF
11291 #define HAVE_WORKING_AF_LOCAL 1
11296 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11297 echo "configure:11298: checking for broken getgroups" >&5
11298 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11299 echo $ac_n "(cached) $ac_c" 1>&6
11300 else
11302 if test "$cross_compiling" = yes; then
11303 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11304 else
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 #include "${srcdir-.}/tests/getgroups.c"
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11311 then
11312 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11313 else
11314 echo "configure: failed program was:" >&5
11315 cat conftest.$ac_ext >&5
11316 rm -fr conftest*
11317 samba_cv_HAVE_BROKEN_GETGROUPS=no
11319 rm -fr conftest*
11324 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11325 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11326 cat >> confdefs.h <<\EOF
11327 #define HAVE_BROKEN_GETGROUPS 1
11332 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11333 echo "configure:11334: checking whether getpass should be replaced" >&5
11334 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336 else
11338 SAVE_CPPFLAGS="$CPPFLAGS"
11339 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11340 cat > conftest.$ac_ext <<EOF
11341 #line 11342 "configure"
11342 #include "confdefs.h"
11344 #define REPLACE_GETPASS 1
11345 #define NO_CONFIG_H 1
11346 #define main dont_declare_main
11347 #include "${srcdir-.}/lib/getsmbpass.c"
11348 #undef main
11350 int main() {
11352 ; return 0; }
11354 if { (eval echo configure:11355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11355 rm -rf conftest*
11356 samba_cv_REPLACE_GETPASS=yes
11357 else
11358 echo "configure: failed program was:" >&5
11359 cat conftest.$ac_ext >&5
11360 rm -rf conftest*
11361 samba_cv_REPLACE_GETPASS=no
11363 rm -f conftest*
11364 CPPFLAGS="$SAVE_CPPFLAGS"
11368 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11369 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11370 cat >> confdefs.h <<\EOF
11371 #define REPLACE_GETPASS 1
11376 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11377 echo "configure:11378: checking for broken inet_ntoa" >&5
11378 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11379 echo $ac_n "(cached) $ac_c" 1>&6
11380 else
11382 if test "$cross_compiling" = yes; then
11383 samba_cv_REPLACE_INET_NTOA=cross
11384 else
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11389 #include <stdio.h>
11390 #include <sys/types.h>
11391 #include <netinet/in.h>
11392 #ifdef HAVE_ARPA_INET_H
11393 #include <arpa/inet.h>
11394 #endif
11395 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11396 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11397 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11398 exit(1);}
11400 if { (eval echo configure:11401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11401 then
11402 samba_cv_REPLACE_INET_NTOA=yes
11403 else
11404 echo "configure: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 rm -fr conftest*
11407 samba_cv_REPLACE_INET_NTOA=no
11409 rm -fr conftest*
11414 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11415 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11416 cat >> confdefs.h <<\EOF
11417 #define REPLACE_INET_NTOA 1
11422 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11423 echo "configure:11424: checking for secure mkstemp" >&5
11424 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11425 echo $ac_n "(cached) $ac_c" 1>&6
11426 else
11428 if test "$cross_compiling" = yes; then
11429 samba_cv_HAVE_SECURE_MKSTEMP=cross
11430 else
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 #include <stdlib.h>
11435 #include <sys/types.h>
11436 #include <sys/stat.h>
11437 #include <unistd.h>
11438 main() {
11439 struct stat st;
11440 char tpl[20]="/tmp/test.XXXXXX";
11441 int fd = mkstemp(tpl);
11442 if (fd == -1) exit(1);
11443 unlink(tpl);
11444 if (fstat(fd, &st) != 0) exit(1);
11445 if ((st.st_mode & 0777) != 0600) exit(1);
11446 exit(0);
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11450 then
11451 samba_cv_HAVE_SECURE_MKSTEMP=yes
11452 else
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 rm -fr conftest*
11456 samba_cv_HAVE_SECURE_MKSTEMP=no
11458 rm -fr conftest*
11463 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11464 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11465 cat >> confdefs.h <<\EOF
11466 #define HAVE_SECURE_MKSTEMP 1
11471 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11472 echo "configure:11473: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11473 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11475 else
11477 if test "$cross_compiling" = yes; then
11478 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11479 else
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 #include <unistd.h>
11484 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11486 if { (eval echo configure:11487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11487 then
11488 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11489 else
11490 echo "configure: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11492 rm -fr conftest*
11493 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11495 rm -fr conftest*
11500 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11501 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11502 cat >> confdefs.h <<\EOF
11503 #define SYSCONF_SC_NGROUPS_MAX 1
11508 echo $ac_n "checking for root""... $ac_c" 1>&6
11509 echo "configure:11510: checking for root" >&5
11510 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11511 echo $ac_n "(cached) $ac_c" 1>&6
11512 else
11514 if test "$cross_compiling" = yes; then
11515 samba_cv_HAVE_ROOT=cross
11516 else
11517 cat > conftest.$ac_ext <<EOF
11518 #line 11519 "configure"
11519 #include "confdefs.h"
11520 main() { exit(getuid() != 0); }
11522 if { (eval echo configure:11523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11523 then
11524 samba_cv_HAVE_ROOT=yes
11525 else
11526 echo "configure: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11528 rm -fr conftest*
11529 samba_cv_HAVE_ROOT=no
11531 rm -fr conftest*
11536 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11537 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11538 cat >> confdefs.h <<\EOF
11539 #define HAVE_ROOT 1
11542 else
11543 echo "configure: warning: running as non-root will disable some tests" 1>&2
11546 ##################
11547 # look for a method of finding the list of network interfaces
11548 iface=no;
11549 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11550 echo "configure:11551: checking for iface AIX" >&5
11551 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11553 else
11555 if test "$cross_compiling" = yes; then
11556 samba_cv_HAVE_IFACE_AIX=cross
11557 else
11558 cat > conftest.$ac_ext <<EOF
11559 #line 11560 "configure"
11560 #include "confdefs.h"
11562 #define HAVE_IFACE_AIX 1
11563 #define AUTOCONF_TEST 1
11564 #include "confdefs.h"
11565 #include "${srcdir-.}/lib/interfaces.c"
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11568 then
11569 samba_cv_HAVE_IFACE_AIX=yes
11570 else
11571 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5
11573 rm -fr conftest*
11574 samba_cv_HAVE_IFACE_AIX=no
11576 rm -fr conftest*
11581 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11582 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11583 iface=yes;cat >> confdefs.h <<\EOF
11584 #define HAVE_IFACE_AIX 1
11589 if test $iface = no; then
11590 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11591 echo "configure:11592: checking for iface ifconf" >&5
11592 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594 else
11596 if test "$cross_compiling" = yes; then
11597 samba_cv_HAVE_IFACE_IFCONF=cross
11598 else
11599 cat > conftest.$ac_ext <<EOF
11600 #line 11601 "configure"
11601 #include "confdefs.h"
11603 #define HAVE_IFACE_IFCONF 1
11604 #define AUTOCONF_TEST 1
11605 #include "confdefs.h"
11606 #include "${srcdir-.}/lib/interfaces.c"
11608 if { (eval echo configure:11609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11609 then
11610 samba_cv_HAVE_IFACE_IFCONF=yes
11611 else
11612 echo "configure: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 rm -fr conftest*
11615 samba_cv_HAVE_IFACE_IFCONF=no
11617 rm -fr conftest*
11622 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11623 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11624 iface=yes;cat >> confdefs.h <<\EOF
11625 #define HAVE_IFACE_IFCONF 1
11631 if test $iface = no; then
11632 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11633 echo "configure:11634: checking for iface ifreq" >&5
11634 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11635 echo $ac_n "(cached) $ac_c" 1>&6
11636 else
11638 if test "$cross_compiling" = yes; then
11639 samba_cv_HAVE_IFACE_IFREQ=cross
11640 else
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11645 #define HAVE_IFACE_IFREQ 1
11646 #define AUTOCONF_TEST 1
11647 #include "confdefs.h"
11648 #include "${srcdir-.}/lib/interfaces.c"
11650 if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11651 then
11652 samba_cv_HAVE_IFACE_IFREQ=yes
11653 else
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11656 rm -fr conftest*
11657 samba_cv_HAVE_IFACE_IFREQ=no
11659 rm -fr conftest*
11664 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11665 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11666 iface=yes;cat >> confdefs.h <<\EOF
11667 #define HAVE_IFACE_IFREQ 1
11674 ################################################
11675 # look for a method of setting the effective uid
11676 seteuid=no;
11677 if test $seteuid = no; then
11678 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11679 echo "configure:11680: checking for setresuid" >&5
11680 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11682 else
11684 if test "$cross_compiling" = yes; then
11685 samba_cv_USE_SETRESUID=cross
11686 else
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11691 #define AUTOCONF_TEST 1
11692 #define USE_SETRESUID 1
11693 #include "confdefs.h"
11694 #include "${srcdir-.}/lib/util_sec.c"
11696 if { (eval echo configure:11697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11697 then
11698 samba_cv_USE_SETRESUID=yes
11699 else
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 rm -fr conftest*
11703 samba_cv_USE_SETRESUID=no
11705 rm -fr conftest*
11710 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11711 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11712 seteuid=yes;cat >> confdefs.h <<\EOF
11713 #define USE_SETRESUID 1
11720 if test $seteuid = no; then
11721 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11722 echo "configure:11723: checking for setreuid" >&5
11723 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11725 else
11727 if test "$cross_compiling" = yes; then
11728 samba_cv_USE_SETREUID=cross
11729 else
11730 cat > conftest.$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11734 #define AUTOCONF_TEST 1
11735 #define USE_SETREUID 1
11736 #include "confdefs.h"
11737 #include "${srcdir-.}/lib/util_sec.c"
11739 if { (eval echo configure:11740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11740 then
11741 samba_cv_USE_SETREUID=yes
11742 else
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 rm -fr conftest*
11746 samba_cv_USE_SETREUID=no
11748 rm -fr conftest*
11753 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11754 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11755 seteuid=yes;cat >> confdefs.h <<\EOF
11756 #define USE_SETREUID 1
11762 if test $seteuid = no; then
11763 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11764 echo "configure:11765: checking for seteuid" >&5
11765 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11766 echo $ac_n "(cached) $ac_c" 1>&6
11767 else
11769 if test "$cross_compiling" = yes; then
11770 samba_cv_USE_SETEUID=cross
11771 else
11772 cat > conftest.$ac_ext <<EOF
11773 #line 11774 "configure"
11774 #include "confdefs.h"
11776 #define AUTOCONF_TEST 1
11777 #define USE_SETEUID 1
11778 #include "confdefs.h"
11779 #include "${srcdir-.}/lib/util_sec.c"
11781 if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11782 then
11783 samba_cv_USE_SETEUID=yes
11784 else
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 rm -fr conftest*
11788 samba_cv_USE_SETEUID=no
11790 rm -fr conftest*
11795 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11796 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11797 seteuid=yes;cat >> confdefs.h <<\EOF
11798 #define USE_SETEUID 1
11804 if test $seteuid = no; then
11805 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11806 echo "configure:11807: checking for setuidx" >&5
11807 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11808 echo $ac_n "(cached) $ac_c" 1>&6
11809 else
11811 if test "$cross_compiling" = yes; then
11812 samba_cv_USE_SETUIDX=cross
11813 else
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11818 #define AUTOCONF_TEST 1
11819 #define USE_SETUIDX 1
11820 #include "confdefs.h"
11821 #include "${srcdir-.}/lib/util_sec.c"
11823 if { (eval echo configure:11824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11824 then
11825 samba_cv_USE_SETUIDX=yes
11826 else
11827 echo "configure: failed program was:" >&5
11828 cat conftest.$ac_ext >&5
11829 rm -fr conftest*
11830 samba_cv_USE_SETUIDX=no
11832 rm -fr conftest*
11837 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11838 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11839 seteuid=yes;cat >> confdefs.h <<\EOF
11840 #define USE_SETUIDX 1
11847 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11848 echo "configure:11849: checking for working mmap" >&5
11849 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11850 echo $ac_n "(cached) $ac_c" 1>&6
11851 else
11853 if test "$cross_compiling" = yes; then
11854 samba_cv_HAVE_MMAP=cross
11855 else
11856 cat > conftest.$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11859 #include "${srcdir-.}/tests/shared_mmap.c"
11861 if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11862 then
11863 samba_cv_HAVE_MMAP=yes
11864 else
11865 echo "configure: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11867 rm -fr conftest*
11868 samba_cv_HAVE_MMAP=no
11870 rm -fr conftest*
11875 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11876 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11877 cat >> confdefs.h <<\EOF
11878 #define HAVE_MMAP 1
11883 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11884 echo "configure:11885: checking for ftruncate needs root" >&5
11885 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11886 echo $ac_n "(cached) $ac_c" 1>&6
11887 else
11889 if test "$cross_compiling" = yes; then
11890 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11891 else
11892 cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 #include "${srcdir-.}/tests/ftruncroot.c"
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11898 then
11899 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11900 else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 rm -fr conftest*
11904 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11906 rm -fr conftest*
11911 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11912 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11913 cat >> confdefs.h <<\EOF
11914 #define FTRUNCATE_NEEDS_ROOT 1
11919 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11920 echo "configure:11921: checking for fcntl locking" >&5
11921 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11922 echo $ac_n "(cached) $ac_c" 1>&6
11923 else
11925 if test "$cross_compiling" = yes; then
11926 samba_cv_HAVE_FCNTL_LOCK=cross
11927 else
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11931 #include "${srcdir-.}/tests/fcntl_lock.c"
11933 if { (eval echo configure:11934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11934 then
11935 samba_cv_HAVE_FCNTL_LOCK=yes
11936 else
11937 echo "configure: failed program was:" >&5
11938 cat conftest.$ac_ext >&5
11939 rm -fr conftest*
11940 samba_cv_HAVE_FCNTL_LOCK=no
11942 rm -fr conftest*
11947 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11948 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11949 cat >> confdefs.h <<\EOF
11950 #define HAVE_FCNTL_LOCK 1
11955 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11956 echo "configure:11957: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11957 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11958 echo $ac_n "(cached) $ac_c" 1>&6
11959 else
11961 if test "$cross_compiling" = yes; then
11962 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11963 else
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include "${srcdir-.}/tests/fcntl_lock64.c"
11969 if { (eval echo configure:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11970 then
11971 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11972 else
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11975 rm -fr conftest*
11976 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11978 rm -fr conftest*
11983 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11984 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11985 cat >> confdefs.h <<\EOF
11986 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11990 else
11993 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11994 echo "configure:11995: checking for 64 bit fcntl locking" >&5
11995 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11996 echo $ac_n "(cached) $ac_c" 1>&6
11997 else
11999 if test "$cross_compiling" = yes; then
12000 samba_cv_HAVE_STRUCT_FLOCK64=cross
12001 else
12002 cat > conftest.$ac_ext <<EOF
12003 #line 12004 "configure"
12004 #include "confdefs.h"
12006 #if defined(HAVE_UNISTD_H)
12007 #include <unistd.h>
12008 #endif
12009 #include <stdio.h>
12010 #include <stdlib.h>
12012 #ifdef HAVE_FCNTL_H
12013 #include <fcntl.h>
12014 #endif
12016 #ifdef HAVE_SYS_FCNTL_H
12017 #include <sys/fcntl.h>
12018 #endif
12019 main() { struct flock64 fl64;
12020 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
12021 exit(0);
12022 #else
12023 exit(1);
12024 #endif
12027 if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12028 then
12029 samba_cv_HAVE_STRUCT_FLOCK64=yes
12030 else
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 rm -fr conftest*
12034 samba_cv_HAVE_STRUCT_FLOCK64=no
12036 rm -fr conftest*
12041 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
12043 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
12044 cat >> confdefs.h <<\EOF
12045 #define HAVE_STRUCT_FLOCK64 1
12051 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
12052 echo "configure:12053: checking for st_blocks in struct stat" >&5
12053 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
12054 echo $ac_n "(cached) $ac_c" 1>&6
12055 else
12057 cat > conftest.$ac_ext <<EOF
12058 #line 12059 "configure"
12059 #include "confdefs.h"
12060 #include <sys/types.h>
12061 #include <sys/stat.h>
12062 #include <unistd.h>
12063 int main() {
12064 struct stat st; st.st_blocks = 0;
12065 ; return 0; }
12067 if { (eval echo configure:12068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12068 rm -rf conftest*
12069 samba_cv_HAVE_STAT_ST_BLOCKS=yes
12070 else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 samba_cv_HAVE_STAT_ST_BLOCKS=no
12076 rm -f conftest*
12079 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12080 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
12081 cat >> confdefs.h <<\EOF
12082 #define HAVE_STAT_ST_BLOCKS 1
12087 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12088 echo "configure:12089: checking for st_blksize in struct stat" >&5
12089 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12090 echo $ac_n "(cached) $ac_c" 1>&6
12091 else
12093 cat > conftest.$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 #include <sys/types.h>
12097 #include <sys/stat.h>
12098 #include <unistd.h>
12099 int main() {
12100 struct stat st; st.st_blksize = 0;
12101 ; return 0; }
12103 if { (eval echo configure:12104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12104 rm -rf conftest*
12105 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
12106 else
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12109 rm -rf conftest*
12110 samba_cv_HAVE_STAT_ST_BLKSIZE=no
12112 rm -f conftest*
12115 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12116 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
12117 cat >> confdefs.h <<\EOF
12118 #define HAVE_STAT_ST_BLKSIZE 1
12123 case "$host_os" in
12124 *linux*)
12125 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12126 echo "configure:12127: checking for broken RedHat 7.2 system header files" >&5
12127 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12129 else
12131 cat > conftest.$ac_ext <<EOF
12132 #line 12133 "configure"
12133 #include "confdefs.h"
12135 #ifdef HAVE_SYS_VFS_H
12136 #include <sys/vfs.h>
12137 #endif
12138 #ifdef HAVE_SYS_CAPABILITY_H
12139 #include <sys/capability.h>
12140 #endif
12142 int main() {
12143 int i;
12144 ; return 0; }
12146 if { (eval echo configure:12147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12147 rm -rf conftest*
12148 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
12149 else
12150 echo "configure: failed program was:" >&5
12151 cat conftest.$ac_ext >&5
12152 rm -rf conftest*
12153 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
12155 rm -f conftest*
12158 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12159 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
12160 cat >> confdefs.h <<\EOF
12161 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12166 esac
12168 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12169 echo "configure:12170: checking for broken nisplus include files" >&5
12170 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12172 else
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 #include <sys/acl.h>
12178 #if defined(HAVE_RPCSVC_NIS_H)
12179 #include <rpcsvc/nis.h>
12180 #endif
12181 int main() {
12182 int i;
12183 ; return 0; }
12185 if { (eval echo configure:12186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12186 rm -rf conftest*
12187 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
12188 else
12189 echo "configure: failed program was:" >&5
12190 cat conftest.$ac_ext >&5
12191 rm -rf conftest*
12192 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
12194 rm -f conftest*
12197 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12198 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
12199 cat >> confdefs.h <<\EOF
12200 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12206 #################################################
12207 # check for smbwrapper support
12208 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12209 echo "configure:12210: checking whether to use smbwrapper" >&5
12210 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12211 if test "${with_smbwrapper+set}" = set; then
12212 withval="$with_smbwrapper"
12213 case "$withval" in
12214 yes)
12215 echo "$ac_t""yes" 1>&6
12216 cat >> confdefs.h <<\EOF
12217 #define WITH_SMBWRAPPER 1
12220 WRAPPROG="bin/smbsh\$(EXEEXT)"
12221 WRAP="bin/smbwrapper.$SHLIBEXT"
12223 if test x$ATTEMPT_WRAP32_BUILD = x; then
12224 WRAP32=""
12225 else
12226 WRAP32=bin/smbwrapper.32.$SHLIBEXT
12229 # Conditions under which smbwrapper should not be built.
12231 if test x$PICFLAG = x; then
12232 echo No support for PIC code - disabling smbwrapper and smbsh
12233 WRAPPROG=""
12234 WRAP=""
12235 WRAP32=""
12236 elif test x$ac_cv_func_syscall = xno; then
12237 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12238 WRAPPROG=""
12239 WRAP=""
12240 WRAP32=""
12242 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12243 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
12246 echo "$ac_t""no" 1>&6
12248 esac
12249 else
12250 echo "$ac_t""no" 1>&6
12255 #################################################
12256 # check for AFS clear-text auth support
12257 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12258 echo "configure:12259: checking whether to use AFS clear-text auth" >&5
12259 # Check whether --with-afs or --without-afs was given.
12260 if test "${with_afs+set}" = set; then
12261 withval="$with_afs"
12262 case "$withval" in
12263 yes)
12264 echo "$ac_t""yes" 1>&6
12265 cat >> confdefs.h <<\EOF
12266 #define WITH_AFS 1
12271 echo "$ac_t""no" 1>&6
12273 esac
12274 else
12275 echo "$ac_t""no" 1>&6
12281 #################################################
12282 # check for the DFS clear-text auth system
12283 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12284 echo "configure:12285: checking whether to use DFS clear-text auth" >&5
12285 # Check whether --with-dfs or --without-dfs was given.
12286 if test "${with_dfs+set}" = set; then
12287 withval="$with_dfs"
12288 case "$withval" in
12289 yes)
12290 echo "$ac_t""yes" 1>&6
12291 cat >> confdefs.h <<\EOF
12292 #define WITH_DFS 1
12297 echo "$ac_t""no" 1>&6
12299 esac
12300 else
12301 echo "$ac_t""no" 1>&6
12306 #################################################
12307 # active directory support
12309 with_ads_support=yes
12310 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12311 echo "configure:12312: checking whether to use Active Directory" >&5
12313 # Check whether --with-ads or --without-ads was given.
12314 if test "${with_ads+set}" = set; then
12315 withval="$with_ads"
12316 case "$withval" in
12318 with_ads_support=no
12320 esac
12324 if test x"$with_ads_support" = x"yes"; then
12325 cat >> confdefs.h <<\EOF
12326 #define WITH_ADS 1
12331 echo "$ac_t""$with_ads_support" 1>&6
12333 FOUND_KRB5=no
12334 if test x"$with_ads_support" = x"yes"; then
12336 #################################################
12337 # check for location of Kerberos 5 install
12338 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12339 echo "configure:12340: checking for kerberos 5 install path" >&5
12340 # Check whether --with-krb5 or --without-krb5 was given.
12341 if test "${with_krb5+set}" = set; then
12342 withval="$with_krb5"
12343 case "$withval" in
12345 echo "$ac_t""no" 1>&6
12348 echo "$ac_t""yes" 1>&6
12349 LIBS="$LIBS -lkrb5"
12350 CFLAGS="$CFLAGS -I$withval/include"
12351 CPPFLAGS="$CPPFLAGS -I$withval/include"
12352 LDFLAGS="$LDFLAGS -L$withval/lib"
12353 FOUND_KRB5=yes
12355 esac
12356 else
12357 echo "$ac_t""no" 1>&6
12363 if test x$FOUND_KRB5 = x"no"; then
12364 #################################################
12365 # see if this box has the SuSE location for the heimdal kerberos implementation
12366 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12367 echo "configure:12368: checking for /usr/include/heimdal" >&5
12368 if test -d /usr/include/heimdal; then
12369 CFLAGS="$CFLAGS -I/usr/include/heimdal"
12370 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
12371 echo "$ac_t""yes" 1>&6
12372 else
12373 echo "$ac_t""no" 1>&6
12378 if test x$FOUND_KRB5 = x"no"; then
12379 #################################################
12380 # see if this box has the RedHat location for kerberos
12381 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12382 echo "configure:12383: checking for /usr/kerberos" >&5
12383 if test -d /usr/kerberos; then
12384 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12385 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12386 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12387 echo "$ac_t""yes" 1>&6
12388 else
12389 echo "$ac_t""no" 1>&6
12394 # now check for krb5.h. Some systems have the libraries without the headers!
12395 # note that this check is done here to allow for different kerberos
12396 # include paths
12397 for ac_hdr in krb5.h
12399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12401 echo "configure:12402: checking for $ac_hdr" >&5
12402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12403 echo $ac_n "(cached) $ac_c" 1>&6
12404 else
12405 cat > conftest.$ac_ext <<EOF
12406 #line 12407 "configure"
12407 #include "confdefs.h"
12408 #include <$ac_hdr>
12410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12411 { (eval echo configure:12412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12413 if test -z "$ac_err"; then
12414 rm -rf conftest*
12415 eval "ac_cv_header_$ac_safe=yes"
12416 else
12417 echo "$ac_err" >&5
12418 echo "configure: failed program was:" >&5
12419 cat conftest.$ac_ext >&5
12420 rm -rf conftest*
12421 eval "ac_cv_header_$ac_safe=no"
12423 rm -f conftest*
12425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12426 echo "$ac_t""yes" 1>&6
12427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12428 cat >> confdefs.h <<EOF
12429 #define $ac_tr_hdr 1
12432 else
12433 echo "$ac_t""no" 1>&6
12435 done
12438 # now check for gssapi headers. This is also done here to allow for
12439 # different kerberos include paths
12440 for ac_hdr in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
12442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12444 echo "configure:12445: checking for $ac_hdr" >&5
12445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12446 echo $ac_n "(cached) $ac_c" 1>&6
12447 else
12448 cat > conftest.$ac_ext <<EOF
12449 #line 12450 "configure"
12450 #include "confdefs.h"
12451 #include <$ac_hdr>
12453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12454 { (eval echo configure:12455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12456 if test -z "$ac_err"; then
12457 rm -rf conftest*
12458 eval "ac_cv_header_$ac_safe=yes"
12459 else
12460 echo "$ac_err" >&5
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 rm -rf conftest*
12464 eval "ac_cv_header_$ac_safe=no"
12466 rm -f conftest*
12468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12469 echo "$ac_t""yes" 1>&6
12470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12471 cat >> confdefs.h <<EOF
12472 #define $ac_tr_hdr 1
12475 else
12476 echo "$ac_t""no" 1>&6
12478 done
12481 ##################################################################
12482 # we might need the k5crypto and com_err libraries on some systems
12483 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12484 echo "configure:12485: checking for _et_list in -lcom_err" >&5
12485 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12488 else
12489 ac_save_LIBS="$LIBS"
12490 LIBS="-lcom_err $LIBS"
12491 cat > conftest.$ac_ext <<EOF
12492 #line 12493 "configure"
12493 #include "confdefs.h"
12494 /* Override any gcc2 internal prototype to avoid an error. */
12495 /* We use char because int might match the return type of a gcc2
12496 builtin and then its argument prototype would still apply. */
12497 char _et_list();
12499 int main() {
12500 _et_list()
12501 ; return 0; }
12503 if { (eval echo configure:12504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12504 rm -rf conftest*
12505 eval "ac_cv_lib_$ac_lib_var=yes"
12506 else
12507 echo "configure: failed program was:" >&5
12508 cat conftest.$ac_ext >&5
12509 rm -rf conftest*
12510 eval "ac_cv_lib_$ac_lib_var=no"
12512 rm -f conftest*
12513 LIBS="$ac_save_LIBS"
12516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12517 echo "$ac_t""yes" 1>&6
12518 LIBS="$LIBS -lcom_err"
12519 else
12520 echo "$ac_t""no" 1>&6
12523 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12524 echo "configure:12525: checking for krb5_encrypt_data in -lk5crypto" >&5
12525 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12526 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12527 echo $ac_n "(cached) $ac_c" 1>&6
12528 else
12529 ac_save_LIBS="$LIBS"
12530 LIBS="-lk5crypto $LIBS"
12531 cat > conftest.$ac_ext <<EOF
12532 #line 12533 "configure"
12533 #include "confdefs.h"
12534 /* Override any gcc2 internal prototype to avoid an error. */
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char krb5_encrypt_data();
12539 int main() {
12540 krb5_encrypt_data()
12541 ; return 0; }
12543 if { (eval echo configure:12544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12544 rm -rf conftest*
12545 eval "ac_cv_lib_$ac_lib_var=yes"
12546 else
12547 echo "configure: failed program was:" >&5
12548 cat conftest.$ac_ext >&5
12549 rm -rf conftest*
12550 eval "ac_cv_lib_$ac_lib_var=no"
12552 rm -f conftest*
12553 LIBS="$ac_save_LIBS"
12556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12557 echo "$ac_t""yes" 1>&6
12558 LIBS="$LIBS -lk5crypto"
12559 else
12560 echo "$ac_t""no" 1>&6
12563 # Heimdal checks.
12564 echo $ac_n "checking for des_set_key in -lcrypto""... $ac_c" 1>&6
12565 echo "configure:12566: checking for des_set_key in -lcrypto" >&5
12566 ac_lib_var=`echo crypto'_'des_set_key | sed 'y%./+-%__p_%'`
12567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12568 echo $ac_n "(cached) $ac_c" 1>&6
12569 else
12570 ac_save_LIBS="$LIBS"
12571 LIBS="-lcrypto $LIBS"
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575 /* Override any gcc2 internal prototype to avoid an error. */
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12578 char des_set_key();
12580 int main() {
12581 des_set_key()
12582 ; return 0; }
12584 if { (eval echo configure:12585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12585 rm -rf conftest*
12586 eval "ac_cv_lib_$ac_lib_var=yes"
12587 else
12588 echo "configure: failed program was:" >&5
12589 cat conftest.$ac_ext >&5
12590 rm -rf conftest*
12591 eval "ac_cv_lib_$ac_lib_var=no"
12593 rm -f conftest*
12594 LIBS="$ac_save_LIBS"
12597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12598 echo "$ac_t""yes" 1>&6
12599 LIBS="$LIBS -lcrypto"
12600 else
12601 echo "$ac_t""no" 1>&6
12604 echo $ac_n "checking for copy_Authenticator in -lasn1""... $ac_c" 1>&6
12605 echo "configure:12606: checking for copy_Authenticator in -lasn1" >&5
12606 ac_lib_var=`echo asn1'_'copy_Authenticator | sed 'y%./+-%__p_%'`
12607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12608 echo $ac_n "(cached) $ac_c" 1>&6
12609 else
12610 ac_save_LIBS="$LIBS"
12611 LIBS="-lasn1 $LIBS"
12612 cat > conftest.$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12615 /* Override any gcc2 internal prototype to avoid an error. */
12616 /* We use char because int might match the return type of a gcc2
12617 builtin and then its argument prototype would still apply. */
12618 char copy_Authenticator();
12620 int main() {
12621 copy_Authenticator()
12622 ; return 0; }
12624 if { (eval echo configure:12625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12625 rm -rf conftest*
12626 eval "ac_cv_lib_$ac_lib_var=yes"
12627 else
12628 echo "configure: failed program was:" >&5
12629 cat conftest.$ac_ext >&5
12630 rm -rf conftest*
12631 eval "ac_cv_lib_$ac_lib_var=no"
12633 rm -f conftest*
12634 LIBS="$ac_save_LIBS"
12637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12638 echo "$ac_t""yes" 1>&6
12639 LIBS="$LIBS -lasn1 -lroken"
12640 else
12641 echo "$ac_t""no" 1>&6
12644 echo $ac_n "checking for krb5_set_real_time in -lkrb5""... $ac_c" 1>&6
12645 echo "configure:12646: checking for krb5_set_real_time in -lkrb5" >&5
12646 ac_lib_var=`echo krb5'_'krb5_set_real_time | sed 'y%./+-%__p_%'`
12647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12649 else
12650 ac_save_LIBS="$LIBS"
12651 LIBS="-lkrb5 $LIBS"
12652 cat > conftest.$ac_ext <<EOF
12653 #line 12654 "configure"
12654 #include "confdefs.h"
12655 /* Override any gcc2 internal prototype to avoid an error. */
12656 /* We use char because int might match the return type of a gcc2
12657 builtin and then its argument prototype would still apply. */
12658 char krb5_set_real_time();
12660 int main() {
12661 krb5_set_real_time()
12662 ; return 0; }
12664 if { (eval echo configure:12665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665 rm -rf conftest*
12666 eval "ac_cv_lib_$ac_lib_var=yes"
12667 else
12668 echo "configure: failed program was:" >&5
12669 cat conftest.$ac_ext >&5
12670 rm -rf conftest*
12671 eval "ac_cv_lib_$ac_lib_var=no"
12673 rm -f conftest*
12674 LIBS="$ac_save_LIBS"
12677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12678 echo "$ac_t""yes" 1>&6
12679 cat >> confdefs.h <<\EOF
12680 #define HAVE_KRB5_SET_REAL_TIME 1
12683 else
12684 echo "$ac_t""no" 1>&6
12687 echo $ac_n "checking for krb5_set_default_in_tkt_etypes in -lkrb5""... $ac_c" 1>&6
12688 echo "configure:12689: checking for krb5_set_default_in_tkt_etypes in -lkrb5" >&5
12689 ac_lib_var=`echo krb5'_'krb5_set_default_in_tkt_etypes | sed 'y%./+-%__p_%'`
12690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12691 echo $ac_n "(cached) $ac_c" 1>&6
12692 else
12693 ac_save_LIBS="$LIBS"
12694 LIBS="-lkrb5 $LIBS"
12695 cat > conftest.$ac_ext <<EOF
12696 #line 12697 "configure"
12697 #include "confdefs.h"
12698 /* Override any gcc2 internal prototype to avoid an error. */
12699 /* We use char because int might match the return type of a gcc2
12700 builtin and then its argument prototype would still apply. */
12701 char krb5_set_default_in_tkt_etypes();
12703 int main() {
12704 krb5_set_default_in_tkt_etypes()
12705 ; return 0; }
12707 if { (eval echo configure:12708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12708 rm -rf conftest*
12709 eval "ac_cv_lib_$ac_lib_var=yes"
12710 else
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12713 rm -rf conftest*
12714 eval "ac_cv_lib_$ac_lib_var=no"
12716 rm -f conftest*
12717 LIBS="$ac_save_LIBS"
12720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12721 echo "$ac_t""yes" 1>&6
12722 cat >> confdefs.h <<\EOF
12723 #define HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES 1
12726 else
12727 echo "$ac_t""no" 1>&6
12730 echo $ac_n "checking for krb5_set_default_tgs_ktypes in -lkrb5""... $ac_c" 1>&6
12731 echo "configure:12732: checking for krb5_set_default_tgs_ktypes in -lkrb5" >&5
12732 ac_lib_var=`echo krb5'_'krb5_set_default_tgs_ktypes | sed 'y%./+-%__p_%'`
12733 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12734 echo $ac_n "(cached) $ac_c" 1>&6
12735 else
12736 ac_save_LIBS="$LIBS"
12737 LIBS="-lkrb5 $LIBS"
12738 cat > conftest.$ac_ext <<EOF
12739 #line 12740 "configure"
12740 #include "confdefs.h"
12741 /* Override any gcc2 internal prototype to avoid an error. */
12742 /* We use char because int might match the return type of a gcc2
12743 builtin and then its argument prototype would still apply. */
12744 char krb5_set_default_tgs_ktypes();
12746 int main() {
12747 krb5_set_default_tgs_ktypes()
12748 ; return 0; }
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12751 rm -rf conftest*
12752 eval "ac_cv_lib_$ac_lib_var=yes"
12753 else
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12756 rm -rf conftest*
12757 eval "ac_cv_lib_$ac_lib_var=no"
12759 rm -f conftest*
12760 LIBS="$ac_save_LIBS"
12763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12764 echo "$ac_t""yes" 1>&6
12765 cat >> confdefs.h <<\EOF
12766 #define HAVE_KRB5_SET_DEFAULT_TGS_KTYPES 1
12769 else
12770 echo "$ac_t""no" 1>&6
12774 echo $ac_n "checking for addrtype in krb5_address""... $ac_c" 1>&6
12775 echo "configure:12776: checking for addrtype in krb5_address" >&5
12776 if eval "test \"`echo '$''{'samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS'+set}'`\" = set"; then
12777 echo $ac_n "(cached) $ac_c" 1>&6
12778 else
12780 cat > conftest.$ac_ext <<EOF
12781 #line 12782 "configure"
12782 #include "confdefs.h"
12783 #include <krb5.h>
12784 int main() {
12785 krb5_address kaddr; kaddr.addrtype = ADDRTYPE_INET;
12786 ; return 0; }
12788 if { (eval echo configure:12789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12789 rm -rf conftest*
12790 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=yes
12791 else
12792 echo "configure: failed program was:" >&5
12793 cat conftest.$ac_ext >&5
12794 rm -rf conftest*
12795 samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS=no
12797 rm -f conftest*
12800 echo "$ac_t""$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" 1>&6
12801 if test x"$samba_cv_HAVE_ADDRTYPE_IN_KRB5_ADDRESS" = x"yes"; then
12802 cat >> confdefs.h <<\EOF
12803 #define HAVE_ADDRTYPE_IN_KRB5_ADDRESS 1
12808 echo $ac_n "checking for addr_type in krb5_address""... $ac_c" 1>&6
12809 echo "configure:12810: checking for addr_type in krb5_address" >&5
12810 if eval "test \"`echo '$''{'samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS'+set}'`\" = set"; then
12811 echo $ac_n "(cached) $ac_c" 1>&6
12812 else
12814 cat > conftest.$ac_ext <<EOF
12815 #line 12816 "configure"
12816 #include "confdefs.h"
12817 #include <krb5.h>
12818 int main() {
12819 krb5_address kaddr; kaddr.addr_type = KRB5_ADDRESS_INET;
12820 ; return 0; }
12822 if { (eval echo configure:12823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12823 rm -rf conftest*
12824 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=yes
12825 else
12826 echo "configure: failed program was:" >&5
12827 cat conftest.$ac_ext >&5
12828 rm -rf conftest*
12829 samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS=no
12831 rm -f conftest*
12834 echo "$ac_t""$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" 1>&6
12835 if test x"$samba_cv_HAVE_ADDR_TYPE_IN_KRB5_ADDRESS" = x"yes"; then
12836 cat >> confdefs.h <<\EOF
12837 #define HAVE_ADDR_TYPE_IN_KRB5_ADDRESS 1
12842 ########################################################
12843 # now see if we can find the krb5 libs in standard paths
12844 # or as specified above
12845 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12846 echo "configure:12847: checking for krb5_mk_req_extended in -lkrb5" >&5
12847 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12848 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12849 echo $ac_n "(cached) $ac_c" 1>&6
12850 else
12851 ac_save_LIBS="$LIBS"
12852 LIBS="-lkrb5 $LIBS"
12853 cat > conftest.$ac_ext <<EOF
12854 #line 12855 "configure"
12855 #include "confdefs.h"
12856 /* Override any gcc2 internal prototype to avoid an error. */
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12859 char krb5_mk_req_extended();
12861 int main() {
12862 krb5_mk_req_extended()
12863 ; return 0; }
12865 if { (eval echo configure:12866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12866 rm -rf conftest*
12867 eval "ac_cv_lib_$ac_lib_var=yes"
12868 else
12869 echo "configure: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12871 rm -rf conftest*
12872 eval "ac_cv_lib_$ac_lib_var=no"
12874 rm -f conftest*
12875 LIBS="$ac_save_LIBS"
12878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12879 echo "$ac_t""yes" 1>&6
12880 LIBS="$LIBS -lkrb5";
12881 cat >> confdefs.h <<\EOF
12882 #define HAVE_KRB5 1
12885 else
12886 echo "$ac_t""no" 1>&6
12890 ########################################################
12891 # now see if we can find the gssapi libs in standard paths
12892 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12893 echo "configure:12894: checking for gss_display_status in -lgssapi_krb5" >&5
12894 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12897 else
12898 ac_save_LIBS="$LIBS"
12899 LIBS="-lgssapi_krb5 $LIBS"
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12903 /* Override any gcc2 internal prototype to avoid an error. */
12904 /* We use char because int might match the return type of a gcc2
12905 builtin and then its argument prototype would still apply. */
12906 char gss_display_status();
12908 int main() {
12909 gss_display_status()
12910 ; return 0; }
12912 if { (eval echo configure:12913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12913 rm -rf conftest*
12914 eval "ac_cv_lib_$ac_lib_var=yes"
12915 else
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 rm -rf conftest*
12919 eval "ac_cv_lib_$ac_lib_var=no"
12921 rm -f conftest*
12922 LIBS="$ac_save_LIBS"
12925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12926 echo "$ac_t""yes" 1>&6
12927 LIBS="$LIBS -lgssapi_krb5";
12928 cat >> confdefs.h <<\EOF
12929 #define HAVE_GSSAPI 1
12932 else
12933 echo "$ac_t""no" 1>&6
12936 # Heimdal checks.
12937 echo $ac_n "checking for gss_display_status in -lgssapi""... $ac_c" 1>&6
12938 echo "configure:12939: checking for gss_display_status in -lgssapi" >&5
12939 ac_lib_var=`echo gssapi'_'gss_display_status | sed 'y%./+-%__p_%'`
12940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12942 else
12943 ac_save_LIBS="$LIBS"
12944 LIBS="-lgssapi $LIBS"
12945 cat > conftest.$ac_ext <<EOF
12946 #line 12947 "configure"
12947 #include "confdefs.h"
12948 /* Override any gcc2 internal prototype to avoid an error. */
12949 /* We use char because int might match the return type of a gcc2
12950 builtin and then its argument prototype would still apply. */
12951 char gss_display_status();
12953 int main() {
12954 gss_display_status()
12955 ; return 0; }
12957 if { (eval echo configure:12958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12958 rm -rf conftest*
12959 eval "ac_cv_lib_$ac_lib_var=yes"
12960 else
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
12963 rm -rf conftest*
12964 eval "ac_cv_lib_$ac_lib_var=no"
12966 rm -f conftest*
12967 LIBS="$ac_save_LIBS"
12970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12971 echo "$ac_t""yes" 1>&6
12972 LIBS="$LIBS -lgssapi";
12973 cat >> confdefs.h <<\EOF
12974 #define HAVE_GSSAPI 1
12977 else
12978 echo "$ac_t""no" 1>&6
12983 ########################################################
12984 # Compile with LDAP support?
12986 with_ldap_support=yes
12987 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12988 echo "configure:12989: checking whether to use LDAP" >&5
12990 # Check whether --with-ldap or --without-ldap was given.
12991 if test "${with_ldap+set}" = set; then
12992 withval="$with_ldap"
12993 case "$withval" in
12995 with_ldap_support=no
12997 esac
13001 echo "$ac_t""$with_ldap_support" 1>&6
13003 if test x"$with_ldap_support" = x"yes"; then
13005 ##################################################################
13006 # we might need the lber lib on some systems. To avoid link errors
13007 # this test must be before the libldap test
13008 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
13009 echo "configure:13010: checking for ber_scanf in -llber" >&5
13010 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
13011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13012 echo $ac_n "(cached) $ac_c" 1>&6
13013 else
13014 ac_save_LIBS="$LIBS"
13015 LIBS="-llber $LIBS"
13016 cat > conftest.$ac_ext <<EOF
13017 #line 13018 "configure"
13018 #include "confdefs.h"
13019 /* Override any gcc2 internal prototype to avoid an error. */
13020 /* We use char because int might match the return type of a gcc2
13021 builtin and then its argument prototype would still apply. */
13022 char ber_scanf();
13024 int main() {
13025 ber_scanf()
13026 ; return 0; }
13028 if { (eval echo configure:13029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13029 rm -rf conftest*
13030 eval "ac_cv_lib_$ac_lib_var=yes"
13031 else
13032 echo "configure: failed program was:" >&5
13033 cat conftest.$ac_ext >&5
13034 rm -rf conftest*
13035 eval "ac_cv_lib_$ac_lib_var=no"
13037 rm -f conftest*
13038 LIBS="$ac_save_LIBS"
13041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13042 echo "$ac_t""yes" 1>&6
13043 LIBS="$LIBS -llber"
13044 else
13045 echo "$ac_t""no" 1>&6
13049 ########################################################
13050 # now see if we can find the ldap libs in standard paths
13051 if test x$have_ldap != xyes; then
13052 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
13053 echo "configure:13054: checking for ldap_domain2hostlist in -lldap" >&5
13054 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
13055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13056 echo $ac_n "(cached) $ac_c" 1>&6
13057 else
13058 ac_save_LIBS="$LIBS"
13059 LIBS="-lldap $LIBS"
13060 cat > conftest.$ac_ext <<EOF
13061 #line 13062 "configure"
13062 #include "confdefs.h"
13063 /* Override any gcc2 internal prototype to avoid an error. */
13064 /* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13066 char ldap_domain2hostlist();
13068 int main() {
13069 ldap_domain2hostlist()
13070 ; return 0; }
13072 if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13073 rm -rf conftest*
13074 eval "ac_cv_lib_$ac_lib_var=yes"
13075 else
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13078 rm -rf conftest*
13079 eval "ac_cv_lib_$ac_lib_var=no"
13081 rm -f conftest*
13082 LIBS="$ac_save_LIBS"
13085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13086 echo "$ac_t""yes" 1>&6
13087 LIBS="$LIBS -lldap";
13088 cat >> confdefs.h <<\EOF
13089 #define HAVE_LDAP 1
13092 else
13093 echo "$ac_t""no" 1>&6
13097 ########################################################
13098 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
13099 # Check found in pam_ldap 145.
13100 for ac_func in ldap_set_rebind_proc
13102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13103 echo "configure:13104: checking for $ac_func" >&5
13104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13105 echo $ac_n "(cached) $ac_c" 1>&6
13106 else
13107 cat > conftest.$ac_ext <<EOF
13108 #line 13109 "configure"
13109 #include "confdefs.h"
13110 /* System header to define __stub macros and hopefully few prototypes,
13111 which can conflict with char $ac_func(); below. */
13112 #include <assert.h>
13113 /* Override any gcc2 internal prototype to avoid an error. */
13114 /* We use char because int might match the return type of a gcc2
13115 builtin and then its argument prototype would still apply. */
13116 char $ac_func();
13118 int main() {
13120 /* The GNU C library defines this for functions which it implements
13121 to always fail with ENOSYS. Some functions are actually named
13122 something starting with __ and the normal name is an alias. */
13123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13124 choke me
13125 #else
13126 $ac_func();
13127 #endif
13129 ; return 0; }
13131 if { (eval echo configure:13132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13132 rm -rf conftest*
13133 eval "ac_cv_func_$ac_func=yes"
13134 else
13135 echo "configure: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 rm -rf conftest*
13138 eval "ac_cv_func_$ac_func=no"
13140 rm -f conftest*
13143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13146 cat >> confdefs.h <<EOF
13147 #define $ac_tr_func 1
13150 else
13151 echo "$ac_t""no" 1>&6
13153 done
13155 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
13156 echo "configure:13157: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
13157 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
13158 echo $ac_n "(cached) $ac_c" 1>&6
13159 else
13161 cat > conftest.$ac_ext <<EOF
13162 #line 13163 "configure"
13163 #include "confdefs.h"
13165 #include <lber.h>
13166 #include <ldap.h>
13167 int main() {
13168 ldap_set_rebind_proc(0, 0, 0);
13169 ; return 0; }
13171 if { (eval echo configure:13172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13172 rm -rf conftest*
13173 pam_ldap_cv_ldap_set_rebind_proc=3
13174 else
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13177 rm -rf conftest*
13178 pam_ldap_cv_ldap_set_rebind_proc=2
13180 rm -f conftest*
13183 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
13184 cat >> confdefs.h <<EOF
13185 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
13191 ########################################################
13192 # Compile with MySQL support?
13193 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
13194 if test "${with_mysql_prefix+set}" = set; then
13195 withval="$with_mysql_prefix"
13196 mysql_prefix="$withval"
13197 else
13198 mysql_prefix=""
13201 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
13202 if test "${with_mysql_exec_prefix+set}" = set; then
13203 withval="$with_mysql_exec_prefix"
13204 mysql_exec_prefix="$withval"
13205 else
13206 mysql_exec_prefix=""
13209 # Check whether --enable-mysqltest or --disable-mysqltest was given.
13210 if test "${enable_mysqltest+set}" = set; then
13211 enableval="$enable_mysqltest"
13213 else
13214 enable_mysqltest=yes
13218 if test x$mysql_exec_prefix != x ; then
13219 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
13220 if test x${MYSQL_CONFIG+set} != xset ; then
13221 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
13224 if test x$mysql_prefix != x ; then
13225 mysql_args="$mysql_args --prefix=$mysql_prefix"
13226 if test x${MYSQL_CONFIG+set} != xset ; then
13227 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
13232 # Extract the first word of "mysql_config", so it can be a program name with args.
13233 set dummy mysql_config; ac_word=$2
13234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13235 echo "configure:13236: checking for $ac_word" >&5
13236 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13238 else
13239 case "$MYSQL_CONFIG" in
13241 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
13243 ?:/*)
13244 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a dos path.
13247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13248 ac_dummy="$PATH"
13249 for ac_dir in $ac_dummy; do
13250 test -z "$ac_dir" && ac_dir=.
13251 if test -f $ac_dir/$ac_word; then
13252 ac_cv_path_MYSQL_CONFIG="$ac_dir/$ac_word"
13253 break
13255 done
13256 IFS="$ac_save_ifs"
13257 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
13259 esac
13261 MYSQL_CONFIG="$ac_cv_path_MYSQL_CONFIG"
13262 if test -n "$MYSQL_CONFIG"; then
13263 echo "$ac_t""$MYSQL_CONFIG" 1>&6
13264 else
13265 echo "$ac_t""no" 1>&6
13268 min_mysql_version=0.11.0
13269 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
13270 echo "configure:13271: checking for MYSQL - version >= $min_mysql_version" >&5
13271 no_mysql=""
13272 if test "$MYSQL_CONFIG" = "no" ; then
13273 no_mysql=yes
13274 else
13275 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
13276 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
13278 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
13279 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13280 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
13281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13282 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
13283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13284 if test "x$enable_mysqltest" = "xyes" ; then
13285 ac_save_CFLAGS="$CFLAGS"
13286 ac_save_LIBS="$LIBS"
13287 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13288 LIBS="$LIBS $MYSQL_LIBS"
13289 rm -f conf.mysqltest
13290 if test "$cross_compiling" = yes; then
13291 echo $ac_n "cross compiling; assumed OK... $ac_c"
13292 else
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13297 #include <stdio.h>
13298 #include <stdlib.h>
13299 #include <string.h>
13300 #include <mysql.h>
13302 char*
13303 my_strdup (char *str)
13305 char *new_str;
13307 if (str)
13309 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
13310 strcpy (new_str, str);
13312 else
13313 new_str = NULL;
13315 return new_str;
13318 int main (int argc, char *argv[])
13320 int major, minor, micro;
13321 char *tmp_version;
13323 /* This hangs on some systems (?)
13324 system ("touch conf.mysqltest");
13326 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
13328 /* HP/UX 9 (%@#!) writes to sscanf strings */
13329 tmp_version = my_strdup("$min_mysql_version");
13330 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13331 printf("%s, bad version string\n", "$min_mysql_version");
13332 exit(1);
13335 if (($mysql_major_version > major) ||
13336 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
13337 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
13339 return 0;
13341 else
13343 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
13344 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
13345 printf("*** best to upgrade to the required version.\n");
13346 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
13347 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
13348 printf("*** config.cache before re-running configure\n");
13349 return 1;
13355 if { (eval echo configure:13356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13356 then
13358 else
13359 echo "configure: failed program was:" >&5
13360 cat conftest.$ac_ext >&5
13361 rm -fr conftest*
13362 no_mysql=yes
13364 rm -fr conftest*
13367 CFLAGS="$ac_save_CFLAGS"
13368 LIBS="$ac_save_LIBS"
13371 if test "x$no_mysql" = x ; then
13372 echo "$ac_t""yes" 1>&6
13373 MODULE_MYSQL=bin/mysql.so
13374 else
13375 echo "$ac_t""no" 1>&6
13376 if test "$MYSQL_CONFIG" = "no" ; then
13377 echo "*** The mysql_config script installed by MYSQL could not be found"
13378 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
13379 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
13380 echo "*** full path to mysql_config."
13381 else
13382 if test -f conf.mysqltest ; then
13384 else
13385 echo "*** Could not run MYSQL test program, checking why..."
13386 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13387 LIBS="$LIBS $MYSQL_LIBS"
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13392 #include <stdio.h>
13393 #include <mysql.h>
13395 int main(int argc, char *argv[])
13396 { return 0; }
13397 #undef main
13398 #define main K_and_R_C_main
13400 int main() {
13401 return 0;
13402 ; return 0; }
13404 if { (eval echo configure:13405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13405 rm -rf conftest*
13406 echo "*** The test program compiled, but did not run. This usually means"
13407 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13408 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13409 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13410 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13411 echo "*** is required on your system"
13412 echo "***"
13413 echo "*** If you have an old version installed, it is best to remove it, although"
13414 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13415 else
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 rm -rf conftest*
13419 echo "*** The test program failed to compile or link. See the file config.log for the"
13420 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13421 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13422 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13424 rm -f conftest*
13425 CFLAGS="$ac_save_CFLAGS"
13426 LIBS="$ac_save_LIBS"
13429 MYSQL_CFLAGS=""
13430 MYSQL_LIBS=""
13431 MODULE_MYSQL=
13435 rm -f conf.mysqltest
13437 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13440 ########################################################
13441 # Compile with XML support?
13443 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13444 if test "${with_xml_prefix+set}" = set; then
13445 withval="$with_xml_prefix"
13446 xml_config_prefix="$withval"
13447 else
13448 xml_config_prefix=""
13451 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13452 if test "${with_xml_exec_prefix+set}" = set; then
13453 withval="$with_xml_exec_prefix"
13454 xml_config_exec_prefix="$withval"
13455 else
13456 xml_config_exec_prefix=""
13459 # Check whether --enable-xmltest or --disable-xmltest was given.
13460 if test "${enable_xmltest+set}" = set; then
13461 enableval="$enable_xmltest"
13463 else
13464 enable_xmltest=yes
13468 if test x$xml_config_exec_prefix != x ; then
13469 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13470 if test x${XML2_CONFIG+set} != xset ; then
13471 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
13474 if test x$xml_config_prefix != x ; then
13475 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
13476 if test x${XML2_CONFIG+set} != xset ; then
13477 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
13481 # Extract the first word of "xml2-config", so it can be a program name with args.
13482 set dummy xml2-config; ac_word=$2
13483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13484 echo "configure:13485: checking for $ac_word" >&5
13485 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13486 echo $ac_n "(cached) $ac_c" 1>&6
13487 else
13488 case "$XML2_CONFIG" in
13490 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
13492 ?:/*)
13493 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
13496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13497 ac_dummy="$PATH"
13498 for ac_dir in $ac_dummy; do
13499 test -z "$ac_dir" && ac_dir=.
13500 if test -f $ac_dir/$ac_word; then
13501 ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
13502 break
13504 done
13505 IFS="$ac_save_ifs"
13506 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
13508 esac
13510 XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
13511 if test -n "$XML2_CONFIG"; then
13512 echo "$ac_t""$XML2_CONFIG" 1>&6
13513 else
13514 echo "$ac_t""no" 1>&6
13517 min_xml_version=2.0.0
13518 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13519 echo "configure:13520: checking for libxml - version >= $min_xml_version" >&5
13520 no_xml=""
13521 if test "$XML2_CONFIG" = "no" ; then
13522 no_xml=yes
13523 else
13524 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
13525 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
13526 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
13527 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13528 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
13529 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13530 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
13531 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13532 if test "x$enable_xmltest" = "xyes" ; then
13533 ac_save_CFLAGS="$CFLAGS"
13534 ac_save_LIBS="$LIBS"
13535 CFLAGS="$CFLAGS $XML_CFLAGS"
13536 LIBS="$XML_LIBS $LIBS"
13537 rm -f conf.xmltest
13538 if test "$cross_compiling" = yes; then
13539 echo $ac_n "cross compiling; assumed OK... $ac_c"
13540 else
13541 cat > conftest.$ac_ext <<EOF
13542 #line 13543 "configure"
13543 #include "confdefs.h"
13545 #include <stdlib.h>
13546 #include <stdio.h>
13547 #include <string.h>
13548 #include <libxml/xmlversion.h>
13550 int
13551 main()
13553 int xml_major_version, xml_minor_version, xml_micro_version;
13554 int major, minor, micro;
13555 char *tmp_version;
13557 system("touch conf.xmltest");
13559 /* Capture xml2-config output via autoconf/configure variables */
13560 /* HP/UX 9 (%@#!) writes to sscanf strings */
13561 tmp_version = (char *)strdup("$min_xml_version");
13562 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13563 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13564 exit(1);
13566 free(tmp_version);
13568 /* Capture the version information from the header files */
13569 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13570 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13571 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13572 exit(1);
13574 free(tmp_version);
13576 /* Compare xml2-config output to the libxml headers */
13577 if ((xml_major_version != $xml_config_major_version) ||
13578 (xml_minor_version != $xml_config_minor_version) ||
13579 (xml_micro_version != $xml_config_micro_version))
13581 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13582 xml_major_version, xml_minor_version, xml_micro_version);
13583 printf("*** xml2-config (version %d.%d.%d)\n",
13584 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13585 return 1;
13587 /* Compare the headers to the library to make sure we match */
13588 /* Less than ideal -- doesn't provide us with return value feedback,
13589 * only exits if there's a serious mismatch between header and library.
13591 LIBXML_TEST_VERSION;
13593 /* Test that the library is greater than our minimum version */
13594 if ((xml_major_version > major) ||
13595 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13596 ((xml_major_version == major) && (xml_minor_version == minor) &&
13597 (xml_micro_version >= micro)))
13599 return 0;
13601 else
13603 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13604 xml_major_version, xml_minor_version, xml_micro_version);
13605 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13606 major, minor, micro);
13607 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13608 printf("***\n");
13609 printf("*** If you have already installed a sufficiently new version, this error\n");
13610 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13611 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13612 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13613 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13614 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13615 printf("*** so that the correct libraries are found at run-time))\n");
13617 return 1;
13621 if { (eval echo configure:13622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13622 then
13624 else
13625 echo "configure: failed program was:" >&5
13626 cat conftest.$ac_ext >&5
13627 rm -fr conftest*
13628 no_xml=yes
13630 rm -fr conftest*
13633 CFLAGS="$ac_save_CFLAGS"
13634 LIBS="$ac_save_LIBS"
13638 if test "x$no_xml" = x ; then
13639 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13640 MODULE_XML=bin/xml.so
13641 else
13642 echo "$ac_t""no" 1>&6
13643 if test "$XML2_CONFIG" = "no" ; then
13644 echo "*** The xml2-config script installed by LIBXML could not be found"
13645 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13646 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13647 echo "*** full path to xml2-config."
13648 else
13649 if test -f conf.xmltest ; then
13651 else
13652 echo "*** Could not run libxml test program, checking why..."
13653 CFLAGS="$CFLAGS $XML_CFLAGS"
13654 LIBS="$LIBS $XML_LIBS"
13655 cat > conftest.$ac_ext <<EOF
13656 #line 13657 "configure"
13657 #include "confdefs.h"
13659 #include <libxml/xmlversion.h>
13660 #include <stdio.h>
13662 int main() {
13663 LIBXML_TEST_VERSION; return 0;
13664 ; return 0; }
13666 if { (eval echo configure:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13667 rm -rf conftest*
13668 echo "*** The test program compiled, but did not run. This usually means"
13669 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13670 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13671 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13672 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13673 echo "*** is required on your system"
13674 echo "***"
13675 echo "*** If you have an old version installed, it is best to remove it, although"
13676 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13677 else
13678 echo "configure: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13680 rm -rf conftest*
13681 echo "*** The test program failed to compile or link. See the file config.log for the"
13682 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13683 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13684 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13686 rm -f conftest*
13687 CFLAGS="$ac_save_CFLAGS"
13688 LIBS="$ac_save_LIBS"
13692 XML_CFLAGS=""
13693 XML_LIBS=""
13694 MODULE_XML=
13698 rm -f conf.xmltest
13700 CFLAGS="$CFLAGS $XML_CFLAGS"
13703 #################################################
13704 # check for automount support
13705 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13706 echo "configure:13707: checking whether to use automount" >&5
13707 # Check whether --with-automount or --without-automount was given.
13708 if test "${with_automount+set}" = set; then
13709 withval="$with_automount"
13710 case "$withval" in
13711 yes)
13712 echo "$ac_t""yes" 1>&6
13713 cat >> confdefs.h <<\EOF
13714 #define WITH_AUTOMOUNT 1
13719 echo "$ac_t""no" 1>&6
13721 esac
13722 else
13723 echo "$ac_t""no" 1>&6
13728 #################################################
13729 # check for smbmount support
13730 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13731 echo "configure:13732: checking whether to use smbmount" >&5
13732 # Check whether --with-smbmount or --without-smbmount was given.
13733 if test "${with_smbmount+set}" = set; then
13734 withval="$with_smbmount"
13735 case "$withval" in
13736 yes)
13737 case "$host_os" in
13738 *linux*)
13739 echo "$ac_t""yes" 1>&6
13740 cat >> confdefs.h <<\EOF
13741 #define WITH_SMBMOUNT 1
13744 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13747 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13749 esac
13752 echo "$ac_t""no" 1>&6
13754 esac
13755 else
13756 echo "$ac_t""no" 1>&6
13762 #################################################
13763 # check for a PAM clear-text auth, accounts, password and session support
13764 with_pam_for_crypt=no
13765 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13766 echo "configure:13767: checking whether to use PAM" >&5
13767 # Check whether --with-pam or --without-pam was given.
13768 if test "${with_pam+set}" = set; then
13769 withval="$with_pam"
13770 case "$withval" in
13771 yes)
13772 echo "$ac_t""yes" 1>&6
13773 cat >> confdefs.h <<\EOF
13774 #define WITH_PAM 1
13777 AUTHLIBS="$AUTHLIBS -lpam"
13778 with_pam_for_crypt=yes
13781 echo "$ac_t""no" 1>&6
13783 esac
13784 else
13785 echo "$ac_t""no" 1>&6
13790 # we can't build a pam module if we don't have pam.
13791 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13792 echo "configure:13793: checking for pam_get_data in -lpam" >&5
13793 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13794 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13795 echo $ac_n "(cached) $ac_c" 1>&6
13796 else
13797 ac_save_LIBS="$LIBS"
13798 LIBS="-lpam $LIBS"
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 /* Override any gcc2 internal prototype to avoid an error. */
13803 /* We use char because int might match the return type of a gcc2
13804 builtin and then its argument prototype would still apply. */
13805 char pam_get_data();
13807 int main() {
13808 pam_get_data()
13809 ; return 0; }
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13812 rm -rf conftest*
13813 eval "ac_cv_lib_$ac_lib_var=yes"
13814 else
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 rm -rf conftest*
13818 eval "ac_cv_lib_$ac_lib_var=no"
13820 rm -f conftest*
13821 LIBS="$ac_save_LIBS"
13824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13825 echo "$ac_t""yes" 1>&6
13826 cat >> confdefs.h <<\EOF
13827 #define HAVE_LIBPAM 1
13830 else
13831 echo "$ac_t""no" 1>&6
13835 #################################################
13836 # check for pam_smbpass support
13837 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13838 echo "configure:13839: checking whether to use pam_smbpass" >&5
13839 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13840 if test "${with_pam_smbpass+set}" = set; then
13841 withval="$with_pam_smbpass"
13842 case "$withval" in
13843 yes)
13844 echo "$ac_t""yes" 1>&6
13846 # Conditions under which pam_smbpass should not be built.
13848 if test x$PICFLAG = x; then
13849 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13850 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
13851 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13852 else
13853 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
13857 echo "$ac_t""no" 1>&6
13859 esac
13860 else
13861 echo "$ac_t""no" 1>&6
13867 ###############################################
13868 # test for where we get crypt() from, but only
13869 # if not using PAM
13870 if test x"$with_pam_for_crypt" = x"no"; then
13871 for ac_func in crypt
13873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13874 echo "configure:13875: checking for $ac_func" >&5
13875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13876 echo $ac_n "(cached) $ac_c" 1>&6
13877 else
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 /* System header to define __stub macros and hopefully few prototypes,
13882 which can conflict with char $ac_func(); below. */
13883 #include <assert.h>
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13887 char $ac_func();
13889 int main() {
13891 /* The GNU C library defines this for functions which it implements
13892 to always fail with ENOSYS. Some functions are actually named
13893 something starting with __ and the normal name is an alias. */
13894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13895 choke me
13896 #else
13897 $ac_func();
13898 #endif
13900 ; return 0; }
13902 if { (eval echo configure:13903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13903 rm -rf conftest*
13904 eval "ac_cv_func_$ac_func=yes"
13905 else
13906 echo "configure: failed program was:" >&5
13907 cat conftest.$ac_ext >&5
13908 rm -rf conftest*
13909 eval "ac_cv_func_$ac_func=no"
13911 rm -f conftest*
13914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13915 echo "$ac_t""yes" 1>&6
13916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13917 cat >> confdefs.h <<EOF
13918 #define $ac_tr_func 1
13921 else
13922 echo "$ac_t""no" 1>&6
13924 done
13926 if test x"$ac_cv_func_crypt" = x"no"; then
13927 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13928 echo "configure:13929: checking for crypt in -lcrypt" >&5
13929 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13931 echo $ac_n "(cached) $ac_c" 1>&6
13932 else
13933 ac_save_LIBS="$LIBS"
13934 LIBS="-lcrypt $LIBS"
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 /* Override any gcc2 internal prototype to avoid an error. */
13939 /* We use char because int might match the return type of a gcc2
13940 builtin and then its argument prototype would still apply. */
13941 char crypt();
13943 int main() {
13944 crypt()
13945 ; return 0; }
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13948 rm -rf conftest*
13949 eval "ac_cv_lib_$ac_lib_var=yes"
13950 else
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13953 rm -rf conftest*
13954 eval "ac_cv_lib_$ac_lib_var=no"
13956 rm -f conftest*
13957 LIBS="$ac_save_LIBS"
13960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13961 echo "$ac_t""yes" 1>&6
13962 AUTHLIBS="$AUTHLIBS -lcrypt";
13963 cat >> confdefs.h <<\EOF
13964 #define HAVE_CRYPT 1
13967 else
13968 echo "$ac_t""no" 1>&6
13975 ## moved after the check for -lcrypt in order to
13976 ## ensure that the necessary libraries are included
13977 ## check checking for truncated salt. Wrapped by the
13978 ## $with_pam_for_crypt variable as above --jerry
13980 if test $with_pam_for_crypt = no; then
13981 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13982 echo "configure:13983: checking for a crypt that needs truncated salt" >&5
13983 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13987 crypt_LIBS="$LIBS"
13988 LIBS="$AUTHLIBS $LIBS"
13989 if test "$cross_compiling" = yes; then
13990 samba_cv_HAVE_TRUNCATED_SALT=cross
13991 else
13992 cat > conftest.$ac_ext <<EOF
13993 #line 13994 "configure"
13994 #include "confdefs.h"
13995 #include "${srcdir-.}/tests/crypttest.c"
13997 if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13998 then
13999 samba_cv_HAVE_TRUNCATED_SALT=no
14000 else
14001 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 rm -fr conftest*
14004 samba_cv_HAVE_TRUNCATED_SALT=yes
14006 rm -fr conftest*
14009 LIBS="$crypt_LIBS"
14012 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
14013 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
14014 cat >> confdefs.h <<\EOF
14015 #define HAVE_TRUNCATED_SALT 1
14021 # New experimental SAM system
14023 echo $ac_n "checking whether to build the new (experimental) SAM database""... $ac_c" 1>&6
14024 echo "configure:14025: checking whether to build the new (experimental) SAM database" >&5
14025 # Check whether --with-sam or --without-sam was given.
14026 if test "${with_sam+set}" = set; then
14027 withval="$with_sam"
14028 case "$withval" in
14029 yes)
14030 echo "$ac_t""yes" 1>&6
14031 cat >> confdefs.h <<\EOF
14032 #define WITH_SAM 1
14037 echo "$ac_t""no" 1>&6
14039 esac
14040 else
14041 echo "$ac_t""no" 1>&6
14047 ########################################################################################
14049 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
14051 ########################################################################################
14053 #################################################
14054 # check for a LDAP password database configuration backwards compatibility
14055 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
14056 echo "configure:14057: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
14057 # Check whether --with-ldapsam or --without-ldapsam was given.
14058 if test "${with_ldapsam+set}" = set; then
14059 withval="$with_ldapsam"
14060 case "$withval" in
14061 yes)
14062 echo "$ac_t""yes" 1>&6
14063 cat >> confdefs.h <<\EOF
14064 #define WITH_LDAP_SAMCONFIG 1
14069 echo "$ac_t""no" 1>&6
14071 esac
14072 else
14073 echo "$ac_t""no" 1>&6
14078 #################################################
14079 # check for a TDB password database
14080 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
14081 echo "configure:14082: checking whether to use TDB SAM database" >&5
14082 # Check whether --with-tdbsam or --without-tdbsam was given.
14083 if test "${with_tdbsam+set}" = set; then
14084 withval="$with_tdbsam"
14085 case "$withval" in
14086 yes)
14087 echo "$ac_t""yes" 1>&6
14088 cat >> confdefs.h <<\EOF
14089 #define WITH_TDB_SAM 1
14094 echo "$ac_t""no" 1>&6
14096 esac
14097 else
14098 echo "$ac_t""no" 1>&6
14103 #################################################
14104 # check for a NISPLUS password database
14105 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
14106 echo "configure:14107: checking whether to use NISPLUS SAM database" >&5
14107 # Check whether --with-nisplussam or --without-nisplussam was given.
14108 if test "${with_nisplussam+set}" = set; then
14109 withval="$with_nisplussam"
14110 case "$withval" in
14111 yes)
14112 echo "$ac_t""yes" 1>&6
14113 cat >> confdefs.h <<\EOF
14114 #define WITH_NISPLUS_SAM 1
14119 echo "$ac_t""no" 1>&6
14121 esac
14122 else
14123 echo "$ac_t""no" 1>&6
14128 ########################################################################################
14130 ## END OF TESTS FOR SAM BACKENDS.
14132 ########################################################################################
14134 #################################################
14135 # check for a NISPLUS_HOME support
14136 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
14137 echo "configure:14138: checking whether to use NISPLUS_HOME" >&5
14138 # Check whether --with-nisplus-home or --without-nisplus-home was given.
14139 if test "${with_nisplus_home+set}" = set; then
14140 withval="$with_nisplus_home"
14141 case "$withval" in
14142 yes)
14143 echo "$ac_t""yes" 1>&6
14144 cat >> confdefs.h <<\EOF
14145 #define WITH_NISPLUS_HOME 1
14150 echo "$ac_t""no" 1>&6
14152 esac
14153 else
14154 echo "$ac_t""no" 1>&6
14159 #################################################
14160 # check for syslog logging
14161 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
14162 echo "configure:14163: checking whether to use syslog logging" >&5
14163 # Check whether --with-syslog or --without-syslog was given.
14164 if test "${with_syslog+set}" = set; then
14165 withval="$with_syslog"
14166 case "$withval" in
14167 yes)
14168 echo "$ac_t""yes" 1>&6
14169 cat >> confdefs.h <<\EOF
14170 #define WITH_SYSLOG 1
14175 echo "$ac_t""no" 1>&6
14177 esac
14178 else
14179 echo "$ac_t""no" 1>&6
14184 #################################################
14185 # check for a shared memory profiling support
14186 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
14187 echo "configure:14188: checking whether to use profiling" >&5
14188 # Check whether --with-profiling-data or --without-profiling-data was given.
14189 if test "${with_profiling_data+set}" = set; then
14190 withval="$with_profiling_data"
14191 case "$withval" in
14192 yes)
14193 echo "$ac_t""yes" 1>&6
14194 cat >> confdefs.h <<\EOF
14195 #define WITH_PROFILE 1
14200 echo "$ac_t""no" 1>&6
14202 esac
14203 else
14204 echo "$ac_t""no" 1>&6
14210 #################################################
14211 # check for experimental disk-quotas support
14212 QUOTAOBJS=smbd/noquotas.o
14214 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
14215 echo "configure:14216: checking whether to support disk-quotas" >&5
14216 # Check whether --with-quotas or --without-quotas was given.
14217 if test "${with_quotas+set}" = set; then
14218 withval="$with_quotas"
14219 case "$withval" in
14220 yes)
14221 echo "$ac_t""yes" 1>&6
14222 case "$host_os" in
14223 *linux*)
14224 # Check for kernel 2.4.x quota braindamage...
14225 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
14226 echo "configure:14227: checking for linux 2.4.x quota braindamage.." >&5
14227 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
14228 echo $ac_n "(cached) $ac_c" 1>&6
14229 else
14231 cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 #include <stdio.h>
14235 #include <sys/types.h>
14236 #include <asm/types.h>
14237 #include <linux/quota.h>
14238 #include <mntent.h>
14239 #include <linux/unistd.h>
14240 int main() {
14241 struct mem_dqblk D;
14242 ; return 0; }
14244 if { (eval echo configure:14245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14245 rm -rf conftest*
14246 samba_cv_linux_2_4_quota_braindamage=yes
14247 else
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14250 rm -rf conftest*
14251 samba_cv_linux_2_4_quota_braindamage=no
14253 rm -f conftest*
14256 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
14257 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
14258 cat >> confdefs.h <<\EOF
14259 #define LINUX_QUOTAS_2 1
14262 else
14263 cat >> confdefs.h <<\EOF
14264 #define LINUX_QUOTAS_1 1
14271 esac
14272 QUOTAOBJS=smbd/quotas.o
14273 cat >> confdefs.h <<\EOF
14274 #define WITH_QUOTAS 1
14279 echo "$ac_t""no" 1>&6
14281 esac
14282 else
14283 echo "$ac_t""no" 1>&6
14289 #################################################
14290 # check for experimental utmp accounting
14292 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
14293 echo "configure:14294: checking whether to support utmp accounting" >&5
14294 # Check whether --with-utmp or --without-utmp was given.
14295 if test "${with_utmp+set}" = set; then
14296 withval="$with_utmp"
14297 case "$withval" in
14298 yes)
14299 echo "$ac_t""yes" 1>&6
14300 cat >> confdefs.h <<\EOF
14301 #define WITH_UTMP 1
14306 echo "$ac_t""no" 1>&6
14308 esac
14309 else
14310 echo "$ac_t""no" 1>&6
14315 #################################################
14316 # choose native language(s) of man pages
14317 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
14318 echo "configure:14319: checking chosen man pages' language(s)" >&5
14319 # Check whether --with-manpages-langs or --without-manpages-langs was given.
14320 if test "${with_manpages_langs+set}" = set; then
14321 withval="$with_manpages_langs"
14322 case "$withval" in
14323 yes|no)
14324 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
14325 manlangs="en"
14328 manlangs="$withval"
14330 esac
14332 echo "$ac_t""$manlangs" 1>&6
14333 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
14335 else
14336 manlangs="en"
14337 echo "$ac_t""$manlangs" 1>&6
14343 #################################################
14344 # should we build libsmbclient?
14346 INSTALLCLIENTCMD_SH=:
14347 INSTALLCLIENTCMD_A=:
14348 LIBSMBCLIENT_SHARED=
14349 LIBSMBCLIENT=
14350 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
14351 echo "configure:14352: checking whether to build the libsmbclient shared library" >&5
14352 # Check whether --with-libsmbclient or --without-libsmbclient was given.
14353 if test "${with_libsmbclient+set}" = set; then
14354 withval="$with_libsmbclient"
14355 case "$withval" in
14356 no)
14357 echo "$ac_t""no" 1>&6
14360 if test $BLDSHARED = true; then
14361 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
14362 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
14363 LIBSMBCLIENT=libsmbclient
14364 echo "$ac_t""yes" 1>&6
14365 else
14366 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
14367 LIBSMBCLIENT=libsmbclient
14368 echo "$ac_t""no shared library support -- will supply static library" 1>&6
14371 esac
14372 else
14374 # if unspecified, default is to built it iff possible.
14375 if test $BLDSHARED = true; then
14376 INSTALLCLIENTCMD_SH="\$(INSTALLCMD)"
14377 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
14378 LIBSMBCLIENT=libsmbclient
14379 echo "$ac_t""yes" 1>&6
14380 else
14381 INSTALLCLIENTCMD_A="\$(INSTALLCMD)"
14382 LIBSMBCLIENT=libsmbclient
14383 echo "$ac_t""no shared library support -- will supply static library" 1>&6
14390 #################################################
14391 # these tests are taken from the GNU fileutils package
14392 echo "checking how to get filesystem space usage" 1>&6
14393 echo "configure:14394: checking how to get filesystem space usage" >&5
14394 space=no
14396 # Test for statvfs64.
14397 if test $space = no; then
14398 # SVR4
14399 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
14400 echo "configure:14401: checking statvfs64 function (SVR4)" >&5
14401 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
14402 echo $ac_n "(cached) $ac_c" 1>&6
14403 else
14404 if test "$cross_compiling" = yes; then
14405 fu_cv_sys_stat_statvfs64=cross
14406 else
14407 cat > conftest.$ac_ext <<EOF
14408 #line 14409 "configure"
14409 #include "confdefs.h"
14411 #if defined(HAVE_UNISTD_H)
14412 #include <unistd.h>
14413 #endif
14414 #include <sys/types.h>
14415 #include <sys/statvfs.h>
14416 main ()
14418 struct statvfs64 fsd;
14419 exit (statvfs64 (".", &fsd));
14422 if { (eval echo configure:14423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14423 then
14424 fu_cv_sys_stat_statvfs64=yes
14425 else
14426 echo "configure: failed program was:" >&5
14427 cat conftest.$ac_ext >&5
14428 rm -fr conftest*
14429 fu_cv_sys_stat_statvfs64=no
14431 rm -fr conftest*
14436 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
14437 if test $fu_cv_sys_stat_statvfs64 = yes; then
14438 space=yes
14439 cat >> confdefs.h <<\EOF
14440 #define STAT_STATVFS64 1
14446 # Perform only the link test since it seems there are no variants of the
14447 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14448 # because that got a false positive on SCO OSR5. Adding the declaration
14449 # of a `struct statvfs' causes this test to fail (as it should) on such
14450 # systems. That system is reported to work fine with STAT_STATFS4 which
14451 # is what it gets when this test fails.
14452 if test $space = no; then
14453 # SVR4
14454 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14455 echo "configure:14456: checking statvfs function (SVR4)" >&5
14456 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14458 else
14459 cat > conftest.$ac_ext <<EOF
14460 #line 14461 "configure"
14461 #include "confdefs.h"
14462 #include <sys/types.h>
14463 #include <sys/statvfs.h>
14464 int main() {
14465 struct statvfs fsd; statvfs (0, &fsd);
14466 ; return 0; }
14468 if { (eval echo configure:14469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14469 rm -rf conftest*
14470 fu_cv_sys_stat_statvfs=yes
14471 else
14472 echo "configure: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14474 rm -rf conftest*
14475 fu_cv_sys_stat_statvfs=no
14477 rm -f conftest*
14480 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14481 if test $fu_cv_sys_stat_statvfs = yes; then
14482 space=yes
14483 cat >> confdefs.h <<\EOF
14484 #define STAT_STATVFS 1
14490 if test $space = no; then
14491 # DEC Alpha running OSF/1
14492 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14493 echo "configure:14494: checking for 3-argument statfs function (DEC OSF/1)" >&5
14494 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
14496 else
14497 if test "$cross_compiling" = yes; then
14498 fu_cv_sys_stat_statfs3_osf1=no
14499 else
14500 cat > conftest.$ac_ext <<EOF
14501 #line 14502 "configure"
14502 #include "confdefs.h"
14504 #include <sys/param.h>
14505 #include <sys/types.h>
14506 #include <sys/mount.h>
14507 main ()
14509 struct statfs fsd;
14510 fsd.f_fsize = 0;
14511 exit (statfs (".", &fsd, sizeof (struct statfs)));
14514 if { (eval echo configure:14515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14515 then
14516 fu_cv_sys_stat_statfs3_osf1=yes
14517 else
14518 echo "configure: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14520 rm -fr conftest*
14521 fu_cv_sys_stat_statfs3_osf1=no
14523 rm -fr conftest*
14528 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14529 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14530 space=yes
14531 cat >> confdefs.h <<\EOF
14532 #define STAT_STATFS3_OSF1 1
14538 if test $space = no; then
14539 # AIX
14540 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14541 echo "configure:14542: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14542 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14543 echo $ac_n "(cached) $ac_c" 1>&6
14544 else
14545 if test "$cross_compiling" = yes; then
14546 fu_cv_sys_stat_statfs2_bsize=no
14547 else
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14550 "configure"
14550 #include "confdefs.h"
14552 #ifdef HAVE_SYS_PARAM_H
14553 #include <sys/param.h>
14554 #endif
14555 #ifdef HAVE_SYS_MOUNT_H
14556 #include <sys/mount.h>
14557 #endif
14558 #ifdef HAVE_SYS_VFS_H
14559 #include <sys/vfs.h>
14560 #endif
14561 main ()
14563 struct statfs fsd;
14564 fsd.f_bsize = 0;
14565 exit (statfs (".", &fsd));
14568 if { (eval echo configure:14569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14569 then
14570 fu_cv_sys_stat_statfs2_bsize=yes
14571 else
14572 echo "configure: failed program was:" >&5
14573 cat conftest.$ac_ext >&5
14574 rm -fr conftest*
14575 fu_cv_sys_stat_statfs2_bsize=no
14577 rm -fr conftest*
14582 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14583 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14584 space=yes
14585 cat >> confdefs.h <<\EOF
14586 #define STAT_STATFS2_BSIZE 1
14592 if test $space = no; then
14593 # SVR3
14594 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14595 echo "configure:14596: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14596 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14597 echo $ac_n "(cached) $ac_c" 1>&6
14598 else
14599 if test "$cross_compiling" = yes; then
14600 fu_cv_sys_stat_statfs4=no
14601 else
14602 cat > conftest.$ac_ext <<EOF
14603 #line 14604 "configure"
14604 #include "confdefs.h"
14605 #include <sys/types.h>
14606 #include <sys/statfs.h>
14607 main ()
14609 struct statfs fsd;
14610 exit (statfs (".", &fsd, sizeof fsd, 0));
14613 if { (eval echo configure:14614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14614 then
14615 fu_cv_sys_stat_statfs4=yes
14616 else
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14619 rm -fr conftest*
14620 fu_cv_sys_stat_statfs4=no
14622 rm -fr conftest*
14627 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14628 if test $fu_cv_sys_stat_statfs4 = yes; then
14629 space=yes
14630 cat >> confdefs.h <<\EOF
14631 #define STAT_STATFS4 1
14637 if test $space = no; then
14638 # 4.4BSD and NetBSD
14639 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14640 echo "configure:14641: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14641 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14642 echo $ac_n "(cached) $ac_c" 1>&6
14643 else
14644 if test "$cross_compiling" = yes; then
14645 fu_cv_sys_stat_statfs2_fsize=no
14646 else
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 #include <sys/types.h>
14651 #ifdef HAVE_SYS_PARAM_H
14652 #include <sys/param.h>
14653 #endif
14654 #ifdef HAVE_SYS_MOUNT_H
14655 #include <sys/mount.h>
14656 #endif
14657 main ()
14659 struct statfs fsd;
14660 fsd.f_fsize = 0;
14661 exit (statfs (".", &fsd));
14664 if { (eval echo configure:14665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14665 then
14666 fu_cv_sys_stat_statfs2_fsize=yes
14667 else
14668 echo "configure: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14670 rm -fr conftest*
14671 fu_cv_sys_stat_statfs2_fsize=no
14673 rm -fr conftest*
14678 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14679 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14680 space=yes
14681 cat >> confdefs.h <<\EOF
14682 #define STAT_STATFS2_FSIZE 1
14688 if test $space = no; then
14689 # Ultrix
14690 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14691 echo "configure:14692: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14692 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14693 echo $ac_n "(cached) $ac_c" 1>&6
14694 else
14695 if test "$cross_compiling" = yes; then
14696 fu_cv_sys_stat_fs_data=no
14697 else
14698 cat > conftest.$ac_ext <<EOF
14699 #line 14700 "configure"
14700 #include "confdefs.h"
14701 #include <sys/types.h>
14702 #ifdef HAVE_SYS_PARAM_H
14703 #include <sys/param.h>
14704 #endif
14705 #ifdef HAVE_SYS_MOUNT_H
14706 #include <sys/mount.h>
14707 #endif
14708 #ifdef HAVE_SYS_FS_TYPES_H
14709 #include <sys/fs_types.h>
14710 #endif
14711 main ()
14713 struct fs_data fsd;
14714 /* Ultrix's statfs returns 1 for success,
14715 0 for not mounted, -1 for failure. */
14716 exit (statfs (".", &fsd) != 1);
14719 if { (eval echo configure:14720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14720 then
14721 fu_cv_sys_stat_fs_data=yes
14722 else
14723 echo "configure: failed program was:" >&5
14724 cat conftest.$ac_ext >&5
14725 rm -fr conftest*
14726 fu_cv_sys_stat_fs_data=no
14728 rm -fr conftest*
14733 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14734 if test $fu_cv_sys_stat_fs_data = yes; then
14735 space=yes
14736 cat >> confdefs.h <<\EOF
14737 #define STAT_STATFS2_FS_DATA 1
14744 # As a gating factor for large file support, in order to
14745 # use <4GB files we must have the following minimal support
14746 # available.
14747 # long long, and a 64 bit off_t or off64_t.
14748 # If we don't have all of these then disable large
14749 # file support.
14751 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14752 echo "configure:14753: checking if large file support can be enabled" >&5
14753 cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14757 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14758 #include <sys/types.h>
14759 #else
14760 __COMPILE_ERROR_
14761 #endif
14763 int main() {
14764 int i
14765 ; return 0; }
14767 if { (eval echo configure:14768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14768 rm -rf conftest*
14769 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
14770 else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
14776 rm -f conftest*
14777 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
14778 cat >> confdefs.h <<\EOF
14779 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14783 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14785 # Check whether --with-spinlocks or --without-spinlocks was given.
14786 if test "${with_spinlocks+set}" = set; then
14787 withval="$with_spinlocks"
14791 if test "x$with_spinlocks" = "xyes"; then
14792 cat >> confdefs.h <<\EOF
14793 #define USE_SPINLOCKS 1
14797 case "$host_cpu" in
14798 sparc)
14799 cat >> confdefs.h <<\EOF
14800 #define SPARC_SPINLOCKS 1
14805 i386|i486|i586|i686)
14806 cat >> confdefs.h <<\EOF
14807 #define INTEL_SPINLOCKS 1
14812 mips)
14813 cat >> confdefs.h <<\EOF
14814 #define MIPS_SPINLOCKS 1
14819 powerpc)
14820 cat >> confdefs.h <<\EOF
14821 #define POWERPC_SPINLOCKS 1
14825 esac
14828 #################################################
14829 # check for ACL support
14831 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14832 echo "configure:14833: checking whether to support ACLs" >&5
14833 # Check whether --with-acl-support or --without-acl-support was given.
14834 if test "${with_acl_support+set}" = set; then
14835 withval="$with_acl_support"
14836 case "$withval" in
14837 yes)
14839 case "$host_os" in
14840 *sysv5*)
14841 echo "$ac_t""Using UnixWare ACLs" 1>&6
14842 cat >> confdefs.h <<\EOF
14843 #define HAVE_UNIXWARE_ACLS 1
14847 *solaris*)
14848 echo "$ac_t""Using solaris ACLs" 1>&6
14849 cat >> confdefs.h <<\EOF
14850 #define HAVE_SOLARIS_ACLS 1
14854 *hpux*)
14855 echo "$ac_t""Using HPUX ACLs" 1>&6
14856 cat >> confdefs.h <<\EOF
14857 #define HAVE_HPUX_ACLS 1
14861 *irix*)
14862 echo "$ac_t""Using IRIX ACLs" 1>&6
14863 cat >> confdefs.h <<\EOF
14864 #define HAVE_IRIX_ACLS 1
14868 *aix*)
14869 echo "$ac_t""Using AIX ACLs" 1>&6
14870 cat >> confdefs.h <<\EOF
14871 #define HAVE_AIX_ACLS 1
14875 *osf*)
14876 echo "$ac_t""Using Tru64 ACLs" 1>&6
14877 cat >> confdefs.h <<\EOF
14878 #define HAVE_TRU64_ACLS 1
14881 LIBS="$LIBS -lpacl"
14884 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14885 echo "configure:14886: checking for acl_get_file in -lacl" >&5
14886 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14888 echo $ac_n "(cached) $ac_c" 1>&6
14889 else
14890 ac_save_LIBS="$LIBS"
14891 LIBS="-lacl $LIBS"
14892 cat > conftest.$ac_ext <<EOF
14893 #line 14894 "configure"
14894 #include "confdefs.h"
14895 /* Override any gcc2 internal prototype to avoid an error. */
14896 /* We use char because int might match the return type of a gcc2
14897 builtin and then its argument prototype would still apply. */
14898 char acl_get_file();
14900 int main() {
14901 acl_get_file()
14902 ; return 0; }
14904 if { (eval echo configure:14905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14905 rm -rf conftest*
14906 eval "ac_cv_lib_$ac_lib_var=yes"
14907 else
14908 echo "configure: failed program was:" >&5
14909 cat conftest.$ac_ext >&5
14910 rm -rf conftest*
14911 eval "ac_cv_lib_$ac_lib_var=no"
14913 rm -f conftest*
14914 LIBS="$ac_save_LIBS"
14917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14918 echo "$ac_t""yes" 1>&6
14919 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14920 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14921 cat >> confdefs.h <<EOF
14922 #define $ac_tr_lib 1
14925 LIBS="-lacl $LIBS"
14927 else
14928 echo "$ac_t""no" 1>&6
14931 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14932 echo "configure:14933: checking for ACL support" >&5
14933 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14935 else
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 #include <sys/types.h>
14941 #include <sys/acl.h>
14942 int main() {
14943 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14944 ; return 0; }
14946 if { (eval echo configure:14947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14947 rm -rf conftest*
14948 samba_cv_HAVE_POSIX_ACLS=yes
14949 else
14950 echo "configure: failed program was:" >&5
14951 cat conftest.$ac_ext >&5
14952 rm -rf conftest*
14953 samba_cv_HAVE_POSIX_ACLS=no
14955 rm -f conftest*
14958 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14959 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
14960 echo "$ac_t""Using posix ACLs" 1>&6
14961 cat >> confdefs.h <<\EOF
14962 #define HAVE_POSIX_ACLS 1
14965 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14966 echo "configure:14967: checking for acl_get_perm_np" >&5
14967 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14968 echo $ac_n "(cached) $ac_c" 1>&6
14969 else
14971 cat > conftest.$ac_ext <<EOF
14972 #line 14973 "configure"
14973 #include "confdefs.h"
14974 #include <sys/types.h>
14975 #include <sys/acl.h>
14976 int main() {
14977 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14978 ; return 0; }
14980 if { (eval echo configure:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14981 rm -rf conftest*
14982 samba_cv_HAVE_ACL_GET_PERM_NP=yes
14983 else
14984 echo "configure: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14986 rm -rf conftest*
14987 samba_cv_HAVE_ACL_GET_PERM_NP=no
14989 rm -f conftest*
14992 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14993 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
14994 cat >> confdefs.h <<\EOF
14995 #define HAVE_ACL_GET_PERM_NP 1
15001 esac
15004 echo "$ac_t""no" 1>&6
15005 cat >> confdefs.h <<\EOF
15006 #define HAVE_NO_ACLS 1
15010 esac
15011 else
15012 cat >> confdefs.h <<\EOF
15013 #define HAVE_NO_ACLS 1
15016 echo "$ac_t""no" 1>&6
15021 #################################################
15022 # check for sendfile support
15024 with_sendfile_support=yes
15025 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
15026 echo "configure:15027: checking whether to check to support sendfile" >&5
15027 # Check whether --with-sendfile-support or --without-sendfile-support was given.
15028 if test "${with_sendfile_support+set}" = set; then
15029 withval="$with_sendfile_support"
15030 case "$withval" in
15031 yes)
15033 echo "$ac_t""yes" 1>&6;
15035 case "$host_os" in
15036 *linux*)
15037 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
15038 echo "configure:15039: checking for linux sendfile64 support" >&5
15039 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
15041 else
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 #include <sys/sendfile.h>
15047 int main() {
15049 int tofd, fromfd;
15050 off64_t offset;
15051 size_t total;
15052 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
15054 ; return 0; }
15056 if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 rm -rf conftest*
15058 samba_cv_HAVE_SENDFILE64=yes
15059 else
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15062 rm -rf conftest*
15063 samba_cv_HAVE_SENDFILE64=no
15065 rm -f conftest*
15068 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
15070 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
15071 echo "configure:15072: checking for linux sendfile support" >&5
15072 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15073 echo $ac_n "(cached) $ac_c" 1>&6
15074 else
15076 cat > conftest.$ac_ext <<EOF
15077 #line 15078 "configure"
15078 #include "confdefs.h"
15079 #include <sys/sendfile.h>
15080 int main() {
15082 int tofd, fromfd;
15083 off_t offset;
15084 size_t total;
15085 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
15087 ; return 0; }
15089 if { (eval echo configure:15090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15090 rm -rf conftest*
15091 samba_cv_HAVE_SENDFILE=yes
15092 else
15093 echo "configure: failed program was:" >&5
15094 cat conftest.$ac_ext >&5
15095 rm -rf conftest*
15096 samba_cv_HAVE_SENDFILE=no
15098 rm -f conftest*
15101 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15103 # Try and cope with broken Linux sendfile....
15104 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
15105 echo "configure:15106: checking for broken linux sendfile support" >&5
15106 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
15107 echo $ac_n "(cached) $ac_c" 1>&6
15108 else
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15114 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
15115 #undef _FILE_OFFSET_BITS
15116 #endif
15117 #include <sys/sendfile.h>
15118 int main() {
15120 int tofd, fromfd;
15121 off_t offset;
15122 size_t total;
15123 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
15125 ; return 0; }
15127 if { (eval echo configure:15128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15128 rm -rf conftest*
15129 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
15130 else
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15133 rm -rf conftest*
15134 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
15136 rm -f conftest*
15139 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
15141 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
15142 cat >> confdefs.h <<\EOF
15143 #define HAVE_SENDFILE64 1
15146 cat >> confdefs.h <<\EOF
15147 #define LINUX_SENDFILE_API 1
15150 cat >> confdefs.h <<\EOF
15151 #define WITH_SENDFILE 1
15154 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
15155 cat >> confdefs.h <<\EOF
15156 #define HAVE_SENDFILE 1
15159 cat >> confdefs.h <<\EOF
15160 #define LINUX_SENDFILE_API 1
15163 cat >> confdefs.h <<\EOF
15164 #define WITH_SENDFILE 1
15167 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
15168 cat >> confdefs.h <<\EOF
15169 #define LINUX_BROKEN_SENDFILE_API 1
15172 cat >> confdefs.h <<\EOF
15173 #define WITH_SENDFILE 1
15176 else
15177 echo "$ac_t""no" 1>&6;
15181 *freebsd*)
15182 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
15183 echo "configure:15184: checking for freebsd sendfile support" >&5
15184 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15185 echo $ac_n "(cached) $ac_c" 1>&6
15186 else
15188 cat > conftest.$ac_ext <<EOF
15189 #line 15190 "configure"
15190 #include "confdefs.h"
15192 #include <sys/types.h>
15193 #include <unistd.h>
15194 #include <sys/socket.h>
15195 #include <sys/uio.h>
15196 int main() {
15198 int fromfd, tofd, ret, total=0;
15199 off_t offset, nwritten;
15200 struct sf_hdtr hdr;
15201 struct iovec hdtrl;
15202 hdr.headers = &hdtrl;
15203 hdr.hdr_cnt = 1;
15204 hdr.trailers = NULL;
15205 hdr.trl_cnt = 0;
15206 hdtrl.iov_base = NULL;
15207 hdtrl.iov_len = 0;
15208 ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
15210 ; return 0; }
15212 if { (eval echo configure:15213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15213 rm -rf conftest*
15214 samba_cv_HAVE_SENDFILE=yes
15215 else
15216 echo "configure: failed program was:" >&5
15217 cat conftest.$ac_ext >&5
15218 rm -rf conftest*
15219 samba_cv_HAVE_SENDFILE=no
15221 rm -f conftest*
15224 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15226 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
15227 cat >> confdefs.h <<\EOF
15228 #define HAVE_SENDFILE 1
15231 cat >> confdefs.h <<\EOF
15232 #define FREEBSD_SENDFILE_API 1
15235 cat >> confdefs.h <<\EOF
15236 #define WITH_SENDFILE 1
15239 else
15240 echo "$ac_t""no" 1>&6;
15244 *hpux*)
15245 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
15246 echo "configure:15247: checking for hpux sendfile64 support" >&5
15247 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
15248 echo $ac_n "(cached) $ac_c" 1>&6
15249 else
15251 cat > conftest.$ac_ext <<EOF
15252 #line 15253 "configure"
15253 #include "confdefs.h"
15255 #include <sys/socket.h>
15256 #include <sys/uio.h>
15257 int main() {
15259 int fromfd, tofd;
15260 size_t total=0;
15261 struct iovec hdtrl[2];
15262 ssize_t nwritten;
15263 off64_t offset;
15265 hdtrl[0].iov_base = 0;
15266 hdtrl[0].iov_len = 0;
15268 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
15270 ; return 0; }
15272 if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15273 rm -rf conftest*
15274 samba_cv_HAVE_SENDFILE64=yes
15275 else
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15278 rm -rf conftest*
15279 samba_cv_HAVE_SENDFILE64=no
15281 rm -f conftest*
15284 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
15285 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
15286 cat >> confdefs.h <<\EOF
15287 #define HAVE_SENDFILE64 1
15290 cat >> confdefs.h <<\EOF
15291 #define HPUX_SENDFILE_API 1
15294 cat >> confdefs.h <<\EOF
15295 #define WITH_SENDFILE 1
15298 else
15299 echo "$ac_t""no" 1>&6;
15302 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
15303 echo "configure:15304: checking for hpux sendfile support" >&5
15304 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
15305 echo $ac_n "(cached) $ac_c" 1>&6
15306 else
15308 cat > conftest.$ac_ext <<EOF
15309 #line 15310 "configure"
15310 #include "confdefs.h"
15312 #include <sys/socket.h>
15313 #include <sys/uio.h>
15314 int main() {
15316 int fromfd, tofd;
15317 size_t total=0;
15318 struct iovec hdtrl[2];
15319 ssize_t nwritten;
15320 off_t offset;
15322 hdtrl[0].iov_base = 0;
15323 hdtrl[0].iov_len = 0;
15325 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
15327 ; return 0; }
15329 if { (eval echo configure:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15330 rm -rf conftest*
15331 samba_cv_HAVE_SENDFILE=yes
15332 else
15333 echo "configure: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15335 rm -rf conftest*
15336 samba_cv_HAVE_SENDFILE=no
15338 rm -f conftest*
15341 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
15342 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
15343 cat >> confdefs.h <<\EOF
15344 #define HAVE_SENDFILE 1
15347 cat >> confdefs.h <<\EOF
15348 #define HPUX_SENDFILE_API 1
15351 cat >> confdefs.h <<\EOF
15352 #define WITH_SENDFILE 1
15355 else
15356 echo "$ac_t""no" 1>&6;
15360 *solaris*)
15361 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
15362 echo "configure:15363: checking for sendfilev in -lsendfile" >&5
15363 ac_lib_var=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
15364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15365 echo $ac_n "(cached) $ac_c" 1>&6
15366 else
15367 ac_save_LIBS="$LIBS"
15368 LIBS="-lsendfile $LIBS"
15369 cat > conftest.$ac_ext <<EOF
15370 #line 15371 "configure"
15371 #include "confdefs.h"
15372 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15375 char sendfilev();
15377 int main() {
15378 sendfilev()
15379 ; return 0; }
15381 if { (eval echo configure:15382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15382 rm -rf conftest*
15383 eval "ac_cv_lib_$ac_lib_var=yes"
15384 else
15385 echo "configure: failed program was:" >&5
15386 cat conftest.$ac_ext >&5
15387 rm -rf conftest*
15388 eval "ac_cv_lib_$ac_lib_var=no"
15390 rm -f conftest*
15391 LIBS="$ac_save_LIBS"
15394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15395 echo "$ac_t""yes" 1>&6
15396 ac_tr_lib=HAVE_LIB`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
15397 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
15398 cat >> confdefs.h <<EOF
15399 #define $ac_tr_lib 1
15402 LIBS="-lsendfile $LIBS"
15404 else
15405 echo "$ac_t""no" 1>&6
15408 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
15409 echo "configure:15410: checking for solaris sendfilev64 support" >&5
15410 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412 else
15414 cat > conftest.$ac_ext <<EOF
15415 #line 15416 "configure"
15416 #include "confdefs.h"
15418 #include <sys/sendfile.h>
15419 int main() {
15421 int sfvcnt;
15422 size_t xferred;
15423 struct sendfilevec vec[2];
15424 ssize_t nwritten;
15425 int tofd;
15427 sfvcnt = 2;
15429 vec[0].sfv_fd = SFV_FD_SELF;
15430 vec[0].sfv_flag = 0;
15431 vec[0].sfv_off = 0;
15432 vec[0].sfv_len = 0;
15434 vec[1].sfv_fd = 0;
15435 vec[1].sfv_flag = 0;
15436 vec[1].sfv_off = 0;
15437 vec[1].sfv_len = 0;
15438 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
15440 ; return 0; }
15442 if { (eval echo configure:15443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15443 rm -rf conftest*
15444 samba_cv_HAVE_SENDFILEV64=yes
15445 else
15446 echo "configure: failed program was:" >&5
15447 cat conftest.$ac_ext >&5
15448 rm -rf conftest*
15449 samba_cv_HAVE_SENDFILEV64=no
15451 rm -f conftest*
15454 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15456 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
15457 cat >> confdefs.h <<\EOF
15458 #define HAVE_SENDFILEV64 1
15461 cat >> confdefs.h <<\EOF
15462 #define SOLARIS_SENDFILE_API 1
15465 cat >> confdefs.h <<\EOF
15466 #define WITH_SENDFILE 1
15469 else
15470 echo "$ac_t""no" 1>&6;
15473 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15474 echo "configure:15475: checking for solaris sendfilev support" >&5
15475 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15476 echo $ac_n "(cached) $ac_c" 1>&6
15477 else
15479 cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15483 #include <sys/sendfile.h>
15484 int main() {
15486 int sfvcnt;
15487 size_t xferred;
15488 struct sendfilevec vec[2];
15489 ssize_t nwritten;
15490 int tofd;
15492 sfvcnt = 2;
15494 vec[0].sfv_fd = SFV_FD_SELF;
15495 vec[0].sfv_flag = 0;
15496 vec[0].sfv_off = 0;
15497 vec[0].sfv_len = 0;
15499 vec[1].sfv_fd = 0;
15500 vec[1].sfv_flag = 0;
15501 vec[1].sfv_off = 0;
15502 vec[1].sfv_len = 0;
15503 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15505 ; return 0; }
15507 if { (eval echo configure:15508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15508 rm -rf conftest*
15509 samba_cv_HAVE_SENDFILEV=yes
15510 else
15511 echo "configure: failed program was:" >&5
15512 cat conftest.$ac_ext >&5
15513 rm -rf conftest*
15514 samba_cv_HAVE_SENDFILEV=no
15516 rm -f conftest*
15519 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15521 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
15522 cat >> confdefs.h <<\EOF
15523 #define HAVE_SENDFILEV 1
15526 cat >> confdefs.h <<\EOF
15527 #define SOLARIS_SENDFILE_API 1
15530 cat >> confdefs.h <<\EOF
15531 #define WITH_SENDFILE 1
15534 else
15535 echo "$ac_t""no" 1>&6;
15541 esac
15544 echo "$ac_t""no" 1>&6
15546 esac
15547 else
15548 echo "$ac_t""yes" 1>&6
15554 #################################################
15555 # Check whether winbind is supported on this platform. If so we need to
15556 # build and install client programs, sbin programs and shared libraries
15558 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15559 echo "configure:15560: checking whether to build winbind" >&5
15561 # Initially, the value of $host_os decides whether winbind is supported
15563 case "$host_os" in
15564 *linux*|*irix*)
15565 HAVE_WINBIND=yes
15567 *solaris*)
15568 HAVE_WINBIND=yes
15569 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15570 WINBIND_NSS_EXTRA_LIBS="-lsocket"
15572 *hpux11*)
15573 HAVE_WINBIND=yes
15574 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15577 HAVE_WINBIND=no
15578 winbind_no_reason=", unsupported on $host_os"
15580 esac
15585 # Check the setting of --with-winbindd
15587 # Check whether --with-winbind or --without-winbind was given.
15588 if test "${with_winbind+set}" = set; then
15589 withval="$with_winbind"
15591 case "$withval" in
15592 yes)
15593 HAVE_WINBIND=yes
15596 HAVE_WINBIND=no
15597 winbind_reason=""
15599 esac
15603 # We need unix domain sockets for winbind
15605 if test x"$HAVE_WINBIND" = x"yes"; then
15606 if test x"$samba_cv_unixsocket" = x"no"; then
15607 winbind_no_reason=", no unix domain socket support on $host_os"
15608 HAVE_WINBIND=no
15612 # Display test results
15614 if test x"$HAVE_WINBIND" = x"yes"; then
15615 echo "$ac_t""yes" 1>&6
15616 cat >> confdefs.h <<\EOF
15617 #define WITH_WINBIND 1
15621 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15622 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15623 if test x"$BLDSHARED" = x"true"; then
15624 case "$host_os" in
15625 *irix*)
15626 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libns_winbind.so"
15629 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15631 esac
15632 if test x"$with_pam" = x"yes"; then
15633 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
15636 else
15637 echo "$ac_t""no$winbind_no_reason" 1>&6
15640 # Solaris has some extra fields in struct passwd that need to be
15641 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15642 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15643 # this.
15645 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15646 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15647 # [#include <pwd.h>])
15649 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15650 echo "configure:15651: checking whether struct passwd has pw_comment" >&5
15651 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15652 echo $ac_n "(cached) $ac_c" 1>&6
15653 else
15655 cat > conftest.$ac_ext <<EOF
15656 #line 15657 "configure"
15657 #include "confdefs.h"
15658 #include <pwd.h>
15659 int main() {
15660 struct passwd p; p.pw_comment;
15661 ; return 0; }
15663 if { (eval echo configure:15664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15664 rm -rf conftest*
15665 samba_cv_passwd_pw_comment=yes
15666 else
15667 echo "configure: failed program was:" >&5
15668 cat conftest.$ac_ext >&5
15669 rm -rf conftest*
15670 samba_cv_passwd_pw_comment=no
15672 rm -f conftest*
15675 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15676 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
15677 cat >> confdefs.h <<\EOF
15678 #define HAVE_PASSWD_PW_COMMENT 1
15683 #AC_CHECK_MEMBER(struct passwd.pw_age,
15684 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15685 # [#include <pwd.h>])
15687 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15688 echo "configure:15689: checking whether struct passwd has pw_age" >&5
15689 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15691 else
15693 cat > conftest.$ac_ext <<EOF
15694 #line 15695 "configure"
15695 #include "confdefs.h"
15696 #include <pwd.h>
15697 int main() {
15698 struct passwd p; p.pw_age;
15699 ; return 0; }
15701 if { (eval echo configure:15702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15702 rm -rf conftest*
15703 samba_cv_passwd_pw_age=yes
15704 else
15705 echo "configure: failed program was:" >&5
15706 cat conftest.$ac_ext >&5
15707 rm -rf conftest*
15708 samba_cv_passwd_pw_age=no
15710 rm -f conftest*
15713 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15714 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
15715 cat >> confdefs.h <<\EOF
15716 #define HAVE_PASSWD_PW_AGE 1
15721 #################################################
15722 # Check to see if we should use the included popt
15724 # Check whether --with-included-popt or --without-included-popt was given.
15725 if test "${with_included_popt+set}" = set; then
15726 withval="$with_included_popt"
15728 case "$withval" in
15729 yes)
15730 INCLUDED_POPT=yes
15733 INCLUDED_POPT=no
15735 esac
15738 if test x"$INCLUDED_POPT" != x"yes"; then
15739 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15740 echo "configure:15741: checking for poptGetContext in -lpopt" >&5
15741 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15743 echo $ac_n "(cached) $ac_c" 1>&6
15744 else
15745 ac_save_LIBS="$LIBS"
15746 LIBS="-lpopt $LIBS"
15747 cat > conftest.$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15750 /* Override any gcc2 internal prototype to avoid an error. */
15751 /* We use char because int might match the return type of a gcc2
15752 builtin and then its argument prototype would still apply. */
15753 char poptGetContext();
15755 int main() {
15756 poptGetContext()
15757 ; return 0; }
15759 if { (eval echo configure:15760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15760 rm -rf conftest*
15761 eval "ac_cv_lib_$ac_lib_var=yes"
15762 else
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15765 rm -rf conftest*
15766 eval "ac_cv_lib_$ac_lib_var=no"
15768 rm -f conftest*
15769 LIBS="$ac_save_LIBS"
15772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15773 echo "$ac_t""yes" 1>&6
15774 INCLUDED_POPT=no
15775 else
15776 echo "$ac_t""no" 1>&6
15777 INCLUDED_POPT=yes
15782 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15783 echo "configure:15784: checking whether to use included popt" >&5
15784 if test x"$INCLUDED_POPT" = x"yes"; then
15785 echo "$ac_t""yes" 1>&6
15786 BUILD_POPT='$(POPT_OBJS)'
15787 FLAGS1="-I$srcdir/popt"
15788 else
15789 echo "$ac_t""no" 1>&6
15790 LIBS="$LIBS -lpopt"
15795 #################################################
15796 # Check if the user wants Python
15798 # At the moment, you can use this to set which Python binary to link
15799 # against. (Libraries built for Python2.2 can't be used by 2.1,
15800 # though they can coexist in different directories.) In the future
15801 # this might make the Python stuff be built by default.
15803 # Defaulting python breaks the clean target if python isn't installed
15805 PYTHON=
15807 # Check whether --with-python or --without-python was given.
15808 if test "${with_python+set}" = set; then
15809 withval="$with_python"
15810 case "${withval-python}" in
15811 yes)
15812 PYTHON=python
15813 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
15816 PYTHON=
15819 PYTHON=${withval-python}
15821 esac
15826 #################################################
15827 # do extra things if we are running insure
15829 if test "${ac_cv_prog_CC}" = "insure"; then
15830 CPPFLAGS="$CPPFLAGS -D__INSURE__"
15833 #################################################
15834 # final configure stuff
15836 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15837 echo "configure:15838: checking configure summary" >&5
15838 if test "$cross_compiling" = yes; then
15839 echo "configure: warning: cannot run when cross-compiling" 1>&2
15840 else
15841 cat > conftest.$ac_ext <<EOF
15842 #line 15843 "configure"
15843 #include "confdefs.h"
15844 #include "${srcdir-.}/tests/summary.c"
15846 if { (eval echo configure:15847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15847 then
15848 echo "$ac_t""yes" 1>&6
15849 else
15850 echo "configure: failed program was:" >&5
15851 cat conftest.$ac_ext >&5
15852 rm -fr conftest*
15853 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15855 rm -fr conftest*
15859 builddir=`pwd`
15862 trap '' 1 2 15
15863 cat > confcache <<\EOF
15864 # This file is a shell script that caches the results of configure
15865 # tests run on this system so they can be shared between configure
15866 # scripts and configure runs. It is not useful on other systems.
15867 # If it contains results you don't want to keep, you may remove or edit it.
15869 # By default, configure uses ./config.cache as the cache file,
15870 # creating it if it does not exist already. You can give configure
15871 # the --cache-file=FILE option to use a different cache file; that is
15872 # what configure does when it calls configure scripts in
15873 # subdirectories, so they share the cache.
15874 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15875 # config.status only pays attention to the cache file if you give it the
15876 # --recheck option to rerun configure.
15879 # The following way of writing the cache mishandles newlines in values,
15880 # but we know of no workaround that is simple, portable, and efficient.
15881 # So, don't put newlines in cache variables' values.
15882 # Ultrix sh set writes to stderr and can't be redirected directly,
15883 # and sets the high bit in the cache file unless we assign to the vars.
15884 (set) 2>&1 |
15885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15886 *ac_space=\ *)
15887 # `set' does not quote correctly, so add quotes (double-quote substitution
15888 # turns \\\\ into \\, and sed turns \\ into \).
15889 sed -n \
15890 -e "s/'/'\\\\''/g" \
15891 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15894 # `set' quotes correctly as required by POSIX, so do not add quotes.
15895 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15897 esac >> confcache
15898 if cmp -s $cache_file confcache; then
15900 else
15901 if test -w $cache_file; then
15902 echo "updating cache $cache_file"
15903 cat confcache > $cache_file
15904 else
15905 echo "not updating unwritable cache $cache_file"
15908 rm -f confcache
15910 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15912 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15913 # Let make expand exec_prefix.
15914 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15916 # Any assignment to VPATH causes Sun make to only execute
15917 # the first set of double-colon rules, so remove it if not needed.
15918 # If there is a colon in the path, we need to keep it.
15919 if test "x$srcdir" = x.; then
15920 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15923 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15925 DEFS=-DHAVE_CONFIG_H
15927 # Without the "./", some shells look in PATH for config.status.
15928 : ${CONFIG_STATUS=./config.status}
15930 echo creating $CONFIG_STATUS
15931 rm -f $CONFIG_STATUS
15932 cat > $CONFIG_STATUS <<EOF
15933 #! /bin/sh
15934 # Generated automatically by configure.
15935 # Run this file to recreate the current configuration.
15936 # This directory was configured as follows,
15937 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15939 # $0 $ac_configure_args
15941 # Compiler output produced by configure, useful for debugging
15942 # configure, is in ./config.log if it exists.
15944 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15945 for ac_option
15947 case "\$ac_option" in
15948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15949 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15950 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15951 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15952 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15953 exit 0 ;;
15954 -help | --help | --hel | --he | --h)
15955 echo "\$ac_cs_usage"; exit 0 ;;
15956 *) echo "\$ac_cs_usage"; exit 1 ;;
15957 esac
15958 done
15960 ac_given_srcdir=$srcdir
15961 ac_given_INSTALL="$INSTALL"
15963 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15965 cat >> $CONFIG_STATUS <<EOF
15967 # Protect against being on the right side of a sed subst in config.status.
15968 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15969 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15970 $ac_vpsub
15971 $extrasub
15972 s%@SHELL@%$SHELL%g
15973 s%@CFLAGS@%$CFLAGS%g
15974 s%@CPPFLAGS@%$CPPFLAGS%g
15975 s%@CXXFLAGS@%$CXXFLAGS%g
15976 s%@FFLAGS@%$FFLAGS%g
15977 s%@DEFS@%$DEFS%g
15978 s%@LDFLAGS@%$LDFLAGS%g
15979 s%@LIBS@%$LIBS%g
15980 s%@exec_prefix@%$exec_prefix%g
15981 s%@prefix@%$prefix%g
15982 s%@program_transform_name@%$program_transform_name%g
15983 s%@bindir@%$bindir%g
15984 s%@sbindir@%$sbindir%g
15985 s%@libexecdir@%$libexecdir%g
15986 s%@datadir@%$datadir%g
15987 s%@sysconfdir@%$sysconfdir%g
15988 s%@sharedstatedir@%$sharedstatedir%g
15989 s%@localstatedir@%$localstatedir%g
15990 s%@libdir@%$libdir%g
15991 s%@includedir@%$includedir%g
15992 s%@oldincludedir@%$oldincludedir%g
15993 s%@infodir@%$infodir%g
15994 s%@mandir@%$mandir%g
15995 s%@configdir@%$configdir%g
15996 s%@lockdir@%$lockdir%g
15997 s%@piddir@%$piddir%g
15998 s%@logfilebase@%$logfilebase%g
15999 s%@privatedir@%$privatedir%g
16000 s%@swatdir@%$swatdir%g
16001 s%@LDSHFLAGS@%$LDSHFLAGS%g
16002 s%@SONAMEFLAG@%$SONAMEFLAG%g
16003 s%@SHLD@%$SHLD%g
16004 s%@HOST_OS@%$HOST_OS%g
16005 s%@PICFLAG@%$PICFLAG%g
16006 s%@PICSUFFIX@%$PICSUFFIX%g
16007 s%@POBAD_CC@%$POBAD_CC%g
16008 s%@SHLIBEXT@%$SHLIBEXT%g
16009 s%@INSTALLCLIENTCMD_SH@%$INSTALLCLIENTCMD_SH%g
16010 s%@INSTALLCLIENTCMD_A@%$INSTALLCLIENTCMD_A%g
16011 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
16012 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
16013 s%@PRINTLIBS@%$PRINTLIBS%g
16014 s%@AUTHLIBS@%$AUTHLIBS%g
16015 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
16016 s%@SMBWRAPPER@%$SMBWRAPPER%g
16017 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
16018 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
16019 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
16020 s%@LSA_DYNAMIC_YES@%$LSA_DYNAMIC_YES%g
16021 s%@LSA_DYNAMIC_NO@%$LSA_DYNAMIC_NO%g
16022 s%@NETLOG_DYNAMIC_YES@%$NETLOG_DYNAMIC_YES%g
16023 s%@NETLOG_DYNAMIC_NO@%$NETLOG_DYNAMIC_NO%g
16024 s%@SAMR_DYNAMIC_YES@%$SAMR_DYNAMIC_YES%g
16025 s%@SAMR_DYNAMIC_NO@%$SAMR_DYNAMIC_NO%g
16026 s%@SVC_DYNAMIC_YES@%$SVC_DYNAMIC_YES%g
16027 s%@SVC_DYNAMIC_NO@%$SVC_DYNAMIC_NO%g
16028 s%@WKS_DYNAMIC_YES@%$WKS_DYNAMIC_YES%g
16029 s%@WKS_DYNAMIC_NO@%$WKS_DYNAMIC_NO%g
16030 s%@REG_DYNAMIC_YES@%$REG_DYNAMIC_YES%g
16031 s%@REG_DYNAMIC_NO@%$REG_DYNAMIC_NO%g
16032 s%@SPOOLSS_DYNAMIC_YES@%$SPOOLSS_DYNAMIC_YES%g
16033 s%@SPOOLSS_DYNAMIC_NO@%$SPOOLSS_DYNAMIC_NO%g
16034 s%@DFS_DYNAMIC_YES@%$DFS_DYNAMIC_YES%g
16035 s%@DFS_DYNAMIC_NO@%$DFS_DYNAMIC_NO%g
16036 s%@CC@%$CC%g
16037 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16038 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16039 s%@INSTALL_DATA@%$INSTALL_DATA%g
16040 s%@AWK@%$AWK%g
16041 s%@EXEEXT@%$EXEEXT%g
16042 s%@BROKEN_CC@%$BROKEN_CC%g
16043 s%@host@%$host%g
16044 s%@host_alias@%$host_alias%g
16045 s%@host_cpu@%$host_cpu%g
16046 s%@host_vendor@%$host_vendor%g
16047 s%@host_os@%$host_os%g
16048 s%@target@%$target%g
16049 s%@target_alias@%$target_alias%g
16050 s%@target_cpu@%$target_cpu%g
16051 s%@target_vendor@%$target_vendor%g
16052 s%@target_os@%$target_os%g
16053 s%@build@%$build%g
16054 s%@build_alias@%$build_alias%g
16055 s%@build_cpu@%$build_cpu%g
16056 s%@build_vendor@%$build_vendor%g
16057 s%@build_os@%$build_os%g
16058 s%@CPP@%$CPP%g
16059 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
16060 s%@LIBOBJS@%$LIBOBJS%g
16061 s%@TERMLIBS@%$TERMLIBS%g
16062 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
16063 s%@ROFF@%$ROFF%g
16064 s%@DYNEXP@%$DYNEXP%g
16065 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
16066 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
16067 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
16068 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
16069 s%@XML2_CONFIG@%$XML2_CONFIG%g
16070 s%@XML_CFLAGS@%$XML_CFLAGS%g
16071 s%@XML_LIBS@%$XML_LIBS%g
16072 s%@MODULE_XML@%$MODULE_XML%g
16073 s%@QUOTAOBJS@%$QUOTAOBJS%g
16074 s%@manlangs@%$manlangs%g
16075 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
16076 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
16077 s%@BUILD_POPT@%$BUILD_POPT%g
16078 s%@FLAGS1@%$FLAGS1%g
16079 s%@PYTHON@%$PYTHON%g
16080 s%@builddir@%$builddir%g
16082 CEOF
16085 cat >> $CONFIG_STATUS <<\EOF
16087 # Split the substitutions into bite-sized pieces for seds with
16088 # small command number limits, like on Digital OSF/1 and HP-UX.
16089 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16090 ac_file=1 # Number of current file.
16091 ac_beg=1 # First line for current file.
16092 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16093 ac_more_lines=:
16094 ac_sed_cmds=""
16095 while $ac_more_lines; do
16096 if test $ac_beg -gt 1; then
16097 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16098 else
16099 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16101 if test ! -s conftest.s$ac_file; then
16102 ac_more_lines=false
16103 rm -f conftest.s$ac_file
16104 else
16105 if test -z "$ac_sed_cmds"; then
16106 ac_sed_cmds="sed -f conftest.s$ac_file"
16107 else
16108 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16110 ac_file=`expr $ac_file + 1`
16111 ac_beg=$ac_end
16112 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16114 done
16115 if test -z "$ac_sed_cmds"; then
16116 ac_sed_cmds=cat
16120 cat >> $CONFIG_STATUS <<EOF
16122 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
16124 cat >> $CONFIG_STATUS <<\EOF
16125 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16126 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16127 case "$ac_file" in
16128 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16129 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16130 *) ac_file_in="${ac_file}.in" ;;
16131 esac
16133 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16135 # Remove last slash and all that follows it. Not all systems have dirname.
16136 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16137 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16138 # The file is in a subdirectory.
16139 test ! -d "$ac_dir" && mkdir "$ac_dir"
16140 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16141 # A "../" for each directory in $ac_dir_suffix.
16142 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16143 else
16144 ac_dir_suffix= ac_dots=
16147 case "$ac_given_srcdir" in
16148 .) srcdir=.
16149 if test -z "$ac_dots"; then top_srcdir=.
16150 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16151 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16152 *) # Relative path.
16153 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16154 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16155 esac
16157 case "$ac_given_INSTALL" in
16158 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16159 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16160 esac
16162 echo creating "$ac_file"
16163 rm -f "$ac_file"
16164 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16165 case "$ac_file" in
16166 *Makefile*) ac_comsub="1i\\
16167 # $configure_input" ;;
16168 *) ac_comsub= ;;
16169 esac
16171 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16172 sed -e "$ac_comsub
16173 s%@configure_input@%$configure_input%g
16174 s%@srcdir@%$srcdir%g
16175 s%@top_srcdir@%$top_srcdir%g
16176 s%@INSTALL@%$INSTALL%g
16177 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16178 fi; done
16179 rm -f conftest.s*
16181 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16182 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16184 # ac_d sets the value in "#define NAME VALUE" lines.
16185 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16186 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16187 ac_dC='\3'
16188 ac_dD='%g'
16189 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16190 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16191 ac_uB='\([ ]\)%\1#\2define\3'
16192 ac_uC=' '
16193 ac_uD='\4%g'
16194 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16195 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16196 ac_eB='$%\1#\2define\3'
16197 ac_eC=' '
16198 ac_eD='%g'
16200 if test "${CONFIG_HEADERS+set}" != set; then
16202 cat >> $CONFIG_STATUS <<EOF
16203 CONFIG_HEADERS="include/config.h"
16205 cat >> $CONFIG_STATUS <<\EOF
16207 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16208 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16209 case "$ac_file" in
16210 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16211 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16212 *) ac_file_in="${ac_file}.in" ;;
16213 esac
16215 echo creating $ac_file
16217 rm -f conftest.frag conftest.in conftest.out
16218 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16219 cat $ac_file_inputs > conftest.in
16223 # Transform confdefs.h into a sed script conftest.vals that substitutes
16224 # the proper values into config.h.in to produce config.h. And first:
16225 # Protect against being on the right side of a sed subst in config.status.
16226 # Protect against being in an unquoted here document in config.status.
16227 rm -f conftest.vals
16228 cat > conftest.hdr <<\EOF
16229 s/[\\&%]/\\&/g
16230 s%[\\$`]%\\&%g
16231 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16232 s%ac_d%ac_u%gp
16233 s%ac_u%ac_e%gp
16235 sed -n -f conftest.hdr confdefs.h > conftest.vals
16236 rm -f conftest.hdr
16238 # This sed command replaces #undef with comments. This is necessary, for
16239 # example, in the case of _POSIX_SOURCE, which is predefined and required
16240 # on some systems where configure will not decide to define it.
16241 cat >> conftest.vals <<\EOF
16242 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16245 # Break up conftest.vals because some shells have a limit on
16246 # the size of here documents, and old seds have small limits too.
16248 rm -f conftest.tail
16249 while :
16251 ac_lines=`grep -c . conftest.vals`
16252 # grep -c gives empty output for an empty file on some AIX systems.
16253 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16254 # Write a limited-size here document to conftest.frag.
16255 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16256 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16257 echo 'CEOF
16258 sed -f conftest.frag conftest.in > conftest.out
16259 rm -f conftest.in
16260 mv conftest.out conftest.in
16261 ' >> $CONFIG_STATUS
16262 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16263 rm -f conftest.vals
16264 mv conftest.tail conftest.vals
16265 done
16266 rm -f conftest.vals
16268 cat >> $CONFIG_STATUS <<\EOF
16269 rm -f conftest.frag conftest.h
16270 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16271 cat conftest.in >> conftest.h
16272 rm -f conftest.in
16273 if cmp -s $ac_file conftest.h 2>/dev/null; then
16274 echo "$ac_file is unchanged"
16275 rm -f conftest.h
16276 else
16277 # Remove last slash and all that follows it. Not all systems have dirname.
16278 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16279 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16280 # The file is in a subdirectory.
16281 test ! -d "$ac_dir" && mkdir "$ac_dir"
16283 rm -f $ac_file
16284 mv conftest.h $ac_file
16286 fi; done
16289 cat >> $CONFIG_STATUS <<EOF
16292 cat >> $CONFIG_STATUS <<\EOF
16294 exit 0
16296 chmod +x $CONFIG_STATUS
16297 rm -fr confdefs* $ac_clean_files
16298 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
16301 #################################################
16302 # Print very concise instructions on building/use
16303 if test "x$enable_dmalloc" = xyes
16304 then
16305 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
16306 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6