cannot assign to const
[Samba.git] / source3 / configure
blobf29f6f5c6b469dd62170809a9c56c4ceb2dee5db
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-cups Turn on CUPS support (default=auto)"
39 ac_help="$ac_help
40 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto) "
41 ac_help="$ac_help
42 --with-libiconv=BASEDIR Use libiconv in BASEDIR/lib and BASEDIR/include (default=auto) "
43 ac_help="$ac_help
44 --with-smbwrapper Include SMB wrapper support (default=no) "
45 ac_help="$ac_help
46 --with-afs Include AFS clear-text auth support (default=no) "
47 ac_help="$ac_help
48 --with-dce-dfs Include DCE/DFS clear-text auth support (default=no)"
49 ac_help="$ac_help
50 --with-ads Active Directory support (default yes)"
51 ac_help="$ac_help
52 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
53 ac_help="$ac_help
54 --with-ldap LDAP support (default yes)"
55 ac_help="$ac_help
56 --with-mysql-prefix=PFX Prefix where MYSQL is installed (optional)"
57 ac_help="$ac_help
58 --with-mysql-exec-prefix=PFX Exec prefix where MYSQL is installed (optional)"
59 ac_help="$ac_help
60 --disable-mysqltest Do not try to compile and run a test MYSQL program"
61 ac_help="$ac_help
62 --with-xml-prefix=PFX Prefix where libxml is installed (optional)"
63 ac_help="$ac_help
64 --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)"
65 ac_help="$ac_help
66 --disable-xmltest Do not try to compile and run a test LIBXML program"
67 ac_help="$ac_help
68 --with-automount Include automount support (default=no)"
69 ac_help="$ac_help
70 --with-smbmount Include smbmount (Linux only) support (default=no)"
71 ac_help="$ac_help
72 --with-pam Include PAM support (default=no)"
73 ac_help="$ac_help
74 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
75 ac_help="$ac_help
76 --with-ldapsam Include LDAP SAM 2.2 compatible configuration (default=no)"
77 ac_help="$ac_help
78 --with-tdbsam Include experimental TDB SAM support (default=no)"
79 ac_help="$ac_help
80 --with-nisplussam Include NISPLUS SAM support (default=no)"
81 ac_help="$ac_help
82 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
83 ac_help="$ac_help
84 --with-syslog Include experimental SYSLOG support (default=no)"
85 ac_help="$ac_help
86 --with-profiling-data Include gathering source code profile information (default=no)"
87 ac_help="$ac_help
88 --with-quotas Include experimental disk-quota support (default=no)"
89 ac_help="$ac_help
90 --with-utmp Include experimental utmp accounting (default=no)"
91 ac_help="$ac_help
92 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
93 ac_help="$ac_help
94 --with-libsmbclient Build the libsmbclient shared library (default=yes)"
95 ac_help="$ac_help
96 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
97 ac_help="$ac_help
98 --with-acl-support Include ACL support (default=no)"
99 ac_help="$ac_help
100 --with-sendfile-support Check for sendfile support (default=yes)"
101 ac_help="$ac_help
102 --with-winbind Build winbind (default, if supported by OS)"
103 ac_help="$ac_help
104 --with-included-popt use bundled popt library, not from system"
105 ac_help="$ac_help
106 --with-python=PYTHONNAME build Python libraries"
108 # Initialize some variables set by options.
109 # The variables have the same names as the options, with
110 # dashes changed to underlines.
111 build=NONE
112 cache_file=./config.cache
113 exec_prefix=NONE
114 host=NONE
115 no_create=
116 nonopt=NONE
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 target=NONE
126 verbose=
127 x_includes=NONE
128 x_libraries=NONE
129 bindir='${exec_prefix}/bin'
130 sbindir='${exec_prefix}/sbin'
131 libexecdir='${exec_prefix}/libexec'
132 datadir='${prefix}/share'
133 sysconfdir='${prefix}/etc'
134 sharedstatedir='${prefix}/com'
135 localstatedir='${prefix}/var'
136 libdir='${exec_prefix}/lib'
137 includedir='${prefix}/include'
138 oldincludedir='/usr/include'
139 infodir='${prefix}/info'
140 mandir='${prefix}/man'
142 # Initialize some other variables.
143 subdirs=
144 MFLAGS= MAKEFLAGS=
145 SHELL=${CONFIG_SHELL-/bin/sh}
146 # Maximum number of lines to put in a shell here document.
147 ac_max_here_lines=12
149 ac_prev=
150 for ac_option
153 # If the previous option needs an argument, assign it.
154 if test -n "$ac_prev"; then
155 eval "$ac_prev=\$ac_option"
156 ac_prev=
157 continue
160 case "$ac_option" in
161 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
162 *) ac_optarg= ;;
163 esac
165 # Accept the important Cygnus configure options, so we can diagnose typos.
167 case "$ac_option" in
169 -bindir | --bindir | --bindi | --bind | --bin | --bi)
170 ac_prev=bindir ;;
171 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
172 bindir="$ac_optarg" ;;
174 -build | --build | --buil | --bui | --bu)
175 ac_prev=build ;;
176 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
177 build="$ac_optarg" ;;
179 -cache-file | --cache-file | --cache-fil | --cache-fi \
180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
181 ac_prev=cache_file ;;
182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
184 cache_file="$ac_optarg" ;;
186 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
187 ac_prev=datadir ;;
188 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
189 | --da=*)
190 datadir="$ac_optarg" ;;
192 -disable-* | --disable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
199 eval "enable_${ac_feature}=no" ;;
201 -enable-* | --enable-*)
202 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
203 # Reject names that are not valid shell variable names.
204 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
205 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
207 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
208 case "$ac_option" in
209 *=*) ;;
210 *) ac_optarg=yes ;;
211 esac
212 eval "enable_${ac_feature}='$ac_optarg'" ;;
214 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
215 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
216 | --exec | --exe | --ex)
217 ac_prev=exec_prefix ;;
218 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
219 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
220 | --exec=* | --exe=* | --ex=*)
221 exec_prefix="$ac_optarg" ;;
223 -gas | --gas | --ga | --g)
224 # Obsolete; use --with-gas.
225 with_gas=yes ;;
227 -help | --help | --hel | --he)
228 # Omit some internal or obsolete options to make the list less imposing.
229 # This message is too long to be a string in the A/UX 3.1 sh.
230 cat << EOF
231 Usage: configure [options] [host]
232 Options: [defaults in brackets after descriptions]
233 Configuration:
234 --cache-file=FILE cache test results in FILE
235 --help print this message
236 --no-create do not create output files
237 --quiet, --silent do not print \`checking...' messages
238 --version print the version of autoconf that created configure
239 Directory and file names:
240 --prefix=PREFIX install architecture-independent files in PREFIX
241 [$ac_default_prefix]
242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
243 [same as prefix]
244 --bindir=DIR user executables in DIR [EPREFIX/bin]
245 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
246 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
247 --datadir=DIR read-only architecture-independent data in DIR
248 [PREFIX/share]
249 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
250 --sharedstatedir=DIR modifiable architecture-independent data in DIR
251 [PREFIX/com]
252 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
253 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
254 --includedir=DIR C header files in DIR [PREFIX/include]
255 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
256 --infodir=DIR info documentation in DIR [PREFIX/info]
257 --mandir=DIR man documentation in DIR [PREFIX/man]
258 --srcdir=DIR find the sources in DIR [configure dir or ..]
259 --program-prefix=PREFIX prepend PREFIX to installed program names
260 --program-suffix=SUFFIX append SUFFIX to installed program names
261 --program-transform-name=PROGRAM
262 run sed PROGRAM on installed program names
264 cat << EOF
265 Host type:
266 --build=BUILD configure for building on BUILD [BUILD=HOST]
267 --host=HOST configure for HOST [guessed]
268 --target=TARGET configure for TARGET [TARGET=HOST]
269 Features and packages:
270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
272 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
273 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
274 --x-includes=DIR X include files are in DIR
275 --x-libraries=DIR X library files are in DIR
277 if test -n "$ac_help"; then
278 echo "--enable and --with options recognized:$ac_help"
280 exit 0 ;;
282 -host | --host | --hos | --ho)
283 ac_prev=host ;;
284 -host=* | --host=* | --hos=* | --ho=*)
285 host="$ac_optarg" ;;
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir="$ac_optarg" ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
295 ac_prev=infodir ;;
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir="$ac_optarg" ;;
299 -libdir | --libdir | --libdi | --libd)
300 ac_prev=libdir ;;
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
302 libdir="$ac_optarg" ;;
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir="$ac_optarg" ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir="$ac_optarg" ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
321 ac_prev=mandir ;;
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
323 mandir="$ac_optarg" ;;
325 -nfp | --nfp | --nf)
326 # Obsolete; use --without-fp.
327 with_fp=no ;;
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
330 | --no-cr | --no-c)
331 no_create=yes ;;
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
335 no_recursion=yes ;;
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir="$ac_optarg" ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
347 ac_prev=prefix ;;
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
349 prefix="$ac_optarg" ;;
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix="$ac_optarg" ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix="$ac_optarg" ;;
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name="$ac_optarg" ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
384 silent=yes ;;
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
387 ac_prev=sbindir ;;
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
389 | --sbi=* | --sb=*)
390 sbindir="$ac_optarg" ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
395 | --sha | --sh)
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
400 | --sha=* | --sh=*)
401 sharedstatedir="$ac_optarg" ;;
403 -site | --site | --sit)
404 ac_prev=site ;;
405 -site=* | --site=* | --sit=*)
406 site="$ac_optarg" ;;
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
409 ac_prev=srcdir ;;
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
411 srcdir="$ac_optarg" ;;
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir="$ac_optarg" ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
421 ac_prev=target ;;
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target="$ac_optarg" ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
426 verbose=yes ;;
428 -version | --version | --versio | --versi | --vers)
429 echo "configure generated by autoconf version 2.13"
430 exit 0 ;;
432 -with-* | --with-*)
433 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 case "$ac_option" in
440 *=*) ;;
441 *) ac_optarg=yes ;;
442 esac
443 eval "with_${ac_package}='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
447 # Reject names that are not valid shell variable names.
448 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
451 ac_package=`echo $ac_package| sed 's/-/_/g'`
452 eval "with_${ac_package}=no" ;;
454 --x)
455 # Obsolete; use --with-x.
456 with_x=yes ;;
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes="$ac_optarg" ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries="$ac_optarg" ;;
472 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
476 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
477 echo "configure: warning: $ac_option: invalid host type" 1>&2
479 if test "x$nonopt" != xNONE; then
480 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
482 nonopt="$ac_option"
485 esac
486 done
488 if test -n "$ac_prev"; then
489 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
492 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
494 # File descriptor usage:
495 # 0 standard input
496 # 1 file creation
497 # 2 errors and warnings
498 # 3 some systems may open it to /dev/tty
499 # 4 used on the Kubota Titan
500 # 6 checking for... messages and results
501 # 5 compiler messages saved in config.log
502 if test "$silent" = yes; then
503 exec 6>/dev/null
504 else
505 exec 6>&1
507 exec 5>./config.log
509 echo "\
510 This file contains any messages produced by compilers while
511 running configure, to aid debugging if configure makes a mistake.
512 " 1>&5
514 # Strip out --no-create and --no-recursion so they do not pile up.
515 # Also quote any args containing shell metacharacters.
516 ac_configure_args=
517 for ac_arg
519 case "$ac_arg" in
520 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
521 | --no-cr | --no-c) ;;
522 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
523 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
524 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
525 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
526 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
527 esac
528 done
530 # NLS nuisances.
531 # Only set these to C if already set. These must not be set unconditionally
532 # because not all systems understand e.g. LANG=C (notably SCO).
533 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
534 # Non-C LC_CTYPE values break the ctype check.
535 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
536 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
537 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
538 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
541 rm -rf conftest* confdefs.h
542 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
543 echo > confdefs.h
545 # A filename unique to this package, relative to the directory that
546 # configure is in, which we can look for to find out if srcdir is correct.
547 ac_unique_file=include/includes.h
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
553 ac_prog=$0
554 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556 srcdir=$ac_confdir
557 if test ! -r $srcdir/$ac_unique_file; then
558 srcdir=..
560 else
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
566 else
567 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
570 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
572 # Prefer explicitly selected file to automatically selected ones.
573 if test -z "$CONFIG_SITE"; then
574 if test "x$prefix" != xNONE; then
575 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
576 else
577 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
580 for ac_site_file in $CONFIG_SITE; do
581 if test -r "$ac_site_file"; then
582 echo "loading site script $ac_site_file"
583 . "$ac_site_file"
585 done
587 if test -r "$cache_file"; then
588 echo "loading cache $cache_file"
589 . $cache_file
590 else
591 echo "creating cache $cache_file"
592 > $cache_file
595 ac_ext=c
596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
597 ac_cpp='$CPP $CPPFLAGS'
598 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
599 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
600 cross_compiling=$ac_cv_prog_cc_cross
602 ac_exeext=
603 ac_objext=o
604 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
605 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
606 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
607 ac_n= ac_c='
608 ' ac_t=' '
609 else
610 ac_n=-n ac_c= ac_t=
612 else
613 ac_n= ac_c='\c' ac_t=
619 #################################################
620 # Directory handling stuff to support both the
621 # legacy SAMBA directories and FHS compliant
622 # ones...
625 # Check whether --with-fhs or --without-fhs was given.
626 if test "${with_fhs+set}" = set; then
627 withval="$with_fhs"
628 configdir="${sysconfdir}/samba"
629 lockdir="\${VARDIR}/cache/samba"
630 piddir="\${VARDIR}/run/samba"
631 logfilebase="\${VARDIR}/log/samba"
632 privatedir="\${CONFIGDIR}/private"
633 libdir="\${prefix}/lib/samba"
634 swatdir="\${DATADIR}/samba/swat"
635 else
636 configdir="\${LIBDIR}"
637 logfilebase="\${VARDIR}"
638 lockdir="\${VARDIR}/locks"
639 piddir="\${VARDIR}/locks"
640 privatedir="\${prefix}/private"
641 swatdir="\${prefix}/swat"
645 #################################################
646 # set private directory location
647 # Check whether --with-privatedir or --without-privatedir was given.
648 if test "${with_privatedir+set}" = set; then
649 withval="$with_privatedir"
650 case "$withval" in
651 yes|no)
653 # Just in case anybody calls it without argument
655 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
658 privatedir="$withval"
660 esac
664 #################################################
665 # set lock directory location
666 # Check whether --with-lockdir or --without-lockdir was given.
667 if test "${with_lockdir+set}" = set; then
668 withval="$with_lockdir"
669 case "$withval" in
670 yes|no)
672 # Just in case anybody calls it without argument
674 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
677 lockdir="$withval"
679 esac
683 #################################################
684 # set pid directory location
685 # Check whether --with-piddir or --without-piddir was given.
686 if test "${with_piddir+set}" = set; then
687 withval="$with_piddir"
688 case "$withval" in
689 yes|no)
691 # Just in case anybody calls it without argument
693 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
696 piddir="$withval"
698 esac
702 #################################################
703 # set SWAT directory location
704 # Check whether --with-swatdir or --without-swatdir was given.
705 if test "${with_swatdir+set}" = set; then
706 withval="$with_swatdir"
707 case "$withval" in
708 yes|no)
710 # Just in case anybody does it
712 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
715 swatdir="$withval"
717 esac
721 #################################################
722 # set configuration directory location
723 # Check whether --with-configdir or --without-configdir was given.
724 if test "${with_configdir+set}" = set; then
725 withval="$with_configdir"
726 case "$withval" in
727 yes|no)
729 # Just in case anybody does it
731 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
734 configdir="$withval"
736 esac
740 #################################################
741 # set log directory location
742 # Check whether --with-logfilebase or --without-logfilebase was given.
743 if test "${with_logfilebase+set}" = set; then
744 withval="$with_logfilebase"
745 case "$withval" in
746 yes|no)
748 # Just in case anybody does it
750 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
753 logfilebase="$withval"
755 esac
787 # compile with optimization and without debugging by default
788 CFLAGS="-O ${CFLAGS}"
790 # Check whether --enable-debug or --disable-debug was given.
791 if test "${enable_debug+set}" = set; then
792 enableval="$enable_debug"
793 if eval "test x$enable_debug = xyes"; then
794 CFLAGS="${CFLAGS} -g"
799 # Check whether --enable-developer or --disable-developer was given.
800 if test "${enable_developer+set}" = set; then
801 enableval="$enable_developer"
802 if eval "test x$enable_developer = xyes"; then
803 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
808 # Check whether --enable-krb5developer or --disable-krb5developer was given.
809 if test "${enable_krb5developer+set}" = set; then
810 enableval="$enable_krb5developer"
811 if eval "test x$enable_krb5developer = xyes"; then
812 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
817 # Check whether --enable-dmalloc or --disable-dmalloc was given.
818 if test "${enable_dmalloc+set}" = set; then
819 enableval="$enable_dmalloc"
824 if test "x$enable_dmalloc" = xyes
825 then
826 cat >> confdefs.h <<\EOF
827 #define ENABLE_DMALLOC 1
830 cat >> confdefs.h <<\EOF
831 #define DMALLOC_FUNC_CHECK 1
834 LIBS="$LIBS -ldmalloc"
837 # Extract the first word of "gcc", so it can be a program name with args.
838 set dummy gcc; ac_word=$2
839 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
840 echo "configure:841: checking for $ac_word" >&5
841 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
842 echo $ac_n "(cached) $ac_c" 1>&6
843 else
844 if test -n "$CC"; then
845 ac_cv_prog_CC="$CC" # Let the user override the test.
846 else
847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
848 ac_dummy="$PATH"
849 for ac_dir in $ac_dummy; do
850 test -z "$ac_dir" && ac_dir=.
851 if test -f $ac_dir/$ac_word; then
852 ac_cv_prog_CC="gcc"
853 break
855 done
856 IFS="$ac_save_ifs"
859 CC="$ac_cv_prog_CC"
860 if test -n "$CC"; then
861 echo "$ac_t""$CC" 1>&6
862 else
863 echo "$ac_t""no" 1>&6
866 if test -z "$CC"; then
867 # Extract the first word of "cc", so it can be a program name with args.
868 set dummy cc; ac_word=$2
869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870 echo "configure:871: checking for $ac_word" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
873 else
874 if test -n "$CC"; then
875 ac_cv_prog_CC="$CC" # Let the user override the test.
876 else
877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
878 ac_prog_rejected=no
879 ac_dummy="$PATH"
880 for ac_dir in $ac_dummy; do
881 test -z "$ac_dir" && ac_dir=.
882 if test -f $ac_dir/$ac_word; then
883 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
884 ac_prog_rejected=yes
885 continue
887 ac_cv_prog_CC="cc"
888 break
890 done
891 IFS="$ac_save_ifs"
892 if test $ac_prog_rejected = yes; then
893 # We found a bogon in the path, so make sure we never use it.
894 set dummy $ac_cv_prog_CC
895 shift
896 if test $# -gt 0; then
897 # We chose a different compiler from the bogus one.
898 # However, it has the same basename, so the bogon will be chosen
899 # first if we set CC to just the basename; use the full file name.
900 shift
901 set dummy "$ac_dir/$ac_word" "$@"
902 shift
903 ac_cv_prog_CC="$@"
908 CC="$ac_cv_prog_CC"
909 if test -n "$CC"; then
910 echo "$ac_t""$CC" 1>&6
911 else
912 echo "$ac_t""no" 1>&6
915 if test -z "$CC"; then
916 case "`uname -s`" in
917 *win32* | *WIN32*)
918 # Extract the first word of "cl", so it can be a program name with args.
919 set dummy cl; ac_word=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
924 else
925 if test -n "$CC"; then
926 ac_cv_prog_CC="$CC" # Let the user override the test.
927 else
928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
929 ac_dummy="$PATH"
930 for ac_dir in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir=.
932 if test -f $ac_dir/$ac_word; then
933 ac_cv_prog_CC="cl"
934 break
936 done
937 IFS="$ac_save_ifs"
940 CC="$ac_cv_prog_CC"
941 if test -n "$CC"; then
942 echo "$ac_t""$CC" 1>&6
943 else
944 echo "$ac_t""no" 1>&6
947 esac
949 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
952 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
953 echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
955 ac_ext=c
956 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
957 ac_cpp='$CPP $CPPFLAGS'
958 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
959 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
960 cross_compiling=$ac_cv_prog_cc_cross
962 cat > conftest.$ac_ext << EOF
964 #line 965 "configure"
965 #include "confdefs.h"
967 main(){return(0);}
969 if { (eval echo configure:970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
970 ac_cv_prog_cc_works=yes
971 # If we can't run a trivial program, we are probably using a cross compiler.
972 if (./conftest; exit) 2>/dev/null; then
973 ac_cv_prog_cc_cross=no
974 else
975 ac_cv_prog_cc_cross=yes
977 else
978 echo "configure: failed program was:" >&5
979 cat conftest.$ac_ext >&5
980 ac_cv_prog_cc_works=no
982 rm -fr conftest*
983 ac_ext=c
984 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
985 ac_cpp='$CPP $CPPFLAGS'
986 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
987 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
988 cross_compiling=$ac_cv_prog_cc_cross
990 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
991 if test $ac_cv_prog_cc_works = no; then
992 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
996 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
997 cross_compiling=$ac_cv_prog_cc_cross
999 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1000 echo "configure:1001: checking whether we are using GNU C" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004 cat > conftest.c <<EOF
1005 #ifdef __GNUC__
1006 yes;
1007 #endif
1009 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1010 ac_cv_prog_gcc=yes
1011 else
1012 ac_cv_prog_gcc=no
1016 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1018 if test $ac_cv_prog_gcc = yes; then
1019 GCC=yes
1020 else
1021 GCC=
1024 ac_test_CFLAGS="${CFLAGS+set}"
1025 ac_save_CFLAGS="$CFLAGS"
1026 CFLAGS=
1027 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1028 echo "configure:1029: checking whether ${CC-cc} accepts -g" >&5
1029 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1031 else
1032 echo 'void f(){}' > conftest.c
1033 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1034 ac_cv_prog_cc_g=yes
1035 else
1036 ac_cv_prog_cc_g=no
1038 rm -f conftest*
1042 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1043 if test "$ac_test_CFLAGS" = set; then
1044 CFLAGS="$ac_save_CFLAGS"
1045 elif test $ac_cv_prog_cc_g = yes; then
1046 if test "$GCC" = yes; then
1047 CFLAGS="-g -O2"
1048 else
1049 CFLAGS="-g"
1051 else
1052 if test "$GCC" = yes; then
1053 CFLAGS="-O2"
1054 else
1055 CFLAGS=
1059 ac_aux_dir=
1060 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1061 if test -f $ac_dir/install-sh; then
1062 ac_aux_dir=$ac_dir
1063 ac_install_sh="$ac_aux_dir/install-sh -c"
1064 break
1065 elif test -f $ac_dir/install.sh; then
1066 ac_aux_dir=$ac_dir
1067 ac_install_sh="$ac_aux_dir/install.sh -c"
1068 break
1070 done
1071 if test -z "$ac_aux_dir"; then
1072 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1074 ac_config_guess=$ac_aux_dir/config.guess
1075 ac_config_sub=$ac_aux_dir/config.sub
1076 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1078 # Find a good install program. We prefer a C program (faster),
1079 # so one script is as good as another. But avoid the broken or
1080 # incompatible versions:
1081 # SysV /etc/install, /usr/sbin/install
1082 # SunOS /usr/etc/install
1083 # IRIX /sbin/install
1084 # AIX /bin/install
1085 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1086 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1087 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1088 # ./install, which can be erroneously created by make from ./install.sh.
1089 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1090 echo "configure:1091: checking for a BSD compatible install" >&5
1091 if test -z "$INSTALL"; then
1092 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1093 echo $ac_n "(cached) $ac_c" 1>&6
1094 else
1095 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1096 for ac_dir in $PATH; do
1097 # Account for people who put trailing slashes in PATH elements.
1098 case "$ac_dir/" in
1099 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1101 # OSF1 and SCO ODT 3.0 have their own names for install.
1102 # Don't use installbsd from OSF since it installs stuff as root
1103 # by default.
1104 for ac_prog in ginstall scoinst install; do
1105 if test -f $ac_dir/$ac_prog; then
1106 if test $ac_prog = install &&
1107 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1108 # AIX install. It has an incompatible calling convention.
1110 else
1111 ac_cv_path_install="$ac_dir/$ac_prog -c"
1112 break 2
1115 done
1117 esac
1118 done
1119 IFS="$ac_save_IFS"
1122 if test "${ac_cv_path_install+set}" = set; then
1123 INSTALL="$ac_cv_path_install"
1124 else
1125 # As a last resort, use the slow shell script. We don't cache a
1126 # path for INSTALL within a source directory, because that will
1127 # break other packages using the cache if that directory is
1128 # removed, or if the path is relative.
1129 INSTALL="$ac_install_sh"
1132 echo "$ac_t""$INSTALL" 1>&6
1134 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1135 # It thinks the first close brace ends the variable substitution.
1136 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1138 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1140 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1142 for ac_prog in gawk mawk nawk awk
1144 # Extract the first word of "$ac_prog", so it can be a program name with args.
1145 set dummy $ac_prog; ac_word=$2
1146 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1147 echo "configure:1148: checking for $ac_word" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 if test -n "$AWK"; then
1152 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1153 else
1154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1155 ac_dummy="$PATH"
1156 for ac_dir in $ac_dummy; do
1157 test -z "$ac_dir" && ac_dir=.
1158 if test -f $ac_dir/$ac_word; then
1159 ac_cv_prog_AWK="$ac_prog"
1160 break
1162 done
1163 IFS="$ac_save_ifs"
1166 AWK="$ac_cv_prog_AWK"
1167 if test -n "$AWK"; then
1168 echo "$ac_t""$AWK" 1>&6
1169 else
1170 echo "$ac_t""no" 1>&6
1173 test -n "$AWK" && break
1174 done
1177 LD=ld
1178 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1179 echo "configure:1180: checking if the linker ($LD) is GNU ld" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1184 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1185 ac_cv_prog_gnu_ld=yes
1186 else
1187 ac_cv_prog_gnu_ld=no
1191 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1194 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1195 echo "configure:1196: checking for POSIXized ISC" >&5
1196 if test -d /etc/conf/kconfig.d &&
1197 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1198 then
1199 echo "$ac_t""yes" 1>&6
1200 ISC=yes # If later tests want to check for ISC.
1201 cat >> confdefs.h <<\EOF
1202 #define _POSIX_SOURCE 1
1205 if test "$GCC" = yes; then
1206 CC="$CC -posix"
1207 else
1208 CC="$CC -Xp"
1210 else
1211 echo "$ac_t""no" 1>&6
1212 ISC=
1216 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1217 echo "configure:1218: checking for Cygwin environment" >&5
1218 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1219 echo $ac_n "(cached) $ac_c" 1>&6
1220 else
1221 cat > conftest.$ac_ext <<EOF
1222 #line 1223 "configure"
1223 #include "confdefs.h"
1225 int main() {
1227 #ifndef __CYGWIN__
1228 #define __CYGWIN__ __CYGWIN32__
1229 #endif
1230 return __CYGWIN__;
1231 ; return 0; }
1233 if { (eval echo configure:1234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1234 rm -rf conftest*
1235 ac_cv_cygwin=yes
1236 else
1237 echo "configure: failed program was:" >&5
1238 cat conftest.$ac_ext >&5
1239 rm -rf conftest*
1240 ac_cv_cygwin=no
1242 rm -f conftest*
1243 rm -f conftest*
1246 echo "$ac_t""$ac_cv_cygwin" 1>&6
1247 CYGWIN=
1248 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1249 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1250 echo "configure:1251: checking for mingw32 environment" >&5
1251 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 cat > conftest.$ac_ext <<EOF
1255 #line 1256 "configure"
1256 #include "confdefs.h"
1258 int main() {
1259 return __MINGW32__;
1260 ; return 0; }
1262 if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1263 rm -rf conftest*
1264 ac_cv_mingw32=yes
1265 else
1266 echo "configure: failed program was:" >&5
1267 cat conftest.$ac_ext >&5
1268 rm -rf conftest*
1269 ac_cv_mingw32=no
1271 rm -f conftest*
1272 rm -f conftest*
1275 echo "$ac_t""$ac_cv_mingw32" 1>&6
1276 MINGW32=
1277 test "$ac_cv_mingw32" = yes && MINGW32=yes
1280 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1281 echo "configure:1282: checking for executable suffix" >&5
1282 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1284 else
1285 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1286 ac_cv_exeext=.exe
1287 else
1288 rm -f conftest*
1289 echo 'int main () { return 0; }' > conftest.$ac_ext
1290 ac_cv_exeext=
1291 if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1292 for file in conftest.*; do
1293 case $file in
1294 *.c | *.o | *.obj) ;;
1295 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1296 esac
1297 done
1298 else
1299 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1301 rm -f conftest*
1302 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1306 EXEEXT=""
1307 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1308 echo "$ac_t""${ac_cv_exeext}" 1>&6
1309 ac_exeext=$EXEEXT
1312 if test "x$CC" != xcc; then
1313 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1314 echo "configure:1315: checking whether $CC and cc understand -c and -o together" >&5
1315 else
1316 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1317 echo "configure:1318: checking whether cc understands -c and -o together" >&5
1319 set dummy $CC; ac_cc="`echo $2 |
1320 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1321 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324 echo 'foo(){}' > conftest.c
1325 # Make sure it works both with $CC and with simple cc.
1326 # We do the test twice because some compilers refuse to overwrite an
1327 # existing .o file with -o, though they will create one.
1328 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1329 if { (eval echo configure:1330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1330 test -f conftest.o && { (eval echo configure:1331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1331 then
1332 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1333 if test "x$CC" != xcc; then
1334 # Test first that cc exists at all.
1335 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1336 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1337 if { (eval echo configure:1338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1338 test -f conftest.o && { (eval echo configure:1339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1339 then
1340 # cc works too.
1342 else
1343 # cc exists but doesn't like -o.
1344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1348 else
1349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1351 rm -f conftest*
1354 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1356 else
1357 echo "$ac_t""no" 1>&6
1358 cat >> confdefs.h <<\EOF
1359 #define NO_MINUS_C_MINUS_O 1
1364 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1365 BROKEN_CC=
1366 else
1367 BROKEN_CC=#
1371 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1372 echo "configure:1373: checking that the C compiler understands volatile" >&5
1373 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1375 else
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1380 #include <sys/types.h>
1381 int main() {
1382 volatile int i = 0
1383 ; return 0; }
1385 if { (eval echo configure:1386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1386 rm -rf conftest*
1387 samba_cv_volatile=yes
1388 else
1389 echo "configure: failed program was:" >&5
1390 cat conftest.$ac_ext >&5
1391 rm -rf conftest*
1392 samba_cv_volatile=no
1394 rm -f conftest*
1397 echo "$ac_t""$samba_cv_volatile" 1>&6
1398 if test x"$samba_cv_volatile" = x"yes"; then
1399 cat >> confdefs.h <<\EOF
1400 #define HAVE_VOLATILE 1
1407 # Do some error checking and defaulting for the host and target type.
1408 # The inputs are:
1409 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1411 # The rules are:
1412 # 1. You are not allowed to specify --host, --target, and nonopt at the
1413 # same time.
1414 # 2. Host defaults to nonopt.
1415 # 3. If nonopt is not specified, then host defaults to the current host,
1416 # as determined by config.guess.
1417 # 4. Target and build default to nonopt.
1418 # 5. If nonopt is not specified, then target and build default to host.
1420 # The aliases save the names the user supplied, while $host etc.
1421 # will get canonicalized.
1422 case $host---$target---$nonopt in
1423 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1424 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1425 esac
1428 # Make sure we can run config.sub.
1429 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1430 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1433 echo $ac_n "checking host system type""... $ac_c" 1>&6
1434 echo "configure:1435: checking host system type" >&5
1436 host_alias=$host
1437 case "$host_alias" in
1438 NONE)
1439 case $nonopt in
1440 NONE)
1441 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1442 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1443 fi ;;
1444 *) host_alias=$nonopt ;;
1445 esac ;;
1446 esac
1448 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1449 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452 echo "$ac_t""$host" 1>&6
1454 echo $ac_n "checking target system type""... $ac_c" 1>&6
1455 echo "configure:1456: checking target system type" >&5
1457 target_alias=$target
1458 case "$target_alias" in
1459 NONE)
1460 case $nonopt in
1461 NONE) target_alias=$host_alias ;;
1462 *) target_alias=$nonopt ;;
1463 esac ;;
1464 esac
1466 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1467 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470 echo "$ac_t""$target" 1>&6
1472 echo $ac_n "checking build system type""... $ac_c" 1>&6
1473 echo "configure:1474: checking build system type" >&5
1475 build_alias=$build
1476 case "$build_alias" in
1477 NONE)
1478 case $nonopt in
1479 NONE) build_alias=$host_alias ;;
1480 *) build_alias=$nonopt ;;
1481 esac ;;
1482 esac
1484 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1485 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 echo "$ac_t""$build" 1>&6
1490 test "$host_alias" != "$target_alias" &&
1491 test "$program_prefix$program_suffix$program_transform_name" = \
1492 NONENONEs,x,x, &&
1493 program_prefix=${target_alias}-
1496 case "$host_os" in
1497 *irix6*) cat >> confdefs.h <<\EOF
1498 #include <standards.h>
1502 esac
1506 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1507 echo "configure:1508: checking config.cache system type" >&5
1508 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1509 test x"$ac_cv_host_system_type" != x"$host"; } ||
1510 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1511 test x"$ac_cv_build_system_type" != x"$build"; } ||
1512 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1513 test x"$ac_cv_target_system_type" != x"$target"; }; then
1514 echo "$ac_t""different" 1>&6
1515 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1516 else
1517 echo "$ac_t""same" 1>&6
1519 ac_cv_host_system_type="$host"
1520 ac_cv_build_system_type="$build"
1521 ac_cv_target_system_type="$target"
1524 DYNEXP=
1527 # Config CPPFLAG settings for strange OS's that must be set
1528 # before other tests.
1530 case "$host_os" in
1531 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1532 *hpux*)
1534 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1535 echo "configure:1536: checking whether ${CC-cc} accepts -Ae" >&5
1536 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1538 else
1539 echo 'void f(){}' > conftest.c
1540 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1541 ac_cv_prog_cc_Ae=yes
1542 else
1543 ac_cv_prog_cc_Ae=no
1545 rm -f conftest*
1549 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1550 # mmap on HPUX is completely broken...
1551 cat >> confdefs.h <<\EOF
1552 #define MMAP_BLACKLIST 1
1555 if test $ac_cv_prog_cc_Ae = yes; then
1556 CPPFLAGS="$CPPFLAGS -Ae"
1559 # Defines needed for HPUX support.
1560 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1561 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1563 case `uname -r` in
1564 *9*|*10*)
1565 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1566 cat >> confdefs.h <<\EOF
1567 #define USE_BOTH_CRYPT_CALLS 1
1570 cat >> confdefs.h <<\EOF
1571 #define _HPUX_SOURCE 1
1574 cat >> confdefs.h <<\EOF
1575 #define _POSIX_SOURCE 1
1578 cat >> confdefs.h <<\EOF
1579 #define _ALIGNMENT_REQUIRED 1
1582 cat >> confdefs.h <<\EOF
1583 #define _MAX_ALIGNMENT 4
1587 *11*)
1588 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1589 cat >> confdefs.h <<\EOF
1590 #define USE_BOTH_CRYPT_CALLS 1
1593 cat >> confdefs.h <<\EOF
1594 #define _HPUX_SOURCE 1
1597 cat >> confdefs.h <<\EOF
1598 #define _POSIX_SOURCE 1
1601 cat >> confdefs.h <<\EOF
1602 #define _LARGEFILE64_SOURCE 1
1605 cat >> confdefs.h <<\EOF
1606 #define _ALIGNMENT_REQUIRED 1
1609 cat >> confdefs.h <<\EOF
1610 #define _MAX_ALIGNMENT 4
1614 esac
1615 DYNEXP="-Wl,-E"
1619 # CRAY Unicos has broken const handling
1620 *unicos*)
1621 echo "$ac_t""disabling const" 1>&6
1622 CPPFLAGS="$CPPFLAGS -Dconst="
1626 # AIX4.x doesn't even admit to having large
1627 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1629 *aix4*)
1630 echo "$ac_t""enabling large file support" 1>&6
1631 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1632 cat >> confdefs.h <<\EOF
1633 #define _LARGE_FILES 1
1638 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1639 # to the existance of large files..
1640 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1641 # recommendations on large file support, however it makes the
1642 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1643 # recommendation makes the compile fail on gcc2.7. JRA.
1645 *solaris*)
1646 case `uname -r` in
1647 5.0*|5.1*|5.2*|5.3*|5.5*)
1648 echo "$ac_t""no large file support" 1>&6
1650 5.*)
1651 echo "$ac_t""enabling large file support" 1>&6
1652 if test "$ac_cv_prog_gcc" = yes; then
1653 ${CC-cc} -v >conftest.c 2>&1
1654 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1655 rm -fr conftest.c
1656 case "$ac_cv_gcc_compiler_version_number" in
1657 *"gcc version 2.6"*|*"gcc version 2.7"*)
1658 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1659 cat >> confdefs.h <<\EOF
1660 #define _LARGEFILE64_SOURCE 1
1665 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1666 cat >> confdefs.h <<\EOF
1667 #define _LARGEFILE64_SOURCE 1
1670 cat >> confdefs.h <<\EOF
1671 #define _FILE_OFFSET_BITS 64
1675 esac
1676 else
1677 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1678 cat >> confdefs.h <<\EOF
1679 #define _LARGEFILE64_SOURCE 1
1682 cat >> confdefs.h <<\EOF
1683 #define _FILE_OFFSET_BITS 64
1688 esac
1691 # Tests needed for SINIX large file support.
1693 *sysv4*)
1694 if test $host = mips-sni-sysv4 ; then
1695 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1696 echo "configure:1697: checking for LFS support" >&5
1697 old_CPPFLAGS="$CPPFLAGS"
1698 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1699 if test "$cross_compiling" = yes; then
1700 SINIX_LFS_SUPPORT=cross
1701 else
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1706 #include <unistd.h>
1707 main () {
1708 #if _LFS64_LARGEFILE == 1
1709 exit(0);
1710 #else
1711 exit(1);
1712 #endif
1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1716 then
1717 SINIX_LFS_SUPPORT=yes
1718 else
1719 echo "configure: failed program was:" >&5
1720 cat conftest.$ac_ext >&5
1721 rm -fr conftest*
1722 SINIX_LFS_SUPPORT=no
1724 rm -fr conftest*
1727 CPPFLAGS="$old_CPPFLAGS"
1728 if test x$SINIX_LFS_SUPPORT = xyes ; then
1729 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1730 cat >> confdefs.h <<\EOF
1731 #define _LARGEFILE64_SOURCE 1
1734 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1735 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1736 LIBS="`getconf LFS64_LIBS` $LIBS"
1738 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1742 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1744 *linux*)
1745 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1746 echo "configure:1747: checking for LFS support" >&5
1747 old_CPPFLAGS="$CPPFLAGS"
1748 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1749 if test "$cross_compiling" = yes; then
1750 LINUX_LFS_SUPPORT=cross
1751 else
1752 cat > conftest.$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1756 #include <unistd.h>
1757 #include <sys/utsname.h>
1758 main() {
1759 #if _LFS64_LARGEFILE == 1
1760 struct utsname uts;
1761 char *release;
1762 int major, minor;
1764 /* Ensure this is glibc 2.2 or higher */
1765 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1766 int libc_major = __GLIBC__;
1767 int libc_minor = __GLIBC_MINOR__;
1769 if (libc_major < 2)
1770 exit(1);
1771 if (libc_minor < 2)
1772 exit(1);
1773 #endif
1775 /* Ensure this is kernel 2.4 or higher */
1777 uname(&uts);
1778 release = uts.release;
1779 major = atoi(strsep(&release, "."));
1780 minor = atoi(strsep(&release, "."));
1782 if (major > 2 || (major == 2 && minor > 3))
1783 exit(0);
1784 exit(1);
1785 #else
1786 exit(1);
1787 #endif
1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1792 then
1793 LINUX_LFS_SUPPORT=yes
1794 else
1795 echo "configure: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1797 rm -fr conftest*
1798 LINUX_LFS_SUPPORT=no
1800 rm -fr conftest*
1803 CPPFLAGS="$old_CPPFLAGS"
1804 if test x$LINUX_LFS_SUPPORT = xyes ; then
1805 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1806 cat >> confdefs.h <<\EOF
1807 #define _LARGEFILE64_SOURCE 1
1810 cat >> confdefs.h <<\EOF
1811 #define _FILE_OFFSET_BITS 64
1814 cat >> confdefs.h <<\EOF
1815 #define _GNU_SOURCE 1
1819 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1822 *hurd*)
1823 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1824 echo "configure:1825: checking for LFS support" >&5
1825 old_CPPFLAGS="$CPPFLAGS"
1826 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1827 if test "$cross_compiling" = yes; then
1828 GLIBC_LFS_SUPPORT=cross
1829 else
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1834 #include <unistd.h>
1835 main () {
1836 #if _LFS64_LARGEFILE == 1
1837 exit(0);
1838 #else
1839 exit(1);
1840 #endif
1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1844 then
1845 GLIBC_LFS_SUPPORT=yes
1846 else
1847 echo "configure: failed program was:" >&5
1848 cat conftest.$ac_ext >&5
1849 rm -fr conftest*
1850 GLIBC_LFS_SUPPORT=no
1852 rm -fr conftest*
1855 CPPFLAGS="$old_CPPFLAGS"
1856 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1857 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1858 cat >> confdefs.h <<\EOF
1859 #define _LARGEFILE64_SOURCE 1
1862 cat >> confdefs.h <<\EOF
1863 #define _GNU_SOURCE 1
1867 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1870 esac
1872 echo $ac_n "checking for inline""... $ac_c" 1>&6
1873 echo "configure:1874: checking for inline" >&5
1874 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1875 echo $ac_n "(cached) $ac_c" 1>&6
1876 else
1877 ac_cv_c_inline=no
1878 for ac_kw in inline __inline__ __inline; do
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1883 int main() {
1884 } $ac_kw foo() {
1885 ; return 0; }
1887 if { (eval echo configure:1888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 rm -rf conftest*
1889 ac_cv_c_inline=$ac_kw; break
1890 else
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1894 rm -f conftest*
1895 done
1899 echo "$ac_t""$ac_cv_c_inline" 1>&6
1900 case "$ac_cv_c_inline" in
1901 inline | yes) ;;
1902 no) cat >> confdefs.h <<\EOF
1903 #define inline
1906 *) cat >> confdefs.h <<EOF
1907 #define inline $ac_cv_c_inline
1910 esac
1912 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1913 echo "configure:1914: checking how to run the C preprocessor" >&5
1914 # On Suns, sometimes $CPP names a directory.
1915 if test -n "$CPP" && test -d "$CPP"; then
1916 CPP=
1918 if test -z "$CPP"; then
1919 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1920 echo $ac_n "(cached) $ac_c" 1>&6
1921 else
1922 # This must be in double quotes, not single quotes, because CPP may get
1923 # substituted into the Makefile and "${CC-cc}" will confuse make.
1924 CPP="${CC-cc} -E"
1925 # On the NeXT, cc -E runs the code through the compiler's parser,
1926 # not just through cpp.
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 #include <assert.h>
1931 Syntax Error
1933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1934 { (eval echo configure:1935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1936 if test -z "$ac_err"; then
1938 else
1939 echo "$ac_err" >&5
1940 echo "configure: failed program was:" >&5
1941 cat conftest.$ac_ext >&5
1942 rm -rf conftest*
1943 CPP="${CC-cc} -E -traditional-cpp"
1944 cat > conftest.$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1947 #include <assert.h>
1948 Syntax Error
1950 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1951 { (eval echo configure:1952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1952 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1953 if test -z "$ac_err"; then
1955 else
1956 echo "$ac_err" >&5
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 rm -rf conftest*
1960 CPP="${CC-cc} -nologo -E"
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1964 #include <assert.h>
1965 Syntax Error
1967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1968 { (eval echo configure:1969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1970 if test -z "$ac_err"; then
1972 else
1973 echo "$ac_err" >&5
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -rf conftest*
1977 CPP=/lib/cpp
1979 rm -f conftest*
1981 rm -f conftest*
1983 rm -f conftest*
1984 ac_cv_prog_CPP="$CPP"
1986 CPP="$ac_cv_prog_CPP"
1987 else
1988 ac_cv_prog_CPP="$CPP"
1990 echo "$ac_t""$CPP" 1>&6
1992 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1993 echo "configure:1994: checking for ANSI C header files" >&5
1994 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 #include <stdlib.h>
2001 #include <stdarg.h>
2002 #include <string.h>
2003 #include <float.h>
2005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2006 { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2008 if test -z "$ac_err"; then
2009 rm -rf conftest*
2010 ac_cv_header_stdc=yes
2011 else
2012 echo "$ac_err" >&5
2013 echo "configure: failed program was:" >&5
2014 cat conftest.$ac_ext >&5
2015 rm -rf conftest*
2016 ac_cv_header_stdc=no
2018 rm -f conftest*
2020 if test $ac_cv_header_stdc = yes; then
2021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2025 #include <string.h>
2027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2028 egrep "memchr" >/dev/null 2>&1; then
2030 else
2031 rm -rf conftest*
2032 ac_cv_header_stdc=no
2034 rm -f conftest*
2038 if test $ac_cv_header_stdc = yes; then
2039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2040 cat > conftest.$ac_ext <<EOF
2041 #line 2042 "configure"
2042 #include "confdefs.h"
2043 #include <stdlib.h>
2045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2046 egrep "free" >/dev/null 2>&1; then
2048 else
2049 rm -rf conftest*
2050 ac_cv_header_stdc=no
2052 rm -f conftest*
2056 if test $ac_cv_header_stdc = yes; then
2057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2058 if test "$cross_compiling" = yes; then
2060 else
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 #include <ctype.h>
2065 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2066 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2068 int main () { int i; for (i = 0; i < 256; i++)
2069 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2070 exit (0); }
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2074 then
2076 else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 rm -fr conftest*
2080 ac_cv_header_stdc=no
2082 rm -fr conftest*
2088 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2089 if test $ac_cv_header_stdc = yes; then
2090 cat >> confdefs.h <<\EOF
2091 #define STDC_HEADERS 1
2096 ac_header_dirent=no
2097 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2099 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2100 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2101 echo "configure:2102: checking for $ac_hdr that defines DIR" >&5
2102 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2103 echo $ac_n "(cached) $ac_c" 1>&6
2104 else
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 #include <sys/types.h>
2109 #include <$ac_hdr>
2110 int main() {
2111 DIR *dirp = 0;
2112 ; return 0; }
2114 if { (eval echo configure:2115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2115 rm -rf conftest*
2116 eval "ac_cv_header_dirent_$ac_safe=yes"
2117 else
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 rm -rf conftest*
2121 eval "ac_cv_header_dirent_$ac_safe=no"
2123 rm -f conftest*
2125 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2126 echo "$ac_t""yes" 1>&6
2127 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2128 cat >> confdefs.h <<EOF
2129 #define $ac_tr_hdr 1
2131 ac_header_dirent=$ac_hdr; break
2132 else
2133 echo "$ac_t""no" 1>&6
2135 done
2136 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2137 if test $ac_header_dirent = dirent.h; then
2138 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2139 echo "configure:2140: checking for opendir in -ldir" >&5
2140 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2143 else
2144 ac_save_LIBS="$LIBS"
2145 LIBS="-ldir $LIBS"
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 /* Override any gcc2 internal prototype to avoid an error. */
2150 /* We use char because int might match the return type of a gcc2
2151 builtin and then its argument prototype would still apply. */
2152 char opendir();
2154 int main() {
2155 opendir()
2156 ; return 0; }
2158 if { (eval echo configure:2159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2159 rm -rf conftest*
2160 eval "ac_cv_lib_$ac_lib_var=yes"
2161 else
2162 echo "configure: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 rm -rf conftest*
2165 eval "ac_cv_lib_$ac_lib_var=no"
2167 rm -f conftest*
2168 LIBS="$ac_save_LIBS"
2171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 LIBS="$LIBS -ldir"
2174 else
2175 echo "$ac_t""no" 1>&6
2178 else
2179 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2180 echo "configure:2181: checking for opendir in -lx" >&5
2181 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184 else
2185 ac_save_LIBS="$LIBS"
2186 LIBS="-lx $LIBS"
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2193 char opendir();
2195 int main() {
2196 opendir()
2197 ; return 0; }
2199 if { (eval echo configure:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2200 rm -rf conftest*
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2202 else
2203 echo "configure: failed program was:" >&5
2204 cat conftest.$ac_ext >&5
2205 rm -rf conftest*
2206 eval "ac_cv_lib_$ac_lib_var=no"
2208 rm -f conftest*
2209 LIBS="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 LIBS="$LIBS -lx"
2215 else
2216 echo "$ac_t""no" 1>&6
2221 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2222 echo "configure:2223: checking whether time.h and sys/time.h may both be included" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <sys/types.h>
2230 #include <sys/time.h>
2231 #include <time.h>
2232 int main() {
2233 struct tm *tp;
2234 ; return 0; }
2236 if { (eval echo configure:2237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2237 rm -rf conftest*
2238 ac_cv_header_time=yes
2239 else
2240 echo "configure: failed program was:" >&5
2241 cat conftest.$ac_ext >&5
2242 rm -rf conftest*
2243 ac_cv_header_time=no
2245 rm -f conftest*
2248 echo "$ac_t""$ac_cv_header_time" 1>&6
2249 if test $ac_cv_header_time = yes; then
2250 cat >> confdefs.h <<\EOF
2251 #define TIME_WITH_SYS_TIME 1
2256 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2257 echo "configure:2258: checking for sys/wait.h that is POSIX.1 compatible" >&5
2258 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261 cat > conftest.$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2264 #include <sys/types.h>
2265 #include <sys/wait.h>
2266 #ifndef WEXITSTATUS
2267 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2268 #endif
2269 #ifndef WIFEXITED
2270 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2271 #endif
2272 int main() {
2273 int s;
2274 wait (&s);
2275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2276 ; return 0; }
2278 if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 rm -rf conftest*
2280 ac_cv_header_sys_wait_h=yes
2281 else
2282 echo "configure: failed program was:" >&5
2283 cat conftest.$ac_ext >&5
2284 rm -rf conftest*
2285 ac_cv_header_sys_wait_h=no
2287 rm -f conftest*
2290 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2291 if test $ac_cv_header_sys_wait_h = yes; then
2292 cat >> confdefs.h <<\EOF
2293 #define HAVE_SYS_WAIT_H 1
2298 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2302 echo "configure:2303: checking for $ac_hdr" >&5
2303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2305 else
2306 cat > conftest.$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2309 #include <$ac_hdr>
2311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2312 { (eval echo configure:2313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2314 if test -z "$ac_err"; then
2315 rm -rf conftest*
2316 eval "ac_cv_header_$ac_safe=yes"
2317 else
2318 echo "$ac_err" >&5
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_header_$ac_safe=no"
2324 rm -f conftest*
2326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2329 cat >> confdefs.h <<EOF
2330 #define $ac_tr_hdr 1
2333 else
2334 echo "$ac_t""no" 1>&6
2336 done
2338 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_hdr" >&5
2343 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2345 else
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 #include <$ac_hdr>
2351 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2352 { (eval echo configure:2353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2353 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2354 if test -z "$ac_err"; then
2355 rm -rf conftest*
2356 eval "ac_cv_header_$ac_safe=yes"
2357 else
2358 echo "$ac_err" >&5
2359 echo "configure: failed program was:" >&5
2360 cat conftest.$ac_ext >&5
2361 rm -rf conftest*
2362 eval "ac_cv_header_$ac_safe=no"
2364 rm -f conftest*
2366 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2367 echo "$ac_t""yes" 1>&6
2368 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2369 cat >> confdefs.h <<EOF
2370 #define $ac_tr_hdr 1
2373 else
2374 echo "$ac_t""no" 1>&6
2376 done
2378 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2382 echo "configure:2383: checking for $ac_hdr" >&5
2383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <$ac_hdr>
2391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2394 if test -z "$ac_err"; then
2395 rm -rf conftest*
2396 eval "ac_cv_header_$ac_safe=yes"
2397 else
2398 echo "$ac_err" >&5
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 eval "ac_cv_header_$ac_safe=no"
2404 rm -f conftest*
2406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2407 echo "$ac_t""yes" 1>&6
2408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2409 cat >> confdefs.h <<EOF
2410 #define $ac_tr_hdr 1
2413 else
2414 echo "$ac_t""no" 1>&6
2416 done
2418 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_hdr" >&5
2423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2425 else
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2428 "configure"
2428 #include "confdefs.h"
2429 #include <$ac_hdr>
2431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2432 { (eval echo configure:2433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2434 if test -z "$ac_err"; then
2435 rm -rf conftest*
2436 eval "ac_cv_header_$ac_safe=yes"
2437 else
2438 echo "$ac_err" >&5
2439 echo "configure: failed program was:" >&5
2440 cat conftest.$ac_ext >&5
2441 rm -rf conftest*
2442 eval "ac_cv_header_$ac_safe=no"
2444 rm -f conftest*
2446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2447 echo "$ac_t""yes" 1>&6
2448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2449 cat >> confdefs.h <<EOF
2450 #define $ac_tr_hdr 1
2453 else
2454 echo "$ac_t""no" 1>&6
2456 done
2458 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
2460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2462 echo "configure:2463: checking for $ac_hdr" >&5
2463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2465 else
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 #include <$ac_hdr>
2471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2475 rm -rf conftest*
2476 eval "ac_cv_header_$ac_safe=yes"
2477 else
2478 echo "$ac_err" >&5
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 eval "ac_cv_header_$ac_safe=no"
2484 rm -f conftest*
2486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2487 echo "$ac_t""yes" 1>&6
2488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2489 cat >> confdefs.h <<EOF
2490 #define $ac_tr_hdr 1
2493 else
2494 echo "$ac_t""no" 1>&6
2496 done
2498 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2500 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2501 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2502 echo "configure:2503: checking for $ac_hdr" >&5
2503 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2504 echo $ac_n "(cached) $ac_c" 1>&6
2505 else
2506 cat > conftest.$ac_ext <<EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2509 #include <$ac_hdr>
2511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2514 if test -z "$ac_err"; then
2515 rm -rf conftest*
2516 eval "ac_cv_header_$ac_safe=yes"
2517 else
2518 echo "$ac_err" >&5
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2521 rm -rf conftest*
2522 eval "ac_cv_header_$ac_safe=no"
2524 rm -f conftest*
2526 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2529 cat >> confdefs.h <<EOF
2530 #define $ac_tr_hdr 1
2533 else
2534 echo "$ac_t""no" 1>&6
2536 done
2538 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2542 echo "configure:2543: checking for $ac_hdr" >&5
2543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2545 else
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2549 #include <$ac_hdr>
2551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2552 { (eval echo configure:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2554 if test -z "$ac_err"; then
2555 rm -rf conftest*
2556 eval "ac_cv_header_$ac_safe=yes"
2557 else
2558 echo "$ac_err" >&5
2559 echo "configure: failed program was:" >&5
2560 cat conftest.$ac_ext >&5
2561 rm -rf conftest*
2562 eval "ac_cv_header_$ac_safe=no"
2564 rm -f conftest*
2566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2567 echo "$ac_t""yes" 1>&6
2568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2569 cat >> confdefs.h <<EOF
2570 #define $ac_tr_hdr 1
2573 else
2574 echo "$ac_t""no" 1>&6
2576 done
2578 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2582 echo "configure:2583: checking for $ac_hdr" >&5
2583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2584 echo $ac_n "(cached) $ac_c" 1>&6
2585 else
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 #include <$ac_hdr>
2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2594 if test -z "$ac_err"; then
2595 rm -rf conftest*
2596 eval "ac_cv_header_$ac_safe=yes"
2597 else
2598 echo "$ac_err" >&5
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 rm -rf conftest*
2602 eval "ac_cv_header_$ac_safe=no"
2604 rm -f conftest*
2606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2609 cat >> confdefs.h <<EOF
2610 #define $ac_tr_hdr 1
2613 else
2614 echo "$ac_t""no" 1>&6
2616 done
2618 for ac_hdr in sys/syslog.h syslog.h
2620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2622 echo "configure:2623: checking for $ac_hdr" >&5
2623 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2625 else
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 #include <$ac_hdr>
2631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2632 { (eval echo configure:2633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2634 if test -z "$ac_err"; then
2635 rm -rf conftest*
2636 eval "ac_cv_header_$ac_safe=yes"
2637 else
2638 echo "$ac_err" >&5
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 rm -rf conftest*
2642 eval "ac_cv_header_$ac_safe=no"
2644 rm -f conftest*
2646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2647 echo "$ac_t""yes" 1>&6
2648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2649 cat >> confdefs.h <<EOF
2650 #define $ac_tr_hdr 1
2653 else
2654 echo "$ac_t""no" 1>&6
2656 done
2660 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2661 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2663 case "$host_os" in
2664 *hpux*)
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <shadow.h>
2669 int main() {
2670 struct spwd testme
2671 ; return 0; }
2673 if { (eval echo configure:2674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2674 rm -rf conftest*
2675 ac_cv_header_shadow_h=yes
2676 else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 ac_cv_header_shadow_h=no
2682 rm -f conftest*
2683 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2684 cat >> confdefs.h <<\EOF
2685 #define HAVE_SHADOW_H 1
2690 esac
2691 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2693 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2695 echo "configure:2696: checking for $ac_hdr" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2698 else
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <$ac_hdr>
2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2708 rm -rf conftest*
2709 eval "ac_cv_header_$ac_safe=yes"
2710 else
2711 echo "$ac_err" >&5
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "ac_cv_header_$ac_safe=no"
2717 rm -f conftest*
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2722 cat >> confdefs.h <<EOF
2723 #define $ac_tr_hdr 1
2726 else
2727 echo "$ac_t""no" 1>&6
2729 done
2731 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2735 echo "configure:2736: checking for $ac_hdr" >&5
2736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2737 echo $ac_n "(cached) $ac_c" 1>&6
2738 else
2739 cat > conftest.$ac_ext <<EOF
2740 #line 2741 "configure"
2741 #include "confdefs.h"
2742 #include <$ac_hdr>
2744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2745 { (eval echo configure:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2747 if test -z "$ac_err"; then
2748 rm -rf conftest*
2749 eval "ac_cv_header_$ac_safe=yes"
2750 else
2751 echo "$ac_err" >&5
2752 echo "configure: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 rm -rf conftest*
2755 eval "ac_cv_header_$ac_safe=no"
2757 rm -f conftest*
2759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2760 echo "$ac_t""yes" 1>&6
2761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2762 cat >> confdefs.h <<EOF
2763 #define $ac_tr_hdr 1
2766 else
2767 echo "$ac_t""no" 1>&6
2769 done
2771 for ac_hdr in stropts.h poll.h
2773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2775 echo "configure:2776: checking for $ac_hdr" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 cat > conftest.$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2782 #include <$ac_hdr>
2784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2785 { (eval echo configure:2786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2787 if test -z "$ac_err"; then
2788 rm -rf conftest*
2789 eval "ac_cv_header_$ac_safe=yes"
2790 else
2791 echo "$ac_err" >&5
2792 echo "configure: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 rm -rf conftest*
2795 eval "ac_cv_header_$ac_safe=no"
2797 rm -f conftest*
2799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2802 cat >> confdefs.h <<EOF
2803 #define $ac_tr_hdr 1
2806 else
2807 echo "$ac_t""no" 1>&6
2809 done
2811 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2813 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2814 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2815 echo "configure:2816: checking for $ac_hdr" >&5
2816 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2817 echo $ac_n "(cached) $ac_c" 1>&6
2818 else
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2821 "configure"
2821 #include "confdefs.h"
2822 #include <$ac_hdr>
2824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2828 rm -rf conftest*
2829 eval "ac_cv_header_$ac_safe=yes"
2830 else
2831 echo "$ac_err" >&5
2832 echo "configure: failed program was:" >&5
2833 cat conftest.$ac_ext >&5
2834 rm -rf conftest*
2835 eval "ac_cv_header_$ac_safe=no"
2837 rm -f conftest*
2839 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2840 echo "$ac_t""yes" 1>&6
2841 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2842 cat >> confdefs.h <<EOF
2843 #define $ac_tr_hdr 1
2846 else
2847 echo "$ac_t""no" 1>&6
2849 done
2851 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_hdr" >&5
2856 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 #include <$ac_hdr>
2864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2865 { (eval echo configure:2866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2867 if test -z "$ac_err"; then
2868 rm -rf conftest*
2869 eval "ac_cv_header_$ac_safe=yes"
2870 else
2871 echo "$ac_err" >&5
2872 echo "configure: failed program was:" >&5
2873 cat conftest.$ac_ext >&5
2874 rm -rf conftest*
2875 eval "ac_cv_header_$ac_safe=no"
2877 rm -f conftest*
2879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2880 echo "$ac_t""yes" 1>&6
2881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2882 cat >> confdefs.h <<EOF
2883 #define $ac_tr_hdr 1
2886 else
2887 echo "$ac_t""no" 1>&6
2889 done
2892 # For experimental utmp support (lastlog on some BSD-like systems)
2893 for ac_hdr in utmp.h utmpx.h lastlog.h
2895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2897 echo "configure:2898: checking for $ac_hdr" >&5
2898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2899 echo $ac_n "(cached) $ac_c" 1>&6
2900 else
2901 cat > conftest.$ac_ext <<EOF
2902 #line 2903 "configure"
2903 #include "confdefs.h"
2904 #include <$ac_hdr>
2906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2910 rm -rf conftest*
2911 eval "ac_cv_header_$ac_safe=yes"
2912 else
2913 echo "$ac_err" >&5
2914 echo "configure: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 rm -rf conftest*
2917 eval "ac_cv_header_$ac_safe=no"
2919 rm -f conftest*
2921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2922 echo "$ac_t""yes" 1>&6
2923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2924 cat >> confdefs.h <<EOF
2925 #define $ac_tr_hdr 1
2928 else
2929 echo "$ac_t""no" 1>&6
2931 done
2934 # For quotas on Veritas VxFS filesystems
2935 for ac_hdr in sys/fs/vx_quota.h
2937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2939 echo "configure:2940: checking for $ac_hdr" >&5
2940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2942 else
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include <$ac_hdr>
2948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2949 { (eval echo configure:2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2951 if test -z "$ac_err"; then
2952 rm -rf conftest*
2953 eval "ac_cv_header_$ac_safe=yes"
2954 else
2955 echo "$ac_err" >&5
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -rf conftest*
2959 eval "ac_cv_header_$ac_safe=no"
2961 rm -f conftest*
2963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2964 echo "$ac_t""yes" 1>&6
2965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2966 cat >> confdefs.h <<EOF
2967 #define $ac_tr_hdr 1
2970 else
2971 echo "$ac_t""no" 1>&6
2973 done
2976 # For quotas on Linux XFS filesystems
2977 for ac_hdr in linux/xqm.h
2979 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2980 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2981 echo "configure:2982: checking for $ac_hdr" >&5
2982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2984 else
2985 cat > conftest.$ac_ext <<EOF
2986 #line 2987 "configure"
2987 #include "confdefs.h"
2988 #include <$ac_hdr>
2990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2991 { (eval echo configure:2992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2993 if test -z "$ac_err"; then
2994 rm -rf conftest*
2995 eval "ac_cv_header_$ac_safe=yes"
2996 else
2997 echo "$ac_err" >&5
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 rm -rf conftest*
3001 eval "ac_cv_header_$ac_safe=no"
3003 rm -f conftest*
3005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3008 cat >> confdefs.h <<EOF
3009 #define $ac_tr_hdr 1
3012 else
3013 echo "$ac_t""no" 1>&6
3015 done
3017 for ac_hdr in xfs/xqm.h
3019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_hdr" >&5
3022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #include <$ac_hdr>
3030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3031 { (eval echo configure:3032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3033 if test -z "$ac_err"; then
3034 rm -rf conftest*
3035 eval "ac_cv_header_$ac_safe=yes"
3036 else
3037 echo "$ac_err" >&5
3038 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5
3040 rm -rf conftest*
3041 eval "ac_cv_header_$ac_safe=no"
3043 rm -f conftest*
3045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3048 cat >> confdefs.h <<EOF
3049 #define $ac_tr_hdr 1
3052 else
3053 echo "$ac_t""no" 1>&6
3055 done
3058 echo $ac_n "checking size of int""... $ac_c" 1>&6
3059 echo "configure:3060: checking size of int" >&5
3060 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063 if test "$cross_compiling" = yes; then
3064 ac_cv_sizeof_int=cross
3065 else
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 #include <stdio.h>
3070 int main()
3072 FILE *f=fopen("conftestval", "w");
3073 if (!f) return(1);
3074 fprintf(f, "%d\n", sizeof(int));
3075 return(0);
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3079 then
3080 ac_cv_sizeof_int=`cat conftestval`
3081 else
3082 echo "configure: failed program was:" >&5
3083 cat conftest.$ac_ext >&5
3084 rm -fr conftest*
3085 ac_cv_sizeof_int=0
3087 rm -fr conftest*
3091 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3092 cat >> confdefs.h <<EOF
3093 #define SIZEOF_INT $ac_cv_sizeof_int
3097 echo $ac_n "checking size of long""... $ac_c" 1>&6
3098 echo "configure:3099: checking size of long" >&5
3099 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3101 else
3102 if test "$cross_compiling" = yes; then
3103 ac_cv_sizeof_long=cross
3104 else
3105 cat > conftest.$ac_ext <<EOF
3106 #line 3107 "configure"
3107 #include "confdefs.h"
3108 #include <stdio.h>
3109 int main()
3111 FILE *f=fopen("conftestval", "w");
3112 if (!f) return(1);
3113 fprintf(f, "%d\n", sizeof(long));
3114 return(0);
3117 if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3118 then
3119 ac_cv_sizeof_long=`cat conftestval`
3120 else
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 rm -fr conftest*
3124 ac_cv_sizeof_long=0
3126 rm -fr conftest*
3130 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3131 cat >> confdefs.h <<EOF
3132 #define SIZEOF_LONG $ac_cv_sizeof_long
3136 echo $ac_n "checking size of short""... $ac_c" 1>&6
3137 echo "configure:3138: checking size of short" >&5
3138 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3140 else
3141 if test "$cross_compiling" = yes; then
3142 ac_cv_sizeof_short=cross
3143 else
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <stdio.h>
3148 int main()
3150 FILE *f=fopen("conftestval", "w");
3151 if (!f) return(1);
3152 fprintf(f, "%d\n", sizeof(short));
3153 return(0);
3156 if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3157 then
3158 ac_cv_sizeof_short=`cat conftestval`
3159 else
3160 echo "configure: failed program was:" >&5
3161 cat conftest.$ac_ext >&5
3162 rm -fr conftest*
3163 ac_cv_sizeof_short=0
3165 rm -fr conftest*
3169 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3170 cat >> confdefs.h <<EOF
3171 #define SIZEOF_SHORT $ac_cv_sizeof_short
3176 echo $ac_n "checking for working const""... $ac_c" 1>&6
3177 echo "configure:3178: checking for working const" >&5
3178 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3180 else
3181 cat > conftest.$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3185 int main() {
3187 /* Ultrix mips cc rejects this. */
3188 typedef int charset[2]; const charset x;
3189 /* SunOS 4.1.1 cc rejects this. */
3190 char const *const *ccp;
3191 char **p;
3192 /* NEC SVR4.0.2 mips cc rejects this. */
3193 struct point {int x, y;};
3194 static struct point const zero = {0,0};
3195 /* AIX XL C 1.02.0.0 rejects this.
3196 It does not let you subtract one const X* pointer from another in an arm
3197 of an if-expression whose if-part is not a constant expression */
3198 const char *g = "string";
3199 ccp = &g + (g ? g-g : 0);
3200 /* HPUX 7.0 cc rejects these. */
3201 ++ccp;
3202 p = (char**) ccp;
3203 ccp = (char const *const *) p;
3204 { /* SCO 3.2v4 cc rejects this. */
3205 char *t;
3206 char const *s = 0 ? (char *) 0 : (char const *) 0;
3208 *t++ = 0;
3210 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3211 int x[] = {25, 17};
3212 const int *foo = &x[0];
3213 ++foo;
3215 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3216 typedef const int *iptr;
3217 iptr p = 0;
3218 ++p;
3220 { /* AIX XL C 1.02.0.0 rejects this saying
3221 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3222 struct s { int j; const int *ap[3]; };
3223 struct s *b; b->j = 5;
3225 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3226 const int foo = 10;
3229 ; return 0; }
3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3232 rm -rf conftest*
3233 ac_cv_c_const=yes
3234 else
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 rm -rf conftest*
3238 ac_cv_c_const=no
3240 rm -f conftest*
3243 echo "$ac_t""$ac_cv_c_const" 1>&6
3244 if test $ac_cv_c_const = no; then
3245 cat >> confdefs.h <<\EOF
3246 #define const
3251 echo $ac_n "checking for inline""... $ac_c" 1>&6
3252 echo "configure:3253: checking for inline" >&5
3253 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256 ac_cv_c_inline=no
3257 for ac_kw in inline __inline__ __inline; do
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3262 int main() {
3263 } $ac_kw foo() {
3264 ; return 0; }
3266 if { (eval echo configure:3267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3267 rm -rf conftest*
3268 ac_cv_c_inline=$ac_kw; break
3269 else
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3273 rm -f conftest*
3274 done
3278 echo "$ac_t""$ac_cv_c_inline" 1>&6
3279 case "$ac_cv_c_inline" in
3280 inline | yes) ;;
3281 no) cat >> confdefs.h <<\EOF
3282 #define inline
3285 *) cat >> confdefs.h <<EOF
3286 #define inline $ac_cv_c_inline
3289 esac
3291 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3292 echo "configure:3293: checking whether byte ordering is bigendian" >&5
3293 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3295 else
3296 ac_cv_c_bigendian=unknown
3297 # See if sys/param.h defines the BYTE_ORDER macro.
3298 cat > conftest.$ac_ext <<EOF
3299 #line 3300 "configure"
3300 #include "confdefs.h"
3301 #include <sys/types.h>
3302 #include <sys/param.h>
3303 int main() {
3305 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3306 bogus endian macros
3307 #endif
3308 ; return 0; }
3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3311 rm -rf conftest*
3312 # It does; now see whether it defined to BIG_ENDIAN or not.
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 #include <sys/types.h>
3317 #include <sys/param.h>
3318 int main() {
3320 #if BYTE_ORDER != BIG_ENDIAN
3321 not big endian
3322 #endif
3323 ; return 0; }
3325 if { (eval echo configure:3326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3326 rm -rf conftest*
3327 ac_cv_c_bigendian=yes
3328 else
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 rm -rf conftest*
3332 ac_cv_c_bigendian=no
3334 rm -f conftest*
3335 else
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3339 rm -f conftest*
3340 if test $ac_cv_c_bigendian = unknown; then
3341 if test "$cross_compiling" = yes; then
3342 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3343 else
3344 cat > conftest.$ac_ext <<EOF
3345 #line 3346 "configure"
3346 #include "confdefs.h"
3347 main () {
3348 /* Are we little or big endian? From Harbison&Steele. */
3349 union
3351 long l;
3352 char c[sizeof (long)];
3353 } u;
3354 u.l = 1;
3355 exit (u.c[sizeof (long) - 1] == 1);
3358 if { (eval echo configure:3359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3359 then
3360 ac_cv_c_bigendian=no
3361 else
3362 echo "configure: failed program was:" >&5
3363 cat conftest.$ac_ext >&5
3364 rm -fr conftest*
3365 ac_cv_c_bigendian=yes
3367 rm -fr conftest*
3373 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3374 if test $ac_cv_c_bigendian = yes; then
3375 cat >> confdefs.h <<\EOF
3376 #define WORDS_BIGENDIAN 1
3381 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3382 echo "configure:3383: checking whether char is unsigned" >&5
3383 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3385 else
3386 if test "$GCC" = yes; then
3387 # GCC predefines this symbol on systems where it applies.
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 #ifdef __CHAR_UNSIGNED__
3393 #endif
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "yes" >/dev/null 2>&1; then
3398 rm -rf conftest*
3399 ac_cv_c_char_unsigned=yes
3400 else
3401 rm -rf conftest*
3402 ac_cv_c_char_unsigned=no
3404 rm -f conftest*
3406 else
3407 if test "$cross_compiling" = yes; then
3408 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3409 else
3410 cat > conftest.$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3414 #if !defined(__STDC__) || __STDC__ != 1
3415 #define volatile
3416 #endif
3417 main() {
3418 volatile char c = 255; exit(c < 0);
3421 if { (eval echo configure:3422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3422 then
3423 ac_cv_c_char_unsigned=yes
3424 else
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3427 rm -fr conftest*
3428 ac_cv_c_char_unsigned=no
3430 rm -fr conftest*
3436 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3437 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3438 cat >> confdefs.h <<\EOF
3439 #define __CHAR_UNSIGNED__ 1
3445 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3446 echo "configure:3447: checking return type of signal handlers" >&5
3447 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449 else
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 #include <sys/types.h>
3454 #include <signal.h>
3455 #ifdef signal
3456 #undef signal
3457 #endif
3458 #ifdef __cplusplus
3459 extern "C" void (*signal (int, void (*)(int)))(int);
3460 #else
3461 void (*signal ()) ();
3462 #endif
3464 int main() {
3465 int i;
3466 ; return 0; }
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3469 rm -rf conftest*
3470 ac_cv_type_signal=void
3471 else
3472 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3474 rm -rf conftest*
3475 ac_cv_type_signal=int
3477 rm -f conftest*
3480 echo "$ac_t""$ac_cv_type_signal" 1>&6
3481 cat >> confdefs.h <<EOF
3482 #define RETSIGTYPE $ac_cv_type_signal
3486 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3487 echo "configure:3488: checking for uid_t in sys/types.h" >&5
3488 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3490 else
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <sys/types.h>
3496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3497 egrep "uid_t" >/dev/null 2>&1; then
3498 rm -rf conftest*
3499 ac_cv_type_uid_t=yes
3500 else
3501 rm -rf conftest*
3502 ac_cv_type_uid_t=no
3504 rm -f conftest*
3508 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3509 if test $ac_cv_type_uid_t = no; then
3510 cat >> confdefs.h <<\EOF
3511 #define uid_t int
3514 cat >> confdefs.h <<\EOF
3515 #define gid_t int
3520 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3521 echo "configure:3522: checking for mode_t" >&5
3522 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3523 echo $ac_n "(cached) $ac_c" 1>&6
3524 else
3525 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure"
3527 #include "confdefs.h"
3528 #include <sys/types.h>
3529 #if STDC_HEADERS
3530 #include <stdlib.h>
3531 #include <stddef.h>
3532 #endif
3534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3535 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3536 rm -rf conftest*
3537 ac_cv_type_mode_t=yes
3538 else
3539 rm -rf conftest*
3540 ac_cv_type_mode_t=no
3542 rm -f conftest*
3545 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3546 if test $ac_cv_type_mode_t = no; then
3547 cat >> confdefs.h <<\EOF
3548 #define mode_t int
3553 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3554 echo "configure:3555: checking for off_t" >&5
3555 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3557 else
3558 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 #include <sys/types.h>
3562 #if STDC_HEADERS
3563 #include <stdlib.h>
3564 #include <stddef.h>
3565 #endif
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3569 rm -rf conftest*
3570 ac_cv_type_off_t=yes
3571 else
3572 rm -rf conftest*
3573 ac_cv_type_off_t=no
3575 rm -f conftest*
3578 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3579 if test $ac_cv_type_off_t = no; then
3580 cat >> confdefs.h <<\EOF
3581 #define off_t long
3586 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3587 echo "configure:3588: checking for size_t" >&5
3588 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3590 else
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3594 #include <sys/types.h>
3595 #if STDC_HEADERS
3596 #include <stdlib.h>
3597 #include <stddef.h>
3598 #endif
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3602 rm -rf conftest*
3603 ac_cv_type_size_t=yes
3604 else
3605 rm -rf conftest*
3606 ac_cv_type_size_t=no
3608 rm -f conftest*
3611 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3612 if test $ac_cv_type_size_t = no; then
3613 cat >> confdefs.h <<\EOF
3614 #define size_t unsigned
3619 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3620 echo "configure:3621: checking for pid_t" >&5
3621 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3623 else
3624 cat > conftest.$ac_ext <<EOF
3625 #line 3626 "configure"
3626 #include "confdefs.h"
3627 #include <sys/types.h>
3628 #if STDC_HEADERS
3629 #include <stdlib.h>
3630 #include <stddef.h>
3631 #endif
3633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3634 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3635 rm -rf conftest*
3636 ac_cv_type_pid_t=yes
3637 else
3638 rm -rf conftest*
3639 ac_cv_type_pid_t=no
3641 rm -f conftest*
3644 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3645 if test $ac_cv_type_pid_t = no; then
3646 cat >> confdefs.h <<\EOF
3647 #define pid_t int
3652 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3653 echo "configure:3654: checking for st_rdev in struct stat" >&5
3654 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3656 else
3657 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 #include <sys/types.h>
3661 #include <sys/stat.h>
3662 int main() {
3663 struct stat s; s.st_rdev;
3664 ; return 0; }
3666 if { (eval echo configure:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3667 rm -rf conftest*
3668 ac_cv_struct_st_rdev=yes
3669 else
3670 echo "configure: failed program was:" >&5
3671 cat conftest.$ac_ext >&5
3672 rm -rf conftest*
3673 ac_cv_struct_st_rdev=no
3675 rm -f conftest*
3678 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3679 if test $ac_cv_struct_st_rdev = yes; then
3680 cat >> confdefs.h <<\EOF
3681 #define HAVE_ST_RDEV 1
3686 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3687 echo "configure:3688: checking for d_off in dirent" >&5
3688 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3690 else
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3695 #include <unistd.h>
3696 #include <sys/types.h>
3697 #include <dirent.h>
3698 int main() {
3699 struct dirent d; d.d_off;
3700 ; return 0; }
3702 if { (eval echo configure:3703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 rm -rf conftest*
3704 ac_cv_dirent_d_off=yes
3705 else
3706 echo "configure: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 rm -rf conftest*
3709 ac_cv_dirent_d_off=no
3711 rm -f conftest*
3714 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3715 if test $ac_cv_dirent_d_off = yes; then
3716 cat >> confdefs.h <<\EOF
3717 #define HAVE_DIRENT_D_OFF 1
3722 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3723 echo "configure:3724: checking for ino_t" >&5
3724 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3726 else
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 #include <sys/types.h>
3731 #if STDC_HEADERS
3732 #include <stdlib.h>
3733 #include <stddef.h>
3734 #endif
3736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3737 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3738 rm -rf conftest*
3739 ac_cv_type_ino_t=yes
3740 else
3741 rm -rf conftest*
3742 ac_cv_type_ino_t=no
3744 rm -f conftest*
3747 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3748 if test $ac_cv_type_ino_t = no; then
3749 cat >> confdefs.h <<\EOF
3750 #define ino_t unsigned
3755 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3756 echo "configure:3757: checking for loff_t" >&5
3757 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3758 echo $ac_n "(cached) $ac_c" 1>&6
3759 else
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 #include <sys/types.h>
3764 #if STDC_HEADERS
3765 #include <stdlib.h>
3766 #include <stddef.h>
3767 #endif
3769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3770 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3771 rm -rf conftest*
3772 ac_cv_type_loff_t=yes
3773 else
3774 rm -rf conftest*
3775 ac_cv_type_loff_t=no
3777 rm -f conftest*
3780 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3781 if test $ac_cv_type_loff_t = no; then
3782 cat >> confdefs.h <<\EOF
3783 #define loff_t off_t
3788 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3789 echo "configure:3790: checking for offset_t" >&5
3790 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3791 echo $ac_n "(cached) $ac_c" 1>&6
3792 else
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3796 #include <sys/types.h>
3797 #if STDC_HEADERS
3798 #include <stdlib.h>
3799 #include <stddef.h>
3800 #endif
3802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3804 rm -rf conftest*
3805 ac_cv_type_offset_t=yes
3806 else
3807 rm -rf conftest*
3808 ac_cv_type_offset_t=no
3810 rm -f conftest*
3813 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3814 if test $ac_cv_type_offset_t = no; then
3815 cat >> confdefs.h <<\EOF
3816 #define offset_t loff_t
3821 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3822 echo "configure:3823: checking for ssize_t" >&5
3823 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3824 echo $ac_n "(cached) $ac_c" 1>&6
3825 else
3826 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure"
3828 #include "confdefs.h"
3829 #include <sys/types.h>
3830 #if STDC_HEADERS
3831 #include <stdlib.h>
3832 #include <stddef.h>
3833 #endif
3835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3836 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3837 rm -rf conftest*
3838 ac_cv_type_ssize_t=yes
3839 else
3840 rm -rf conftest*
3841 ac_cv_type_ssize_t=no
3843 rm -f conftest*
3846 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3847 if test $ac_cv_type_ssize_t = no; then
3848 cat >> confdefs.h <<\EOF
3849 #define ssize_t int
3854 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3855 echo "configure:3856: checking for wchar_t" >&5
3856 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3858 else
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 #include <sys/types.h>
3863 #if STDC_HEADERS
3864 #include <stdlib.h>
3865 #include <stddef.h>
3866 #endif
3868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3869 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3870 rm -rf conftest*
3871 ac_cv_type_wchar_t=yes
3872 else
3873 rm -rf conftest*
3874 ac_cv_type_wchar_t=no
3876 rm -f conftest*
3879 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3880 if test $ac_cv_type_wchar_t = no; then
3881 cat >> confdefs.h <<\EOF
3882 #define wchar_t unsigned short
3888 ############################################
3889 # for cups support we need libcups, and a handful of header files
3891 # Check whether --enable-cups or --disable-cups was given.
3892 if test "${enable_cups+set}" = set; then
3893 enableval="$enable_cups"
3898 if test x$enable_cups != xno; then
3899 # Extract the first word of "cups-config", so it can be a program name with args.
3900 set dummy cups-config; ac_word=$2
3901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3902 echo "configure:3903: checking for $ac_word" >&5
3903 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3905 else
3906 case "$CUPS_CONFIG" in
3908 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3910 ?:/*)
3911 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3915 ac_dummy="$PATH"
3916 for ac_dir in $ac_dummy; do
3917 test -z "$ac_dir" && ac_dir=.
3918 if test -f $ac_dir/$ac_word; then
3919 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3920 break
3922 done
3923 IFS="$ac_save_ifs"
3925 esac
3927 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3928 if test -n "$CUPS_CONFIG"; then
3929 echo "$ac_t""$CUPS_CONFIG" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3935 if test "x$CUPS_CONFIG" != x; then
3936 cat >> confdefs.h <<\EOF
3937 #define HAVE_CUPS 1
3940 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3941 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3942 PRINTLIBS="$PRINTLIBS `$CUPS_CONFIG --libs`"
3946 ############################################
3947 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
3948 for ac_func in dlopen
3950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3951 echo "configure:3952: checking for $ac_func" >&5
3952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3953 echo $ac_n "(cached) $ac_c" 1>&6
3954 else
3955 cat > conftest.$ac_ext <<EOF
3956 #line 3957 "configure"
3957 #include "confdefs.h"
3958 /* System header to define __stub macros and hopefully few prototypes,
3959 which can conflict with char $ac_func(); below. */
3960 #include <assert.h>
3961 /* Override any gcc2 internal prototype to avoid an error. */
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3964 char $ac_func();
3966 int main() {
3968 /* The GNU C library defines this for functions which it implements
3969 to always fail with ENOSYS. Some functions are actually named
3970 something starting with __ and the normal name is an alias. */
3971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3972 choke me
3973 #else
3974 $ac_func();
3975 #endif
3977 ; return 0; }
3979 if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 rm -rf conftest*
3981 eval "ac_cv_func_$ac_func=yes"
3982 else
3983 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5
3985 rm -rf conftest*
3986 eval "ac_cv_func_$ac_func=no"
3988 rm -f conftest*
3991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3994 cat >> confdefs.h <<EOF
3995 #define $ac_tr_func 1
3998 else
3999 echo "$ac_t""no" 1>&6
4001 done
4003 if test x"$ac_cv_func_dlopen" = x"no"; then
4004 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4005 echo "configure:4006: checking for dlopen in -ldl" >&5
4006 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4009 else
4010 ac_save_LIBS="$LIBS"
4011 LIBS="-ldl $LIBS"
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 /* We use char because int might match the return type of a gcc2
4017 builtin and then its argument prototype would still apply. */
4018 char dlopen();
4020 int main() {
4021 dlopen()
4022 ; return 0; }
4024 if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025 rm -rf conftest*
4026 eval "ac_cv_lib_$ac_lib_var=yes"
4027 else
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4030 rm -rf conftest*
4031 eval "ac_cv_lib_$ac_lib_var=no"
4033 rm -f conftest*
4034 LIBS="$ac_save_LIBS"
4037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 LIBS="$LIBS -ldl";
4040 cat >> confdefs.h <<\EOF
4041 #define HAVE_DLOPEN 1
4044 else
4045 echo "$ac_t""no" 1>&6
4049 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
4051 ############################################
4052 # check if the compiler can do immediate structures
4053 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
4054 echo "configure:4055: checking for immediate structures" >&5
4055 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4059 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure"
4061 #include "confdefs.h"
4063 #include <stdio.h>
4064 int main() {
4066 typedef struct {unsigned x;} FOOBAR;
4067 #define X_FOOBAR(x) ((FOOBAR) { x })
4068 #define FOO_ONE X_FOOBAR(1)
4069 FOOBAR f = FOO_ONE;
4070 static struct {
4071 FOOBAR y;
4072 } f2[] = {
4073 {FOO_ONE}
4076 ; return 0; }
4078 if { (eval echo configure:4079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4079 rm -rf conftest*
4080 samba_cv_immediate_structures=yes
4081 else
4082 echo "configure: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4084 rm -rf conftest*
4085 samba_cv_immediate_structures=no
4087 rm -f conftest*
4090 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
4091 if test x"$samba_cv_immediate_structures" = x"yes"; then
4092 cat >> confdefs.h <<\EOF
4093 #define HAVE_IMMEDIATE_STRUCTURES 1
4098 ############################################
4099 # check for unix domain sockets
4100 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
4101 echo "configure:4102: checking for unix domain sockets" >&5
4102 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
4103 echo $ac_n "(cached) $ac_c" 1>&6
4104 else
4106 cat > conftest.$ac_ext <<EOF
4107 #line 4108 "configure"
4108 #include "confdefs.h"
4110 #include <sys/types.h>
4111 #include <stdlib.h>
4112 #include <stddef.h>
4113 #include <sys/socket.h>
4114 #include <sys/un.h>
4115 int main() {
4117 struct sockaddr_un sunaddr;
4118 sunaddr.sun_family = AF_UNIX;
4120 ; return 0; }
4122 if { (eval echo configure:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4123 rm -rf conftest*
4124 samba_cv_unixsocket=yes
4125 else
4126 echo "configure: failed program was:" >&5
4127 cat conftest.$ac_ext >&5
4128 rm -rf conftest*
4129 samba_cv_unixsocket=no
4131 rm -f conftest*
4134 echo "$ac_t""$samba_cv_unixsocket" 1>&6
4135 if test x"$samba_cv_unixsocket" = x"yes"; then
4136 cat >> confdefs.h <<\EOF
4137 #define HAVE_UNIXSOCKET 1
4143 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
4144 echo "configure:4145: checking for socklen_t type" >&5
4145 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
4146 echo $ac_n "(cached) $ac_c" 1>&6
4147 else
4149 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4153 #include <sys/types.h>
4154 #if STDC_HEADERS
4155 #include <stdlib.h>
4156 #include <stddef.h>
4157 #endif
4158 #include <sys/socket.h>
4159 int main() {
4160 socklen_t i = 0
4161 ; return 0; }
4163 if { (eval echo configure:4164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4164 rm -rf conftest*
4165 samba_cv_socklen_t=yes
4166 else
4167 echo "configure: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 rm -rf conftest*
4170 samba_cv_socklen_t=no
4172 rm -f conftest*
4175 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4176 if test x"$samba_cv_socklen_t" = x"yes"; then
4177 cat >> confdefs.h <<\EOF
4178 #define HAVE_SOCKLEN_T_TYPE 1
4183 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4184 echo "configure:4185: checking for sig_atomic_t type" >&5
4185 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4186 echo $ac_n "(cached) $ac_c" 1>&6
4187 else
4189 cat > conftest.$ac_ext <<EOF
4190 #line 4191 "configure"
4191 #include "confdefs.h"
4193 #include <sys/types.h>
4194 #if STDC_HEADERS
4195 #include <stdlib.h>
4196 #include <stddef.h>
4197 #endif
4198 #include <signal.h>
4199 int main() {
4200 sig_atomic_t i = 0
4201 ; return 0; }
4203 if { (eval echo configure:4204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4204 rm -rf conftest*
4205 samba_cv_sig_atomic_t=yes
4206 else
4207 echo "configure: failed program was:" >&5
4208 cat conftest.$ac_ext >&5
4209 rm -rf conftest*
4210 samba_cv_sig_atomic_t=no
4212 rm -f conftest*
4215 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4216 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4217 cat >> confdefs.h <<\EOF
4218 #define HAVE_SIG_ATOMIC_T_TYPE 1
4223 # stupid headers have the functions but no declaration. grrrr.
4225 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4226 echo "configure:4227: checking for errno declaration" >&5
4227 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6
4229 else
4231 cat > conftest.$ac_ext <<EOF
4232 #line 4233 "configure"
4233 #include "confdefs.h"
4234 #include <errno.h>
4235 int main() {
4236 int i = (int)errno
4237 ; return 0; }
4239 if { (eval echo configure:4240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4240 rm -rf conftest*
4241 ac_cv_have_errno_decl=yes
4242 else
4243 echo "configure: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4245 rm -rf conftest*
4246 ac_cv_have_errno_decl=no
4248 rm -f conftest*
4251 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4252 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4253 cat >> confdefs.h <<\EOF
4254 #define HAVE_ERRNO_DECL 1
4260 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4261 echo "configure:4262: checking for setresuid declaration" >&5
4262 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4264 else
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4269 #include <unistd.h>
4270 int main() {
4271 int i = (int)setresuid
4272 ; return 0; }
4274 if { (eval echo configure:4275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4275 rm -rf conftest*
4276 ac_cv_have_setresuid_decl=yes
4277 else
4278 echo "configure: failed program was:" >&5
4279 cat conftest.$ac_ext >&5
4280 rm -rf conftest*
4281 ac_cv_have_setresuid_decl=no
4283 rm -f conftest*
4286 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4287 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4288 cat >> confdefs.h <<\EOF
4289 #define HAVE_SETRESUID_DECL 1
4295 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4296 echo "configure:4297: checking for setresgid declaration" >&5
4297 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4298 echo $ac_n "(cached) $ac_c" 1>&6
4299 else
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4304 #include <unistd.h>
4305 int main() {
4306 int i = (int)setresgid
4307 ; return 0; }
4309 if { (eval echo configure:4310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4310 rm -rf conftest*
4311 ac_cv_have_setresgid_decl=yes
4312 else
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4315 rm -rf conftest*
4316 ac_cv_have_setresgid_decl=no
4318 rm -f conftest*
4321 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4322 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4323 cat >> confdefs.h <<\EOF
4324 #define HAVE_SETRESGID_DECL 1
4330 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4331 echo "configure:4332: checking for asprintf declaration" >&5
4332 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4334 else
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 #include <stdio.h>
4340 int main() {
4341 int i = (int)asprintf
4342 ; return 0; }
4344 if { (eval echo configure:4345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4345 rm -rf conftest*
4346 ac_cv_have_asprintf_decl=yes
4347 else
4348 echo "configure: failed program was:" >&5
4349 cat conftest.$ac_ext >&5
4350 rm -rf conftest*
4351 ac_cv_have_asprintf_decl=no
4353 rm -f conftest*
4356 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4357 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4358 cat >> confdefs.h <<\EOF
4359 #define HAVE_ASPRINTF_DECL 1
4365 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4366 echo "configure:4367: checking for vasprintf declaration" >&5
4367 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4368 echo $ac_n "(cached) $ac_c" 1>&6
4369 else
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 #include <stdio.h>
4375 int main() {
4376 int i = (int)vasprintf
4377 ; return 0; }
4379 if { (eval echo configure:4380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4380 rm -rf conftest*
4381 ac_cv_have_vasprintf_decl=yes
4382 else
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4385 rm -rf conftest*
4386 ac_cv_have_vasprintf_decl=no
4388 rm -f conftest*
4391 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4392 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4393 cat >> confdefs.h <<\EOF
4394 #define HAVE_VASPRINTF_DECL 1
4400 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4401 echo "configure:4402: checking for vsnprintf declaration" >&5
4402 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4404 else
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 #include <stdio.h>
4410 int main() {
4411 int i = (int)vsnprintf
4412 ; return 0; }
4414 if { (eval echo configure:4415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4415 rm -rf conftest*
4416 ac_cv_have_vsnprintf_decl=yes
4417 else
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4420 rm -rf conftest*
4421 ac_cv_have_vsnprintf_decl=no
4423 rm -f conftest*
4426 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4427 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4428 cat >> confdefs.h <<\EOF
4429 #define HAVE_VSNPRINTF_DECL 1
4435 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4436 echo "configure:4437: checking for snprintf declaration" >&5
4437 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4439 else
4441 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure"
4443 #include "confdefs.h"
4444 #include <stdio.h>
4445 int main() {
4446 int i = (int)snprintf
4447 ; return 0; }
4449 if { (eval echo configure:4450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4450 rm -rf conftest*
4451 ac_cv_have_snprintf_decl=yes
4452 else
4453 echo "configure: failed program was:" >&5
4454 cat conftest.$ac_ext >&5
4455 rm -rf conftest*
4456 ac_cv_have_snprintf_decl=no
4458 rm -f conftest*
4461 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4462 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4463 cat >> confdefs.h <<\EOF
4464 #define HAVE_SNPRINTF_DECL 1
4470 # and glibc has setresuid under linux but the function does
4471 # nothing until kernel 2.1.44! very dumb.
4472 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4473 echo "configure:4474: checking for real setresuid" >&5
4474 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4475 echo $ac_n "(cached) $ac_c" 1>&6
4476 else
4478 if test "$cross_compiling" = yes; then
4479 samba_cv_have_setresuid=cross
4480 else
4481 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure"
4483 #include "confdefs.h"
4484 #include <errno.h>
4485 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4488 then
4489 samba_cv_have_setresuid=yes
4490 else
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4493 rm -fr conftest*
4494 samba_cv_have_setresuid=no
4496 rm -fr conftest*
4501 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4502 if test x"$samba_cv_have_setresuid" = x"yes"; then
4503 cat >> confdefs.h <<\EOF
4504 #define HAVE_SETRESUID 1
4509 # Do the same check for setresguid...
4511 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4512 echo "configure:4513: checking for real setresgid" >&5
4513 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4515 else
4517 if test "$cross_compiling" = yes; then
4518 samba_cv_have_setresgid=cross
4519 else
4520 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 #include <unistd.h>
4524 #include <errno.h>
4525 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4528 then
4529 samba_cv_have_setresgid=yes
4530 else
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 rm -fr conftest*
4534 samba_cv_have_setresgid=no
4536 rm -fr conftest*
4541 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4542 if test x"$samba_cv_have_setresgid" = x"yes"; then
4543 cat >> confdefs.h <<\EOF
4544 #define HAVE_SETRESGID 1
4549 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4550 echo "configure:4551: checking for 8-bit clean memcmp" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553 else
4554 if test "$cross_compiling" = yes; then
4555 ac_cv_func_memcmp_clean=no
4556 else
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4561 main()
4563 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4564 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4568 if { (eval echo configure:4569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4569 then
4570 ac_cv_func_memcmp_clean=yes
4571 else
4572 echo "configure: failed program was:" >&5
4573 cat conftest.$ac_ext >&5
4574 rm -fr conftest*
4575 ac_cv_func_memcmp_clean=no
4577 rm -fr conftest*
4582 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4583 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4586 ###############################################
4587 # test for where we get crypt() from
4588 for ac_func in crypt
4590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4591 echo "configure:4592: checking for $ac_func" >&5
4592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4593 echo $ac_n "(cached) $ac_c" 1>&6
4594 else
4595 cat > conftest.$ac_ext <<EOF
4596 #line 4597 "configure"
4597 #include "confdefs.h"
4598 /* System header to define __stub macros and hopefully few prototypes,
4599 which can conflict with char $ac_func(); below. */
4600 #include <assert.h>
4601 /* Override any gcc2 internal prototype to avoid an error. */
4602 /* We use char because int might match the return type of a gcc2
4603 builtin and then its argument prototype would still apply. */
4604 char $ac_func();
4606 int main() {
4608 /* The GNU C library defines this for functions which it implements
4609 to always fail with ENOSYS. Some functions are actually named
4610 something starting with __ and the normal name is an alias. */
4611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4612 choke me
4613 #else
4614 $ac_func();
4615 #endif
4617 ; return 0; }
4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4620 rm -rf conftest*
4621 eval "ac_cv_func_$ac_func=yes"
4622 else
4623 echo "configure: failed program was:" >&5
4624 cat conftest.$ac_ext >&5
4625 rm -rf conftest*
4626 eval "ac_cv_func_$ac_func=no"
4628 rm -f conftest*
4631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4632 echo "$ac_t""yes" 1>&6
4633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4634 cat >> confdefs.h <<EOF
4635 #define $ac_tr_func 1
4638 else
4639 echo "$ac_t""no" 1>&6
4641 done
4643 if test x"$ac_cv_func_crypt" = x"no"; then
4644 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4645 echo "configure:4646: checking for crypt in -lcrypt" >&5
4646 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4649 else
4650 ac_save_LIBS="$LIBS"
4651 LIBS="-lcrypt $LIBS"
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4658 char crypt();
4660 int main() {
4661 crypt()
4662 ; return 0; }
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4665 rm -rf conftest*
4666 eval "ac_cv_lib_$ac_lib_var=yes"
4667 else
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4670 rm -rf conftest*
4671 eval "ac_cv_lib_$ac_lib_var=no"
4673 rm -f conftest*
4674 LIBS="$ac_save_LIBS"
4677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 AUTHLIBS="$AUTHLIBS -lcrypt";
4680 cat >> confdefs.h <<\EOF
4681 #define HAVE_CRYPT 1
4684 else
4685 echo "$ac_t""no" 1>&6
4691 ###############################################
4692 # Readline included by default unless explicitly asked not to
4693 test "${with_readline+set}" != "set" && with_readline=yes
4695 # test for where we get readline() from
4696 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4697 echo "configure:4698: checking whether to use readline" >&5
4698 # Check whether --with-readline or --without-readline was given.
4699 if test "${with_readline+set}" = set; then
4700 withval="$with_readline"
4701 case "$with_readline" in
4702 yes)
4703 echo "$ac_t""yes" 1>&6
4705 for ac_hdr in readline.h history.h readline/readline.h
4707 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4708 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4709 echo "configure:4710: checking for $ac_hdr" >&5
4710 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4711 echo $ac_n "(cached) $ac_c" 1>&6
4712 else
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 #include <$ac_hdr>
4718 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4719 { (eval echo configure:4720: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4720 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4721 if test -z "$ac_err"; then
4722 rm -rf conftest*
4723 eval "ac_cv_header_$ac_safe=yes"
4724 else
4725 echo "$ac_err" >&5
4726 echo "configure: failed program was:" >&5
4727 cat conftest.$ac_ext >&5
4728 rm -rf conftest*
4729 eval "ac_cv_header_$ac_safe=no"
4731 rm -f conftest*
4733 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4734 echo "$ac_t""yes" 1>&6
4735 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4736 cat >> confdefs.h <<EOF
4737 #define $ac_tr_hdr 1
4740 else
4741 echo "$ac_t""no" 1>&6
4743 done
4745 for ac_hdr in readline/history.h
4747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_hdr" >&5
4750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4752 else
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 #include <$ac_hdr>
4758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4759 { (eval echo configure:4760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4761 if test -z "$ac_err"; then
4762 rm -rf conftest*
4763 eval "ac_cv_header_$ac_safe=yes"
4764 else
4765 echo "$ac_err" >&5
4766 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5
4768 rm -rf conftest*
4769 eval "ac_cv_header_$ac_safe=no"
4771 rm -f conftest*
4773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4774 echo "$ac_t""yes" 1>&6
4775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4776 cat >> confdefs.h <<EOF
4777 #define $ac_tr_hdr 1
4780 else
4781 echo "$ac_t""no" 1>&6
4783 done
4786 for ac_hdr in readline.h readline/readline.h
4788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4790 echo "configure:4791: checking for $ac_hdr" >&5
4791 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4793 else
4794 cat > conftest.$ac_ext <<EOF
4795 #line 4796 "configure"
4796 #include "confdefs.h"
4797 #include <$ac_hdr>
4799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4800 { (eval echo configure:4801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4802 if test -z "$ac_err"; then
4803 rm -rf conftest*
4804 eval "ac_cv_header_$ac_safe=yes"
4805 else
4806 echo "$ac_err" >&5
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4809 rm -rf conftest*
4810 eval "ac_cv_header_$ac_safe=no"
4812 rm -f conftest*
4814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4815 echo "$ac_t""yes" 1>&6
4816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4817 cat >> confdefs.h <<EOF
4818 #define $ac_tr_hdr 1
4821 for termlib in ncurses curses termcap terminfo termlib; do
4822 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4823 echo "configure:4824: checking for tgetent in -l${termlib}" >&5
4824 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4826 echo $ac_n "(cached) $ac_c" 1>&6
4827 else
4828 ac_save_LIBS="$LIBS"
4829 LIBS="-l${termlib} $LIBS"
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 /* Override any gcc2 internal prototype to avoid an error. */
4834 /* We use char because int might match the return type of a gcc2
4835 builtin and then its argument prototype would still apply. */
4836 char tgetent();
4838 int main() {
4839 tgetent()
4840 ; return 0; }
4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4843 rm -rf conftest*
4844 eval "ac_cv_lib_$ac_lib_var=yes"
4845 else
4846 echo "configure: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 rm -rf conftest*
4849 eval "ac_cv_lib_$ac_lib_var=no"
4851 rm -f conftest*
4852 LIBS="$ac_save_LIBS"
4855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 TERMLIBS="-l${termlib}"; break
4858 else
4859 echo "$ac_t""no" 1>&6
4862 done
4863 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4864 echo "configure:4865: checking for rl_callback_handler_install in -lreadline" >&5
4865 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4867 echo $ac_n "(cached) $ac_c" 1>&6
4868 else
4869 ac_save_LIBS="$LIBS"
4870 LIBS="-lreadline $TERMLIBS $LIBS"
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 /* Override any gcc2 internal prototype to avoid an error. */
4875 /* We use char because int might match the return type of a gcc2
4876 builtin and then its argument prototype would still apply. */
4877 char rl_callback_handler_install();
4879 int main() {
4880 rl_callback_handler_install()
4881 ; return 0; }
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4884 rm -rf conftest*
4885 eval "ac_cv_lib_$ac_lib_var=yes"
4886 else
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4889 rm -rf conftest*
4890 eval "ac_cv_lib_$ac_lib_var=no"
4892 rm -f conftest*
4893 LIBS="$ac_save_LIBS"
4896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4897 echo "$ac_t""yes" 1>&6
4898 TERMLIBS="-lreadline $TERMLIBS"
4899 cat >> confdefs.h <<\EOF
4900 #define HAVE_LIBREADLINE 1
4903 break
4904 else
4905 echo "$ac_t""no" 1>&6
4906 TERMLIBS=
4909 else
4910 echo "$ac_t""no" 1>&6
4912 done
4916 echo "$ac_t""no" 1>&6
4919 echo "$ac_t""yes" 1>&6
4921 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4922 # alternate readline path
4923 _ldflags=${LDFLAGS}
4924 _cppflags=${CPPFLAGS}
4926 # Add additional search path
4927 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4928 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4930 for ac_hdr in readline.h history.h readline/readline.h
4932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_hdr" >&5
4935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4937 else
4938 cat > conftest.$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4941 #include <$ac_hdr>
4943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4944 { (eval echo configure:4945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4946 if test -z "$ac_err"; then
4947 rm -rf conftest*
4948 eval "ac_cv_header_$ac_safe=yes"
4949 else
4950 echo "$ac_err" >&5
4951 echo "configure: failed program was:" >&5
4952 cat conftest.$ac_ext >&5
4953 rm -rf conftest*
4954 eval "ac_cv_header_$ac_safe=no"
4956 rm -f conftest*
4958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4959 echo "$ac_t""yes" 1>&6
4960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4961 cat >> confdefs.h <<EOF
4962 #define $ac_tr_hdr 1
4965 else
4966 echo "$ac_t""no" 1>&6
4968 done
4970 for ac_hdr in readline/history.h
4972 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4973 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4974 echo "configure:4975: checking for $ac_hdr" >&5
4975 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4976 echo $ac_n "(cached) $ac_c" 1>&6
4977 else
4978 cat > conftest.$ac_ext <<EOF
4979 #line 4980 "configure"
4980 #include "confdefs.h"
4981 #include <$ac_hdr>
4983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4984 { (eval echo configure:4985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4986 if test -z "$ac_err"; then
4987 rm -rf conftest*
4988 eval "ac_cv_header_$ac_safe=yes"
4989 else
4990 echo "$ac_err" >&5
4991 echo "configure: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4993 rm -rf conftest*
4994 eval "ac_cv_header_$ac_safe=no"
4996 rm -f conftest*
4998 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5000 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5001 cat >> confdefs.h <<EOF
5002 #define $ac_tr_hdr 1
5005 else
5006 echo "$ac_t""no" 1>&6
5008 done
5011 for ac_hdr in readline.h readline/readline.h
5013 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5014 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5015 echo "configure:5016: checking for $ac_hdr" >&5
5016 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5018 else
5019 cat > conftest.$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5022 #include <$ac_hdr>
5024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5025 { (eval echo configure:5026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5026 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5027 if test -z "$ac_err"; then
5028 rm -rf conftest*
5029 eval "ac_cv_header_$ac_safe=yes"
5030 else
5031 echo "$ac_err" >&5
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 rm -rf conftest*
5035 eval "ac_cv_header_$ac_safe=no"
5037 rm -f conftest*
5039 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5042 cat >> confdefs.h <<EOF
5043 #define $ac_tr_hdr 1
5046 for termlib in ncurses curses termcap terminfo termlib; do
5047 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
5048 echo "configure:5049: checking for tgetent in -l${termlib}" >&5
5049 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
5050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5052 else
5053 ac_save_LIBS="$LIBS"
5054 LIBS="-l${termlib} $LIBS"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5058 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */
5061 char tgetent();
5063 int main() {
5064 tgetent()
5065 ; return 0; }
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 rm -rf conftest*
5069 eval "ac_cv_lib_$ac_lib_var=yes"
5070 else
5071 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 rm -rf conftest*
5074 eval "ac_cv_lib_$ac_lib_var=no"
5076 rm -f conftest*
5077 LIBS="$ac_save_LIBS"
5080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5081 echo "$ac_t""yes" 1>&6
5082 TERMLIBS="-l${termlib}"; break
5083 else
5084 echo "$ac_t""no" 1>&6
5087 done
5088 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
5089 echo "configure:5090: checking for rl_callback_handler_install in -lreadline" >&5
5090 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
5091 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5092 echo $ac_n "(cached) $ac_c" 1>&6
5093 else
5094 ac_save_LIBS="$LIBS"
5095 LIBS="-lreadline $TERMLIBS $LIBS"
5096 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure"
5098 #include "confdefs.h"
5099 /* Override any gcc2 internal prototype to avoid an error. */
5100 /* We use char because int might match the return type of a gcc2
5101 builtin and then its argument prototype would still apply. */
5102 char rl_callback_handler_install();
5104 int main() {
5105 rl_callback_handler_install()
5106 ; return 0; }
5108 if { (eval echo configure:5109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5109 rm -rf conftest*
5110 eval "ac_cv_lib_$ac_lib_var=yes"
5111 else
5112 echo "configure: failed program was:" >&5
5113 cat conftest.$ac_ext >&5
5114 rm -rf conftest*
5115 eval "ac_cv_lib_$ac_lib_var=no"
5117 rm -f conftest*
5118 LIBS="$ac_save_LIBS"
5121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5122 echo "$ac_t""yes" 1>&6
5123 TERMLDFLAGS="-L$with_readline/lib"
5124 TERMCPPFLAGS="-I$with_readline/include"
5125 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
5126 TERMLIBS="-lreadline $TERMLIBS"
5127 cat >> confdefs.h <<\EOF
5128 #define HAVE_LIBREADLINE 1
5131 break
5132 else
5133 echo "$ac_t""no" 1>&6
5134 TERMLIBS= CPPFLAGS=$_cppflags
5137 else
5138 echo "$ac_t""no" 1>&6
5140 done
5143 LDFLAGS=$_ldflags
5145 esac
5146 else
5147 echo "$ac_t""no" 1>&6
5154 # The readline API changed slightly from readline3 to readline4, so
5155 # code will generate warnings on one of them unless we have a few
5156 # special cases.
5157 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5158 echo "configure:5159: checking for rl_completion_matches in -lreadline" >&5
5159 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5162 else
5163 ac_save_LIBS="$LIBS"
5164 LIBS="-lreadline $TERMLIBS $LIBS"
5165 cat > conftest.$ac_ext <<EOF
5166 #line 5167 "configure"
5167 #include "confdefs.h"
5168 /* Override any gcc2 internal prototype to avoid an error. */
5169 /* We use char because int might match the return type of a gcc2
5170 builtin and then its argument prototype would still apply. */
5171 char rl_completion_matches();
5173 int main() {
5174 rl_completion_matches()
5175 ; return 0; }
5177 if { (eval echo configure:5178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5178 rm -rf conftest*
5179 eval "ac_cv_lib_$ac_lib_var=yes"
5180 else
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5183 rm -rf conftest*
5184 eval "ac_cv_lib_$ac_lib_var=no"
5186 rm -f conftest*
5187 LIBS="$ac_save_LIBS"
5190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5191 echo "$ac_t""yes" 1>&6
5192 cat >> confdefs.h <<\EOF
5193 #define HAVE_NEW_LIBREADLINE 1
5196 else
5197 echo "$ac_t""no" 1>&6
5201 # The following test taken from the cvs sources
5202 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5203 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5204 # libsocket.so which has a bad implementation of gethostbyname (it
5205 # only looks in /etc/hosts), so we only look for -lsocket if we need
5206 # it.
5207 for ac_func in connect
5209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5210 echo "configure:5211: checking for $ac_func" >&5
5211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5212 echo $ac_n "(cached) $ac_c" 1>&6
5213 else
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5217 /* System header to define __stub macros and hopefully few prototypes,
5218 which can conflict with char $ac_func(); below. */
5219 #include <assert.h>
5220 /* Override any gcc2 internal prototype to avoid an error. */
5221 /* We use char because int might match the return type of a gcc2
5222 builtin and then its argument prototype would still apply. */
5223 char $ac_func();
5225 int main() {
5227 /* The GNU C library defines this for functions which it implements
5228 to always fail with ENOSYS. Some functions are actually named
5229 something starting with __ and the normal name is an alias. */
5230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5231 choke me
5232 #else
5233 $ac_func();
5234 #endif
5236 ; return 0; }
5238 if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5239 rm -rf conftest*
5240 eval "ac_cv_func_$ac_func=yes"
5241 else
5242 echo "configure: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 rm -rf conftest*
5245 eval "ac_cv_func_$ac_func=no"
5247 rm -f conftest*
5250 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5253 cat >> confdefs.h <<EOF
5254 #define $ac_tr_func 1
5257 else
5258 echo "$ac_t""no" 1>&6
5260 done
5262 if test x"$ac_cv_func_connect" = x"no"; then
5263 case "$LIBS" in
5264 *-lnsl*) ;;
5265 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5266 echo "configure:5267: checking for printf in -lnsl_s" >&5
5267 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5270 else
5271 ac_save_LIBS="$LIBS"
5272 LIBS="-lnsl_s $LIBS"
5273 cat > conftest.$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5276 /* Override any gcc2 internal prototype to avoid an error. */
5277 /* We use char because int might match the return type of a gcc2
5278 builtin and then its argument prototype would still apply. */
5279 char printf();
5281 int main() {
5282 printf()
5283 ; return 0; }
5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286 rm -rf conftest*
5287 eval "ac_cv_lib_$ac_lib_var=yes"
5288 else
5289 echo "configure: failed program was:" >&5
5290 cat conftest.$ac_ext >&5
5291 rm -rf conftest*
5292 eval "ac_cv_lib_$ac_lib_var=no"
5294 rm -f conftest*
5295 LIBS="$ac_save_LIBS"
5298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5302 cat >> confdefs.h <<EOF
5303 #define $ac_tr_lib 1
5306 LIBS="-lnsl_s $LIBS"
5308 else
5309 echo "$ac_t""no" 1>&6
5312 esac
5313 case "$LIBS" in
5314 *-lnsl*) ;;
5315 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5316 echo "configure:5317: checking for printf in -lnsl" >&5
5317 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5319 echo $ac_n "(cached) $ac_c" 1>&6
5320 else
5321 ac_save_LIBS="$LIBS"
5322 LIBS="-lnsl $LIBS"
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5326 /* Override any gcc2 internal prototype to avoid an error. */
5327 /* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5329 char printf();
5331 int main() {
5332 printf()
5333 ; return 0; }
5335 if { (eval echo configure:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5336 rm -rf conftest*
5337 eval "ac_cv_lib_$ac_lib_var=yes"
5338 else
5339 echo "configure: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5341 rm -rf conftest*
5342 eval "ac_cv_lib_$ac_lib_var=no"
5344 rm -f conftest*
5345 LIBS="$ac_save_LIBS"
5348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5349 echo "$ac_t""yes" 1>&6
5350 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5351 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5352 cat >> confdefs.h <<EOF
5353 #define $ac_tr_lib 1
5356 LIBS="-lnsl $LIBS"
5358 else
5359 echo "$ac_t""no" 1>&6
5362 esac
5363 case "$LIBS" in
5364 *-lsocket*) ;;
5365 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5366 echo "configure:5367: checking for connect in -lsocket" >&5
5367 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5369 echo $ac_n "(cached) $ac_c" 1>&6
5370 else
5371 ac_save_LIBS="$LIBS"
5372 LIBS="-lsocket $LIBS"
5373 cat > conftest.$ac_ext <<EOF
5374 #line 5375 "configure"
5375 #include "confdefs.h"
5376 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5379 char connect();
5381 int main() {
5382 connect()
5383 ; return 0; }
5385 if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5386 rm -rf conftest*
5387 eval "ac_cv_lib_$ac_lib_var=yes"
5388 else
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5391 rm -rf conftest*
5392 eval "ac_cv_lib_$ac_lib_var=no"
5394 rm -f conftest*
5395 LIBS="$ac_save_LIBS"
5398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5399 echo "$ac_t""yes" 1>&6
5400 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5401 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5402 cat >> confdefs.h <<EOF
5403 #define $ac_tr_lib 1
5406 LIBS="-lsocket $LIBS"
5408 else
5409 echo "$ac_t""no" 1>&6
5412 esac
5413 case "$LIBS" in
5414 *-linet*) ;;
5415 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5416 echo "configure:5417: checking for connect in -linet" >&5
5417 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5420 else
5421 ac_save_LIBS="$LIBS"
5422 LIBS="-linet $LIBS"
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5429 char connect();
5431 int main() {
5432 connect()
5433 ; return 0; }
5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5436 rm -rf conftest*
5437 eval "ac_cv_lib_$ac_lib_var=yes"
5438 else
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5441 rm -rf conftest*
5442 eval "ac_cv_lib_$ac_lib_var=no"
5444 rm -f conftest*
5445 LIBS="$ac_save_LIBS"
5448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5452 cat >> confdefs.h <<EOF
5453 #define $ac_tr_lib 1
5456 LIBS="-linet $LIBS"
5458 else
5459 echo "$ac_t""no" 1>&6
5462 esac
5463 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5464 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5465 # ac_cv_func_connect=yes
5466 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5467 cat >> confdefs.h <<\EOF
5468 #define HAVE_CONNECT 1
5474 ###############################################
5475 # test for where we get get_yp_default_domain() from
5476 for ac_func in yp_get_default_domain
5478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5479 echo "configure:5480: checking for $ac_func" >&5
5480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5482 else
5483 cat > conftest.$ac_ext <<EOF
5484 #line 5485 "configure"
5485 #include "confdefs.h"
5486 /* System header to define __stub macros and hopefully few prototypes,
5487 which can conflict with char $ac_func(); below. */
5488 #include <assert.h>
5489 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5492 char $ac_func();
5494 int main() {
5496 /* The GNU C library defines this for functions which it implements
5497 to always fail with ENOSYS. Some functions are actually named
5498 something starting with __ and the normal name is an alias. */
5499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5500 choke me
5501 #else
5502 $ac_func();
5503 #endif
5505 ; return 0; }
5507 if { (eval echo configure:5508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5508 rm -rf conftest*
5509 eval "ac_cv_func_$ac_func=yes"
5510 else
5511 echo "configure: failed program was:" >&5
5512 cat conftest.$ac_ext >&5
5513 rm -rf conftest*
5514 eval "ac_cv_func_$ac_func=no"
5516 rm -f conftest*
5519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5520 echo "$ac_t""yes" 1>&6
5521 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5522 cat >> confdefs.h <<EOF
5523 #define $ac_tr_func 1
5526 else
5527 echo "$ac_t""no" 1>&6
5529 done
5531 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5532 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5533 echo "configure:5534: checking for yp_get_default_domain in -lnsl" >&5
5534 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5537 else
5538 ac_save_LIBS="$LIBS"
5539 LIBS="-lnsl $LIBS"
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char yp_get_default_domain();
5548 int main() {
5549 yp_get_default_domain()
5550 ; return 0; }
5552 if { (eval echo configure:5553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5553 rm -rf conftest*
5554 eval "ac_cv_lib_$ac_lib_var=yes"
5555 else
5556 echo "configure: failed program was:" >&5
5557 cat conftest.$ac_ext >&5
5558 rm -rf conftest*
5559 eval "ac_cv_lib_$ac_lib_var=no"
5561 rm -f conftest*
5562 LIBS="$ac_save_LIBS"
5565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5566 echo "$ac_t""yes" 1>&6
5567 LIBS="$LIBS -lnsl";
5568 cat >> confdefs.h <<\EOF
5569 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5572 else
5573 echo "$ac_t""no" 1>&6
5578 # Check if we have execl, if not we need to compile smbrun.
5579 for ac_func in execl
5581 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5582 echo "configure:5583: checking for $ac_func" >&5
5583 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5585 else
5586 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5589 /* System header to define __stub macros and hopefully few prototypes,
5590 which can conflict with char $ac_func(); below. */
5591 #include <assert.h>
5592 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5595 char $ac_func();
5597 int main() {
5599 /* The GNU C library defines this for functions which it implements
5600 to always fail with ENOSYS. Some functions are actually named
5601 something starting with __ and the normal name is an alias. */
5602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5603 choke me
5604 #else
5605 $ac_func();
5606 #endif
5608 ; return 0; }
5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5611 rm -rf conftest*
5612 eval "ac_cv_func_$ac_func=yes"
5613 else
5614 echo "configure: failed program was:" >&5
5615 cat conftest.$ac_ext >&5
5616 rm -rf conftest*
5617 eval "ac_cv_func_$ac_func=no"
5619 rm -f conftest*
5622 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5623 echo "$ac_t""yes" 1>&6
5624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5625 cat >> confdefs.h <<EOF
5626 #define $ac_tr_func 1
5629 else
5630 echo "$ac_t""no" 1>&6
5632 done
5634 if test x"$ac_cv_func_execl" = x"no"; then
5635 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbrun\$(EXEEXT)"
5638 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5640 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5641 echo "configure:5642: checking for $ac_func" >&5
5642 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5643 echo $ac_n "(cached) $ac_c" 1>&6
5644 else
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5648 /* System header to define __stub macros and hopefully few prototypes,
5649 which can conflict with char $ac_func(); below. */
5650 #include <assert.h>
5651 /* Override any gcc2 internal prototype to avoid an error. */
5652 /* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5654 char $ac_func();
5656 int main() {
5658 /* The GNU C library defines this for functions which it implements
5659 to always fail with ENOSYS. Some functions are actually named
5660 something starting with __ and the normal name is an alias. */
5661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5662 choke me
5663 #else
5664 $ac_func();
5665 #endif
5667 ; return 0; }
5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5670 rm -rf conftest*
5671 eval "ac_cv_func_$ac_func=yes"
5672 else
5673 echo "configure: failed program was:" >&5
5674 cat conftest.$ac_ext >&5
5675 rm -rf conftest*
5676 eval "ac_cv_func_$ac_func=no"
5678 rm -f conftest*
5681 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5684 cat >> confdefs.h <<EOF
5685 #define $ac_tr_func 1
5688 else
5689 echo "$ac_t""no" 1>&6
5691 done
5693 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5696 echo "configure:5697: checking for $ac_func" >&5
5697 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5698 echo $ac_n "(cached) $ac_c" 1>&6
5699 else
5700 cat > conftest.$ac_ext <<EOF
5701 #line 5702 "configure"
5702 #include "confdefs.h"
5703 /* System header to define __stub macros and hopefully few prototypes,
5704 which can conflict with char $ac_func(); below. */
5705 #include <assert.h>
5706 /* Override any gcc2 internal prototype to avoid an error. */
5707 /* We use char because int might match the return type of a gcc2
5708 builtin and then its argument prototype would still apply. */
5709 char $ac_func();
5711 int main() {
5713 /* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5717 choke me
5718 #else
5719 $ac_func();
5720 #endif
5722 ; return 0; }
5724 if { (eval echo configure:5725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 rm -rf conftest*
5726 eval "ac_cv_func_$ac_func=yes"
5727 else
5728 echo "configure: failed program was:" >&5
5729 cat conftest.$ac_ext >&5
5730 rm -rf conftest*
5731 eval "ac_cv_func_$ac_func=no"
5733 rm -f conftest*
5736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5737 echo "$ac_t""yes" 1>&6
5738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5739 cat >> confdefs.h <<EOF
5740 #define $ac_tr_func 1
5743 else
5744 echo "$ac_t""no" 1>&6
5746 done
5748 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5751 echo "configure:5752: checking for $ac_func" >&5
5752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5753 echo $ac_n "(cached) $ac_c" 1>&6
5754 else
5755 cat > conftest.$ac_ext <<EOF
5756 #line 5757 "configure"
5757 #include "confdefs.h"
5758 /* System header to define __stub macros and hopefully few prototypes,
5759 which can conflict with char $ac_func(); below. */
5760 #include <assert.h>
5761 /* Override any gcc2 internal prototype to avoid an error. */
5762 /* We use char because int might match the return type of a gcc2
5763 builtin and then its argument prototype would still apply. */
5764 char $ac_func();
5766 int main() {
5768 /* The GNU C library defines this for functions which it implements
5769 to always fail with ENOSYS. Some functions are actually named
5770 something starting with __ and the normal name is an alias. */
5771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5772 choke me
5773 #else
5774 $ac_func();
5775 #endif
5777 ; return 0; }
5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5780 rm -rf conftest*
5781 eval "ac_cv_func_$ac_func=yes"
5782 else
5783 echo "configure: failed program was:" >&5
5784 cat conftest.$ac_ext >&5
5785 rm -rf conftest*
5786 eval "ac_cv_func_$ac_func=no"
5788 rm -f conftest*
5791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5792 echo "$ac_t""yes" 1>&6
5793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5794 cat >> confdefs.h <<EOF
5795 #define $ac_tr_func 1
5798 else
5799 echo "$ac_t""no" 1>&6
5801 done
5803 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5806 echo "configure:5807: checking for $ac_func" >&5
5807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5808 echo $ac_n "(cached) $ac_c" 1>&6
5809 else
5810 cat > conftest.$ac_ext <<EOF
5811 #line 5812 "configure"
5812 #include "confdefs.h"
5813 /* System header to define __stub macros and hopefully few prototypes,
5814 which can conflict with char $ac_func(); below. */
5815 #include <assert.h>
5816 /* Override any gcc2 internal prototype to avoid an error. */
5817 /* We use char because int might match the return type of a gcc2
5818 builtin and then its argument prototype would still apply. */
5819 char $ac_func();
5821 int main() {
5823 /* The GNU C library defines this for functions which it implements
5824 to always fail with ENOSYS. Some functions are actually named
5825 something starting with __ and the normal name is an alias. */
5826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5827 choke me
5828 #else
5829 $ac_func();
5830 #endif
5832 ; return 0; }
5834 if { (eval echo configure:5835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5835 rm -rf conftest*
5836 eval "ac_cv_func_$ac_func=yes"
5837 else
5838 echo "configure: failed program was:" >&5
5839 cat conftest.$ac_ext >&5
5840 rm -rf conftest*
5841 eval "ac_cv_func_$ac_func=no"
5843 rm -f conftest*
5846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5847 echo "$ac_t""yes" 1>&6
5848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5849 cat >> confdefs.h <<EOF
5850 #define $ac_tr_func 1
5853 else
5854 echo "$ac_t""no" 1>&6
5856 done
5858 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5861 echo "configure:5862: checking for $ac_func" >&5
5862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5863 echo $ac_n "(cached) $ac_c" 1>&6
5864 else
5865 cat > conftest.$ac_ext <<EOF
5866 #line 5867 "configure"
5867 #include "confdefs.h"
5868 /* System header to define __stub macros and hopefully few prototypes,
5869 which can conflict with char $ac_func(); below. */
5870 #include <assert.h>
5871 /* Override any gcc2 internal prototype to avoid an error. */
5872 /* We use char because int might match the return type of a gcc2
5873 builtin and then its argument prototype would still apply. */
5874 char $ac_func();
5876 int main() {
5878 /* The GNU C library defines this for functions which it implements
5879 to always fail with ENOSYS. Some functions are actually named
5880 something starting with __ and the normal name is an alias. */
5881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5882 choke me
5883 #else
5884 $ac_func();
5885 #endif
5887 ; return 0; }
5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5890 rm -rf conftest*
5891 eval "ac_cv_func_$ac_func=yes"
5892 else
5893 echo "configure: failed program was:" >&5
5894 cat conftest.$ac_ext >&5
5895 rm -rf conftest*
5896 eval "ac_cv_func_$ac_func=no"
5898 rm -f conftest*
5901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5902 echo "$ac_t""yes" 1>&6
5903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5904 cat >> confdefs.h <<EOF
5905 #define $ac_tr_func 1
5908 else
5909 echo "$ac_t""no" 1>&6
5911 done
5913 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5915 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5916 echo "configure:5917: checking for $ac_func" >&5
5917 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5918 echo $ac_n "(cached) $ac_c" 1>&6
5919 else
5920 cat > conftest.$ac_ext <<EOF
5921 #line 5922 "configure"
5922 #include "confdefs.h"
5923 /* System header to define __stub macros and hopefully few prototypes,
5924 which can conflict with char $ac_func(); below. */
5925 #include <assert.h>
5926 /* Override any gcc2 internal prototype to avoid an error. */
5927 /* We use char because int might match the return type of a gcc2
5928 builtin and then its argument prototype would still apply. */
5929 char $ac_func();
5931 int main() {
5933 /* The GNU C library defines this for functions which it implements
5934 to always fail with ENOSYS. Some functions are actually named
5935 something starting with __ and the normal name is an alias. */
5936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5937 choke me
5938 #else
5939 $ac_func();
5940 #endif
5942 ; return 0; }
5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 rm -rf conftest*
5946 eval "ac_cv_func_$ac_func=yes"
5947 else
5948 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5950 rm -rf conftest*
5951 eval "ac_cv_func_$ac_func=no"
5953 rm -f conftest*
5956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5957 echo "$ac_t""yes" 1>&6
5958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5959 cat >> confdefs.h <<EOF
5960 #define $ac_tr_func 1
5963 else
5964 echo "$ac_t""no" 1>&6
5966 done
5968 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5971 echo "configure:5972: checking for $ac_func" >&5
5972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5974 else
5975 cat > conftest.$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5978 /* System header to define __stub macros and hopefully few prototypes,
5979 which can conflict with char $ac_func(); below. */
5980 #include <assert.h>
5981 /* Override any gcc2 internal prototype to avoid an error. */
5982 /* We use char because int might match the return type of a gcc2
5983 builtin and then its argument prototype would still apply. */
5984 char $ac_func();
5986 int main() {
5988 /* The GNU C library defines this for functions which it implements
5989 to always fail with ENOSYS. Some functions are actually named
5990 something starting with __ and the normal name is an alias. */
5991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5992 choke me
5993 #else
5994 $ac_func();
5995 #endif
5997 ; return 0; }
5999 if { (eval echo configure:6000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6000 rm -rf conftest*
6001 eval "ac_cv_func_$ac_func=yes"
6002 else
6003 echo "configure: failed program was:" >&5
6004 cat conftest.$ac_ext >&5
6005 rm -rf conftest*
6006 eval "ac_cv_func_$ac_func=no"
6008 rm -f conftest*
6011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6012 echo "$ac_t""yes" 1>&6
6013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6014 cat >> confdefs.h <<EOF
6015 #define $ac_tr_func 1
6018 else
6019 echo "$ac_t""no" 1>&6
6021 done
6023 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
6025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6026 echo "configure:6027: checking for $ac_func" >&5
6027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6028 echo $ac_n "(cached) $ac_c" 1>&6
6029 else
6030 cat > conftest.$ac_ext <<EOF
6031 #line 6032 "configure"
6032 #include "confdefs.h"
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func(); below. */
6035 #include <assert.h>
6036 /* Override any gcc2 internal prototype to avoid an error. */
6037 /* We use char because int might match the return type of a gcc2
6038 builtin and then its argument prototype would still apply. */
6039 char $ac_func();
6041 int main() {
6043 /* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6047 choke me
6048 #else
6049 $ac_func();
6050 #endif
6052 ; return 0; }
6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6055 rm -rf conftest*
6056 eval "ac_cv_func_$ac_func=yes"
6057 else
6058 echo "configure: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6060 rm -rf conftest*
6061 eval "ac_cv_func_$ac_func=no"
6063 rm -f conftest*
6066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6067 echo "$ac_t""yes" 1>&6
6068 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6069 cat >> confdefs.h <<EOF
6070 #define $ac_tr_func 1
6073 else
6074 echo "$ac_t""no" 1>&6
6076 done
6078 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
6080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6081 echo "configure:6082: checking for $ac_func" >&5
6082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6083 echo $ac_n "(cached) $ac_c" 1>&6
6084 else
6085 cat > conftest.$ac_ext <<EOF
6086 #line 6087 "configure"
6087 #include "confdefs.h"
6088 /* System header to define __stub macros and hopefully few prototypes,
6089 which can conflict with char $ac_func(); below. */
6090 #include <assert.h>
6091 /* Override any gcc2 internal prototype to avoid an error. */
6092 /* We use char because int might match the return type of a gcc2
6093 builtin and then its argument prototype would still apply. */
6094 char $ac_func();
6096 int main() {
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6102 choke me
6103 #else
6104 $ac_func();
6105 #endif
6107 ; return 0; }
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6110 rm -rf conftest*
6111 eval "ac_cv_func_$ac_func=yes"
6112 else
6113 echo "configure: failed program was:" >&5
6114 cat conftest.$ac_ext >&5
6115 rm -rf conftest*
6116 eval "ac_cv_func_$ac_func=no"
6118 rm -f conftest*
6121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6124 cat >> confdefs.h <<EOF
6125 #define $ac_tr_func 1
6128 else
6129 echo "$ac_t""no" 1>&6
6131 done
6133 for ac_func in syslog vsyslog getgrouplist timegm
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6139 else
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6145 #include <assert.h>
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char $ac_func();
6151 int main() {
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 choke me
6158 #else
6159 $ac_func();
6160 #endif
6162 ; return 0; }
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 rm -rf conftest*
6166 eval "ac_cv_func_$ac_func=yes"
6167 else
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 rm -rf conftest*
6171 eval "ac_cv_func_$ac_func=no"
6173 rm -f conftest*
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h <<EOF
6180 #define $ac_tr_func 1
6183 else
6184 echo "$ac_t""no" 1>&6
6186 done
6188 # setbuffer, shmget, shm_open are needed for smbtorture
6189 for ac_func in setbuffer shmget shm_open
6191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6192 echo "configure:6193: checking for $ac_func" >&5
6193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6194 echo $ac_n "(cached) $ac_c" 1>&6
6195 else
6196 cat > conftest.$ac_ext <<EOF
6197 #line 6198 "configure"
6198 #include "confdefs.h"
6199 /* System header to define __stub macros and hopefully few prototypes,
6200 which can conflict with char $ac_func(); below. */
6201 #include <assert.h>
6202 /* Override any gcc2 internal prototype to avoid an error. */
6203 /* We use char because int might match the return type of a gcc2
6204 builtin and then its argument prototype would still apply. */
6205 char $ac_func();
6207 int main() {
6209 /* The GNU C library defines this for functions which it implements
6210 to always fail with ENOSYS. Some functions are actually named
6211 something starting with __ and the normal name is an alias. */
6212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6213 choke me
6214 #else
6215 $ac_func();
6216 #endif
6218 ; return 0; }
6220 if { (eval echo configure:6221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6221 rm -rf conftest*
6222 eval "ac_cv_func_$ac_func=yes"
6223 else
6224 echo "configure: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6226 rm -rf conftest*
6227 eval "ac_cv_func_$ac_func=no"
6229 rm -f conftest*
6232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6233 echo "$ac_t""yes" 1>&6
6234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6235 cat >> confdefs.h <<EOF
6236 #define $ac_tr_func 1
6239 else
6240 echo "$ac_t""no" 1>&6
6242 done
6245 # syscall() is needed for smbwrapper.
6246 for ac_func in syscall
6248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6249 echo "configure:6250: checking for $ac_func" >&5
6250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6251 echo $ac_n "(cached) $ac_c" 1>&6
6252 else
6253 cat > conftest.$ac_ext <<EOF
6254 #line 6255 "configure"
6255 #include "confdefs.h"
6256 /* System header to define __stub macros and hopefully few prototypes,
6257 which can conflict with char $ac_func(); below. */
6258 #include <assert.h>
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6262 char $ac_func();
6264 int main() {
6266 /* The GNU C library defines this for functions which it implements
6267 to always fail with ENOSYS. Some functions are actually named
6268 something starting with __ and the normal name is an alias. */
6269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6270 choke me
6271 #else
6272 $ac_func();
6273 #endif
6275 ; return 0; }
6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6278 rm -rf conftest*
6279 eval "ac_cv_func_$ac_func=yes"
6280 else
6281 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6283 rm -rf conftest*
6284 eval "ac_cv_func_$ac_func=no"
6286 rm -f conftest*
6289 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6290 echo "$ac_t""yes" 1>&6
6291 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6292 cat >> confdefs.h <<EOF
6293 #define $ac_tr_func 1
6296 else
6297 echo "$ac_t""no" 1>&6
6299 done
6302 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6305 echo "configure:6306: checking for $ac_func" >&5
6306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6307 echo $ac_n "(cached) $ac_c" 1>&6
6308 else
6309 cat > conftest.$ac_ext <<EOF
6310 #line 6311 "configure"
6311 #include "confdefs.h"
6312 /* System header to define __stub macros and hopefully few prototypes,
6313 which can conflict with char $ac_func(); below. */
6314 #include <assert.h>
6315 /* Override any gcc2 internal prototype to avoid an error. */
6316 /* We use char because int might match the return type of a gcc2
6317 builtin and then its argument prototype would still apply. */
6318 char $ac_func();
6320 int main() {
6322 /* The GNU C library defines this for functions which it implements
6323 to always fail with ENOSYS. Some functions are actually named
6324 something starting with __ and the normal name is an alias. */
6325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6326 choke me
6327 #else
6328 $ac_func();
6329 #endif
6331 ; return 0; }
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 rm -rf conftest*
6335 eval "ac_cv_func_$ac_func=yes"
6336 else
6337 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6339 rm -rf conftest*
6340 eval "ac_cv_func_$ac_func=no"
6342 rm -f conftest*
6345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6346 echo "$ac_t""yes" 1>&6
6347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6348 cat >> confdefs.h <<EOF
6349 #define $ac_tr_func 1
6352 else
6353 echo "$ac_t""no" 1>&6
6355 done
6357 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6360 echo "configure:6361: checking for $ac_func" >&5
6361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6362 echo $ac_n "(cached) $ac_c" 1>&6
6363 else
6364 cat > conftest.$ac_ext <<EOF
6365 #line 6366 "configure"
6366 #include "confdefs.h"
6367 /* System header to define __stub macros and hopefully few prototypes,
6368 which can conflict with char $ac_func(); below. */
6369 #include <assert.h>
6370 /* Override any gcc2 internal prototype to avoid an error. */
6371 /* We use char because int might match the return type of a gcc2
6372 builtin and then its argument prototype would still apply. */
6373 char $ac_func();
6375 int main() {
6377 /* The GNU C library defines this for functions which it implements
6378 to always fail with ENOSYS. Some functions are actually named
6379 something starting with __ and the normal name is an alias. */
6380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6381 choke me
6382 #else
6383 $ac_func();
6384 #endif
6386 ; return 0; }
6388 if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6389 rm -rf conftest*
6390 eval "ac_cv_func_$ac_func=yes"
6391 else
6392 echo "configure: failed program was:" >&5
6393 cat conftest.$ac_ext >&5
6394 rm -rf conftest*
6395 eval "ac_cv_func_$ac_func=no"
6397 rm -f conftest*
6400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6403 cat >> confdefs.h <<EOF
6404 #define $ac_tr_func 1
6407 else
6408 echo "$ac_t""no" 1>&6
6410 done
6412 for ac_func in __getcwd _getcwd
6414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_func" >&5
6416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6418 else
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* System header to define __stub macros and hopefully few prototypes,
6423 which can conflict with char $ac_func(); below. */
6424 #include <assert.h>
6425 /* Override any gcc2 internal prototype to avoid an error. */
6426 /* We use char because int might match the return type of a gcc2
6427 builtin and then its argument prototype would still apply. */
6428 char $ac_func();
6430 int main() {
6432 /* The GNU C library defines this for functions which it implements
6433 to always fail with ENOSYS. Some functions are actually named
6434 something starting with __ and the normal name is an alias. */
6435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6436 choke me
6437 #else
6438 $ac_func();
6439 #endif
6441 ; return 0; }
6443 if { (eval echo configure:6444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6444 rm -rf conftest*
6445 eval "ac_cv_func_$ac_func=yes"
6446 else
6447 echo "configure: failed program was:" >&5
6448 cat conftest.$ac_ext >&5
6449 rm -rf conftest*
6450 eval "ac_cv_func_$ac_func=no"
6452 rm -f conftest*
6455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6456 echo "$ac_t""yes" 1>&6
6457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6458 cat >> confdefs.h <<EOF
6459 #define $ac_tr_func 1
6462 else
6463 echo "$ac_t""no" 1>&6
6465 done
6467 for ac_func in __xstat __fxstat __lxstat
6469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6470 echo "configure:6471: checking for $ac_func" >&5
6471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6473 else
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 /* System header to define __stub macros and hopefully few prototypes,
6478 which can conflict with char $ac_func(); below. */
6479 #include <assert.h>
6480 /* Override any gcc2 internal prototype to avoid an error. */
6481 /* We use char because int might match the return type of a gcc2
6482 builtin and then its argument prototype would still apply. */
6483 char $ac_func();
6485 int main() {
6487 /* The GNU C library defines this for functions which it implements
6488 to always fail with ENOSYS. Some functions are actually named
6489 something starting with __ and the normal name is an alias. */
6490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6491 choke me
6492 #else
6493 $ac_func();
6494 #endif
6496 ; return 0; }
6498 if { (eval echo configure:6499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6499 rm -rf conftest*
6500 eval "ac_cv_func_$ac_func=yes"
6501 else
6502 echo "configure: failed program was:" >&5
6503 cat conftest.$ac_ext >&5
6504 rm -rf conftest*
6505 eval "ac_cv_func_$ac_func=no"
6507 rm -f conftest*
6510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6513 cat >> confdefs.h <<EOF
6514 #define $ac_tr_func 1
6517 else
6518 echo "$ac_t""no" 1>&6
6520 done
6522 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6525 echo "configure:6526: checking for $ac_func" >&5
6526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6528 else
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6532 /* System header to define __stub macros and hopefully few prototypes,
6533 which can conflict with char $ac_func(); below. */
6534 #include <assert.h>
6535 /* Override any gcc2 internal prototype to avoid an error. */
6536 /* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6538 char $ac_func();
6540 int main() {
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6546 choke me
6547 #else
6548 $ac_func();
6549 #endif
6551 ; return 0; }
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6554 rm -rf conftest*
6555 eval "ac_cv_func_$ac_func=yes"
6556 else
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6559 rm -rf conftest*
6560 eval "ac_cv_func_$ac_func=no"
6562 rm -f conftest*
6565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6568 cat >> confdefs.h <<EOF
6569 #define $ac_tr_func 1
6572 else
6573 echo "$ac_t""no" 1>&6
6575 done
6577 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_func" >&5
6581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6583 else
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char $ac_func(); below. */
6589 #include <assert.h>
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6593 char $ac_func();
6595 int main() {
6597 /* The GNU C library defines this for functions which it implements
6598 to always fail with ENOSYS. Some functions are actually named
6599 something starting with __ and the normal name is an alias. */
6600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6601 choke me
6602 #else
6603 $ac_func();
6604 #endif
6606 ; return 0; }
6608 if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6609 rm -rf conftest*
6610 eval "ac_cv_func_$ac_func=yes"
6611 else
6612 echo "configure: failed program was:" >&5
6613 cat conftest.$ac_ext >&5
6614 rm -rf conftest*
6615 eval "ac_cv_func_$ac_func=no"
6617 rm -f conftest*
6620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6621 echo "$ac_t""yes" 1>&6
6622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6623 cat >> confdefs.h <<EOF
6624 #define $ac_tr_func 1
6627 else
6628 echo "$ac_t""no" 1>&6
6630 done
6632 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6635 echo "configure:6636: checking for $ac_func" >&5
6636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6638 else
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
6642 /* System header to define __stub macros and hopefully few prototypes,
6643 which can conflict with char $ac_func(); below. */
6644 #include <assert.h>
6645 /* Override any gcc2 internal prototype to avoid an error. */
6646 /* We use char because int might match the return type of a gcc2
6647 builtin and then its argument prototype would still apply. */
6648 char $ac_func();
6650 int main() {
6652 /* The GNU C library defines this for functions which it implements
6653 to always fail with ENOSYS. Some functions are actually named
6654 something starting with __ and the normal name is an alias. */
6655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6656 choke me
6657 #else
6658 $ac_func();
6659 #endif
6661 ; return 0; }
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 rm -rf conftest*
6665 eval "ac_cv_func_$ac_func=yes"
6666 else
6667 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 rm -rf conftest*
6670 eval "ac_cv_func_$ac_func=no"
6672 rm -f conftest*
6675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6676 echo "$ac_t""yes" 1>&6
6677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6678 cat >> confdefs.h <<EOF
6679 #define $ac_tr_func 1
6682 else
6683 echo "$ac_t""no" 1>&6
6685 done
6687 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6690 echo "configure:6691: checking for $ac_func" >&5
6691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6693 else
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6697 /* System header to define __stub macros and hopefully few prototypes,
6698 which can conflict with char $ac_func(); below. */
6699 #include <assert.h>
6700 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */
6703 char $ac_func();
6705 int main() {
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 choke me
6712 #else
6713 $ac_func();
6714 #endif
6716 ; return 0; }
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6719 rm -rf conftest*
6720 eval "ac_cv_func_$ac_func=yes"
6721 else
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6724 rm -rf conftest*
6725 eval "ac_cv_func_$ac_func=no"
6727 rm -f conftest*
6730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6733 cat >> confdefs.h <<EOF
6734 #define $ac_tr_func 1
6737 else
6738 echo "$ac_t""no" 1>&6
6740 done
6742 for ac_func in _write __write _fork __fork
6744 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6745 echo "configure:6746: checking for $ac_func" >&5
6746 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6747 echo $ac_n "(cached) $ac_c" 1>&6
6748 else
6749 cat > conftest.$ac_ext <<EOF
6750 #line 6751 "configure"
6751 #include "confdefs.h"
6752 /* System header to define __stub macros and hopefully few prototypes,
6753 which can conflict with char $ac_func(); below. */
6754 #include <assert.h>
6755 /* Override any gcc2 internal prototype to avoid an error. */
6756 /* We use char because int might match the return type of a gcc2
6757 builtin and then its argument prototype would still apply. */
6758 char $ac_func();
6760 int main() {
6762 /* The GNU C library defines this for functions which it implements
6763 to always fail with ENOSYS. Some functions are actually named
6764 something starting with __ and the normal name is an alias. */
6765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6766 choke me
6767 #else
6768 $ac_func();
6769 #endif
6771 ; return 0; }
6773 if { (eval echo configure:6774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6774 rm -rf conftest*
6775 eval "ac_cv_func_$ac_func=yes"
6776 else
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6779 rm -rf conftest*
6780 eval "ac_cv_func_$ac_func=no"
6782 rm -f conftest*
6785 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6786 echo "$ac_t""yes" 1>&6
6787 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6788 cat >> confdefs.h <<EOF
6789 #define $ac_tr_func 1
6792 else
6793 echo "$ac_t""no" 1>&6
6795 done
6797 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6800 echo "configure:6801: checking for $ac_func" >&5
6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6802 echo $ac_n "(cached) $ac_c" 1>&6
6803 else
6804 cat > conftest.$ac_ext <<EOF
6805 #line 6806 "configure"
6806 #include "confdefs.h"
6807 /* System header to define __stub macros and hopefully few prototypes,
6808 which can conflict with char $ac_func(); below. */
6809 #include <assert.h>
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6813 char $ac_func();
6815 int main() {
6817 /* The GNU C library defines this for functions which it implements
6818 to always fail with ENOSYS. Some functions are actually named
6819 something starting with __ and the normal name is an alias. */
6820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6821 choke me
6822 #else
6823 $ac_func();
6824 #endif
6826 ; return 0; }
6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 rm -rf conftest*
6830 eval "ac_cv_func_$ac_func=yes"
6831 else
6832 echo "configure: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 rm -rf conftest*
6835 eval "ac_cv_func_$ac_func=no"
6837 rm -f conftest*
6840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6841 echo "$ac_t""yes" 1>&6
6842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6843 cat >> confdefs.h <<EOF
6844 #define $ac_tr_func 1
6847 else
6848 echo "$ac_t""no" 1>&6
6850 done
6852 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6855 echo "configure:6856: checking for $ac_func" >&5
6856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6857 echo $ac_n "(cached) $ac_c" 1>&6
6858 else
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6862 /* System header to define __stub macros and hopefully few prototypes,
6863 which can conflict with char $ac_func(); below. */
6864 #include <assert.h>
6865 /* Override any gcc2 internal prototype to avoid an error. */
6866 /* We use char because int might match the return type of a gcc2
6867 builtin and then its argument prototype would still apply. */
6868 char $ac_func();
6870 int main() {
6872 /* The GNU C library defines this for functions which it implements
6873 to always fail with ENOSYS. Some functions are actually named
6874 something starting with __ and the normal name is an alias. */
6875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6876 choke me
6877 #else
6878 $ac_func();
6879 #endif
6881 ; return 0; }
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6884 rm -rf conftest*
6885 eval "ac_cv_func_$ac_func=yes"
6886 else
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6889 rm -rf conftest*
6890 eval "ac_cv_func_$ac_func=no"
6892 rm -f conftest*
6895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6896 echo "$ac_t""yes" 1>&6
6897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6898 cat >> confdefs.h <<EOF
6899 #define $ac_tr_func 1
6902 else
6903 echo "$ac_t""no" 1>&6
6905 done
6907 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6910 echo "configure:6911: checking for $ac_func" >&5
6911 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6913 else
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func(); below. */
6919 #include <assert.h>
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6923 char $ac_func();
6925 int main() {
6927 /* The GNU C library defines this for functions which it implements
6928 to always fail with ENOSYS. Some functions are actually named
6929 something starting with __ and the normal name is an alias. */
6930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6931 choke me
6932 #else
6933 $ac_func();
6934 #endif
6936 ; return 0; }
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6939 rm -rf conftest*
6940 eval "ac_cv_func_$ac_func=yes"
6941 else
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 rm -rf conftest*
6945 eval "ac_cv_func_$ac_func=no"
6947 rm -f conftest*
6950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6951 echo "$ac_t""yes" 1>&6
6952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6953 cat >> confdefs.h <<EOF
6954 #define $ac_tr_func 1
6957 else
6958 echo "$ac_t""no" 1>&6
6960 done
6962 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6964 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6965 echo "configure:6966: checking for $ac_func" >&5
6966 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6968 else
6969 cat > conftest.$ac_ext <<EOF
6970 #line 6971 "configure"
6971 #include "confdefs.h"
6972 /* System header to define __stub macros and hopefully few prototypes,
6973 which can conflict with char $ac_func(); below. */
6974 #include <assert.h>
6975 /* Override any gcc2 internal prototype to avoid an error. */
6976 /* We use char because int might match the return type of a gcc2
6977 builtin and then its argument prototype would still apply. */
6978 char $ac_func();
6980 int main() {
6982 /* The GNU C library defines this for functions which it implements
6983 to always fail with ENOSYS. Some functions are actually named
6984 something starting with __ and the normal name is an alias. */
6985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6986 choke me
6987 #else
6988 $ac_func();
6989 #endif
6991 ; return 0; }
6993 if { (eval echo configure:6994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6994 rm -rf conftest*
6995 eval "ac_cv_func_$ac_func=yes"
6996 else
6997 echo "configure: failed program was:" >&5
6998 cat conftest.$ac_ext >&5
6999 rm -rf conftest*
7000 eval "ac_cv_func_$ac_func=no"
7002 rm -f conftest*
7005 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7006 echo "$ac_t""yes" 1>&6
7007 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7008 cat >> confdefs.h <<EOF
7009 #define $ac_tr_func 1
7012 else
7013 echo "$ac_t""no" 1>&6
7015 done
7017 for ac_func in open64 _open64 __open64 creat64
7019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7020 echo "configure:7021: checking for $ac_func" >&5
7021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7022 echo $ac_n "(cached) $ac_c" 1>&6
7023 else
7024 cat > conftest.$ac_ext <<EOF
7025 #line 7026 "configure"
7026 #include "confdefs.h"
7027 /* System header to define __stub macros and hopefully few prototypes,
7028 which can conflict with char $ac_func(); below. */
7029 #include <assert.h>
7030 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7033 char $ac_func();
7035 int main() {
7037 /* The GNU C library defines this for functions which it implements
7038 to always fail with ENOSYS. Some functions are actually named
7039 something starting with __ and the normal name is an alias. */
7040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7041 choke me
7042 #else
7043 $ac_func();
7044 #endif
7046 ; return 0; }
7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7049 rm -rf conftest*
7050 eval "ac_cv_func_$ac_func=yes"
7051 else
7052 echo "configure: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7054 rm -rf conftest*
7055 eval "ac_cv_func_$ac_func=no"
7057 rm -f conftest*
7060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7061 echo "$ac_t""yes" 1>&6
7062 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7063 cat >> confdefs.h <<EOF
7064 #define $ac_tr_func 1
7067 else
7068 echo "$ac_t""no" 1>&6
7070 done
7074 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
7077 if test x$ac_cv_func_stat64 = xno ; then
7078 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
7079 echo "configure:7080: checking for stat64 in <sys/stat.h>" >&5
7080 cat > conftest.$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7084 #if defined(HAVE_UNISTD_H)
7085 #include <unistd.h>
7086 #endif
7087 #include <sys/stat.h>
7089 int main() {
7090 struct stat64 st64; exit(stat64(".",&st64));
7091 ; return 0; }
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 rm -rf conftest*
7095 ac_cv_func_stat64=yes
7096 else
7097 echo "configure: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 rm -f conftest*
7101 echo "$ac_t""$ac_cv_func_stat64" 1>&6
7102 if test x$ac_cv_func_stat64 = xyes ; then
7103 cat >> confdefs.h <<\EOF
7104 #define HAVE_STAT64 1
7110 if test x$ac_cv_func_lstat64 = xno ; then
7111 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
7112 echo "configure:7113: checking for lstat64 in <sys/stat.h>" >&5
7113 cat > conftest.$ac_ext <<EOF
7114 #line 7115 "configure"
7115 #include "confdefs.h"
7117 #if defined(HAVE_UNISTD_H)
7118 #include <unistd.h>
7119 #endif
7120 #include <sys/stat.h>
7122 int main() {
7123 struct stat64 st64; exit(lstat64(".",&st64));
7124 ; return 0; }
7126 if { (eval echo configure:7127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7127 rm -rf conftest*
7128 ac_cv_func_lstat64=yes
7129 else
7130 echo "configure: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7133 rm -f conftest*
7134 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
7135 if test x$ac_cv_func_lstat64 = xyes ; then
7136 cat >> confdefs.h <<\EOF
7137 #define HAVE_LSTAT64 Whether lstat64() is available
7143 if test x$ac_cv_func_fstat64 = xno ; then
7144 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
7145 echo "configure:7146: checking for fstat64 in <sys/stat.h>" >&5
7146 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure"
7148 #include "confdefs.h"
7150 #if defined(HAVE_UNISTD_H)
7151 #include <unistd.h>
7152 #endif
7153 #include <sys/stat.h>
7155 int main() {
7156 struct stat64 st64; exit(fstat64(0,&st64));
7157 ; return 0; }
7159 if { (eval echo configure:7160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7160 rm -rf conftest*
7161 ac_cv_func_fstat64=yes
7162 else
7163 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7166 rm -f conftest*
7167 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7168 if test x$ac_cv_func_fstat64 = xyes ; then
7169 cat >> confdefs.h <<\EOF
7170 #define HAVE_FSTAT64 1
7176 #####################################
7177 # we might need the resolv library on some systems
7178 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7179 echo "configure:7180: checking for dn_expand in -lresolv" >&5
7180 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7182 echo $ac_n "(cached) $ac_c" 1>&6
7183 else
7184 ac_save_LIBS="$LIBS"
7185 LIBS="-lresolv $LIBS"
7186 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure"
7188 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */
7192 char dn_expand();
7194 int main() {
7195 dn_expand()
7196 ; return 0; }
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 rm -rf conftest*
7200 eval "ac_cv_lib_$ac_lib_var=yes"
7201 else
7202 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7204 rm -rf conftest*
7205 eval "ac_cv_lib_$ac_lib_var=no"
7207 rm -f conftest*
7208 LIBS="$ac_save_LIBS"
7211 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7212 echo "$ac_t""yes" 1>&6
7213 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7214 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7215 cat >> confdefs.h <<EOF
7216 #define $ac_tr_lib 1
7219 LIBS="-lresolv $LIBS"
7221 else
7222 echo "$ac_t""no" 1>&6
7227 # Check for the functions putprpwnam, set_auth_parameters,
7228 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7229 # Needed for OSF1 and HPUX.
7232 case "$LIBS" in
7233 *-lsecurity*) for ac_func in putprpwnam
7235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7236 echo "configure:7237: checking for $ac_func" >&5
7237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7238 echo $ac_n "(cached) $ac_c" 1>&6
7239 else
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7243 /* System header to define __stub macros and hopefully few prototypes,
7244 which can conflict with char $ac_func(); below. */
7245 #include <assert.h>
7246 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7249 char $ac_func();
7251 int main() {
7253 /* The GNU C library defines this for functions which it implements
7254 to always fail with ENOSYS. Some functions are actually named
7255 something starting with __ and the normal name is an alias. */
7256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 choke me
7258 #else
7259 $ac_func();
7260 #endif
7262 ; return 0; }
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 rm -rf conftest*
7266 eval "ac_cv_func_$ac_func=yes"
7267 else
7268 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 rm -rf conftest*
7271 eval "ac_cv_func_$ac_func=no"
7273 rm -f conftest*
7276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7277 echo "$ac_t""yes" 1>&6
7278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7279 cat >> confdefs.h <<EOF
7280 #define $ac_tr_func 1
7283 else
7284 echo "$ac_t""no" 1>&6
7286 done
7288 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7289 echo "configure:7290: checking for putprpwnam in -lsecurity" >&5
7290 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7291 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7292 echo $ac_n "(cached) $ac_c" 1>&6
7293 else
7294 ac_save_LIBS="$LIBS"
7295 LIBS="-lsecurity $LIBS"
7296 cat > conftest.$ac_ext <<EOF
7297 #line 7298 "configure"
7298 #include "confdefs.h"
7299 /* Override any gcc2 internal prototype to avoid an error. */
7300 /* We use char because int might match the return type of a gcc2
7301 builtin and then its argument prototype would still apply. */
7302 char putprpwnam();
7304 int main() {
7305 putprpwnam()
7306 ; return 0; }
7308 if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7309 rm -rf conftest*
7310 eval "ac_cv_lib_$ac_lib_var=yes"
7311 else
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7314 rm -rf conftest*
7315 eval "ac_cv_lib_$ac_lib_var=no"
7317 rm -f conftest*
7318 LIBS="$ac_save_LIBS"
7321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7322 echo "$ac_t""yes" 1>&6
7323 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7324 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7325 cat >> confdefs.h <<EOF
7326 #define $ac_tr_lib 1
7329 LIBS="-lsecurity $LIBS"
7331 else
7332 echo "$ac_t""no" 1>&6
7335 for ac_func in putprpwnam
7337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7338 echo "configure:7339: checking for $ac_func" >&5
7339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7341 else
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7345 /* System header to define __stub macros and hopefully few prototypes,
7346 which can conflict with char $ac_func(); below. */
7347 #include <assert.h>
7348 /* Override any gcc2 internal prototype to avoid an error. */
7349 /* We use char because int might match the return type of a gcc2
7350 builtin and then its argument prototype would still apply. */
7351 char $ac_func();
7353 int main() {
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 choke me
7360 #else
7361 $ac_func();
7362 #endif
7364 ; return 0; }
7366 if { (eval echo configure:7367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7367 rm -rf conftest*
7368 eval "ac_cv_func_$ac_func=yes"
7369 else
7370 echo "configure: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 rm -rf conftest*
7373 eval "ac_cv_func_$ac_func=no"
7375 rm -f conftest*
7378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7379 echo "$ac_t""yes" 1>&6
7380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7381 cat >> confdefs.h <<EOF
7382 #define $ac_tr_func 1
7385 else
7386 echo "$ac_t""no" 1>&6
7388 done
7391 esac
7393 case "$LIBS" in
7394 *-lsec*) for ac_func in putprpwnam
7396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7397 echo "configure:7398: checking for $ac_func" >&5
7398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7399 echo $ac_n "(cached) $ac_c" 1>&6
7400 else
7401 cat > conftest.$ac_ext <<EOF
7402 #line 7403 "configure"
7403 #include "confdefs.h"
7404 /* System header to define __stub macros and hopefully few prototypes,
7405 which can conflict with char $ac_func(); below. */
7406 #include <assert.h>
7407 /* Override any gcc2 internal prototype to avoid an error. */
7408 /* We use char because int might match the return type of a gcc2
7409 builtin and then its argument prototype would still apply. */
7410 char $ac_func();
7412 int main() {
7414 /* The GNU C library defines this for functions which it implements
7415 to always fail with ENOSYS. Some functions are actually named
7416 something starting with __ and the normal name is an alias. */
7417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7418 choke me
7419 #else
7420 $ac_func();
7421 #endif
7423 ; return 0; }
7425 if { (eval echo configure:7426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7426 rm -rf conftest*
7427 eval "ac_cv_func_$ac_func=yes"
7428 else
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 rm -rf conftest*
7432 eval "ac_cv_func_$ac_func=no"
7434 rm -f conftest*
7437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7438 echo "$ac_t""yes" 1>&6
7439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7440 cat >> confdefs.h <<EOF
7441 #define $ac_tr_func 1
7444 else
7445 echo "$ac_t""no" 1>&6
7447 done
7449 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7450 echo "configure:7451: checking for putprpwnam in -lsec" >&5
7451 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7453 echo $ac_n "(cached) $ac_c" 1>&6
7454 else
7455 ac_save_LIBS="$LIBS"
7456 LIBS="-lsec $LIBS"
7457 cat > conftest.$ac_ext <<EOF
7458 #line 7459 "configure"
7459 #include "confdefs.h"
7460 /* Override any gcc2 internal prototype to avoid an error. */
7461 /* We use char because int might match the return type of a gcc2
7462 builtin and then its argument prototype would still apply. */
7463 char putprpwnam();
7465 int main() {
7466 putprpwnam()
7467 ; return 0; }
7469 if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470 rm -rf conftest*
7471 eval "ac_cv_lib_$ac_lib_var=yes"
7472 else
7473 echo "configure: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 rm -rf conftest*
7476 eval "ac_cv_lib_$ac_lib_var=no"
7478 rm -f conftest*
7479 LIBS="$ac_save_LIBS"
7482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7483 echo "$ac_t""yes" 1>&6
7484 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7486 cat >> confdefs.h <<EOF
7487 #define $ac_tr_lib 1
7490 LIBS="-lsec $LIBS"
7492 else
7493 echo "$ac_t""no" 1>&6
7496 for ac_func in putprpwnam
7498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_func" >&5
7500 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7502 else
7503 cat > conftest.$ac_ext <<EOF
7504 #line 7505 "configure"
7505 #include "confdefs.h"
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func(); below. */
7508 #include <assert.h>
7509 /* Override any gcc2 internal prototype to avoid an error. */
7510 /* We use char because int might match the return type of a gcc2
7511 builtin and then its argument prototype would still apply. */
7512 char $ac_func();
7514 int main() {
7516 /* The GNU C library defines this for functions which it implements
7517 to always fail with ENOSYS. Some functions are actually named
7518 something starting with __ and the normal name is an alias. */
7519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7520 choke me
7521 #else
7522 $ac_func();
7523 #endif
7525 ; return 0; }
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 rm -rf conftest*
7529 eval "ac_cv_func_$ac_func=yes"
7530 else
7531 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5
7533 rm -rf conftest*
7534 eval "ac_cv_func_$ac_func=no"
7536 rm -f conftest*
7539 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7540 echo "$ac_t""yes" 1>&6
7541 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7542 cat >> confdefs.h <<EOF
7543 #define $ac_tr_func 1
7546 else
7547 echo "$ac_t""no" 1>&6
7549 done
7552 esac
7555 case "$LIBS" in
7556 *-lsecurity*) for ac_func in set_auth_parameters
7558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7559 echo "configure:7560: checking for $ac_func" >&5
7560 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7562 else
7563 cat > conftest.$ac_ext <<EOF
7564 #line 7565 "configure"
7565 #include "confdefs.h"
7566 /* System header to define __stub macros and hopefully few prototypes,
7567 which can conflict with char $ac_func(); below. */
7568 #include <assert.h>
7569 /* Override any gcc2 internal prototype to avoid an error. */
7570 /* We use char because int might match the return type of a gcc2
7571 builtin and then its argument prototype would still apply. */
7572 char $ac_func();
7574 int main() {
7576 /* The GNU C library defines this for functions which it implements
7577 to always fail with ENOSYS. Some functions are actually named
7578 something starting with __ and the normal name is an alias. */
7579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7580 choke me
7581 #else
7582 $ac_func();
7583 #endif
7585 ; return 0; }
7587 if { (eval echo configure:7588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7588 rm -rf conftest*
7589 eval "ac_cv_func_$ac_func=yes"
7590 else
7591 echo "configure: failed program was:" >&5
7592 cat conftest.$ac_ext >&5
7593 rm -rf conftest*
7594 eval "ac_cv_func_$ac_func=no"
7596 rm -f conftest*
7599 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7600 echo "$ac_t""yes" 1>&6
7601 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7602 cat >> confdefs.h <<EOF
7603 #define $ac_tr_func 1
7606 else
7607 echo "$ac_t""no" 1>&6
7609 done
7611 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7612 echo "configure:7613: checking for set_auth_parameters in -lsecurity" >&5
7613 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7615 echo $ac_n "(cached) $ac_c" 1>&6
7616 else
7617 ac_save_LIBS="$LIBS"
7618 LIBS="-lsecurity $LIBS"
7619 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure"
7621 #include "confdefs.h"
7622 /* Override any gcc2 internal prototype to avoid an error. */
7623 /* We use char because int might match the return type of a gcc2
7624 builtin and then its argument prototype would still apply. */
7625 char set_auth_parameters();
7627 int main() {
7628 set_auth_parameters()
7629 ; return 0; }
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7632 rm -rf conftest*
7633 eval "ac_cv_lib_$ac_lib_var=yes"
7634 else
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7637 rm -rf conftest*
7638 eval "ac_cv_lib_$ac_lib_var=no"
7640 rm -f conftest*
7641 LIBS="$ac_save_LIBS"
7644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7645 echo "$ac_t""yes" 1>&6
7646 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7647 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7648 cat >> confdefs.h <<EOF
7649 #define $ac_tr_lib 1
7652 LIBS="-lsecurity $LIBS"
7654 else
7655 echo "$ac_t""no" 1>&6
7658 for ac_func in set_auth_parameters
7660 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7661 echo "configure:7662: checking for $ac_func" >&5
7662 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7664 else
7665 cat > conftest.$ac_ext <<EOF
7666 #line 7667 "configure"
7667 #include "confdefs.h"
7668 /* System header to define __stub macros and hopefully few prototypes,
7669 which can conflict with char $ac_func(); below. */
7670 #include <assert.h>
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7674 char $ac_func();
7676 int main() {
7678 /* The GNU C library defines this for functions which it implements
7679 to always fail with ENOSYS. Some functions are actually named
7680 something starting with __ and the normal name is an alias. */
7681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7682 choke me
7683 #else
7684 $ac_func();
7685 #endif
7687 ; return 0; }
7689 if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7690 rm -rf conftest*
7691 eval "ac_cv_func_$ac_func=yes"
7692 else
7693 echo "configure: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 rm -rf conftest*
7696 eval "ac_cv_func_$ac_func=no"
7698 rm -f conftest*
7701 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7702 echo "$ac_t""yes" 1>&6
7703 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7704 cat >> confdefs.h <<EOF
7705 #define $ac_tr_func 1
7708 else
7709 echo "$ac_t""no" 1>&6
7711 done
7714 esac
7716 case "$LIBS" in
7717 *-lsec*) for ac_func in set_auth_parameters
7719 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7720 echo "configure:7721: checking for $ac_func" >&5
7721 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
7723 else
7724 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure"
7726 #include "confdefs.h"
7727 /* System header to define __stub macros and hopefully few prototypes,
7728 which can conflict with char $ac_func(); below. */
7729 #include <assert.h>
7730 /* Override any gcc2 internal prototype to avoid an error. */
7731 /* We use char because int might match the return type of a gcc2
7732 builtin and then its argument prototype would still apply. */
7733 char $ac_func();
7735 int main() {
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7741 choke me
7742 #else
7743 $ac_func();
7744 #endif
7746 ; return 0; }
7748 if { (eval echo configure:7749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7749 rm -rf conftest*
7750 eval "ac_cv_func_$ac_func=yes"
7751 else
7752 echo "configure: failed program was:" >&5
7753 cat conftest.$ac_ext >&5
7754 rm -rf conftest*
7755 eval "ac_cv_func_$ac_func=no"
7757 rm -f conftest*
7760 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7761 echo "$ac_t""yes" 1>&6
7762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7763 cat >> confdefs.h <<EOF
7764 #define $ac_tr_func 1
7767 else
7768 echo "$ac_t""no" 1>&6
7770 done
7772 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7773 echo "configure:7774: checking for set_auth_parameters in -lsec" >&5
7774 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7776 echo $ac_n "(cached) $ac_c" 1>&6
7777 else
7778 ac_save_LIBS="$LIBS"
7779 LIBS="-lsec $LIBS"
7780 cat > conftest.$ac_ext <<EOF
7781 #line 7782 "configure"
7782 #include "confdefs.h"
7783 /* Override any gcc2 internal prototype to avoid an error. */
7784 /* We use char because int might match the return type of a gcc2
7785 builtin and then its argument prototype would still apply. */
7786 char set_auth_parameters();
7788 int main() {
7789 set_auth_parameters()
7790 ; return 0; }
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7793 rm -rf conftest*
7794 eval "ac_cv_lib_$ac_lib_var=yes"
7795 else
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 rm -rf conftest*
7799 eval "ac_cv_lib_$ac_lib_var=no"
7801 rm -f conftest*
7802 LIBS="$ac_save_LIBS"
7805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7806 echo "$ac_t""yes" 1>&6
7807 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7809 cat >> confdefs.h <<EOF
7810 #define $ac_tr_lib 1
7813 LIBS="-lsec $LIBS"
7815 else
7816 echo "$ac_t""no" 1>&6
7819 for ac_func in set_auth_parameters
7821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7822 echo "configure:7823: checking for $ac_func" >&5
7823 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7825 else
7826 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure"
7828 #include "confdefs.h"
7829 /* System header to define __stub macros and hopefully few prototypes,
7830 which can conflict with char $ac_func(); below. */
7831 #include <assert.h>
7832 /* Override any gcc2 internal prototype to avoid an error. */
7833 /* We use char because int might match the return type of a gcc2
7834 builtin and then its argument prototype would still apply. */
7835 char $ac_func();
7837 int main() {
7839 /* The GNU C library defines this for functions which it implements
7840 to always fail with ENOSYS. Some functions are actually named
7841 something starting with __ and the normal name is an alias. */
7842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7843 choke me
7844 #else
7845 $ac_func();
7846 #endif
7848 ; return 0; }
7850 if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7851 rm -rf conftest*
7852 eval "ac_cv_func_$ac_func=yes"
7853 else
7854 echo "configure: failed program was:" >&5
7855 cat conftest.$ac_ext >&5
7856 rm -rf conftest*
7857 eval "ac_cv_func_$ac_func=no"
7859 rm -f conftest*
7862 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7863 echo "$ac_t""yes" 1>&6
7864 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7865 cat >> confdefs.h <<EOF
7866 #define $ac_tr_func 1
7869 else
7870 echo "$ac_t""no" 1>&6
7872 done
7875 esac
7878 # UnixWare 7.x has its getspnam in -lgen
7879 case "$LIBS" in
7880 *-lgen*) for ac_func in getspnam
7882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7883 echo "configure:7884: checking for $ac_func" >&5
7884 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7885 echo $ac_n "(cached) $ac_c" 1>&6
7886 else
7887 cat > conftest.$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7890 /* System header to define __stub macros and hopefully few prototypes,
7891 which can conflict with char $ac_func(); below. */
7892 #include <assert.h>
7893 /* Override any gcc2 internal prototype to avoid an error. */
7894 /* We use char because int might match the return type of a gcc2
7895 builtin and then its argument prototype would still apply. */
7896 char $ac_func();
7898 int main() {
7900 /* The GNU C library defines this for functions which it implements
7901 to always fail with ENOSYS. Some functions are actually named
7902 something starting with __ and the normal name is an alias. */
7903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7904 choke me
7905 #else
7906 $ac_func();
7907 #endif
7909 ; return 0; }
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7912 rm -rf conftest*
7913 eval "ac_cv_func_$ac_func=yes"
7914 else
7915 echo "configure: failed program was:" >&5
7916 cat conftest.$ac_ext >&5
7917 rm -rf conftest*
7918 eval "ac_cv_func_$ac_func=no"
7920 rm -f conftest*
7923 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7924 echo "$ac_t""yes" 1>&6
7925 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7926 cat >> confdefs.h <<EOF
7927 #define $ac_tr_func 1
7930 else
7931 echo "$ac_t""no" 1>&6
7933 done
7935 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7936 echo "configure:7937: checking for getspnam in -lgen" >&5
7937 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6
7940 else
7941 ac_save_LIBS="$LIBS"
7942 LIBS="-lgen $LIBS"
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7949 char getspnam();
7951 int main() {
7952 getspnam()
7953 ; return 0; }
7955 if { (eval echo configure:7956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7956 rm -rf conftest*
7957 eval "ac_cv_lib_$ac_lib_var=yes"
7958 else
7959 echo "configure: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 rm -rf conftest*
7962 eval "ac_cv_lib_$ac_lib_var=no"
7964 rm -f conftest*
7965 LIBS="$ac_save_LIBS"
7968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7969 echo "$ac_t""yes" 1>&6
7970 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7971 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7972 cat >> confdefs.h <<EOF
7973 #define $ac_tr_lib 1
7976 LIBS="-lgen $LIBS"
7978 else
7979 echo "$ac_t""no" 1>&6
7982 for ac_func in getspnam
7984 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7985 echo "configure:7986: checking for $ac_func" >&5
7986 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7988 else
7989 cat > conftest.$ac_ext <<EOF
7990 #line 7991 "configure"
7991 #include "confdefs.h"
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func(); below. */
7994 #include <assert.h>
7995 /* Override any gcc2 internal prototype to avoid an error. */
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
7998 char $ac_func();
8000 int main() {
8002 /* The GNU C library defines this for functions which it implements
8003 to always fail with ENOSYS. Some functions are actually named
8004 something starting with __ and the normal name is an alias. */
8005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8006 choke me
8007 #else
8008 $ac_func();
8009 #endif
8011 ; return 0; }
8013 if { (eval echo configure:8014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8014 rm -rf conftest*
8015 eval "ac_cv_func_$ac_func=yes"
8016 else
8017 echo "configure: failed program was:" >&5
8018 cat conftest.$ac_ext >&5
8019 rm -rf conftest*
8020 eval "ac_cv_func_$ac_func=no"
8022 rm -f conftest*
8025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8026 echo "$ac_t""yes" 1>&6
8027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8028 cat >> confdefs.h <<EOF
8029 #define $ac_tr_func 1
8032 else
8033 echo "$ac_t""no" 1>&6
8035 done
8038 esac
8041 case "$LIBS" in
8042 *-lsecurity*) for ac_func in getspnam
8044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8045 echo "configure:8046: checking for $ac_func" >&5
8046 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8048 else
8049 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure"
8051 #include "confdefs.h"
8052 /* System header to define __stub macros and hopefully few prototypes,
8053 which can conflict with char $ac_func(); below. */
8054 #include <assert.h>
8055 /* Override any gcc2 internal prototype to avoid an error. */
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058 char $ac_func();
8060 int main() {
8062 /* The GNU C library defines this for functions which it implements
8063 to always fail with ENOSYS. Some functions are actually named
8064 something starting with __ and the normal name is an alias. */
8065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8066 choke me
8067 #else
8068 $ac_func();
8069 #endif
8071 ; return 0; }
8073 if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8074 rm -rf conftest*
8075 eval "ac_cv_func_$ac_func=yes"
8076 else
8077 echo "configure: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 rm -rf conftest*
8080 eval "ac_cv_func_$ac_func=no"
8082 rm -f conftest*
8085 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8086 echo "$ac_t""yes" 1>&6
8087 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8088 cat >> confdefs.h <<EOF
8089 #define $ac_tr_func 1
8092 else
8093 echo "$ac_t""no" 1>&6
8095 done
8097 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
8098 echo "configure:8099: checking for getspnam in -lsecurity" >&5
8099 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
8100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8102 else
8103 ac_save_LIBS="$LIBS"
8104 LIBS="-lsecurity $LIBS"
8105 cat > conftest.$ac_ext <<EOF
8106 #line 8107 "configure"
8107 #include "confdefs.h"
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 /* We use char because int might match the return type of a gcc2
8110 builtin and then its argument prototype would still apply. */
8111 char getspnam();
8113 int main() {
8114 getspnam()
8115 ; return 0; }
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8118 rm -rf conftest*
8119 eval "ac_cv_lib_$ac_lib_var=yes"
8120 else
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8123 rm -rf conftest*
8124 eval "ac_cv_lib_$ac_lib_var=no"
8126 rm -f conftest*
8127 LIBS="$ac_save_LIBS"
8130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8131 echo "$ac_t""yes" 1>&6
8132 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8133 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8134 cat >> confdefs.h <<EOF
8135 #define $ac_tr_lib 1
8138 LIBS="-lsecurity $LIBS"
8140 else
8141 echo "$ac_t""no" 1>&6
8144 for ac_func in getspnam
8146 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8147 echo "configure:8148: checking for $ac_func" >&5
8148 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8150 else
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8154 /* System header to define __stub macros and hopefully few prototypes,
8155 which can conflict with char $ac_func(); below. */
8156 #include <assert.h>
8157 /* Override any gcc2 internal prototype to avoid an error. */
8158 /* We use char because int might match the return type of a gcc2
8159 builtin and then its argument prototype would still apply. */
8160 char $ac_func();
8162 int main() {
8164 /* The GNU C library defines this for functions which it implements
8165 to always fail with ENOSYS. Some functions are actually named
8166 something starting with __ and the normal name is an alias. */
8167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8168 choke me
8169 #else
8170 $ac_func();
8171 #endif
8173 ; return 0; }
8175 if { (eval echo configure:8176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8176 rm -rf conftest*
8177 eval "ac_cv_func_$ac_func=yes"
8178 else
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8181 rm -rf conftest*
8182 eval "ac_cv_func_$ac_func=no"
8184 rm -f conftest*
8187 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8188 echo "$ac_t""yes" 1>&6
8189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8190 cat >> confdefs.h <<EOF
8191 #define $ac_tr_func 1
8194 else
8195 echo "$ac_t""no" 1>&6
8197 done
8200 esac
8202 case "$LIBS" in
8203 *-lsec*) for ac_func in getspnam
8205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8206 echo "configure:8207: checking for $ac_func" >&5
8207 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8208 echo $ac_n "(cached) $ac_c" 1>&6
8209 else
8210 cat > conftest.$ac_ext <<EOF
8211 #line 8212 "configure"
8212 #include "confdefs.h"
8213 /* System header to define __stub macros and hopefully few prototypes,
8214 which can conflict with char $ac_func(); below. */
8215 #include <assert.h>
8216 /* Override any gcc2 internal prototype to avoid an error. */
8217 /* We use char because int might match the return type of a gcc2
8218 builtin and then its argument prototype would still apply. */
8219 char $ac_func();
8221 int main() {
8223 /* The GNU C library defines this for functions which it implements
8224 to always fail with ENOSYS. Some functions are actually named
8225 something starting with __ and the normal name is an alias. */
8226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8227 choke me
8228 #else
8229 $ac_func();
8230 #endif
8232 ; return 0; }
8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8235 rm -rf conftest*
8236 eval "ac_cv_func_$ac_func=yes"
8237 else
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 rm -rf conftest*
8241 eval "ac_cv_func_$ac_func=no"
8243 rm -f conftest*
8246 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8247 echo "$ac_t""yes" 1>&6
8248 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8249 cat >> confdefs.h <<EOF
8250 #define $ac_tr_func 1
8253 else
8254 echo "$ac_t""no" 1>&6
8256 done
8258 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8259 echo "configure:8260: checking for getspnam in -lsec" >&5
8260 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8263 else
8264 ac_save_LIBS="$LIBS"
8265 LIBS="-lsec $LIBS"
8266 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* Override any gcc2 internal prototype to avoid an error. */
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8272 char getspnam();
8274 int main() {
8275 getspnam()
8276 ; return 0; }
8278 if { (eval echo configure:8279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8279 rm -rf conftest*
8280 eval "ac_cv_lib_$ac_lib_var=yes"
8281 else
8282 echo "configure: failed program was:" >&5
8283 cat conftest.$ac_ext >&5
8284 rm -rf conftest*
8285 eval "ac_cv_lib_$ac_lib_var=no"
8287 rm -f conftest*
8288 LIBS="$ac_save_LIBS"
8291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8292 echo "$ac_t""yes" 1>&6
8293 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8295 cat >> confdefs.h <<EOF
8296 #define $ac_tr_lib 1
8299 LIBS="-lsec $LIBS"
8301 else
8302 echo "$ac_t""no" 1>&6
8305 for ac_func in getspnam
8307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8308 echo "configure:8309: checking for $ac_func" >&5
8309 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8311 else
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 /* System header to define __stub macros and hopefully few prototypes,
8316 which can conflict with char $ac_func(); below. */
8317 #include <assert.h>
8318 /* Override any gcc2 internal prototype to avoid an error. */
8319 /* We use char because int might match the return type of a gcc2
8320 builtin and then its argument prototype would still apply. */
8321 char $ac_func();
8323 int main() {
8325 /* The GNU C library defines this for functions which it implements
8326 to always fail with ENOSYS. Some functions are actually named
8327 something starting with __ and the normal name is an alias. */
8328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8329 choke me
8330 #else
8331 $ac_func();
8332 #endif
8334 ; return 0; }
8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8337 rm -rf conftest*
8338 eval "ac_cv_func_$ac_func=yes"
8339 else
8340 echo "configure: failed program was:" >&5
8341 cat conftest.$ac_ext >&5
8342 rm -rf conftest*
8343 eval "ac_cv_func_$ac_func=no"
8345 rm -f conftest*
8348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8349 echo "$ac_t""yes" 1>&6
8350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8351 cat >> confdefs.h <<EOF
8352 #define $ac_tr_func 1
8355 else
8356 echo "$ac_t""no" 1>&6
8358 done
8361 esac
8364 case "$LIBS" in
8365 *-lsecurity*) for ac_func in bigcrypt
8367 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8368 echo "configure:8369: checking for $ac_func" >&5
8369 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8371 else
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 /* System header to define __stub macros and hopefully few prototypes,
8376 which can conflict with char $ac_func(); below. */
8377 #include <assert.h>
8378 /* Override any gcc2 internal prototype to avoid an error. */
8379 /* We use char because int might match the return type of a gcc2
8380 builtin and then its argument prototype would still apply. */
8381 char $ac_func();
8383 int main() {
8385 /* The GNU C library defines this for functions which it implements
8386 to always fail with ENOSYS. Some functions are actually named
8387 something starting with __ and the normal name is an alias. */
8388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8389 choke me
8390 #else
8391 $ac_func();
8392 #endif
8394 ; return 0; }
8396 if { (eval echo configure:8397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8397 rm -rf conftest*
8398 eval "ac_cv_func_$ac_func=yes"
8399 else
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8402 rm -rf conftest*
8403 eval "ac_cv_func_$ac_func=no"
8405 rm -f conftest*
8408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8409 echo "$ac_t""yes" 1>&6
8410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8411 cat >> confdefs.h <<EOF
8412 #define $ac_tr_func 1
8415 else
8416 echo "$ac_t""no" 1>&6
8418 done
8420 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8421 echo "configure:8422: checking for bigcrypt in -lsecurity" >&5
8422 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8424 echo $ac_n "(cached) $ac_c" 1>&6
8425 else
8426 ac_save_LIBS="$LIBS"
8427 LIBS="-lsecurity $LIBS"
8428 cat > conftest.$ac_ext <<EOF
8429 #line 8430 "configure"
8430 #include "confdefs.h"
8431 /* Override any gcc2 internal prototype to avoid an error. */
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8434 char bigcrypt();
8436 int main() {
8437 bigcrypt()
8438 ; return 0; }
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8441 rm -rf conftest*
8442 eval "ac_cv_lib_$ac_lib_var=yes"
8443 else
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8446 rm -rf conftest*
8447 eval "ac_cv_lib_$ac_lib_var=no"
8449 rm -f conftest*
8450 LIBS="$ac_save_LIBS"
8453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8454 echo "$ac_t""yes" 1>&6
8455 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8457 cat >> confdefs.h <<EOF
8458 #define $ac_tr_lib 1
8461 LIBS="-lsecurity $LIBS"
8463 else
8464 echo "$ac_t""no" 1>&6
8467 for ac_func in bigcrypt
8469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8470 echo "configure:8471: checking for $ac_func" >&5
8471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8472 echo $ac_n "(cached) $ac_c" 1>&6
8473 else
8474 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure"
8476 #include "confdefs.h"
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char $ac_func(); below. */
8479 #include <assert.h>
8480 /* Override any gcc2 internal prototype to avoid an error. */
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483 char $ac_func();
8485 int main() {
8487 /* The GNU C library defines this for functions which it implements
8488 to always fail with ENOSYS. Some functions are actually named
8489 something starting with __ and the normal name is an alias. */
8490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8491 choke me
8492 #else
8493 $ac_func();
8494 #endif
8496 ; return 0; }
8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8499 rm -rf conftest*
8500 eval "ac_cv_func_$ac_func=yes"
8501 else
8502 echo "configure: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8504 rm -rf conftest*
8505 eval "ac_cv_func_$ac_func=no"
8507 rm -f conftest*
8510 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8511 echo "$ac_t""yes" 1>&6
8512 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8513 cat >> confdefs.h <<EOF
8514 #define $ac_tr_func 1
8517 else
8518 echo "$ac_t""no" 1>&6
8520 done
8523 esac
8525 case "$LIBS" in
8526 *-lsec*) for ac_func in bigcrypt
8528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8529 echo "configure:8530: checking for $ac_func" >&5
8530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8531 echo $ac_n "(cached) $ac_c" 1>&6
8532 else
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8536 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char $ac_func(); below. */
8538 #include <assert.h>
8539 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8542 char $ac_func();
8544 int main() {
8546 /* The GNU C library defines this for functions which it implements
8547 to always fail with ENOSYS. Some functions are actually named
8548 something starting with __ and the normal name is an alias. */
8549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8550 choke me
8551 #else
8552 $ac_func();
8553 #endif
8555 ; return 0; }
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 rm -rf conftest*
8559 eval "ac_cv_func_$ac_func=yes"
8560 else
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8563 rm -rf conftest*
8564 eval "ac_cv_func_$ac_func=no"
8566 rm -f conftest*
8569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8570 echo "$ac_t""yes" 1>&6
8571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8572 cat >> confdefs.h <<EOF
8573 #define $ac_tr_func 1
8576 else
8577 echo "$ac_t""no" 1>&6
8579 done
8581 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8582 echo "configure:8583: checking for bigcrypt in -lsec" >&5
8583 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8586 else
8587 ac_save_LIBS="$LIBS"
8588 LIBS="-lsec $LIBS"
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8595 char bigcrypt();
8597 int main() {
8598 bigcrypt()
8599 ; return 0; }
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 rm -rf conftest*
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8604 else
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8607 rm -rf conftest*
8608 eval "ac_cv_lib_$ac_lib_var=no"
8610 rm -f conftest*
8611 LIBS="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8616 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8618 cat >> confdefs.h <<EOF
8619 #define $ac_tr_lib 1
8622 LIBS="-lsec $LIBS"
8624 else
8625 echo "$ac_t""no" 1>&6
8628 for ac_func in bigcrypt
8630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8631 echo "configure:8632: checking for $ac_func" >&5
8632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8635 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure"
8637 #include "confdefs.h"
8638 /* System header to define __stub macros and hopefully few prototypes,
8639 which can conflict with char $ac_func(); below. */
8640 #include <assert.h>
8641 /* Override any gcc2 internal prototype to avoid an error. */
8642 /* We use char because int might match the return type of a gcc2
8643 builtin and then its argument prototype would still apply. */
8644 char $ac_func();
8646 int main() {
8648 /* The GNU C library defines this for functions which it implements
8649 to always fail with ENOSYS. Some functions are actually named
8650 something starting with __ and the normal name is an alias. */
8651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8652 choke me
8653 #else
8654 $ac_func();
8655 #endif
8657 ; return 0; }
8659 if { (eval echo configure:8660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8660 rm -rf conftest*
8661 eval "ac_cv_func_$ac_func=yes"
8662 else
8663 echo "configure: failed program was:" >&5
8664 cat conftest.$ac_ext >&5
8665 rm -rf conftest*
8666 eval "ac_cv_func_$ac_func=no"
8668 rm -f conftest*
8671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8672 echo "$ac_t""yes" 1>&6
8673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8674 cat >> confdefs.h <<EOF
8675 #define $ac_tr_func 1
8678 else
8679 echo "$ac_t""no" 1>&6
8681 done
8684 esac
8687 case "$LIBS" in
8688 *-lsecurity*) for ac_func in getprpwnam
8690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8691 echo "configure:8692: checking for $ac_func" >&5
8692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8694 else
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char $ac_func(); below. */
8700 #include <assert.h>
8701 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char $ac_func();
8706 int main() {
8708 /* The GNU C library defines this for functions which it implements
8709 to always fail with ENOSYS. Some functions are actually named
8710 something starting with __ and the normal name is an alias. */
8711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8712 choke me
8713 #else
8714 $ac_func();
8715 #endif
8717 ; return 0; }
8719 if { (eval echo configure:8720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8720 rm -rf conftest*
8721 eval "ac_cv_func_$ac_func=yes"
8722 else
8723 echo "configure: failed program was:" >&5
8724 cat conftest.$ac_ext >&5
8725 rm -rf conftest*
8726 eval "ac_cv_func_$ac_func=no"
8728 rm -f conftest*
8731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8732 echo "$ac_t""yes" 1>&6
8733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8734 cat >> confdefs.h <<EOF
8735 #define $ac_tr_func 1
8738 else
8739 echo "$ac_t""no" 1>&6
8741 done
8743 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8744 echo "configure:8745: checking for getprpwnam in -lsecurity" >&5
8745 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8747 echo $ac_n "(cached) $ac_c" 1>&6
8748 else
8749 ac_save_LIBS="$LIBS"
8750 LIBS="-lsecurity $LIBS"
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 /* Override any gcc2 internal prototype to avoid an error. */
8755 /* We use char because int might match the return type of a gcc2
8756 builtin and then its argument prototype would still apply. */
8757 char getprpwnam();
8759 int main() {
8760 getprpwnam()
8761 ; return 0; }
8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8764 rm -rf conftest*
8765 eval "ac_cv_lib_$ac_lib_var=yes"
8766 else
8767 echo "configure: failed program was:" >&5
8768 cat conftest.$ac_ext >&5
8769 rm -rf conftest*
8770 eval "ac_cv_lib_$ac_lib_var=no"
8772 rm -f conftest*
8773 LIBS="$ac_save_LIBS"
8776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8777 echo "$ac_t""yes" 1>&6
8778 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8780 cat >> confdefs.h <<EOF
8781 #define $ac_tr_lib 1
8784 LIBS="-lsecurity $LIBS"
8786 else
8787 echo "$ac_t""no" 1>&6
8790 for ac_func in getprpwnam
8792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8793 echo "configure:8794: checking for $ac_func" >&5
8794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8796 else
8797 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure"
8799 #include "confdefs.h"
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char $ac_func(); below. */
8802 #include <assert.h>
8803 /* Override any gcc2 internal prototype to avoid an error. */
8804 /* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806 char $ac_func();
8808 int main() {
8810 /* The GNU C library defines this for functions which it implements
8811 to always fail with ENOSYS. Some functions are actually named
8812 something starting with __ and the normal name is an alias. */
8813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8814 choke me
8815 #else
8816 $ac_func();
8817 #endif
8819 ; return 0; }
8821 if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8822 rm -rf conftest*
8823 eval "ac_cv_func_$ac_func=yes"
8824 else
8825 echo "configure: failed program was:" >&5
8826 cat conftest.$ac_ext >&5
8827 rm -rf conftest*
8828 eval "ac_cv_func_$ac_func=no"
8830 rm -f conftest*
8833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8834 echo "$ac_t""yes" 1>&6
8835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8836 cat >> confdefs.h <<EOF
8837 #define $ac_tr_func 1
8840 else
8841 echo "$ac_t""no" 1>&6
8843 done
8846 esac
8848 case "$LIBS" in
8849 *-lsec*) for ac_func in getprpwnam
8851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_func" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860 which can conflict with char $ac_func(); below. */
8861 #include <assert.h>
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8865 char $ac_func();
8867 int main() {
8869 /* The GNU C library defines this for functions which it implements
8870 to always fail with ENOSYS. Some functions are actually named
8871 something starting with __ and the normal name is an alias. */
8872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8873 choke me
8874 #else
8875 $ac_func();
8876 #endif
8878 ; return 0; }
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 rm -rf conftest*
8882 eval "ac_cv_func_$ac_func=yes"
8883 else
8884 echo "configure: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 rm -rf conftest*
8887 eval "ac_cv_func_$ac_func=no"
8889 rm -f conftest*
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895 cat >> confdefs.h <<EOF
8896 #define $ac_tr_func 1
8899 else
8900 echo "$ac_t""no" 1>&6
8902 done
8904 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8905 echo "configure:8906: checking for getprpwnam in -lsec" >&5
8906 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8908 echo $ac_n "(cached) $ac_c" 1>&6
8909 else
8910 ac_save_LIBS="$LIBS"
8911 LIBS="-lsec $LIBS"
8912 cat > conftest.$ac_ext <<EOF
8913 #line 8914 "configure"
8914 #include "confdefs.h"
8915 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8918 char getprpwnam();
8920 int main() {
8921 getprpwnam()
8922 ; return 0; }
8924 if { (eval echo configure:8925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8925 rm -rf conftest*
8926 eval "ac_cv_lib_$ac_lib_var=yes"
8927 else
8928 echo "configure: failed program was:" >&5
8929 cat conftest.$ac_ext >&5
8930 rm -rf conftest*
8931 eval "ac_cv_lib_$ac_lib_var=no"
8933 rm -f conftest*
8934 LIBS="$ac_save_LIBS"
8937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8938 echo "$ac_t""yes" 1>&6
8939 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8940 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8941 cat >> confdefs.h <<EOF
8942 #define $ac_tr_lib 1
8945 LIBS="-lsec $LIBS"
8947 else
8948 echo "$ac_t""no" 1>&6
8951 for ac_func in getprpwnam
8953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8954 echo "configure:8955: checking for $ac_func" >&5
8955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8956 echo $ac_n "(cached) $ac_c" 1>&6
8957 else
8958 cat > conftest.$ac_ext <<EOF
8959 #line 8960 "configure"
8960 #include "confdefs.h"
8961 /* System header to define __stub macros and hopefully few prototypes,
8962 which can conflict with char $ac_func(); below. */
8963 #include <assert.h>
8964 /* Override any gcc2 internal prototype to avoid an error. */
8965 /* We use char because int might match the return type of a gcc2
8966 builtin and then its argument prototype would still apply. */
8967 char $ac_func();
8969 int main() {
8971 /* The GNU C library defines this for functions which it implements
8972 to always fail with ENOSYS. Some functions are actually named
8973 something starting with __ and the normal name is an alias. */
8974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8975 choke me
8976 #else
8977 $ac_func();
8978 #endif
8980 ; return 0; }
8982 if { (eval echo configure:8983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8983 rm -rf conftest*
8984 eval "ac_cv_func_$ac_func=yes"
8985 else
8986 echo "configure: failed program was:" >&5
8987 cat conftest.$ac_ext >&5
8988 rm -rf conftest*
8989 eval "ac_cv_func_$ac_func=no"
8991 rm -f conftest*
8994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8995 echo "$ac_t""yes" 1>&6
8996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8997 cat >> confdefs.h <<EOF
8998 #define $ac_tr_func 1
9001 else
9002 echo "$ac_t""no" 1>&6
9004 done
9007 esac
9010 # this bit needs to be modified for each OS that is suported by
9011 # smbwrapper. You need to specify how to created a shared library and
9012 # how to compile C code to produce PIC object files
9014 # these are the defaults, good for lots of systems
9015 HOST_OS="$host_os"
9016 LDSHFLAGS="-shared"
9017 SONAMEFLAG="#"
9018 SHLD="\${CC}"
9019 PICFLAG=""
9020 PICSUFFIX="po"
9021 POBAD_CC="#"
9022 SHLIBEXT="so"
9023 # Assume non-shared by default and override below
9024 BLDSHARED="false"
9025 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
9026 echo "configure:9027: checking ability to build shared libraries" >&5
9028 # and these are for particular systems
9029 case "$host_os" in
9030 *linux*) cat >> confdefs.h <<\EOF
9031 #define LINUX 1
9034 BLDSHARED="true"
9035 LDSHFLAGS="-shared"
9036 DYNEXP="-Wl,--export-dynamic"
9037 PICFLAG="-fPIC"
9038 SONAMEFLAG="-Wl,-soname="
9039 cat >> confdefs.h <<\EOF
9040 #define STAT_ST_BLOCKSIZE 512
9044 *solaris*) cat >> confdefs.h <<\EOF
9045 #define SUNOS5 1
9048 BLDSHARED="true"
9049 LDSHFLAGS="-G"
9050 SONAMEFLAG="-h "
9051 if test "${GCC}" = "yes"; then
9052 PICFLAG="-fPIC"
9053 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
9054 DYNEXP="-Wl,-E"
9056 else
9057 PICFLAG="-KPIC"
9058 ## ${CFLAGS} added for building 64-bit shared
9059 ## libs using Sun's Compiler
9060 LDSHFLAGS="-G \${CFLAGS}"
9061 POBAD_CC=""
9062 PICSUFFIX="po.o"
9064 cat >> confdefs.h <<\EOF
9065 #define STAT_ST_BLOCKSIZE 512
9069 *sunos*) cat >> confdefs.h <<\EOF
9070 #define SUNOS4 1
9073 BLDSHARED="true"
9074 LDSHFLAGS="-G"
9075 SONAMEFLAG="-Wl,-h,"
9076 PICFLAG="-KPIC" # Is this correct for SunOS
9077 cat >> confdefs.h <<\EOF
9078 #define STAT_ST_BLOCKSIZE 512
9082 *freebsd*) BLDSHARED="true"
9083 LDSHFLAGS="-shared"
9084 DYNEXP="-Wl,--export-dynamic"
9085 SONAMEFLAG="-Wl,-soname,"
9086 PICFLAG="-fPIC -DPIC"
9087 cat >> confdefs.h <<\EOF
9088 #define STAT_ST_BLOCKSIZE 512
9092 *openbsd*) BLDSHARED="true"
9093 LDSHFLAGS="-shared"
9094 DYNEXP="-Wl,-Bdynamic"
9095 SONAMEFLAG="-Wl,-soname,"
9096 PICFLAG="-fPIC"
9097 cat >> confdefs.h <<\EOF
9098 #define STAT_ST_BLOCKSIZE 512
9102 *irix*) cat >> confdefs.h <<\EOF
9103 #define IRIX 1
9106 case "$host_os" in
9107 *irix6*) cat >> confdefs.h <<\EOF
9108 #define IRIX6 1
9112 esac
9113 ATTEMPT_WRAP32_BUILD=yes
9114 BLDSHARED="true"
9115 LDSHFLAGS="-set_version sgi1.0 -shared"
9116 SONAMEFLAG="-soname "
9117 SHLD="\${LD}"
9118 if test "${GCC}" = "yes"; then
9119 PICFLAG="-fPIC"
9120 else
9121 PICFLAG="-KPIC"
9123 cat >> confdefs.h <<\EOF
9124 #define STAT_ST_BLOCKSIZE 512
9128 *aix*) cat >> confdefs.h <<\EOF
9129 #define AIX 1
9132 BLDSHARED="true"
9133 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
9134 DYNEXP="-Wl,-brtl,-bexpall"
9135 PICFLAG="-O2"
9136 if test "${GCC}" != "yes"; then
9137 ## for funky AIX compiler using strncpy()
9138 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
9141 cat >> confdefs.h <<\EOF
9142 #define STAT_ST_BLOCKSIZE DEV_BSIZE
9146 *hpux*) cat >> confdefs.h <<\EOF
9147 #define HPUX 1
9150 SHLIBEXT="sl"
9151 # Use special PIC flags for the native HP-UX compiler.
9152 if test $ac_cv_prog_cc_Ae = yes; then
9153 BLDSHARED="true"
9154 SHLD="/usr/bin/ld"
9155 LDSHFLAGS="-B symbolic -b -z"
9156 SONAMEFLAG="+h "
9157 PICFLAG="+z"
9159 DYNEXP="-Wl,-E"
9160 cat >> confdefs.h <<\EOF
9161 #define STAT_ST_BLOCKSIZE 8192
9165 *qnx*) cat >> confdefs.h <<\EOF
9166 #define QNX 1
9169 cat >> confdefs.h <<\EOF
9170 #define STAT_ST_BLOCKSIZE 512
9174 *osf*) cat >> confdefs.h <<\EOF
9175 #define OSF1 1
9178 BLDSHARED="true"
9179 LDSHFLAGS="-shared"
9180 SONAMEFLAG="-Wl,-soname,"
9181 PICFLAG="-fPIC"
9182 cat >> confdefs.h <<\EOF
9183 #define STAT_ST_BLOCKSIZE 512
9187 *sco*) cat >> confdefs.h <<\EOF
9188 #define SCO 1
9191 cat >> confdefs.h <<\EOF
9192 #define STAT_ST_BLOCKSIZE 512
9196 *unixware*) cat >> confdefs.h <<\EOF
9197 #define UNIXWARE 1
9200 BLDSHARED="true"
9201 LDSHFLAGS="-shared"
9202 SONAMEFLAG="-Wl,-soname,"
9203 PICFLAG="-KPIC"
9204 cat >> confdefs.h <<\EOF
9205 #define STAT_ST_BLOCKSIZE 512
9209 *next2*) cat >> confdefs.h <<\EOF
9210 #define NEXT2 1
9213 cat >> confdefs.h <<\EOF
9214 #define STAT_ST_BLOCKSIZE 512
9218 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9219 set dummy groff; ac_word=$2
9220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9221 echo "configure:9222: checking for $ac_word" >&5
9222 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9224 else
9225 if test -n "$ROFF"; then
9226 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9227 else
9228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9229 ac_dummy="$PATH"
9230 for ac_dir in $ac_dummy; do
9231 test -z "$ac_dir" && ac_dir=.
9232 if test -f $ac_dir/$ac_word; then
9233 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9234 break
9236 done
9237 IFS="$ac_save_ifs"
9240 ROFF="$ac_cv_prog_ROFF"
9241 if test -n "$ROFF"; then
9242 echo "$ac_t""$ROFF" 1>&6
9243 else
9244 echo "$ac_t""no" 1>&6
9247 cat >> confdefs.h <<\EOF
9248 #define STAT_ST_BLOCKSIZE 512
9252 *sysv4*) cat >> confdefs.h <<\EOF
9253 #define SYSV 1
9256 case "$host" in
9257 *-univel-*) if test "$GCC" != yes ; then
9258 cat >> confdefs.h <<\EOF
9259 #define HAVE_MEMSET 1
9263 LDSHFLAGS="-G"
9264 DYNEXP="-Bexport"
9266 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
9267 #define RELIANTUNIX 1
9270 esac
9271 cat >> confdefs.h <<\EOF
9272 #define STAT_ST_BLOCKSIZE 512
9277 *sysv5*) cat >> confdefs.h <<\EOF
9278 #define SYSV 1
9281 if test "$GCC" != yes ; then
9282 cat >> confdefs.h <<\EOF
9283 #define HAVE_MEMSET 1
9287 LDSHFLAGS="-G"
9288 cat >> confdefs.h <<\EOF
9289 #define STAT_ST_BLOCKSIZE 512
9294 cat >> confdefs.h <<\EOF
9295 #define STAT_ST_BLOCKSIZE 512
9299 esac
9301 echo "$ac_t""$BLDSHARED" 1>&6
9302 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9303 echo "configure:9304: checking linker flags for shared libraries" >&5
9304 echo "$ac_t""$LDSHFLAGS" 1>&6
9305 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9306 echo "configure:9307: checking compiler flags for position-independent code" >&5
9307 echo "$ac_t""$PICFLAGS" 1>&6
9309 #######################################################
9310 # test whether building a shared library actually works
9311 if test $BLDSHARED = true; then
9312 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9313 echo "configure:9314: checking whether building shared libraries actually works" >&5
9314 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9316 else
9318 ac_cv_shlib_works=no
9319 # try building a trivial shared library
9320 if test "$PICSUFFIX" = "po"; then
9321 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9322 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9323 ac_cv_shlib_works=yes
9324 else
9325 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.$PICSUFFIX ${srcdir-.}/tests/shlib.c &&
9326 mv shlib.$PICSUFFIX shlib.po &&
9327 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o shlib.so shlib.po &&
9328 ac_cv_shlib_works=yes
9330 rm -f shlib.so shlib.po
9334 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9335 if test $ac_cv_shlib_works = no; then
9336 BLDSHARED=false
9341 # this updates our target list if we can build shared libs
9342 if test $BLDSHARED = true; then
9343 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9344 else
9345 LIBSMBCLIENT_SHARED=
9348 ################
9350 echo $ac_n "checking for long long""... $ac_c" 1>&6
9351 echo "configure:9352: checking for long long" >&5
9352 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9354 else
9356 if test "$cross_compiling" = yes; then
9357 samba_cv_have_longlong=cross
9358 else
9359 cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure"
9361 #include "confdefs.h"
9362 #include <stdio.h>
9363 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9366 then
9367 samba_cv_have_longlong=yes
9368 else
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9371 rm -fr conftest*
9372 samba_cv_have_longlong=no
9374 rm -fr conftest*
9379 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9380 if test x"$samba_cv_have_longlong" = x"yes"; then
9381 cat >> confdefs.h <<\EOF
9382 #define HAVE_LONGLONG 1
9388 # Check if the compiler supports the LL prefix on long long integers.
9389 # AIX needs this.
9391 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9392 echo "configure:9393: checking for LL suffix on long long integers" >&5
9393 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9394 echo $ac_n "(cached) $ac_c" 1>&6
9395 else
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 #include <stdio.h>
9401 int main() {
9402 long long i = 0x8000000000LL
9403 ; return 0; }
9405 if { (eval echo configure:9406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9406 rm -rf conftest*
9407 samba_cv_compiler_supports_ll=yes
9408 else
9409 echo "configure: failed program was:" >&5
9410 cat conftest.$ac_ext >&5
9411 rm -rf conftest*
9412 samba_cv_compiler_supports_ll=no
9414 rm -f conftest*
9417 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9418 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9419 cat >> confdefs.h <<\EOF
9420 #define COMPILER_SUPPORTS_LL 1
9426 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9427 echo "configure:9428: checking for 64 bit off_t" >&5
9428 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9429 echo $ac_n "(cached) $ac_c" 1>&6
9430 else
9432 if test "$cross_compiling" = yes; then
9433 samba_cv_SIZEOF_OFF_T=cross
9434 else
9435 cat > conftest.$ac_ext <<EOF
9436 #line 9437 "configure"
9437 #include "confdefs.h"
9438 #include <stdio.h>
9439 #include <sys/stat.h>
9440 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9443 then
9444 samba_cv_SIZEOF_OFF_T=yes
9445 else
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9448 rm -fr conftest*
9449 samba_cv_SIZEOF_OFF_T=no
9451 rm -fr conftest*
9456 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9457 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9458 cat >> confdefs.h <<\EOF
9459 #define SIZEOF_OFF_T 8
9464 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9465 echo "configure:9466: checking for off64_t" >&5
9466 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9468 else
9470 if test "$cross_compiling" = yes; then
9471 samba_cv_HAVE_OFF64_T=cross
9472 else
9473 cat > conftest.$ac_ext <<EOF
9474 #line 9475 "configure"
9475 #include "confdefs.h"
9477 #if defined(HAVE_UNISTD_H)
9478 #include <unistd.h>
9479 #endif
9480 #include <stdio.h>
9481 #include <sys/stat.h>
9482 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9484 if { (eval echo configure:9485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9485 then
9486 samba_cv_HAVE_OFF64_T=yes
9487 else
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9490 rm -fr conftest*
9491 samba_cv_HAVE_OFF64_T=no
9493 rm -fr conftest*
9498 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9499 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9500 cat >> confdefs.h <<\EOF
9501 #define HAVE_OFF64_T 1
9506 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9507 echo "configure:9508: checking for 64 bit ino_t" >&5
9508 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
9510 else
9512 if test "$cross_compiling" = yes; then
9513 samba_cv_SIZEOF_INO_T=cross
9514 else
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 #include <stdio.h>
9519 #include <sys/stat.h>
9520 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9522 if { (eval echo configure:9523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9523 then
9524 samba_cv_SIZEOF_INO_T=yes
9525 else
9526 echo "configure: failed program was:" >&5
9527 cat conftest.$ac_ext >&5
9528 rm -fr conftest*
9529 samba_cv_SIZEOF_INO_T=no
9531 rm -fr conftest*
9536 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9537 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9538 cat >> confdefs.h <<\EOF
9539 #define SIZEOF_INO_T 8
9544 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9545 echo "configure:9546: checking for ino64_t" >&5
9546 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9547 echo $ac_n "(cached) $ac_c" 1>&6
9548 else
9550 if test "$cross_compiling" = yes; then
9551 samba_cv_HAVE_INO64_T=cross
9552 else
9553 cat > conftest.$ac_ext <<EOF
9554 #line 9555 "configure"
9555 #include "confdefs.h"
9557 #if defined(HAVE_UNISTD_H)
9558 #include <unistd.h>
9559 #endif
9560 #include <stdio.h>
9561 #include <sys/stat.h>
9562 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9565 then
9566 samba_cv_HAVE_INO64_T=yes
9567 else
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -fr conftest*
9571 samba_cv_HAVE_INO64_T=no
9573 rm -fr conftest*
9578 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9579 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9580 cat >> confdefs.h <<\EOF
9581 #define HAVE_INO64_T 1
9586 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9587 echo "configure:9588: checking for dev64_t" >&5
9588 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9589 echo $ac_n "(cached) $ac_c" 1>&6
9590 else
9592 if test "$cross_compiling" = yes; then
9593 samba_cv_HAVE_DEV64_T=cross
9594 else
9595 cat > conftest.$ac_ext <<EOF
9596 #line 9597 "configure"
9597 #include "confdefs.h"
9599 #if defined(HAVE_UNISTD_H)
9600 #include <unistd.h>
9601 #endif
9602 #include <stdio.h>
9603 #include <sys/stat.h>
9604 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9606 if { (eval echo configure:9607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9607 then
9608 samba_cv_HAVE_DEV64_T=yes
9609 else
9610 echo "configure: failed program was:" >&5
9611 cat conftest.$ac_ext >&5
9612 rm -fr conftest*
9613 samba_cv_HAVE_DEV64_T=no
9615 rm -fr conftest*
9620 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9621 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9622 cat >> confdefs.h <<\EOF
9623 #define HAVE_DEV64_T 1
9628 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9629 echo "configure:9630: checking for struct dirent64" >&5
9630 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9632 else
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9638 #if defined(HAVE_UNISTD_H)
9639 #include <unistd.h>
9640 #endif
9641 #include <sys/types.h>
9642 #include <dirent.h>
9643 int main() {
9644 struct dirent64 de;
9645 ; return 0; }
9647 if { (eval echo configure:9648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9648 rm -rf conftest*
9649 samba_cv_HAVE_STRUCT_DIRENT64=yes
9650 else
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9653 rm -rf conftest*
9654 samba_cv_HAVE_STRUCT_DIRENT64=no
9656 rm -f conftest*
9659 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9660 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9661 cat >> confdefs.h <<\EOF
9662 #define HAVE_STRUCT_DIRENT64 1
9667 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9668 echo "configure:9669: checking for major macro" >&5
9669 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9671 else
9673 if test "$cross_compiling" = yes; then
9674 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9675 else
9676 cat > conftest.$ac_ext <<EOF
9677 #line 9678 "configure"
9678 #include "confdefs.h"
9680 #if defined(HAVE_UNISTD_H)
9681 #include <unistd.h>
9682 #endif
9683 #include <sys/types.h>
9684 main() { dev_t dev; int i = major(dev); return 0; }
9686 if { (eval echo configure:9687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9687 then
9688 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9689 else
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9692 rm -fr conftest*
9693 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9695 rm -fr conftest*
9700 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9701 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9702 cat >> confdefs.h <<\EOF
9703 #define HAVE_DEVICE_MAJOR_FN 1
9708 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9709 echo "configure:9710: checking for minor macro" >&5
9710 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9711 echo $ac_n "(cached) $ac_c" 1>&6
9712 else
9714 if test "$cross_compiling" = yes; then
9715 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9716 else
9717 cat > conftest.$ac_ext <<EOF
9718 #line 9719 "configure"
9719 #include "confdefs.h"
9721 #if defined(HAVE_UNISTD_H)
9722 #include <unistd.h>
9723 #endif
9724 #include <sys/types.h>
9725 main() { dev_t dev; int i = minor(dev); return 0; }
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9728 then
9729 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9730 else
9731 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 rm -fr conftest*
9734 samba_cv_HAVE_DEVICE_MINOR_FN=no
9736 rm -fr conftest*
9741 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9742 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9743 cat >> confdefs.h <<\EOF
9744 #define HAVE_DEVICE_MINOR_FN 1
9749 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9750 echo "configure:9751: checking for unsigned char" >&5
9751 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9753 else
9755 if test "$cross_compiling" = yes; then
9756 samba_cv_HAVE_UNSIGNED_CHAR=cross
9757 else
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 #include <stdio.h>
9762 main() { char c; c=250; exit((c > 0)?0:1); }
9764 if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9765 then
9766 samba_cv_HAVE_UNSIGNED_CHAR=yes
9767 else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -fr conftest*
9771 samba_cv_HAVE_UNSIGNED_CHAR=no
9773 rm -fr conftest*
9778 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9779 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9780 cat >> confdefs.h <<\EOF
9781 #define HAVE_UNSIGNED_CHAR 1
9786 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9787 echo "configure:9788: checking for sin_len in sock" >&5
9788 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9790 else
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include <sys/types.h>
9796 #include <sys/socket.h>
9797 #include <netinet/in.h>
9798 int main() {
9799 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9800 ; return 0; }
9802 if { (eval echo configure:9803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9803 rm -rf conftest*
9804 samba_cv_HAVE_SOCK_SIN_LEN=yes
9805 else
9806 echo "configure: failed program was:" >&5
9807 cat conftest.$ac_ext >&5
9808 rm -rf conftest*
9809 samba_cv_HAVE_SOCK_SIN_LEN=no
9811 rm -f conftest*
9814 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9815 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9816 cat >> confdefs.h <<\EOF
9817 #define HAVE_SOCK_SIN_LEN 1
9822 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9823 echo "configure:9824: checking whether seekdir returns void" >&5
9824 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9825 echo $ac_n "(cached) $ac_c" 1>&6
9826 else
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9830 "configure"
9830 #include "confdefs.h"
9831 #include <sys/types.h>
9832 #include <dirent.h>
9833 void seekdir(DIR *d, long loc) { return; }
9834 int main() {
9835 return 0;
9836 ; return 0; }
9838 if { (eval echo configure:9839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9839 rm -rf conftest*
9840 samba_cv_SEEKDIR_RETURNS_VOID=yes
9841 else
9842 echo "configure: failed program was:" >&5
9843 cat conftest.$ac_ext >&5
9844 rm -rf conftest*
9845 samba_cv_SEEKDIR_RETURNS_VOID=no
9847 rm -f conftest*
9850 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9851 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9852 cat >> confdefs.h <<\EOF
9853 #define SEEKDIR_RETURNS_VOID 1
9858 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9859 echo "configure:9860: checking for __FUNCTION__ macro" >&5
9860 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9867 #include <stdio.h>
9868 int main() {
9869 printf("%s\n", __FUNCTION__);
9870 ; return 0; }
9872 if { (eval echo configure:9873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9873 rm -rf conftest*
9874 samba_cv_HAVE_FUNCTION_MACRO=yes
9875 else
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 rm -rf conftest*
9879 samba_cv_HAVE_FUNCTION_MACRO=no
9881 rm -f conftest*
9884 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9885 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9886 cat >> confdefs.h <<\EOF
9887 #define HAVE_FUNCTION_MACRO 1
9892 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9893 echo "configure:9894: checking if gettimeofday takes tz argument" >&5
9894 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9895 echo $ac_n "(cached) $ac_c" 1>&6
9896 else
9898 if test "$cross_compiling" = yes; then
9899 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9900 else
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9905 #include <sys/time.h>
9906 #include <unistd.h>
9907 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9910 then
9911 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9912 else
9913 echo "configure: failed program was:" >&5
9914 cat conftest.$ac_ext >&5
9915 rm -fr conftest*
9916 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9918 rm -fr conftest*
9923 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9924 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9925 cat >> confdefs.h <<\EOF
9926 #define HAVE_GETTIMEOFDAY_TZ 1
9931 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9932 echo "configure:9933: checking for __va_copy" >&5
9933 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9935 else
9937 cat > conftest.$ac_ext <<EOF
9938 #line 9939 "configure"
9939 #include "confdefs.h"
9940 #include <stdarg.h>
9941 va_list ap1,ap2;
9942 int main() {
9943 __va_copy(ap1,ap2);
9944 ; return 0; }
9946 if { (eval echo configure:9947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9947 rm -rf conftest*
9948 samba_cv_HAVE_VA_COPY=yes
9949 else
9950 echo "configure: failed program was:" >&5
9951 cat conftest.$ac_ext >&5
9952 rm -rf conftest*
9953 samba_cv_HAVE_VA_COPY=no
9955 rm -f conftest*
9958 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9959 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9960 cat >> confdefs.h <<\EOF
9961 #define HAVE_VA_COPY 1
9966 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9967 echo "configure:9968: checking for C99 vsnprintf" >&5
9968 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9970 else
9972 if test "$cross_compiling" = yes; then
9973 samba_cv_HAVE_C99_VSNPRINTF=cross
9974 else
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9979 #include <sys/types.h>
9980 #include <stdarg.h>
9981 void foo(const char *format, ...) {
9982 va_list ap;
9983 int len;
9984 char buf[5];
9986 va_start(ap, format);
9987 len = vsnprintf(buf, 0, format, ap);
9988 va_end(ap);
9989 if (len != 5) exit(1);
9991 va_start(ap, format);
9992 len = vsnprintf(0, 0, format, ap);
9993 va_end(ap);
9994 if (len != 5) exit(1);
9996 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9998 exit(0);
10000 main() { foo("hello"); }
10003 if { (eval echo configure:10004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10004 then
10005 samba_cv_HAVE_C99_VSNPRINTF=yes
10006 else
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 rm -fr conftest*
10010 samba_cv_HAVE_C99_VSNPRINTF=no
10012 rm -fr conftest*
10017 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
10018 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
10019 cat >> confdefs.h <<\EOF
10020 #define HAVE_C99_VSNPRINTF 1
10025 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
10026 echo "configure:10027: checking for broken readdir" >&5
10027 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
10028 echo $ac_n "(cached) $ac_c" 1>&6
10029 else
10031 if test "$cross_compiling" = yes; then
10032 samba_cv_HAVE_BROKEN_READDIR=cross
10033 else
10034 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure"
10036 #include "confdefs.h"
10037 #include <sys/types.h>
10038 #include <dirent.h>
10039 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
10040 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
10041 di->d_name[0] == 0) exit(0); exit(1);}
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10044 then
10045 samba_cv_HAVE_BROKEN_READDIR=yes
10046 else
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10049 rm -fr conftest*
10050 samba_cv_HAVE_BROKEN_READDIR=no
10052 rm -fr conftest*
10057 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
10058 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
10059 cat >> confdefs.h <<\EOF
10060 #define HAVE_BROKEN_READDIR 1
10065 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
10066 echo "configure:10067: checking for utimbuf" >&5
10067 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069 else
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 #include <sys/types.h>
10075 #include <utime.h>
10076 int main() {
10077 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
10078 ; return 0; }
10080 if { (eval echo configure:10081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10081 rm -rf conftest*
10082 samba_cv_HAVE_UTIMBUF=yes
10083 else
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 rm -rf conftest*
10087 samba_cv_HAVE_UTIMBUF=no
10089 rm -f conftest*
10092 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
10093 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
10094 cat >> confdefs.h <<\EOF
10095 #define HAVE_UTIMBUF 1
10101 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
10103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10104 echo "configure:10105: checking for $ac_func" >&5
10105 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10107 else
10108 cat > conftest.$ac_ext <<EOF
10109 #line 10110 "configure"
10110 #include "confdefs.h"
10111 /* System header to define __stub macros and hopefully few prototypes,
10112 which can conflict with char $ac_func(); below. */
10113 #include <assert.h>
10114 /* Override any gcc2 internal prototype to avoid an error. */
10115 /* We use char because int might match the return type of a gcc2
10116 builtin and then its argument prototype would still apply. */
10117 char $ac_func();
10119 int main() {
10121 /* The GNU C library defines this for functions which it implements
10122 to always fail with ENOSYS. Some functions are actually named
10123 something starting with __ and the normal name is an alias. */
10124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10125 choke me
10126 #else
10127 $ac_func();
10128 #endif
10130 ; return 0; }
10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10133 rm -rf conftest*
10134 eval "ac_cv_func_$ac_func=yes"
10135 else
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10138 rm -rf conftest*
10139 eval "ac_cv_func_$ac_func=no"
10141 rm -f conftest*
10144 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10145 echo "$ac_t""yes" 1>&6
10146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10147 cat >> confdefs.h <<EOF
10148 #define $ac_tr_func 1
10151 else
10152 echo "$ac_t""no" 1>&6
10154 done
10157 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
10158 echo "configure:10159: checking for ut_name in utmp" >&5
10159 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 #include <sys/types.h>
10167 #include <utmp.h>
10168 int main() {
10169 struct utmp ut; ut.ut_name[0] = 'a';
10170 ; return 0; }
10172 if { (eval echo configure:10173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10173 rm -rf conftest*
10174 samba_cv_HAVE_UT_UT_NAME=yes
10175 else
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10178 rm -rf conftest*
10179 samba_cv_HAVE_UT_UT_NAME=no
10181 rm -f conftest*
10184 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
10185 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
10186 cat >> confdefs.h <<\EOF
10187 #define HAVE_UT_UT_NAME 1
10192 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10193 echo "configure:10194: checking for ut_user in utmp" >&5
10194 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10195 echo $ac_n "(cached) $ac_c" 1>&6
10196 else
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 #include <sys/types.h>
10202 #include <utmp.h>
10203 int main() {
10204 struct utmp ut; ut.ut_user[0] = 'a';
10205 ; return 0; }
10207 if { (eval echo configure:10208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10208 rm -rf conftest*
10209 samba_cv_HAVE_UT_UT_USER=yes
10210 else
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10213 rm -rf conftest*
10214 samba_cv_HAVE_UT_UT_USER=no
10216 rm -f conftest*
10219 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10220 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10221 cat >> confdefs.h <<\EOF
10222 #define HAVE_UT_UT_USER 1
10227 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10228 echo "configure:10229: checking for ut_id in utmp" >&5
10229 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10230 echo $ac_n "(cached) $ac_c" 1>&6
10231 else
10233 cat > conftest.$ac_ext <<EOF
10234 #line 10235 "configure"
10235 #include "confdefs.h"
10236 #include <sys/types.h>
10237 #include <utmp.h>
10238 int main() {
10239 struct utmp ut; ut.ut_id[0] = 'a';
10240 ; return 0; }
10242 if { (eval echo configure:10243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10243 rm -rf conftest*
10244 samba_cv_HAVE_UT_UT_ID=yes
10245 else
10246 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5
10248 rm -rf conftest*
10249 samba_cv_HAVE_UT_UT_ID=no
10251 rm -f conftest*
10254 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10255 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10256 cat >> confdefs.h <<\EOF
10257 #define HAVE_UT_UT_ID 1
10262 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10263 echo "configure:10264: checking for ut_host in utmp" >&5
10264 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10265 echo $ac_n "(cached) $ac_c" 1>&6
10266 else
10268 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10272 #include <utmp.h>
10273 int main() {
10274 struct utmp ut; ut.ut_host[0] = 'a';
10275 ; return 0; }
10277 if { (eval echo configure:10278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10278 rm -rf conftest*
10279 samba_cv_HAVE_UT_UT_HOST=yes
10280 else
10281 echo "configure: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 rm -rf conftest*
10284 samba_cv_HAVE_UT_UT_HOST=no
10286 rm -f conftest*
10289 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10290 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10291 cat >> confdefs.h <<\EOF
10292 #define HAVE_UT_UT_HOST 1
10297 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10298 echo "configure:10299: checking for ut_time in utmp" >&5
10299 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10301 else
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10306 #include <sys/types.h>
10307 #include <utmp.h>
10308 int main() {
10309 struct utmp ut; time_t t; ut.ut_time = t;
10310 ; return 0; }
10312 if { (eval echo configure:10313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10313 rm -rf conftest*
10314 samba_cv_HAVE_UT_UT_TIME=yes
10315 else
10316 echo "configure: failed program was:" >&5
10317 cat conftest.$ac_ext >&5
10318 rm -rf conftest*
10319 samba_cv_HAVE_UT_UT_TIME=no
10321 rm -f conftest*
10324 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10325 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10326 cat >> confdefs.h <<\EOF
10327 #define HAVE_UT_UT_TIME 1
10332 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10333 echo "configure:10334: checking for ut_tv in utmp" >&5
10334 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10336 else
10338 cat > conftest.$ac_ext <<EOF
10339 #line 10340 "configure"
10340 #include "confdefs.h"
10341 #include <sys/types.h>
10342 #include <utmp.h>
10343 int main() {
10344 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10345 ; return 0; }
10347 if { (eval echo configure:10348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10348 rm -rf conftest*
10349 samba_cv_HAVE_UT_UT_TV=yes
10350 else
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 rm -rf conftest*
10354 samba_cv_HAVE_UT_UT_TV=no
10356 rm -f conftest*
10359 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10360 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10361 cat >> confdefs.h <<\EOF
10362 #define HAVE_UT_UT_TV 1
10367 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10368 echo "configure:10369: checking for ut_type in utmp" >&5
10369 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10371 else
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10376 #include <sys/types.h>
10377 #include <utmp.h>
10378 int main() {
10379 struct utmp ut; ut.ut_type = 0;
10380 ; return 0; }
10382 if { (eval echo configure:10383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10383 rm -rf conftest*
10384 samba_cv_HAVE_UT_UT_TYPE=yes
10385 else
10386 echo "configure: failed program was:" >&5
10387 cat conftest.$ac_ext >&5
10388 rm -rf conftest*
10389 samba_cv_HAVE_UT_UT_TYPE=no
10391 rm -f conftest*
10394 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10395 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10396 cat >> confdefs.h <<\EOF
10397 #define HAVE_UT_UT_TYPE 1
10402 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10403 echo "configure:10404: checking for ut_pid in utmp" >&5
10404 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10405 echo $ac_n "(cached) $ac_c" 1>&6
10406 else
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 #include <sys/types.h>
10412 #include <utmp.h>
10413 int main() {
10414 struct utmp ut; ut.ut_pid = 0;
10415 ; return 0; }
10417 if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10418 rm -rf conftest*
10419 samba_cv_HAVE_UT_UT_PID=yes
10420 else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -rf conftest*
10424 samba_cv_HAVE_UT_UT_PID=no
10426 rm -f conftest*
10429 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10430 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10431 cat >> confdefs.h <<\EOF
10432 #define HAVE_UT_UT_PID 1
10437 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10438 echo "configure:10439: checking for ut_exit in utmp" >&5
10439 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10443 cat > conftest.$ac_ext <<EOF
10444 #line 10445 "configure"
10445 #include "confdefs.h"
10446 #include <sys/types.h>
10447 #include <utmp.h>
10448 int main() {
10449 struct utmp ut; ut.ut_exit.e_exit = 0;
10450 ; return 0; }
10452 if { (eval echo configure:10453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10453 rm -rf conftest*
10454 samba_cv_HAVE_UT_UT_EXIT=yes
10455 else
10456 echo "configure: failed program was:" >&5
10457 cat conftest.$ac_ext >&5
10458 rm -rf conftest*
10459 samba_cv_HAVE_UT_UT_EXIT=no
10461 rm -f conftest*
10464 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10465 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10466 cat >> confdefs.h <<\EOF
10467 #define HAVE_UT_UT_EXIT 1
10472 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10473 echo "configure:10474: checking for ut_addr in utmp" >&5
10474 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10476 else
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 #include <sys/types.h>
10482 #include <utmp.h>
10483 int main() {
10484 struct utmp ut; ut.ut_addr = 0;
10485 ; return 0; }
10487 if { (eval echo configure:10488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10488 rm -rf conftest*
10489 samba_cv_HAVE_UT_UT_ADDR=yes
10490 else
10491 echo "configure: failed program was:" >&5
10492 cat conftest.$ac_ext >&5
10493 rm -rf conftest*
10494 samba_cv_HAVE_UT_UT_ADDR=no
10496 rm -f conftest*
10499 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10500 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_UT_UT_ADDR 1
10507 if test x$ac_cv_func_pututline = xyes ; then
10508 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10509 echo "configure:10510: checking whether pututline returns pointer" >&5
10510 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10512 else
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10517 #include <sys/types.h>
10518 #include <utmp.h>
10519 int main() {
10520 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10521 ; return 0; }
10523 if { (eval echo configure:10524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10524 rm -rf conftest*
10525 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10526 else
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10529 rm -rf conftest*
10530 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10532 rm -f conftest*
10535 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10536 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10537 cat >> confdefs.h <<\EOF
10538 #define PUTUTLINE_RETURNS_UTMP 1
10544 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10545 echo "configure:10546: checking for ut_syslen in utmpx" >&5
10546 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10548 else
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 #include <sys/types.h>
10554 #include <utmpx.h>
10555 int main() {
10556 struct utmpx ux; ux.ut_syslen = 0;
10557 ; return 0; }
10559 if { (eval echo configure:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10560 rm -rf conftest*
10561 samba_cv_HAVE_UX_UT_SYSLEN=yes
10562 else
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10565 rm -rf conftest*
10566 samba_cv_HAVE_UX_UT_SYSLEN=no
10568 rm -f conftest*
10571 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10572 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10573 cat >> confdefs.h <<\EOF
10574 #define HAVE_UX_UT_SYSLEN 1
10580 #################################################
10581 # check for libiconv support
10582 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10583 echo "configure:10584: checking whether to use libiconv" >&5
10584 # Check whether --with-libiconv or --without-libiconv was given.
10585 if test "${with_libiconv+set}" = set; then
10586 withval="$with_libiconv"
10587 case "$withval" in
10589 echo "$ac_t""no" 1>&6
10592 echo "$ac_t""yes" 1>&6
10593 CFLAGS="$CFLAGS -I$withval/include"
10594 LDFLAGS="$LDFLAGS -L$withval/lib"
10595 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10596 echo "configure:10597: checking for iconv_open in -liconv" >&5
10597 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10598 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10599 echo $ac_n "(cached) $ac_c" 1>&6
10600 else
10601 ac_save_LIBS="$LIBS"
10602 LIBS="-liconv $LIBS"
10603 cat > conftest.$ac_ext <<EOF
10604 #line 10605 "configure"
10605 #include "confdefs.h"
10606 /* Override any gcc2 internal prototype to avoid an error. */
10607 /* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10609 char iconv_open();
10611 int main() {
10612 iconv_open()
10613 ; return 0; }
10615 if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10616 rm -rf conftest*
10617 eval "ac_cv_lib_$ac_lib_var=yes"
10618 else
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10621 rm -rf conftest*
10622 eval "ac_cv_lib_$ac_lib_var=no"
10624 rm -f conftest*
10625 LIBS="$ac_save_LIBS"
10628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10630 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10631 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10632 cat >> confdefs.h <<EOF
10633 #define $ac_tr_lib 1
10636 LIBS="-liconv $LIBS"
10638 else
10639 echo "$ac_t""no" 1>&6
10642 cat >> confdefs.h <<EOF
10643 #define WITH_LIBICONV "${withval}"
10647 esac
10648 else
10649 echo "$ac_t""no" 1>&6
10655 ############
10656 # check for iconv in libc
10657 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10658 echo "configure:10659: checking for working iconv" >&5
10659 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10660 echo $ac_n "(cached) $ac_c" 1>&6
10661 else
10663 if test "$cross_compiling" = yes; then
10664 samba_cv_HAVE_NATIVE_ICONV=cross
10665 else
10666 cat > conftest.$ac_ext <<EOF
10667 #line 10668 "configure"
10668 #include "confdefs.h"
10670 #include <iconv.h>
10671 main() {
10672 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10673 if (cd == 0 || cd == (iconv_t)-1) return -1;
10674 return 0;
10678 if { (eval echo configure:10679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10679 then
10680 samba_cv_HAVE_NATIVE_ICONV=yes
10681 else
10682 echo "configure: failed program was:" >&5
10683 cat conftest.$ac_ext >&5
10684 rm -fr conftest*
10685 samba_cv_HAVE_NATIVE_ICONV=no
10687 rm -fr conftest*
10692 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10693 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10694 cat >> confdefs.h <<\EOF
10695 #define HAVE_NATIVE_ICONV 1
10701 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10702 echo "configure:10703: checking for Linux kernel oplocks" >&5
10703 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10705 else
10707 if test "$cross_compiling" = yes; then
10708 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10709 else
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10714 #include <sys/types.h>
10715 #include <fcntl.h>
10716 #ifndef F_GETLEASE
10717 #define F_GETLEASE 1025
10718 #endif
10719 main() {
10720 int fd = open("/dev/null", O_RDONLY);
10721 return fcntl(fd, F_GETLEASE, 0) == -1;
10725 if { (eval echo configure:10726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10726 then
10727 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10728 else
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10731 rm -fr conftest*
10732 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10734 rm -fr conftest*
10739 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10740 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10741 cat >> confdefs.h <<\EOF
10742 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10747 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10748 echo "configure:10749: checking for kernel change notify support" >&5
10749 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10750 echo $ac_n "(cached) $ac_c" 1>&6
10751 else
10753 if test "$cross_compiling" = yes; then
10754 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10755 else
10756 cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure"
10758 #include "confdefs.h"
10760 #include <sys/types.h>
10761 #include <fcntl.h>
10762 #include <signal.h>
10763 #ifndef F_NOTIFY
10764 #define F_NOTIFY 1026
10765 #endif
10766 main() {
10767 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10771 if { (eval echo configure:10772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10772 then
10773 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10774 else
10775 echo "configure: failed program was:" >&5
10776 cat conftest.$ac_ext >&5
10777 rm -fr conftest*
10778 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10780 rm -fr conftest*
10785 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10786 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes"; then
10787 cat >> confdefs.h <<\EOF
10788 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10793 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10794 echo "configure:10795: checking for kernel share modes" >&5
10795 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10796 echo $ac_n "(cached) $ac_c" 1>&6
10797 else
10799 if test "$cross_compiling" = yes; then
10800 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10801 else
10802 cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10806 #include <sys/types.h>
10807 #include <fcntl.h>
10808 #include <signal.h>
10809 #include <sys/file.h>
10810 #ifndef LOCK_MAND
10811 #define LOCK_MAND 32
10812 #define LOCK_READ 64
10813 #endif
10814 main() {
10815 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10819 if { (eval echo configure:10820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10820 then
10821 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10822 else
10823 echo "configure: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 rm -fr conftest*
10826 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10828 rm -fr conftest*
10833 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10834 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10835 cat >> confdefs.h <<\EOF
10836 #define HAVE_KERNEL_SHARE_MODES 1
10844 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10845 echo "configure:10846: checking for IRIX kernel oplock type definitions" >&5
10846 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10847 echo $ac_n "(cached) $ac_c" 1>&6
10848 else
10850 cat > conftest.$ac_ext <<EOF
10851 #line 10852 "configure"
10852 #include "confdefs.h"
10853 #include <sys/types.h>
10854 #include <fcntl.h>
10855 int main() {
10856 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10857 ; return 0; }
10859 if { (eval echo configure:10860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10860 rm -rf conftest*
10861 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10862 else
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10865 rm -rf conftest*
10866 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10868 rm -f conftest*
10871 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10872 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10873 cat >> confdefs.h <<\EOF
10874 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10879 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10880 echo "configure:10881: checking for irix specific capabilities" >&5
10881 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10883 else
10885 if test "$cross_compiling" = yes; then
10886 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10887 else
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10891 #include <sys/types.h>
10892 #include <sys/capability.h>
10893 main() {
10894 cap_t cap;
10895 if ((cap = cap_get_proc()) == NULL)
10896 exit(1);
10897 cap->cap_effective |= CAP_NETWORK_MGT;
10898 cap->cap_inheritable |= CAP_NETWORK_MGT;
10899 cap_set_proc(cap);
10900 exit(0);
10904 if { (eval echo configure:10905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10905 then
10906 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10907 else
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10910 rm -fr conftest*
10911 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10913 rm -fr conftest*
10918 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10919 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10920 cat >> confdefs.h <<\EOF
10921 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10927 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10928 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10931 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10932 echo "configure:10933: checking for int16 typedef included by rpc/rpc.h" >&5
10933 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10934 echo $ac_n "(cached) $ac_c" 1>&6
10935 else
10937 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure"
10939 #include "confdefs.h"
10940 #include <sys/types.h>
10941 #if defined(HAVE_RPC_RPC_H)
10942 #include <rpc/rpc.h>
10943 #endif
10944 int main() {
10945 int16 testvar;
10946 ; return 0; }
10948 if { (eval echo configure:10949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10949 rm -rf conftest*
10950 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10951 else
10952 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5
10954 rm -rf conftest*
10955 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10957 rm -f conftest*
10960 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10961 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10962 cat >> confdefs.h <<\EOF
10963 #define HAVE_INT16_FROM_RPC_RPC_H 1
10968 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10969 echo "configure:10970: checking for uint16 typedef included by rpc/rpc.h" >&5
10970 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10971 echo $ac_n "(cached) $ac_c" 1>&6
10972 else
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10977 #include <sys/types.h>
10978 #if defined(HAVE_RPC_RPC_H)
10979 #include <rpc/rpc.h>
10980 #endif
10981 int main() {
10982 uint16 testvar;
10983 ; return 0; }
10985 if { (eval echo configure:10986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10986 rm -rf conftest*
10987 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10988 else
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10991 rm -rf conftest*
10992 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10994 rm -f conftest*
10997 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10998 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10999 cat >> confdefs.h <<\EOF
11000 #define HAVE_UINT16_FROM_RPC_RPC_H 1
11005 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11006 echo "configure:11007: checking for int32 typedef included by rpc/rpc.h" >&5
11007 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11009 else
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11014 #include <sys/types.h>
11015 #if defined(HAVE_RPC_RPC_H)
11016 #include <rpc/rpc.h>
11017 #endif
11018 int main() {
11019 int32 testvar;
11020 ; return 0; }
11022 if { (eval echo configure:11023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11023 rm -rf conftest*
11024 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
11025 else
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 rm -rf conftest*
11029 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
11031 rm -f conftest*
11034 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
11035 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
11036 cat >> confdefs.h <<\EOF
11037 #define HAVE_INT32_FROM_RPC_RPC_H 1
11042 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
11043 echo "configure:11044: checking for uint32 typedef included by rpc/rpc.h" >&5
11044 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
11045 echo $ac_n "(cached) $ac_c" 1>&6
11046 else
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11051 #include <sys/types.h>
11052 #if defined(HAVE_RPC_RPC_H)
11053 #include <rpc/rpc.h>
11054 #endif
11055 int main() {
11056 uint32 testvar;
11057 ; return 0; }
11059 if { (eval echo configure:11060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11060 rm -rf conftest*
11061 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
11062 else
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 rm -rf conftest*
11066 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
11068 rm -f conftest*
11071 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
11072 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
11073 cat >> confdefs.h <<\EOF
11074 #define HAVE_UINT32_FROM_RPC_RPC_H 1
11080 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
11081 echo "configure:11082: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
11082 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
11083 echo $ac_n "(cached) $ac_c" 1>&6
11084 else
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11089 #include <sys/types.h>
11090 #ifdef HAVE_SYS_SECURITY_H
11091 #include <sys/security.h>
11092 #include <prot.h>
11093 #endif /* HAVE_SYS_SECURITY_H */
11094 #if defined(HAVE_RPC_RPC_H)
11095 #include <rpc/rpc.h>
11096 #endif
11097 int main() {
11098 int 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_RPC_AUTH_ERROR_CONFLICT=no
11104 else
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11107 rm -rf conftest*
11108 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
11110 rm -f conftest*
11113 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
11114 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
11115 cat >> confdefs.h <<\EOF
11116 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
11121 echo $ac_n "checking for test routines""... $ac_c" 1>&6
11122 echo "configure:11123: checking for test routines" >&5
11123 if test "$cross_compiling" = yes; then
11124 echo "configure: warning: cannot run when cross-compiling" 1>&2
11125 else
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11129 #include "${srcdir-.}/tests/trivial.c"
11131 if { (eval echo configure:11132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11132 then
11133 echo "$ac_t""yes" 1>&6
11134 else
11135 echo "configure: failed program was:" >&5
11136 cat conftest.$ac_ext >&5
11137 rm -fr conftest*
11138 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
11140 rm -fr conftest*
11144 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
11145 echo "configure:11146: checking for ftruncate extend" >&5
11146 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148 else
11150 if test "$cross_compiling" = yes; then
11151 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
11152 else
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11156 #include "${srcdir-.}/tests/ftruncate.c"
11158 if { (eval echo configure:11159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11159 then
11160 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
11161 else
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 rm -fr conftest*
11165 samba_cv_HAVE_FTRUNCATE_EXTEND=no
11167 rm -fr conftest*
11172 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
11173 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
11174 cat >> confdefs.h <<\EOF
11175 #define HAVE_FTRUNCATE_EXTEND 1
11180 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
11181 echo "configure:11182: checking for AF_LOCAL socket support" >&5
11182 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11184 else
11186 if test "$cross_compiling" = yes; then
11187 samba_cv_HAVE_WORKING_AF_LOCAL=cross
11188 else
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include "${srcdir-.}/tests/unixsock.c"
11194 if { (eval echo configure:11195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11195 then
11196 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11197 else
11198 echo "configure: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 rm -fr conftest*
11201 samba_cv_HAVE_WORKING_AF_LOCAL=no
11203 rm -fr conftest*
11208 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11209 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11210 then
11211 cat >> confdefs.h <<\EOF
11212 #define HAVE_WORKING_AF_LOCAL 1
11217 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11218 echo "configure:11219: checking for broken getgroups" >&5
11219 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11221 else
11223 if test "$cross_compiling" = yes; then
11224 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11225 else
11226 cat > conftest.$ac_ext <<EOF
11227 #line 11228 "configure"
11228 #include "confdefs.h"
11229 #include "${srcdir-.}/tests/getgroups.c"
11231 if { (eval echo configure:11232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11232 then
11233 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11234 else
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -fr conftest*
11238 samba_cv_HAVE_BROKEN_GETGROUPS=no
11240 rm -fr conftest*
11245 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11246 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11247 cat >> confdefs.h <<\EOF
11248 #define HAVE_BROKEN_GETGROUPS 1
11253 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11254 echo "configure:11255: checking whether getpass should be replaced" >&5
11255 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11257 else
11259 SAVE_CPPFLAGS="$CPPFLAGS"
11260 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
11261 cat > conftest.$ac_ext <<EOF
11262 #line 11263 "configure"
11263 #include "confdefs.h"
11265 #define REPLACE_GETPASS 1
11266 #define NO_CONFIG_H 1
11267 #define main dont_declare_main
11268 #include "${srcdir-.}/lib/getsmbpass.c"
11269 #undef main
11271 int main() {
11273 ; return 0; }
11275 if { (eval echo configure:11276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11276 rm -rf conftest*
11277 samba_cv_REPLACE_GETPASS=yes
11278 else
11279 echo "configure: failed program was:" >&5
11280 cat conftest.$ac_ext >&5
11281 rm -rf conftest*
11282 samba_cv_REPLACE_GETPASS=no
11284 rm -f conftest*
11285 CPPFLAGS="$SAVE_CPPFLAGS"
11289 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11290 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11291 cat >> confdefs.h <<\EOF
11292 #define REPLACE_GETPASS 1
11297 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11298 echo "configure:11299: checking for broken inet_ntoa" >&5
11299 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11301 else
11303 if test "$cross_compiling" = yes; then
11304 samba_cv_REPLACE_INET_NTOA=cross
11305 else
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11310 #include <stdio.h>
11311 #include <sys/types.h>
11312 #include <netinet/in.h>
11313 #ifdef HAVE_ARPA_INET_H
11314 #include <arpa/inet.h>
11315 #endif
11316 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11317 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11318 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11319 exit(1);}
11321 if { (eval echo configure:11322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11322 then
11323 samba_cv_REPLACE_INET_NTOA=yes
11324 else
11325 echo "configure: failed program was:" >&5
11326 cat conftest.$ac_ext >&5
11327 rm -fr conftest*
11328 samba_cv_REPLACE_INET_NTOA=no
11330 rm -fr conftest*
11335 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11336 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11337 cat >> confdefs.h <<\EOF
11338 #define REPLACE_INET_NTOA 1
11343 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11344 echo "configure:11345: checking for secure mkstemp" >&5
11345 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11347 else
11349 if test "$cross_compiling" = yes; then
11350 samba_cv_HAVE_SECURE_MKSTEMP=cross
11351 else
11352 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11355 #include <stdlib.h>
11356 #include <sys/types.h>
11357 #include <sys/stat.h>
11358 #include <unistd.h>
11359 main() {
11360 struct stat st;
11361 char tpl[20]="/tmp/test.XXXXXX";
11362 int fd = mkstemp(tpl);
11363 if (fd == -1) exit(1);
11364 unlink(tpl);
11365 if (fstat(fd, &st) != 0) exit(1);
11366 if ((st.st_mode & 0777) != 0600) exit(1);
11367 exit(0);
11370 if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11371 then
11372 samba_cv_HAVE_SECURE_MKSTEMP=yes
11373 else
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11376 rm -fr conftest*
11377 samba_cv_HAVE_SECURE_MKSTEMP=no
11379 rm -fr conftest*
11384 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11385 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11386 cat >> confdefs.h <<\EOF
11387 #define HAVE_SECURE_MKSTEMP 1
11392 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11393 echo "configure:11394: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11394 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11395 echo $ac_n "(cached) $ac_c" 1>&6
11396 else
11398 if test "$cross_compiling" = yes; then
11399 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11400 else
11401 cat > conftest.$ac_ext <<EOF
11402 #line 11403 "configure"
11403 #include "confdefs.h"
11404 #include <unistd.h>
11405 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11407 if { (eval echo configure:11408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11408 then
11409 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11410 else
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11413 rm -fr conftest*
11414 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11416 rm -fr conftest*
11421 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11422 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11423 cat >> confdefs.h <<\EOF
11424 #define SYSCONF_SC_NGROUPS_MAX 1
11429 echo $ac_n "checking for root""... $ac_c" 1>&6
11430 echo "configure:11431: checking for root" >&5
11431 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11433 else
11435 if test "$cross_compiling" = yes; then
11436 samba_cv_HAVE_ROOT=cross
11437 else
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11441 main() { exit(getuid() != 0); }
11443 if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11444 then
11445 samba_cv_HAVE_ROOT=yes
11446 else
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11449 rm -fr conftest*
11450 samba_cv_HAVE_ROOT=no
11452 rm -fr conftest*
11457 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11458 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11459 cat >> confdefs.h <<\EOF
11460 #define HAVE_ROOT 1
11463 else
11464 echo "configure: warning: running as non-root will disable some tests" 1>&2
11467 ##################
11468 # look for a method of finding the list of network interfaces
11469 iface=no;
11470 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11471 echo "configure:11472: checking for iface AIX" >&5
11472 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11473 echo $ac_n "(cached) $ac_c" 1>&6
11474 else
11476 if test "$cross_compiling" = yes; then
11477 samba_cv_HAVE_IFACE_AIX=cross
11478 else
11479 cat > conftest.$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11483 #define HAVE_IFACE_AIX 1
11484 #define AUTOCONF_TEST 1
11485 #include "confdefs.h"
11486 #include "${srcdir-.}/lib/interfaces.c"
11488 if { (eval echo configure:11489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11489 then
11490 samba_cv_HAVE_IFACE_AIX=yes
11491 else
11492 echo "configure: failed program was:" >&5
11493 cat conftest.$ac_ext >&5
11494 rm -fr conftest*
11495 samba_cv_HAVE_IFACE_AIX=no
11497 rm -fr conftest*
11502 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11503 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11504 iface=yes;cat >> confdefs.h <<\EOF
11505 #define HAVE_IFACE_AIX 1
11510 if test $iface = no; then
11511 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11512 echo "configure:11513: checking for iface ifconf" >&5
11513 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11514 echo $ac_n "(cached) $ac_c" 1>&6
11515 else
11517 if test "$cross_compiling" = yes; then
11518 samba_cv_HAVE_IFACE_IFCONF=cross
11519 else
11520 cat > conftest.$ac_ext <<EOF
11521 #line 11522 "configure"
11522 #include "confdefs.h"
11524 #define HAVE_IFACE_IFCONF 1
11525 #define AUTOCONF_TEST 1
11526 #include "confdefs.h"
11527 #include "${srcdir-.}/lib/interfaces.c"
11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11530 then
11531 samba_cv_HAVE_IFACE_IFCONF=yes
11532 else
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11535 rm -fr conftest*
11536 samba_cv_HAVE_IFACE_IFCONF=no
11538 rm -fr conftest*
11543 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11544 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11545 iface=yes;cat >> confdefs.h <<\EOF
11546 #define HAVE_IFACE_IFCONF 1
11552 if test $iface = no; then
11553 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11554 echo "configure:11555: checking for iface ifreq" >&5
11555 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11556 echo $ac_n "(cached) $ac_c" 1>&6
11557 else
11559 if test "$cross_compiling" = yes; then
11560 samba_cv_HAVE_IFACE_IFREQ=cross
11561 else
11562 cat > conftest.$ac_ext <<EOF
11563 #line 11564 "configure"
11564 #include "confdefs.h"
11566 #define HAVE_IFACE_IFREQ 1
11567 #define AUTOCONF_TEST 1
11568 #include "confdefs.h"
11569 #include "${srcdir-.}/lib/interfaces.c"
11571 if { (eval echo configure:11572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11572 then
11573 samba_cv_HAVE_IFACE_IFREQ=yes
11574 else
11575 echo "configure: failed program was:" >&5
11576 cat conftest.$ac_ext >&5
11577 rm -fr conftest*
11578 samba_cv_HAVE_IFACE_IFREQ=no
11580 rm -fr conftest*
11585 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11586 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11587 iface=yes;cat >> confdefs.h <<\EOF
11588 #define HAVE_IFACE_IFREQ 1
11595 ################################################
11596 # look for a method of setting the effective uid
11597 seteuid=no;
11598 if test $seteuid = no; then
11599 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11600 echo "configure:11601: checking for setresuid" >&5
11601 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11603 else
11605 if test "$cross_compiling" = yes; then
11606 samba_cv_USE_SETRESUID=cross
11607 else
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11612 #define AUTOCONF_TEST 1
11613 #define USE_SETRESUID 1
11614 #include "confdefs.h"
11615 #include "${srcdir-.}/lib/util_sec.c"
11617 if { (eval echo configure:11618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11618 then
11619 samba_cv_USE_SETRESUID=yes
11620 else
11621 echo "configure: failed program was:" >&5
11622 cat conftest.$ac_ext >&5
11623 rm -fr conftest*
11624 samba_cv_USE_SETRESUID=no
11626 rm -fr conftest*
11631 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11632 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11633 seteuid=yes;cat >> confdefs.h <<\EOF
11634 #define USE_SETRESUID 1
11641 if test $seteuid = no; then
11642 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11643 echo "configure:11644: checking for setreuid" >&5
11644 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11646 else
11648 if test "$cross_compiling" = yes; then
11649 samba_cv_USE_SETREUID=cross
11650 else
11651 cat > conftest.$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11655 #define AUTOCONF_TEST 1
11656 #define USE_SETREUID 1
11657 #include "confdefs.h"
11658 #include "${srcdir-.}/lib/util_sec.c"
11660 if { (eval echo configure:11661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11661 then
11662 samba_cv_USE_SETREUID=yes
11663 else
11664 echo "configure: failed program was:" >&5
11665 cat conftest.$ac_ext >&5
11666 rm -fr conftest*
11667 samba_cv_USE_SETREUID=no
11669 rm -fr conftest*
11674 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11675 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11676 seteuid=yes;cat >> confdefs.h <<\EOF
11677 #define USE_SETREUID 1
11683 if test $seteuid = no; then
11684 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11685 echo "configure:11686: checking for seteuid" >&5
11686 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11687 echo $ac_n "(cached) $ac_c" 1>&6
11688 else
11690 if test "$cross_compiling" = yes; then
11691 samba_cv_USE_SETEUID=cross
11692 else
11693 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure"
11695 #include "confdefs.h"
11697 #define AUTOCONF_TEST 1
11698 #define USE_SETEUID 1
11699 #include "confdefs.h"
11700 #include "${srcdir-.}/lib/util_sec.c"
11702 if { (eval echo configure:11703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11703 then
11704 samba_cv_USE_SETEUID=yes
11705 else
11706 echo "configure: failed program was:" >&5
11707 cat conftest.$ac_ext >&5
11708 rm -fr conftest*
11709 samba_cv_USE_SETEUID=no
11711 rm -fr conftest*
11716 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11717 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11718 seteuid=yes;cat >> confdefs.h <<\EOF
11719 #define USE_SETEUID 1
11725 if test $seteuid = no; then
11726 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11727 echo "configure:11728: checking for setuidx" >&5
11728 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11732 if test "$cross_compiling" = yes; then
11733 samba_cv_USE_SETUIDX=cross
11734 else
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11739 #define AUTOCONF_TEST 1
11740 #define USE_SETUIDX 1
11741 #include "confdefs.h"
11742 #include "${srcdir-.}/lib/util_sec.c"
11744 if { (eval echo configure:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11745 then
11746 samba_cv_USE_SETUIDX=yes
11747 else
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 rm -fr conftest*
11751 samba_cv_USE_SETUIDX=no
11753 rm -fr conftest*
11758 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11759 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11760 seteuid=yes;cat >> confdefs.h <<\EOF
11761 #define USE_SETUIDX 1
11768 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11769 echo "configure:11770: checking for working mmap" >&5
11770 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11772 else
11774 if test "$cross_compiling" = yes; then
11775 samba_cv_HAVE_MMAP=cross
11776 else
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 #include "${srcdir-.}/tests/shared_mmap.c"
11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11783 then
11784 samba_cv_HAVE_MMAP=yes
11785 else
11786 echo "configure: failed program was:" >&5
11787 cat conftest.$ac_ext >&5
11788 rm -fr conftest*
11789 samba_cv_HAVE_MMAP=no
11791 rm -fr conftest*
11796 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11797 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11798 cat >> confdefs.h <<\EOF
11799 #define HAVE_MMAP 1
11804 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11805 echo "configure:11806: checking for ftruncate needs root" >&5
11806 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11807 echo $ac_n "(cached) $ac_c" 1>&6
11808 else
11810 if test "$cross_compiling" = yes; then
11811 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11812 else
11813 cat > conftest.$ac_ext <<EOF
11814 #line 11815 "configure"
11815 #include "confdefs.h"
11816 #include "${srcdir-.}/tests/ftruncroot.c"
11818 if { (eval echo configure:11819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11819 then
11820 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11821 else
11822 echo "configure: failed program was:" >&5
11823 cat conftest.$ac_ext >&5
11824 rm -fr conftest*
11825 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11827 rm -fr conftest*
11832 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11833 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11834 cat >> confdefs.h <<\EOF
11835 #define FTRUNCATE_NEEDS_ROOT 1
11840 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11841 echo "configure:11842: checking for fcntl locking" >&5
11842 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11843 echo $ac_n "(cached) $ac_c" 1>&6
11844 else
11846 if test "$cross_compiling" = yes; then
11847 samba_cv_HAVE_FCNTL_LOCK=cross
11848 else
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 #include "${srcdir-.}/tests/fcntl_lock.c"
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11855 then
11856 samba_cv_HAVE_FCNTL_LOCK=yes
11857 else
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11860 rm -fr conftest*
11861 samba_cv_HAVE_FCNTL_LOCK=no
11863 rm -fr conftest*
11868 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11869 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11870 cat >> confdefs.h <<\EOF
11871 #define HAVE_FCNTL_LOCK 1
11876 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11877 echo "configure:11878: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11878 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11879 echo $ac_n "(cached) $ac_c" 1>&6
11880 else
11882 if test "$cross_compiling" = yes; then
11883 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11884 else
11885 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure"
11887 #include "confdefs.h"
11888 #include "${srcdir-.}/tests/fcntl_lock64.c"
11890 if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11891 then
11892 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11893 else
11894 echo "configure: failed program was:" >&5
11895 cat conftest.$ac_ext >&5
11896 rm -fr conftest*
11897 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11899 rm -fr conftest*
11904 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11905 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11906 cat >> confdefs.h <<\EOF
11907 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11911 else
11914 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11915 echo "configure:11916: checking for 64 bit fcntl locking" >&5
11916 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11917 echo $ac_n "(cached) $ac_c" 1>&6
11918 else
11920 if test "$cross_compiling" = yes; then
11921 samba_cv_HAVE_STRUCT_FLOCK64=cross
11922 else
11923 cat > conftest.$ac_ext <<EOF
11924 #line 11925 "configure"
11925 #include "confdefs.h"
11927 #if defined(HAVE_UNISTD_H)
11928 #include <unistd.h>
11929 #endif
11930 #include <stdio.h>
11931 #include <stdlib.h>
11933 #ifdef HAVE_FCNTL_H
11934 #include <fcntl.h>
11935 #endif
11937 #ifdef HAVE_SYS_FCNTL_H
11938 #include <sys/fcntl.h>
11939 #endif
11940 main() { struct flock64 fl64;
11941 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11942 exit(0);
11943 #else
11944 exit(1);
11945 #endif
11948 if { (eval echo configure:11949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11949 then
11950 samba_cv_HAVE_STRUCT_FLOCK64=yes
11951 else
11952 echo "configure: failed program was:" >&5
11953 cat conftest.$ac_ext >&5
11954 rm -fr conftest*
11955 samba_cv_HAVE_STRUCT_FLOCK64=no
11957 rm -fr conftest*
11962 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11964 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11965 cat >> confdefs.h <<\EOF
11966 #define HAVE_STRUCT_FLOCK64 1
11972 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11973 echo "configure:11974: checking for st_blocks in struct stat" >&5
11974 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11975 echo $ac_n "(cached) $ac_c" 1>&6
11976 else
11978 cat > conftest.$ac_ext <<EOF
11979 #line 11980 "configure"
11980 #include "confdefs.h"
11981 #include <sys/types.h>
11982 #include <sys/stat.h>
11983 #include <unistd.h>
11984 int main() {
11985 struct stat st; st.st_blocks = 0;
11986 ; return 0; }
11988 if { (eval echo configure:11989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11989 rm -rf conftest*
11990 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11991 else
11992 echo "configure: failed program was:" >&5
11993 cat conftest.$ac_ext >&5
11994 rm -rf conftest*
11995 samba_cv_HAVE_STAT_ST_BLOCKS=no
11997 rm -f conftest*
12000 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
12001 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
12002 cat >> confdefs.h <<\EOF
12003 #define HAVE_STAT_ST_BLOCKS 1
12008 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
12009 echo "configure:12010: checking for st_blksize in struct stat" >&5
12010 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12012 else
12014 cat > conftest.$ac_ext <<EOF
12015 #line 12016 "configure"
12016 #include "confdefs.h"
12017 #include <sys/types.h>
12018 #include <sys/stat.h>
12019 #include <unistd.h>
12020 int main() {
12021 struct stat st; st.st_blksize = 0;
12022 ; return 0; }
12024 if { (eval echo configure:12025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12025 rm -rf conftest*
12026 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
12027 else
12028 echo "configure: failed program was:" >&5
12029 cat conftest.$ac_ext >&5
12030 rm -rf conftest*
12031 samba_cv_HAVE_STAT_ST_BLKSIZE=no
12033 rm -f conftest*
12036 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
12037 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
12038 cat >> confdefs.h <<\EOF
12039 #define HAVE_STAT_ST_BLKSIZE 1
12044 case "$host_os" in
12045 *linux*)
12046 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
12047 echo "configure:12048: checking for broken RedHat 7.2 system header files" >&5
12048 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
12049 echo $ac_n "(cached) $ac_c" 1>&6
12050 else
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12056 #ifdef HAVE_SYS_VFS_H
12057 #include <sys/vfs.h>
12058 #endif
12059 #ifdef HAVE_SYS_CAPABILITY_H
12060 #include <sys/capability.h>
12061 #endif
12063 int main() {
12064 int i;
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_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
12070 else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
12076 rm -f conftest*
12079 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
12080 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
12081 cat >> confdefs.h <<\EOF
12082 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
12087 esac
12089 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
12090 echo "configure:12091: checking for broken nisplus include files" >&5
12091 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
12092 echo $ac_n "(cached) $ac_c" 1>&6
12093 else
12095 cat > conftest.$ac_ext <<EOF
12096 #line 12097 "configure"
12097 #include "confdefs.h"
12098 #include <sys/acl.h>
12099 #if defined(HAVE_RPCSVC_NIS_H)
12100 #include <rpcsvc/nis.h>
12101 #endif
12102 int main() {
12103 int i;
12104 ; return 0; }
12106 if { (eval echo configure:12107: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12107 rm -rf conftest*
12108 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
12109 else
12110 echo "configure: failed program was:" >&5
12111 cat conftest.$ac_ext >&5
12112 rm -rf conftest*
12113 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
12115 rm -f conftest*
12118 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
12119 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
12120 cat >> confdefs.h <<\EOF
12121 #define BROKEN_NISPLUS_INCLUDE_FILES 1
12127 #################################################
12128 # check for smbwrapper support
12129 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
12130 echo "configure:12131: checking whether to use smbwrapper" >&5
12131 # Check whether --with-smbwrapper or --without-smbwrapper was given.
12132 if test "${with_smbwrapper+set}" = set; then
12133 withval="$with_smbwrapper"
12134 case "$withval" in
12135 yes)
12136 echo "$ac_t""yes" 1>&6
12137 cat >> confdefs.h <<\EOF
12138 #define WITH_SMBWRAPPER 1
12141 WRAPPROG="bin/smbsh\$(EXEEXT)"
12142 WRAP="bin/smbwrapper.$SHLIBEXT"
12144 if test x$ATTEMPT_WRAP32_BUILD = x; then
12145 WRAP32=""
12146 else
12147 WRAP32=bin/smbwrapper.32.$SHLIBEXT
12150 # Conditions under which smbwrapper should not be built.
12152 if test x$PICFLAG = x; then
12153 echo No support for PIC code - disabling smbwrapper and smbsh
12154 WRAPPROG=""
12155 WRAP=""
12156 WRAP32=""
12157 elif test x$ac_cv_func_syscall = xno; then
12158 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
12159 WRAPPROG=""
12160 WRAP=""
12161 WRAP32=""
12163 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS $WRAPPROG $WRAP $WRAP32"
12164 SMBWRAPPER="$WRAPPROG $WRAP $WRAP32"
12167 echo "$ac_t""no" 1>&6
12169 esac
12170 else
12171 echo "$ac_t""no" 1>&6
12176 #################################################
12177 # check for AFS clear-text auth support
12178 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
12179 echo "configure:12180: checking whether to use AFS clear-text auth" >&5
12180 # Check whether --with-afs or --without-afs was given.
12181 if test "${with_afs+set}" = set; then
12182 withval="$with_afs"
12183 case "$withval" in
12184 yes)
12185 echo "$ac_t""yes" 1>&6
12186 cat >> confdefs.h <<\EOF
12187 #define WITH_AFS 1
12192 echo "$ac_t""no" 1>&6
12194 esac
12195 else
12196 echo "$ac_t""no" 1>&6
12202 #################################################
12203 # check for the DFS clear-text auth system
12204 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
12205 echo "configure:12206: checking whether to use DFS clear-text auth" >&5
12206 # Check whether --with-dfs or --without-dfs was given.
12207 if test "${with_dfs+set}" = set; then
12208 withval="$with_dfs"
12209 case "$withval" in
12210 yes)
12211 echo "$ac_t""yes" 1>&6
12212 cat >> confdefs.h <<\EOF
12213 #define WITH_DFS 1
12218 echo "$ac_t""no" 1>&6
12220 esac
12221 else
12222 echo "$ac_t""no" 1>&6
12227 #################################################
12228 # active directory support
12230 with_ads_support=yes
12231 echo $ac_n "checking whether to use Active Directory""... $ac_c" 1>&6
12232 echo "configure:12233: checking whether to use Active Directory" >&5
12234 # Check whether --with-ads or --without-ads was given.
12235 if test "${with_ads+set}" = set; then
12236 withval="$with_ads"
12237 case "$withval" in
12239 with_ads_support=no
12241 esac
12245 if test x"$with_ads_support" = x"yes"; then
12246 cat >> confdefs.h <<\EOF
12247 #define WITH_ADS 1
12252 echo "$ac_t""$with_ads_support" 1>&6
12254 FOUND_KRB5=no
12255 if test x"$with_ads_support" = x"yes"; then
12257 #################################################
12258 # check for location of Kerberos 5 install
12259 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12260 echo "configure:12261: checking for kerberos 5 install path" >&5
12261 # Check whether --with-krb5 or --without-krb5 was given.
12262 if test "${with_krb5+set}" = set; then
12263 withval="$with_krb5"
12264 case "$withval" in
12266 echo "$ac_t""no" 1>&6
12269 echo "$ac_t""yes" 1>&6
12270 LIBS="$LIBS -lkrb5"
12271 CFLAGS="$CFLAGS -I$withval/include"
12272 CPPFLAGS="$CPPFLAGS -I$withval/include"
12273 LDFLAGS="$LDFLAGS -L$withval/lib"
12274 FOUND_KRB5=yes
12276 esac
12277 else
12278 echo "$ac_t""no" 1>&6
12284 if test x$FOUND_KRB5 = x"no"; then
12285 #################################################
12286 # see if this box has the SuSE location for the heimdal kerberos implementation
12287 echo $ac_n "checking for /usr/include/heimdal""... $ac_c" 1>&6
12288 echo "configure:12289: checking for /usr/include/heimdal" >&5
12289 if test -d /usr/include/heimdal; then
12290 CFLAGS="$CFLAGS -I/usr/include/heimdal"
12291 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
12292 echo "$ac_t""yes" 1>&6
12293 else
12294 echo "$ac_t""no" 1>&6
12299 if test x$FOUND_KRB5 = x"no"; then
12300 #################################################
12301 # see if this box has the RedHat location for kerberos
12302 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
12303 echo "configure:12304: checking for /usr/kerberos" >&5
12304 if test -d /usr/kerberos; then
12305 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12306 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12307 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12308 echo "$ac_t""yes" 1>&6
12309 else
12310 echo "$ac_t""no" 1>&6
12315 # now check for krb5.h. Some systems have the libraries without the headers!
12316 # note that this check is done here to allow for different kerberos
12317 # include paths
12318 for ac_hdr in krb5.h
12320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12322 echo "configure:12323: checking for $ac_hdr" >&5
12323 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
12325 else
12326 cat > conftest.$ac_ext <<EOF
12327 #line 12328 "configure"
12328 #include "confdefs.h"
12329 #include <$ac_hdr>
12331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12332 { (eval echo configure:12333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12334 if test -z "$ac_err"; then
12335 rm -rf conftest*
12336 eval "ac_cv_header_$ac_safe=yes"
12337 else
12338 echo "$ac_err" >&5
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 rm -rf conftest*
12342 eval "ac_cv_header_$ac_safe=no"
12344 rm -f conftest*
12346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12347 echo "$ac_t""yes" 1>&6
12348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12349 cat >> confdefs.h <<EOF
12350 #define $ac_tr_hdr 1
12353 else
12354 echo "$ac_t""no" 1>&6
12356 done
12359 # now check for gssapi headers. This is also done here to allow for
12360 # different kerberos include paths
12361 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_hdr" >&5
12366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 #include <$ac_hdr>
12374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12375 { (eval echo configure:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377 if test -z "$ac_err"; then
12378 rm -rf conftest*
12379 eval "ac_cv_header_$ac_safe=yes"
12380 else
12381 echo "$ac_err" >&5
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 rm -rf conftest*
12385 eval "ac_cv_header_$ac_safe=no"
12387 rm -f conftest*
12389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12392 cat >> confdefs.h <<EOF
12393 #define $ac_tr_hdr 1
12396 else
12397 echo "$ac_t""no" 1>&6
12399 done
12402 ##################################################################
12403 # we might need the k5crypto and com_err libraries on some systems
12404 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12405 echo "configure:12406: checking for _et_list in -lcom_err" >&5
12406 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12407 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12408 echo $ac_n "(cached) $ac_c" 1>&6
12409 else
12410 ac_save_LIBS="$LIBS"
12411 LIBS="-lcom_err $LIBS"
12412 cat > conftest.$ac_ext <<EOF
12413 #line 12414 "configure"
12414 #include "confdefs.h"
12415 /* Override any gcc2 internal prototype to avoid an error. */
12416 /* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418 char _et_list();
12420 int main() {
12421 _et_list()
12422 ; return 0; }
12424 if { (eval echo configure:12425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12425 rm -rf conftest*
12426 eval "ac_cv_lib_$ac_lib_var=yes"
12427 else
12428 echo "configure: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 rm -rf conftest*
12431 eval "ac_cv_lib_$ac_lib_var=no"
12433 rm -f conftest*
12434 LIBS="$ac_save_LIBS"
12437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12438 echo "$ac_t""yes" 1>&6
12439 LIBS="$LIBS -lcom_err"
12440 else
12441 echo "$ac_t""no" 1>&6
12444 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12445 echo "configure:12446: checking for krb5_encrypt_data in -lk5crypto" >&5
12446 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12448 echo $ac_n "(cached) $ac_c" 1>&6
12449 else
12450 ac_save_LIBS="$LIBS"
12451 LIBS="-lk5crypto $LIBS"
12452 cat > conftest.$ac_ext <<EOF
12453 #line 12454 "configure"
12454 #include "confdefs.h"
12455 /* Override any gcc2 internal prototype to avoid an error. */
12456 /* We use char because int might match the return type of a gcc2
12457 builtin and then its argument prototype would still apply. */
12458 char krb5_encrypt_data();
12460 int main() {
12461 krb5_encrypt_data()
12462 ; return 0; }
12464 if { (eval echo configure:12465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12465 rm -rf conftest*
12466 eval "ac_cv_lib_$ac_lib_var=yes"
12467 else
12468 echo "configure: failed program was:" >&5
12469 cat conftest.$ac_ext >&5
12470 rm -rf conftest*
12471 eval "ac_cv_lib_$ac_lib_var=no"
12473 rm -f conftest*
12474 LIBS="$ac_save_LIBS"
12477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12478 echo "$ac_t""yes" 1>&6
12479 LIBS="$LIBS -lk5crypto"
12480 else
12481 echo "$ac_t""no" 1>&6
12485 ########################################################
12486 # now see if we can find the krb5 libs in standard paths
12487 # or as specified above
12488 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12489 echo "configure:12490: checking for krb5_mk_req_extended in -lkrb5" >&5
12490 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12492 echo $ac_n "(cached) $ac_c" 1>&6
12493 else
12494 ac_save_LIBS="$LIBS"
12495 LIBS="-lkrb5 $LIBS"
12496 cat > conftest.$ac_ext <<EOF
12497 #line 12498 "configure"
12498 #include "confdefs.h"
12499 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12502 char krb5_mk_req_extended();
12504 int main() {
12505 krb5_mk_req_extended()
12506 ; return 0; }
12508 if { (eval echo configure:12509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12509 rm -rf conftest*
12510 eval "ac_cv_lib_$ac_lib_var=yes"
12511 else
12512 echo "configure: failed program was:" >&5
12513 cat conftest.$ac_ext >&5
12514 rm -rf conftest*
12515 eval "ac_cv_lib_$ac_lib_var=no"
12517 rm -f conftest*
12518 LIBS="$ac_save_LIBS"
12521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12522 echo "$ac_t""yes" 1>&6
12523 LIBS="$LIBS -lkrb5";
12524 cat >> confdefs.h <<\EOF
12525 #define HAVE_KRB5 1
12528 else
12529 echo "$ac_t""no" 1>&6
12533 ########################################################
12534 # now see if we can find the gssapi libs in standard paths
12535 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12536 echo "configure:12537: checking for gss_display_status in -lgssapi_krb5" >&5
12537 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12538 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12539 echo $ac_n "(cached) $ac_c" 1>&6
12540 else
12541 ac_save_LIBS="$LIBS"
12542 LIBS="-lgssapi_krb5 $LIBS"
12543 cat > conftest.$ac_ext <<EOF
12544 #line 12545 "configure"
12545 #include "confdefs.h"
12546 /* Override any gcc2 internal prototype to avoid an error. */
12547 /* We use char because int might match the return type of a gcc2
12548 builtin and then its argument prototype would still apply. */
12549 char gss_display_status();
12551 int main() {
12552 gss_display_status()
12553 ; return 0; }
12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12556 rm -rf conftest*
12557 eval "ac_cv_lib_$ac_lib_var=yes"
12558 else
12559 echo "configure: failed program was:" >&5
12560 cat conftest.$ac_ext >&5
12561 rm -rf conftest*
12562 eval "ac_cv_lib_$ac_lib_var=no"
12564 rm -f conftest*
12565 LIBS="$ac_save_LIBS"
12568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12569 echo "$ac_t""yes" 1>&6
12570 LIBS="$LIBS -lgssapi_krb5";
12571 cat >> confdefs.h <<\EOF
12572 #define HAVE_GSSAPI 1
12575 else
12576 echo "$ac_t""no" 1>&6
12581 ########################################################
12582 # Compile with LDAP support?
12584 with_ldap_support=yes
12585 echo $ac_n "checking whether to use LDAP""... $ac_c" 1>&6
12586 echo "configure:12587: checking whether to use LDAP" >&5
12588 # Check whether --with-ldap or --without-ldap was given.
12589 if test "${with_ldap+set}" = set; then
12590 withval="$with_ldap"
12591 case "$withval" in
12593 with_ldap_support=no
12595 esac
12599 echo "$ac_t""$with_ldap_support" 1>&6
12601 if test x"$with_ldap_support" = x"yes"; then
12603 ##################################################################
12604 # we might need the lber lib on some systems. To avoid link errors
12605 # this test must be before the libldap test
12606 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12607 echo "configure:12608: checking for ber_scanf in -llber" >&5
12608 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12611 else
12612 ac_save_LIBS="$LIBS"
12613 LIBS="-llber $LIBS"
12614 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* Override any gcc2 internal prototype to avoid an error. */
12618 /* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12620 char ber_scanf();
12622 int main() {
12623 ber_scanf()
12624 ; return 0; }
12626 if { (eval echo configure:12627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12627 rm -rf conftest*
12628 eval "ac_cv_lib_$ac_lib_var=yes"
12629 else
12630 echo "configure: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12632 rm -rf conftest*
12633 eval "ac_cv_lib_$ac_lib_var=no"
12635 rm -f conftest*
12636 LIBS="$ac_save_LIBS"
12639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12640 echo "$ac_t""yes" 1>&6
12641 LIBS="$LIBS -llber"
12642 else
12643 echo "$ac_t""no" 1>&6
12647 ########################################################
12648 # now see if we can find the ldap libs in standard paths
12649 if test x$have_ldap != xyes; then
12650 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12651 echo "configure:12652: checking for ldap_domain2hostlist in -lldap" >&5
12652 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12653 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655 else
12656 ac_save_LIBS="$LIBS"
12657 LIBS="-lldap $LIBS"
12658 cat > conftest.$ac_ext <<EOF
12659 #line 12660 "configure"
12660 #include "confdefs.h"
12661 /* Override any gcc2 internal prototype to avoid an error. */
12662 /* We use char because int might match the return type of a gcc2
12663 builtin and then its argument prototype would still apply. */
12664 char ldap_domain2hostlist();
12666 int main() {
12667 ldap_domain2hostlist()
12668 ; return 0; }
12670 if { (eval echo configure:12671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12671 rm -rf conftest*
12672 eval "ac_cv_lib_$ac_lib_var=yes"
12673 else
12674 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5
12676 rm -rf conftest*
12677 eval "ac_cv_lib_$ac_lib_var=no"
12679 rm -f conftest*
12680 LIBS="$ac_save_LIBS"
12683 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12684 echo "$ac_t""yes" 1>&6
12685 LIBS="$LIBS -lldap";
12686 cat >> confdefs.h <<\EOF
12687 #define HAVE_LDAP 1
12690 else
12691 echo "$ac_t""no" 1>&6
12695 ########################################################
12696 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12697 # Check found in pam_ldap 145.
12698 for ac_func in ldap_set_rebind_proc
12700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12701 echo "configure:12702: checking for $ac_func" >&5
12702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
12704 else
12705 cat > conftest.$ac_ext <<EOF
12706 #line 12707 "configure"
12707 #include "confdefs.h"
12708 /* System header to define __stub macros and hopefully few prototypes,
12709 which can conflict with char $ac_func(); below. */
12710 #include <assert.h>
12711 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char $ac_func();
12716 int main() {
12718 /* The GNU C library defines this for functions which it implements
12719 to always fail with ENOSYS. Some functions are actually named
12720 something starting with __ and the normal name is an alias. */
12721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12722 choke me
12723 #else
12724 $ac_func();
12725 #endif
12727 ; return 0; }
12729 if { (eval echo configure:12730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12730 rm -rf conftest*
12731 eval "ac_cv_func_$ac_func=yes"
12732 else
12733 echo "configure: failed program was:" >&5
12734 cat conftest.$ac_ext >&5
12735 rm -rf conftest*
12736 eval "ac_cv_func_$ac_func=no"
12738 rm -f conftest*
12741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12742 echo "$ac_t""yes" 1>&6
12743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12744 cat >> confdefs.h <<EOF
12745 #define $ac_tr_func 1
12748 else
12749 echo "$ac_t""no" 1>&6
12751 done
12753 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12754 echo "configure:12755: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12755 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12756 echo $ac_n "(cached) $ac_c" 1>&6
12757 else
12759 cat > conftest.$ac_ext <<EOF
12760 #line 12761 "configure"
12761 #include "confdefs.h"
12763 #include <lber.h>
12764 #include <ldap.h>
12765 int main() {
12766 ldap_set_rebind_proc(0, 0, 0);
12767 ; return 0; }
12769 if { (eval echo configure:12770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12770 rm -rf conftest*
12771 pam_ldap_cv_ldap_set_rebind_proc=3
12772 else
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 rm -rf conftest*
12776 pam_ldap_cv_ldap_set_rebind_proc=2
12778 rm -f conftest*
12781 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12782 cat >> confdefs.h <<EOF
12783 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12789 ########################################################
12790 # Compile with MySQL support?
12791 # Check whether --with-mysql-prefix or --without-mysql-prefix was given.
12792 if test "${with_mysql_prefix+set}" = set; then
12793 withval="$with_mysql_prefix"
12794 mysql_prefix="$withval"
12795 else
12796 mysql_prefix=""
12799 # Check whether --with-mysql-exec-prefix or --without-mysql-exec-prefix was given.
12800 if test "${with_mysql_exec_prefix+set}" = set; then
12801 withval="$with_mysql_exec_prefix"
12802 mysql_exec_prefix="$withval"
12803 else
12804 mysql_exec_prefix=""
12807 # Check whether --enable-mysqltest or --disable-mysqltest was given.
12808 if test "${enable_mysqltest+set}" = set; then
12809 enableval="$enable_mysqltest"
12811 else
12812 enable_mysqltest=yes
12816 if test x$mysql_exec_prefix != x ; then
12817 mysql_args="$mysql_args --exec-prefix=$mysql_exec_prefix"
12818 if test x${MYSQL_CONFIG+set} != xset ; then
12819 MYSQL_CONFIG=$mysql_exec_prefix/bin/mysql_config
12822 if test x$mysql_prefix != x ; then
12823 mysql_args="$mysql_args --prefix=$mysql_prefix"
12824 if test x${MYSQL_CONFIG+set} != xset ; then
12825 MYSQL_CONFIG=$mysql_prefix/bin/mysql_config
12830 # Extract the first word of "mysql_config", so it can be a program name with args.
12831 set dummy mysql_config; ac_word=$2
12832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12833 echo "configure:12834: checking for $ac_word" >&5
12834 if eval "test \"`echo '$''{'ac_cv_path_MYSQL_CONFIG'+set}'`\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12836 else
12837 case "$MYSQL_CONFIG" in
12839 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
12841 ?:/*)
12842 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a dos path.
12845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12846 ac_dummy="$PATH"
12847 for ac_dir in $ac_dummy; do
12848 test -z "$ac_dir" && ac_dir=.
12849 if test -f $ac_dir/$ac_word; then
12850 ac_cv_path_MYSQL_CONFIG="$ac_dir/$ac_word"
12851 break
12853 done
12854 IFS="$ac_save_ifs"
12855 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no"
12857 esac
12859 MYSQL_CONFIG="$ac_cv_path_MYSQL_CONFIG"
12860 if test -n "$MYSQL_CONFIG"; then
12861 echo "$ac_t""$MYSQL_CONFIG" 1>&6
12862 else
12863 echo "$ac_t""no" 1>&6
12866 min_mysql_version=0.11.0
12867 echo $ac_n "checking for MYSQL - version >= $min_mysql_version""... $ac_c" 1>&6
12868 echo "configure:12869: checking for MYSQL - version >= $min_mysql_version" >&5
12869 no_mysql=""
12870 if test "$MYSQL_CONFIG" = "no" ; then
12871 no_mysql=yes
12872 else
12873 MYSQL_CFLAGS=`$MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g"`
12874 MYSQL_LIBS=`$MYSQL_CONFIG $mysqlconf_args --libs | sed -e "s/'//g"`
12876 mysql_major_version=`$MYSQL_CONFIG $mysql_args --version | \
12877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12878 mysql_minor_version=`$MYSQL_CONFIG $mysql_args --version | \
12879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12880 mysql_micro_version=`$MYSQL_CONFIG $mysql_config_args --version | \
12881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12882 if test "x$enable_mysqltest" = "xyes" ; then
12883 ac_save_CFLAGS="$CFLAGS"
12884 ac_save_LIBS="$LIBS"
12885 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12886 LIBS="$LIBS $MYSQL_LIBS"
12887 rm -f conf.mysqltest
12888 if test "$cross_compiling" = yes; then
12889 echo $ac_n "cross compiling; assumed OK... $ac_c"
12890 else
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12895 #include <stdio.h>
12896 #include <stdlib.h>
12897 #include <string.h>
12898 #include <mysql.h>
12900 char*
12901 my_strdup (char *str)
12903 char *new_str;
12905 if (str)
12907 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12908 strcpy (new_str, str);
12910 else
12911 new_str = NULL;
12913 return new_str;
12916 int main (int argc, char *argv[])
12918 int major, minor, micro;
12919 char *tmp_version;
12921 /* This hangs on some systems (?)
12922 system ("touch conf.mysqltest");
12924 { FILE *fp = fopen("conf.mysqltest", "a"); if ( fp ) fclose(fp); }
12926 /* HP/UX 9 (%@#!) writes to sscanf strings */
12927 tmp_version = my_strdup("$min_mysql_version");
12928 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12929 printf("%s, bad version string\n", "$min_mysql_version");
12930 exit(1);
12933 if (($mysql_major_version > major) ||
12934 (($mysql_major_version == major) && ($mysql_minor_version > minor)) ||
12935 (($mysql_major_version == major) && ($mysql_minor_version == minor) && ($mysql_micro_version >= micro)))
12937 return 0;
12939 else
12941 printf("\n*** 'mysql_config --version' returned %d.%d.%d, but the minimum version\n", $mysql_major_version, $mysql_minor_version, $mysql_micro_version);
12942 printf("*** of MYSQL required is %d.%d.%d. If mysql_config is correct, then it is\n", major, minor, micro);
12943 printf("*** best to upgrade to the required version.\n");
12944 printf("*** If mysql_config was wrong, set the environment variable MYSQL_CONFIG\n");
12945 printf("*** to point to the correct copy of mysql_config, and remove the file\n");
12946 printf("*** config.cache before re-running configure\n");
12947 return 1;
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12954 then
12956 else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -fr conftest*
12960 no_mysql=yes
12962 rm -fr conftest*
12965 CFLAGS="$ac_save_CFLAGS"
12966 LIBS="$ac_save_LIBS"
12969 if test "x$no_mysql" = x ; then
12970 echo "$ac_t""yes" 1>&6
12971 MODULE_MYSQL=bin/pdb_mysql.so
12972 else
12973 echo "$ac_t""no" 1>&6
12974 if test "$MYSQL_CONFIG" = "no" ; then
12975 echo "*** The mysql_config script installed by MYSQL could not be found"
12976 echo "*** If MYSQL was installed in PREFIX, make sure PREFIX/bin is in"
12977 echo "*** your path, or set the MYSQL_CONFIG environment variable to the"
12978 echo "*** full path to mysql_config."
12979 else
12980 if test -f conf.mysqltest ; then
12982 else
12983 echo "*** Could not run MYSQL test program, checking why..."
12984 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
12985 LIBS="$LIBS $MYSQL_LIBS"
12986 cat > conftest.$ac_ext <<EOF
12987 #line 12988 "configure"
12988 #include "confdefs.h"
12990 #include <stdio.h>
12991 #include <mysql.h>
12993 int main(int argc, char *argv[])
12994 { return 0; }
12995 #undef main
12996 #define main K_and_R_C_main
12998 int main() {
12999 return 0;
13000 ; return 0; }
13002 if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13003 rm -rf conftest*
13004 echo "*** The test program compiled, but did not run. This usually means"
13005 echo "*** that the run-time linker is not finding MYSQL or finding the wrong"
13006 echo "*** version of MYSQL. If it is not finding MYSQL, you'll need to set your"
13007 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13008 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13009 echo "*** is required on your system"
13010 echo "***"
13011 echo "*** If you have an old version installed, it is best to remove it, although"
13012 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13013 else
13014 echo "configure: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13016 rm -rf conftest*
13017 echo "*** The test program failed to compile or link. See the file config.log for the"
13018 echo "*** exact error that occured. This usually means MYSQL was incorrectly installed"
13019 echo "*** or that you have moved MYSQL since it was installed. In the latter case, you"
13020 echo "*** may want to edit the mysql_config script: $MYSQL_CONFIG"
13022 rm -f conftest*
13023 CFLAGS="$ac_save_CFLAGS"
13024 LIBS="$ac_save_LIBS"
13027 MYSQL_CFLAGS=""
13028 MYSQL_LIBS=""
13029 MODULE_MYSQL=
13033 rm -f conf.mysqltest
13035 CFLAGS="$CFLAGS $MYSQL_CFLAGS"
13038 ########################################################
13039 # Compile with XML support?
13041 # Check whether --with-xml-prefix or --without-xml-prefix was given.
13042 if test "${with_xml_prefix+set}" = set; then
13043 withval="$with_xml_prefix"
13044 xml_config_prefix="$withval"
13045 else
13046 xml_config_prefix=""
13049 # Check whether --with-xml-exec-prefix or --without-xml-exec-prefix was given.
13050 if test "${with_xml_exec_prefix+set}" = set; then
13051 withval="$with_xml_exec_prefix"
13052 xml_config_exec_prefix="$withval"
13053 else
13054 xml_config_exec_prefix=""
13057 # Check whether --enable-xmltest or --disable-xmltest was given.
13058 if test "${enable_xmltest+set}" = set; then
13059 enableval="$enable_xmltest"
13061 else
13062 enable_xmltest=yes
13066 if test x$xml_config_exec_prefix != x ; then
13067 xml_config_args="$xml_config_args --exec-prefix=$xml_config_exec_prefix"
13068 if test x${XML2_CONFIG+set} != xset ; then
13069 XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
13072 if test x$xml_config_prefix != x ; then
13073 xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
13074 if test x${XML2_CONFIG+set} != xset ; then
13075 XML2_CONFIG=$xml_config_prefix/bin/xml2-config
13079 # Extract the first word of "xml2-config", so it can be a program name with args.
13080 set dummy xml2-config; ac_word=$2
13081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13082 echo "configure:13083: checking for $ac_word" >&5
13083 if eval "test \"`echo '$''{'ac_cv_path_XML2_CONFIG'+set}'`\" = set"; then
13084 echo $ac_n "(cached) $ac_c" 1>&6
13085 else
13086 case "$XML2_CONFIG" in
13088 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
13090 ?:/*)
13091 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a dos path.
13094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13095 ac_dummy="$PATH"
13096 for ac_dir in $ac_dummy; do
13097 test -z "$ac_dir" && ac_dir=.
13098 if test -f $ac_dir/$ac_word; then
13099 ac_cv_path_XML2_CONFIG="$ac_dir/$ac_word"
13100 break
13102 done
13103 IFS="$ac_save_ifs"
13104 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
13106 esac
13108 XML2_CONFIG="$ac_cv_path_XML2_CONFIG"
13109 if test -n "$XML2_CONFIG"; then
13110 echo "$ac_t""$XML2_CONFIG" 1>&6
13111 else
13112 echo "$ac_t""no" 1>&6
13115 min_xml_version=2.0.0
13116 echo $ac_n "checking for libxml - version >= $min_xml_version""... $ac_c" 1>&6
13117 echo "configure:13118: checking for libxml - version >= $min_xml_version" >&5
13118 no_xml=""
13119 if test "$XML2_CONFIG" = "no" ; then
13120 no_xml=yes
13121 else
13122 XML_CFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
13123 XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
13124 xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
13125 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13126 xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
13127 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13128 xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
13129 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13130 if test "x$enable_xmltest" = "xyes" ; then
13131 ac_save_CFLAGS="$CFLAGS"
13132 ac_save_LIBS="$LIBS"
13133 CFLAGS="$CFLAGS $XML_CFLAGS"
13134 LIBS="$XML_LIBS $LIBS"
13135 rm -f conf.xmltest
13136 if test "$cross_compiling" = yes; then
13137 echo $ac_n "cross compiling; assumed OK... $ac_c"
13138 else
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13143 #include <stdlib.h>
13144 #include <stdio.h>
13145 #include <string.h>
13146 #include <libxml/xmlversion.h>
13148 int
13149 main()
13151 int xml_major_version, xml_minor_version, xml_micro_version;
13152 int major, minor, micro;
13153 char *tmp_version;
13155 system("touch conf.xmltest");
13157 /* Capture xml2-config output via autoconf/configure variables */
13158 /* HP/UX 9 (%@#!) writes to sscanf strings */
13159 tmp_version = (char *)strdup("$min_xml_version");
13160 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
13161 printf("%s, bad version string from xml2-config\n", "$min_xml_version");
13162 exit(1);
13164 free(tmp_version);
13166 /* Capture the version information from the header files */
13167 tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
13168 if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
13169 printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
13170 exit(1);
13172 free(tmp_version);
13174 /* Compare xml2-config output to the libxml headers */
13175 if ((xml_major_version != $xml_config_major_version) ||
13176 (xml_minor_version != $xml_config_minor_version) ||
13177 (xml_micro_version != $xml_config_micro_version))
13179 printf("*** libxml header files (version %d.%d.%d) do not match\n",
13180 xml_major_version, xml_minor_version, xml_micro_version);
13181 printf("*** xml2-config (version %d.%d.%d)\n",
13182 $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
13183 return 1;
13185 /* Compare the headers to the library to make sure we match */
13186 /* Less than ideal -- doesn't provide us with return value feedback,
13187 * only exits if there's a serious mismatch between header and library.
13189 LIBXML_TEST_VERSION;
13191 /* Test that the library is greater than our minimum version */
13192 if ((xml_major_version > major) ||
13193 ((xml_major_version == major) && (xml_minor_version > minor)) ||
13194 ((xml_major_version == major) && (xml_minor_version == minor) &&
13195 (xml_micro_version >= micro)))
13197 return 0;
13199 else
13201 printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
13202 xml_major_version, xml_minor_version, xml_micro_version);
13203 printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
13204 major, minor, micro);
13205 printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
13206 printf("***\n");
13207 printf("*** If you have already installed a sufficiently new version, this error\n");
13208 printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
13209 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13210 printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
13211 printf("*** correct copy of xml2-config. (In this case, you will have to\n");
13212 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13213 printf("*** so that the correct libraries are found at run-time))\n");
13215 return 1;
13219 if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13220 then
13222 else
13223 echo "configure: failed program was:" >&5
13224 cat conftest.$ac_ext >&5
13225 rm -fr conftest*
13226 no_xml=yes
13228 rm -fr conftest*
13231 CFLAGS="$ac_save_CFLAGS"
13232 LIBS="$ac_save_LIBS"
13236 if test "x$no_xml" = x ; then
13237 echo "$ac_t""yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" 1>&6
13238 MODULE_XML=bin/pdb_xml.so
13239 else
13240 echo "$ac_t""no" 1>&6
13241 if test "$XML2_CONFIG" = "no" ; then
13242 echo "*** The xml2-config script installed by LIBXML could not be found"
13243 echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
13244 echo "*** your path, or set the XML2_CONFIG environment variable to the"
13245 echo "*** full path to xml2-config."
13246 else
13247 if test -f conf.xmltest ; then
13249 else
13250 echo "*** Could not run libxml test program, checking why..."
13251 CFLAGS="$CFLAGS $XML_CFLAGS"
13252 LIBS="$LIBS $XML_LIBS"
13253 cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure"
13255 #include "confdefs.h"
13257 #include <libxml/xmlversion.h>
13258 #include <stdio.h>
13260 int main() {
13261 LIBXML_TEST_VERSION; return 0;
13262 ; return 0; }
13264 if { (eval echo configure:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13265 rm -rf conftest*
13266 echo "*** The test program compiled, but did not run. This usually means"
13267 echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
13268 echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
13269 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13270 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13271 echo "*** is required on your system"
13272 echo "***"
13273 echo "*** If you have an old version installed, it is best to remove it, although"
13274 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13275 else
13276 echo "configure: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13278 rm -rf conftest*
13279 echo "*** The test program failed to compile or link. See the file config.log for the"
13280 echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
13281 echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
13282 echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
13284 rm -f conftest*
13285 CFLAGS="$ac_save_CFLAGS"
13286 LIBS="$ac_save_LIBS"
13290 XML_CFLAGS=""
13291 XML_LIBS=""
13292 MODULE_XML=
13296 rm -f conf.xmltest
13298 CFLAGS="$CFLAGS $XML_CFLAGS"
13301 #################################################
13302 # check for automount support
13303 echo $ac_n "checking whether to use automount""... $ac_c" 1>&6
13304 echo "configure:13305: checking whether to use automount" >&5
13305 # Check whether --with-automount or --without-automount was given.
13306 if test "${with_automount+set}" = set; then
13307 withval="$with_automount"
13308 case "$withval" in
13309 yes)
13310 echo "$ac_t""yes" 1>&6
13311 cat >> confdefs.h <<\EOF
13312 #define WITH_AUTOMOUNT 1
13317 echo "$ac_t""no" 1>&6
13319 esac
13320 else
13321 echo "$ac_t""no" 1>&6
13326 #################################################
13327 # check for smbmount support
13328 echo $ac_n "checking whether to use smbmount""... $ac_c" 1>&6
13329 echo "configure:13330: checking whether to use smbmount" >&5
13330 # Check whether --with-smbmount or --without-smbmount was given.
13331 if test "${with_smbmount+set}" = set; then
13332 withval="$with_smbmount"
13333 case "$withval" in
13334 yes)
13335 case "$host_os" in
13336 *linux*)
13337 echo "$ac_t""yes" 1>&6
13338 cat >> confdefs.h <<\EOF
13339 #define WITH_SMBMOUNT 1
13342 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/smbmount bin/smbmnt bin/smbumount"
13345 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
13347 esac
13350 echo "$ac_t""no" 1>&6
13352 esac
13353 else
13354 echo "$ac_t""no" 1>&6
13360 #################################################
13361 # check for a PAM clear-text auth, accounts, password and session support
13362 with_pam_for_crypt=no
13363 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
13364 echo "configure:13365: checking whether to use PAM" >&5
13365 # Check whether --with-pam or --without-pam was given.
13366 if test "${with_pam+set}" = set; then
13367 withval="$with_pam"
13368 case "$withval" in
13369 yes)
13370 echo "$ac_t""yes" 1>&6
13371 cat >> confdefs.h <<\EOF
13372 #define WITH_PAM 1
13375 AUTHLIBS="$AUTHLIBS -lpam"
13376 with_pam_for_crypt=yes
13379 echo "$ac_t""no" 1>&6
13381 esac
13382 else
13383 echo "$ac_t""no" 1>&6
13388 # we can't build a pam module if we don't have pam.
13389 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
13390 echo "configure:13391: checking for pam_get_data in -lpam" >&5
13391 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
13392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13393 echo $ac_n "(cached) $ac_c" 1>&6
13394 else
13395 ac_save_LIBS="$LIBS"
13396 LIBS="-lpam $LIBS"
13397 cat > conftest.$ac_ext <<EOF
13398 #line 13399 "configure"
13399 #include "confdefs.h"
13400 /* Override any gcc2 internal prototype to avoid an error. */
13401 /* We use char because int might match the return type of a gcc2
13402 builtin and then its argument prototype would still apply. */
13403 char pam_get_data();
13405 int main() {
13406 pam_get_data()
13407 ; return 0; }
13409 if { (eval echo configure:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13410 rm -rf conftest*
13411 eval "ac_cv_lib_$ac_lib_var=yes"
13412 else
13413 echo "configure: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
13415 rm -rf conftest*
13416 eval "ac_cv_lib_$ac_lib_var=no"
13418 rm -f conftest*
13419 LIBS="$ac_save_LIBS"
13422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13423 echo "$ac_t""yes" 1>&6
13424 cat >> confdefs.h <<\EOF
13425 #define HAVE_LIBPAM 1
13428 else
13429 echo "$ac_t""no" 1>&6
13433 #################################################
13434 # check for pam_smbpass support
13435 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
13436 echo "configure:13437: checking whether to use pam_smbpass" >&5
13437 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
13438 if test "${with_pam_smbpass+set}" = set; then
13439 withval="$with_pam_smbpass"
13440 case "$withval" in
13441 yes)
13442 echo "$ac_t""yes" 1>&6
13444 # Conditions under which pam_smbpass should not be built.
13446 if test x$PICFLAG = x; then
13447 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
13448 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
13449 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
13450 else
13451 SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.so"
13455 echo "$ac_t""no" 1>&6
13457 esac
13458 else
13459 echo "$ac_t""no" 1>&6
13465 ###############################################
13466 # test for where we get crypt() from, but only
13467 # if not using PAM
13468 if test x"$with_pam_for_crypt" = x"no"; then
13469 for ac_func in crypt
13471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13472 echo "configure:13473: checking for $ac_func" >&5
13473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13474 echo $ac_n "(cached) $ac_c" 1>&6
13475 else
13476 cat > conftest.$ac_ext <<EOF
13477 #line 13478 "configure"
13478 #include "confdefs.h"
13479 /* System header to define __stub macros and hopefully few prototypes,
13480 which can conflict with char $ac_func(); below. */
13481 #include <assert.h>
13482 /* Override any gcc2 internal prototype to avoid an error. */
13483 /* We use char because int might match the return type of a gcc2
13484 builtin and then its argument prototype would still apply. */
13485 char $ac_func();
13487 int main() {
13489 /* The GNU C library defines this for functions which it implements
13490 to always fail with ENOSYS. Some functions are actually named
13491 something starting with __ and the normal name is an alias. */
13492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13493 choke me
13494 #else
13495 $ac_func();
13496 #endif
13498 ; return 0; }
13500 if { (eval echo configure:13501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13501 rm -rf conftest*
13502 eval "ac_cv_func_$ac_func=yes"
13503 else
13504 echo "configure: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 rm -rf conftest*
13507 eval "ac_cv_func_$ac_func=no"
13509 rm -f conftest*
13512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13513 echo "$ac_t""yes" 1>&6
13514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13515 cat >> confdefs.h <<EOF
13516 #define $ac_tr_func 1
13519 else
13520 echo "$ac_t""no" 1>&6
13522 done
13524 if test x"$ac_cv_func_crypt" = x"no"; then
13525 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13526 echo "configure:13527: checking for crypt in -lcrypt" >&5
13527 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
13528 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13530 else
13531 ac_save_LIBS="$LIBS"
13532 LIBS="-lcrypt $LIBS"
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* Override any gcc2 internal prototype to avoid an error. */
13537 /* We use char because int might match the return type of a gcc2
13538 builtin and then its argument prototype would still apply. */
13539 char crypt();
13541 int main() {
13542 crypt()
13543 ; return 0; }
13545 if { (eval echo configure:13546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13546 rm -rf conftest*
13547 eval "ac_cv_lib_$ac_lib_var=yes"
13548 else
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 rm -rf conftest*
13552 eval "ac_cv_lib_$ac_lib_var=no"
13554 rm -f conftest*
13555 LIBS="$ac_save_LIBS"
13558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13559 echo "$ac_t""yes" 1>&6
13560 AUTHLIBS="$AUTHLIBS -lcrypt";
13561 cat >> confdefs.h <<\EOF
13562 #define HAVE_CRYPT 1
13565 else
13566 echo "$ac_t""no" 1>&6
13573 ## moved after the check for -lcrypt in order to
13574 ## ensure that the necessary libraries are included
13575 ## check checking for truncated salt. Wrapped by the
13576 ## $with_pam_for_crypt variable as above --jerry
13578 if test $with_pam_for_crypt = no; then
13579 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
13580 echo "configure:13581: checking for a crypt that needs truncated salt" >&5
13581 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
13582 echo $ac_n "(cached) $ac_c" 1>&6
13583 else
13585 crypt_LIBS="$LIBS"
13586 LIBS="$AUTHLIBS $LIBS"
13587 if test "$cross_compiling" = yes; then
13588 samba_cv_HAVE_TRUNCATED_SALT=cross
13589 else
13590 cat > conftest.$ac_ext <<EOF
13591 #line 13592 "configure"
13592 #include "confdefs.h"
13593 #include "${srcdir-.}/tests/crypttest.c"
13595 if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13596 then
13597 samba_cv_HAVE_TRUNCATED_SALT=no
13598 else
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 rm -fr conftest*
13602 samba_cv_HAVE_TRUNCATED_SALT=yes
13604 rm -fr conftest*
13607 LIBS="$crypt_LIBS"
13610 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
13611 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
13612 cat >> confdefs.h <<\EOF
13613 #define HAVE_TRUNCATED_SALT 1
13619 ########################################################################################
13621 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
13623 ########################################################################################
13625 #################################################
13626 # check for a LDAP password database configuration backwards compatibility
13627 echo $ac_n "checking whether to use LDAP SAM 2.2 compatible configuration""... $ac_c" 1>&6
13628 echo "configure:13629: checking whether to use LDAP SAM 2.2 compatible configuration" >&5
13629 # Check whether --with-ldapsam or --without-ldapsam was given.
13630 if test "${with_ldapsam+set}" = set; then
13631 withval="$with_ldapsam"
13632 case "$withval" in
13633 yes)
13634 echo "$ac_t""yes" 1>&6
13635 cat >> confdefs.h <<\EOF
13636 #define WITH_LDAP_SAMCONFIG 1
13641 echo "$ac_t""no" 1>&6
13643 esac
13644 else
13645 echo "$ac_t""no" 1>&6
13650 #################################################
13651 # check for a TDB password database
13652 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
13653 echo "configure:13654: checking whether to use TDB SAM database" >&5
13654 # Check whether --with-tdbsam or --without-tdbsam was given.
13655 if test "${with_tdbsam+set}" = set; then
13656 withval="$with_tdbsam"
13657 case "$withval" in
13658 yes)
13659 echo "$ac_t""yes" 1>&6
13660 cat >> confdefs.h <<\EOF
13661 #define WITH_TDB_SAM 1
13666 echo "$ac_t""no" 1>&6
13668 esac
13669 else
13670 echo "$ac_t""no" 1>&6
13675 #################################################
13676 # check for a NISPLUS password database
13677 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
13678 echo "configure:13679: checking whether to use NISPLUS SAM database" >&5
13679 # Check whether --with-nisplussam or --without-nisplussam was given.
13680 if test "${with_nisplussam+set}" = set; then
13681 withval="$with_nisplussam"
13682 case "$withval" in
13683 yes)
13684 echo "$ac_t""yes" 1>&6
13685 cat >> confdefs.h <<\EOF
13686 #define WITH_NISPLUS_SAM 1
13691 echo "$ac_t""no" 1>&6
13693 esac
13694 else
13695 echo "$ac_t""no" 1>&6
13700 ########################################################################################
13702 ## END OF TESTS FOR SAM BACKENDS.
13704 ########################################################################################
13706 #################################################
13707 # check for a NISPLUS_HOME support
13708 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
13709 echo "configure:13710: checking whether to use NISPLUS_HOME" >&5
13710 # Check whether --with-nisplus-home or --without-nisplus-home was given.
13711 if test "${with_nisplus_home+set}" = set; then
13712 withval="$with_nisplus_home"
13713 case "$withval" in
13714 yes)
13715 echo "$ac_t""yes" 1>&6
13716 cat >> confdefs.h <<\EOF
13717 #define WITH_NISPLUS_HOME 1
13722 echo "$ac_t""no" 1>&6
13724 esac
13725 else
13726 echo "$ac_t""no" 1>&6
13731 #################################################
13732 # check for syslog logging
13733 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
13734 echo "configure:13735: checking whether to use syslog logging" >&5
13735 # Check whether --with-syslog or --without-syslog was given.
13736 if test "${with_syslog+set}" = set; then
13737 withval="$with_syslog"
13738 case "$withval" in
13739 yes)
13740 echo "$ac_t""yes" 1>&6
13741 cat >> confdefs.h <<\EOF
13742 #define WITH_SYSLOG 1
13747 echo "$ac_t""no" 1>&6
13749 esac
13750 else
13751 echo "$ac_t""no" 1>&6
13756 #################################################
13757 # check for a shared memory profiling support
13758 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
13759 echo "configure:13760: checking whether to use profiling" >&5
13760 # Check whether --with-profiling-data or --without-profiling-data was given.
13761 if test "${with_profiling_data+set}" = set; then
13762 withval="$with_profiling_data"
13763 case "$withval" in
13764 yes)
13765 echo "$ac_t""yes" 1>&6
13766 cat >> confdefs.h <<\EOF
13767 #define WITH_PROFILE 1
13772 echo "$ac_t""no" 1>&6
13774 esac
13775 else
13776 echo "$ac_t""no" 1>&6
13782 #################################################
13783 # check for experimental disk-quotas support
13784 QUOTAOBJS=smbd/noquotas.o
13786 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
13787 echo "configure:13788: checking whether to support disk-quotas" >&5
13788 # Check whether --with-quotas or --without-quotas was given.
13789 if test "${with_quotas+set}" = set; then
13790 withval="$with_quotas"
13791 case "$withval" in
13792 yes)
13793 echo "$ac_t""yes" 1>&6
13794 case "$host_os" in
13795 *linux*)
13796 # Check for kernel 2.4.x quota braindamage...
13797 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
13798 echo "configure:13799: checking for linux 2.4.x quota braindamage.." >&5
13799 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
13800 echo $ac_n "(cached) $ac_c" 1>&6
13801 else
13803 cat > conftest.$ac_ext <<EOF
13804 #line 13805 "configure"
13805 #include "confdefs.h"
13806 #include <stdio.h>
13807 #include <sys/types.h>
13808 #include <asm/types.h>
13809 #include <linux/quota.h>
13810 #include <mntent.h>
13811 #include <linux/unistd.h>
13812 int main() {
13813 struct mem_dqblk D;
13814 ; return 0; }
13816 if { (eval echo configure:13817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13817 rm -rf conftest*
13818 samba_cv_linux_2_4_quota_braindamage=yes
13819 else
13820 echo "configure: failed program was:" >&5
13821 cat conftest.$ac_ext >&5
13822 rm -rf conftest*
13823 samba_cv_linux_2_4_quota_braindamage=no
13825 rm -f conftest*
13828 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
13829 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
13830 cat >> confdefs.h <<\EOF
13831 #define LINUX_QUOTAS_2 1
13834 else
13835 cat >> confdefs.h <<\EOF
13836 #define LINUX_QUOTAS_1 1
13843 esac
13844 QUOTAOBJS=smbd/quotas.o
13845 cat >> confdefs.h <<\EOF
13846 #define WITH_QUOTAS 1
13851 echo "$ac_t""no" 1>&6
13853 esac
13854 else
13855 echo "$ac_t""no" 1>&6
13861 #################################################
13862 # check for experimental utmp accounting
13864 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13865 echo "configure:13866: checking whether to support utmp accounting" >&5
13866 # Check whether --with-utmp or --without-utmp was given.
13867 if test "${with_utmp+set}" = set; then
13868 withval="$with_utmp"
13869 case "$withval" in
13870 yes)
13871 echo "$ac_t""yes" 1>&6
13872 cat >> confdefs.h <<\EOF
13873 #define WITH_UTMP 1
13878 echo "$ac_t""no" 1>&6
13880 esac
13881 else
13882 echo "$ac_t""no" 1>&6
13887 #################################################
13888 # choose native language(s) of man pages
13889 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13890 echo "configure:13891: checking chosen man pages' language(s)" >&5
13891 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13892 if test "${with_manpages_langs+set}" = set; then
13893 withval="$with_manpages_langs"
13894 case "$withval" in
13895 yes|no)
13896 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13897 manlangs="en"
13900 manlangs="$withval"
13902 esac
13904 echo "$ac_t""$manlangs" 1>&6
13905 manlangs=`echo $manlangs | sed "s/,/ /g"` # replacing commas with spaces to produce a list
13907 else
13908 manlangs="en"
13909 echo "$ac_t""$manlangs" 1>&6
13915 #################################################
13916 # should we build libsmbclient?
13918 LIBSMBCLIENT_SHARED=
13919 LIBSMBCLIENT=
13920 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
13921 echo "configure:13922: checking whether to build the libsmbclient shared library" >&5
13922 # Check whether --with-libsmbclient or --without-libsmbclient was given.
13923 if test "${with_libsmbclient+set}" = set; then
13924 withval="$with_libsmbclient"
13925 case "$withval" in
13926 no)
13927 echo "$ac_t""no" 1>&6
13930 if test $BLDSHARED = true; then
13931 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
13932 LIBSMBCLIENT=libsmbclient
13933 echo "$ac_t""yes" 1>&6
13934 else
13935 echo "$ac_t""no shared library support" 1>&6
13938 esac
13939 else
13940 echo "$ac_t""yes" 1>&6
13946 #################################################
13947 # these tests are taken from the GNU fileutils package
13948 echo "checking how to get filesystem space usage" 1>&6
13949 echo "configure:13950: checking how to get filesystem space usage" >&5
13950 space=no
13952 # Test for statvfs64.
13953 if test $space = no; then
13954 # SVR4
13955 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13956 echo "configure:13957: checking statvfs64 function (SVR4)" >&5
13957 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13959 else
13960 if test "$cross_compiling" = yes; then
13961 fu_cv_sys_stat_statvfs64=cross
13962 else
13963 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure"
13965 #include "confdefs.h"
13967 #if defined(HAVE_UNISTD_H)
13968 #include <unistd.h>
13969 #endif
13970 #include <sys/types.h>
13971 #include <sys/statvfs.h>
13972 main ()
13974 struct statvfs64 fsd;
13975 exit (statvfs64 (".", &fsd));
13978 if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13979 then
13980 fu_cv_sys_stat_statvfs64=yes
13981 else
13982 echo "configure: failed program was:" >&5
13983 cat conftest.$ac_ext >&5
13984 rm -fr conftest*
13985 fu_cv_sys_stat_statvfs64=no
13987 rm -fr conftest*
13992 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13993 if test $fu_cv_sys_stat_statvfs64 = yes; then
13994 space=yes
13995 cat >> confdefs.h <<\EOF
13996 #define STAT_STATVFS64 1
14002 # Perform only the link test since it seems there are no variants of the
14003 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
14004 # because that got a false positive on SCO OSR5. Adding the declaration
14005 # of a `struct statvfs' causes this test to fail (as it should) on such
14006 # systems. That system is reported to work fine with STAT_STATFS4 which
14007 # is what it gets when this test fails.
14008 if test $space = no; then
14009 # SVR4
14010 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
14011 echo "configure:14012: checking statvfs function (SVR4)" >&5
14012 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
14013 echo $ac_n "(cached) $ac_c" 1>&6
14014 else
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 #include <sys/types.h>
14019 #include <sys/statvfs.h>
14020 int main() {
14021 struct statvfs fsd; statvfs (0, &fsd);
14022 ; return 0; }
14024 if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14025 rm -rf conftest*
14026 fu_cv_sys_stat_statvfs=yes
14027 else
14028 echo "configure: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14030 rm -rf conftest*
14031 fu_cv_sys_stat_statvfs=no
14033 rm -f conftest*
14036 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
14037 if test $fu_cv_sys_stat_statvfs = yes; then
14038 space=yes
14039 cat >> confdefs.h <<\EOF
14040 #define STAT_STATVFS 1
14046 if test $space = no; then
14047 # DEC Alpha running OSF/1
14048 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
14049 echo "configure:14050: checking for 3-argument statfs function (DEC OSF/1)" >&5
14050 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
14051 echo $ac_n "(cached) $ac_c" 1>&6
14052 else
14053 if test "$cross_compiling" = yes; then
14054 fu_cv_sys_stat_statfs3_osf1=no
14055 else
14056 cat > conftest.$ac_ext <<EOF
14057 #line 14058 "configure"
14058 #include "confdefs.h"
14060 #include <sys/param.h>
14061 #include <sys/types.h>
14062 #include <sys/mount.h>
14063 main ()
14065 struct statfs fsd;
14066 fsd.f_fsize = 0;
14067 exit (statfs (".", &fsd, sizeof (struct statfs)));
14070 if { (eval echo configure:14071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14071 then
14072 fu_cv_sys_stat_statfs3_osf1=yes
14073 else
14074 echo "configure: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14076 rm -fr conftest*
14077 fu_cv_sys_stat_statfs3_osf1=no
14079 rm -fr conftest*
14084 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
14085 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
14086 space=yes
14087 cat >> confdefs.h <<\EOF
14088 #define STAT_STATFS3_OSF1 1
14094 if test $space = no; then
14095 # AIX
14096 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
14097 echo "configure:14098: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
14098 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
14099 echo $ac_n "(cached) $ac_c" 1>&6
14100 else
14101 if test "$cross_compiling" = yes; then
14102 fu_cv_sys_stat_statfs2_bsize=no
14103 else
14104 cat > conftest.$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14108 #ifdef HAVE_SYS_PARAM_H
14109 #include <sys/param.h>
14110 #endif
14111 #ifdef HAVE_SYS_MOUNT_H
14112 #include <sys/mount.h>
14113 #endif
14114 #ifdef HAVE_SYS_VFS_H
14115 #include <sys/vfs.h>
14116 #endif
14117 main ()
14119 struct statfs fsd;
14120 fsd.f_bsize = 0;
14121 exit (statfs (".", &fsd));
14124 if { (eval echo configure:14125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14125 then
14126 fu_cv_sys_stat_statfs2_bsize=yes
14127 else
14128 echo "configure: failed program was:" >&5
14129 cat conftest.$ac_ext >&5
14130 rm -fr conftest*
14131 fu_cv_sys_stat_statfs2_bsize=no
14133 rm -fr conftest*
14138 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
14139 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
14140 space=yes
14141 cat >> confdefs.h <<\EOF
14142 #define STAT_STATFS2_BSIZE 1
14148 if test $space = no; then
14149 # SVR3
14150 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
14151 echo "configure:14152: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
14152 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
14153 echo $ac_n "(cached) $ac_c" 1>&6
14154 else
14155 if test "$cross_compiling" = yes; then
14156 fu_cv_sys_stat_statfs4=no
14157 else
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 #include <sys/types.h>
14162 #include <sys/statfs.h>
14163 main ()
14165 struct statfs fsd;
14166 exit (statfs (".", &fsd, sizeof fsd, 0));
14169 if { (eval echo configure:14170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14170 then
14171 fu_cv_sys_stat_statfs4=yes
14172 else
14173 echo "configure: failed program was:" >&5
14174 cat conftest.$ac_ext >&5
14175 rm -fr conftest*
14176 fu_cv_sys_stat_statfs4=no
14178 rm -fr conftest*
14183 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
14184 if test $fu_cv_sys_stat_statfs4 = yes; then
14185 space=yes
14186 cat >> confdefs.h <<\EOF
14187 #define STAT_STATFS4 1
14193 if test $space = no; then
14194 # 4.4BSD and NetBSD
14195 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
14196 echo "configure:14197: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
14197 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
14198 echo $ac_n "(cached) $ac_c" 1>&6
14199 else
14200 if test "$cross_compiling" = yes; then
14201 fu_cv_sys_stat_statfs2_fsize=no
14202 else
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 #include <sys/types.h>
14207 #ifdef HAVE_SYS_PARAM_H
14208 #include <sys/param.h>
14209 #endif
14210 #ifdef HAVE_SYS_MOUNT_H
14211 #include <sys/mount.h>
14212 #endif
14213 main ()
14215 struct statfs fsd;
14216 fsd.f_fsize = 0;
14217 exit (statfs (".", &fsd));
14220 if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14221 then
14222 fu_cv_sys_stat_statfs2_fsize=yes
14223 else
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14226 rm -fr conftest*
14227 fu_cv_sys_stat_statfs2_fsize=no
14229 rm -fr conftest*
14234 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
14235 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
14236 space=yes
14237 cat >> confdefs.h <<\EOF
14238 #define STAT_STATFS2_FSIZE 1
14244 if test $space = no; then
14245 # Ultrix
14246 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
14247 echo "configure:14248: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
14248 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
14249 echo $ac_n "(cached) $ac_c" 1>&6
14250 else
14251 if test "$cross_compiling" = yes; then
14252 fu_cv_sys_stat_fs_data=no
14253 else
14254 cat > conftest.$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14257 #include <sys/types.h>
14258 #ifdef HAVE_SYS_PARAM_H
14259 #include <sys/param.h>
14260 #endif
14261 #ifdef HAVE_SYS_MOUNT_H
14262 #include <sys/mount.h>
14263 #endif
14264 #ifdef HAVE_SYS_FS_TYPES_H
14265 #include <sys/fs_types.h>
14266 #endif
14267 main ()
14269 struct fs_data fsd;
14270 /* Ultrix's statfs returns 1 for success,
14271 0 for not mounted, -1 for failure. */
14272 exit (statfs (".", &fsd) != 1);
14275 if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14276 then
14277 fu_cv_sys_stat_fs_data=yes
14278 else
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 rm -fr conftest*
14282 fu_cv_sys_stat_fs_data=no
14284 rm -fr conftest*
14289 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
14290 if test $fu_cv_sys_stat_fs_data = yes; then
14291 space=yes
14292 cat >> confdefs.h <<\EOF
14293 #define STAT_STATFS2_FS_DATA 1
14300 # As a gating factor for large file support, in order to
14301 # use <4GB files we must have the following minimal support
14302 # available.
14303 # long long, and a 64 bit off_t or off64_t.
14304 # If we don't have all of these then disable large
14305 # file support.
14307 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
14308 echo "configure:14309: checking if large file support can be enabled" >&5
14309 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14313 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
14314 #include <sys/types.h>
14315 #else
14316 __COMPILE_ERROR_
14317 #endif
14319 int main() {
14320 int i
14321 ; return 0; }
14323 if { (eval echo configure:14324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14324 rm -rf conftest*
14325 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
14326 else
14327 echo "configure: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 rm -rf conftest*
14330 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
14332 rm -f conftest*
14333 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
14334 cat >> confdefs.h <<\EOF
14335 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
14339 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
14341 # Check whether --with-spinlocks or --without-spinlocks was given.
14342 if test "${with_spinlocks+set}" = set; then
14343 withval="$with_spinlocks"
14347 if test "x$with_spinlocks" = "xyes"; then
14348 cat >> confdefs.h <<\EOF
14349 #define USE_SPINLOCKS 1
14353 case "$host_cpu" in
14354 sparc)
14355 cat >> confdefs.h <<\EOF
14356 #define SPARC_SPINLOCKS 1
14361 i386|i486|i586|i686)
14362 cat >> confdefs.h <<\EOF
14363 #define INTEL_SPINLOCKS 1
14368 mips)
14369 cat >> confdefs.h <<\EOF
14370 #define MIPS_SPINLOCKS 1
14375 powerpc)
14376 cat >> confdefs.h <<\EOF
14377 #define POWERPC_SPINLOCKS 1
14381 esac
14384 #################################################
14385 # check for ACL support
14387 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
14388 echo "configure:14389: checking whether to support ACLs" >&5
14389 # Check whether --with-acl-support or --without-acl-support was given.
14390 if test "${with_acl_support+set}" = set; then
14391 withval="$with_acl_support"
14392 case "$withval" in
14393 yes)
14395 case "$host_os" in
14396 *sysv5*)
14397 echo "$ac_t""Using UnixWare ACLs" 1>&6
14398 cat >> confdefs.h <<\EOF
14399 #define HAVE_UNIXWARE_ACLS 1
14403 *solaris*)
14404 echo "$ac_t""Using solaris ACLs" 1>&6
14405 cat >> confdefs.h <<\EOF
14406 #define HAVE_SOLARIS_ACLS 1
14410 *hpux*)
14411 echo "$ac_t""Using HPUX ACLs" 1>&6
14412 cat >> confdefs.h <<\EOF
14413 #define HAVE_HPUX_ACLS 1
14417 *irix*)
14418 echo "$ac_t""Using IRIX ACLs" 1>&6
14419 cat >> confdefs.h <<\EOF
14420 #define HAVE_IRIX_ACLS 1
14424 *aix*)
14425 echo "$ac_t""Using AIX ACLs" 1>&6
14426 cat >> confdefs.h <<\EOF
14427 #define HAVE_AIX_ACLS 1
14431 *osf*)
14432 echo "$ac_t""Using Tru64 ACLs" 1>&6
14433 cat >> confdefs.h <<\EOF
14434 #define HAVE_TRU64_ACLS 1
14437 LIBS="$LIBS -lpacl"
14440 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
14441 echo "configure:14442: checking for acl_get_file in -lacl" >&5
14442 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
14443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14444 echo $ac_n "(cached) $ac_c" 1>&6
14445 else
14446 ac_save_LIBS="$LIBS"
14447 LIBS="-lacl $LIBS"
14448 cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* Override any gcc2 internal prototype to avoid an error. */
14452 /* We use char because int might match the return type of a gcc2
14453 builtin and then its argument prototype would still apply. */
14454 char acl_get_file();
14456 int main() {
14457 acl_get_file()
14458 ; return 0; }
14460 if { (eval echo configure:14461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14461 rm -rf conftest*
14462 eval "ac_cv_lib_$ac_lib_var=yes"
14463 else
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14466 rm -rf conftest*
14467 eval "ac_cv_lib_$ac_lib_var=no"
14469 rm -f conftest*
14470 LIBS="$ac_save_LIBS"
14473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14474 echo "$ac_t""yes" 1>&6
14475 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14477 cat >> confdefs.h <<EOF
14478 #define $ac_tr_lib 1
14481 LIBS="-lacl $LIBS"
14483 else
14484 echo "$ac_t""no" 1>&6
14487 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
14488 echo "configure:14489: checking for ACL support" >&5
14489 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
14490 echo $ac_n "(cached) $ac_c" 1>&6
14491 else
14493 cat > conftest.$ac_ext <<EOF
14494 #line 14495 "configure"
14495 #include "confdefs.h"
14496 #include <sys/types.h>
14497 #include <sys/acl.h>
14498 int main() {
14499 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
14500 ; return 0; }
14502 if { (eval echo configure:14503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14503 rm -rf conftest*
14504 samba_cv_HAVE_POSIX_ACLS=yes
14505 else
14506 echo "configure: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14508 rm -rf conftest*
14509 samba_cv_HAVE_POSIX_ACLS=no
14511 rm -f conftest*
14514 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
14515 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
14516 echo "$ac_t""Using posix ACLs" 1>&6
14517 cat >> confdefs.h <<\EOF
14518 #define HAVE_POSIX_ACLS 1
14521 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
14522 echo "configure:14523: checking for acl_get_perm_np" >&5
14523 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
14524 echo $ac_n "(cached) $ac_c" 1>&6
14525 else
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 #include <sys/types.h>
14531 #include <sys/acl.h>
14532 int main() {
14533 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
14534 ; return 0; }
14536 if { (eval echo configure:14537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14537 rm -rf conftest*
14538 samba_cv_HAVE_ACL_GET_PERM_NP=yes
14539 else
14540 echo "configure: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 rm -rf conftest*
14543 samba_cv_HAVE_ACL_GET_PERM_NP=no
14545 rm -f conftest*
14548 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
14549 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
14550 cat >> confdefs.h <<\EOF
14551 #define HAVE_ACL_GET_PERM_NP 1
14557 esac
14560 echo "$ac_t""no" 1>&6
14561 cat >> confdefs.h <<\EOF
14562 #define HAVE_NO_ACLS 1
14566 esac
14567 else
14568 cat >> confdefs.h <<\EOF
14569 #define HAVE_NO_ACLS 1
14572 echo "$ac_t""no" 1>&6
14577 #################################################
14578 # check for sendfile support
14580 with_sendfile_support=yes
14581 echo $ac_n "checking whether to check to support sendfile""... $ac_c" 1>&6
14582 echo "configure:14583: checking whether to check to support sendfile" >&5
14583 # Check whether --with-sendfile-support or --without-sendfile-support was given.
14584 if test "${with_sendfile_support+set}" = set; then
14585 withval="$with_sendfile_support"
14586 case "$withval" in
14587 yes)
14589 echo "$ac_t""yes" 1>&6;
14591 case "$host_os" in
14592 *linux*)
14593 echo $ac_n "checking for linux sendfile64 support""... $ac_c" 1>&6
14594 echo "configure:14595: checking for linux sendfile64 support" >&5
14595 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14596 echo $ac_n "(cached) $ac_c" 1>&6
14597 else
14599 cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 #include <sys/sendfile.h>
14603 int main() {
14605 int tofd, fromfd;
14606 off64_t offset;
14607 size_t total;
14608 ssize_t nwritten = sendfile64(tofd, fromfd, &offset, total);
14610 ; return 0; }
14612 if { (eval echo configure:14613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14613 rm -rf conftest*
14614 samba_cv_HAVE_SENDFILE64=yes
14615 else
14616 echo "configure: failed program was:" >&5
14617 cat conftest.$ac_ext >&5
14618 rm -rf conftest*
14619 samba_cv_HAVE_SENDFILE64=no
14621 rm -f conftest*
14624 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14626 echo $ac_n "checking for linux sendfile support""... $ac_c" 1>&6
14627 echo "configure:14628: checking for linux sendfile support" >&5
14628 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14629 echo $ac_n "(cached) $ac_c" 1>&6
14630 else
14632 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure"
14634 #include "confdefs.h"
14635 #include <sys/sendfile.h>
14636 int main() {
14638 int tofd, fromfd;
14639 off_t offset;
14640 size_t total;
14641 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14643 ; return 0; }
14645 if { (eval echo configure:14646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14646 rm -rf conftest*
14647 samba_cv_HAVE_SENDFILE=yes
14648 else
14649 echo "configure: failed program was:" >&5
14650 cat conftest.$ac_ext >&5
14651 rm -rf conftest*
14652 samba_cv_HAVE_SENDFILE=no
14654 rm -f conftest*
14657 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14659 # Try and cope with broken Linux sendfile....
14660 echo $ac_n "checking for broken linux sendfile support""... $ac_c" 1>&6
14661 echo "configure:14662: checking for broken linux sendfile support" >&5
14662 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_LINUX_SENDFILE'+set}'`\" = set"; then
14663 echo $ac_n "(cached) $ac_c" 1>&6
14664 else
14666 cat > conftest.$ac_ext <<EOF
14667 #line 14668 "configure"
14668 #include "confdefs.h"
14670 #if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64)
14671 #undef _FILE_OFFSET_BITS
14672 #endif
14673 #include <sys/sendfile.h>
14674 int main() {
14676 int tofd, fromfd;
14677 off_t offset;
14678 size_t total;
14679 ssize_t nwritten = sendfile(tofd, fromfd, &offset, total);
14681 ; return 0; }
14683 if { (eval echo configure:14684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14684 rm -rf conftest*
14685 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=yes
14686 else
14687 echo "configure: failed program was:" >&5
14688 cat conftest.$ac_ext >&5
14689 rm -rf conftest*
14690 samba_cv_HAVE_BROKEN_LINUX_SENDFILE=no
14692 rm -f conftest*
14695 echo "$ac_t""$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" 1>&6
14697 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14698 cat >> confdefs.h <<\EOF
14699 #define HAVE_SENDFILE64 1
14702 cat >> confdefs.h <<\EOF
14703 #define LINUX_SENDFILE_API 1
14706 cat >> confdefs.h <<\EOF
14707 #define WITH_SENDFILE 1
14710 elif test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14711 cat >> confdefs.h <<\EOF
14712 #define HAVE_SENDFILE 1
14715 cat >> confdefs.h <<\EOF
14716 #define LINUX_SENDFILE_API 1
14719 cat >> confdefs.h <<\EOF
14720 #define WITH_SENDFILE 1
14723 elif test x"$samba_cv_HAVE_BROKEN_LINUX_SENDFILE" = x"yes"; then
14724 cat >> confdefs.h <<\EOF
14725 #define LINUX_BROKEN_SENDFILE_API 1
14728 cat >> confdefs.h <<\EOF
14729 #define WITH_SENDFILE 1
14732 else
14733 echo "$ac_t""no" 1>&6;
14737 *freebsd*)
14738 echo $ac_n "checking for freebsd sendfile support""... $ac_c" 1>&6
14739 echo "configure:14740: checking for freebsd sendfile support" >&5
14740 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14741 echo $ac_n "(cached) $ac_c" 1>&6
14742 else
14744 cat > conftest.$ac_ext <<EOF
14745 #line 14746 "configure"
14746 #include "confdefs.h"
14748 #include <sys/types.h>
14749 #include <sys/socket.h>
14750 #include <sys/uio.h>
14751 int main() {
14753 int fromfd, tofd;
14754 off_t offset, nwritten;
14755 struct sf_hdtr hdr;
14756 struct iovec hdtrl;
14757 hdr->headers = &hdtrl;
14758 hdr->hdr_cnt = 1;
14759 hdr->trailers = NULL;
14760 hdr->trl_cnt = 0;
14761 hdtrl.iov_base = NULL;
14762 hdtrl.iov_len = 0;
14763 int ret = sendfile(fromfd, tofd, offset, total, &hdr, &nwritten, 0);
14765 ; return 0; }
14767 if { (eval echo configure:14768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14768 rm -rf conftest*
14769 samba_cv_HAVE_SENDFILE=yes
14770 else
14771 echo "configure: failed program was:" >&5
14772 cat conftest.$ac_ext >&5
14773 rm -rf conftest*
14774 samba_cv_HAVE_SENDFILE=no
14776 rm -f conftest*
14779 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14781 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14782 cat >> confdefs.h <<\EOF
14783 #define HAVE_SENDFILE 1
14786 cat >> confdefs.h <<\EOF
14787 #define FREEBSD_SENDFILE_API 1
14790 cat >> confdefs.h <<\EOF
14791 #define WITH_SENDFILE 1
14794 else
14795 echo "$ac_t""no" 1>&6;
14799 *hpux*)
14800 echo $ac_n "checking for hpux sendfile64 support""... $ac_c" 1>&6
14801 echo "configure:14802: checking for hpux sendfile64 support" >&5
14802 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE64'+set}'`\" = set"; then
14803 echo $ac_n "(cached) $ac_c" 1>&6
14804 else
14806 cat > conftest.$ac_ext <<EOF
14807 #line 14808 "configure"
14808 #include "confdefs.h"
14810 #include <sys/socket.h>
14811 #include <sys/uio.h>
14812 int main() {
14814 int fromfd, tofd;
14815 size_t total=0;
14816 struct iovec hdtrl[2];
14817 ssize_t nwritten;
14818 off64_t offset;
14820 hdtrl[0].iov_base = 0;
14821 hdtrl[0].iov_len = 0;
14823 nwritten = sendfile64(tofd, fromfd, offset, total, &hdtrl[0], 0);
14825 ; return 0; }
14827 if { (eval echo configure:14828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14828 rm -rf conftest*
14829 samba_cv_HAVE_SENDFILE64=yes
14830 else
14831 echo "configure: failed program was:" >&5
14832 cat conftest.$ac_ext >&5
14833 rm -rf conftest*
14834 samba_cv_HAVE_SENDFILE64=no
14836 rm -f conftest*
14839 echo "$ac_t""$samba_cv_HAVE_SENDFILE64" 1>&6
14840 if test x"$samba_cv_HAVE_SENDFILE64" = x"yes"; then
14841 cat >> confdefs.h <<\EOF
14842 #define HAVE_SENDFILE64 1
14845 cat >> confdefs.h <<\EOF
14846 #define HPUX_SENDFILE_API 1
14849 cat >> confdefs.h <<\EOF
14850 #define WITH_SENDFILE 1
14853 else
14854 echo "$ac_t""no" 1>&6;
14857 echo $ac_n "checking for hpux sendfile support""... $ac_c" 1>&6
14858 echo "configure:14859: checking for hpux sendfile support" >&5
14859 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILE'+set}'`\" = set"; then
14860 echo $ac_n "(cached) $ac_c" 1>&6
14861 else
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14867 #include <sys/socket.h>
14868 #include <sys/uio.h>
14869 int main() {
14871 int fromfd, tofd;
14872 size_t total=0;
14873 struct iovec hdtrl[2];
14874 ssize_t nwritten;
14875 off_t offset;
14877 hdtrl[0].iov_base = 0;
14878 hdtrl[0].iov_len = 0;
14880 nwritten = sendfile(tofd, fromfd, offset, total, &hdtrl[0], 0);
14882 ; return 0; }
14884 if { (eval echo configure:14885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14885 rm -rf conftest*
14886 samba_cv_HAVE_SENDFILE=yes
14887 else
14888 echo "configure: failed program was:" >&5
14889 cat conftest.$ac_ext >&5
14890 rm -rf conftest*
14891 samba_cv_HAVE_SENDFILE=no
14893 rm -f conftest*
14896 echo "$ac_t""$samba_cv_HAVE_SENDFILE" 1>&6
14897 if test x"$samba_cv_HAVE_SENDFILE" = x"yes"; then
14898 cat >> confdefs.h <<\EOF
14899 #define HAVE_SENDFILE 1
14902 cat >> confdefs.h <<\EOF
14903 #define HPUX_SENDFILE_API 1
14906 cat >> confdefs.h <<\EOF
14907 #define WITH_SENDFILE 1
14910 else
14911 echo "$ac_t""no" 1>&6;
14915 *solaris*)
14916 echo $ac_n "checking for sendfilev in -lsendfile""... $ac_c" 1>&6
14917 echo "configure:14918: checking for sendfilev in -lsendfile" >&5
14918 ac_lib_var=`echo sendfile'_'sendfilev | sed 'y%./+-%__p_%'`
14919 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14921 else
14922 ac_save_LIBS="$LIBS"
14923 LIBS="-lsendfile $LIBS"
14924 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927 /* Override any gcc2 internal prototype to avoid an error. */
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14930 char sendfilev();
14932 int main() {
14933 sendfilev()
14934 ; return 0; }
14936 if { (eval echo configure:14937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14937 rm -rf conftest*
14938 eval "ac_cv_lib_$ac_lib_var=yes"
14939 else
14940 echo "configure: failed program was:" >&5
14941 cat conftest.$ac_ext >&5
14942 rm -rf conftest*
14943 eval "ac_cv_lib_$ac_lib_var=no"
14945 rm -f conftest*
14946 LIBS="$ac_save_LIBS"
14949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14950 echo "$ac_t""yes" 1>&6
14951 ac_tr_lib=HAVE_LIB`echo sendfile | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14953 cat >> confdefs.h <<EOF
14954 #define $ac_tr_lib 1
14957 LIBS="-lsendfile $LIBS"
14959 else
14960 echo "$ac_t""no" 1>&6
14963 echo $ac_n "checking for solaris sendfilev64 support""... $ac_c" 1>&6
14964 echo "configure:14965: checking for solaris sendfilev64 support" >&5
14965 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV64'+set}'`\" = set"; then
14966 echo $ac_n "(cached) $ac_c" 1>&6
14967 else
14969 cat > conftest.$ac_ext <<EOF
14970 #line 14971 "configure"
14971 #include "confdefs.h"
14973 #include <sys/sendfile.h>
14974 int main() {
14976 int sfvcnt;
14977 size_t xferred;
14978 struct sendfilevec vec[2];
14979 ssize_t nwritten;
14980 int tofd;
14982 sfvcnt = 2;
14984 vec[0].sfv_fd = SFV_FD_SELF;
14985 vec[0].sfv_flag = 0;
14986 vec[0].sfv_off = 0;
14987 vec[0].sfv_len = 0;
14989 vec[1].sfv_fd = 0;
14990 vec[1].sfv_flag = 0;
14991 vec[1].sfv_off = 0;
14992 vec[1].sfv_len = 0;
14993 nwritten = sendfilev64(tofd, vec, sfvcnt, &xferred);
14995 ; return 0; }
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14998 rm -rf conftest*
14999 samba_cv_HAVE_SENDFILEV64=yes
15000 else
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 rm -rf conftest*
15004 samba_cv_HAVE_SENDFILEV64=no
15006 rm -f conftest*
15009 echo "$ac_t""$samba_cv_HAVE_SENDFILEV64" 1>&6
15011 if test x"$samba_cv_HAVE_SENDFILEV64" = x"yes"; then
15012 cat >> confdefs.h <<\EOF
15013 #define HAVE_SENDFILEV64 1
15016 cat >> confdefs.h <<\EOF
15017 #define SOLARIS_SENDFILE_API 1
15020 cat >> confdefs.h <<\EOF
15021 #define WITH_SENDFILE 1
15024 else
15025 echo "$ac_t""no" 1>&6;
15028 echo $ac_n "checking for solaris sendfilev support""... $ac_c" 1>&6
15029 echo "configure:15030: checking for solaris sendfilev support" >&5
15030 if eval "test \"`echo '$''{'samba_cv_HAVE_SENDFILEV'+set}'`\" = set"; then
15031 echo $ac_n "(cached) $ac_c" 1>&6
15032 else
15034 cat > conftest.$ac_ext <<EOF
15035 #line 15036 "configure"
15036 #include "confdefs.h"
15038 #include <sys/sendfile.h>
15039 int main() {
15041 int sfvcnt;
15042 size_t xferred;
15043 struct sendfilevec vec[2];
15044 ssize_t nwritten;
15045 int tofd;
15047 sfvcnt = 2;
15049 vec[0].sfv_fd = SFV_FD_SELF;
15050 vec[0].sfv_flag = 0;
15051 vec[0].sfv_off = 0;
15052 vec[0].sfv_len = 0;
15054 vec[1].sfv_fd = 0;
15055 vec[1].sfv_flag = 0;
15056 vec[1].sfv_off = 0;
15057 vec[1].sfv_len = 0;
15058 nwritten = sendfilev(tofd, vec, sfvcnt, &xferred);
15060 ; return 0; }
15062 if { (eval echo configure:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15063 rm -rf conftest*
15064 samba_cv_HAVE_SENDFILEV=yes
15065 else
15066 echo "configure: failed program was:" >&5
15067 cat conftest.$ac_ext >&5
15068 rm -rf conftest*
15069 samba_cv_HAVE_SENDFILEV=no
15071 rm -f conftest*
15074 echo "$ac_t""$samba_cv_HAVE_SENDFILEV" 1>&6
15076 if test x"$samba_cv_HAVE_SENDFILEV" = x"yes"; then
15077 cat >> confdefs.h <<\EOF
15078 #define HAVE_SENDFILEV 1
15081 cat >> confdefs.h <<\EOF
15082 #define SOLARIS_SENDFILE_API 1
15085 cat >> confdefs.h <<\EOF
15086 #define WITH_SENDFILE 1
15089 else
15090 echo "$ac_t""no" 1>&6;
15096 esac
15099 echo "$ac_t""no" 1>&6
15101 esac
15102 else
15103 echo "$ac_t""yes" 1>&6
15109 #################################################
15110 # Check whether winbind is supported on this platform. If so we need to
15111 # build and install client programs, sbin programs and shared libraries
15113 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
15114 echo "configure:15115: checking whether to build winbind" >&5
15116 # Initially, the value of $host_os decides whether winbind is supported
15118 case "$host_os" in
15119 *linux*|*irix*)
15120 HAVE_WINBIND=yes
15122 *solaris*)
15123 HAVE_WINBIND=yes
15124 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15125 WINBIND_NSS_EXTRA_LIBS="-lsocket"
15127 *hpux11*)
15128 HAVE_WINBIND=yes
15129 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
15132 HAVE_WINBIND=no
15133 winbind_no_reason=", unsupported on $host_os"
15135 esac
15140 # Check the setting of --with-winbindd
15142 # Check whether --with-winbind or --without-winbind was given.
15143 if test "${with_winbind+set}" = set; then
15144 withval="$with_winbind"
15146 case "$withval" in
15147 yes)
15148 HAVE_WINBIND=yes
15151 HAVE_WINBIND=no
15152 winbind_reason=""
15154 esac
15158 # We need unix domain sockets for winbind
15160 if test x"$HAVE_WINBIND" = x"yes"; then
15161 if test x"$samba_cv_unixsocket" = x"no"; then
15162 winbind_no_reason=", no unix domain socket support on $host_os"
15163 HAVE_WINBIND=no
15167 # Display test results
15169 if test x"$HAVE_WINBIND" = x"yes"; then
15170 echo "$ac_t""yes" 1>&6
15171 cat >> confdefs.h <<\EOF
15172 #define WITH_WINBIND 1
15176 EXTRA_BIN_PROGS="$EXTRA_BIN_PROGS bin/wbinfo\$(EXEEXT)"
15177 EXTRA_SBIN_PROGS="$EXTRA_SBIN_PROGS bin/winbindd\$(EXEEXT)"
15178 if test x"$BLDSHARED" = x"true"; then
15179 SHLIB_PROGS="$SHLIB_PROGS nsswitch/libnss_winbind.so"
15180 if test x"$with_pam" = x"yes"; then
15181 SHLIB_PROGS="$SHLIB_PROGS nsswitch/pam_winbind.so"
15184 else
15185 echo "$ac_t""no$winbind_no_reason" 1>&6
15188 # Solaris has some extra fields in struct passwd that need to be
15189 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
15190 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
15191 # this.
15193 #AC_CHECK_MEMBER(struct passwd.pw_comment,
15194 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
15195 # [#include <pwd.h>])
15197 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
15198 echo "configure:15199: checking whether struct passwd has pw_comment" >&5
15199 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15201 else
15203 cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 #include <pwd.h>
15207 int main() {
15208 struct passwd p; p.pw_comment;
15209 ; return 0; }
15211 if { (eval echo configure:15212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15212 rm -rf conftest*
15213 samba_cv_passwd_pw_comment=yes
15214 else
15215 echo "configure: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15217 rm -rf conftest*
15218 samba_cv_passwd_pw_comment=no
15220 rm -f conftest*
15223 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
15224 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
15225 cat >> confdefs.h <<\EOF
15226 #define HAVE_PASSWD_PW_COMMENT 1
15231 #AC_CHECK_MEMBER(struct passwd.pw_age,
15232 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
15233 # [#include <pwd.h>])
15235 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
15236 echo "configure:15237: checking whether struct passwd has pw_age" >&5
15237 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
15238 echo $ac_n "(cached) $ac_c" 1>&6
15239 else
15241 cat > conftest.$ac_ext <<EOF
15242 #line 15243 "configure"
15243 #include "confdefs.h"
15244 #include <pwd.h>
15245 int main() {
15246 struct passwd p; p.pw_age;
15247 ; return 0; }
15249 if { (eval echo configure:15250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15250 rm -rf conftest*
15251 samba_cv_passwd_pw_age=yes
15252 else
15253 echo "configure: failed program was:" >&5
15254 cat conftest.$ac_ext >&5
15255 rm -rf conftest*
15256 samba_cv_passwd_pw_age=no
15258 rm -f conftest*
15261 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
15262 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
15263 cat >> confdefs.h <<\EOF
15264 #define HAVE_PASSWD_PW_AGE 1
15269 #################################################
15270 # Check to see if we should use the included popt
15272 # Check whether --with-included-popt or --without-included-popt was given.
15273 if test "${with_included_popt+set}" = set; then
15274 withval="$with_included_popt"
15276 case "$withval" in
15277 yes)
15278 INCLUDED_POPT=yes
15281 INCLUDED_POPT=no
15283 esac
15286 if test x"$INCLUDED_POPT" != x"yes"; then
15287 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
15288 echo "configure:15289: checking for poptGetContext in -lpopt" >&5
15289 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
15290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15291 echo $ac_n "(cached) $ac_c" 1>&6
15292 else
15293 ac_save_LIBS="$LIBS"
15294 LIBS="-lpopt $LIBS"
15295 cat > conftest.$ac_ext <<EOF
15296 #line 15297 "configure"
15297 #include "confdefs.h"
15298 /* Override any gcc2 internal prototype to avoid an error. */
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301 char poptGetContext();
15303 int main() {
15304 poptGetContext()
15305 ; return 0; }
15307 if { (eval echo configure:15308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15308 rm -rf conftest*
15309 eval "ac_cv_lib_$ac_lib_var=yes"
15310 else
15311 echo "configure: failed program was:" >&5
15312 cat conftest.$ac_ext >&5
15313 rm -rf conftest*
15314 eval "ac_cv_lib_$ac_lib_var=no"
15316 rm -f conftest*
15317 LIBS="$ac_save_LIBS"
15320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15321 echo "$ac_t""yes" 1>&6
15322 INCLUDED_POPT=no
15323 else
15324 echo "$ac_t""no" 1>&6
15325 INCLUDED_POPT=yes
15330 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
15331 echo "configure:15332: checking whether to use included popt" >&5
15332 if test x"$INCLUDED_POPT" = x"yes"; then
15333 echo "$ac_t""yes" 1>&6
15334 BUILD_POPT='$(POPT_OBJS)'
15335 FLAGS1="-I$srcdir/popt"
15336 else
15337 echo "$ac_t""no" 1>&6
15338 LIBS="$LIBS -lpopt"
15343 #################################################
15344 # Check if the user wants Python
15346 # At the moment, you can use this to set which Python binary to link
15347 # against. (Libraries built for Python2.2 can't be used by 2.1,
15348 # though they can coexist in different directories.) In the future
15349 # this might make the Python stuff be built by default.
15351 # Defaulting python breaks the clean target if python isn't installed
15353 PYTHON=
15355 # Check whether --with-python or --without-python was given.
15356 if test "${with_python+set}" = set; then
15357 withval="$with_python"
15358 case "${withval-python}" in
15359 yes)
15360 PYTHON=python
15361 EXTRA_ALL_TARGETS="$EXTRA_ALL_TARGETS python_ext"
15364 PYTHON=
15367 PYTHON=${withval-python}
15369 esac
15374 #################################################
15375 # do extra things if we are running insure
15377 if test "${ac_cv_prog_CC}" = "insure"; then
15378 CPPFLAGS="$CPPFLAGS -D__INSURE__"
15381 #################################################
15382 # final configure stuff
15384 echo $ac_n "checking configure summary""... $ac_c" 1>&6
15385 echo "configure:15386: checking configure summary" >&5
15386 if test "$cross_compiling" = yes; then
15387 echo "configure: warning: cannot run when cross-compiling" 1>&2
15388 else
15389 cat > conftest.$ac_ext <<EOF
15390 #line 15391 "configure"
15391 #include "confdefs.h"
15392 #include "${srcdir-.}/tests/summary.c"
15394 if { (eval echo configure:15395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15395 then
15396 echo "$ac_t""yes" 1>&6
15397 else
15398 echo "configure: failed program was:" >&5
15399 cat conftest.$ac_ext >&5
15400 rm -fr conftest*
15401 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
15403 rm -fr conftest*
15407 builddir=`pwd`
15410 trap '' 1 2 15
15411 cat > confcache <<\EOF
15412 # This file is a shell script that caches the results of configure
15413 # tests run on this system so they can be shared between configure
15414 # scripts and configure runs. It is not useful on other systems.
15415 # If it contains results you don't want to keep, you may remove or edit it.
15417 # By default, configure uses ./config.cache as the cache file,
15418 # creating it if it does not exist already. You can give configure
15419 # the --cache-file=FILE option to use a different cache file; that is
15420 # what configure does when it calls configure scripts in
15421 # subdirectories, so they share the cache.
15422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15423 # config.status only pays attention to the cache file if you give it the
15424 # --recheck option to rerun configure.
15427 # The following way of writing the cache mishandles newlines in values,
15428 # but we know of no workaround that is simple, portable, and efficient.
15429 # So, don't put newlines in cache variables' values.
15430 # Ultrix sh set writes to stderr and can't be redirected directly,
15431 # and sets the high bit in the cache file unless we assign to the vars.
15432 (set) 2>&1 |
15433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15434 *ac_space=\ *)
15435 # `set' does not quote correctly, so add quotes (double-quote substitution
15436 # turns \\\\ into \\, and sed turns \\ into \).
15437 sed -n \
15438 -e "s/'/'\\\\''/g" \
15439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15442 # `set' quotes correctly as required by POSIX, so do not add quotes.
15443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15445 esac >> confcache
15446 if cmp -s $cache_file confcache; then
15448 else
15449 if test -w $cache_file; then
15450 echo "updating cache $cache_file"
15451 cat confcache > $cache_file
15452 else
15453 echo "not updating unwritable cache $cache_file"
15456 rm -f confcache
15458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15461 # Let make expand exec_prefix.
15462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15464 # Any assignment to VPATH causes Sun make to only execute
15465 # the first set of double-colon rules, so remove it if not needed.
15466 # If there is a colon in the path, we need to keep it.
15467 if test "x$srcdir" = x.; then
15468 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15473 DEFS=-DHAVE_CONFIG_H
15475 # Without the "./", some shells look in PATH for config.status.
15476 : ${CONFIG_STATUS=./config.status}
15478 echo creating $CONFIG_STATUS
15479 rm -f $CONFIG_STATUS
15480 cat > $CONFIG_STATUS <<EOF
15481 #! /bin/sh
15482 # Generated automatically by configure.
15483 # Run this file to recreate the current configuration.
15484 # This directory was configured as follows,
15485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15487 # $0 $ac_configure_args
15489 # Compiler output produced by configure, useful for debugging
15490 # configure, is in ./config.log if it exists.
15492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15493 for ac_option
15495 case "\$ac_option" in
15496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
15501 exit 0 ;;
15502 -help | --help | --hel | --he | --h)
15503 echo "\$ac_cs_usage"; exit 0 ;;
15504 *) echo "\$ac_cs_usage"; exit 1 ;;
15505 esac
15506 done
15508 ac_given_srcdir=$srcdir
15509 ac_given_INSTALL="$INSTALL"
15511 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15513 cat >> $CONFIG_STATUS <<EOF
15515 # Protect against being on the right side of a sed subst in config.status.
15516 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15517 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15518 $ac_vpsub
15519 $extrasub
15520 s%@SHELL@%$SHELL%g
15521 s%@CFLAGS@%$CFLAGS%g
15522 s%@CPPFLAGS@%$CPPFLAGS%g
15523 s%@CXXFLAGS@%$CXXFLAGS%g
15524 s%@FFLAGS@%$FFLAGS%g
15525 s%@DEFS@%$DEFS%g
15526 s%@LDFLAGS@%$LDFLAGS%g
15527 s%@LIBS@%$LIBS%g
15528 s%@exec_prefix@%$exec_prefix%g
15529 s%@prefix@%$prefix%g
15530 s%@program_transform_name@%$program_transform_name%g
15531 s%@bindir@%$bindir%g
15532 s%@sbindir@%$sbindir%g
15533 s%@libexecdir@%$libexecdir%g
15534 s%@datadir@%$datadir%g
15535 s%@sysconfdir@%$sysconfdir%g
15536 s%@sharedstatedir@%$sharedstatedir%g
15537 s%@localstatedir@%$localstatedir%g
15538 s%@libdir@%$libdir%g
15539 s%@includedir@%$includedir%g
15540 s%@oldincludedir@%$oldincludedir%g
15541 s%@infodir@%$infodir%g
15542 s%@mandir@%$mandir%g
15543 s%@configdir@%$configdir%g
15544 s%@lockdir@%$lockdir%g
15545 s%@piddir@%$piddir%g
15546 s%@logfilebase@%$logfilebase%g
15547 s%@privatedir@%$privatedir%g
15548 s%@swatdir@%$swatdir%g
15549 s%@LDSHFLAGS@%$LDSHFLAGS%g
15550 s%@SONAMEFLAG@%$SONAMEFLAG%g
15551 s%@SHLD@%$SHLD%g
15552 s%@HOST_OS@%$HOST_OS%g
15553 s%@PICFLAG@%$PICFLAG%g
15554 s%@PICSUFFIX@%$PICSUFFIX%g
15555 s%@POBAD_CC@%$POBAD_CC%g
15556 s%@SHLIBEXT@%$SHLIBEXT%g
15557 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
15558 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
15559 s%@PRINTLIBS@%$PRINTLIBS%g
15560 s%@AUTHLIBS@%$AUTHLIBS%g
15561 s%@SHLIB_PROGS@%$SHLIB_PROGS%g
15562 s%@SMBWRAPPER@%$SMBWRAPPER%g
15563 s%@EXTRA_BIN_PROGS@%$EXTRA_BIN_PROGS%g
15564 s%@EXTRA_SBIN_PROGS@%$EXTRA_SBIN_PROGS%g
15565 s%@EXTRA_ALL_TARGETS@%$EXTRA_ALL_TARGETS%g
15566 s%@CC@%$CC%g
15567 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15568 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15569 s%@INSTALL_DATA@%$INSTALL_DATA%g
15570 s%@AWK@%$AWK%g
15571 s%@EXEEXT@%$EXEEXT%g
15572 s%@BROKEN_CC@%$BROKEN_CC%g
15573 s%@host@%$host%g
15574 s%@host_alias@%$host_alias%g
15575 s%@host_cpu@%$host_cpu%g
15576 s%@host_vendor@%$host_vendor%g
15577 s%@host_os@%$host_os%g
15578 s%@target@%$target%g
15579 s%@target_alias@%$target_alias%g
15580 s%@target_cpu@%$target_cpu%g
15581 s%@target_vendor@%$target_vendor%g
15582 s%@target_os@%$target_os%g
15583 s%@build@%$build%g
15584 s%@build_alias@%$build_alias%g
15585 s%@build_cpu@%$build_cpu%g
15586 s%@build_vendor@%$build_vendor%g
15587 s%@build_os@%$build_os%g
15588 s%@CPP@%$CPP%g
15589 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
15590 s%@LIBOBJS@%$LIBOBJS%g
15591 s%@TERMLIBS@%$TERMLIBS%g
15592 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
15593 s%@ROFF@%$ROFF%g
15594 s%@DYNEXP@%$DYNEXP%g
15595 s%@MYSQL_CONFIG@%$MYSQL_CONFIG%g
15596 s%@MYSQL_CFLAGS@%$MYSQL_CFLAGS%g
15597 s%@MYSQL_LIBS@%$MYSQL_LIBS%g
15598 s%@MODULE_MYSQL@%$MODULE_MYSQL%g
15599 s%@XML2_CONFIG@%$XML2_CONFIG%g
15600 s%@XML_CFLAGS@%$XML_CFLAGS%g
15601 s%@XML_LIBS@%$XML_LIBS%g
15602 s%@MODULE_XML@%$MODULE_XML%g
15603 s%@QUOTAOBJS@%$QUOTAOBJS%g
15604 s%@manlangs@%$manlangs%g
15605 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
15606 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
15607 s%@BUILD_POPT@%$BUILD_POPT%g
15608 s%@FLAGS1@%$FLAGS1%g
15609 s%@PYTHON@%$PYTHON%g
15610 s%@builddir@%$builddir%g
15612 CEOF
15615 cat >> $CONFIG_STATUS <<\EOF
15617 # Split the substitutions into bite-sized pieces for seds with
15618 # small command number limits, like on Digital OSF/1 and HP-UX.
15619 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15620 ac_file=1 # Number of current file.
15621 ac_beg=1 # First line for current file.
15622 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15623 ac_more_lines=:
15624 ac_sed_cmds=""
15625 while $ac_more_lines; do
15626 if test $ac_beg -gt 1; then
15627 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15628 else
15629 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15631 if test ! -s conftest.s$ac_file; then
15632 ac_more_lines=false
15633 rm -f conftest.s$ac_file
15634 else
15635 if test -z "$ac_sed_cmds"; then
15636 ac_sed_cmds="sed -f conftest.s$ac_file"
15637 else
15638 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15640 ac_file=`expr $ac_file + 1`
15641 ac_beg=$ac_end
15642 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15644 done
15645 if test -z "$ac_sed_cmds"; then
15646 ac_sed_cmds=cat
15650 cat >> $CONFIG_STATUS <<EOF
15652 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
15654 cat >> $CONFIG_STATUS <<\EOF
15655 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15657 case "$ac_file" in
15658 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15659 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15660 *) ac_file_in="${ac_file}.in" ;;
15661 esac
15663 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15665 # Remove last slash and all that follows it. Not all systems have dirname.
15666 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15668 # The file is in a subdirectory.
15669 test ! -d "$ac_dir" && mkdir "$ac_dir"
15670 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15671 # A "../" for each directory in $ac_dir_suffix.
15672 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15673 else
15674 ac_dir_suffix= ac_dots=
15677 case "$ac_given_srcdir" in
15678 .) srcdir=.
15679 if test -z "$ac_dots"; then top_srcdir=.
15680 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
15681 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
15682 *) # Relative path.
15683 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
15684 top_srcdir="$ac_dots$ac_given_srcdir" ;;
15685 esac
15687 case "$ac_given_INSTALL" in
15688 [/$]*) INSTALL="$ac_given_INSTALL" ;;
15689 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
15690 esac
15692 echo creating "$ac_file"
15693 rm -f "$ac_file"
15694 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
15695 case "$ac_file" in
15696 *Makefile*) ac_comsub="1i\\
15697 # $configure_input" ;;
15698 *) ac_comsub= ;;
15699 esac
15701 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15702 sed -e "$ac_comsub
15703 s%@configure_input@%$configure_input%g
15704 s%@srcdir@%$srcdir%g
15705 s%@top_srcdir@%$top_srcdir%g
15706 s%@INSTALL@%$INSTALL%g
15707 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
15708 fi; done
15709 rm -f conftest.s*
15711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15714 # ac_d sets the value in "#define NAME VALUE" lines.
15715 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15716 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
15717 ac_dC='\3'
15718 ac_dD='%g'
15719 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15720 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15721 ac_uB='\([ ]\)%\1#\2define\3'
15722 ac_uC=' '
15723 ac_uD='\4%g'
15724 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15725 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15726 ac_eB='$%\1#\2define\3'
15727 ac_eC=' '
15728 ac_eD='%g'
15730 if test "${CONFIG_HEADERS+set}" != set; then
15732 cat >> $CONFIG_STATUS <<EOF
15733 CONFIG_HEADERS="include/config.h"
15735 cat >> $CONFIG_STATUS <<\EOF
15737 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
15738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15739 case "$ac_file" in
15740 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15741 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15742 *) ac_file_in="${ac_file}.in" ;;
15743 esac
15745 echo creating $ac_file
15747 rm -f conftest.frag conftest.in conftest.out
15748 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
15749 cat $ac_file_inputs > conftest.in
15753 # Transform confdefs.h into a sed script conftest.vals that substitutes
15754 # the proper values into config.h.in to produce config.h. And first:
15755 # Protect against being on the right side of a sed subst in config.status.
15756 # Protect against being in an unquoted here document in config.status.
15757 rm -f conftest.vals
15758 cat > conftest.hdr <<\EOF
15759 s/[\\&%]/\\&/g
15760 s%[\\$`]%\\&%g
15761 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
15762 s%ac_d%ac_u%gp
15763 s%ac_u%ac_e%gp
15765 sed -n -f conftest.hdr confdefs.h > conftest.vals
15766 rm -f conftest.hdr
15768 # This sed command replaces #undef with comments. This is necessary, for
15769 # example, in the case of _POSIX_SOURCE, which is predefined and required
15770 # on some systems where configure will not decide to define it.
15771 cat >> conftest.vals <<\EOF
15772 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
15775 # Break up conftest.vals because some shells have a limit on
15776 # the size of here documents, and old seds have small limits too.
15778 rm -f conftest.tail
15779 while :
15781 ac_lines=`grep -c . conftest.vals`
15782 # grep -c gives empty output for an empty file on some AIX systems.
15783 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
15784 # Write a limited-size here document to conftest.frag.
15785 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
15786 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
15787 echo 'CEOF
15788 sed -f conftest.frag conftest.in > conftest.out
15789 rm -f conftest.in
15790 mv conftest.out conftest.in
15791 ' >> $CONFIG_STATUS
15792 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15793 rm -f conftest.vals
15794 mv conftest.tail conftest.vals
15795 done
15796 rm -f conftest.vals
15798 cat >> $CONFIG_STATUS <<\EOF
15799 rm -f conftest.frag conftest.h
15800 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
15801 cat conftest.in >> conftest.h
15802 rm -f conftest.in
15803 if cmp -s $ac_file conftest.h 2>/dev/null; then
15804 echo "$ac_file is unchanged"
15805 rm -f conftest.h
15806 else
15807 # Remove last slash and all that follows it. Not all systems have dirname.
15808 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15810 # The file is in a subdirectory.
15811 test ! -d "$ac_dir" && mkdir "$ac_dir"
15813 rm -f $ac_file
15814 mv conftest.h $ac_file
15816 fi; done
15819 cat >> $CONFIG_STATUS <<EOF
15822 cat >> $CONFIG_STATUS <<\EOF
15824 exit 0
15826 chmod +x $CONFIG_STATUS
15827 rm -fr confdefs* $ac_clean_files
15828 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
15831 #################################################
15832 # Print very concise instructions on building/use
15833 if test "x$enable_dmalloc" = xyes
15834 then
15835 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
15836 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6