printing merge from SAMBA_2_2. Ther server code looks to be in sync now.
[Samba.git] / source / configure
blobd8640bfc7ac2c1a38c51389a9b3b4cde37c4c734
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-codepagedir=DIR Where to put codepage files (\$libdir/codepages)"
29 ac_help="$ac_help
30 --with-logfilebase=DIR Where to put log files (\$(VARDIR))"
31 ac_help="$ac_help
32 --enable-debug Turn on compiler debugging information (default=no)"
33 ac_help="$ac_help
34 --enable-developer turn on developer warnings and debugging [default=no]"
35 ac_help="$ac_help
36 --enable-krb5developer turn on developer warnings and debugging, except -Wstrict-prototypes [default=no]"
37 ac_help="$ac_help
38 --enable-dmalloc enable heap debugging [default=no]"
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-krb5=base-dir Locate Kerberos 5 support (default=/usr)"
51 ac_help="$ac_help
52 --with-automount Include AUTOMOUNT support (default=no)"
53 ac_help="$ac_help
54 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
55 ac_help="$ac_help
56 --with-pam Include PAM support (default=no)"
57 ac_help="$ac_help
58 --with-pam_smbpass Build a PAM module to allow other applications to use our smbpasswd file (default=no)"
59 ac_help="$ac_help
60 --with-tdbsam Include experimental TDB SAM support (default=no)"
61 ac_help="$ac_help
62 --with-nisplussam Include NISPLUS SAM support (default=no)"
63 ac_help="$ac_help
64 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
65 ac_help="$ac_help
66 --with-syslog Include experimental SYSLOG support (default=no)"
67 ac_help="$ac_help
68 --with-profiling-data Include gathering source code profile information (default=no)"
69 ac_help="$ac_help
70 --with-quotas Include experimental disk-quota support (default=no)"
71 ac_help="$ac_help
72 --with-utmp Include experimental utmp accounting (default=no)"
73 ac_help="$ac_help
74 --with-privatedir=DIR Where to put smbpasswd ($ac_default_prefix/private)"
75 ac_help="$ac_help
76 --with-lockdir=DIR Where to put lock files ($ac_default_prefix/var/locks)"
77 ac_help="$ac_help
78 --with-swatdir=DIR Where to put SWAT files ($ac_default_prefix/swat)"
79 ac_help="$ac_help
80 --with-manpages-langs={en,ja,pl} Choose man pages' language(s). (en)"
81 ac_help="$ac_help
82 --with-spinlocks Use spin locks instead of fcntl locks (default=no) "
83 ac_help="$ac_help
84 --with-acl-support Include ACL support (default=no)"
85 ac_help="$ac_help
86 --with-winbind Build winbind (default, if supported by OS)"
87 ac_help="$ac_help
88 --with-included-popt use bundled popt library, not from system"
90 # Initialize some variables set by options.
91 # The variables have the same names as the options, with
92 # dashes changed to underlines.
93 build=NONE
94 cache_file=./config.cache
95 exec_prefix=NONE
96 host=NONE
97 no_create=
98 nonopt=NONE
99 no_recursion=
100 prefix=NONE
101 program_prefix=NONE
102 program_suffix=NONE
103 program_transform_name=s,x,x,
104 silent=
105 site=
106 srcdir=
107 target=NONE
108 verbose=
109 x_includes=NONE
110 x_libraries=NONE
111 bindir='${exec_prefix}/bin'
112 sbindir='${exec_prefix}/sbin'
113 libexecdir='${exec_prefix}/libexec'
114 datadir='${prefix}/share'
115 sysconfdir='${prefix}/etc'
116 sharedstatedir='${prefix}/com'
117 localstatedir='${prefix}/var'
118 libdir='${exec_prefix}/lib'
119 includedir='${prefix}/include'
120 oldincludedir='/usr/include'
121 infodir='${prefix}/info'
122 mandir='${prefix}/man'
124 # Initialize some other variables.
125 subdirs=
126 MFLAGS= MAKEFLAGS=
127 SHELL=${CONFIG_SHELL-/bin/sh}
128 # Maximum number of lines to put in a shell here document.
129 ac_max_here_lines=12
131 ac_prev=
132 for ac_option
135 # If the previous option needs an argument, assign it.
136 if test -n "$ac_prev"; then
137 eval "$ac_prev=\$ac_option"
138 ac_prev=
139 continue
142 case "$ac_option" in
143 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 *) ac_optarg= ;;
145 esac
147 # Accept the important Cygnus configure options, so we can diagnose typos.
149 case "$ac_option" in
151 -bindir | --bindir | --bindi | --bind | --bin | --bi)
152 ac_prev=bindir ;;
153 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
154 bindir="$ac_optarg" ;;
156 -build | --build | --buil | --bui | --bu)
157 ac_prev=build ;;
158 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
159 build="$ac_optarg" ;;
161 -cache-file | --cache-file | --cache-fil | --cache-fi \
162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
163 ac_prev=cache_file ;;
164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
166 cache_file="$ac_optarg" ;;
168 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169 ac_prev=datadir ;;
170 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171 | --da=*)
172 datadir="$ac_optarg" ;;
174 -disable-* | --disable-*)
175 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
176 # Reject names that are not valid shell variable names.
177 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
178 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
180 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
181 eval "enable_${ac_feature}=no" ;;
183 -enable-* | --enable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 case "$ac_option" in
191 *=*) ;;
192 *) ac_optarg=yes ;;
193 esac
194 eval "enable_${ac_feature}='$ac_optarg'" ;;
196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
198 | --exec | --exe | --ex)
199 ac_prev=exec_prefix ;;
200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
202 | --exec=* | --exe=* | --ex=*)
203 exec_prefix="$ac_optarg" ;;
205 -gas | --gas | --ga | --g)
206 # Obsolete; use --with-gas.
207 with_gas=yes ;;
209 -help | --help | --hel | --he)
210 # Omit some internal or obsolete options to make the list less imposing.
211 # This message is too long to be a string in the A/UX 3.1 sh.
212 cat << EOF
213 Usage: configure [options] [host]
214 Options: [defaults in brackets after descriptions]
215 Configuration:
216 --cache-file=FILE cache test results in FILE
217 --help print this message
218 --no-create do not create output files
219 --quiet, --silent do not print \`checking...' messages
220 --version print the version of autoconf that created configure
221 Directory and file names:
222 --prefix=PREFIX install architecture-independent files in PREFIX
223 [$ac_default_prefix]
224 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 [same as prefix]
226 --bindir=DIR user executables in DIR [EPREFIX/bin]
227 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
228 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
229 --datadir=DIR read-only architecture-independent data in DIR
230 [PREFIX/share]
231 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
232 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 [PREFIX/com]
234 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
235 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
236 --includedir=DIR C header files in DIR [PREFIX/include]
237 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
238 --infodir=DIR info documentation in DIR [PREFIX/info]
239 --mandir=DIR man documentation in DIR [PREFIX/man]
240 --srcdir=DIR find the sources in DIR [configure dir or ..]
241 --program-prefix=PREFIX prepend PREFIX to installed program names
242 --program-suffix=SUFFIX append SUFFIX to installed program names
243 --program-transform-name=PROGRAM
244 run sed PROGRAM on installed program names
246 cat << EOF
247 Host type:
248 --build=BUILD configure for building on BUILD [BUILD=HOST]
249 --host=HOST configure for HOST [guessed]
250 --target=TARGET configure for TARGET [TARGET=HOST]
251 Features and packages:
252 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
253 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
254 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
255 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
256 --x-includes=DIR X include files are in DIR
257 --x-libraries=DIR X library files are in DIR
259 if test -n "$ac_help"; then
260 echo "--enable and --with options recognized:$ac_help"
262 exit 0 ;;
264 -host | --host | --hos | --ho)
265 ac_prev=host ;;
266 -host=* | --host=* | --hos=* | --ho=*)
267 host="$ac_optarg" ;;
269 -includedir | --includedir | --includedi | --included | --include \
270 | --includ | --inclu | --incl | --inc)
271 ac_prev=includedir ;;
272 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
273 | --includ=* | --inclu=* | --incl=* | --inc=*)
274 includedir="$ac_optarg" ;;
276 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir="$ac_optarg" ;;
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir="$ac_optarg" ;;
286 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
287 | --libexe | --libex | --libe)
288 ac_prev=libexecdir ;;
289 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
290 | --libexe=* | --libex=* | --libe=*)
291 libexecdir="$ac_optarg" ;;
293 -localstatedir | --localstatedir | --localstatedi | --localstated \
294 | --localstate | --localstat | --localsta | --localst \
295 | --locals | --local | --loca | --loc | --lo)
296 ac_prev=localstatedir ;;
297 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
298 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
299 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
300 localstatedir="$ac_optarg" ;;
302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir="$ac_optarg" ;;
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
321 | --oldin | --oldi | --old | --ol | --o)
322 ac_prev=oldincludedir ;;
323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
326 oldincludedir="$ac_optarg" ;;
328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix="$ac_optarg" ;;
333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
334 | --program-pre | --program-pr | --program-p)
335 ac_prev=program_prefix ;;
336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
338 program_prefix="$ac_optarg" ;;
340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
341 | --program-suf | --program-su | --program-s)
342 ac_prev=program_suffix ;;
343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
345 program_suffix="$ac_optarg" ;;
347 -program-transform-name | --program-transform-name \
348 | --program-transform-nam | --program-transform-na \
349 | --program-transform-n | --program-transform- \
350 | --program-transform | --program-transfor \
351 | --program-transfo | --program-transf \
352 | --program-trans | --program-tran \
353 | --progr-tra | --program-tr | --program-t)
354 ac_prev=program_transform_name ;;
355 -program-transform-name=* | --program-transform-name=* \
356 | --program-transform-nam=* | --program-transform-na=* \
357 | --program-transform-n=* | --program-transform-=* \
358 | --program-transform=* | --program-transfor=* \
359 | --program-transfo=* | --program-transf=* \
360 | --program-trans=* | --program-tran=* \
361 | --progr-tra=* | --program-tr=* | --program-t=*)
362 program_transform_name="$ac_optarg" ;;
364 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
365 | -silent | --silent | --silen | --sile | --sil)
366 silent=yes ;;
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir="$ac_optarg" ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir="$ac_optarg" ;;
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site="$ac_optarg" ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir="$ac_optarg" ;;
395 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
396 | --syscon | --sysco | --sysc | --sys | --sy)
397 ac_prev=sysconfdir ;;
398 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
399 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
400 sysconfdir="$ac_optarg" ;;
402 -target | --target | --targe | --targ | --tar | --ta | --t)
403 ac_prev=target ;;
404 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
405 target="$ac_optarg" ;;
407 -v | -verbose | --verbose | --verbos | --verbo | --verb)
408 verbose=yes ;;
410 -version | --version | --versio | --versi | --vers)
411 echo "configure generated by autoconf version 2.13"
412 exit 0 ;;
414 -with-* | --with-*)
415 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
418 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
420 ac_package=`echo $ac_package| sed 's/-/_/g'`
421 case "$ac_option" in
422 *=*) ;;
423 *) ac_optarg=yes ;;
424 esac
425 eval "with_${ac_package}='$ac_optarg'" ;;
427 -without-* | --without-*)
428 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}=no" ;;
436 --x)
437 # Obsolete; use --with-x.
438 with_x=yes ;;
440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
441 | --x-incl | --x-inc | --x-in | --x-i)
442 ac_prev=x_includes ;;
443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
445 x_includes="$ac_optarg" ;;
447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
449 ac_prev=x_libraries ;;
450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
452 x_libraries="$ac_optarg" ;;
454 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
458 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
459 echo "configure: warning: $ac_option: invalid host type" 1>&2
461 if test "x$nonopt" != xNONE; then
462 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
464 nonopt="$ac_option"
467 esac
468 done
470 if test -n "$ac_prev"; then
471 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
474 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
476 # File descriptor usage:
477 # 0 standard input
478 # 1 file creation
479 # 2 errors and warnings
480 # 3 some systems may open it to /dev/tty
481 # 4 used on the Kubota Titan
482 # 6 checking for... messages and results
483 # 5 compiler messages saved in config.log
484 if test "$silent" = yes; then
485 exec 6>/dev/null
486 else
487 exec 6>&1
489 exec 5>./config.log
491 echo "\
492 This file contains any messages produced by compilers while
493 running configure, to aid debugging if configure makes a mistake.
494 " 1>&5
496 # Strip out --no-create and --no-recursion so they do not pile up.
497 # Also quote any args containing shell metacharacters.
498 ac_configure_args=
499 for ac_arg
501 case "$ac_arg" in
502 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
503 | --no-cr | --no-c) ;;
504 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
505 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
506 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
507 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
508 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
509 esac
510 done
512 # NLS nuisances.
513 # Only set these to C if already set. These must not be set unconditionally
514 # because not all systems understand e.g. LANG=C (notably SCO).
515 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
516 # Non-C LC_CTYPE values break the ctype check.
517 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
518 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
519 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
520 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
522 # confdefs.h avoids OS command line length limits that DEFS can exceed.
523 rm -rf conftest* confdefs.h
524 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
525 echo > confdefs.h
527 # A filename unique to this package, relative to the directory that
528 # configure is in, which we can look for to find out if srcdir is correct.
529 ac_unique_file=include/includes.h
531 # Find the source files, if location was not specified.
532 if test -z "$srcdir"; then
533 ac_srcdir_defaulted=yes
534 # Try the directory containing this script, then its parent.
535 ac_prog=$0
536 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
537 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 srcdir=$ac_confdir
539 if test ! -r $srcdir/$ac_unique_file; then
540 srcdir=..
542 else
543 ac_srcdir_defaulted=no
545 if test ! -r $srcdir/$ac_unique_file; then
546 if test "$ac_srcdir_defaulted" = yes; then
547 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 else
549 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
552 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
554 # Prefer explicitly selected file to automatically selected ones.
555 if test -z "$CONFIG_SITE"; then
556 if test "x$prefix" != xNONE; then
557 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558 else
559 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
562 for ac_site_file in $CONFIG_SITE; do
563 if test -r "$ac_site_file"; then
564 echo "loading site script $ac_site_file"
565 . "$ac_site_file"
567 done
569 if test -r "$cache_file"; then
570 echo "loading cache $cache_file"
571 . $cache_file
572 else
573 echo "creating cache $cache_file"
574 > $cache_file
577 ac_ext=c
578 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
579 ac_cpp='$CPP $CPPFLAGS'
580 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
581 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
582 cross_compiling=$ac_cv_prog_cc_cross
584 ac_exeext=
585 ac_objext=o
586 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
587 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
588 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
589 ac_n= ac_c='
590 ' ac_t=' '
591 else
592 ac_n=-n ac_c= ac_t=
594 else
595 ac_n= ac_c='\c' ac_t=
601 #################################################
602 # Directory handling stuff to support both the
603 # legacy SAMBA directories and FHS compliant
604 # ones...
607 # Check whether --with-fhs or --without-fhs was given.
608 if test "${with_fhs+set}" = set; then
609 withval="$with_fhs"
610 codepagedir="\$(DATADIR)/samba/codepages"
611 configdir="${sysconfdir}/samba"
612 lockdir="\${VARDIR}/cache/samba"
613 piddir="\$(VARDIR)/run/samba"
614 logfilebase="\${VARDIR}/log/samba"
615 privatedir="\${CONFIGDIR}/private"
616 swatdir="\${DATADIR}/samba/swat"
617 else
618 codepagedir="\$(LIBDIR)/codepages"
619 configdir="\$(LIBDIR)"
620 logfilebase="\$(VARDIR)"
621 lockdir="\${VARDIR}/locks"
622 piddir="\$(VARDIR)/locks"
623 privatedir="\${prefix}/private"
624 swatdir="\${prefix}/swat"
628 #################################################
629 # set private directory location
630 # Check whether --with-privatedir or --without-privatedir was given.
631 if test "${with_privatedir+set}" = set; then
632 withval="$with_privatedir"
633 case "$withval" in
634 yes|no)
636 # Just in case anybody calls it without argument
638 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
641 privatedir="$withval"
643 esac
647 #################################################
648 # set lock directory location
649 # Check whether --with-lockdir or --without-lockdir was given.
650 if test "${with_lockdir+set}" = set; then
651 withval="$with_lockdir"
652 case "$withval" in
653 yes|no)
655 # Just in case anybody calls it without argument
657 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
660 lockdir="$withval"
662 esac
666 #################################################
667 # set pid directory location
668 # Check whether --with-piddir or --without-piddir was given.
669 if test "${with_piddir+set}" = set; then
670 withval="$with_piddir"
671 case "$withval" in
672 yes|no)
674 # Just in case anybody calls it without argument
676 echo "configure: warning: --with-piddir called without argument - will use default" 1>&2
679 piddir="$withval"
681 esac
685 #################################################
686 # set SWAT directory location
687 # Check whether --with-swatdir or --without-swatdir was given.
688 if test "${with_swatdir+set}" = set; then
689 withval="$with_swatdir"
690 case "$withval" in
691 yes|no)
693 # Just in case anybody does it
695 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
698 swatdir="$withval"
700 esac
704 #################################################
705 # set configuration directory location
706 # Check whether --with-configdir or --without-configdir was given.
707 if test "${with_configdir+set}" = set; then
708 withval="$with_configdir"
709 case "$withval" in
710 yes|no)
712 # Just in case anybody does it
714 echo "configure: warning: --with-configdir called without argument - will use default" 1>&2
717 configdir="$withval"
719 esac
723 #################################################
724 # set codepage directory location
725 # Check whether --with-codepagedir or --without-codepagedir was given.
726 if test "${with_codepagedir+set}" = set; then
727 withval="$with_codepagedir"
728 case "$withval" in
729 yes|no)
731 # Just in case anybody does it
733 echo "configure: warning: --with-codepagedir called without argument - will use default" 1>&2
736 codepagedir="$withval"
738 esac
742 #################################################
743 # set log directory location
744 # Check whether --with-logfilebase or --without-logfilebase was given.
745 if test "${with_logfilebase+set}" = set; then
746 withval="$with_logfilebase"
747 case "$withval" in
748 yes|no)
750 # Just in case anybody does it
752 echo "configure: warning: --with-logfilebase called without argument - will use default" 1>&2
755 logfilebase="$withval"
757 esac
786 # compile with optimisation and without debugging by default
787 CFLAGS="-O ${CFLAGS}"
789 # Check whether --enable-debug or --disable-debug was given.
790 if test "${enable_debug+set}" = set; then
791 enableval="$enable_debug"
792 if eval "test x$enable_debug = xyes"; then
793 CFLAGS="${CFLAGS} -g"
798 # Check whether --enable-developer or --disable-developer was given.
799 if test "${enable_developer+set}" = set; then
800 enableval="$enable_developer"
801 if eval "test x$enable_developer = xyes"; then
802 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
807 # Check whether --enable-krb5developer or --disable-krb5developer was given.
808 if test "${enable_krb5developer+set}" = set; then
809 enableval="$enable_krb5developer"
810 if eval "test x$enable_krb5developer = xyes"; then
811 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -DDEBUG_PASSWORD -DDEVELOPER"
816 # Check whether --enable-dmalloc or --disable-dmalloc was given.
817 if test "${enable_dmalloc+set}" = set; then
818 enableval="$enable_dmalloc"
823 if test "x$enable_dmalloc" = xyes
824 then
825 cat >> confdefs.h <<\EOF
826 #define ENABLE_DMALLOC 1
829 cat >> confdefs.h <<\EOF
830 #define DMALLOC_FUNC_CHECK 1
833 LIBS="$LIBS -ldmalloc"
836 # Extract the first word of "gcc", so it can be a program name with args.
837 set dummy gcc; ac_word=$2
838 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
839 echo "configure:840: checking for $ac_word" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
842 else
843 if test -n "$CC"; then
844 ac_cv_prog_CC="$CC" # Let the user override the test.
845 else
846 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847 ac_dummy="$PATH"
848 for ac_dir in $ac_dummy; do
849 test -z "$ac_dir" && ac_dir=.
850 if test -f $ac_dir/$ac_word; then
851 ac_cv_prog_CC="gcc"
852 break
854 done
855 IFS="$ac_save_ifs"
858 CC="$ac_cv_prog_CC"
859 if test -n "$CC"; then
860 echo "$ac_t""$CC" 1>&6
861 else
862 echo "$ac_t""no" 1>&6
865 if test -z "$CC"; then
866 # Extract the first word of "cc", so it can be a program name with args.
867 set dummy cc; ac_word=$2
868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
869 echo "configure:870: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
872 else
873 if test -n "$CC"; then
874 ac_cv_prog_CC="$CC" # Let the user override the test.
875 else
876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
877 ac_prog_rejected=no
878 ac_dummy="$PATH"
879 for ac_dir in $ac_dummy; do
880 test -z "$ac_dir" && ac_dir=.
881 if test -f $ac_dir/$ac_word; then
882 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
883 ac_prog_rejected=yes
884 continue
886 ac_cv_prog_CC="cc"
887 break
889 done
890 IFS="$ac_save_ifs"
891 if test $ac_prog_rejected = yes; then
892 # We found a bogon in the path, so make sure we never use it.
893 set dummy $ac_cv_prog_CC
894 shift
895 if test $# -gt 0; then
896 # We chose a different compiler from the bogus one.
897 # However, it has the same basename, so the bogon will be chosen
898 # first if we set CC to just the basename; use the full file name.
899 shift
900 set dummy "$ac_dir/$ac_word" "$@"
901 shift
902 ac_cv_prog_CC="$@"
907 CC="$ac_cv_prog_CC"
908 if test -n "$CC"; then
909 echo "$ac_t""$CC" 1>&6
910 else
911 echo "$ac_t""no" 1>&6
914 if test -z "$CC"; then
915 case "`uname -s`" in
916 *win32* | *WIN32*)
917 # Extract the first word of "cl", so it can be a program name with args.
918 set dummy cl; ac_word=$2
919 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
920 echo "configure:921: checking for $ac_word" >&5
921 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
923 else
924 if test -n "$CC"; then
925 ac_cv_prog_CC="$CC" # Let the user override the test.
926 else
927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
928 ac_dummy="$PATH"
929 for ac_dir in $ac_dummy; do
930 test -z "$ac_dir" && ac_dir=.
931 if test -f $ac_dir/$ac_word; then
932 ac_cv_prog_CC="cl"
933 break
935 done
936 IFS="$ac_save_ifs"
939 CC="$ac_cv_prog_CC"
940 if test -n "$CC"; then
941 echo "$ac_t""$CC" 1>&6
942 else
943 echo "$ac_t""no" 1>&6
946 esac
948 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
951 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
952 echo "configure:953: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
954 ac_ext=c
955 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
958 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
959 cross_compiling=$ac_cv_prog_cc_cross
961 cat > conftest.$ac_ext << EOF
963 #line 964 "configure"
964 #include "confdefs.h"
966 main(){return(0);}
968 if { (eval echo configure:969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
969 ac_cv_prog_cc_works=yes
970 # If we can't run a trivial program, we are probably using a cross compiler.
971 if (./conftest; exit) 2>/dev/null; then
972 ac_cv_prog_cc_cross=no
973 else
974 ac_cv_prog_cc_cross=yes
976 else
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
979 ac_cv_prog_cc_works=no
981 rm -fr conftest*
982 ac_ext=c
983 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
984 ac_cpp='$CPP $CPPFLAGS'
985 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
986 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
987 cross_compiling=$ac_cv_prog_cc_cross
989 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
990 if test $ac_cv_prog_cc_works = no; then
991 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
993 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
994 echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
995 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
996 cross_compiling=$ac_cv_prog_cc_cross
998 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
999 echo "configure:1000: checking whether we are using GNU C" >&5
1000 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1001 echo $ac_n "(cached) $ac_c" 1>&6
1002 else
1003 cat > conftest.c <<EOF
1004 #ifdef __GNUC__
1005 yes;
1006 #endif
1008 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1009 ac_cv_prog_gcc=yes
1010 else
1011 ac_cv_prog_gcc=no
1015 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1017 if test $ac_cv_prog_gcc = yes; then
1018 GCC=yes
1019 else
1020 GCC=
1023 ac_test_CFLAGS="${CFLAGS+set}"
1024 ac_save_CFLAGS="$CFLAGS"
1025 CFLAGS=
1026 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1027 echo "configure:1028: checking whether ${CC-cc} accepts -g" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1030 else
1031 echo 'void f(){}' > conftest.c
1032 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1033 ac_cv_prog_cc_g=yes
1034 else
1035 ac_cv_prog_cc_g=no
1037 rm -f conftest*
1041 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1042 if test "$ac_test_CFLAGS" = set; then
1043 CFLAGS="$ac_save_CFLAGS"
1044 elif test $ac_cv_prog_cc_g = yes; then
1045 if test "$GCC" = yes; then
1046 CFLAGS="-g -O2"
1047 else
1048 CFLAGS="-g"
1050 else
1051 if test "$GCC" = yes; then
1052 CFLAGS="-O2"
1053 else
1054 CFLAGS=
1058 ac_aux_dir=
1059 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1060 if test -f $ac_dir/install-sh; then
1061 ac_aux_dir=$ac_dir
1062 ac_install_sh="$ac_aux_dir/install-sh -c"
1063 break
1064 elif test -f $ac_dir/install.sh; then
1065 ac_aux_dir=$ac_dir
1066 ac_install_sh="$ac_aux_dir/install.sh -c"
1067 break
1069 done
1070 if test -z "$ac_aux_dir"; then
1071 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1073 ac_config_guess=$ac_aux_dir/config.guess
1074 ac_config_sub=$ac_aux_dir/config.sub
1075 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1077 # Find a good install program. We prefer a C program (faster),
1078 # so one script is as good as another. But avoid the broken or
1079 # incompatible versions:
1080 # SysV /etc/install, /usr/sbin/install
1081 # SunOS /usr/etc/install
1082 # IRIX /sbin/install
1083 # AIX /bin/install
1084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1087 # ./install, which can be erroneously created by make from ./install.sh.
1088 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1089 echo "configure:1090: checking for a BSD compatible install" >&5
1090 if test -z "$INSTALL"; then
1091 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1093 else
1094 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1095 for ac_dir in $PATH; do
1096 # Account for people who put trailing slashes in PATH elements.
1097 case "$ac_dir/" in
1098 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1100 # OSF1 and SCO ODT 3.0 have their own names for install.
1101 # Don't use installbsd from OSF since it installs stuff as root
1102 # by default.
1103 for ac_prog in ginstall scoinst install; do
1104 if test -f $ac_dir/$ac_prog; then
1105 if test $ac_prog = install &&
1106 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1107 # AIX install. It has an incompatible calling convention.
1109 else
1110 ac_cv_path_install="$ac_dir/$ac_prog -c"
1111 break 2
1114 done
1116 esac
1117 done
1118 IFS="$ac_save_IFS"
1121 if test "${ac_cv_path_install+set}" = set; then
1122 INSTALL="$ac_cv_path_install"
1123 else
1124 # As a last resort, use the slow shell script. We don't cache a
1125 # path for INSTALL within a source directory, because that will
1126 # break other packages using the cache if that directory is
1127 # removed, or if the path is relative.
1128 INSTALL="$ac_install_sh"
1131 echo "$ac_t""$INSTALL" 1>&6
1133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1134 # It thinks the first close brace ends the variable substitution.
1135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1141 for ac_prog in gawk mawk nawk awk
1143 # Extract the first word of "$ac_prog", so it can be a program name with args.
1144 set dummy $ac_prog; ac_word=$2
1145 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1146 echo "configure:1147: checking for $ac_word" >&5
1147 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
1150 if test -n "$AWK"; then
1151 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1152 else
1153 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1154 ac_dummy="$PATH"
1155 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 if test -f $ac_dir/$ac_word; then
1158 ac_cv_prog_AWK="$ac_prog"
1159 break
1161 done
1162 IFS="$ac_save_ifs"
1165 AWK="$ac_cv_prog_AWK"
1166 if test -n "$AWK"; then
1167 echo "$ac_t""$AWK" 1>&6
1168 else
1169 echo "$ac_t""no" 1>&6
1172 test -n "$AWK" && break
1173 done
1176 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1177 echo "configure:1178: checking for POSIXized ISC" >&5
1178 if test -d /etc/conf/kconfig.d &&
1179 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1180 then
1181 echo "$ac_t""yes" 1>&6
1182 ISC=yes # If later tests want to check for ISC.
1183 cat >> confdefs.h <<\EOF
1184 #define _POSIX_SOURCE 1
1187 if test "$GCC" = yes; then
1188 CC="$CC -posix"
1189 else
1190 CC="$CC -Xp"
1192 else
1193 echo "$ac_t""no" 1>&6
1194 ISC=
1198 if test "x$CC" != xcc; then
1199 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether $CC and cc understand -c and -o together" >&5
1201 else
1202 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether cc understands -c and -o together" >&5
1205 set dummy $CC; ac_cc="`echo $2 |
1206 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1207 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209 else
1210 echo 'foo(){}' > conftest.c
1211 # Make sure it works both with $CC and with simple cc.
1212 # We do the test twice because some compilers refuse to overwrite an
1213 # existing .o file with -o, though they will create one.
1214 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1215 if { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1216 test -f conftest.o && { (eval echo configure:1217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1217 then
1218 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1219 if test "x$CC" != xcc; then
1220 # Test first that cc exists at all.
1221 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1222 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1223 if { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1224 test -f conftest.o && { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1225 then
1226 # cc works too.
1228 else
1229 # cc exists but doesn't like -o.
1230 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1234 else
1235 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1237 rm -f conftest*
1240 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1241 echo "$ac_t""yes" 1>&6
1242 else
1243 echo "$ac_t""no" 1>&6
1244 cat >> confdefs.h <<\EOF
1245 #define NO_MINUS_C_MINUS_O 1
1250 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1251 BROKEN_CC=
1252 else
1253 BROKEN_CC=#
1257 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1258 echo "configure:1259: checking that the C compiler understands volatile" >&5
1259 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261 else
1263 cat > conftest.$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1266 #include <sys/types.h>
1267 int main() {
1268 volatile int i = 0
1269 ; return 0; }
1271 if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1272 rm -rf conftest*
1273 samba_cv_volatile=yes
1274 else
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1277 rm -rf conftest*
1278 samba_cv_volatile=no
1280 rm -f conftest*
1283 echo "$ac_t""$samba_cv_volatile" 1>&6
1284 if test x"$samba_cv_volatile" = x"yes"; then
1285 cat >> confdefs.h <<\EOF
1286 #define HAVE_VOLATILE 1
1293 # Do some error checking and defaulting for the host and target type.
1294 # The inputs are:
1295 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1297 # The rules are:
1298 # 1. You are not allowed to specify --host, --target, and nonopt at the
1299 # same time.
1300 # 2. Host defaults to nonopt.
1301 # 3. If nonopt is not specified, then host defaults to the current host,
1302 # as determined by config.guess.
1303 # 4. Target and build default to nonopt.
1304 # 5. If nonopt is not specified, then target and build default to host.
1306 # The aliases save the names the user supplied, while $host etc.
1307 # will get canonicalized.
1308 case $host---$target---$nonopt in
1309 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1310 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1311 esac
1314 # Make sure we can run config.sub.
1315 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1316 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1319 echo $ac_n "checking host system type""... $ac_c" 1>&6
1320 echo "configure:1321: checking host system type" >&5
1322 host_alias=$host
1323 case "$host_alias" in
1324 NONE)
1325 case $nonopt in
1326 NONE)
1327 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1328 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1329 fi ;;
1330 *) host_alias=$nonopt ;;
1331 esac ;;
1332 esac
1334 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1335 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1336 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1337 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338 echo "$ac_t""$host" 1>&6
1340 echo $ac_n "checking target system type""... $ac_c" 1>&6
1341 echo "configure:1342: checking target system type" >&5
1343 target_alias=$target
1344 case "$target_alias" in
1345 NONE)
1346 case $nonopt in
1347 NONE) target_alias=$host_alias ;;
1348 *) target_alias=$nonopt ;;
1349 esac ;;
1350 esac
1352 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1353 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1354 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1355 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo "$ac_t""$target" 1>&6
1358 echo $ac_n "checking build system type""... $ac_c" 1>&6
1359 echo "configure:1360: checking build system type" >&5
1361 build_alias=$build
1362 case "$build_alias" in
1363 NONE)
1364 case $nonopt in
1365 NONE) build_alias=$host_alias ;;
1366 *) build_alias=$nonopt ;;
1367 esac ;;
1368 esac
1370 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1371 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374 echo "$ac_t""$build" 1>&6
1376 test "$host_alias" != "$target_alias" &&
1377 test "$program_prefix$program_suffix$program_transform_name" = \
1378 NONENONEs,x,x, &&
1379 program_prefix=${target_alias}-
1382 case "$host_os" in
1383 *irix6*) cat >> confdefs.h <<\EOF
1384 #include <standards.h>
1388 esac
1392 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1393 echo "configure:1394: checking config.cache system type" >&5
1394 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1395 test x"$ac_cv_host_system_type" != x"$host"; } ||
1396 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1397 test x"$ac_cv_build_system_type" != x"$build"; } ||
1398 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1399 test x"$ac_cv_target_system_type" != x"$target"; }; then
1400 echo "$ac_t""different" 1>&6
1401 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1402 else
1403 echo "$ac_t""same" 1>&6
1405 ac_cv_host_system_type="$host"
1406 ac_cv_build_system_type="$build"
1407 ac_cv_target_system_type="$target"
1410 DYNEXP=
1413 # Config CPPFLAG settings for strange OS's that must be set
1414 # before other tests.
1416 case "$host_os" in
1417 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1418 *hpux*)
1420 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1421 echo "configure:1422: checking whether ${CC-cc} accepts -Ae" >&5
1422 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1424 else
1425 echo 'void f(){}' > conftest.c
1426 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1427 ac_cv_prog_cc_Ae=yes
1428 else
1429 ac_cv_prog_cc_Ae=no
1431 rm -f conftest*
1435 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1436 # mmap on HPUX is completely broken...
1437 cat >> confdefs.h <<\EOF
1438 #define MMAP_BLACKLIST 1
1441 if test $ac_cv_prog_cc_Ae = yes; then
1442 CPPFLAGS="$CPPFLAGS -Ae"
1445 # Defines needed for HPUX support.
1446 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1447 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1449 case `uname -r` in
1450 *9*|*10*)
1451 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1452 cat >> confdefs.h <<\EOF
1453 #define USE_BOTH_CRYPT_CALLS 1
1456 cat >> confdefs.h <<\EOF
1457 #define _HPUX_SOURCE 1
1460 cat >> confdefs.h <<\EOF
1461 #define _POSIX_SOURCE 1
1464 cat >> confdefs.h <<\EOF
1465 #define _ALIGNMENT_REQUIRED 1
1468 cat >> confdefs.h <<\EOF
1469 #define _MAX_ALIGNMENT 4
1473 *11*)
1474 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1475 cat >> confdefs.h <<\EOF
1476 #define USE_BOTH_CRYPT_CALLS 1
1479 cat >> confdefs.h <<\EOF
1480 #define _HPUX_SOURCE 1
1483 cat >> confdefs.h <<\EOF
1484 #define _POSIX_SOURCE 1
1487 cat >> confdefs.h <<\EOF
1488 #define _LARGEFILE64_SOURCE 1
1491 cat >> confdefs.h <<\EOF
1492 #define _ALIGNMENT_REQUIRED 1
1495 cat >> confdefs.h <<\EOF
1496 #define _MAX_ALIGNMENT 4
1500 esac
1501 DYNEXP="-Wl,-E"
1505 # CRAY Unicos has broken const handling
1506 *unicos*)
1507 echo "$ac_t""disabling const" 1>&6
1508 CPPFLAGS="$CPPFLAGS -Dconst="
1512 # AIX4.x doesn't even admit to having large
1513 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1515 *aix4*)
1516 echo "$ac_t""enabling large file support" 1>&6
1517 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1518 cat >> confdefs.h <<\EOF
1519 #define _LARGE_FILES 1
1524 # Defines needed for Solaris 2.6/2.7 aka 7.0 to make it admit
1525 # to the existance of large files..
1526 # Note that -D_LARGEFILE64_SOURCE is different from the Sun
1527 # recommendations on large file support, however it makes the
1528 # compile work using gcc 2.7 and 2.8, whereas using the Sun
1529 # recommendation makes the compile fail on gcc2.7. JRA.
1531 *solaris*)
1532 case `uname -r` in
1533 5.0*|5.1*|5.2*|5.3*|5.5*)
1534 echo "$ac_t""no large file support" 1>&6
1536 5.*)
1537 echo "$ac_t""enabling large file support" 1>&6
1538 if test "$ac_cv_prog_gcc" = yes; then
1539 ${CC-cc} -v >conftest.c 2>&1
1540 ac_cv_gcc_compiler_version_number=`grep 'gcc version' conftest.c`
1541 rm -fr conftest.c
1542 case "$ac_cv_gcc_compiler_version_number" in
1543 *"gcc version 2.6"*|*"gcc version 2.7"*)
1544 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
1545 cat >> confdefs.h <<\EOF
1546 #define _LARGEFILE64_SOURCE 1
1551 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1552 cat >> confdefs.h <<\EOF
1553 #define _LARGEFILE64_SOURCE 1
1556 cat >> confdefs.h <<\EOF
1557 #define _FILE_OFFSET_BITS 64
1561 esac
1562 else
1563 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
1564 cat >> confdefs.h <<\EOF
1565 #define _LARGEFILE64_SOURCE 1
1568 cat >> confdefs.h <<\EOF
1569 #define _FILE_OFFSET_BITS 64
1574 esac
1577 # Tests needed for SINIX large file support.
1579 *sysv4*)
1580 if test $host = mips-sni-sysv4 ; then
1581 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1582 echo "configure:1583: checking for LFS support" >&5
1583 old_CPPFLAGS="$CPPFLAGS"
1584 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1585 if test "$cross_compiling" = yes; then
1586 SINIX_LFS_SUPPORT=cross
1587 else
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1592 #include <unistd.h>
1593 main () {
1594 #if _LFS64_LARGEFILE == 1
1595 exit(0);
1596 #else
1597 exit(1);
1598 #endif
1601 if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1602 then
1603 SINIX_LFS_SUPPORT=yes
1604 else
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 rm -fr conftest*
1608 SINIX_LFS_SUPPORT=no
1610 rm -fr conftest*
1613 CPPFLAGS="$old_CPPFLAGS"
1614 if test x$SINIX_LFS_SUPPORT = xyes ; then
1615 CPPFLAGS="-D_LARGEFILE64_SOURCE $CPPFLAGS"
1616 cat >> confdefs.h <<\EOF
1617 #define _LARGEFILE64_SOURCE 1
1620 CFLAGS="`getconf LFS64_CFLAGS` $CFLAGS"
1621 LDFLAGS="`getconf LFS64_LDFLAGS` $LDFLAGS"
1622 LIBS="`getconf LFS64_LIBS` $LIBS"
1624 echo "$ac_t""$SINIX_LFS_SUPPORT" 1>&6
1628 # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support.
1630 *linux*)
1631 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1632 echo "configure:1633: checking for LFS support" >&5
1633 old_CPPFLAGS="$CPPFLAGS"
1634 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1635 if test "$cross_compiling" = yes; then
1636 LINUX_LFS_SUPPORT=cross
1637 else
1638 cat > conftest.$ac_ext <<EOF
1639 #line 1640 "configure"
1640 #include "confdefs.h"
1642 #include <unistd.h>
1643 #include <sys/utsname.h>
1644 main() {
1645 #if _LFS64_LARGEFILE == 1
1646 struct utsname uts;
1647 char *release;
1648 int major, minor;
1650 /* Ensure this is glibc 2.2 or higher */
1651 #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
1652 int libc_major = __GLIBC__;
1653 int libc_minor = __GLIBC_MINOR__;
1655 if (libc_major < 2)
1656 exit(1);
1657 if (libc_minor < 2)
1658 exit(1);
1659 #endif
1661 /* Ensure this is kernel 2.4 or higher */
1663 uname(&uts);
1664 release = uts.release;
1665 major = atoi(strsep(&release, "."));
1666 minor = atoi(strsep(&release, "."));
1668 if (major > 2 || (major == 2 && minor > 3))
1669 exit(0);
1670 exit(1);
1671 #else
1672 exit(1);
1673 #endif
1677 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1678 then
1679 LINUX_LFS_SUPPORT=yes
1680 else
1681 echo "configure: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1683 rm -fr conftest*
1684 LINUX_LFS_SUPPORT=no
1686 rm -fr conftest*
1689 CPPFLAGS="$old_CPPFLAGS"
1690 if test x$LINUX_LFS_SUPPORT = xyes ; then
1691 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS"
1692 cat >> confdefs.h <<\EOF
1693 #define _LARGEFILE64_SOURCE 1
1696 cat >> confdefs.h <<\EOF
1697 #define _FILE_OFFSET_BITS 64
1700 cat >> confdefs.h <<\EOF
1701 #define _GNU_SOURCE 1
1705 echo "$ac_t""$LINUX_LFS_SUPPORT" 1>&6
1708 *hurd*)
1709 echo $ac_n "checking for LFS support""... $ac_c" 1>&6
1710 echo "configure:1711: checking for LFS support" >&5
1711 old_CPPFLAGS="$CPPFLAGS"
1712 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1713 if test "$cross_compiling" = yes; then
1714 GLIBC_LFS_SUPPORT=cross
1715 else
1716 cat > conftest.$ac_ext <<EOF
1717 #line 1718 "configure"
1718 #include "confdefs.h"
1720 #include <unistd.h>
1721 main () {
1722 #if _LFS64_LARGEFILE == 1
1723 exit(0);
1724 #else
1725 exit(1);
1726 #endif
1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1730 then
1731 GLIBC_LFS_SUPPORT=yes
1732 else
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1735 rm -fr conftest*
1736 GLIBC_LFS_SUPPORT=no
1738 rm -fr conftest*
1741 CPPFLAGS="$old_CPPFLAGS"
1742 if test x$GLIBC_LFS_SUPPORT = xyes ; then
1743 CPPFLAGS="-D_LARGEFILE64_SOURCE -D_GNU_SOURCE $CPPFLAGS"
1744 cat >> confdefs.h <<\EOF
1745 #define _LARGEFILE64_SOURCE 1
1748 cat >> confdefs.h <<\EOF
1749 #define _GNU_SOURCE 1
1753 echo "$ac_t""$GLIBC_LFS_SUPPORT" 1>&6
1756 esac
1758 echo $ac_n "checking for inline""... $ac_c" 1>&6
1759 echo "configure:1760: checking for inline" >&5
1760 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1762 else
1763 ac_cv_c_inline=no
1764 for ac_kw in inline __inline__ __inline; do
1765 cat > conftest.$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1769 int main() {
1770 } $ac_kw foo() {
1771 ; return 0; }
1773 if { (eval echo configure:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1774 rm -rf conftest*
1775 ac_cv_c_inline=$ac_kw; break
1776 else
1777 echo "configure: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1780 rm -f conftest*
1781 done
1785 echo "$ac_t""$ac_cv_c_inline" 1>&6
1786 case "$ac_cv_c_inline" in
1787 inline | yes) ;;
1788 no) cat >> confdefs.h <<\EOF
1789 #define inline
1792 *) cat >> confdefs.h <<EOF
1793 #define inline $ac_cv_c_inline
1796 esac
1798 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1799 echo "configure:1800: checking how to run the C preprocessor" >&5
1800 # On Suns, sometimes $CPP names a directory.
1801 if test -n "$CPP" && test -d "$CPP"; then
1802 CPP=
1804 if test -z "$CPP"; then
1805 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1806 echo $ac_n "(cached) $ac_c" 1>&6
1807 else
1808 # This must be in double quotes, not single quotes, because CPP may get
1809 # substituted into the Makefile and "${CC-cc}" will confuse make.
1810 CPP="${CC-cc} -E"
1811 # On the NeXT, cc -E runs the code through the compiler's parser,
1812 # not just through cpp.
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 #include <assert.h>
1817 Syntax Error
1819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1820 { (eval echo configure:1821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1822 if test -z "$ac_err"; then
1824 else
1825 echo "$ac_err" >&5
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1828 rm -rf conftest*
1829 CPP="${CC-cc} -E -traditional-cpp"
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 #include <assert.h>
1834 Syntax Error
1836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1837 { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1839 if test -z "$ac_err"; then
1841 else
1842 echo "$ac_err" >&5
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 CPP="${CC-cc} -nologo -E"
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 #include <assert.h>
1851 Syntax Error
1853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1854 { (eval echo configure:1855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1856 if test -z "$ac_err"; then
1858 else
1859 echo "$ac_err" >&5
1860 echo "configure: failed program was:" >&5
1861 cat conftest.$ac_ext >&5
1862 rm -rf conftest*
1863 CPP=/lib/cpp
1865 rm -f conftest*
1867 rm -f conftest*
1869 rm -f conftest*
1870 ac_cv_prog_CPP="$CPP"
1872 CPP="$ac_cv_prog_CPP"
1873 else
1874 ac_cv_prog_CPP="$CPP"
1876 echo "$ac_t""$CPP" 1>&6
1878 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1879 echo "configure:1880: checking for ANSI C header files" >&5
1880 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1882 else
1883 cat > conftest.$ac_ext <<EOF
1884 #line 1885 "configure"
1885 #include "confdefs.h"
1886 #include <stdlib.h>
1887 #include <stdarg.h>
1888 #include <string.h>
1889 #include <float.h>
1891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1892 { (eval echo configure:1893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1894 if test -z "$ac_err"; then
1895 rm -rf conftest*
1896 ac_cv_header_stdc=yes
1897 else
1898 echo "$ac_err" >&5
1899 echo "configure: failed program was:" >&5
1900 cat conftest.$ac_ext >&5
1901 rm -rf conftest*
1902 ac_cv_header_stdc=no
1904 rm -f conftest*
1906 if test $ac_cv_header_stdc = yes; then
1907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1908 cat > conftest.$ac_ext <<EOF
1909 #line 1910 "configure"
1910 #include "confdefs.h"
1911 #include <string.h>
1913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1914 egrep "memchr" >/dev/null 2>&1; then
1916 else
1917 rm -rf conftest*
1918 ac_cv_header_stdc=no
1920 rm -f conftest*
1924 if test $ac_cv_header_stdc = yes; then
1925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1926 cat > conftest.$ac_ext <<EOF
1927 #line 1928 "configure"
1928 #include "confdefs.h"
1929 #include <stdlib.h>
1931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1932 egrep "free" >/dev/null 2>&1; then
1934 else
1935 rm -rf conftest*
1936 ac_cv_header_stdc=no
1938 rm -f conftest*
1942 if test $ac_cv_header_stdc = yes; then
1943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1944 if test "$cross_compiling" = yes; then
1946 else
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 #include <ctype.h>
1951 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1952 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1954 int main () { int i; for (i = 0; i < 256; i++)
1955 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1956 exit (0); }
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1960 then
1962 else
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 rm -fr conftest*
1966 ac_cv_header_stdc=no
1968 rm -fr conftest*
1974 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1975 if test $ac_cv_header_stdc = yes; then
1976 cat >> confdefs.h <<\EOF
1977 #define STDC_HEADERS 1
1982 ac_header_dirent=no
1983 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1986 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_hdr that defines DIR" >&5
1988 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1990 else
1991 cat > conftest.$ac_ext <<EOF
1992 #line 1993 "configure"
1993 #include "confdefs.h"
1994 #include <sys/types.h>
1995 #include <$ac_hdr>
1996 int main() {
1997 DIR *dirp = 0;
1998 ; return 0; }
2000 if { (eval echo configure:2001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2001 rm -rf conftest*
2002 eval "ac_cv_header_dirent_$ac_safe=yes"
2003 else
2004 echo "configure: failed program was:" >&5
2005 cat conftest.$ac_ext >&5
2006 rm -rf conftest*
2007 eval "ac_cv_header_dirent_$ac_safe=no"
2009 rm -f conftest*
2011 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2014 cat >> confdefs.h <<EOF
2015 #define $ac_tr_hdr 1
2017 ac_header_dirent=$ac_hdr; break
2018 else
2019 echo "$ac_t""no" 1>&6
2021 done
2022 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2023 if test $ac_header_dirent = dirent.h; then
2024 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2025 echo "configure:2026: checking for opendir in -ldir" >&5
2026 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029 else
2030 ac_save_LIBS="$LIBS"
2031 LIBS="-ldir $LIBS"
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2038 char opendir();
2040 int main() {
2041 opendir()
2042 ; return 0; }
2044 if { (eval echo configure:2045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2045 rm -rf conftest*
2046 eval "ac_cv_lib_$ac_lib_var=yes"
2047 else
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2050 rm -rf conftest*
2051 eval "ac_cv_lib_$ac_lib_var=no"
2053 rm -f conftest*
2054 LIBS="$ac_save_LIBS"
2057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2059 LIBS="$LIBS -ldir"
2060 else
2061 echo "$ac_t""no" 1>&6
2064 else
2065 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2066 echo "configure:2067: checking for opendir in -lx" >&5
2067 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070 else
2071 ac_save_LIBS="$LIBS"
2072 LIBS="-lx $LIBS"
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* Override any gcc2 internal prototype to avoid an error. */
2077 /* We use char because int might match the return type of a gcc2
2078 builtin and then its argument prototype would still apply. */
2079 char opendir();
2081 int main() {
2082 opendir()
2083 ; return 0; }
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2086 rm -rf conftest*
2087 eval "ac_cv_lib_$ac_lib_var=yes"
2088 else
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2091 rm -rf conftest*
2092 eval "ac_cv_lib_$ac_lib_var=no"
2094 rm -f conftest*
2095 LIBS="$ac_save_LIBS"
2098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2099 echo "$ac_t""yes" 1>&6
2100 LIBS="$LIBS -lx"
2101 else
2102 echo "$ac_t""no" 1>&6
2107 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether time.h and sys/time.h may both be included" >&5
2109 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure"
2114 #include "confdefs.h"
2115 #include <sys/types.h>
2116 #include <sys/time.h>
2117 #include <time.h>
2118 int main() {
2119 struct tm *tp;
2120 ; return 0; }
2122 if { (eval echo configure:2123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2123 rm -rf conftest*
2124 ac_cv_header_time=yes
2125 else
2126 echo "configure: failed program was:" >&5
2127 cat conftest.$ac_ext >&5
2128 rm -rf conftest*
2129 ac_cv_header_time=no
2131 rm -f conftest*
2134 echo "$ac_t""$ac_cv_header_time" 1>&6
2135 if test $ac_cv_header_time = yes; then
2136 cat >> confdefs.h <<\EOF
2137 #define TIME_WITH_SYS_TIME 1
2142 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2143 echo "configure:2144: checking for sys/wait.h that is POSIX.1 compatible" >&5
2144 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2145 echo $ac_n "(cached) $ac_c" 1>&6
2146 else
2147 cat > conftest.$ac_ext <<EOF
2148 #line 2149 "configure"
2149 #include "confdefs.h"
2150 #include <sys/types.h>
2151 #include <sys/wait.h>
2152 #ifndef WEXITSTATUS
2153 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2154 #endif
2155 #ifndef WIFEXITED
2156 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2157 #endif
2158 int main() {
2159 int s;
2160 wait (&s);
2161 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2162 ; return 0; }
2164 if { (eval echo configure:2165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2165 rm -rf conftest*
2166 ac_cv_header_sys_wait_h=yes
2167 else
2168 echo "configure: failed program was:" >&5
2169 cat conftest.$ac_ext >&5
2170 rm -rf conftest*
2171 ac_cv_header_sys_wait_h=no
2173 rm -f conftest*
2176 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2177 if test $ac_cv_header_sys_wait_h = yes; then
2178 cat >> confdefs.h <<\EOF
2179 #define HAVE_SYS_WAIT_H 1
2184 for ac_hdr in arpa/inet.h sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
2186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_hdr" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #include <$ac_hdr>
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then
2201 rm -rf conftest*
2202 eval "ac_cv_header_$ac_safe=yes"
2203 else
2204 echo "$ac_err" >&5
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2207 rm -rf conftest*
2208 eval "ac_cv_header_$ac_safe=no"
2210 rm -f conftest*
2212 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2215 cat >> confdefs.h <<EOF
2216 #define $ac_tr_hdr 1
2219 else
2220 echo "$ac_t""no" 1>&6
2222 done
2224 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/if.h
2226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_hdr" >&5
2229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 #include <$ac_hdr>
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then
2241 rm -rf conftest*
2242 eval "ac_cv_header_$ac_safe=yes"
2243 else
2244 echo "$ac_err" >&5
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 rm -rf conftest*
2248 eval "ac_cv_header_$ac_safe=no"
2250 rm -f conftest*
2252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2253 echo "$ac_t""yes" 1>&6
2254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2255 cat >> confdefs.h <<EOF
2256 #define $ac_tr_hdr 1
2259 else
2260 echo "$ac_t""no" 1>&6
2262 done
2264 for ac_hdr in compat.h rpc/rpc.h rpcsvc/nis.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h
2266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2268 echo "configure:2269: checking for $ac_hdr" >&5
2269 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2271 else
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 #include <$ac_hdr>
2277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2278 { (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280 if test -z "$ac_err"; then
2281 rm -rf conftest*
2282 eval "ac_cv_header_$ac_safe=yes"
2283 else
2284 echo "$ac_err" >&5
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2287 rm -rf conftest*
2288 eval "ac_cv_header_$ac_safe=no"
2290 rm -f conftest*
2292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2295 cat >> confdefs.h <<EOF
2296 #define $ac_tr_hdr 1
2299 else
2300 echo "$ac_t""no" 1>&6
2302 done
2304 for ac_hdr in sys/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.h
2306 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2307 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2308 echo "configure:2309: checking for $ac_hdr" >&5
2309 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2311 else
2312 cat > conftest.$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2315 #include <$ac_hdr>
2317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2318 { (eval echo configure:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2320 if test -z "$ac_err"; then
2321 rm -rf conftest*
2322 eval "ac_cv_header_$ac_safe=yes"
2323 else
2324 echo "$ac_err" >&5
2325 echo "configure: failed program was:" >&5
2326 cat conftest.$ac_ext >&5
2327 rm -rf conftest*
2328 eval "ac_cv_header_$ac_safe=no"
2330 rm -f conftest*
2332 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2333 echo "$ac_t""yes" 1>&6
2334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2335 cat >> confdefs.h <<EOF
2336 #define $ac_tr_hdr 1
2339 else
2340 echo "$ac_t""no" 1>&6
2342 done
2344 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
2346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2348 echo "configure:2349: checking for $ac_hdr" >&5
2349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 #include <$ac_hdr>
2357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2358 { (eval echo configure:2359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2360 if test -z "$ac_err"; then
2361 rm -rf conftest*
2362 eval "ac_cv_header_$ac_safe=yes"
2363 else
2364 echo "$ac_err" >&5
2365 echo "configure: failed program was:" >&5
2366 cat conftest.$ac_ext >&5
2367 rm -rf conftest*
2368 eval "ac_cv_header_$ac_safe=no"
2370 rm -f conftest*
2372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2373 echo "$ac_t""yes" 1>&6
2374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2375 cat >> confdefs.h <<EOF
2376 #define $ac_tr_hdr 1
2379 else
2380 echo "$ac_t""no" 1>&6
2382 done
2384 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.h
2386 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2387 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2388 echo "configure:2389: checking for $ac_hdr" >&5
2389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2391 else
2392 cat > conftest.$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2395 #include <$ac_hdr>
2397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2400 if test -z "$ac_err"; then
2401 rm -rf conftest*
2402 eval "ac_cv_header_$ac_safe=yes"
2403 else
2404 echo "$ac_err" >&5
2405 echo "configure: failed program was:" >&5
2406 cat conftest.$ac_ext >&5
2407 rm -rf conftest*
2408 eval "ac_cv_header_$ac_safe=no"
2410 rm -f conftest*
2412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2413 echo "$ac_t""yes" 1>&6
2414 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2415 cat >> confdefs.h <<EOF
2416 #define $ac_tr_hdr 1
2419 else
2420 echo "$ac_t""no" 1>&6
2422 done
2424 for ac_hdr in sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
2426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2428 echo "configure:2429: checking for $ac_hdr" >&5
2429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2430 echo $ac_n "(cached) $ac_c" 1>&6
2431 else
2432 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2435 #include <$ac_hdr>
2437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2438 { (eval echo configure:2439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2440 if test -z "$ac_err"; then
2441 rm -rf conftest*
2442 eval "ac_cv_header_$ac_safe=yes"
2443 else
2444 echo "$ac_err" >&5
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 rm -rf conftest*
2448 eval "ac_cv_header_$ac_safe=no"
2450 rm -f conftest*
2452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2453 echo "$ac_t""yes" 1>&6
2454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2455 cat >> confdefs.h <<EOF
2456 #define $ac_tr_hdr 1
2459 else
2460 echo "$ac_t""no" 1>&6
2462 done
2464 for ac_hdr in security/pam_modules.h security/_pam_macros.h ldap.h lber.h dlfcn.h
2466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2468 echo "configure:2469: checking for $ac_hdr" >&5
2469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2471 else
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <$ac_hdr>
2477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2478 { (eval echo configure:2479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2480 if test -z "$ac_err"; then
2481 rm -rf conftest*
2482 eval "ac_cv_header_$ac_safe=yes"
2483 else
2484 echo "$ac_err" >&5
2485 echo "configure: failed program was:" >&5
2486 cat conftest.$ac_ext >&5
2487 rm -rf conftest*
2488 eval "ac_cv_header_$ac_safe=no"
2490 rm -f conftest*
2492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2493 echo "$ac_t""yes" 1>&6
2494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2495 cat >> confdefs.h <<EOF
2496 #define $ac_tr_hdr 1
2499 else
2500 echo "$ac_t""no" 1>&6
2502 done
2506 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2507 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2509 case "$host_os" in
2510 *hpux*)
2511 cat > conftest.$ac_ext <<EOF
2512 #line 2513 "configure"
2513 #include "confdefs.h"
2514 #include <shadow.h>
2515 int main() {
2516 struct spwd testme
2517 ; return 0; }
2519 if { (eval echo configure:2520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2520 rm -rf conftest*
2521 ac_cv_header_shadow_h=yes
2522 else
2523 echo "configure: failed program was:" >&5
2524 cat conftest.$ac_ext >&5
2525 rm -rf conftest*
2526 ac_cv_header_shadow_h=no
2528 rm -f conftest*
2529 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2530 cat >> confdefs.h <<\EOF
2531 #define HAVE_SHADOW_H 1
2536 esac
2537 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h
2539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2541 echo "configure:2542: checking for $ac_hdr" >&5
2542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2544 else
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 #include <$ac_hdr>
2550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2551 { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2553 if test -z "$ac_err"; then
2554 rm -rf conftest*
2555 eval "ac_cv_header_$ac_safe=yes"
2556 else
2557 echo "$ac_err" >&5
2558 echo "configure: failed program was:" >&5
2559 cat conftest.$ac_ext >&5
2560 rm -rf conftest*
2561 eval "ac_cv_header_$ac_safe=no"
2563 rm -f conftest*
2565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2566 echo "$ac_t""yes" 1>&6
2567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2568 cat >> confdefs.h <<EOF
2569 #define $ac_tr_hdr 1
2572 else
2573 echo "$ac_t""no" 1>&6
2575 done
2577 for ac_hdr in nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h
2579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <$ac_hdr>
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2594 rm -rf conftest*
2595 eval "ac_cv_header_$ac_safe=yes"
2596 else
2597 echo "$ac_err" >&5
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 rm -rf conftest*
2601 eval "ac_cv_header_$ac_safe=no"
2603 rm -f conftest*
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h <<EOF
2609 #define $ac_tr_hdr 1
2612 else
2613 echo "$ac_t""no" 1>&6
2615 done
2617 for ac_hdr in stropts.h poll.h
2619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2621 echo "configure:2622: checking for $ac_hdr" >&5
2622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2628 #include <$ac_hdr>
2630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2634 rm -rf conftest*
2635 eval "ac_cv_header_$ac_safe=yes"
2636 else
2637 echo "$ac_err" >&5
2638 echo "configure: failed program was:" >&5
2639 cat conftest.$ac_ext >&5
2640 rm -rf conftest*
2641 eval "ac_cv_header_$ac_safe=no"
2643 rm -f conftest*
2645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2646 echo "$ac_t""yes" 1>&6
2647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2648 cat >> confdefs.h <<EOF
2649 #define $ac_tr_hdr 1
2652 else
2653 echo "$ac_t""no" 1>&6
2655 done
2657 for ac_hdr in sys/capability.h syscall.h sys/syscall.h
2659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_hdr" >&5
2662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2664 else
2665 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure"
2667 #include "confdefs.h"
2668 #include <$ac_hdr>
2670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2671 { (eval echo configure:2672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2673 if test -z "$ac_err"; then
2674 rm -rf conftest*
2675 eval "ac_cv_header_$ac_safe=yes"
2676 else
2677 echo "$ac_err" >&5
2678 echo "configure: failed program was:" >&5
2679 cat conftest.$ac_ext >&5
2680 rm -rf conftest*
2681 eval "ac_cv_header_$ac_safe=no"
2683 rm -f conftest*
2685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2688 cat >> confdefs.h <<EOF
2689 #define $ac_tr_hdr 1
2692 else
2693 echo "$ac_t""no" 1>&6
2695 done
2697 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2701 echo "configure:2702: checking for $ac_hdr" >&5
2702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2703 echo $ac_n "(cached) $ac_c" 1>&6
2704 else
2705 cat > conftest.$ac_ext <<EOF
2706 #line 2707 "configure"
2707 #include "confdefs.h"
2708 #include <$ac_hdr>
2710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2711 { (eval echo configure:2712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2713 if test -z "$ac_err"; then
2714 rm -rf conftest*
2715 eval "ac_cv_header_$ac_safe=yes"
2716 else
2717 echo "$ac_err" >&5
2718 echo "configure: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 rm -rf conftest*
2721 eval "ac_cv_header_$ac_safe=no"
2723 rm -f conftest*
2725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2726 echo "$ac_t""yes" 1>&6
2727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2728 cat >> confdefs.h <<EOF
2729 #define $ac_tr_hdr 1
2732 else
2733 echo "$ac_t""no" 1>&6
2735 done
2738 # For experimental utmp support (lastlog on some BSD-like systems)
2739 for ac_hdr in utmp.h utmpx.h lastlog.h
2741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2743 echo "configure:2744: checking for $ac_hdr" >&5
2744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2746 else
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure"
2749 #include "confdefs.h"
2750 #include <$ac_hdr>
2752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2753 { (eval echo configure:2754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2755 if test -z "$ac_err"; then
2756 rm -rf conftest*
2757 eval "ac_cv_header_$ac_safe=yes"
2758 else
2759 echo "$ac_err" >&5
2760 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 rm -rf conftest*
2763 eval "ac_cv_header_$ac_safe=no"
2765 rm -f conftest*
2767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2768 echo "$ac_t""yes" 1>&6
2769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2770 cat >> confdefs.h <<EOF
2771 #define $ac_tr_hdr 1
2774 else
2775 echo "$ac_t""no" 1>&6
2777 done
2780 # For quotas on Veritas VxFS filesystems
2781 for ac_hdr in sys/fs/vx_quota.h
2783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2785 echo "configure:2786: checking for $ac_hdr" >&5
2786 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2788 else
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 #include <$ac_hdr>
2794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2795 { (eval echo configure:2796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2797 if test -z "$ac_err"; then
2798 rm -rf conftest*
2799 eval "ac_cv_header_$ac_safe=yes"
2800 else
2801 echo "$ac_err" >&5
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -rf conftest*
2805 eval "ac_cv_header_$ac_safe=no"
2807 rm -f conftest*
2809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2810 echo "$ac_t""yes" 1>&6
2811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2812 cat >> confdefs.h <<EOF
2813 #define $ac_tr_hdr 1
2816 else
2817 echo "$ac_t""no" 1>&6
2819 done
2822 # For quotas on Linux XFS filesystems
2823 for ac_hdr in linux/xqm.h
2825 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2826 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2827 echo "configure:2828: checking for $ac_hdr" >&5
2828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2830 else
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <$ac_hdr>
2836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2837 { (eval echo configure:2838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2839 if test -z "$ac_err"; then
2840 rm -rf conftest*
2841 eval "ac_cv_header_$ac_safe=yes"
2842 else
2843 echo "$ac_err" >&5
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 rm -rf conftest*
2847 eval "ac_cv_header_$ac_safe=no"
2849 rm -f conftest*
2851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2852 echo "$ac_t""yes" 1>&6
2853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2854 cat >> confdefs.h <<EOF
2855 #define $ac_tr_hdr 1
2858 else
2859 echo "$ac_t""no" 1>&6
2861 done
2864 echo $ac_n "checking size of int""... $ac_c" 1>&6
2865 echo "configure:2866: checking size of int" >&5
2866 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869 if test "$cross_compiling" = yes; then
2870 ac_cv_sizeof_int=cross
2871 else
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 #include <stdio.h>
2876 int main()
2878 FILE *f=fopen("conftestval", "w");
2879 if (!f) return(1);
2880 fprintf(f, "%d\n", sizeof(int));
2881 return(0);
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2885 then
2886 ac_cv_sizeof_int=`cat conftestval`
2887 else
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2890 rm -fr conftest*
2891 ac_cv_sizeof_int=0
2893 rm -fr conftest*
2897 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2898 cat >> confdefs.h <<EOF
2899 #define SIZEOF_INT $ac_cv_sizeof_int
2903 echo $ac_n "checking size of long""... $ac_c" 1>&6
2904 echo "configure:2905: checking size of long" >&5
2905 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2907 else
2908 if test "$cross_compiling" = yes; then
2909 ac_cv_sizeof_long=cross
2910 else
2911 cat > conftest.$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2914 #include <stdio.h>
2915 int main()
2917 FILE *f=fopen("conftestval", "w");
2918 if (!f) return(1);
2919 fprintf(f, "%d\n", sizeof(long));
2920 return(0);
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2924 then
2925 ac_cv_sizeof_long=`cat conftestval`
2926 else
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 rm -fr conftest*
2930 ac_cv_sizeof_long=0
2932 rm -fr conftest*
2936 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2937 cat >> confdefs.h <<EOF
2938 #define SIZEOF_LONG $ac_cv_sizeof_long
2942 echo $ac_n "checking size of short""... $ac_c" 1>&6
2943 echo "configure:2944: checking size of short" >&5
2944 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947 if test "$cross_compiling" = yes; then
2948 ac_cv_sizeof_short=cross
2949 else
2950 cat > conftest.$ac_ext <<EOF
2951 #line 2952 "configure"
2952 #include "confdefs.h"
2953 #include <stdio.h>
2954 int main()
2956 FILE *f=fopen("conftestval", "w");
2957 if (!f) return(1);
2958 fprintf(f, "%d\n", sizeof(short));
2959 return(0);
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2963 then
2964 ac_cv_sizeof_short=`cat conftestval`
2965 else
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2968 rm -fr conftest*
2969 ac_cv_sizeof_short=0
2971 rm -fr conftest*
2975 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2976 cat >> confdefs.h <<EOF
2977 #define SIZEOF_SHORT $ac_cv_sizeof_short
2982 echo $ac_n "checking for working const""... $ac_c" 1>&6
2983 echo "configure:2984: checking for working const" >&5
2984 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2986 else
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2991 int main() {
2993 /* Ultrix mips cc rejects this. */
2994 typedef int charset[2]; const charset x;
2995 /* SunOS 4.1.1 cc rejects this. */
2996 char const *const *ccp;
2997 char **p;
2998 /* NEC SVR4.0.2 mips cc rejects this. */
2999 struct point {int x, y;};
3000 static struct point const zero = {0,0};
3001 /* AIX XL C 1.02.0.0 rejects this.
3002 It does not let you subtract one const X* pointer from another in an arm
3003 of an if-expression whose if-part is not a constant expression */
3004 const char *g = "string";
3005 ccp = &g + (g ? g-g : 0);
3006 /* HPUX 7.0 cc rejects these. */
3007 ++ccp;
3008 p = (char**) ccp;
3009 ccp = (char const *const *) p;
3010 { /* SCO 3.2v4 cc rejects this. */
3011 char *t;
3012 char const *s = 0 ? (char *) 0 : (char const *) 0;
3014 *t++ = 0;
3016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3017 int x[] = {25, 17};
3018 const int *foo = &x[0];
3019 ++foo;
3021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3022 typedef const int *iptr;
3023 iptr p = 0;
3024 ++p;
3026 { /* AIX XL C 1.02.0.0 rejects this saying
3027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3028 struct s { int j; const int *ap[3]; };
3029 struct s *b; b->j = 5;
3031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3032 const int foo = 10;
3035 ; return 0; }
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 rm -rf conftest*
3039 ac_cv_c_const=yes
3040 else
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043 rm -rf conftest*
3044 ac_cv_c_const=no
3046 rm -f conftest*
3049 echo "$ac_t""$ac_cv_c_const" 1>&6
3050 if test $ac_cv_c_const = no; then
3051 cat >> confdefs.h <<\EOF
3052 #define const
3057 echo $ac_n "checking for inline""... $ac_c" 1>&6
3058 echo "configure:3059: checking for inline" >&5
3059 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061 else
3062 ac_cv_c_inline=no
3063 for ac_kw in inline __inline__ __inline; do
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3068 int main() {
3069 } $ac_kw foo() {
3070 ; return 0; }
3072 if { (eval echo configure:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 rm -rf conftest*
3074 ac_cv_c_inline=$ac_kw; break
3075 else
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3079 rm -f conftest*
3080 done
3084 echo "$ac_t""$ac_cv_c_inline" 1>&6
3085 case "$ac_cv_c_inline" in
3086 inline | yes) ;;
3087 no) cat >> confdefs.h <<\EOF
3088 #define inline
3091 *) cat >> confdefs.h <<EOF
3092 #define inline $ac_cv_c_inline
3095 esac
3097 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3098 echo "configure:3099: checking whether byte ordering is bigendian" >&5
3099 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3101 else
3102 ac_cv_c_bigendian=unknown
3103 # See if sys/param.h defines the BYTE_ORDER macro.
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 #include <sys/types.h>
3108 #include <sys/param.h>
3109 int main() {
3111 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3112 bogus endian macros
3113 #endif
3114 ; return 0; }
3116 if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3117 rm -rf conftest*
3118 # It does; now see whether it defined to BIG_ENDIAN or not.
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 #include <sys/types.h>
3123 #include <sys/param.h>
3124 int main() {
3126 #if BYTE_ORDER != BIG_ENDIAN
3127 not big endian
3128 #endif
3129 ; return 0; }
3131 if { (eval echo configure:3132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3132 rm -rf conftest*
3133 ac_cv_c_bigendian=yes
3134 else
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 rm -rf conftest*
3138 ac_cv_c_bigendian=no
3140 rm -f conftest*
3141 else
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 rm -f conftest*
3146 if test $ac_cv_c_bigendian = unknown; then
3147 if test "$cross_compiling" = yes; then
3148 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3149 else
3150 cat > conftest.$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 main () {
3154 /* Are we little or big endian? From Harbison&Steele. */
3155 union
3157 long l;
3158 char c[sizeof (long)];
3159 } u;
3160 u.l = 1;
3161 exit (u.c[sizeof (long) - 1] == 1);
3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3165 then
3166 ac_cv_c_bigendian=no
3167 else
3168 echo "configure: failed program was:" >&5
3169 cat conftest.$ac_ext >&5
3170 rm -fr conftest*
3171 ac_cv_c_bigendian=yes
3173 rm -fr conftest*
3179 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3180 if test $ac_cv_c_bigendian = yes; then
3181 cat >> confdefs.h <<\EOF
3182 #define WORDS_BIGENDIAN 1
3187 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether char is unsigned" >&5
3189 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3191 else
3192 if test "$GCC" = yes; then
3193 # GCC predefines this symbol on systems where it applies.
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #ifdef __CHAR_UNSIGNED__
3199 #endif
3202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3203 egrep "yes" >/dev/null 2>&1; then
3204 rm -rf conftest*
3205 ac_cv_c_char_unsigned=yes
3206 else
3207 rm -rf conftest*
3208 ac_cv_c_char_unsigned=no
3210 rm -f conftest*
3212 else
3213 if test "$cross_compiling" = yes; then
3214 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3215 else
3216 cat > conftest.$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3220 #if !defined(__STDC__) || __STDC__ != 1
3221 #define volatile
3222 #endif
3223 main() {
3224 volatile char c = 255; exit(c < 0);
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3228 then
3229 ac_cv_c_char_unsigned=yes
3230 else
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3233 rm -fr conftest*
3234 ac_cv_c_char_unsigned=no
3236 rm -fr conftest*
3242 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3243 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3244 cat >> confdefs.h <<\EOF
3245 #define __CHAR_UNSIGNED__ 1
3251 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3252 echo "configure:3253: checking return type of signal handlers" >&5
3253 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 #include <sys/types.h>
3260 #include <signal.h>
3261 #ifdef signal
3262 #undef signal
3263 #endif
3264 #ifdef __cplusplus
3265 extern "C" void (*signal (int, void (*)(int)))(int);
3266 #else
3267 void (*signal ()) ();
3268 #endif
3270 int main() {
3271 int i;
3272 ; return 0; }
3274 if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3275 rm -rf conftest*
3276 ac_cv_type_signal=void
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 ac_cv_type_signal=int
3283 rm -f conftest*
3286 echo "$ac_t""$ac_cv_type_signal" 1>&6
3287 cat >> confdefs.h <<EOF
3288 #define RETSIGTYPE $ac_cv_type_signal
3292 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3293 echo "configure:3294: checking for uid_t in sys/types.h" >&5
3294 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3296 else
3297 cat > conftest.$ac_ext <<EOF
3298 #line 3299 "configure"
3299 #include "confdefs.h"
3300 #include <sys/types.h>
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 egrep "uid_t" >/dev/null 2>&1; then
3304 rm -rf conftest*
3305 ac_cv_type_uid_t=yes
3306 else
3307 rm -rf conftest*
3308 ac_cv_type_uid_t=no
3310 rm -f conftest*
3314 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3315 if test $ac_cv_type_uid_t = no; then
3316 cat >> confdefs.h <<\EOF
3317 #define uid_t int
3320 cat >> confdefs.h <<\EOF
3321 #define gid_t int
3326 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3327 echo "configure:3328: checking for mode_t" >&5
3328 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3329 echo $ac_n "(cached) $ac_c" 1>&6
3330 else
3331 cat > conftest.$ac_ext <<EOF
3332 #line 3333 "configure"
3333 #include "confdefs.h"
3334 #include <sys/types.h>
3335 #if STDC_HEADERS
3336 #include <stdlib.h>
3337 #include <stddef.h>
3338 #endif
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3342 rm -rf conftest*
3343 ac_cv_type_mode_t=yes
3344 else
3345 rm -rf conftest*
3346 ac_cv_type_mode_t=no
3348 rm -f conftest*
3351 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3352 if test $ac_cv_type_mode_t = no; then
3353 cat >> confdefs.h <<\EOF
3354 #define mode_t int
3359 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3360 echo "configure:3361: checking for off_t" >&5
3361 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3363 else
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3368 #if STDC_HEADERS
3369 #include <stdlib.h>
3370 #include <stddef.h>
3371 #endif
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3375 rm -rf conftest*
3376 ac_cv_type_off_t=yes
3377 else
3378 rm -rf conftest*
3379 ac_cv_type_off_t=no
3381 rm -f conftest*
3384 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3385 if test $ac_cv_type_off_t = no; then
3386 cat >> confdefs.h <<\EOF
3387 #define off_t long
3392 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3393 echo "configure:3394: checking for size_t" >&5
3394 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396 else
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3400 #include <sys/types.h>
3401 #if STDC_HEADERS
3402 #include <stdlib.h>
3403 #include <stddef.h>
3404 #endif
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3408 rm -rf conftest*
3409 ac_cv_type_size_t=yes
3410 else
3411 rm -rf conftest*
3412 ac_cv_type_size_t=no
3414 rm -f conftest*
3417 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3418 if test $ac_cv_type_size_t = no; then
3419 cat >> confdefs.h <<\EOF
3420 #define size_t unsigned
3425 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3426 echo "configure:3427: checking for pid_t" >&5
3427 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3429 else
3430 cat > conftest.$ac_ext <<EOF
3431 #line 3432 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3434 #if STDC_HEADERS
3435 #include <stdlib.h>
3436 #include <stddef.h>
3437 #endif
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3441 rm -rf conftest*
3442 ac_cv_type_pid_t=yes
3443 else
3444 rm -rf conftest*
3445 ac_cv_type_pid_t=no
3447 rm -f conftest*
3450 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3451 if test $ac_cv_type_pid_t = no; then
3452 cat >> confdefs.h <<\EOF
3453 #define pid_t int
3458 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3459 echo "configure:3460: checking for st_rdev in struct stat" >&5
3460 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463 cat > conftest.$ac_ext <<EOF
3464 #line 3465 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3467 #include <sys/stat.h>
3468 int main() {
3469 struct stat s; s.st_rdev;
3470 ; return 0; }
3472 if { (eval echo configure:3473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3473 rm -rf conftest*
3474 ac_cv_struct_st_rdev=yes
3475 else
3476 echo "configure: failed program was:" >&5
3477 cat conftest.$ac_ext >&5
3478 rm -rf conftest*
3479 ac_cv_struct_st_rdev=no
3481 rm -f conftest*
3484 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3485 if test $ac_cv_struct_st_rdev = yes; then
3486 cat >> confdefs.h <<\EOF
3487 #define HAVE_ST_RDEV 1
3492 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3493 echo "configure:3494: checking for d_off in dirent" >&5
3494 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3496 else
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3501 #include <unistd.h>
3502 #include <sys/types.h>
3503 #include <dirent.h>
3504 int main() {
3505 struct dirent d; d.d_off;
3506 ; return 0; }
3508 if { (eval echo configure:3509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3509 rm -rf conftest*
3510 ac_cv_dirent_d_off=yes
3511 else
3512 echo "configure: failed program was:" >&5
3513 cat conftest.$ac_ext >&5
3514 rm -rf conftest*
3515 ac_cv_dirent_d_off=no
3517 rm -f conftest*
3520 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3521 if test $ac_cv_dirent_d_off = yes; then
3522 cat >> confdefs.h <<\EOF
3523 #define HAVE_DIRENT_D_OFF 1
3528 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3529 echo "configure:3530: checking for ino_t" >&5
3530 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3532 else
3533 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3536 #include <sys/types.h>
3537 #if STDC_HEADERS
3538 #include <stdlib.h>
3539 #include <stddef.h>
3540 #endif
3542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3543 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3544 rm -rf conftest*
3545 ac_cv_type_ino_t=yes
3546 else
3547 rm -rf conftest*
3548 ac_cv_type_ino_t=no
3550 rm -f conftest*
3553 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3554 if test $ac_cv_type_ino_t = no; then
3555 cat >> confdefs.h <<\EOF
3556 #define ino_t unsigned
3561 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3562 echo "configure:3563: checking for loff_t" >&5
3563 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3565 else
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 #include <sys/types.h>
3570 #if STDC_HEADERS
3571 #include <stdlib.h>
3572 #include <stddef.h>
3573 #endif
3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3576 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3577 rm -rf conftest*
3578 ac_cv_type_loff_t=yes
3579 else
3580 rm -rf conftest*
3581 ac_cv_type_loff_t=no
3583 rm -f conftest*
3586 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3587 if test $ac_cv_type_loff_t = no; then
3588 cat >> confdefs.h <<\EOF
3589 #define loff_t off_t
3594 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3595 echo "configure:3596: checking for offset_t" >&5
3596 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3598 else
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <sys/types.h>
3603 #if STDC_HEADERS
3604 #include <stdlib.h>
3605 #include <stddef.h>
3606 #endif
3608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3609 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3610 rm -rf conftest*
3611 ac_cv_type_offset_t=yes
3612 else
3613 rm -rf conftest*
3614 ac_cv_type_offset_t=no
3616 rm -f conftest*
3619 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3620 if test $ac_cv_type_offset_t = no; then
3621 cat >> confdefs.h <<\EOF
3622 #define offset_t loff_t
3627 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3628 echo "configure:3629: checking for ssize_t" >&5
3629 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6
3631 else
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3635 #include <sys/types.h>
3636 #if STDC_HEADERS
3637 #include <stdlib.h>
3638 #include <stddef.h>
3639 #endif
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3643 rm -rf conftest*
3644 ac_cv_type_ssize_t=yes
3645 else
3646 rm -rf conftest*
3647 ac_cv_type_ssize_t=no
3649 rm -f conftest*
3652 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3653 if test $ac_cv_type_ssize_t = no; then
3654 cat >> confdefs.h <<\EOF
3655 #define ssize_t int
3660 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3661 echo "configure:3662: checking for wchar_t" >&5
3662 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3664 else
3665 cat > conftest.$ac_ext <<EOF
3666 #line 3667 "configure"
3667 #include "confdefs.h"
3668 #include <sys/types.h>
3669 #if STDC_HEADERS
3670 #include <stdlib.h>
3671 #include <stddef.h>
3672 #endif
3674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3675 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3676 rm -rf conftest*
3677 ac_cv_type_wchar_t=yes
3678 else
3679 rm -rf conftest*
3680 ac_cv_type_wchar_t=no
3682 rm -f conftest*
3685 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3686 if test $ac_cv_type_wchar_t = no; then
3687 cat >> confdefs.h <<\EOF
3688 #define wchar_t unsigned short
3694 ############################################
3695 # for cups support we need libcups, and a handful of header files
3697 echo $ac_n "checking for httpConnect in -lcups""... $ac_c" 1>&6
3698 echo "configure:3699: checking for httpConnect in -lcups" >&5
3699 ac_lib_var=`echo cups'_'httpConnect | sed 'y%./+-%__p_%'`
3700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3702 else
3703 ac_save_LIBS="$LIBS"
3704 LIBS="-lcups $LIBS"
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 /* Override any gcc2 internal prototype to avoid an error. */
3709 /* We use char because int might match the return type of a gcc2
3710 builtin and then its argument prototype would still apply. */
3711 char httpConnect();
3713 int main() {
3714 httpConnect()
3715 ; return 0; }
3717 if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 rm -rf conftest*
3719 eval "ac_cv_lib_$ac_lib_var=yes"
3720 else
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3723 rm -rf conftest*
3724 eval "ac_cv_lib_$ac_lib_var=no"
3726 rm -f conftest*
3727 LIBS="$ac_save_LIBS"
3730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3731 echo "$ac_t""yes" 1>&6
3732 ac_tr_lib=HAVE_LIB`echo cups | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3733 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3734 cat >> confdefs.h <<EOF
3735 #define $ac_tr_lib 1
3738 LIBS="-lcups $LIBS"
3740 else
3741 echo "$ac_t""no" 1>&6
3745 # I wonder if there is a nicer way of doing this?
3747 if test x"$ac_cv_lib_cups_httpConnect" = x"yes"; then
3748 for ac_hdr in cups/cups.h cups/language.h
3750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3752 echo "configure:3753: checking for $ac_hdr" >&5
3753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755 else
3756 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure"
3758 #include "confdefs.h"
3759 #include <$ac_hdr>
3761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3762 { (eval echo configure:3763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3764 if test -z "$ac_err"; then
3765 rm -rf conftest*
3766 eval "ac_cv_header_$ac_safe=yes"
3767 else
3768 echo "$ac_err" >&5
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3771 rm -rf conftest*
3772 eval "ac_cv_header_$ac_safe=no"
3774 rm -f conftest*
3776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3777 echo "$ac_t""yes" 1>&6
3778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3779 cat >> confdefs.h <<EOF
3780 #define $ac_tr_hdr 1
3783 else
3784 echo "$ac_t""no" 1>&6
3786 done
3788 if test x"$ac_cv_header_cups_cups_h" = x"yes"; then
3789 if test x"$ac_cv_header_cups_language_h" = x"yes"; then
3790 cat >> confdefs.h <<\EOF
3791 #define HAVE_CUPS 1
3798 ############################################
3799 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3800 for ac_func in dlopen
3802 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3803 echo "configure:3804: checking for $ac_func" >&5
3804 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3806 else
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 /* System header to define __stub macros and hopefully few prototypes,
3811 which can conflict with char $ac_func(); below. */
3812 #include <assert.h>
3813 /* Override any gcc2 internal prototype to avoid an error. */
3814 /* We use char because int might match the return type of a gcc2
3815 builtin and then its argument prototype would still apply. */
3816 char $ac_func();
3818 int main() {
3820 /* The GNU C library defines this for functions which it implements
3821 to always fail with ENOSYS. Some functions are actually named
3822 something starting with __ and the normal name is an alias. */
3823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3824 choke me
3825 #else
3826 $ac_func();
3827 #endif
3829 ; return 0; }
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 rm -rf conftest*
3833 eval "ac_cv_func_$ac_func=yes"
3834 else
3835 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5
3837 rm -rf conftest*
3838 eval "ac_cv_func_$ac_func=no"
3840 rm -f conftest*
3843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3844 echo "$ac_t""yes" 1>&6
3845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3846 cat >> confdefs.h <<EOF
3847 #define $ac_tr_func 1
3850 else
3851 echo "$ac_t""no" 1>&6
3853 done
3855 if test x"$ac_cv_func_dlopen" = x"no"; then
3856 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3857 echo "configure:3858: checking for dlopen in -ldl" >&5
3858 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861 else
3862 ac_save_LIBS="$LIBS"
3863 LIBS="-ldl $LIBS"
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3870 char dlopen();
3872 int main() {
3873 dlopen()
3874 ; return 0; }
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3877 rm -rf conftest*
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3879 else
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 rm -rf conftest*
3883 eval "ac_cv_lib_$ac_lib_var=no"
3885 rm -f conftest*
3886 LIBS="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 LIBS="$LIBS -ldl";
3892 cat >> confdefs.h <<\EOF
3893 #define HAVE_DLOPEN 1
3896 else
3897 echo "$ac_t""no" 1>&6
3901 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3903 ############################################
3904 # check if the compiler can do immediate structures
3905 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3906 echo "configure:3907: checking for immediate structures" >&5
3907 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3909 else
3911 cat > conftest.$ac_ext <<EOF
3912 #line 3913 "configure"
3913 #include "confdefs.h"
3915 #include <stdio.h>
3916 int main() {
3918 typedef struct {unsigned x;} FOOBAR;
3919 #define X_FOOBAR(x) ((FOOBAR) { x })
3920 #define FOO_ONE X_FOOBAR(1)
3921 FOOBAR f = FOO_ONE;
3922 static struct {
3923 FOOBAR y;
3924 } f2[] = {
3925 {FOO_ONE}
3928 ; return 0; }
3930 if { (eval echo configure:3931: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3931 rm -rf conftest*
3932 samba_cv_immediate_structures=yes
3933 else
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 rm -rf conftest*
3937 samba_cv_immediate_structures=no
3939 rm -f conftest*
3942 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3943 if test x"$samba_cv_immediate_structures" = x"yes"; then
3944 cat >> confdefs.h <<\EOF
3945 #define HAVE_IMMEDIATE_STRUCTURES 1
3950 ############################################
3951 # check for unix domain sockets
3952 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3953 echo "configure:3954: checking for unix domain sockets" >&5
3954 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3956 else
3958 cat > conftest.$ac_ext <<EOF
3959 #line 3960 "configure"
3960 #include "confdefs.h"
3962 #include <sys/types.h>
3963 #include <stdlib.h>
3964 #include <stddef.h>
3965 #include <sys/socket.h>
3966 #include <sys/un.h>
3967 int main() {
3969 struct sockaddr_un sunaddr;
3970 sunaddr.sun_family = AF_UNIX;
3972 ; return 0; }
3974 if { (eval echo configure:3975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3975 rm -rf conftest*
3976 samba_cv_unixsocket=yes
3977 else
3978 echo "configure: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3980 rm -rf conftest*
3981 samba_cv_unixsocket=no
3983 rm -f conftest*
3986 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3987 if test x"$samba_cv_unixsocket" = x"yes"; then
3988 cat >> confdefs.h <<\EOF
3989 #define HAVE_UNIXSOCKET 1
3995 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3996 echo "configure:3997: checking for socklen_t type" >&5
3997 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3998 echo $ac_n "(cached) $ac_c" 1>&6
3999 else
4001 cat > conftest.$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4005 #include <sys/types.h>
4006 #if STDC_HEADERS
4007 #include <stdlib.h>
4008 #include <stddef.h>
4009 #endif
4010 #include <sys/socket.h>
4011 int main() {
4012 socklen_t i = 0
4013 ; return 0; }
4015 if { (eval echo configure:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 rm -rf conftest*
4017 samba_cv_socklen_t=yes
4018 else
4019 echo "configure: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4021 rm -rf conftest*
4022 samba_cv_socklen_t=no
4024 rm -f conftest*
4027 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4028 if test x"$samba_cv_socklen_t" = x"yes"; then
4029 cat >> confdefs.h <<\EOF
4030 #define HAVE_SOCKLEN_T_TYPE 1
4035 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4036 echo "configure:4037: checking for sig_atomic_t type" >&5
4037 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4038 echo $ac_n "(cached) $ac_c" 1>&6
4039 else
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4045 #include <sys/types.h>
4046 #if STDC_HEADERS
4047 #include <stdlib.h>
4048 #include <stddef.h>
4049 #endif
4050 #include <signal.h>
4051 int main() {
4052 sig_atomic_t i = 0
4053 ; return 0; }
4055 if { (eval echo configure:4056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4056 rm -rf conftest*
4057 samba_cv_sig_atomic_t=yes
4058 else
4059 echo "configure: failed program was:" >&5
4060 cat conftest.$ac_ext >&5
4061 rm -rf conftest*
4062 samba_cv_sig_atomic_t=no
4064 rm -f conftest*
4067 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4068 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4069 cat >> confdefs.h <<\EOF
4070 #define HAVE_SIG_ATOMIC_T_TYPE 1
4075 # stupid headers have the functions but no declaration. grrrr.
4077 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4078 echo "configure:4079: checking for errno declaration" >&5
4079 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4080 echo $ac_n "(cached) $ac_c" 1>&6
4081 else
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 #include <errno.h>
4087 int main() {
4088 int i = (int)errno
4089 ; return 0; }
4091 if { (eval echo configure:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4092 rm -rf conftest*
4093 ac_cv_have_errno_decl=yes
4094 else
4095 echo "configure: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4097 rm -rf conftest*
4098 ac_cv_have_errno_decl=no
4100 rm -f conftest*
4103 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4104 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4105 cat >> confdefs.h <<\EOF
4106 #define HAVE_ERRNO_DECL 1
4112 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4113 echo "configure:4114: checking for setresuid declaration" >&5
4114 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4116 else
4118 cat > conftest.$ac_ext <<EOF
4119 #line 4120 "configure"
4120 #include "confdefs.h"
4121 #include <unistd.h>
4122 int main() {
4123 int i = (int)setresuid
4124 ; return 0; }
4126 if { (eval echo configure:4127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4127 rm -rf conftest*
4128 ac_cv_have_setresuid_decl=yes
4129 else
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4132 rm -rf conftest*
4133 ac_cv_have_setresuid_decl=no
4135 rm -f conftest*
4138 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4139 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4140 cat >> confdefs.h <<\EOF
4141 #define HAVE_SETRESUID_DECL 1
4147 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4148 echo "configure:4149: checking for setresgid declaration" >&5
4149 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4151 else
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 #include <unistd.h>
4157 int main() {
4158 int i = (int)setresgid
4159 ; return 0; }
4161 if { (eval echo configure:4162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4162 rm -rf conftest*
4163 ac_cv_have_setresgid_decl=yes
4164 else
4165 echo "configure: failed program was:" >&5
4166 cat conftest.$ac_ext >&5
4167 rm -rf conftest*
4168 ac_cv_have_setresgid_decl=no
4170 rm -f conftest*
4173 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4174 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4175 cat >> confdefs.h <<\EOF
4176 #define HAVE_SETRESGID_DECL 1
4182 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4183 echo "configure:4184: checking for asprintf declaration" >&5
4184 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4186 else
4188 cat > conftest.$ac_ext <<EOF
4189 #line 4190 "configure"
4190 #include "confdefs.h"
4191 #include <stdio.h>
4192 int main() {
4193 int i = (int)asprintf
4194 ; return 0; }
4196 if { (eval echo configure:4197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4197 rm -rf conftest*
4198 ac_cv_have_asprintf_decl=yes
4199 else
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4202 rm -rf conftest*
4203 ac_cv_have_asprintf_decl=no
4205 rm -f conftest*
4208 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4209 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4210 cat >> confdefs.h <<\EOF
4211 #define HAVE_ASPRINTF_DECL 1
4217 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4218 echo "configure:4219: checking for vasprintf declaration" >&5
4219 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4220 echo $ac_n "(cached) $ac_c" 1>&6
4221 else
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 #include <stdio.h>
4227 int main() {
4228 int i = (int)vasprintf
4229 ; return 0; }
4231 if { (eval echo configure:4232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4232 rm -rf conftest*
4233 ac_cv_have_vasprintf_decl=yes
4234 else
4235 echo "configure: failed program was:" >&5
4236 cat conftest.$ac_ext >&5
4237 rm -rf conftest*
4238 ac_cv_have_vasprintf_decl=no
4240 rm -f conftest*
4243 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4244 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4245 cat >> confdefs.h <<\EOF
4246 #define HAVE_VASPRINTF_DECL 1
4252 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4253 echo "configure:4254: checking for vsnprintf declaration" >&5
4254 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4256 else
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 #include <stdio.h>
4262 int main() {
4263 int i = (int)vsnprintf
4264 ; return 0; }
4266 if { (eval echo configure:4267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4267 rm -rf conftest*
4268 ac_cv_have_vsnprintf_decl=yes
4269 else
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 rm -rf conftest*
4273 ac_cv_have_vsnprintf_decl=no
4275 rm -f conftest*
4278 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4279 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4280 cat >> confdefs.h <<\EOF
4281 #define HAVE_VSNPRINTF_DECL 1
4287 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4288 echo "configure:4289: checking for snprintf declaration" >&5
4289 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4290 echo $ac_n "(cached) $ac_c" 1>&6
4291 else
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 #include <stdio.h>
4297 int main() {
4298 int i = (int)snprintf
4299 ; return 0; }
4301 if { (eval echo configure:4302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4302 rm -rf conftest*
4303 ac_cv_have_snprintf_decl=yes
4304 else
4305 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5
4307 rm -rf conftest*
4308 ac_cv_have_snprintf_decl=no
4310 rm -f conftest*
4313 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4314 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4315 cat >> confdefs.h <<\EOF
4316 #define HAVE_SNPRINTF_DECL 1
4322 # and glibc has setresuid under linux but the function does
4323 # nothing until kernel 2.1.44! very dumb.
4324 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4325 echo "configure:4326: checking for real setresuid" >&5
4326 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4330 if test "$cross_compiling" = yes; then
4331 samba_cv_have_setresuid=cross
4332 else
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 #include <errno.h>
4337 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4340 then
4341 samba_cv_have_setresuid=yes
4342 else
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4345 rm -fr conftest*
4346 samba_cv_have_setresuid=no
4348 rm -fr conftest*
4353 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4354 if test x"$samba_cv_have_setresuid" = x"yes"; then
4355 cat >> confdefs.h <<\EOF
4356 #define HAVE_SETRESUID 1
4361 # Do the same check for setresguid...
4363 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4364 echo "configure:4365: checking for real setresgid" >&5
4365 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4366 echo $ac_n "(cached) $ac_c" 1>&6
4367 else
4369 if test "$cross_compiling" = yes; then
4370 samba_cv_have_setresgid=cross
4371 else
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4375 #include <unistd.h>
4376 #include <errno.h>
4377 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4379 if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4380 then
4381 samba_cv_have_setresgid=yes
4382 else
4383 echo "configure: failed program was:" >&5
4384 cat conftest.$ac_ext >&5
4385 rm -fr conftest*
4386 samba_cv_have_setresgid=no
4388 rm -fr conftest*
4393 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4394 if test x"$samba_cv_have_setresgid" = x"yes"; then
4395 cat >> confdefs.h <<\EOF
4396 #define HAVE_SETRESGID 1
4401 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4402 echo "configure:4403: checking for 8-bit clean memcmp" >&5
4403 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4404 echo $ac_n "(cached) $ac_c" 1>&6
4405 else
4406 if test "$cross_compiling" = yes; then
4407 ac_cv_func_memcmp_clean=no
4408 else
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4413 main()
4415 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4416 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4421 then
4422 ac_cv_func_memcmp_clean=yes
4423 else
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4426 rm -fr conftest*
4427 ac_cv_func_memcmp_clean=no
4429 rm -fr conftest*
4434 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4435 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4438 ###############################################
4439 # test for where we get crypt() from
4440 for ac_func in crypt
4442 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_func" >&5
4444 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4446 else
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4450 /* System header to define __stub macros and hopefully few prototypes,
4451 which can conflict with char $ac_func(); below. */
4452 #include <assert.h>
4453 /* Override any gcc2 internal prototype to avoid an error. */
4454 /* We use char because int might match the return type of a gcc2
4455 builtin and then its argument prototype would still apply. */
4456 char $ac_func();
4458 int main() {
4460 /* The GNU C library defines this for functions which it implements
4461 to always fail with ENOSYS. Some functions are actually named
4462 something starting with __ and the normal name is an alias. */
4463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4464 choke me
4465 #else
4466 $ac_func();
4467 #endif
4469 ; return 0; }
4471 if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4472 rm -rf conftest*
4473 eval "ac_cv_func_$ac_func=yes"
4474 else
4475 echo "configure: failed program was:" >&5
4476 cat conftest.$ac_ext >&5
4477 rm -rf conftest*
4478 eval "ac_cv_func_$ac_func=no"
4480 rm -f conftest*
4483 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4486 cat >> confdefs.h <<EOF
4487 #define $ac_tr_func 1
4490 else
4491 echo "$ac_t""no" 1>&6
4493 done
4495 if test x"$ac_cv_func_crypt" = x"no"; then
4496 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
4497 echo "configure:4498: checking for crypt in -lcrypt" >&5
4498 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4501 else
4502 ac_save_LIBS="$LIBS"
4503 LIBS="-lcrypt $LIBS"
4504 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char crypt();
4512 int main() {
4513 crypt()
4514 ; return 0; }
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4517 rm -rf conftest*
4518 eval "ac_cv_lib_$ac_lib_var=yes"
4519 else
4520 echo "configure: failed program was:" >&5
4521 cat conftest.$ac_ext >&5
4522 rm -rf conftest*
4523 eval "ac_cv_lib_$ac_lib_var=no"
4525 rm -f conftest*
4526 LIBS="$ac_save_LIBS"
4529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 LIBS="$LIBS -lcrypt";
4532 cat >> confdefs.h <<\EOF
4533 #define HAVE_CRYPT 1
4536 else
4537 echo "$ac_t""no" 1>&6
4543 ###############################################
4544 # Readline included by default unless explicitly asked not to
4545 test "${with_readline+set}" != "set" && with_readline=yes
4547 # test for where we get readline() from
4548 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4549 echo "configure:4550: checking whether to use readline" >&5
4550 # Check whether --with-readline or --without-readline was given.
4551 if test "${with_readline+set}" = set; then
4552 withval="$with_readline"
4553 case "$with_readline" in
4554 yes)
4555 echo "$ac_t""yes" 1>&6
4557 for ac_hdr in readline.h history.h readline/readline.h
4559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4561 echo "configure:4562: checking for $ac_hdr" >&5
4562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4563 echo $ac_n "(cached) $ac_c" 1>&6
4564 else
4565 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure"
4567 #include "confdefs.h"
4568 #include <$ac_hdr>
4570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4571 { (eval echo configure:4572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4573 if test -z "$ac_err"; then
4574 rm -rf conftest*
4575 eval "ac_cv_header_$ac_safe=yes"
4576 else
4577 echo "$ac_err" >&5
4578 echo "configure: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4580 rm -rf conftest*
4581 eval "ac_cv_header_$ac_safe=no"
4583 rm -f conftest*
4585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4588 cat >> confdefs.h <<EOF
4589 #define $ac_tr_hdr 1
4592 else
4593 echo "$ac_t""no" 1>&6
4595 done
4597 for ac_hdr in readline/history.h
4599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_hdr" >&5
4602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4604 else
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #include <$ac_hdr>
4610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4611 { (eval echo configure:4612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4613 if test -z "$ac_err"; then
4614 rm -rf conftest*
4615 eval "ac_cv_header_$ac_safe=yes"
4616 else
4617 echo "$ac_err" >&5
4618 echo "configure: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 rm -rf conftest*
4621 eval "ac_cv_header_$ac_safe=no"
4623 rm -f conftest*
4625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4626 echo "$ac_t""yes" 1>&6
4627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4628 cat >> confdefs.h <<EOF
4629 #define $ac_tr_hdr 1
4632 else
4633 echo "$ac_t""no" 1>&6
4635 done
4638 for ac_hdr in readline.h readline/readline.h
4640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4642 echo "configure:4643: checking for $ac_hdr" >&5
4643 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4644 echo $ac_n "(cached) $ac_c" 1>&6
4645 else
4646 cat > conftest.$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 #include <$ac_hdr>
4651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4652 { (eval echo configure:4653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4654 if test -z "$ac_err"; then
4655 rm -rf conftest*
4656 eval "ac_cv_header_$ac_safe=yes"
4657 else
4658 echo "$ac_err" >&5
4659 echo "configure: failed program was:" >&5
4660 cat conftest.$ac_ext >&5
4661 rm -rf conftest*
4662 eval "ac_cv_header_$ac_safe=no"
4664 rm -f conftest*
4666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4669 cat >> confdefs.h <<EOF
4670 #define $ac_tr_hdr 1
4673 for termlib in ncurses curses termcap terminfo termlib; do
4674 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4675 echo "configure:4676: checking for tgetent in -l${termlib}" >&5
4676 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4678 echo $ac_n "(cached) $ac_c" 1>&6
4679 else
4680 ac_save_LIBS="$LIBS"
4681 LIBS="-l${termlib} $LIBS"
4682 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4685 /* Override any gcc2 internal prototype to avoid an error. */
4686 /* We use char because int might match the return type of a gcc2
4687 builtin and then its argument prototype would still apply. */
4688 char tgetent();
4690 int main() {
4691 tgetent()
4692 ; return 0; }
4694 if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4695 rm -rf conftest*
4696 eval "ac_cv_lib_$ac_lib_var=yes"
4697 else
4698 echo "configure: failed program was:" >&5
4699 cat conftest.$ac_ext >&5
4700 rm -rf conftest*
4701 eval "ac_cv_lib_$ac_lib_var=no"
4703 rm -f conftest*
4704 LIBS="$ac_save_LIBS"
4707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4708 echo "$ac_t""yes" 1>&6
4709 TERMLIBS="-l${termlib}"; break
4710 else
4711 echo "$ac_t""no" 1>&6
4714 done
4715 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4716 echo "configure:4717: checking for rl_callback_handler_install in -lreadline" >&5
4717 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4720 else
4721 ac_save_LIBS="$LIBS"
4722 LIBS="-lreadline $TERMLIBS $LIBS"
4723 cat > conftest.$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4729 char rl_callback_handler_install();
4731 int main() {
4732 rl_callback_handler_install()
4733 ; return 0; }
4735 if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4736 rm -rf conftest*
4737 eval "ac_cv_lib_$ac_lib_var=yes"
4738 else
4739 echo "configure: failed program was:" >&5
4740 cat conftest.$ac_ext >&5
4741 rm -rf conftest*
4742 eval "ac_cv_lib_$ac_lib_var=no"
4744 rm -f conftest*
4745 LIBS="$ac_save_LIBS"
4748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4749 echo "$ac_t""yes" 1>&6
4750 TERMLIBS="-lreadline $TERMLIBS"
4751 cat >> confdefs.h <<\EOF
4752 #define HAVE_LIBREADLINE 1
4755 break
4756 else
4757 echo "$ac_t""no" 1>&6
4758 TERMLIBS=
4761 else
4762 echo "$ac_t""no" 1>&6
4764 done
4768 echo "$ac_t""no" 1>&6
4771 echo "$ac_t""yes" 1>&6
4773 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4774 # alternate readline path
4775 _ldflags=${LDFLAGS}
4776 _cppflags=${CPPFLAGS}
4778 # Add additional search path
4779 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4780 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4782 for ac_hdr in readline.h history.h readline/readline.h
4784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4786 echo "configure:4787: checking for $ac_hdr" >&5
4787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4789 else
4790 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure"
4792 #include "confdefs.h"
4793 #include <$ac_hdr>
4795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4796 { (eval echo configure:4797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4798 if test -z "$ac_err"; then
4799 rm -rf conftest*
4800 eval "ac_cv_header_$ac_safe=yes"
4801 else
4802 echo "$ac_err" >&5
4803 echo "configure: failed program was:" >&5
4804 cat conftest.$ac_ext >&5
4805 rm -rf conftest*
4806 eval "ac_cv_header_$ac_safe=no"
4808 rm -f conftest*
4810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4813 cat >> confdefs.h <<EOF
4814 #define $ac_tr_hdr 1
4817 else
4818 echo "$ac_t""no" 1>&6
4820 done
4822 for ac_hdr in readline/history.h
4824 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4825 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4826 echo "configure:4827: checking for $ac_hdr" >&5
4827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4829 else
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <$ac_hdr>
4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4838 if test -z "$ac_err"; then
4839 rm -rf conftest*
4840 eval "ac_cv_header_$ac_safe=yes"
4841 else
4842 echo "$ac_err" >&5
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4845 rm -rf conftest*
4846 eval "ac_cv_header_$ac_safe=no"
4848 rm -f conftest*
4850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4851 echo "$ac_t""yes" 1>&6
4852 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4853 cat >> confdefs.h <<EOF
4854 #define $ac_tr_hdr 1
4857 else
4858 echo "$ac_t""no" 1>&6
4860 done
4863 for ac_hdr in readline.h readline/readline.h
4865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4867 echo "configure:4868: checking for $ac_hdr" >&5
4868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4869 echo $ac_n "(cached) $ac_c" 1>&6
4870 else
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4874 #include <$ac_hdr>
4876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4877 { (eval echo configure:4878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4879 if test -z "$ac_err"; then
4880 rm -rf conftest*
4881 eval "ac_cv_header_$ac_safe=yes"
4882 else
4883 echo "$ac_err" >&5
4884 echo "configure: failed program was:" >&5
4885 cat conftest.$ac_ext >&5
4886 rm -rf conftest*
4887 eval "ac_cv_header_$ac_safe=no"
4889 rm -f conftest*
4891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4892 echo "$ac_t""yes" 1>&6
4893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4894 cat >> confdefs.h <<EOF
4895 #define $ac_tr_hdr 1
4898 for termlib in ncurses curses termcap terminfo termlib; do
4899 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4900 echo "configure:4901: checking for tgetent in -l${termlib}" >&5
4901 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4903 echo $ac_n "(cached) $ac_c" 1>&6
4904 else
4905 ac_save_LIBS="$LIBS"
4906 LIBS="-l${termlib} $LIBS"
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4911 /* We use char because int might match the return type of a gcc2
4912 builtin and then its argument prototype would still apply. */
4913 char tgetent();
4915 int main() {
4916 tgetent()
4917 ; return 0; }
4919 if { (eval echo configure:4920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4920 rm -rf conftest*
4921 eval "ac_cv_lib_$ac_lib_var=yes"
4922 else
4923 echo "configure: failed program was:" >&5
4924 cat conftest.$ac_ext >&5
4925 rm -rf conftest*
4926 eval "ac_cv_lib_$ac_lib_var=no"
4928 rm -f conftest*
4929 LIBS="$ac_save_LIBS"
4932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4934 TERMLIBS="-l${termlib}"; break
4935 else
4936 echo "$ac_t""no" 1>&6
4939 done
4940 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4941 echo "configure:4942: checking for rl_callback_handler_install in -lreadline" >&5
4942 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4945 else
4946 ac_save_LIBS="$LIBS"
4947 LIBS="-lreadline $TERMLIBS $LIBS"
4948 cat > conftest.$ac_ext <<EOF
4949 #line 4950 "configure"
4950 #include "confdefs.h"
4951 /* Override any gcc2 internal prototype to avoid an error. */
4952 /* We use char because int might match the return type of a gcc2
4953 builtin and then its argument prototype would still apply. */
4954 char rl_callback_handler_install();
4956 int main() {
4957 rl_callback_handler_install()
4958 ; return 0; }
4960 if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 rm -rf conftest*
4962 eval "ac_cv_lib_$ac_lib_var=yes"
4963 else
4964 echo "configure: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4966 rm -rf conftest*
4967 eval "ac_cv_lib_$ac_lib_var=no"
4969 rm -f conftest*
4970 LIBS="$ac_save_LIBS"
4973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4974 echo "$ac_t""yes" 1>&6
4975 TERMLDFLAGS="-L$with_readline/lib"
4976 TERMCPPFLAGS="-I$with_readline/include"
4977 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4978 TERMLIBS="-lreadline $TERMLIBS"
4979 cat >> confdefs.h <<\EOF
4980 #define HAVE_LIBREADLINE 1
4983 break
4984 else
4985 echo "$ac_t""no" 1>&6
4986 TERMLIBS= CPPFLAGS=$_cppflags
4989 else
4990 echo "$ac_t""no" 1>&6
4992 done
4995 LDFLAGS=$_ldflags
4997 esac
4998 else
4999 echo "$ac_t""no" 1>&6
5006 # The readline API changed slightly from readline3 to readline4, so
5007 # code will generate warnings on one of them unless we have a few
5008 # special cases.
5009 echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
5010 echo "configure:5011: checking for rl_completion_matches in -lreadline" >&5
5011 ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
5012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015 ac_save_LIBS="$LIBS"
5016 LIBS="-lreadline $TERMLIBS $LIBS"
5017 cat > conftest.$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5023 char rl_completion_matches();
5025 int main() {
5026 rl_completion_matches()
5027 ; return 0; }
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030 rm -rf conftest*
5031 eval "ac_cv_lib_$ac_lib_var=yes"
5032 else
5033 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5
5035 rm -rf conftest*
5036 eval "ac_cv_lib_$ac_lib_var=no"
5038 rm -f conftest*
5039 LIBS="$ac_save_LIBS"
5042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5043 echo "$ac_t""yes" 1>&6
5044 cat >> confdefs.h <<\EOF
5045 #define HAVE_NEW_LIBREADLINE 1
5048 else
5049 echo "$ac_t""no" 1>&6
5053 # The following test taken from the cvs sources
5054 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
5055 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
5056 # libsocket.so which has a bad implementation of gethostbyname (it
5057 # only looks in /etc/hosts), so we only look for -lsocket if we need
5058 # it.
5059 for ac_func in connect
5061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5062 echo "configure:5063: checking for $ac_func" >&5
5063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5064 echo $ac_n "(cached) $ac_c" 1>&6
5065 else
5066 cat > conftest.$ac_ext <<EOF
5067 #line 5068 "configure"
5068 #include "confdefs.h"
5069 /* System header to define __stub macros and hopefully few prototypes,
5070 which can conflict with char $ac_func(); below. */
5071 #include <assert.h>
5072 /* Override any gcc2 internal prototype to avoid an error. */
5073 /* We use char because int might match the return type of a gcc2
5074 builtin and then its argument prototype would still apply. */
5075 char $ac_func();
5077 int main() {
5079 /* The GNU C library defines this for functions which it implements
5080 to always fail with ENOSYS. Some functions are actually named
5081 something starting with __ and the normal name is an alias. */
5082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5083 choke me
5084 #else
5085 $ac_func();
5086 #endif
5088 ; return 0; }
5090 if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091 rm -rf conftest*
5092 eval "ac_cv_func_$ac_func=yes"
5093 else
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5096 rm -rf conftest*
5097 eval "ac_cv_func_$ac_func=no"
5099 rm -f conftest*
5102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5105 cat >> confdefs.h <<EOF
5106 #define $ac_tr_func 1
5109 else
5110 echo "$ac_t""no" 1>&6
5112 done
5114 if test x"$ac_cv_func_connect" = x"no"; then
5115 case "$LIBS" in
5116 *-lnsl*) ;;
5117 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
5118 echo "configure:5119: checking for printf in -lnsl_s" >&5
5119 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
5120 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5121 echo $ac_n "(cached) $ac_c" 1>&6
5122 else
5123 ac_save_LIBS="$LIBS"
5124 LIBS="-lnsl_s $LIBS"
5125 cat > conftest.$ac_ext <<EOF
5126 #line 5127 "configure"
5127 #include "confdefs.h"
5128 /* Override any gcc2 internal prototype to avoid an error. */
5129 /* We use char because int might match the return type of a gcc2
5130 builtin and then its argument prototype would still apply. */
5131 char printf();
5133 int main() {
5134 printf()
5135 ; return 0; }
5137 if { (eval echo configure:5138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5138 rm -rf conftest*
5139 eval "ac_cv_lib_$ac_lib_var=yes"
5140 else
5141 echo "configure: failed program was:" >&5
5142 cat conftest.$ac_ext >&5
5143 rm -rf conftest*
5144 eval "ac_cv_lib_$ac_lib_var=no"
5146 rm -f conftest*
5147 LIBS="$ac_save_LIBS"
5150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5151 echo "$ac_t""yes" 1>&6
5152 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5153 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5154 cat >> confdefs.h <<EOF
5155 #define $ac_tr_lib 1
5158 LIBS="-lnsl_s $LIBS"
5160 else
5161 echo "$ac_t""no" 1>&6
5164 esac
5165 case "$LIBS" in
5166 *-lnsl*) ;;
5167 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5168 echo "configure:5169: checking for printf in -lnsl" >&5
5169 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5170 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5172 else
5173 ac_save_LIBS="$LIBS"
5174 LIBS="-lnsl $LIBS"
5175 cat > conftest.$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 /* We use char because int might match the return type of a gcc2
5180 builtin and then its argument prototype would still apply. */
5181 char printf();
5183 int main() {
5184 printf()
5185 ; return 0; }
5187 if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5188 rm -rf conftest*
5189 eval "ac_cv_lib_$ac_lib_var=yes"
5190 else
5191 echo "configure: failed program was:" >&5
5192 cat conftest.$ac_ext >&5
5193 rm -rf conftest*
5194 eval "ac_cv_lib_$ac_lib_var=no"
5196 rm -f conftest*
5197 LIBS="$ac_save_LIBS"
5200 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5201 echo "$ac_t""yes" 1>&6
5202 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5203 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5204 cat >> confdefs.h <<EOF
5205 #define $ac_tr_lib 1
5208 LIBS="-lnsl $LIBS"
5210 else
5211 echo "$ac_t""no" 1>&6
5214 esac
5215 case "$LIBS" in
5216 *-lsocket*) ;;
5217 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5218 echo "configure:5219: checking for connect in -lsocket" >&5
5219 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5222 else
5223 ac_save_LIBS="$LIBS"
5224 LIBS="-lsocket $LIBS"
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5228 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5231 char connect();
5233 int main() {
5234 connect()
5235 ; return 0; }
5237 if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5238 rm -rf conftest*
5239 eval "ac_cv_lib_$ac_lib_var=yes"
5240 else
5241 echo "configure: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 rm -rf conftest*
5244 eval "ac_cv_lib_$ac_lib_var=no"
5246 rm -f conftest*
5247 LIBS="$ac_save_LIBS"
5250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5251 echo "$ac_t""yes" 1>&6
5252 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5254 cat >> confdefs.h <<EOF
5255 #define $ac_tr_lib 1
5258 LIBS="-lsocket $LIBS"
5260 else
5261 echo "$ac_t""no" 1>&6
5264 esac
5265 case "$LIBS" in
5266 *-linet*) ;;
5267 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5268 echo "configure:5269: checking for connect in -linet" >&5
5269 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5272 else
5273 ac_save_LIBS="$LIBS"
5274 LIBS="-linet $LIBS"
5275 cat > conftest.$ac_ext <<EOF
5276 #line 5277 "configure"
5277 #include "confdefs.h"
5278 /* Override any gcc2 internal prototype to avoid an error. */
5279 /* We use char because int might match the return type of a gcc2
5280 builtin and then its argument prototype would still apply. */
5281 char connect();
5283 int main() {
5284 connect()
5285 ; return 0; }
5287 if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5288 rm -rf conftest*
5289 eval "ac_cv_lib_$ac_lib_var=yes"
5290 else
5291 echo "configure: failed program was:" >&5
5292 cat conftest.$ac_ext >&5
5293 rm -rf conftest*
5294 eval "ac_cv_lib_$ac_lib_var=no"
5296 rm -f conftest*
5297 LIBS="$ac_save_LIBS"
5300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5301 echo "$ac_t""yes" 1>&6
5302 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5304 cat >> confdefs.h <<EOF
5305 #define $ac_tr_lib 1
5308 LIBS="-linet $LIBS"
5310 else
5311 echo "$ac_t""no" 1>&6
5314 esac
5315 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5316 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5317 # ac_cv_func_connect=yes
5318 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5319 cat >> confdefs.h <<\EOF
5320 #define HAVE_CONNECT 1
5326 ###############################################
5327 # test for where we get get_yp_default_domain() from
5328 for ac_func in yp_get_default_domain
5330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5331 echo "configure:5332: checking for $ac_func" >&5
5332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5333 echo $ac_n "(cached) $ac_c" 1>&6
5334 else
5335 cat > conftest.$ac_ext <<EOF
5336 #line 5337 "configure"
5337 #include "confdefs.h"
5338 /* System header to define __stub macros and hopefully few prototypes,
5339 which can conflict with char $ac_func(); below. */
5340 #include <assert.h>
5341 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */
5344 char $ac_func();
5346 int main() {
5348 /* The GNU C library defines this for functions which it implements
5349 to always fail with ENOSYS. Some functions are actually named
5350 something starting with __ and the normal name is an alias. */
5351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5352 choke me
5353 #else
5354 $ac_func();
5355 #endif
5357 ; return 0; }
5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5360 rm -rf conftest*
5361 eval "ac_cv_func_$ac_func=yes"
5362 else
5363 echo "configure: failed program was:" >&5
5364 cat conftest.$ac_ext >&5
5365 rm -rf conftest*
5366 eval "ac_cv_func_$ac_func=no"
5368 rm -f conftest*
5371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5372 echo "$ac_t""yes" 1>&6
5373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5374 cat >> confdefs.h <<EOF
5375 #define $ac_tr_func 1
5378 else
5379 echo "$ac_t""no" 1>&6
5381 done
5383 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5384 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5385 echo "configure:5386: checking for yp_get_default_domain in -lnsl" >&5
5386 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5389 else
5390 ac_save_LIBS="$LIBS"
5391 LIBS="-lnsl $LIBS"
5392 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5395 /* Override any gcc2 internal prototype to avoid an error. */
5396 /* We use char because int might match the return type of a gcc2
5397 builtin and then its argument prototype would still apply. */
5398 char yp_get_default_domain();
5400 int main() {
5401 yp_get_default_domain()
5402 ; return 0; }
5404 if { (eval echo configure:5405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5405 rm -rf conftest*
5406 eval "ac_cv_lib_$ac_lib_var=yes"
5407 else
5408 echo "configure: failed program was:" >&5
5409 cat conftest.$ac_ext >&5
5410 rm -rf conftest*
5411 eval "ac_cv_lib_$ac_lib_var=no"
5413 rm -f conftest*
5414 LIBS="$ac_save_LIBS"
5417 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 LIBS="$LIBS -lnsl";
5420 cat >> confdefs.h <<\EOF
5421 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5424 else
5425 echo "$ac_t""no" 1>&6
5430 # Check if we have execl, if not we need to compile smbrun.
5431 for ac_func in execl
5433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5434 echo "configure:5435: checking for $ac_func" >&5
5435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5437 else
5438 cat > conftest.$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5441 /* System header to define __stub macros and hopefully few prototypes,
5442 which can conflict with char $ac_func(); below. */
5443 #include <assert.h>
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5447 char $ac_func();
5449 int main() {
5451 /* The GNU C library defines this for functions which it implements
5452 to always fail with ENOSYS. Some functions are actually named
5453 something starting with __ and the normal name is an alias. */
5454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5455 choke me
5456 #else
5457 $ac_func();
5458 #endif
5460 ; return 0; }
5462 if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5463 rm -rf conftest*
5464 eval "ac_cv_func_$ac_func=yes"
5465 else
5466 echo "configure: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 rm -rf conftest*
5469 eval "ac_cv_func_$ac_func=no"
5471 rm -f conftest*
5474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5475 echo "$ac_t""yes" 1>&6
5476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5477 cat >> confdefs.h <<EOF
5478 #define $ac_tr_func 1
5481 else
5482 echo "$ac_t""no" 1>&6
5484 done
5486 if test x"$ac_cv_func_execl" = x"no"; then
5487 RUNPROG="bin/smbrun"
5488 else
5489 RUNPROG=""
5492 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link mknod mknod64
5494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5495 echo "configure:5496: checking for $ac_func" >&5
5496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5497 echo $ac_n "(cached) $ac_c" 1>&6
5498 else
5499 cat > conftest.$ac_ext <<EOF
5500 #line 5501 "configure"
5501 #include "confdefs.h"
5502 /* System header to define __stub macros and hopefully few prototypes,
5503 which can conflict with char $ac_func(); below. */
5504 #include <assert.h>
5505 /* Override any gcc2 internal prototype to avoid an error. */
5506 /* We use char because int might match the return type of a gcc2
5507 builtin and then its argument prototype would still apply. */
5508 char $ac_func();
5510 int main() {
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5516 choke me
5517 #else
5518 $ac_func();
5519 #endif
5521 ; return 0; }
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5524 rm -rf conftest*
5525 eval "ac_cv_func_$ac_func=yes"
5526 else
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5529 rm -rf conftest*
5530 eval "ac_cv_func_$ac_func=no"
5532 rm -f conftest*
5535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5536 echo "$ac_t""yes" 1>&6
5537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5538 cat >> confdefs.h <<EOF
5539 #define $ac_tr_func 1
5542 else
5543 echo "$ac_t""no" 1>&6
5545 done
5547 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid
5549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_func" >&5
5551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 /* System header to define __stub macros and hopefully few prototypes,
5558 which can conflict with char $ac_func(); below. */
5559 #include <assert.h>
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5563 char $ac_func();
5565 int main() {
5567 /* The GNU C library defines this for functions which it implements
5568 to always fail with ENOSYS. Some functions are actually named
5569 something starting with __ and the normal name is an alias. */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5571 choke me
5572 #else
5573 $ac_func();
5574 #endif
5576 ; return 0; }
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 rm -rf conftest*
5580 eval "ac_cv_func_$ac_func=yes"
5581 else
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 rm -rf conftest*
5585 eval "ac_cv_func_$ac_func=no"
5587 rm -f conftest*
5590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5593 cat >> confdefs.h <<EOF
5594 #define $ac_tr_func 1
5597 else
5598 echo "$ac_t""no" 1>&6
5600 done
5602 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5605 echo "configure:5606: checking for $ac_func" >&5
5606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5607 echo $ac_n "(cached) $ac_c" 1>&6
5608 else
5609 cat > conftest.$ac_ext <<EOF
5610 #line 5611 "configure"
5611 #include "confdefs.h"
5612 /* System header to define __stub macros and hopefully few prototypes,
5613 which can conflict with char $ac_func(); below. */
5614 #include <assert.h>
5615 /* Override any gcc2 internal prototype to avoid an error. */
5616 /* We use char because int might match the return type of a gcc2
5617 builtin and then its argument prototype would still apply. */
5618 char $ac_func();
5620 int main() {
5622 /* The GNU C library defines this for functions which it implements
5623 to always fail with ENOSYS. Some functions are actually named
5624 something starting with __ and the normal name is an alias. */
5625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5626 choke me
5627 #else
5628 $ac_func();
5629 #endif
5631 ; return 0; }
5633 if { (eval echo configure:5634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5634 rm -rf conftest*
5635 eval "ac_cv_func_$ac_func=yes"
5636 else
5637 echo "configure: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 rm -rf conftest*
5640 eval "ac_cv_func_$ac_func=no"
5642 rm -f conftest*
5645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5646 echo "$ac_t""yes" 1>&6
5647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5648 cat >> confdefs.h <<EOF
5649 #define $ac_tr_func 1
5652 else
5653 echo "$ac_t""no" 1>&6
5655 done
5657 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5660 echo "configure:5661: checking for $ac_func" >&5
5661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5662 echo $ac_n "(cached) $ac_c" 1>&6
5663 else
5664 cat > conftest.$ac_ext <<EOF
5665 #line 5666 "configure"
5666 #include "confdefs.h"
5667 /* System header to define __stub macros and hopefully few prototypes,
5668 which can conflict with char $ac_func(); below. */
5669 #include <assert.h>
5670 /* Override any gcc2 internal prototype to avoid an error. */
5671 /* We use char because int might match the return type of a gcc2
5672 builtin and then its argument prototype would still apply. */
5673 char $ac_func();
5675 int main() {
5677 /* The GNU C library defines this for functions which it implements
5678 to always fail with ENOSYS. Some functions are actually named
5679 something starting with __ and the normal name is an alias. */
5680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5681 choke me
5682 #else
5683 $ac_func();
5684 #endif
5686 ; return 0; }
5688 if { (eval echo configure:5689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5689 rm -rf conftest*
5690 eval "ac_cv_func_$ac_func=yes"
5691 else
5692 echo "configure: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 rm -rf conftest*
5695 eval "ac_cv_func_$ac_func=no"
5697 rm -f conftest*
5700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5701 echo "$ac_t""yes" 1>&6
5702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5703 cat >> confdefs.h <<EOF
5704 #define $ac_tr_func 1
5707 else
5708 echo "$ac_t""no" 1>&6
5710 done
5712 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5715 echo "configure:5716: checking for $ac_func" >&5
5716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5717 echo $ac_n "(cached) $ac_c" 1>&6
5718 else
5719 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure"
5721 #include "confdefs.h"
5722 /* System header to define __stub macros and hopefully few prototypes,
5723 which can conflict with char $ac_func(); below. */
5724 #include <assert.h>
5725 /* Override any gcc2 internal prototype to avoid an error. */
5726 /* We use char because int might match the return type of a gcc2
5727 builtin and then its argument prototype would still apply. */
5728 char $ac_func();
5730 int main() {
5732 /* The GNU C library defines this for functions which it implements
5733 to always fail with ENOSYS. Some functions are actually named
5734 something starting with __ and the normal name is an alias. */
5735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5736 choke me
5737 #else
5738 $ac_func();
5739 #endif
5741 ; return 0; }
5743 if { (eval echo configure:5744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5744 rm -rf conftest*
5745 eval "ac_cv_func_$ac_func=yes"
5746 else
5747 echo "configure: failed program was:" >&5
5748 cat conftest.$ac_ext >&5
5749 rm -rf conftest*
5750 eval "ac_cv_func_$ac_func=no"
5752 rm -f conftest*
5755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5756 echo "$ac_t""yes" 1>&6
5757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5758 cat >> confdefs.h <<EOF
5759 #define $ac_tr_func 1
5762 else
5763 echo "$ac_t""no" 1>&6
5765 done
5767 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5770 echo "configure:5771: checking for $ac_func" >&5
5771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5772 echo $ac_n "(cached) $ac_c" 1>&6
5773 else
5774 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure"
5776 #include "confdefs.h"
5777 /* System header to define __stub macros and hopefully few prototypes,
5778 which can conflict with char $ac_func(); below. */
5779 #include <assert.h>
5780 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5783 char $ac_func();
5785 int main() {
5787 /* The GNU C library defines this for functions which it implements
5788 to always fail with ENOSYS. Some functions are actually named
5789 something starting with __ and the normal name is an alias. */
5790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5791 choke me
5792 #else
5793 $ac_func();
5794 #endif
5796 ; return 0; }
5798 if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5799 rm -rf conftest*
5800 eval "ac_cv_func_$ac_func=yes"
5801 else
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5804 rm -rf conftest*
5805 eval "ac_cv_func_$ac_func=no"
5807 rm -f conftest*
5810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5811 echo "$ac_t""yes" 1>&6
5812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5813 cat >> confdefs.h <<EOF
5814 #define $ac_tr_func 1
5817 else
5818 echo "$ac_t""no" 1>&6
5820 done
5822 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5825 echo "configure:5826: checking for $ac_func" >&5
5826 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5827 echo $ac_n "(cached) $ac_c" 1>&6
5828 else
5829 cat > conftest.$ac_ext <<EOF
5830 #line 5831 "configure"
5831 #include "confdefs.h"
5832 /* System header to define __stub macros and hopefully few prototypes,
5833 which can conflict with char $ac_func(); below. */
5834 #include <assert.h>
5835 /* Override any gcc2 internal prototype to avoid an error. */
5836 /* We use char because int might match the return type of a gcc2
5837 builtin and then its argument prototype would still apply. */
5838 char $ac_func();
5840 int main() {
5842 /* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5846 choke me
5847 #else
5848 $ac_func();
5849 #endif
5851 ; return 0; }
5853 if { (eval echo configure:5854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5854 rm -rf conftest*
5855 eval "ac_cv_func_$ac_func=yes"
5856 else
5857 echo "configure: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5859 rm -rf conftest*
5860 eval "ac_cv_func_$ac_func=no"
5862 rm -f conftest*
5865 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5866 echo "$ac_t""yes" 1>&6
5867 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5868 cat >> confdefs.h <<EOF
5869 #define $ac_tr_func 1
5872 else
5873 echo "$ac_t""no" 1>&6
5875 done
5877 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5880 echo "configure:5881: checking for $ac_func" >&5
5881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5882 echo $ac_n "(cached) $ac_c" 1>&6
5883 else
5884 cat > conftest.$ac_ext <<EOF
5885 #line 5886 "configure"
5886 #include "confdefs.h"
5887 /* System header to define __stub macros and hopefully few prototypes,
5888 which can conflict with char $ac_func(); below. */
5889 #include <assert.h>
5890 /* Override any gcc2 internal prototype to avoid an error. */
5891 /* We use char because int might match the return type of a gcc2
5892 builtin and then its argument prototype would still apply. */
5893 char $ac_func();
5895 int main() {
5897 /* The GNU C library defines this for functions which it implements
5898 to always fail with ENOSYS. Some functions are actually named
5899 something starting with __ and the normal name is an alias. */
5900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5901 choke me
5902 #else
5903 $ac_func();
5904 #endif
5906 ; return 0; }
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909 rm -rf conftest*
5910 eval "ac_cv_func_$ac_func=yes"
5911 else
5912 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5
5914 rm -rf conftest*
5915 eval "ac_cv_func_$ac_func=no"
5917 rm -f conftest*
5920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5921 echo "$ac_t""yes" 1>&6
5922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5923 cat >> confdefs.h <<EOF
5924 #define $ac_tr_func 1
5927 else
5928 echo "$ac_t""no" 1>&6
5930 done
5932 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5935 echo "configure:5936: checking for $ac_func" >&5
5936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5937 echo $ac_n "(cached) $ac_c" 1>&6
5938 else
5939 cat > conftest.$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5942 /* System header to define __stub macros and hopefully few prototypes,
5943 which can conflict with char $ac_func(); below. */
5944 #include <assert.h>
5945 /* Override any gcc2 internal prototype to avoid an error. */
5946 /* We use char because int might match the return type of a gcc2
5947 builtin and then its argument prototype would still apply. */
5948 char $ac_func();
5950 int main() {
5952 /* The GNU C library defines this for functions which it implements
5953 to always fail with ENOSYS. Some functions are actually named
5954 something starting with __ and the normal name is an alias. */
5955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5956 choke me
5957 #else
5958 $ac_func();
5959 #endif
5961 ; return 0; }
5963 if { (eval echo configure:5964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 rm -rf conftest*
5965 eval "ac_cv_func_$ac_func=yes"
5966 else
5967 echo "configure: failed program was:" >&5
5968 cat conftest.$ac_ext >&5
5969 rm -rf conftest*
5970 eval "ac_cv_func_$ac_func=no"
5972 rm -f conftest*
5975 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5976 echo "$ac_t""yes" 1>&6
5977 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5978 cat >> confdefs.h <<EOF
5979 #define $ac_tr_func 1
5982 else
5983 echo "$ac_t""no" 1>&6
5985 done
5987 for ac_func in syslog vsyslog
5989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5990 echo "configure:5991: checking for $ac_func" >&5
5991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5992 echo $ac_n "(cached) $ac_c" 1>&6
5993 else
5994 cat > conftest.$ac_ext <<EOF
5995 #line 5996 "configure"
5996 #include "confdefs.h"
5997 /* System header to define __stub macros and hopefully few prototypes,
5998 which can conflict with char $ac_func(); below. */
5999 #include <assert.h>
6000 /* Override any gcc2 internal prototype to avoid an error. */
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6003 char $ac_func();
6005 int main() {
6007 /* The GNU C library defines this for functions which it implements
6008 to always fail with ENOSYS. Some functions are actually named
6009 something starting with __ and the normal name is an alias. */
6010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6011 choke me
6012 #else
6013 $ac_func();
6014 #endif
6016 ; return 0; }
6018 if { (eval echo configure:6019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019 rm -rf conftest*
6020 eval "ac_cv_func_$ac_func=yes"
6021 else
6022 echo "configure: failed program was:" >&5
6023 cat conftest.$ac_ext >&5
6024 rm -rf conftest*
6025 eval "ac_cv_func_$ac_func=no"
6027 rm -f conftest*
6030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6031 echo "$ac_t""yes" 1>&6
6032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6033 cat >> confdefs.h <<EOF
6034 #define $ac_tr_func 1
6037 else
6038 echo "$ac_t""no" 1>&6
6040 done
6042 # setbuffer is needed for smbtorture
6043 for ac_func in setbuffer
6045 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6046 echo "configure:6047: checking for $ac_func" >&5
6047 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6048 echo $ac_n "(cached) $ac_c" 1>&6
6049 else
6050 cat > conftest.$ac_ext <<EOF
6051 #line 6052 "configure"
6052 #include "confdefs.h"
6053 /* System header to define __stub macros and hopefully few prototypes,
6054 which can conflict with char $ac_func(); below. */
6055 #include <assert.h>
6056 /* Override any gcc2 internal prototype to avoid an error. */
6057 /* We use char because int might match the return type of a gcc2
6058 builtin and then its argument prototype would still apply. */
6059 char $ac_func();
6061 int main() {
6063 /* The GNU C library defines this for functions which it implements
6064 to always fail with ENOSYS. Some functions are actually named
6065 something starting with __ and the normal name is an alias. */
6066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6067 choke me
6068 #else
6069 $ac_func();
6070 #endif
6072 ; return 0; }
6074 if { (eval echo configure:6075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6075 rm -rf conftest*
6076 eval "ac_cv_func_$ac_func=yes"
6077 else
6078 echo "configure: failed program was:" >&5
6079 cat conftest.$ac_ext >&5
6080 rm -rf conftest*
6081 eval "ac_cv_func_$ac_func=no"
6083 rm -f conftest*
6086 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6087 echo "$ac_t""yes" 1>&6
6088 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6089 cat >> confdefs.h <<EOF
6090 #define $ac_tr_func 1
6093 else
6094 echo "$ac_t""no" 1>&6
6096 done
6099 # syscall() is needed for smbwrapper.
6100 for ac_func in syscall
6102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6103 echo "configure:6104: checking for $ac_func" >&5
6104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6105 echo $ac_n "(cached) $ac_c" 1>&6
6106 else
6107 cat > conftest.$ac_ext <<EOF
6108 #line 6109 "configure"
6109 #include "confdefs.h"
6110 /* System header to define __stub macros and hopefully few prototypes,
6111 which can conflict with char $ac_func(); below. */
6112 #include <assert.h>
6113 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */
6116 char $ac_func();
6118 int main() {
6120 /* The GNU C library defines this for functions which it implements
6121 to always fail with ENOSYS. Some functions are actually named
6122 something starting with __ and the normal name is an alias. */
6123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6124 choke me
6125 #else
6126 $ac_func();
6127 #endif
6129 ; return 0; }
6131 if { (eval echo configure:6132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6132 rm -rf conftest*
6133 eval "ac_cv_func_$ac_func=yes"
6134 else
6135 echo "configure: failed program was:" >&5
6136 cat conftest.$ac_ext >&5
6137 rm -rf conftest*
6138 eval "ac_cv_func_$ac_func=no"
6140 rm -f conftest*
6143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6144 echo "$ac_t""yes" 1>&6
6145 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6146 cat >> confdefs.h <<EOF
6147 #define $ac_tr_func 1
6150 else
6151 echo "$ac_t""no" 1>&6
6153 done
6156 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
6158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6159 echo "configure:6160: checking for $ac_func" >&5
6160 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6161 echo $ac_n "(cached) $ac_c" 1>&6
6162 else
6163 cat > conftest.$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 /* System header to define __stub macros and hopefully few prototypes,
6167 which can conflict with char $ac_func(); below. */
6168 #include <assert.h>
6169 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6172 char $ac_func();
6174 int main() {
6176 /* The GNU C library defines this for functions which it implements
6177 to always fail with ENOSYS. Some functions are actually named
6178 something starting with __ and the normal name is an alias. */
6179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6180 choke me
6181 #else
6182 $ac_func();
6183 #endif
6185 ; return 0; }
6187 if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6188 rm -rf conftest*
6189 eval "ac_cv_func_$ac_func=yes"
6190 else
6191 echo "configure: failed program was:" >&5
6192 cat conftest.$ac_ext >&5
6193 rm -rf conftest*
6194 eval "ac_cv_func_$ac_func=no"
6196 rm -f conftest*
6199 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6200 echo "$ac_t""yes" 1>&6
6201 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6202 cat >> confdefs.h <<EOF
6203 #define $ac_tr_func 1
6206 else
6207 echo "$ac_t""no" 1>&6
6209 done
6211 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6214 echo "configure:6215: checking for $ac_func" >&5
6215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6216 echo $ac_n "(cached) $ac_c" 1>&6
6217 else
6218 cat > conftest.$ac_ext <<EOF
6219 #line 6220 "configure"
6220 #include "confdefs.h"
6221 /* System header to define __stub macros and hopefully few prototypes,
6222 which can conflict with char $ac_func(); below. */
6223 #include <assert.h>
6224 /* Override any gcc2 internal prototype to avoid an error. */
6225 /* We use char because int might match the return type of a gcc2
6226 builtin and then its argument prototype would still apply. */
6227 char $ac_func();
6229 int main() {
6231 /* The GNU C library defines this for functions which it implements
6232 to always fail with ENOSYS. Some functions are actually named
6233 something starting with __ and the normal name is an alias. */
6234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6235 choke me
6236 #else
6237 $ac_func();
6238 #endif
6240 ; return 0; }
6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6243 rm -rf conftest*
6244 eval "ac_cv_func_$ac_func=yes"
6245 else
6246 echo "configure: failed program was:" >&5
6247 cat conftest.$ac_ext >&5
6248 rm -rf conftest*
6249 eval "ac_cv_func_$ac_func=no"
6251 rm -f conftest*
6254 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6255 echo "$ac_t""yes" 1>&6
6256 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6257 cat >> confdefs.h <<EOF
6258 #define $ac_tr_func 1
6261 else
6262 echo "$ac_t""no" 1>&6
6264 done
6266 for ac_func in __getcwd _getcwd
6268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6269 echo "configure:6270: checking for $ac_func" >&5
6270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6271 echo $ac_n "(cached) $ac_c" 1>&6
6272 else
6273 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure"
6275 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char $ac_func(); below. */
6278 #include <assert.h>
6279 /* Override any gcc2 internal prototype to avoid an error. */
6280 /* We use char because int might match the return type of a gcc2
6281 builtin and then its argument prototype would still apply. */
6282 char $ac_func();
6284 int main() {
6286 /* The GNU C library defines this for functions which it implements
6287 to always fail with ENOSYS. Some functions are actually named
6288 something starting with __ and the normal name is an alias. */
6289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6290 choke me
6291 #else
6292 $ac_func();
6293 #endif
6295 ; return 0; }
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6298 rm -rf conftest*
6299 eval "ac_cv_func_$ac_func=yes"
6300 else
6301 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6303 rm -rf conftest*
6304 eval "ac_cv_func_$ac_func=no"
6306 rm -f conftest*
6309 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6310 echo "$ac_t""yes" 1>&6
6311 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6312 cat >> confdefs.h <<EOF
6313 #define $ac_tr_func 1
6316 else
6317 echo "$ac_t""no" 1>&6
6319 done
6321 for ac_func in __xstat __fxstat __lxstat
6323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6324 echo "configure:6325: checking for $ac_func" >&5
6325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6326 echo $ac_n "(cached) $ac_c" 1>&6
6327 else
6328 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure"
6330 #include "confdefs.h"
6331 /* System header to define __stub macros and hopefully few prototypes,
6332 which can conflict with char $ac_func(); below. */
6333 #include <assert.h>
6334 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6337 char $ac_func();
6339 int main() {
6341 /* The GNU C library defines this for functions which it implements
6342 to always fail with ENOSYS. Some functions are actually named
6343 something starting with __ and the normal name is an alias. */
6344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6345 choke me
6346 #else
6347 $ac_func();
6348 #endif
6350 ; return 0; }
6352 if { (eval echo configure:6353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6353 rm -rf conftest*
6354 eval "ac_cv_func_$ac_func=yes"
6355 else
6356 echo "configure: failed program was:" >&5
6357 cat conftest.$ac_ext >&5
6358 rm -rf conftest*
6359 eval "ac_cv_func_$ac_func=no"
6361 rm -f conftest*
6364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6365 echo "$ac_t""yes" 1>&6
6366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6367 cat >> confdefs.h <<EOF
6368 #define $ac_tr_func 1
6371 else
6372 echo "$ac_t""no" 1>&6
6374 done
6376 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6378 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6379 echo "configure:6380: checking for $ac_func" >&5
6380 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6381 echo $ac_n "(cached) $ac_c" 1>&6
6382 else
6383 cat > conftest.$ac_ext <<EOF
6384 #line 6385 "configure"
6385 #include "confdefs.h"
6386 /* System header to define __stub macros and hopefully few prototypes,
6387 which can conflict with char $ac_func(); below. */
6388 #include <assert.h>
6389 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6392 char $ac_func();
6394 int main() {
6396 /* The GNU C library defines this for functions which it implements
6397 to always fail with ENOSYS. Some functions are actually named
6398 something starting with __ and the normal name is an alias. */
6399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6400 choke me
6401 #else
6402 $ac_func();
6403 #endif
6405 ; return 0; }
6407 if { (eval echo configure:6408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6408 rm -rf conftest*
6409 eval "ac_cv_func_$ac_func=yes"
6410 else
6411 echo "configure: failed program was:" >&5
6412 cat conftest.$ac_ext >&5
6413 rm -rf conftest*
6414 eval "ac_cv_func_$ac_func=no"
6416 rm -f conftest*
6419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6420 echo "$ac_t""yes" 1>&6
6421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6422 cat >> confdefs.h <<EOF
6423 #define $ac_tr_func 1
6426 else
6427 echo "$ac_t""no" 1>&6
6429 done
6431 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6434 echo "configure:6435: checking for $ac_func" >&5
6435 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6436 echo $ac_n "(cached) $ac_c" 1>&6
6437 else
6438 cat > conftest.$ac_ext <<EOF
6439 #line 6440 "configure"
6440 #include "confdefs.h"
6441 /* System header to define __stub macros and hopefully few prototypes,
6442 which can conflict with char $ac_func(); below. */
6443 #include <assert.h>
6444 /* Override any gcc2 internal prototype to avoid an error. */
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447 char $ac_func();
6449 int main() {
6451 /* The GNU C library defines this for functions which it implements
6452 to always fail with ENOSYS. Some functions are actually named
6453 something starting with __ and the normal name is an alias. */
6454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6455 choke me
6456 #else
6457 $ac_func();
6458 #endif
6460 ; return 0; }
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6463 rm -rf conftest*
6464 eval "ac_cv_func_$ac_func=yes"
6465 else
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6468 rm -rf conftest*
6469 eval "ac_cv_func_$ac_func=no"
6471 rm -f conftest*
6474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6475 echo "$ac_t""yes" 1>&6
6476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6477 cat >> confdefs.h <<EOF
6478 #define $ac_tr_func 1
6481 else
6482 echo "$ac_t""no" 1>&6
6484 done
6486 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6489 echo "configure:6490: checking for $ac_func" >&5
6490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6491 echo $ac_n "(cached) $ac_c" 1>&6
6492 else
6493 cat > conftest.$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6496 /* System header to define __stub macros and hopefully few prototypes,
6497 which can conflict with char $ac_func(); below. */
6498 #include <assert.h>
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 /* We use char because int might match the return type of a gcc2
6501 builtin and then its argument prototype would still apply. */
6502 char $ac_func();
6504 int main() {
6506 /* The GNU C library defines this for functions which it implements
6507 to always fail with ENOSYS. Some functions are actually named
6508 something starting with __ and the normal name is an alias. */
6509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6510 choke me
6511 #else
6512 $ac_func();
6513 #endif
6515 ; return 0; }
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6518 rm -rf conftest*
6519 eval "ac_cv_func_$ac_func=yes"
6520 else
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6523 rm -rf conftest*
6524 eval "ac_cv_func_$ac_func=no"
6526 rm -f conftest*
6529 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6530 echo "$ac_t""yes" 1>&6
6531 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6532 cat >> confdefs.h <<EOF
6533 #define $ac_tr_func 1
6536 else
6537 echo "$ac_t""no" 1>&6
6539 done
6541 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6544 echo "configure:6545: checking for $ac_func" >&5
6545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6547 else
6548 cat > conftest.$ac_ext <<EOF
6549 #line 6550 "configure"
6550 #include "confdefs.h"
6551 /* System header to define __stub macros and hopefully few prototypes,
6552 which can conflict with char $ac_func(); below. */
6553 #include <assert.h>
6554 /* Override any gcc2 internal prototype to avoid an error. */
6555 /* We use char because int might match the return type of a gcc2
6556 builtin and then its argument prototype would still apply. */
6557 char $ac_func();
6559 int main() {
6561 /* The GNU C library defines this for functions which it implements
6562 to always fail with ENOSYS. Some functions are actually named
6563 something starting with __ and the normal name is an alias. */
6564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6565 choke me
6566 #else
6567 $ac_func();
6568 #endif
6570 ; return 0; }
6572 if { (eval echo configure:6573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6573 rm -rf conftest*
6574 eval "ac_cv_func_$ac_func=yes"
6575 else
6576 echo "configure: failed program was:" >&5
6577 cat conftest.$ac_ext >&5
6578 rm -rf conftest*
6579 eval "ac_cv_func_$ac_func=no"
6581 rm -f conftest*
6584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6585 echo "$ac_t""yes" 1>&6
6586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6587 cat >> confdefs.h <<EOF
6588 #define $ac_tr_func 1
6591 else
6592 echo "$ac_t""no" 1>&6
6594 done
6596 for ac_func in _write __write _fork __fork
6598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6599 echo "configure:6600: checking for $ac_func" >&5
6600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6601 echo $ac_n "(cached) $ac_c" 1>&6
6602 else
6603 cat > conftest.$ac_ext <<EOF
6604 #line 6605 "configure"
6605 #include "confdefs.h"
6606 /* System header to define __stub macros and hopefully few prototypes,
6607 which can conflict with char $ac_func(); below. */
6608 #include <assert.h>
6609 /* Override any gcc2 internal prototype to avoid an error. */
6610 /* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6612 char $ac_func();
6614 int main() {
6616 /* The GNU C library defines this for functions which it implements
6617 to always fail with ENOSYS. Some functions are actually named
6618 something starting with __ and the normal name is an alias. */
6619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6620 choke me
6621 #else
6622 $ac_func();
6623 #endif
6625 ; return 0; }
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6628 rm -rf conftest*
6629 eval "ac_cv_func_$ac_func=yes"
6630 else
6631 echo "configure: failed program was:" >&5
6632 cat conftest.$ac_ext >&5
6633 rm -rf conftest*
6634 eval "ac_cv_func_$ac_func=no"
6636 rm -f conftest*
6639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6640 echo "$ac_t""yes" 1>&6
6641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6642 cat >> confdefs.h <<EOF
6643 #define $ac_tr_func 1
6646 else
6647 echo "$ac_t""no" 1>&6
6649 done
6651 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6654 echo "configure:6655: checking for $ac_func" >&5
6655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6656 echo $ac_n "(cached) $ac_c" 1>&6
6657 else
6658 cat > conftest.$ac_ext <<EOF
6659 #line 6660 "configure"
6660 #include "confdefs.h"
6661 /* System header to define __stub macros and hopefully few prototypes,
6662 which can conflict with char $ac_func(); below. */
6663 #include <assert.h>
6664 /* Override any gcc2 internal prototype to avoid an error. */
6665 /* We use char because int might match the return type of a gcc2
6666 builtin and then its argument prototype would still apply. */
6667 char $ac_func();
6669 int main() {
6671 /* The GNU C library defines this for functions which it implements
6672 to always fail with ENOSYS. Some functions are actually named
6673 something starting with __ and the normal name is an alias. */
6674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6675 choke me
6676 #else
6677 $ac_func();
6678 #endif
6680 ; return 0; }
6682 if { (eval echo configure:6683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 rm -rf conftest*
6684 eval "ac_cv_func_$ac_func=yes"
6685 else
6686 echo "configure: failed program was:" >&5
6687 cat conftest.$ac_ext >&5
6688 rm -rf conftest*
6689 eval "ac_cv_func_$ac_func=no"
6691 rm -f conftest*
6694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6697 cat >> confdefs.h <<EOF
6698 #define $ac_tr_func 1
6701 else
6702 echo "$ac_t""no" 1>&6
6704 done
6706 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6709 echo "configure:6710: checking for $ac_func" >&5
6710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6712 else
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 /* System header to define __stub macros and hopefully few prototypes,
6717 which can conflict with char $ac_func(); below. */
6718 #include <assert.h>
6719 /* Override any gcc2 internal prototype to avoid an error. */
6720 /* We use char because int might match the return type of a gcc2
6721 builtin and then its argument prototype would still apply. */
6722 char $ac_func();
6724 int main() {
6726 /* The GNU C library defines this for functions which it implements
6727 to always fail with ENOSYS. Some functions are actually named
6728 something starting with __ and the normal name is an alias. */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6730 choke me
6731 #else
6732 $ac_func();
6733 #endif
6735 ; return 0; }
6737 if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6738 rm -rf conftest*
6739 eval "ac_cv_func_$ac_func=yes"
6740 else
6741 echo "configure: failed program was:" >&5
6742 cat conftest.$ac_ext >&5
6743 rm -rf conftest*
6744 eval "ac_cv_func_$ac_func=no"
6746 rm -f conftest*
6749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6750 echo "$ac_t""yes" 1>&6
6751 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6752 cat >> confdefs.h <<EOF
6753 #define $ac_tr_func 1
6756 else
6757 echo "$ac_t""no" 1>&6
6759 done
6761 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6764 echo "configure:6765: checking for $ac_func" >&5
6765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6767 else
6768 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure"
6770 #include "confdefs.h"
6771 /* System header to define __stub macros and hopefully few prototypes,
6772 which can conflict with char $ac_func(); below. */
6773 #include <assert.h>
6774 /* Override any gcc2 internal prototype to avoid an error. */
6775 /* We use char because int might match the return type of a gcc2
6776 builtin and then its argument prototype would still apply. */
6777 char $ac_func();
6779 int main() {
6781 /* The GNU C library defines this for functions which it implements
6782 to always fail with ENOSYS. Some functions are actually named
6783 something starting with __ and the normal name is an alias. */
6784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6785 choke me
6786 #else
6787 $ac_func();
6788 #endif
6790 ; return 0; }
6792 if { (eval echo configure:6793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6793 rm -rf conftest*
6794 eval "ac_cv_func_$ac_func=yes"
6795 else
6796 echo "configure: failed program was:" >&5
6797 cat conftest.$ac_ext >&5
6798 rm -rf conftest*
6799 eval "ac_cv_func_$ac_func=no"
6801 rm -f conftest*
6804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6805 echo "$ac_t""yes" 1>&6
6806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6807 cat >> confdefs.h <<EOF
6808 #define $ac_tr_func 1
6811 else
6812 echo "$ac_t""no" 1>&6
6814 done
6816 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6819 echo "configure:6820: checking for $ac_func" >&5
6820 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6821 echo $ac_n "(cached) $ac_c" 1>&6
6822 else
6823 cat > conftest.$ac_ext <<EOF
6824 #line 6825 "configure"
6825 #include "confdefs.h"
6826 /* System header to define __stub macros and hopefully few prototypes,
6827 which can conflict with char $ac_func(); below. */
6828 #include <assert.h>
6829 /* Override any gcc2 internal prototype to avoid an error. */
6830 /* We use char because int might match the return type of a gcc2
6831 builtin and then its argument prototype would still apply. */
6832 char $ac_func();
6834 int main() {
6836 /* The GNU C library defines this for functions which it implements
6837 to always fail with ENOSYS. Some functions are actually named
6838 something starting with __ and the normal name is an alias. */
6839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6840 choke me
6841 #else
6842 $ac_func();
6843 #endif
6845 ; return 0; }
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848 rm -rf conftest*
6849 eval "ac_cv_func_$ac_func=yes"
6850 else
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6853 rm -rf conftest*
6854 eval "ac_cv_func_$ac_func=no"
6856 rm -f conftest*
6859 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6862 cat >> confdefs.h <<EOF
6863 #define $ac_tr_func 1
6866 else
6867 echo "$ac_t""no" 1>&6
6869 done
6871 for ac_func in open64 _open64 __open64 creat64
6873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6874 echo "configure:6875: checking for $ac_func" >&5
6875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6876 echo $ac_n "(cached) $ac_c" 1>&6
6877 else
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* System header to define __stub macros and hopefully few prototypes,
6882 which can conflict with char $ac_func(); below. */
6883 #include <assert.h>
6884 /* Override any gcc2 internal prototype to avoid an error. */
6885 /* We use char because int might match the return type of a gcc2
6886 builtin and then its argument prototype would still apply. */
6887 char $ac_func();
6889 int main() {
6891 /* The GNU C library defines this for functions which it implements
6892 to always fail with ENOSYS. Some functions are actually named
6893 something starting with __ and the normal name is an alias. */
6894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6895 choke me
6896 #else
6897 $ac_func();
6898 #endif
6900 ; return 0; }
6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6903 rm -rf conftest*
6904 eval "ac_cv_func_$ac_func=yes"
6905 else
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6908 rm -rf conftest*
6909 eval "ac_cv_func_$ac_func=no"
6911 rm -f conftest*
6914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6915 echo "$ac_t""yes" 1>&6
6916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6917 cat >> confdefs.h <<EOF
6918 #define $ac_tr_func 1
6921 else
6922 echo "$ac_t""no" 1>&6
6924 done
6928 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6931 if test x$ac_cv_func_stat64 = xno ; then
6932 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6933 echo "configure:6934: checking for stat64 in <sys/stat.h>" >&5
6934 cat > conftest.$ac_ext <<EOF
6935 #line 6936 "configure"
6936 #include "confdefs.h"
6938 #if defined(HAVE_UNISTD_H)
6939 #include <unistd.h>
6940 #endif
6941 #include <sys/stat.h>
6943 int main() {
6944 struct stat64 st64; exit(stat64(".",&st64));
6945 ; return 0; }
6947 if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6948 rm -rf conftest*
6949 ac_cv_func_stat64=yes
6950 else
6951 echo "configure: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6954 rm -f conftest*
6955 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6956 if test x$ac_cv_func_stat64 = xyes ; then
6957 cat >> confdefs.h <<\EOF
6958 #define HAVE_STAT64 1
6964 if test x$ac_cv_func_lstat64 = xno ; then
6965 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6966 echo "configure:6967: checking for lstat64 in <sys/stat.h>" >&5
6967 cat > conftest.$ac_ext <<EOF
6968 #line 6969 "configure"
6969 #include "confdefs.h"
6971 #if defined(HAVE_UNISTD_H)
6972 #include <unistd.h>
6973 #endif
6974 #include <sys/stat.h>
6976 int main() {
6977 struct stat64 st64; exit(lstat64(".",&st64));
6978 ; return 0; }
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6981 rm -rf conftest*
6982 ac_cv_func_lstat64=yes
6983 else
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 rm -f conftest*
6988 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6989 if test x$ac_cv_func_lstat64 = xyes ; then
6990 cat >> confdefs.h <<\EOF
6991 #define HAVE_LSTAT64 1
6997 if test x$ac_cv_func_fstat64 = xno ; then
6998 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6999 echo "configure:7000: checking for fstat64 in <sys/stat.h>" >&5
7000 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure"
7002 #include "confdefs.h"
7004 #if defined(HAVE_UNISTD_H)
7005 #include <unistd.h>
7006 #endif
7007 #include <sys/stat.h>
7009 int main() {
7010 struct stat64 st64; exit(fstat64(0,&st64));
7011 ; return 0; }
7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7014 rm -rf conftest*
7015 ac_cv_func_fstat64=yes
7016 else
7017 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 rm -f conftest*
7021 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
7022 if test x$ac_cv_func_fstat64 = xyes ; then
7023 cat >> confdefs.h <<\EOF
7024 #define HAVE_FSTAT64 1
7030 #####################################
7031 # we might need the resolv library on some systems
7032 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
7033 echo "configure:7034: checking for dn_expand in -lresolv" >&5
7034 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
7035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7037 else
7038 ac_save_LIBS="$LIBS"
7039 LIBS="-lresolv $LIBS"
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 /* Override any gcc2 internal prototype to avoid an error. */
7044 /* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */
7046 char dn_expand();
7048 int main() {
7049 dn_expand()
7050 ; return 0; }
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7053 rm -rf conftest*
7054 eval "ac_cv_lib_$ac_lib_var=yes"
7055 else
7056 echo "configure: failed program was:" >&5
7057 cat conftest.$ac_ext >&5
7058 rm -rf conftest*
7059 eval "ac_cv_lib_$ac_lib_var=no"
7061 rm -f conftest*
7062 LIBS="$ac_save_LIBS"
7065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7066 echo "$ac_t""yes" 1>&6
7067 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7069 cat >> confdefs.h <<EOF
7070 #define $ac_tr_lib 1
7073 LIBS="-lresolv $LIBS"
7075 else
7076 echo "$ac_t""no" 1>&6
7081 # Check for the functions putprpwnam, set_auth_parameters,
7082 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
7083 # Needed for OSF1 and HPUX.
7086 case "$LIBS" in
7087 *-lsecurity*) for ac_func in putprpwnam
7089 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7090 echo "configure:7091: checking for $ac_func" >&5
7091 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7092 echo $ac_n "(cached) $ac_c" 1>&6
7093 else
7094 cat > conftest.$ac_ext <<EOF
7095 #line 7096 "configure"
7096 #include "confdefs.h"
7097 /* System header to define __stub macros and hopefully few prototypes,
7098 which can conflict with char $ac_func(); below. */
7099 #include <assert.h>
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7103 char $ac_func();
7105 int main() {
7107 /* The GNU C library defines this for functions which it implements
7108 to always fail with ENOSYS. Some functions are actually named
7109 something starting with __ and the normal name is an alias. */
7110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7111 choke me
7112 #else
7113 $ac_func();
7114 #endif
7116 ; return 0; }
7118 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7119 rm -rf conftest*
7120 eval "ac_cv_func_$ac_func=yes"
7121 else
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7124 rm -rf conftest*
7125 eval "ac_cv_func_$ac_func=no"
7127 rm -f conftest*
7130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7131 echo "$ac_t""yes" 1>&6
7132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7133 cat >> confdefs.h <<EOF
7134 #define $ac_tr_func 1
7137 else
7138 echo "$ac_t""no" 1>&6
7140 done
7142 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
7143 echo "configure:7144: checking for putprpwnam in -lsecurity" >&5
7144 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
7145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7146 echo $ac_n "(cached) $ac_c" 1>&6
7147 else
7148 ac_save_LIBS="$LIBS"
7149 LIBS="-lsecurity $LIBS"
7150 cat > conftest.$ac_ext <<EOF
7151 #line 7152 "configure"
7152 #include "confdefs.h"
7153 /* Override any gcc2 internal prototype to avoid an error. */
7154 /* We use char because int might match the return type of a gcc2
7155 builtin and then its argument prototype would still apply. */
7156 char putprpwnam();
7158 int main() {
7159 putprpwnam()
7160 ; return 0; }
7162 if { (eval echo configure:7163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7163 rm -rf conftest*
7164 eval "ac_cv_lib_$ac_lib_var=yes"
7165 else
7166 echo "configure: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7168 rm -rf conftest*
7169 eval "ac_cv_lib_$ac_lib_var=no"
7171 rm -f conftest*
7172 LIBS="$ac_save_LIBS"
7175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7176 echo "$ac_t""yes" 1>&6
7177 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7179 cat >> confdefs.h <<EOF
7180 #define $ac_tr_lib 1
7183 LIBS="-lsecurity $LIBS"
7185 else
7186 echo "$ac_t""no" 1>&6
7189 for ac_func in putprpwnam
7191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7192 echo "configure:7193: checking for $ac_func" >&5
7193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7194 echo $ac_n "(cached) $ac_c" 1>&6
7195 else
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7199 /* System header to define __stub macros and hopefully few prototypes,
7200 which can conflict with char $ac_func(); below. */
7201 #include <assert.h>
7202 /* Override any gcc2 internal prototype to avoid an error. */
7203 /* We use char because int might match the return type of a gcc2
7204 builtin and then its argument prototype would still apply. */
7205 char $ac_func();
7207 int main() {
7209 /* The GNU C library defines this for functions which it implements
7210 to always fail with ENOSYS. Some functions are actually named
7211 something starting with __ and the normal name is an alias. */
7212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7213 choke me
7214 #else
7215 $ac_func();
7216 #endif
7218 ; return 0; }
7220 if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7221 rm -rf conftest*
7222 eval "ac_cv_func_$ac_func=yes"
7223 else
7224 echo "configure: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7226 rm -rf conftest*
7227 eval "ac_cv_func_$ac_func=no"
7229 rm -f conftest*
7232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7233 echo "$ac_t""yes" 1>&6
7234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7235 cat >> confdefs.h <<EOF
7236 #define $ac_tr_func 1
7239 else
7240 echo "$ac_t""no" 1>&6
7242 done
7245 esac
7247 case "$LIBS" in
7248 *-lsec*) for ac_func in putprpwnam
7250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7251 echo "configure:7252: checking for $ac_func" >&5
7252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7254 else
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* System header to define __stub macros and hopefully few prototypes,
7259 which can conflict with char $ac_func(); below. */
7260 #include <assert.h>
7261 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7264 char $ac_func();
7266 int main() {
7268 /* The GNU C library defines this for functions which it implements
7269 to always fail with ENOSYS. Some functions are actually named
7270 something starting with __ and the normal name is an alias. */
7271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7272 choke me
7273 #else
7274 $ac_func();
7275 #endif
7277 ; return 0; }
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7280 rm -rf conftest*
7281 eval "ac_cv_func_$ac_func=yes"
7282 else
7283 echo "configure: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7285 rm -rf conftest*
7286 eval "ac_cv_func_$ac_func=no"
7288 rm -f conftest*
7291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7294 cat >> confdefs.h <<EOF
7295 #define $ac_tr_func 1
7298 else
7299 echo "$ac_t""no" 1>&6
7301 done
7303 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7304 echo "configure:7305: checking for putprpwnam in -lsec" >&5
7305 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7307 echo $ac_n "(cached) $ac_c" 1>&6
7308 else
7309 ac_save_LIBS="$LIBS"
7310 LIBS="-lsec $LIBS"
7311 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure"
7313 #include "confdefs.h"
7314 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7317 char putprpwnam();
7319 int main() {
7320 putprpwnam()
7321 ; return 0; }
7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7324 rm -rf conftest*
7325 eval "ac_cv_lib_$ac_lib_var=yes"
7326 else
7327 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5
7329 rm -rf conftest*
7330 eval "ac_cv_lib_$ac_lib_var=no"
7332 rm -f conftest*
7333 LIBS="$ac_save_LIBS"
7336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7337 echo "$ac_t""yes" 1>&6
7338 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7340 cat >> confdefs.h <<EOF
7341 #define $ac_tr_lib 1
7344 LIBS="-lsec $LIBS"
7346 else
7347 echo "$ac_t""no" 1>&6
7350 for ac_func in putprpwnam
7352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7353 echo "configure:7354: checking for $ac_func" >&5
7354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7355 echo $ac_n "(cached) $ac_c" 1>&6
7356 else
7357 cat > conftest.$ac_ext <<EOF
7358 #line 7359 "configure"
7359 #include "confdefs.h"
7360 /* System header to define __stub macros and hopefully few prototypes,
7361 which can conflict with char $ac_func(); below. */
7362 #include <assert.h>
7363 /* Override any gcc2 internal prototype to avoid an error. */
7364 /* We use char because int might match the return type of a gcc2
7365 builtin and then its argument prototype would still apply. */
7366 char $ac_func();
7368 int main() {
7370 /* The GNU C library defines this for functions which it implements
7371 to always fail with ENOSYS. Some functions are actually named
7372 something starting with __ and the normal name is an alias. */
7373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7374 choke me
7375 #else
7376 $ac_func();
7377 #endif
7379 ; return 0; }
7381 if { (eval echo configure:7382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7382 rm -rf conftest*
7383 eval "ac_cv_func_$ac_func=yes"
7384 else
7385 echo "configure: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7387 rm -rf conftest*
7388 eval "ac_cv_func_$ac_func=no"
7390 rm -f conftest*
7393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7394 echo "$ac_t""yes" 1>&6
7395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7396 cat >> confdefs.h <<EOF
7397 #define $ac_tr_func 1
7400 else
7401 echo "$ac_t""no" 1>&6
7403 done
7406 esac
7409 case "$LIBS" in
7410 *-lsecurity*) for ac_func in set_auth_parameters
7412 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7413 echo "configure:7414: checking for $ac_func" >&5
7414 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
7416 else
7417 cat > conftest.$ac_ext <<EOF
7418 #line 7419 "configure"
7419 #include "confdefs.h"
7420 /* System header to define __stub macros and hopefully few prototypes,
7421 which can conflict with char $ac_func(); below. */
7422 #include <assert.h>
7423 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7426 char $ac_func();
7428 int main() {
7430 /* The GNU C library defines this for functions which it implements
7431 to always fail with ENOSYS. Some functions are actually named
7432 something starting with __ and the normal name is an alias. */
7433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7434 choke me
7435 #else
7436 $ac_func();
7437 #endif
7439 ; return 0; }
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7442 rm -rf conftest*
7443 eval "ac_cv_func_$ac_func=yes"
7444 else
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7447 rm -rf conftest*
7448 eval "ac_cv_func_$ac_func=no"
7450 rm -f conftest*
7453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7454 echo "$ac_t""yes" 1>&6
7455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7456 cat >> confdefs.h <<EOF
7457 #define $ac_tr_func 1
7460 else
7461 echo "$ac_t""no" 1>&6
7463 done
7465 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7466 echo "configure:7467: checking for set_auth_parameters in -lsecurity" >&5
7467 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7468 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7469 echo $ac_n "(cached) $ac_c" 1>&6
7470 else
7471 ac_save_LIBS="$LIBS"
7472 LIBS="-lsecurity $LIBS"
7473 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure"
7475 #include "confdefs.h"
7476 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */
7479 char set_auth_parameters();
7481 int main() {
7482 set_auth_parameters()
7483 ; return 0; }
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7486 rm -rf conftest*
7487 eval "ac_cv_lib_$ac_lib_var=yes"
7488 else
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7491 rm -rf conftest*
7492 eval "ac_cv_lib_$ac_lib_var=no"
7494 rm -f conftest*
7495 LIBS="$ac_save_LIBS"
7498 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7499 echo "$ac_t""yes" 1>&6
7500 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7501 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7502 cat >> confdefs.h <<EOF
7503 #define $ac_tr_lib 1
7506 LIBS="-lsecurity $LIBS"
7508 else
7509 echo "$ac_t""no" 1>&6
7512 for ac_func in set_auth_parameters
7514 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7515 echo "configure:7516: checking for $ac_func" >&5
7516 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7518 else
7519 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure"
7521 #include "confdefs.h"
7522 /* System header to define __stub macros and hopefully few prototypes,
7523 which can conflict with char $ac_func(); below. */
7524 #include <assert.h>
7525 /* Override any gcc2 internal prototype to avoid an error. */
7526 /* We use char because int might match the return type of a gcc2
7527 builtin and then its argument prototype would still apply. */
7528 char $ac_func();
7530 int main() {
7532 /* The GNU C library defines this for functions which it implements
7533 to always fail with ENOSYS. Some functions are actually named
7534 something starting with __ and the normal name is an alias. */
7535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7536 choke me
7537 #else
7538 $ac_func();
7539 #endif
7541 ; return 0; }
7543 if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7544 rm -rf conftest*
7545 eval "ac_cv_func_$ac_func=yes"
7546 else
7547 echo "configure: failed program was:" >&5
7548 cat conftest.$ac_ext >&5
7549 rm -rf conftest*
7550 eval "ac_cv_func_$ac_func=no"
7552 rm -f conftest*
7555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7556 echo "$ac_t""yes" 1>&6
7557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7558 cat >> confdefs.h <<EOF
7559 #define $ac_tr_func 1
7562 else
7563 echo "$ac_t""no" 1>&6
7565 done
7568 esac
7570 case "$LIBS" in
7571 *-lsec*) for ac_func in set_auth_parameters
7573 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7574 echo "configure:7575: checking for $ac_func" >&5
7575 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7576 echo $ac_n "(cached) $ac_c" 1>&6
7577 else
7578 cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure"
7580 #include "confdefs.h"
7581 /* System header to define __stub macros and hopefully few prototypes,
7582 which can conflict with char $ac_func(); below. */
7583 #include <assert.h>
7584 /* Override any gcc2 internal prototype to avoid an error. */
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7587 char $ac_func();
7589 int main() {
7591 /* The GNU C library defines this for functions which it implements
7592 to always fail with ENOSYS. Some functions are actually named
7593 something starting with __ and the normal name is an alias. */
7594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7595 choke me
7596 #else
7597 $ac_func();
7598 #endif
7600 ; return 0; }
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603 rm -rf conftest*
7604 eval "ac_cv_func_$ac_func=yes"
7605 else
7606 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5
7608 rm -rf conftest*
7609 eval "ac_cv_func_$ac_func=no"
7611 rm -f conftest*
7614 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7615 echo "$ac_t""yes" 1>&6
7616 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7617 cat >> confdefs.h <<EOF
7618 #define $ac_tr_func 1
7621 else
7622 echo "$ac_t""no" 1>&6
7624 done
7626 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7627 echo "configure:7628: checking for set_auth_parameters in -lsec" >&5
7628 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7630 echo $ac_n "(cached) $ac_c" 1>&6
7631 else
7632 ac_save_LIBS="$LIBS"
7633 LIBS="-lsec $LIBS"
7634 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure"
7636 #include "confdefs.h"
7637 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */
7640 char set_auth_parameters();
7642 int main() {
7643 set_auth_parameters()
7644 ; return 0; }
7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7647 rm -rf conftest*
7648 eval "ac_cv_lib_$ac_lib_var=yes"
7649 else
7650 echo "configure: failed program was:" >&5
7651 cat conftest.$ac_ext >&5
7652 rm -rf conftest*
7653 eval "ac_cv_lib_$ac_lib_var=no"
7655 rm -f conftest*
7656 LIBS="$ac_save_LIBS"
7659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7660 echo "$ac_t""yes" 1>&6
7661 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7662 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7663 cat >> confdefs.h <<EOF
7664 #define $ac_tr_lib 1
7667 LIBS="-lsec $LIBS"
7669 else
7670 echo "$ac_t""no" 1>&6
7673 for ac_func in set_auth_parameters
7675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7676 echo "configure:7677: checking for $ac_func" >&5
7677 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7678 echo $ac_n "(cached) $ac_c" 1>&6
7679 else
7680 cat > conftest.$ac_ext <<EOF
7681 #line 7682 "configure"
7682 #include "confdefs.h"
7683 /* System header to define __stub macros and hopefully few prototypes,
7684 which can conflict with char $ac_func(); below. */
7685 #include <assert.h>
7686 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7689 char $ac_func();
7691 int main() {
7693 /* The GNU C library defines this for functions which it implements
7694 to always fail with ENOSYS. Some functions are actually named
7695 something starting with __ and the normal name is an alias. */
7696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7697 choke me
7698 #else
7699 $ac_func();
7700 #endif
7702 ; return 0; }
7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7705 rm -rf conftest*
7706 eval "ac_cv_func_$ac_func=yes"
7707 else
7708 echo "configure: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 rm -rf conftest*
7711 eval "ac_cv_func_$ac_func=no"
7713 rm -f conftest*
7716 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7717 echo "$ac_t""yes" 1>&6
7718 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7719 cat >> confdefs.h <<EOF
7720 #define $ac_tr_func 1
7723 else
7724 echo "$ac_t""no" 1>&6
7726 done
7729 esac
7732 # UnixWare 7.x has its getspnam in -lgen
7733 case "$LIBS" in
7734 *-lgen*) for ac_func in getspnam
7736 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7737 echo "configure:7738: checking for $ac_func" >&5
7738 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7739 echo $ac_n "(cached) $ac_c" 1>&6
7740 else
7741 cat > conftest.$ac_ext <<EOF
7742 #line 7743 "configure"
7743 #include "confdefs.h"
7744 /* System header to define __stub macros and hopefully few prototypes,
7745 which can conflict with char $ac_func(); below. */
7746 #include <assert.h>
7747 /* Override any gcc2 internal prototype to avoid an error. */
7748 /* We use char because int might match the return type of a gcc2
7749 builtin and then its argument prototype would still apply. */
7750 char $ac_func();
7752 int main() {
7754 /* The GNU C library defines this for functions which it implements
7755 to always fail with ENOSYS. Some functions are actually named
7756 something starting with __ and the normal name is an alias. */
7757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7758 choke me
7759 #else
7760 $ac_func();
7761 #endif
7763 ; return 0; }
7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7766 rm -rf conftest*
7767 eval "ac_cv_func_$ac_func=yes"
7768 else
7769 echo "configure: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 rm -rf conftest*
7772 eval "ac_cv_func_$ac_func=no"
7774 rm -f conftest*
7777 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7778 echo "$ac_t""yes" 1>&6
7779 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7780 cat >> confdefs.h <<EOF
7781 #define $ac_tr_func 1
7784 else
7785 echo "$ac_t""no" 1>&6
7787 done
7789 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7790 echo "configure:7791: checking for getspnam in -lgen" >&5
7791 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7794 else
7795 ac_save_LIBS="$LIBS"
7796 LIBS="-lgen $LIBS"
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7800 /* Override any gcc2 internal prototype to avoid an error. */
7801 /* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803 char getspnam();
7805 int main() {
7806 getspnam()
7807 ; return 0; }
7809 if { (eval echo configure:7810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7810 rm -rf conftest*
7811 eval "ac_cv_lib_$ac_lib_var=yes"
7812 else
7813 echo "configure: failed program was:" >&5
7814 cat conftest.$ac_ext >&5
7815 rm -rf conftest*
7816 eval "ac_cv_lib_$ac_lib_var=no"
7818 rm -f conftest*
7819 LIBS="$ac_save_LIBS"
7822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7823 echo "$ac_t""yes" 1>&6
7824 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7825 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7826 cat >> confdefs.h <<EOF
7827 #define $ac_tr_lib 1
7830 LIBS="-lgen $LIBS"
7832 else
7833 echo "$ac_t""no" 1>&6
7836 for ac_func in getspnam
7838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7839 echo "configure:7840: checking for $ac_func" >&5
7840 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7841 echo $ac_n "(cached) $ac_c" 1>&6
7842 else
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7846 /* System header to define __stub macros and hopefully few prototypes,
7847 which can conflict with char $ac_func(); below. */
7848 #include <assert.h>
7849 /* Override any gcc2 internal prototype to avoid an error. */
7850 /* We use char because int might match the return type of a gcc2
7851 builtin and then its argument prototype would still apply. */
7852 char $ac_func();
7854 int main() {
7856 /* The GNU C library defines this for functions which it implements
7857 to always fail with ENOSYS. Some functions are actually named
7858 something starting with __ and the normal name is an alias. */
7859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7860 choke me
7861 #else
7862 $ac_func();
7863 #endif
7865 ; return 0; }
7867 if { (eval echo configure:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7868 rm -rf conftest*
7869 eval "ac_cv_func_$ac_func=yes"
7870 else
7871 echo "configure: failed program was:" >&5
7872 cat conftest.$ac_ext >&5
7873 rm -rf conftest*
7874 eval "ac_cv_func_$ac_func=no"
7876 rm -f conftest*
7879 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7880 echo "$ac_t""yes" 1>&6
7881 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7882 cat >> confdefs.h <<EOF
7883 #define $ac_tr_func 1
7886 else
7887 echo "$ac_t""no" 1>&6
7889 done
7892 esac
7895 case "$LIBS" in
7896 *-lsecurity*) for ac_func in getspnam
7898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7899 echo "configure:7900: checking for $ac_func" >&5
7900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7901 echo $ac_n "(cached) $ac_c" 1>&6
7902 else
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7906 /* System header to define __stub macros and hopefully few prototypes,
7907 which can conflict with char $ac_func(); below. */
7908 #include <assert.h>
7909 /* Override any gcc2 internal prototype to avoid an error. */
7910 /* We use char because int might match the return type of a gcc2
7911 builtin and then its argument prototype would still apply. */
7912 char $ac_func();
7914 int main() {
7916 /* The GNU C library defines this for functions which it implements
7917 to always fail with ENOSYS. Some functions are actually named
7918 something starting with __ and the normal name is an alias. */
7919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7920 choke me
7921 #else
7922 $ac_func();
7923 #endif
7925 ; return 0; }
7927 if { (eval echo configure:7928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7928 rm -rf conftest*
7929 eval "ac_cv_func_$ac_func=yes"
7930 else
7931 echo "configure: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 rm -rf conftest*
7934 eval "ac_cv_func_$ac_func=no"
7936 rm -f conftest*
7939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7940 echo "$ac_t""yes" 1>&6
7941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7942 cat >> confdefs.h <<EOF
7943 #define $ac_tr_func 1
7946 else
7947 echo "$ac_t""no" 1>&6
7949 done
7951 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7952 echo "configure:7953: checking for getspnam in -lsecurity" >&5
7953 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7956 else
7957 ac_save_LIBS="$LIBS"
7958 LIBS="-lsecurity $LIBS"
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7962 /* Override any gcc2 internal prototype to avoid an error. */
7963 /* We use char because int might match the return type of a gcc2
7964 builtin and then its argument prototype would still apply. */
7965 char getspnam();
7967 int main() {
7968 getspnam()
7969 ; return 0; }
7971 if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7972 rm -rf conftest*
7973 eval "ac_cv_lib_$ac_lib_var=yes"
7974 else
7975 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7977 rm -rf conftest*
7978 eval "ac_cv_lib_$ac_lib_var=no"
7980 rm -f conftest*
7981 LIBS="$ac_save_LIBS"
7984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7985 echo "$ac_t""yes" 1>&6
7986 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7987 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7988 cat >> confdefs.h <<EOF
7989 #define $ac_tr_lib 1
7992 LIBS="-lsecurity $LIBS"
7994 else
7995 echo "$ac_t""no" 1>&6
7998 for ac_func in getspnam
8000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8001 echo "configure:8002: checking for $ac_func" >&5
8002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6
8004 else
8005 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure"
8007 #include "confdefs.h"
8008 /* System header to define __stub macros and hopefully few prototypes,
8009 which can conflict with char $ac_func(); below. */
8010 #include <assert.h>
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char $ac_func();
8016 int main() {
8018 /* The GNU C library defines this for functions which it implements
8019 to always fail with ENOSYS. Some functions are actually named
8020 something starting with __ and the normal name is an alias. */
8021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8022 choke me
8023 #else
8024 $ac_func();
8025 #endif
8027 ; return 0; }
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8030 rm -rf conftest*
8031 eval "ac_cv_func_$ac_func=yes"
8032 else
8033 echo "configure: failed program was:" >&5
8034 cat conftest.$ac_ext >&5
8035 rm -rf conftest*
8036 eval "ac_cv_func_$ac_func=no"
8038 rm -f conftest*
8041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8042 echo "$ac_t""yes" 1>&6
8043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8044 cat >> confdefs.h <<EOF
8045 #define $ac_tr_func 1
8048 else
8049 echo "$ac_t""no" 1>&6
8051 done
8054 esac
8056 case "$LIBS" in
8057 *-lsec*) for ac_func in getspnam
8059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8060 echo "configure:8061: checking for $ac_func" >&5
8061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8063 else
8064 cat > conftest.$ac_ext <<EOF
8065 #line 8066 "configure"
8066 #include "confdefs.h"
8067 /* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func(); below. */
8069 #include <assert.h>
8070 /* Override any gcc2 internal prototype to avoid an error. */
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8073 char $ac_func();
8075 int main() {
8077 /* The GNU C library defines this for functions which it implements
8078 to always fail with ENOSYS. Some functions are actually named
8079 something starting with __ and the normal name is an alias. */
8080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8081 choke me
8082 #else
8083 $ac_func();
8084 #endif
8086 ; return 0; }
8088 if { (eval echo configure:8089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8089 rm -rf conftest*
8090 eval "ac_cv_func_$ac_func=yes"
8091 else
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8094 rm -rf conftest*
8095 eval "ac_cv_func_$ac_func=no"
8097 rm -f conftest*
8100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8101 echo "$ac_t""yes" 1>&6
8102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8103 cat >> confdefs.h <<EOF
8104 #define $ac_tr_func 1
8107 else
8108 echo "$ac_t""no" 1>&6
8110 done
8112 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
8113 echo "configure:8114: checking for getspnam in -lsec" >&5
8114 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
8115 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8116 echo $ac_n "(cached) $ac_c" 1>&6
8117 else
8118 ac_save_LIBS="$LIBS"
8119 LIBS="-lsec $LIBS"
8120 cat > conftest.$ac_ext <<EOF
8121 #line 8122 "configure"
8122 #include "confdefs.h"
8123 /* Override any gcc2 internal prototype to avoid an error. */
8124 /* We use char because int might match the return type of a gcc2
8125 builtin and then its argument prototype would still apply. */
8126 char getspnam();
8128 int main() {
8129 getspnam()
8130 ; return 0; }
8132 if { (eval echo configure:8133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8133 rm -rf conftest*
8134 eval "ac_cv_lib_$ac_lib_var=yes"
8135 else
8136 echo "configure: failed program was:" >&5
8137 cat conftest.$ac_ext >&5
8138 rm -rf conftest*
8139 eval "ac_cv_lib_$ac_lib_var=no"
8141 rm -f conftest*
8142 LIBS="$ac_save_LIBS"
8145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8146 echo "$ac_t""yes" 1>&6
8147 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8149 cat >> confdefs.h <<EOF
8150 #define $ac_tr_lib 1
8153 LIBS="-lsec $LIBS"
8155 else
8156 echo "$ac_t""no" 1>&6
8159 for ac_func in getspnam
8161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8162 echo "configure:8163: checking for $ac_func" >&5
8163 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165 else
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 /* System header to define __stub macros and hopefully few prototypes,
8170 which can conflict with char $ac_func(); below. */
8171 #include <assert.h>
8172 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8175 char $ac_func();
8177 int main() {
8179 /* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8183 choke me
8184 #else
8185 $ac_func();
8186 #endif
8188 ; return 0; }
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8191 rm -rf conftest*
8192 eval "ac_cv_func_$ac_func=yes"
8193 else
8194 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5
8196 rm -rf conftest*
8197 eval "ac_cv_func_$ac_func=no"
8199 rm -f conftest*
8202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8203 echo "$ac_t""yes" 1>&6
8204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8205 cat >> confdefs.h <<EOF
8206 #define $ac_tr_func 1
8209 else
8210 echo "$ac_t""no" 1>&6
8212 done
8215 esac
8218 case "$LIBS" in
8219 *-lsecurity*) for ac_func in bigcrypt
8221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_func" >&5
8223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8225 else
8226 cat > conftest.$ac_ext <<EOF
8227 #line 8228 "configure"
8228 #include "confdefs.h"
8229 /* System header to define __stub macros and hopefully few prototypes,
8230 which can conflict with char $ac_func(); below. */
8231 #include <assert.h>
8232 /* Override any gcc2 internal prototype to avoid an error. */
8233 /* We use char because int might match the return type of a gcc2
8234 builtin and then its argument prototype would still apply. */
8235 char $ac_func();
8237 int main() {
8239 /* The GNU C library defines this for functions which it implements
8240 to always fail with ENOSYS. Some functions are actually named
8241 something starting with __ and the normal name is an alias. */
8242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8243 choke me
8244 #else
8245 $ac_func();
8246 #endif
8248 ; return 0; }
8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8251 rm -rf conftest*
8252 eval "ac_cv_func_$ac_func=yes"
8253 else
8254 echo "configure: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 rm -rf conftest*
8257 eval "ac_cv_func_$ac_func=no"
8259 rm -f conftest*
8262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8263 echo "$ac_t""yes" 1>&6
8264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8265 cat >> confdefs.h <<EOF
8266 #define $ac_tr_func 1
8269 else
8270 echo "$ac_t""no" 1>&6
8272 done
8274 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8275 echo "configure:8276: checking for bigcrypt in -lsecurity" >&5
8276 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8278 echo $ac_n "(cached) $ac_c" 1>&6
8279 else
8280 ac_save_LIBS="$LIBS"
8281 LIBS="-lsecurity $LIBS"
8282 cat > conftest.$ac_ext <<EOF
8283 #line 8284 "configure"
8284 #include "confdefs.h"
8285 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */
8288 char bigcrypt();
8290 int main() {
8291 bigcrypt()
8292 ; return 0; }
8294 if { (eval echo configure:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8295 rm -rf conftest*
8296 eval "ac_cv_lib_$ac_lib_var=yes"
8297 else
8298 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 rm -rf conftest*
8301 eval "ac_cv_lib_$ac_lib_var=no"
8303 rm -f conftest*
8304 LIBS="$ac_save_LIBS"
8307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8308 echo "$ac_t""yes" 1>&6
8309 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8310 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8311 cat >> confdefs.h <<EOF
8312 #define $ac_tr_lib 1
8315 LIBS="-lsecurity $LIBS"
8317 else
8318 echo "$ac_t""no" 1>&6
8321 for ac_func in bigcrypt
8323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_func" >&5
8325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8327 else
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char $ac_func(); below. */
8333 #include <assert.h>
8334 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8337 char $ac_func();
8339 int main() {
8341 /* The GNU C library defines this for functions which it implements
8342 to always fail with ENOSYS. Some functions are actually named
8343 something starting with __ and the normal name is an alias. */
8344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8345 choke me
8346 #else
8347 $ac_func();
8348 #endif
8350 ; return 0; }
8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 rm -rf conftest*
8354 eval "ac_cv_func_$ac_func=yes"
8355 else
8356 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5
8358 rm -rf conftest*
8359 eval "ac_cv_func_$ac_func=no"
8361 rm -f conftest*
8364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8365 echo "$ac_t""yes" 1>&6
8366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8367 cat >> confdefs.h <<EOF
8368 #define $ac_tr_func 1
8371 else
8372 echo "$ac_t""no" 1>&6
8374 done
8377 esac
8379 case "$LIBS" in
8380 *-lsec*) for ac_func in bigcrypt
8382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8383 echo "configure:8384: checking for $ac_func" >&5
8384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8385 echo $ac_n "(cached) $ac_c" 1>&6
8386 else
8387 cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure"
8389 #include "confdefs.h"
8390 /* System header to define __stub macros and hopefully few prototypes,
8391 which can conflict with char $ac_func(); below. */
8392 #include <assert.h>
8393 /* Override any gcc2 internal prototype to avoid an error. */
8394 /* We use char because int might match the return type of a gcc2
8395 builtin and then its argument prototype would still apply. */
8396 char $ac_func();
8398 int main() {
8400 /* The GNU C library defines this for functions which it implements
8401 to always fail with ENOSYS. Some functions are actually named
8402 something starting with __ and the normal name is an alias. */
8403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8404 choke me
8405 #else
8406 $ac_func();
8407 #endif
8409 ; return 0; }
8411 if { (eval echo configure:8412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8412 rm -rf conftest*
8413 eval "ac_cv_func_$ac_func=yes"
8414 else
8415 echo "configure: failed program was:" >&5
8416 cat conftest.$ac_ext >&5
8417 rm -rf conftest*
8418 eval "ac_cv_func_$ac_func=no"
8420 rm -f conftest*
8423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8424 echo "$ac_t""yes" 1>&6
8425 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8426 cat >> confdefs.h <<EOF
8427 #define $ac_tr_func 1
8430 else
8431 echo "$ac_t""no" 1>&6
8433 done
8435 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8436 echo "configure:8437: checking for bigcrypt in -lsec" >&5
8437 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8438 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8439 echo $ac_n "(cached) $ac_c" 1>&6
8440 else
8441 ac_save_LIBS="$LIBS"
8442 LIBS="-lsec $LIBS"
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 /* Override any gcc2 internal prototype to avoid an error. */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char bigcrypt();
8451 int main() {
8452 bigcrypt()
8453 ; return 0; }
8455 if { (eval echo configure:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8456 rm -rf conftest*
8457 eval "ac_cv_lib_$ac_lib_var=yes"
8458 else
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8461 rm -rf conftest*
8462 eval "ac_cv_lib_$ac_lib_var=no"
8464 rm -f conftest*
8465 LIBS="$ac_save_LIBS"
8468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8469 echo "$ac_t""yes" 1>&6
8470 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8471 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8472 cat >> confdefs.h <<EOF
8473 #define $ac_tr_lib 1
8476 LIBS="-lsec $LIBS"
8478 else
8479 echo "$ac_t""no" 1>&6
8482 for ac_func in bigcrypt
8484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8485 echo "configure:8486: checking for $ac_func" >&5
8486 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8487 echo $ac_n "(cached) $ac_c" 1>&6
8488 else
8489 cat > conftest.$ac_ext <<EOF
8490 #line 8491 "configure"
8491 #include "confdefs.h"
8492 /* System header to define __stub macros and hopefully few prototypes,
8493 which can conflict with char $ac_func(); below. */
8494 #include <assert.h>
8495 /* Override any gcc2 internal prototype to avoid an error. */
8496 /* We use char because int might match the return type of a gcc2
8497 builtin and then its argument prototype would still apply. */
8498 char $ac_func();
8500 int main() {
8502 /* The GNU C library defines this for functions which it implements
8503 to always fail with ENOSYS. Some functions are actually named
8504 something starting with __ and the normal name is an alias. */
8505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8506 choke me
8507 #else
8508 $ac_func();
8509 #endif
8511 ; return 0; }
8513 if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8514 rm -rf conftest*
8515 eval "ac_cv_func_$ac_func=yes"
8516 else
8517 echo "configure: failed program was:" >&5
8518 cat conftest.$ac_ext >&5
8519 rm -rf conftest*
8520 eval "ac_cv_func_$ac_func=no"
8522 rm -f conftest*
8525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8526 echo "$ac_t""yes" 1>&6
8527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8528 cat >> confdefs.h <<EOF
8529 #define $ac_tr_func 1
8532 else
8533 echo "$ac_t""no" 1>&6
8535 done
8538 esac
8541 case "$LIBS" in
8542 *-lsecurity*) for ac_func in getprpwnam
8544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8545 echo "configure:8546: checking for $ac_func" >&5
8546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
8548 else
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 /* System header to define __stub macros and hopefully few prototypes,
8553 which can conflict with char $ac_func(); below. */
8554 #include <assert.h>
8555 /* Override any gcc2 internal prototype to avoid an error. */
8556 /* We use char because int might match the return type of a gcc2
8557 builtin and then its argument prototype would still apply. */
8558 char $ac_func();
8560 int main() {
8562 /* The GNU C library defines this for functions which it implements
8563 to always fail with ENOSYS. Some functions are actually named
8564 something starting with __ and the normal name is an alias. */
8565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8566 choke me
8567 #else
8568 $ac_func();
8569 #endif
8571 ; return 0; }
8573 if { (eval echo configure:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8574 rm -rf conftest*
8575 eval "ac_cv_func_$ac_func=yes"
8576 else
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8579 rm -rf conftest*
8580 eval "ac_cv_func_$ac_func=no"
8582 rm -f conftest*
8585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8588 cat >> confdefs.h <<EOF
8589 #define $ac_tr_func 1
8592 else
8593 echo "$ac_t""no" 1>&6
8595 done
8597 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8598 echo "configure:8599: checking for getprpwnam in -lsecurity" >&5
8599 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8602 else
8603 ac_save_LIBS="$LIBS"
8604 LIBS="-lsecurity $LIBS"
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611 char getprpwnam();
8613 int main() {
8614 getprpwnam()
8615 ; return 0; }
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8618 rm -rf conftest*
8619 eval "ac_cv_lib_$ac_lib_var=yes"
8620 else
8621 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 rm -rf conftest*
8624 eval "ac_cv_lib_$ac_lib_var=no"
8626 rm -f conftest*
8627 LIBS="$ac_save_LIBS"
8630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8631 echo "$ac_t""yes" 1>&6
8632 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8633 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8634 cat >> confdefs.h <<EOF
8635 #define $ac_tr_lib 1
8638 LIBS="-lsecurity $LIBS"
8640 else
8641 echo "$ac_t""no" 1>&6
8644 for ac_func in getprpwnam
8646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8647 echo "configure:8648: checking for $ac_func" >&5
8648 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8649 echo $ac_n "(cached) $ac_c" 1>&6
8650 else
8651 cat > conftest.$ac_ext <<EOF
8652 #line 8653 "configure"
8653 #include "confdefs.h"
8654 /* System header to define __stub macros and hopefully few prototypes,
8655 which can conflict with char $ac_func(); below. */
8656 #include <assert.h>
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char $ac_func();
8662 int main() {
8664 /* The GNU C library defines this for functions which it implements
8665 to always fail with ENOSYS. Some functions are actually named
8666 something starting with __ and the normal name is an alias. */
8667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8668 choke me
8669 #else
8670 $ac_func();
8671 #endif
8673 ; return 0; }
8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8676 rm -rf conftest*
8677 eval "ac_cv_func_$ac_func=yes"
8678 else
8679 echo "configure: failed program was:" >&5
8680 cat conftest.$ac_ext >&5
8681 rm -rf conftest*
8682 eval "ac_cv_func_$ac_func=no"
8684 rm -f conftest*
8687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8688 echo "$ac_t""yes" 1>&6
8689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8690 cat >> confdefs.h <<EOF
8691 #define $ac_tr_func 1
8694 else
8695 echo "$ac_t""no" 1>&6
8697 done
8700 esac
8702 case "$LIBS" in
8703 *-lsec*) for ac_func in getprpwnam
8705 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8706 echo "configure:8707: checking for $ac_func" >&5
8707 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8709 else
8710 cat > conftest.$ac_ext <<EOF
8711 #line 8712 "configure"
8712 #include "confdefs.h"
8713 /* System header to define __stub macros and hopefully few prototypes,
8714 which can conflict with char $ac_func(); below. */
8715 #include <assert.h>
8716 /* Override any gcc2 internal prototype to avoid an error. */
8717 /* We use char because int might match the return type of a gcc2
8718 builtin and then its argument prototype would still apply. */
8719 char $ac_func();
8721 int main() {
8723 /* The GNU C library defines this for functions which it implements
8724 to always fail with ENOSYS. Some functions are actually named
8725 something starting with __ and the normal name is an alias. */
8726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8727 choke me
8728 #else
8729 $ac_func();
8730 #endif
8732 ; return 0; }
8734 if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8735 rm -rf conftest*
8736 eval "ac_cv_func_$ac_func=yes"
8737 else
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 rm -rf conftest*
8741 eval "ac_cv_func_$ac_func=no"
8743 rm -f conftest*
8746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8747 echo "$ac_t""yes" 1>&6
8748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8749 cat >> confdefs.h <<EOF
8750 #define $ac_tr_func 1
8753 else
8754 echo "$ac_t""no" 1>&6
8756 done
8758 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8759 echo "configure:8760: checking for getprpwnam in -lsec" >&5
8760 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8763 else
8764 ac_save_LIBS="$LIBS"
8765 LIBS="-lsec $LIBS"
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 /* Override any gcc2 internal prototype to avoid an error. */
8770 /* We use char because int might match the return type of a gcc2
8771 builtin and then its argument prototype would still apply. */
8772 char getprpwnam();
8774 int main() {
8775 getprpwnam()
8776 ; return 0; }
8778 if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8779 rm -rf conftest*
8780 eval "ac_cv_lib_$ac_lib_var=yes"
8781 else
8782 echo "configure: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 rm -rf conftest*
8785 eval "ac_cv_lib_$ac_lib_var=no"
8787 rm -f conftest*
8788 LIBS="$ac_save_LIBS"
8791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8792 echo "$ac_t""yes" 1>&6
8793 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8794 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8795 cat >> confdefs.h <<EOF
8796 #define $ac_tr_lib 1
8799 LIBS="-lsec $LIBS"
8801 else
8802 echo "$ac_t""no" 1>&6
8805 for ac_func in getprpwnam
8807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8808 echo "configure:8809: checking for $ac_func" >&5
8809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8810 echo $ac_n "(cached) $ac_c" 1>&6
8811 else
8812 cat > conftest.$ac_ext <<EOF
8813 #line 8814 "configure"
8814 #include "confdefs.h"
8815 /* System header to define __stub macros and hopefully few prototypes,
8816 which can conflict with char $ac_func(); below. */
8817 #include <assert.h>
8818 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8821 char $ac_func();
8823 int main() {
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8829 choke me
8830 #else
8831 $ac_func();
8832 #endif
8834 ; return 0; }
8836 if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8837 rm -rf conftest*
8838 eval "ac_cv_func_$ac_func=yes"
8839 else
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8842 rm -rf conftest*
8843 eval "ac_cv_func_$ac_func=no"
8845 rm -f conftest*
8848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8849 echo "$ac_t""yes" 1>&6
8850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8851 cat >> confdefs.h <<EOF
8852 #define $ac_tr_func 1
8855 else
8856 echo "$ac_t""no" 1>&6
8858 done
8861 esac
8864 # this bit needs to be modified for each OS that is suported by
8865 # smbwrapper. You need to specify how to created a shared library and
8866 # how to compile C code to produce PIC object files
8868 # these are the defaults, good for lots of systems
8869 HOST_OS="$host_os"
8870 LDSHFLAGS="-shared"
8871 SHLD="\${CC}"
8872 PICFLAG=""
8873 PICSUFFIX="po"
8874 POBAD_CC="#"
8875 SHLIBEXT="so"
8876 # Assume non-shared by default and override below
8877 BLDSHARED="false"
8878 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8879 echo "configure:8880: checking ability to build shared libraries" >&5
8881 # and these are for particular systems
8882 case "$host_os" in
8883 *linux*) cat >> confdefs.h <<\EOF
8884 #define LINUX 1
8887 BLDSHARED="true"
8888 LDSHFLAGS="-shared"
8889 DYNEXP="-Wl,--export-dynamic"
8890 PICFLAG="-fPIC"
8891 cat >> confdefs.h <<\EOF
8892 #define STAT_ST_BLOCKSIZE 512
8896 *solaris*)
8897 cat >> confdefs.h <<\EOF
8898 #define SUNOS5 1
8901 BLDSHARED="true"
8902 LDSHFLAGS="-h \$@ -G"
8903 if test "${GCC}" = "yes"; then
8904 PICFLAG="-fPIC"
8905 else
8906 PICFLAG="-KPIC"
8907 ## ${CFLAGS} added for building 64-bit shared
8908 ## libs using Sun's Compiler
8909 LDSHFLAGS="-G \${CFLAGS}"
8910 POBAD_CC=""
8911 PICSUFFIX="po.o"
8913 cat >> confdefs.h <<\EOF
8914 #define STAT_ST_BLOCKSIZE 512
8918 *sunos*) cat >> confdefs.h <<\EOF
8919 #define SUNOS4 1
8922 BLDSHARED="true"
8923 LDSHFLAGS="-Wl,-h,\$@ -G"
8924 PICFLAG="-KPIC" # Is this correct for SunOS
8926 *bsd*) BLDSHARED="true"
8927 LDSHFLAGS="-Wl,-soname,\$@ -shared"
8928 DYNEXP="-Wl,-Bdynamic"
8929 PICFLAG="-fPIC"
8930 cat >> confdefs.h <<\EOF
8931 #define STAT_ST_BLOCKSIZE 512
8935 *irix*) cat >> confdefs.h <<\EOF
8936 #define IRIX 1
8939 case "$host_os" in
8940 *irix6*) cat >> confdefs.h <<\EOF
8941 #define IRIX6 1
8945 esac
8946 ATTEMPT_WRAP32_BUILD=yes
8947 BLDSHARED="true"
8948 LDSHFLAGS="-soname \$@ -shared"
8949 SHLD="\${LD}"
8950 if test "${GCC}" = "yes"; then
8951 PICFLAG="-fPIC"
8952 else
8953 PICFLAG="-KPIC"
8955 cat >> confdefs.h <<\EOF
8956 #define STAT_ST_BLOCKSIZE 512
8960 *aix*) cat >> confdefs.h <<\EOF
8961 #define AIX 1
8964 BLDSHARED="true"
8965 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8966 PICFLAG="-O2 -qmaxmem=6000"
8967 cat >> confdefs.h <<\EOF
8968 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8972 *hpux*) cat >> confdefs.h <<\EOF
8973 #define HPUX 1
8976 SHLIBEXT="sl"
8977 # Use special PIC flags for the native HP-UX compiler.
8978 if test $ac_cv_prog_cc_Ae = yes; then
8979 SHLD="/usr/bin/ld"
8980 BLDSHARED="true"
8981 LDSHFLAGS="-B symbolic -b -z +h \$@"
8982 PICFLAG="+z"
8984 DYNEXP="-Wl,-E"
8985 cat >> confdefs.h <<\EOF
8986 #define STAT_ST_BLOCKSIZE 8192
8990 *qnx*) cat >> confdefs.h <<\EOF
8991 #define QNX 1
8994 *osf*) cat >> confdefs.h <<\EOF
8995 #define OSF1 1
8998 BLDSHARED="true"
8999 LDSHFLAGS="-Wl,-soname,\$@ -shared"
9000 PICFLAG="-fPIC"
9002 *sco*)
9003 cat >> confdefs.h <<\EOF
9004 #define SCO 1
9008 *unixware*) cat >> confdefs.h <<\EOF
9009 #define UNIXWARE 1
9012 BLDSHARED="true"
9013 LDSHFLAGS="-Wl,-soname,\$@ -shared"
9014 PICFLAG="-KPIC"
9016 *next2*) cat >> confdefs.h <<\EOF
9017 #define NEXT2 1
9020 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
9021 set dummy groff; ac_word=$2
9022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9023 echo "configure:9024: checking for $ac_word" >&5
9024 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026 else
9027 if test -n "$ROFF"; then
9028 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
9029 else
9030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9031 ac_dummy="$PATH"
9032 for ac_dir in $ac_dummy; do
9033 test -z "$ac_dir" && ac_dir=.
9034 if test -f $ac_dir/$ac_word; then
9035 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
9036 break
9038 done
9039 IFS="$ac_save_ifs"
9042 ROFF="$ac_cv_prog_ROFF"
9043 if test -n "$ROFF"; then
9044 echo "$ac_t""$ROFF" 1>&6
9045 else
9046 echo "$ac_t""no" 1>&6
9049 *sysv4*)
9050 case "$host" in
9051 *-univel-*)
9052 if test "$GCC" != yes ; then
9053 cat >> confdefs.h <<\EOF
9054 #define HAVE_MEMSET 1
9058 LDSHFLAGS="-G"
9059 DYNEXP="-Bexport"
9061 *mips-sni-sysv4*)
9062 cat >> confdefs.h <<\EOF
9063 #define RELIANTUNIX 1
9067 esac
9070 *sysv5*)
9071 if test "$GCC" != yes ; then
9072 cat >> confdefs.h <<\EOF
9073 #define HAVE_MEMSET 1
9077 LDSHFLAGS="-G"
9079 esac
9081 echo "$ac_t""$BLDSHARED" 1>&6
9082 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
9083 echo "configure:9084: checking linker flags for shared libraries" >&5
9084 echo "$ac_t""$LDSHFLAGS" 1>&6
9085 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
9086 echo "configure:9087: checking compiler flags for position-independent code" >&5
9087 echo "$ac_t""$PICFLAGS" 1>&6
9089 #######################################################
9090 # test whether building a shared library actually works
9091 if test $BLDSHARED = true; then
9092 echo $ac_n "checking whether building shared libraries actually works""... $ac_c" 1>&6
9093 echo "configure:9094: checking whether building shared libraries actually works" >&5
9094 if eval "test \"`echo '$''{'ac_cv_shlib_works'+set}'`\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9096 else
9098 ac_cv_shlib_works=no
9099 # try building a trivial shared library
9100 $CC $CPPFLAGS $CFLAGS $PICFLAG -c -o shlib.po ${srcdir-.}/tests/shlib.c &&
9101 $CC $CPPFLAGS $CFLAGS $LDSHFLAGS -o shlib.so shlib.po &&
9102 ac_cv_shlib_works=yes
9103 rm -f shlib.so shlib.po
9107 echo "$ac_t""$ac_cv_shlib_works" 1>&6
9108 if test $ac_cv_shlib_works = no; then
9109 BLDSHARED=false
9114 # this updates our target list if we can build shared libs
9115 if test $BLDSHARED = true; then
9116 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
9117 else
9118 LIBSMBCLIENT_SHARED=
9121 ################
9123 echo $ac_n "checking for long long""... $ac_c" 1>&6
9124 echo "configure:9125: checking for long long" >&5
9125 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
9126 echo $ac_n "(cached) $ac_c" 1>&6
9127 else
9129 if test "$cross_compiling" = yes; then
9130 samba_cv_have_longlong=cross
9131 else
9132 cat > conftest.$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9135 #include <stdio.h>
9136 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
9138 if { (eval echo configure:9139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9139 then
9140 samba_cv_have_longlong=yes
9141 else
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 rm -fr conftest*
9145 samba_cv_have_longlong=no
9147 rm -fr conftest*
9152 echo "$ac_t""$samba_cv_have_longlong" 1>&6
9153 if test x"$samba_cv_have_longlong" = x"yes"; then
9154 cat >> confdefs.h <<\EOF
9155 #define HAVE_LONGLONG 1
9161 # Check if the compiler supports the LL prefix on long long integers.
9162 # AIX needs this.
9164 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9165 echo "configure:9166: checking for LL suffix on long long integers" >&5
9166 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9167 echo $ac_n "(cached) $ac_c" 1>&6
9168 else
9170 cat > conftest.$ac_ext <<EOF
9171 #line 9172 "configure"
9172 #include "confdefs.h"
9173 #include <stdio.h>
9174 int main() {
9175 long long i = 0x8000000000LL
9176 ; return 0; }
9178 if { (eval echo configure:9179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9179 rm -rf conftest*
9180 samba_cv_compiler_supports_ll=yes
9181 else
9182 echo "configure: failed program was:" >&5
9183 cat conftest.$ac_ext >&5
9184 rm -rf conftest*
9185 samba_cv_compiler_supports_ll=no
9187 rm -f conftest*
9190 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9191 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9192 cat >> confdefs.h <<\EOF
9193 #define COMPILER_SUPPORTS_LL 1
9199 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9200 echo "configure:9201: checking for 64 bit off_t" >&5
9201 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9202 echo $ac_n "(cached) $ac_c" 1>&6
9203 else
9205 if test "$cross_compiling" = yes; then
9206 samba_cv_SIZEOF_OFF_T=cross
9207 else
9208 cat > conftest.$ac_ext <<EOF
9209 #line 9210 "configure"
9210 #include "confdefs.h"
9211 #include <stdio.h>
9212 #include <sys/stat.h>
9213 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9215 if { (eval echo configure:9216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9216 then
9217 samba_cv_SIZEOF_OFF_T=yes
9218 else
9219 echo "configure: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9221 rm -fr conftest*
9222 samba_cv_SIZEOF_OFF_T=no
9224 rm -fr conftest*
9229 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9230 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9231 cat >> confdefs.h <<\EOF
9232 #define SIZEOF_OFF_T 8
9237 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9238 echo "configure:9239: checking for off64_t" >&5
9239 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9240 echo $ac_n "(cached) $ac_c" 1>&6
9241 else
9243 if test "$cross_compiling" = yes; then
9244 samba_cv_HAVE_OFF64_T=cross
9245 else
9246 cat > conftest.$ac_ext <<EOF
9247 #line 9248 "configure"
9248 #include "confdefs.h"
9250 #if defined(HAVE_UNISTD_H)
9251 #include <unistd.h>
9252 #endif
9253 #include <stdio.h>
9254 #include <sys/stat.h>
9255 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9257 if { (eval echo configure:9258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9258 then
9259 samba_cv_HAVE_OFF64_T=yes
9260 else
9261 echo "configure: failed program was:" >&5
9262 cat conftest.$ac_ext >&5
9263 rm -fr conftest*
9264 samba_cv_HAVE_OFF64_T=no
9266 rm -fr conftest*
9271 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9272 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9273 cat >> confdefs.h <<\EOF
9274 #define HAVE_OFF64_T 1
9279 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9280 echo "configure:9281: checking for 64 bit ino_t" >&5
9281 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9282 echo $ac_n "(cached) $ac_c" 1>&6
9283 else
9285 if test "$cross_compiling" = yes; then
9286 samba_cv_SIZEOF_INO_T=cross
9287 else
9288 cat > conftest.$ac_ext <<EOF
9289 #line 9290 "configure"
9290 #include "confdefs.h"
9291 #include <stdio.h>
9292 #include <sys/stat.h>
9293 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9296 then
9297 samba_cv_SIZEOF_INO_T=yes
9298 else
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 rm -fr conftest*
9302 samba_cv_SIZEOF_INO_T=no
9304 rm -fr conftest*
9309 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9310 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9311 cat >> confdefs.h <<\EOF
9312 #define SIZEOF_INO_T 8
9317 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9318 echo "configure:9319: checking for ino64_t" >&5
9319 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9321 else
9323 if test "$cross_compiling" = yes; then
9324 samba_cv_HAVE_INO64_T=cross
9325 else
9326 cat > conftest.$ac_ext <<EOF
9327 #line 9328 "configure"
9328 #include "confdefs.h"
9330 #if defined(HAVE_UNISTD_H)
9331 #include <unistd.h>
9332 #endif
9333 #include <stdio.h>
9334 #include <sys/stat.h>
9335 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9337 if { (eval echo configure:9338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9338 then
9339 samba_cv_HAVE_INO64_T=yes
9340 else
9341 echo "configure: failed program was:" >&5
9342 cat conftest.$ac_ext >&5
9343 rm -fr conftest*
9344 samba_cv_HAVE_INO64_T=no
9346 rm -fr conftest*
9351 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9352 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9353 cat >> confdefs.h <<\EOF
9354 #define HAVE_INO64_T 1
9359 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9360 echo "configure:9361: checking for dev64_t" >&5
9361 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9363 else
9365 if test "$cross_compiling" = yes; then
9366 samba_cv_HAVE_DEV64_T=cross
9367 else
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9372 #if defined(HAVE_UNISTD_H)
9373 #include <unistd.h>
9374 #endif
9375 #include <stdio.h>
9376 #include <sys/stat.h>
9377 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9379 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9380 then
9381 samba_cv_HAVE_DEV64_T=yes
9382 else
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 rm -fr conftest*
9386 samba_cv_HAVE_DEV64_T=no
9388 rm -fr conftest*
9393 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9394 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9395 cat >> confdefs.h <<\EOF
9396 #define HAVE_DEV64_T 1
9401 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9402 echo "configure:9403: checking for struct dirent64" >&5
9403 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9405 else
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9411 #if defined(HAVE_UNISTD_H)
9412 #include <unistd.h>
9413 #endif
9414 #include <sys/types.h>
9415 #include <dirent.h>
9416 int main() {
9417 struct dirent64 de;
9418 ; return 0; }
9420 if { (eval echo configure:9421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9421 rm -rf conftest*
9422 samba_cv_HAVE_STRUCT_DIRENT64=yes
9423 else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -rf conftest*
9427 samba_cv_HAVE_STRUCT_DIRENT64=no
9429 rm -f conftest*
9432 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9433 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes"; then
9434 cat >> confdefs.h <<\EOF
9435 #define HAVE_STRUCT_DIRENT64 1
9440 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9441 echo "configure:9442: checking for major macro" >&5
9442 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9444 else
9446 if test "$cross_compiling" = yes; then
9447 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9448 else
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9453 #if defined(HAVE_UNISTD_H)
9454 #include <unistd.h>
9455 #endif
9456 #include <sys/types.h>
9457 main() { dev_t dev; int i = major(dev); return 0; }
9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9460 then
9461 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9462 else
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -fr conftest*
9466 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9468 rm -fr conftest*
9473 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9474 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9475 cat >> confdefs.h <<\EOF
9476 #define HAVE_DEVICE_MAJOR_FN 1
9481 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9482 echo "configure:9483: checking for minor macro" >&5
9483 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9484 echo $ac_n "(cached) $ac_c" 1>&6
9485 else
9487 if test "$cross_compiling" = yes; then
9488 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9489 else
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9494 #if defined(HAVE_UNISTD_H)
9495 #include <unistd.h>
9496 #endif
9497 #include <sys/types.h>
9498 main() { dev_t dev; int i = minor(dev); return 0; }
9500 if { (eval echo configure:9501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9501 then
9502 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9503 else
9504 echo "configure: failed program was:" >&5
9505 cat conftest.$ac_ext >&5
9506 rm -fr conftest*
9507 samba_cv_HAVE_DEVICE_MINOR_FN=no
9509 rm -fr conftest*
9514 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9515 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9516 cat >> confdefs.h <<\EOF
9517 #define HAVE_DEVICE_MINOR_FN 1
9522 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9523 echo "configure:9524: checking for unsigned char" >&5
9524 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9526 else
9528 if test "$cross_compiling" = yes; then
9529 samba_cv_HAVE_UNSIGNED_CHAR=cross
9530 else
9531 cat > conftest.$ac_ext <<EOF
9532 #line 9533 "configure"
9533 #include "confdefs.h"
9534 #include <stdio.h>
9535 main() { char c; c=250; exit((c > 0)?0:1); }
9537 if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9538 then
9539 samba_cv_HAVE_UNSIGNED_CHAR=yes
9540 else
9541 echo "configure: failed program was:" >&5
9542 cat conftest.$ac_ext >&5
9543 rm -fr conftest*
9544 samba_cv_HAVE_UNSIGNED_CHAR=no
9546 rm -fr conftest*
9551 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9552 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9553 cat >> confdefs.h <<\EOF
9554 #define HAVE_UNSIGNED_CHAR 1
9559 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9560 echo "configure:9561: checking for sin_len in sock" >&5
9561 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9562 echo $ac_n "(cached) $ac_c" 1>&6
9563 else
9565 cat > conftest.$ac_ext <<EOF
9566 #line 9567 "configure"
9567 #include "confdefs.h"
9568 #include <sys/types.h>
9569 #include <sys/socket.h>
9570 #include <netinet/in.h>
9571 int main() {
9572 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9573 ; return 0; }
9575 if { (eval echo configure:9576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9576 rm -rf conftest*
9577 samba_cv_HAVE_SOCK_SIN_LEN=yes
9578 else
9579 echo "configure: failed program was:" >&5
9580 cat conftest.$ac_ext >&5
9581 rm -rf conftest*
9582 samba_cv_HAVE_SOCK_SIN_LEN=no
9584 rm -f conftest*
9587 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9588 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9589 cat >> confdefs.h <<\EOF
9590 #define HAVE_SOCK_SIN_LEN 1
9595 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9596 echo "configure:9597: checking whether seekdir returns void" >&5
9597 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9598 echo $ac_n "(cached) $ac_c" 1>&6
9599 else
9601 cat > conftest.$ac_ext <<EOF
9602 #line 9603 "configure"
9603 #include "confdefs.h"
9604 #include <sys/types.h>
9605 #include <dirent.h>
9606 void seekdir(DIR *d, long loc) { return; }
9607 int main() {
9608 return 0;
9609 ; return 0; }
9611 if { (eval echo configure:9612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9612 rm -rf conftest*
9613 samba_cv_SEEKDIR_RETURNS_VOID=yes
9614 else
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 rm -rf conftest*
9618 samba_cv_SEEKDIR_RETURNS_VOID=no
9620 rm -f conftest*
9623 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9624 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9625 cat >> confdefs.h <<\EOF
9626 #define SEEKDIR_RETURNS_VOID 1
9631 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9632 echo "configure:9633: checking for __FILE__ macro" >&5
9633 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9635 else
9637 cat > conftest.$ac_ext <<EOF
9638 #line 9639 "configure"
9639 #include "confdefs.h"
9640 #include <stdio.h>
9641 int main() {
9642 printf("%s\n", __FILE__);
9643 ; return 0; }
9645 if { (eval echo configure:9646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9646 rm -rf conftest*
9647 samba_cv_HAVE_FILE_MACRO=yes
9648 else
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 samba_cv_HAVE_FILE_MACRO=no
9654 rm -f conftest*
9657 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9658 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9659 cat >> confdefs.h <<\EOF
9660 #define HAVE_FILE_MACRO 1
9665 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9666 echo "configure:9667: checking for __FUNCTION__ macro" >&5
9667 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669 else
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9674 #include <stdio.h>
9675 int main() {
9676 printf("%s\n", __FUNCTION__);
9677 ; return 0; }
9679 if { (eval echo configure:9680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9680 rm -rf conftest*
9681 samba_cv_HAVE_FUNCTION_MACRO=yes
9682 else
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9685 rm -rf conftest*
9686 samba_cv_HAVE_FUNCTION_MACRO=no
9688 rm -f conftest*
9691 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9692 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9693 cat >> confdefs.h <<\EOF
9694 #define HAVE_FUNCTION_MACRO 1
9699 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9700 echo "configure:9701: checking if gettimeofday takes tz argument" >&5
9701 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9703 else
9705 if test "$cross_compiling" = yes; then
9706 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9707 else
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9712 #include <sys/time.h>
9713 #include <unistd.h>
9714 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9716 if { (eval echo configure:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9717 then
9718 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9719 else
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 rm -fr conftest*
9723 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9725 rm -fr conftest*
9730 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9731 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9732 cat >> confdefs.h <<\EOF
9733 #define HAVE_GETTIMEOFDAY_TZ 1
9738 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9739 echo "configure:9740: checking for __va_copy" >&5
9740 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9741 echo $ac_n "(cached) $ac_c" 1>&6
9742 else
9744 cat > conftest.$ac_ext <<EOF
9745 #line 9746 "configure"
9746 #include "confdefs.h"
9747 #include <stdarg.h>
9748 va_list ap1,ap2;
9749 int main() {
9750 __va_copy(ap1,ap2);
9751 ; return 0; }
9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9754 rm -rf conftest*
9755 samba_cv_HAVE_VA_COPY=yes
9756 else
9757 echo "configure: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 rm -rf conftest*
9760 samba_cv_HAVE_VA_COPY=no
9762 rm -f conftest*
9765 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9766 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9767 cat >> confdefs.h <<\EOF
9768 #define HAVE_VA_COPY 1
9773 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9774 echo "configure:9775: checking for C99 vsnprintf" >&5
9775 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9776 echo $ac_n "(cached) $ac_c" 1>&6
9777 else
9779 if test "$cross_compiling" = yes; then
9780 samba_cv_HAVE_C99_VSNPRINTF=cross
9781 else
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9786 #include <sys/types.h>
9787 #include <stdarg.h>
9788 void foo(const char *format, ...) {
9789 va_list ap;
9790 int len;
9791 char buf[5];
9793 va_start(ap, format);
9794 len = vsnprintf(buf, 0, format, ap);
9795 va_end(ap);
9796 if (len != 5) exit(1);
9798 va_start(ap, format);
9799 len = vsnprintf(0, 0, format, ap);
9800 va_end(ap);
9801 if (len != 5) exit(1);
9803 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9805 exit(0);
9807 main() { foo("hello"); }
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9811 then
9812 samba_cv_HAVE_C99_VSNPRINTF=yes
9813 else
9814 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5
9816 rm -fr conftest*
9817 samba_cv_HAVE_C99_VSNPRINTF=no
9819 rm -fr conftest*
9824 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9825 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9826 cat >> confdefs.h <<\EOF
9827 #define HAVE_C99_VSNPRINTF 1
9832 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9833 echo "configure:9834: checking for broken readdir" >&5
9834 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9835 echo $ac_n "(cached) $ac_c" 1>&6
9836 else
9838 if test "$cross_compiling" = yes; then
9839 samba_cv_HAVE_BROKEN_READDIR=cross
9840 else
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 #include <sys/types.h>
9845 #include <dirent.h>
9846 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9847 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9848 di->d_name[0] == 0) exit(0); exit(1);}
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9851 then
9852 samba_cv_HAVE_BROKEN_READDIR=yes
9853 else
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 rm -fr conftest*
9857 samba_cv_HAVE_BROKEN_READDIR=no
9859 rm -fr conftest*
9864 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9865 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9866 cat >> confdefs.h <<\EOF
9867 #define HAVE_BROKEN_READDIR 1
9872 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9873 echo "configure:9874: checking for utimbuf" >&5
9874 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9875 echo $ac_n "(cached) $ac_c" 1>&6
9876 else
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9881 #include <sys/types.h>
9882 #include <utime.h>
9883 int main() {
9884 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9885 ; return 0; }
9887 if { (eval echo configure:9888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9888 rm -rf conftest*
9889 samba_cv_HAVE_UTIMBUF=yes
9890 else
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9893 rm -rf conftest*
9894 samba_cv_HAVE_UTIMBUF=no
9896 rm -f conftest*
9899 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9900 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9901 cat >> confdefs.h <<\EOF
9902 #define HAVE_UTIMBUF 1
9908 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9911 echo "configure:9912: checking for $ac_func" >&5
9912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9914 else
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char $ac_func(); below. */
9920 #include <assert.h>
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9924 char $ac_func();
9926 int main() {
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9932 choke me
9933 #else
9934 $ac_func();
9935 #endif
9937 ; return 0; }
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 rm -rf conftest*
9941 eval "ac_cv_func_$ac_func=yes"
9942 else
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 rm -rf conftest*
9946 eval "ac_cv_func_$ac_func=no"
9948 rm -f conftest*
9951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9952 echo "$ac_t""yes" 1>&6
9953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9954 cat >> confdefs.h <<EOF
9955 #define $ac_tr_func 1
9958 else
9959 echo "$ac_t""no" 1>&6
9961 done
9964 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9965 echo "configure:9966: checking for ut_name in utmp" >&5
9966 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9967 echo $ac_n "(cached) $ac_c" 1>&6
9968 else
9970 cat > conftest.$ac_ext <<EOF
9971 #line 9972 "configure"
9972 #include "confdefs.h"
9973 #include <sys/types.h>
9974 #include <utmp.h>
9975 int main() {
9976 struct utmp ut; ut.ut_name[0] = 'a';
9977 ; return 0; }
9979 if { (eval echo configure:9980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9980 rm -rf conftest*
9981 samba_cv_HAVE_UT_UT_NAME=yes
9982 else
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 rm -rf conftest*
9986 samba_cv_HAVE_UT_UT_NAME=no
9988 rm -f conftest*
9991 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9992 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9993 cat >> confdefs.h <<\EOF
9994 #define HAVE_UT_UT_NAME 1
9999 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
10000 echo "configure:10001: checking for ut_user in utmp" >&5
10001 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
10002 echo $ac_n "(cached) $ac_c" 1>&6
10003 else
10005 cat > conftest.$ac_ext <<EOF
10006 #line 10007 "configure"
10007 #include "confdefs.h"
10008 #include <sys/types.h>
10009 #include <utmp.h>
10010 int main() {
10011 struct utmp ut; ut.ut_user[0] = 'a';
10012 ; return 0; }
10014 if { (eval echo configure:10015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10015 rm -rf conftest*
10016 samba_cv_HAVE_UT_UT_USER=yes
10017 else
10018 echo "configure: failed program was:" >&5
10019 cat conftest.$ac_ext >&5
10020 rm -rf conftest*
10021 samba_cv_HAVE_UT_UT_USER=no
10023 rm -f conftest*
10026 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
10027 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
10028 cat >> confdefs.h <<\EOF
10029 #define HAVE_UT_UT_USER 1
10034 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
10035 echo "configure:10036: checking for ut_id in utmp" >&5
10036 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
10037 echo $ac_n "(cached) $ac_c" 1>&6
10038 else
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043 #include <sys/types.h>
10044 #include <utmp.h>
10045 int main() {
10046 struct utmp ut; ut.ut_id[0] = 'a';
10047 ; return 0; }
10049 if { (eval echo configure:10050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10050 rm -rf conftest*
10051 samba_cv_HAVE_UT_UT_ID=yes
10052 else
10053 echo "configure: failed program was:" >&5
10054 cat conftest.$ac_ext >&5
10055 rm -rf conftest*
10056 samba_cv_HAVE_UT_UT_ID=no
10058 rm -f conftest*
10061 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
10062 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
10063 cat >> confdefs.h <<\EOF
10064 #define HAVE_UT_UT_ID 1
10069 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
10070 echo "configure:10071: checking for ut_host in utmp" >&5
10071 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10073 else
10075 cat > conftest.$ac_ext <<EOF
10076 #line 10077 "configure"
10077 #include "confdefs.h"
10078 #include <sys/types.h>
10079 #include <utmp.h>
10080 int main() {
10081 struct utmp ut; ut.ut_host[0] = 'a';
10082 ; return 0; }
10084 if { (eval echo configure:10085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10085 rm -rf conftest*
10086 samba_cv_HAVE_UT_UT_HOST=yes
10087 else
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 samba_cv_HAVE_UT_UT_HOST=no
10093 rm -f conftest*
10096 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
10097 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
10098 cat >> confdefs.h <<\EOF
10099 #define HAVE_UT_UT_HOST 1
10104 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
10105 echo "configure:10106: checking for ut_time in utmp" >&5
10106 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
10107 echo $ac_n "(cached) $ac_c" 1>&6
10108 else
10110 cat > conftest.$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 #include <sys/types.h>
10114 #include <utmp.h>
10115 int main() {
10116 struct utmp ut; time_t t; ut.ut_time = t;
10117 ; return 0; }
10119 if { (eval echo configure:10120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10120 rm -rf conftest*
10121 samba_cv_HAVE_UT_UT_TIME=yes
10122 else
10123 echo "configure: failed program was:" >&5
10124 cat conftest.$ac_ext >&5
10125 rm -rf conftest*
10126 samba_cv_HAVE_UT_UT_TIME=no
10128 rm -f conftest*
10131 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10132 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10133 cat >> confdefs.h <<\EOF
10134 #define HAVE_UT_UT_TIME 1
10139 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10140 echo "configure:10141: checking for ut_tv in utmp" >&5
10141 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10142 echo $ac_n "(cached) $ac_c" 1>&6
10143 else
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10147 #include "confdefs.h"
10148 #include <sys/types.h>
10149 #include <utmp.h>
10150 int main() {
10151 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10152 ; return 0; }
10154 if { (eval echo configure:10155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10155 rm -rf conftest*
10156 samba_cv_HAVE_UT_UT_TV=yes
10157 else
10158 echo "configure: failed program was:" >&5
10159 cat conftest.$ac_ext >&5
10160 rm -rf conftest*
10161 samba_cv_HAVE_UT_UT_TV=no
10163 rm -f conftest*
10166 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10167 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10168 cat >> confdefs.h <<\EOF
10169 #define HAVE_UT_UT_TV 1
10174 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10175 echo "configure:10176: checking for ut_type in utmp" >&5
10176 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10178 else
10180 cat > conftest.$ac_ext <<EOF
10181 #line 10182 "configure"
10182 #include "confdefs.h"
10183 #include <sys/types.h>
10184 #include <utmp.h>
10185 int main() {
10186 struct utmp ut; ut.ut_type = 0;
10187 ; return 0; }
10189 if { (eval echo configure:10190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10190 rm -rf conftest*
10191 samba_cv_HAVE_UT_UT_TYPE=yes
10192 else
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10195 rm -rf conftest*
10196 samba_cv_HAVE_UT_UT_TYPE=no
10198 rm -f conftest*
10201 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10202 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10203 cat >> confdefs.h <<\EOF
10204 #define HAVE_UT_UT_TYPE 1
10209 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10210 echo "configure:10211: checking for ut_pid in utmp" >&5
10211 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10213 else
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <sys/types.h>
10219 #include <utmp.h>
10220 int main() {
10221 struct utmp ut; ut.ut_pid = 0;
10222 ; return 0; }
10224 if { (eval echo configure:10225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10225 rm -rf conftest*
10226 samba_cv_HAVE_UT_UT_PID=yes
10227 else
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10230 rm -rf conftest*
10231 samba_cv_HAVE_UT_UT_PID=no
10233 rm -f conftest*
10236 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10237 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10238 cat >> confdefs.h <<\EOF
10239 #define HAVE_UT_UT_PID 1
10244 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10245 echo "configure:10246: checking for ut_exit in utmp" >&5
10246 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10247 echo $ac_n "(cached) $ac_c" 1>&6
10248 else
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 #include <sys/types.h>
10254 #include <utmp.h>
10255 int main() {
10256 struct utmp ut; ut.ut_exit.e_exit = 0;
10257 ; return 0; }
10259 if { (eval echo configure:10260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10260 rm -rf conftest*
10261 samba_cv_HAVE_UT_UT_EXIT=yes
10262 else
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 rm -rf conftest*
10266 samba_cv_HAVE_UT_UT_EXIT=no
10268 rm -f conftest*
10271 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10272 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10273 cat >> confdefs.h <<\EOF
10274 #define HAVE_UT_UT_EXIT 1
10279 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10280 echo "configure:10281: checking for ut_addr in utmp" >&5
10281 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10283 else
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10288 #include <sys/types.h>
10289 #include <utmp.h>
10290 int main() {
10291 struct utmp ut; ut.ut_addr = 0;
10292 ; return 0; }
10294 if { (eval echo configure:10295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10295 rm -rf conftest*
10296 samba_cv_HAVE_UT_UT_ADDR=yes
10297 else
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 rm -rf conftest*
10301 samba_cv_HAVE_UT_UT_ADDR=no
10303 rm -f conftest*
10306 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10307 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10308 cat >> confdefs.h <<\EOF
10309 #define HAVE_UT_UT_ADDR 1
10314 if test x$ac_cv_func_pututline = xyes ; then
10315 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10316 echo "configure:10317: checking whether pututline returns pointer" >&5
10317 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10319 else
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10324 #include <sys/types.h>
10325 #include <utmp.h>
10326 int main() {
10327 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10328 ; return 0; }
10330 if { (eval echo configure:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10331 rm -rf conftest*
10332 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10333 else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -rf conftest*
10337 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10339 rm -f conftest*
10342 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10343 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10344 cat >> confdefs.h <<\EOF
10345 #define PUTUTLINE_RETURNS_UTMP 1
10351 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10352 echo "configure:10353: checking for ut_syslen in utmpx" >&5
10353 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355 else
10357 cat > conftest.$ac_ext <<EOF
10358 #line 10359 "configure"
10359 #include "confdefs.h"
10360 #include <sys/types.h>
10361 #include <utmpx.h>
10362 int main() {
10363 struct utmpx ux; ux.ut_syslen = 0;
10364 ; return 0; }
10366 if { (eval echo configure:10367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10367 rm -rf conftest*
10368 samba_cv_HAVE_UX_UT_SYSLEN=yes
10369 else
10370 echo "configure: failed program was:" >&5
10371 cat conftest.$ac_ext >&5
10372 rm -rf conftest*
10373 samba_cv_HAVE_UX_UT_SYSLEN=no
10375 rm -f conftest*
10378 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10379 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10380 cat >> confdefs.h <<\EOF
10381 #define HAVE_UX_UT_SYSLEN 1
10387 #################################################
10388 # check for libiconv support
10389 echo $ac_n "checking whether to use libiconv""... $ac_c" 1>&6
10390 echo "configure:10391: checking whether to use libiconv" >&5
10391 # Check whether --with-libiconv or --without-libiconv was given.
10392 if test "${with_libiconv+set}" = set; then
10393 withval="$with_libiconv"
10394 case "$withval" in
10396 echo "$ac_t""no" 1>&6
10399 echo "$ac_t""yes" 1>&6
10400 CFLAGS="$CFLAGS -I$withval/include"
10401 LDFLAGS="$LDFLAGS -L$withval/lib"
10402 echo $ac_n "checking for iconv_open in -liconv""... $ac_c" 1>&6
10403 echo "configure:10404: checking for iconv_open in -liconv" >&5
10404 ac_lib_var=`echo iconv'_'iconv_open | sed 'y%./+-%__p_%'`
10405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10407 else
10408 ac_save_LIBS="$LIBS"
10409 LIBS="-liconv $LIBS"
10410 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure"
10412 #include "confdefs.h"
10413 /* Override any gcc2 internal prototype to avoid an error. */
10414 /* We use char because int might match the return type of a gcc2
10415 builtin and then its argument prototype would still apply. */
10416 char iconv_open();
10418 int main() {
10419 iconv_open()
10420 ; return 0; }
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10423 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10428 rm -rf conftest*
10429 eval "ac_cv_lib_$ac_lib_var=no"
10431 rm -f conftest*
10432 LIBS="$ac_save_LIBS"
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 ac_tr_lib=HAVE_LIB`echo iconv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10439 cat >> confdefs.h <<EOF
10440 #define $ac_tr_lib 1
10443 LIBS="-liconv $LIBS"
10445 else
10446 echo "$ac_t""no" 1>&6
10449 cat >> confdefs.h <<EOF
10450 #define WITH_LIBICONV "${withval}"
10454 esac
10455 else
10456 echo "$ac_t""no" 1>&6
10462 ############
10463 # check for iconv in libc
10464 echo $ac_n "checking for working iconv""... $ac_c" 1>&6
10465 echo "configure:10466: checking for working iconv" >&5
10466 if eval "test \"`echo '$''{'samba_cv_HAVE_NATIVE_ICONV'+set}'`\" = set"; then
10467 echo $ac_n "(cached) $ac_c" 1>&6
10468 else
10470 if test "$cross_compiling" = yes; then
10471 samba_cv_HAVE_NATIVE_ICONV=cross
10472 else
10473 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure"
10475 #include "confdefs.h"
10477 #include <iconv.h>
10478 main() {
10479 iconv_t cd = iconv_open("ASCII", "UCS-2LE");
10480 if (cd == 0 || cd == (iconv_t)-1) return -1;
10481 return 0;
10485 if { (eval echo configure:10486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10486 then
10487 samba_cv_HAVE_NATIVE_ICONV=yes
10488 else
10489 echo "configure: failed program was:" >&5
10490 cat conftest.$ac_ext >&5
10491 rm -fr conftest*
10492 samba_cv_HAVE_NATIVE_ICONV=no
10494 rm -fr conftest*
10499 echo "$ac_t""$samba_cv_HAVE_NATIVE_ICONV" 1>&6
10500 if test x"$samba_cv_HAVE_NATIVE_ICONV" = x"yes"; then
10501 cat >> confdefs.h <<\EOF
10502 #define HAVE_NATIVE_ICONV 1
10508 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10509 echo "configure:10510: checking for Linux kernel oplocks" >&5
10510 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10512 else
10514 if test "$cross_compiling" = yes; then
10515 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10516 else
10517 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure"
10519 #include "confdefs.h"
10521 #include <sys/types.h>
10522 #include <fcntl.h>
10523 #ifndef F_GETLEASE
10524 #define F_GETLEASE 1025
10525 #endif
10526 main() {
10527 int fd = open("/dev/null", O_RDONLY);
10528 return fcntl(fd, F_GETLEASE, 0) == -1;
10532 if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10533 then
10534 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10535 else
10536 echo "configure: failed program was:" >&5
10537 cat conftest.$ac_ext >&5
10538 rm -fr conftest*
10539 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10541 rm -fr conftest*
10546 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10547 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10548 cat >> confdefs.h <<\EOF
10549 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10554 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10555 echo "configure:10556: checking for kernel change notify support" >&5
10556 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10557 echo $ac_n "(cached) $ac_c" 1>&6
10558 else
10560 if test "$cross_compiling" = yes; then
10561 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10562 else
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10567 #include <sys/types.h>
10568 #include <fcntl.h>
10569 #include <signal.h>
10570 #ifndef F_NOTIFY
10571 #define F_NOTIFY 1026
10572 #endif
10573 main() {
10574 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10579 then
10580 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10581 else
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10584 rm -fr conftest*
10585 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10587 rm -fr conftest*
10592 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10593 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10600 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10601 echo "configure:10602: checking for kernel share modes" >&5
10602 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10603 echo $ac_n "(cached) $ac_c" 1>&6
10604 else
10606 if test "$cross_compiling" = yes; then
10607 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10608 else
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10613 #include <sys/types.h>
10614 #include <fcntl.h>
10615 #include <signal.h>
10616 #include <sys/file.h>
10617 #ifndef LOCK_MAND
10618 #define LOCK_MAND 32
10619 #define LOCK_READ 64
10620 #endif
10621 main() {
10622 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10626 if { (eval echo configure:10627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10627 then
10628 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10629 else
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -fr conftest*
10633 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10635 rm -fr conftest*
10640 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10641 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10642 cat >> confdefs.h <<\EOF
10643 #define HAVE_KERNEL_SHARE_MODES 1
10651 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10652 echo "configure:10653: checking for IRIX kernel oplock type definitions" >&5
10653 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10655 else
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10660 #include <sys/types.h>
10661 #include <fcntl.h>
10662 int main() {
10663 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10664 ; return 0; }
10666 if { (eval echo configure:10667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10667 rm -rf conftest*
10668 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10669 else
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -rf conftest*
10673 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10675 rm -f conftest*
10678 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10679 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10680 cat >> confdefs.h <<\EOF
10681 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10686 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10687 echo "configure:10688: checking for irix specific capabilities" >&5
10688 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10690 else
10692 if test "$cross_compiling" = yes; then
10693 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10694 else
10695 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include <sys/types.h>
10699 #include <sys/capability.h>
10700 main() {
10701 cap_t cap;
10702 if ((cap = cap_get_proc()) == NULL)
10703 exit(1);
10704 cap->cap_effective |= CAP_NETWORK_MGT;
10705 cap->cap_inheritable |= CAP_NETWORK_MGT;
10706 cap_set_proc(cap);
10707 exit(0);
10711 if { (eval echo configure:10712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10712 then
10713 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10714 else
10715 echo "configure: failed program was:" >&5
10716 cat conftest.$ac_ext >&5
10717 rm -fr conftest*
10718 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10720 rm -fr conftest*
10725 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10726 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10727 cat >> confdefs.h <<\EOF
10728 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10734 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10735 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10738 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10739 echo "configure:10740: checking for int16 typedef included by rpc/rpc.h" >&5
10740 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10742 else
10744 cat > conftest.$ac_ext <<EOF
10745 #line 10746 "configure"
10746 #include "confdefs.h"
10747 #include <sys/types.h>
10748 #if defined(HAVE_RPC_RPC_H)
10749 #include <rpc/rpc.h>
10750 #endif
10751 int main() {
10752 int16 testvar;
10753 ; return 0; }
10755 if { (eval echo configure:10756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10756 rm -rf conftest*
10757 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10758 else
10759 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5
10761 rm -rf conftest*
10762 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10764 rm -f conftest*
10767 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10768 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10769 cat >> confdefs.h <<\EOF
10770 #define HAVE_INT16_FROM_RPC_RPC_H 1
10775 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10776 echo "configure:10777: checking for uint16 typedef included by rpc/rpc.h" >&5
10777 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10779 else
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10784 #include <sys/types.h>
10785 #if defined(HAVE_RPC_RPC_H)
10786 #include <rpc/rpc.h>
10787 #endif
10788 int main() {
10789 uint16 testvar;
10790 ; return 0; }
10792 if { (eval echo configure:10793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10793 rm -rf conftest*
10794 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10795 else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10801 rm -f conftest*
10804 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10805 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10806 cat >> confdefs.h <<\EOF
10807 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10812 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10813 echo "configure:10814: checking for int32 typedef included by rpc/rpc.h" >&5
10814 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10815 echo $ac_n "(cached) $ac_c" 1>&6
10816 else
10818 cat > conftest.$ac_ext <<EOF
10819 #line 10820 "configure"
10820 #include "confdefs.h"
10821 #include <sys/types.h>
10822 #if defined(HAVE_RPC_RPC_H)
10823 #include <rpc/rpc.h>
10824 #endif
10825 int main() {
10826 int32 testvar;
10827 ; return 0; }
10829 if { (eval echo configure:10830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10830 rm -rf conftest*
10831 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10832 else
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10835 rm -rf conftest*
10836 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10838 rm -f conftest*
10841 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10842 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10843 cat >> confdefs.h <<\EOF
10844 #define HAVE_INT32_FROM_RPC_RPC_H 1
10849 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10850 echo "configure:10851: checking for uint32 typedef included by rpc/rpc.h" >&5
10851 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10852 echo $ac_n "(cached) $ac_c" 1>&6
10853 else
10855 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure"
10857 #include "confdefs.h"
10858 #include <sys/types.h>
10859 #if defined(HAVE_RPC_RPC_H)
10860 #include <rpc/rpc.h>
10861 #endif
10862 int main() {
10863 uint32 testvar;
10864 ; return 0; }
10866 if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10867 rm -rf conftest*
10868 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10869 else
10870 echo "configure: failed program was:" >&5
10871 cat conftest.$ac_ext >&5
10872 rm -rf conftest*
10873 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10875 rm -f conftest*
10878 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10879 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10880 cat >> confdefs.h <<\EOF
10881 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10887 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10888 echo "configure:10889: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10889 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10890 echo $ac_n "(cached) $ac_c" 1>&6
10891 else
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 #include <sys/types.h>
10897 #ifdef HAVE_SYS_SECURITY_H
10898 #include <sys/security.h>
10899 #include <prot.h>
10900 #endif /* HAVE_SYS_SECURITY_H */
10901 #if defined(HAVE_RPC_RPC_H)
10902 #include <rpc/rpc.h>
10903 #endif
10904 int main() {
10905 int testvar;
10906 ; return 0; }
10908 if { (eval echo configure:10909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10909 rm -rf conftest*
10910 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10911 else
10912 echo "configure: failed program was:" >&5
10913 cat conftest.$ac_ext >&5
10914 rm -rf conftest*
10915 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10917 rm -f conftest*
10920 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10921 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10922 cat >> confdefs.h <<\EOF
10923 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10928 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10929 echo "configure:10930: checking for test routines" >&5
10930 if test "$cross_compiling" = yes; then
10931 echo "configure: warning: cannot run when cross-compiling" 1>&2
10932 else
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 #include "${srcdir-.}/tests/trivial.c"
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10939 then
10940 echo "$ac_t""yes" 1>&6
10941 else
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 rm -fr conftest*
10945 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10947 rm -fr conftest*
10951 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10952 echo "configure:10953: checking for ftruncate extend" >&5
10953 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10955 else
10957 if test "$cross_compiling" = yes; then
10958 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10959 else
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 #include "${srcdir-.}/tests/ftruncate.c"
10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10966 then
10967 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10968 else
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 rm -fr conftest*
10972 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10974 rm -fr conftest*
10979 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10980 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10981 cat >> confdefs.h <<\EOF
10982 #define HAVE_FTRUNCATE_EXTEND 1
10987 echo $ac_n "checking for AF_LOCAL socket support""... $ac_c" 1>&6
10988 echo "configure:10989: checking for AF_LOCAL socket support" >&5
10989 if eval "test \"`echo '$''{'samba_cv_HAVE_WORKING_AF_LOCAL'+set}'`\" = set"; then
10990 echo $ac_n "(cached) $ac_c" 1>&6
10991 else
10993 if test "$cross_compiling" = yes; then
10994 samba_cv_HAVE_WORKING_AF_LOCAL=cross
10995 else
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
10999 #include "${srcdir-.}/tests/unixsock.c"
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11002 then
11003 samba_cv_HAVE_WORKING_AF_LOCAL=yes
11004 else
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 rm -fr conftest*
11008 samba_cv_HAVE_WORKING_AF_LOCAL=no
11010 rm -fr conftest*
11015 echo "$ac_t""$samba_cv_HAVE_WORKING_AF_LOCAL" 1>&6
11016 if test x"$samba_cv_HAVE_WORKING_AF_LOCAL" != xno
11017 then
11018 cat >> confdefs.h <<\EOF
11019 #define HAVE_WORKING_AF_LOCAL 1
11024 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
11025 echo "configure:11026: checking for broken getgroups" >&5
11026 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11028 else
11030 if test "$cross_compiling" = yes; then
11031 samba_cv_HAVE_BROKEN_GETGROUPS=cross
11032 else
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 #include "${srcdir-.}/tests/getgroups.c"
11038 if { (eval echo configure:11039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11039 then
11040 samba_cv_HAVE_BROKEN_GETGROUPS=yes
11041 else
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11044 rm -fr conftest*
11045 samba_cv_HAVE_BROKEN_GETGROUPS=no
11047 rm -fr conftest*
11052 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
11053 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
11054 cat >> confdefs.h <<\EOF
11055 #define HAVE_BROKEN_GETGROUPS 1
11060 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
11061 echo "configure:11062: checking whether getpass should be replaced" >&5
11062 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
11063 echo $ac_n "(cached) $ac_c" 1>&6
11064 else
11066 SAVE_CPPFLAGS="$CPPFLAGS"
11067 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/popt -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper"
11068 cat > conftest.$ac_ext <<EOF
11069 #line 11070 "configure"
11070 #include "confdefs.h"
11072 #define REPLACE_GETPASS 1
11073 #define NO_CONFIG_H 1
11074 #define main dont_declare_main
11075 #include "${srcdir-.}/lib/getsmbpass.c"
11076 #undef main
11078 int main() {
11080 ; return 0; }
11082 if { (eval echo configure:11083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11083 rm -rf conftest*
11084 samba_cv_REPLACE_GETPASS=yes
11085 else
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 samba_cv_REPLACE_GETPASS=no
11091 rm -f conftest*
11092 CPPFLAGS="$SAVE_CPPFLAGS"
11096 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
11097 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
11098 cat >> confdefs.h <<\EOF
11099 #define REPLACE_GETPASS 1
11104 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
11105 echo "configure:11106: checking for broken inet_ntoa" >&5
11106 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108 else
11110 if test "$cross_compiling" = yes; then
11111 samba_cv_REPLACE_INET_NTOA=cross
11112 else
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11117 #include <stdio.h>
11118 #include <sys/types.h>
11119 #include <netinet/in.h>
11120 #ifdef HAVE_ARPA_INET_H
11121 #include <arpa/inet.h>
11122 #endif
11123 main() { struct in_addr ip; ip.s_addr = 0x12345678;
11124 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
11125 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
11126 exit(1);}
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11129 then
11130 samba_cv_REPLACE_INET_NTOA=yes
11131 else
11132 echo "configure: failed program was:" >&5
11133 cat conftest.$ac_ext >&5
11134 rm -fr conftest*
11135 samba_cv_REPLACE_INET_NTOA=no
11137 rm -fr conftest*
11142 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
11143 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
11144 cat >> confdefs.h <<\EOF
11145 #define REPLACE_INET_NTOA 1
11150 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
11151 echo "configure:11152: checking for secure mkstemp" >&5
11152 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11154 else
11156 if test "$cross_compiling" = yes; then
11157 samba_cv_HAVE_SECURE_MKSTEMP=cross
11158 else
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 #include <stdlib.h>
11163 #include <sys/types.h>
11164 #include <sys/stat.h>
11165 #include <unistd.h>
11166 main() {
11167 struct stat st;
11168 char tpl[20]="/tmp/test.XXXXXX";
11169 int fd = mkstemp(tpl);
11170 if (fd == -1) exit(1);
11171 unlink(tpl);
11172 if (fstat(fd, &st) != 0) exit(1);
11173 if ((st.st_mode & 0777) != 0600) exit(1);
11174 exit(0);
11177 if { (eval echo configure:11178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11178 then
11179 samba_cv_HAVE_SECURE_MKSTEMP=yes
11180 else
11181 echo "configure: failed program was:" >&5
11182 cat conftest.$ac_ext >&5
11183 rm -fr conftest*
11184 samba_cv_HAVE_SECURE_MKSTEMP=no
11186 rm -fr conftest*
11191 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
11192 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
11193 cat >> confdefs.h <<\EOF
11194 #define HAVE_SECURE_MKSTEMP 1
11199 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
11200 echo "configure:11201: checking for sysconf(_SC_NGROUPS_MAX)" >&5
11201 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11203 else
11205 if test "$cross_compiling" = yes; then
11206 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
11207 else
11208 cat > conftest.$ac_ext <<EOF
11209 #line 11210 "configure"
11210 #include "confdefs.h"
11211 #include <unistd.h>
11212 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11215 then
11216 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
11217 else
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11220 rm -fr conftest*
11221 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
11223 rm -fr conftest*
11228 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
11229 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
11230 cat >> confdefs.h <<\EOF
11231 #define SYSCONF_SC_NGROUPS_MAX 1
11236 echo $ac_n "checking for root""... $ac_c" 1>&6
11237 echo "configure:11238: checking for root" >&5
11238 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
11239 echo $ac_n "(cached) $ac_c" 1>&6
11240 else
11242 if test "$cross_compiling" = yes; then
11243 samba_cv_HAVE_ROOT=cross
11244 else
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11248 main() { exit(getuid() != 0); }
11250 if { (eval echo configure:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11251 then
11252 samba_cv_HAVE_ROOT=yes
11253 else
11254 echo "configure: failed program was:" >&5
11255 cat conftest.$ac_ext >&5
11256 rm -fr conftest*
11257 samba_cv_HAVE_ROOT=no
11259 rm -fr conftest*
11264 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
11265 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
11266 cat >> confdefs.h <<\EOF
11267 #define HAVE_ROOT 1
11270 else
11271 echo "configure: warning: running as non-root will disable some tests" 1>&2
11274 ##################
11275 # look for a method of finding the list of network interfaces
11276 iface=no;
11277 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11278 echo "configure:11279: checking for iface AIX" >&5
11279 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11280 echo $ac_n "(cached) $ac_c" 1>&6
11281 else
11283 if test "$cross_compiling" = yes; then
11284 samba_cv_HAVE_IFACE_AIX=cross
11285 else
11286 cat > conftest.$ac_ext <<EOF
11287 #line 11288 "configure"
11288 #include "confdefs.h"
11290 #define HAVE_IFACE_AIX 1
11291 #define AUTOCONF_TEST 1
11292 #include "confdefs.h"
11293 #include "${srcdir-.}/lib/interfaces.c"
11295 if { (eval echo configure:11296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11296 then
11297 samba_cv_HAVE_IFACE_AIX=yes
11298 else
11299 echo "configure: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11301 rm -fr conftest*
11302 samba_cv_HAVE_IFACE_AIX=no
11304 rm -fr conftest*
11309 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11310 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11311 iface=yes;cat >> confdefs.h <<\EOF
11312 #define HAVE_IFACE_AIX 1
11317 if test $iface = no; then
11318 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11319 echo "configure:11320: checking for iface ifconf" >&5
11320 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11321 echo $ac_n "(cached) $ac_c" 1>&6
11322 else
11324 if test "$cross_compiling" = yes; then
11325 samba_cv_HAVE_IFACE_IFCONF=cross
11326 else
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11331 #define HAVE_IFACE_IFCONF 1
11332 #define AUTOCONF_TEST 1
11333 #include "confdefs.h"
11334 #include "${srcdir-.}/lib/interfaces.c"
11336 if { (eval echo configure:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11337 then
11338 samba_cv_HAVE_IFACE_IFCONF=yes
11339 else
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 rm -fr conftest*
11343 samba_cv_HAVE_IFACE_IFCONF=no
11345 rm -fr conftest*
11350 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11351 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11352 iface=yes;cat >> confdefs.h <<\EOF
11353 #define HAVE_IFACE_IFCONF 1
11359 if test $iface = no; then
11360 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11361 echo "configure:11362: checking for iface ifreq" >&5
11362 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11363 echo $ac_n "(cached) $ac_c" 1>&6
11364 else
11366 if test "$cross_compiling" = yes; then
11367 samba_cv_HAVE_IFACE_IFREQ=cross
11368 else
11369 cat > conftest.$ac_ext <<EOF
11370 #line 11371 "configure"
11371 #include "confdefs.h"
11373 #define HAVE_IFACE_IFREQ 1
11374 #define AUTOCONF_TEST 1
11375 #include "confdefs.h"
11376 #include "${srcdir-.}/lib/interfaces.c"
11378 if { (eval echo configure:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11379 then
11380 samba_cv_HAVE_IFACE_IFREQ=yes
11381 else
11382 echo "configure: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11384 rm -fr conftest*
11385 samba_cv_HAVE_IFACE_IFREQ=no
11387 rm -fr conftest*
11392 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11393 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11394 iface=yes;cat >> confdefs.h <<\EOF
11395 #define HAVE_IFACE_IFREQ 1
11402 ################################################
11403 # look for a method of setting the effective uid
11404 seteuid=no;
11405 if test $seteuid = no; then
11406 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11407 echo "configure:11408: checking for setresuid" >&5
11408 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11410 else
11412 if test "$cross_compiling" = yes; then
11413 samba_cv_USE_SETRESUID=cross
11414 else
11415 cat > conftest.$ac_ext <<EOF
11416 #line 11417 "configure"
11417 #include "confdefs.h"
11419 #define AUTOCONF_TEST 1
11420 #define USE_SETRESUID 1
11421 #include "confdefs.h"
11422 #include "${srcdir-.}/lib/util_sec.c"
11424 if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11425 then
11426 samba_cv_USE_SETRESUID=yes
11427 else
11428 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5
11430 rm -fr conftest*
11431 samba_cv_USE_SETRESUID=no
11433 rm -fr conftest*
11438 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11439 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11440 seteuid=yes;cat >> confdefs.h <<\EOF
11441 #define USE_SETRESUID 1
11448 if test $seteuid = no; then
11449 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11450 echo "configure:11451: checking for setreuid" >&5
11451 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11452 echo $ac_n "(cached) $ac_c" 1>&6
11453 else
11455 if test "$cross_compiling" = yes; then
11456 samba_cv_USE_SETREUID=cross
11457 else
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11462 #define AUTOCONF_TEST 1
11463 #define USE_SETREUID 1
11464 #include "confdefs.h"
11465 #include "${srcdir-.}/lib/util_sec.c"
11467 if { (eval echo configure:11468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11468 then
11469 samba_cv_USE_SETREUID=yes
11470 else
11471 echo "configure: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11473 rm -fr conftest*
11474 samba_cv_USE_SETREUID=no
11476 rm -fr conftest*
11481 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11482 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11483 seteuid=yes;cat >> confdefs.h <<\EOF
11484 #define USE_SETREUID 1
11490 if test $seteuid = no; then
11491 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11492 echo "configure:11493: checking for seteuid" >&5
11493 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11495 else
11497 if test "$cross_compiling" = yes; then
11498 samba_cv_USE_SETEUID=cross
11499 else
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11504 #define AUTOCONF_TEST 1
11505 #define USE_SETEUID 1
11506 #include "confdefs.h"
11507 #include "${srcdir-.}/lib/util_sec.c"
11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11510 then
11511 samba_cv_USE_SETEUID=yes
11512 else
11513 echo "configure: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 rm -fr conftest*
11516 samba_cv_USE_SETEUID=no
11518 rm -fr conftest*
11523 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11524 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11525 seteuid=yes;cat >> confdefs.h <<\EOF
11526 #define USE_SETEUID 1
11532 if test $seteuid = no; then
11533 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11534 echo "configure:11535: checking for setuidx" >&5
11535 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11537 else
11539 if test "$cross_compiling" = yes; then
11540 samba_cv_USE_SETUIDX=cross
11541 else
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11546 #define AUTOCONF_TEST 1
11547 #define USE_SETUIDX 1
11548 #include "confdefs.h"
11549 #include "${srcdir-.}/lib/util_sec.c"
11551 if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11552 then
11553 samba_cv_USE_SETUIDX=yes
11554 else
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -fr conftest*
11558 samba_cv_USE_SETUIDX=no
11560 rm -fr conftest*
11565 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11566 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11567 seteuid=yes;cat >> confdefs.h <<\EOF
11568 #define USE_SETUIDX 1
11575 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11576 echo "configure:11577: checking for working mmap" >&5
11577 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11579 else
11581 if test "$cross_compiling" = yes; then
11582 samba_cv_HAVE_MMAP=cross
11583 else
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 #include "${srcdir-.}/tests/shared_mmap.c"
11589 if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11590 then
11591 samba_cv_HAVE_MMAP=yes
11592 else
11593 echo "configure: failed program was:" >&5
11594 cat conftest.$ac_ext >&5
11595 rm -fr conftest*
11596 samba_cv_HAVE_MMAP=no
11598 rm -fr conftest*
11603 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11604 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11605 cat >> confdefs.h <<\EOF
11606 #define HAVE_MMAP 1
11611 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11612 echo "configure:11613: checking for ftruncate needs root" >&5
11613 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11614 echo $ac_n "(cached) $ac_c" 1>&6
11615 else
11617 if test "$cross_compiling" = yes; then
11618 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11619 else
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11623 #include "${srcdir-.}/tests/ftruncroot.c"
11625 if { (eval echo configure:11626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11626 then
11627 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11628 else
11629 echo "configure: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11631 rm -fr conftest*
11632 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11634 rm -fr conftest*
11639 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11640 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11641 cat >> confdefs.h <<\EOF
11642 #define FTRUNCATE_NEEDS_ROOT 1
11647 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11648 echo "configure:11649: checking for fcntl locking" >&5
11649 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11651 else
11653 if test "$cross_compiling" = yes; then
11654 samba_cv_HAVE_FCNTL_LOCK=cross
11655 else
11656 cat > conftest.$ac_ext <<EOF
11657 #line 11658 "configure"
11658 #include "confdefs.h"
11659 #include "${srcdir-.}/tests/fcntl_lock.c"
11661 if { (eval echo configure:11662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11662 then
11663 samba_cv_HAVE_FCNTL_LOCK=yes
11664 else
11665 echo "configure: failed program was:" >&5
11666 cat conftest.$ac_ext >&5
11667 rm -fr conftest*
11668 samba_cv_HAVE_FCNTL_LOCK=no
11670 rm -fr conftest*
11675 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11676 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11677 cat >> confdefs.h <<\EOF
11678 #define HAVE_FCNTL_LOCK 1
11683 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11684 echo "configure:11685: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11685 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11686 echo $ac_n "(cached) $ac_c" 1>&6
11687 else
11689 if test "$cross_compiling" = yes; then
11690 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11691 else
11692 cat > conftest.$ac_ext <<EOF
11693 #line 11694 "configure"
11694 #include "confdefs.h"
11695 #include "${srcdir-.}/tests/fcntl_lock64.c"
11697 if { (eval echo configure:11698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11698 then
11699 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11700 else
11701 echo "configure: failed program was:" >&5
11702 cat conftest.$ac_ext >&5
11703 rm -fr conftest*
11704 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11706 rm -fr conftest*
11711 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11712 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11713 cat >> confdefs.h <<\EOF
11714 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11718 else
11721 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11722 echo "configure:11723: checking for 64 bit fcntl locking" >&5
11723 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
11725 else
11727 if test "$cross_compiling" = yes; then
11728 samba_cv_HAVE_STRUCT_FLOCK64=cross
11729 else
11730 cat > conftest.$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11734 #if defined(HAVE_UNISTD_H)
11735 #include <unistd.h>
11736 #endif
11737 #include <stdio.h>
11738 #include <stdlib.h>
11740 #ifdef HAVE_FCNTL_H
11741 #include <fcntl.h>
11742 #endif
11744 #ifdef HAVE_SYS_FCNTL_H
11745 #include <sys/fcntl.h>
11746 #endif
11747 main() { struct flock64 fl64;
11748 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11749 exit(0);
11750 #else
11751 exit(1);
11752 #endif
11755 if { (eval echo configure:11756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11756 then
11757 samba_cv_HAVE_STRUCT_FLOCK64=yes
11758 else
11759 echo "configure: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11761 rm -fr conftest*
11762 samba_cv_HAVE_STRUCT_FLOCK64=no
11764 rm -fr conftest*
11769 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11771 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11772 cat >> confdefs.h <<\EOF
11773 #define HAVE_STRUCT_FLOCK64 1
11779 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11780 echo "configure:11781: checking for st_blocks in struct stat" >&5
11781 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11782 echo $ac_n "(cached) $ac_c" 1>&6
11783 else
11785 cat > conftest.$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11788 #include <sys/types.h>
11789 #include <sys/stat.h>
11790 #include <unistd.h>
11791 int main() {
11792 struct stat st; st.st_blocks = 0;
11793 ; return 0; }
11795 if { (eval echo configure:11796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11796 rm -rf conftest*
11797 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11798 else
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11801 rm -rf conftest*
11802 samba_cv_HAVE_STAT_ST_BLOCKS=no
11804 rm -f conftest*
11807 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11808 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11809 cat >> confdefs.h <<\EOF
11810 #define HAVE_STAT_ST_BLOCKS 1
11815 case "$host_os" in
11816 *linux*)
11817 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11818 echo "configure:11819: checking for broken RedHat 7.2 system header files" >&5
11819 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11820 echo $ac_n "(cached) $ac_c" 1>&6
11821 else
11823 cat > conftest.$ac_ext <<EOF
11824 #line 11825 "configure"
11825 #include "confdefs.h"
11827 #ifdef HAVE_SYS_VFS_H
11828 #include <sys/vfs.h>
11829 #endif
11830 #ifdef HAVE_SYS_CAPABILITY_H
11831 #include <sys/capability.h>
11832 #endif
11834 int main() {
11835 int i;
11836 ; return 0; }
11838 if { (eval echo configure:11839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11839 rm -rf conftest*
11840 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11841 else
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11847 rm -f conftest*
11850 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11851 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11852 cat >> confdefs.h <<\EOF
11853 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11858 esac
11860 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11861 echo "configure:11862: checking for broken nisplus include files" >&5
11862 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
11864 else
11866 cat > conftest.$ac_ext <<EOF
11867 #line 11868 "configure"
11868 #include "confdefs.h"
11869 #include <sys/acl.h>
11870 #if defined(HAVE_RPCSVC_NIS_H)
11871 #include <rpcsvc/nis.h>
11872 #endif
11873 int main() {
11874 int i;
11875 ; return 0; }
11877 if { (eval echo configure:11878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11878 rm -rf conftest*
11879 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11880 else
11881 echo "configure: failed program was:" >&5
11882 cat conftest.$ac_ext >&5
11883 rm -rf conftest*
11884 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11886 rm -f conftest*
11889 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11890 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11891 cat >> confdefs.h <<\EOF
11892 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11898 #################################################
11899 # check for smbwrapper support
11900 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11901 echo "configure:11902: checking whether to use smbwrapper" >&5
11902 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11903 if test "${with_smbwrapper+set}" = set; then
11904 withval="$with_smbwrapper"
11905 case "$withval" in
11906 yes)
11907 echo "$ac_t""yes" 1>&6
11908 cat >> confdefs.h <<\EOF
11909 #define WITH_SMBWRAPPER 1
11912 WRAP="bin/smbsh bin/smbwrapper.$SHLIBEXT"
11914 if test x$ATTEMPT_WRAP32_BUILD = x; then
11915 WRAP32=""
11916 else
11917 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11920 # Conditions under which smbwrapper should not be built.
11922 if test x$PICFLAG = x; then
11923 echo No support for PIC code - disabling smbwrapper and smbsh
11924 WRAP=""
11925 WRAP32=""
11926 elif test x$ac_cv_func_syscall = xno; then
11927 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11928 WRAP=""
11929 WRAP32=""
11933 echo "$ac_t""no" 1>&6
11935 esac
11936 else
11937 echo "$ac_t""no" 1>&6
11942 #################################################
11943 # check for AFS clear-text auth support
11944 echo $ac_n "checking whether to use AFS clear-text auth""... $ac_c" 1>&6
11945 echo "configure:11946: checking whether to use AFS clear-text auth" >&5
11946 # Check whether --with-afs or --without-afs was given.
11947 if test "${with_afs+set}" = set; then
11948 withval="$with_afs"
11949 case "$withval" in
11950 yes)
11951 echo "$ac_t""yes" 1>&6
11952 cat >> confdefs.h <<\EOF
11953 #define WITH_AFS 1
11958 echo "$ac_t""no" 1>&6
11960 esac
11961 else
11962 echo "$ac_t""no" 1>&6
11968 #################################################
11969 # check for the DFS clear-text auth system
11970 echo $ac_n "checking whether to use DFS clear-text auth""... $ac_c" 1>&6
11971 echo "configure:11972: checking whether to use DFS clear-text auth" >&5
11972 # Check whether --with-dfs or --without-dfs was given.
11973 if test "${with_dfs+set}" = set; then
11974 withval="$with_dfs"
11975 case "$withval" in
11976 yes)
11977 echo "$ac_t""yes" 1>&6
11978 cat >> confdefs.h <<\EOF
11979 #define WITH_DFS 1
11984 echo "$ac_t""no" 1>&6
11986 esac
11987 else
11988 echo "$ac_t""no" 1>&6
11994 #################################################
11995 # see if this box has the RedHat location for kerberos
11996 echo $ac_n "checking for /usr/kerberos""... $ac_c" 1>&6
11997 echo "configure:11998: checking for /usr/kerberos" >&5
11998 if test -d /usr/kerberos; then
11999 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
12000 CFLAGS="$CFLAGS -I/usr/kerberos/include"
12001 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
12002 echo "$ac_t""yes" 1>&6
12003 else
12004 echo "$ac_t""no" 1>&6
12007 #################################################
12008 # check for location of Kerberos 5 install
12009 echo $ac_n "checking for kerberos 5 install path""... $ac_c" 1>&6
12010 echo "configure:12011: checking for kerberos 5 install path" >&5
12011 # Check whether --with-krb5 or --without-krb5 was given.
12012 if test "${with_krb5+set}" = set; then
12013 withval="$with_krb5"
12014 case "$withval" in
12016 echo "$ac_t""no" 1>&6
12019 echo "$ac_t""yes" 1>&6
12020 LIBS="$LIBS -lkrb5"
12021 CFLAGS="$CFLAGS -I$withval/include"
12022 CPPFLAGS="$CPPFLAGS -I$withval/include"
12023 LDFLAGS="$LDFLAGS -L$withval/lib"
12025 esac
12026 else
12027 echo "$ac_t""no" 1>&6
12032 # now check for krb5.h. Some systems have the libraries without the headers!
12033 # note that this check is done here to allow for different kerberos
12034 # include paths
12035 for ac_hdr in krb5.h
12037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_hdr" >&5
12040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12041 echo $ac_n "(cached) $ac_c" 1>&6
12042 else
12043 cat > conftest.$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 #include <$ac_hdr>
12048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12049 { (eval echo configure:12050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12051 if test -z "$ac_err"; then
12052 rm -rf conftest*
12053 eval "ac_cv_header_$ac_safe=yes"
12054 else
12055 echo "$ac_err" >&5
12056 echo "configure: failed program was:" >&5
12057 cat conftest.$ac_ext >&5
12058 rm -rf conftest*
12059 eval "ac_cv_header_$ac_safe=no"
12061 rm -f conftest*
12063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12064 echo "$ac_t""yes" 1>&6
12065 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12066 cat >> confdefs.h <<EOF
12067 #define $ac_tr_hdr 1
12070 else
12071 echo "$ac_t""no" 1>&6
12073 done
12076 # now check for gssapi headers. This is also done here to allow for
12077 # different kerberos include paths
12078 for ac_hdr in gssapi/gssapi_generic.h gssapi/gssapi.h
12080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12082 echo "configure:12083: checking for $ac_hdr" >&5
12083 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12084 echo $ac_n "(cached) $ac_c" 1>&6
12085 else
12086 cat > conftest.$ac_ext <<EOF
12087 #line 12088 "configure"
12088 #include "confdefs.h"
12089 #include <$ac_hdr>
12091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12092 { (eval echo configure:12093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12094 if test -z "$ac_err"; then
12095 rm -rf conftest*
12096 eval "ac_cv_header_$ac_safe=yes"
12097 else
12098 echo "$ac_err" >&5
12099 echo "configure: failed program was:" >&5
12100 cat conftest.$ac_ext >&5
12101 rm -rf conftest*
12102 eval "ac_cv_header_$ac_safe=no"
12104 rm -f conftest*
12106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12107 echo "$ac_t""yes" 1>&6
12108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12109 cat >> confdefs.h <<EOF
12110 #define $ac_tr_hdr 1
12113 else
12114 echo "$ac_t""no" 1>&6
12116 done
12119 ##################################################################
12120 # we might need the k5crypto and com_err libraries on some systems
12121 echo $ac_n "checking for _et_list in -lcom_err""... $ac_c" 1>&6
12122 echo "configure:12123: checking for _et_list in -lcom_err" >&5
12123 ac_lib_var=`echo com_err'_'_et_list | sed 'y%./+-%__p_%'`
12124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12125 echo $ac_n "(cached) $ac_c" 1>&6
12126 else
12127 ac_save_LIBS="$LIBS"
12128 LIBS="-lcom_err $LIBS"
12129 cat > conftest.$ac_ext <<EOF
12130 #line 12131 "configure"
12131 #include "confdefs.h"
12132 /* Override any gcc2 internal prototype to avoid an error. */
12133 /* We use char because int might match the return type of a gcc2
12134 builtin and then its argument prototype would still apply. */
12135 char _et_list();
12137 int main() {
12138 _et_list()
12139 ; return 0; }
12141 if { (eval echo configure:12142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12142 rm -rf conftest*
12143 eval "ac_cv_lib_$ac_lib_var=yes"
12144 else
12145 echo "configure: failed program was:" >&5
12146 cat conftest.$ac_ext >&5
12147 rm -rf conftest*
12148 eval "ac_cv_lib_$ac_lib_var=no"
12150 rm -f conftest*
12151 LIBS="$ac_save_LIBS"
12154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12155 echo "$ac_t""yes" 1>&6
12156 LIBS="$LIBS -lcom_err"
12157 else
12158 echo "$ac_t""no" 1>&6
12161 echo $ac_n "checking for krb5_encrypt_data in -lk5crypto""... $ac_c" 1>&6
12162 echo "configure:12163: checking for krb5_encrypt_data in -lk5crypto" >&5
12163 ac_lib_var=`echo k5crypto'_'krb5_encrypt_data | sed 'y%./+-%__p_%'`
12164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12165 echo $ac_n "(cached) $ac_c" 1>&6
12166 else
12167 ac_save_LIBS="$LIBS"
12168 LIBS="-lk5crypto $LIBS"
12169 cat > conftest.$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 /* Override any gcc2 internal prototype to avoid an error. */
12173 /* We use char because int might match the return type of a gcc2
12174 builtin and then its argument prototype would still apply. */
12175 char krb5_encrypt_data();
12177 int main() {
12178 krb5_encrypt_data()
12179 ; return 0; }
12181 if { (eval echo configure:12182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12182 rm -rf conftest*
12183 eval "ac_cv_lib_$ac_lib_var=yes"
12184 else
12185 echo "configure: failed program was:" >&5
12186 cat conftest.$ac_ext >&5
12187 rm -rf conftest*
12188 eval "ac_cv_lib_$ac_lib_var=no"
12190 rm -f conftest*
12191 LIBS="$ac_save_LIBS"
12194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12195 echo "$ac_t""yes" 1>&6
12196 LIBS="$LIBS -lk5crypto"
12197 else
12198 echo "$ac_t""no" 1>&6
12202 ########################################################
12203 # now see if we can find the krb5 libs in standard paths
12204 # or as specified above
12205 echo $ac_n "checking for krb5_mk_req_extended in -lkrb5""... $ac_c" 1>&6
12206 echo "configure:12207: checking for krb5_mk_req_extended in -lkrb5" >&5
12207 ac_lib_var=`echo krb5'_'krb5_mk_req_extended | sed 'y%./+-%__p_%'`
12208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12210 else
12211 ac_save_LIBS="$LIBS"
12212 LIBS="-lkrb5 $LIBS"
12213 cat > conftest.$ac_ext <<EOF
12214 #line 12215 "configure"
12215 #include "confdefs.h"
12216 /* Override any gcc2 internal prototype to avoid an error. */
12217 /* We use char because int might match the return type of a gcc2
12218 builtin and then its argument prototype would still apply. */
12219 char krb5_mk_req_extended();
12221 int main() {
12222 krb5_mk_req_extended()
12223 ; return 0; }
12225 if { (eval echo configure:12226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12226 rm -rf conftest*
12227 eval "ac_cv_lib_$ac_lib_var=yes"
12228 else
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 rm -rf conftest*
12232 eval "ac_cv_lib_$ac_lib_var=no"
12234 rm -f conftest*
12235 LIBS="$ac_save_LIBS"
12238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12239 echo "$ac_t""yes" 1>&6
12240 LIBS="$LIBS -lkrb5";
12241 cat >> confdefs.h <<\EOF
12242 #define HAVE_KRB5 1
12245 else
12246 echo "$ac_t""no" 1>&6
12250 ########################################################
12251 # now see if we can find the gssapi libs in standard paths
12252 echo $ac_n "checking for gss_display_status in -lgssapi_krb5""... $ac_c" 1>&6
12253 echo "configure:12254: checking for gss_display_status in -lgssapi_krb5" >&5
12254 ac_lib_var=`echo gssapi_krb5'_'gss_display_status | sed 'y%./+-%__p_%'`
12255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12256 echo $ac_n "(cached) $ac_c" 1>&6
12257 else
12258 ac_save_LIBS="$LIBS"
12259 LIBS="-lgssapi_krb5 $LIBS"
12260 cat > conftest.$ac_ext <<EOF
12261 #line 12262 "configure"
12262 #include "confdefs.h"
12263 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12266 char gss_display_status();
12268 int main() {
12269 gss_display_status()
12270 ; return 0; }
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12273 rm -rf conftest*
12274 eval "ac_cv_lib_$ac_lib_var=yes"
12275 else
12276 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5
12278 rm -rf conftest*
12279 eval "ac_cv_lib_$ac_lib_var=no"
12281 rm -f conftest*
12282 LIBS="$ac_save_LIBS"
12285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 LIBS="$LIBS -lgssapi_krb5";
12288 cat >> confdefs.h <<\EOF
12289 #define HAVE_GSSAPI 1
12292 else
12293 echo "$ac_t""no" 1>&6
12297 ##################################################################
12298 # we might need the lber lib on some systems. To avoid link errors
12299 # this test must be before the libldap test
12300 echo $ac_n "checking for ber_scanf in -llber""... $ac_c" 1>&6
12301 echo "configure:12302: checking for ber_scanf in -llber" >&5
12302 ac_lib_var=`echo lber'_'ber_scanf | sed 'y%./+-%__p_%'`
12303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12304 echo $ac_n "(cached) $ac_c" 1>&6
12305 else
12306 ac_save_LIBS="$LIBS"
12307 LIBS="-llber $LIBS"
12308 cat > conftest.$ac_ext <<EOF
12309 #line 12310 "configure"
12310 #include "confdefs.h"
12311 /* Override any gcc2 internal prototype to avoid an error. */
12312 /* We use char because int might match the return type of a gcc2
12313 builtin and then its argument prototype would still apply. */
12314 char ber_scanf();
12316 int main() {
12317 ber_scanf()
12318 ; return 0; }
12320 if { (eval echo configure:12321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12321 rm -rf conftest*
12322 eval "ac_cv_lib_$ac_lib_var=yes"
12323 else
12324 echo "configure: failed program was:" >&5
12325 cat conftest.$ac_ext >&5
12326 rm -rf conftest*
12327 eval "ac_cv_lib_$ac_lib_var=no"
12329 rm -f conftest*
12330 LIBS="$ac_save_LIBS"
12333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12334 echo "$ac_t""yes" 1>&6
12335 LIBS="$LIBS -llber"
12336 else
12337 echo "$ac_t""no" 1>&6
12341 ########################################################
12342 # now see if we can find the ldap libs in standard paths
12343 if test x$have_ldap != xyes; then
12344 echo $ac_n "checking for ldap_domain2hostlist in -lldap""... $ac_c" 1>&6
12345 echo "configure:12346: checking for ldap_domain2hostlist in -lldap" >&5
12346 ac_lib_var=`echo ldap'_'ldap_domain2hostlist | sed 'y%./+-%__p_%'`
12347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12348 echo $ac_n "(cached) $ac_c" 1>&6
12349 else
12350 ac_save_LIBS="$LIBS"
12351 LIBS="-lldap $LIBS"
12352 cat > conftest.$ac_ext <<EOF
12353 #line 12354 "configure"
12354 #include "confdefs.h"
12355 /* Override any gcc2 internal prototype to avoid an error. */
12356 /* We use char because int might match the return type of a gcc2
12357 builtin and then its argument prototype would still apply. */
12358 char ldap_domain2hostlist();
12360 int main() {
12361 ldap_domain2hostlist()
12362 ; return 0; }
12364 if { (eval echo configure:12365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12365 rm -rf conftest*
12366 eval "ac_cv_lib_$ac_lib_var=yes"
12367 else
12368 echo "configure: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 rm -rf conftest*
12371 eval "ac_cv_lib_$ac_lib_var=no"
12373 rm -f conftest*
12374 LIBS="$ac_save_LIBS"
12377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12378 echo "$ac_t""yes" 1>&6
12379 LIBS="$LIBS -lldap";
12380 cat >> confdefs.h <<\EOF
12381 #define HAVE_LDAP 1
12384 else
12385 echo "$ac_t""no" 1>&6
12389 ########################################################
12390 # If we have LDAP, does it's rebind procedure take 2 or 3 arguments?
12391 # Check found in pam_ldap 145.
12392 for ac_func in ldap_set_rebind_proc
12394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12395 echo "configure:12396: checking for $ac_func" >&5
12396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12397 echo $ac_n "(cached) $ac_c" 1>&6
12398 else
12399 cat > conftest.$ac_ext <<EOF
12400 #line 12401 "configure"
12401 #include "confdefs.h"
12402 /* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func(); below. */
12404 #include <assert.h>
12405 /* Override any gcc2 internal prototype to avoid an error. */
12406 /* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408 char $ac_func();
12410 int main() {
12412 /* The GNU C library defines this for functions which it implements
12413 to always fail with ENOSYS. Some functions are actually named
12414 something starting with __ and the normal name is an alias. */
12415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12416 choke me
12417 #else
12418 $ac_func();
12419 #endif
12421 ; return 0; }
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12424 rm -rf conftest*
12425 eval "ac_cv_func_$ac_func=yes"
12426 else
12427 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5
12429 rm -rf conftest*
12430 eval "ac_cv_func_$ac_func=no"
12432 rm -f conftest*
12435 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12436 echo "$ac_t""yes" 1>&6
12437 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12438 cat >> confdefs.h <<EOF
12439 #define $ac_tr_func 1
12442 else
12443 echo "$ac_t""no" 1>&6
12445 done
12447 echo $ac_n "checking whether ldap_set_rebind_proc takes 3 arguments""... $ac_c" 1>&6
12448 echo "configure:12449: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
12449 if eval "test \"`echo '$''{'pam_ldap_cv_ldap_set_rebind_proc'+set}'`\" = set"; then
12450 echo $ac_n "(cached) $ac_c" 1>&6
12451 else
12453 cat > conftest.$ac_ext <<EOF
12454 #line 12455 "configure"
12455 #include "confdefs.h"
12457 #include <lber.h>
12458 #include <ldap.h>
12459 int main() {
12460 ldap_set_rebind_proc(0, 0, 0);
12461 ; return 0; }
12463 if { (eval echo configure:12464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12464 rm -rf conftest*
12465 pam_ldap_cv_ldap_set_rebind_proc=3
12466 else
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12469 rm -rf conftest*
12470 pam_ldap_cv_ldap_set_rebind_proc=2
12472 rm -f conftest*
12475 echo "$ac_t""$pam_ldap_cv_ldap_set_rebind_proc" 1>&6
12476 cat >> confdefs.h <<EOF
12477 #define LDAP_SET_REBIND_PROC_ARGS $pam_ldap_cv_ldap_set_rebind_proc
12482 #################################################
12483 # check for automount support
12484 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
12485 echo "configure:12486: checking whether to use AUTOMOUNT" >&5
12486 # Check whether --with-automount or --without-automount was given.
12487 if test "${with_automount+set}" = set; then
12488 withval="$with_automount"
12489 case "$withval" in
12490 yes)
12491 echo "$ac_t""yes" 1>&6
12492 cat >> confdefs.h <<\EOF
12493 #define WITH_AUTOMOUNT 1
12498 echo "$ac_t""no" 1>&6
12500 esac
12501 else
12502 echo "$ac_t""no" 1>&6
12507 #################################################
12508 # check for smbmount support
12509 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
12510 echo "configure:12511: checking whether to use SMBMOUNT" >&5
12511 # Check whether --with-smbmount or --without-smbmount was given.
12512 if test "${with_smbmount+set}" = set; then
12513 withval="$with_smbmount"
12514 case "$withval" in
12515 yes)
12516 case "$host_os" in
12517 *linux*)
12518 echo "$ac_t""yes" 1>&6
12519 cat >> confdefs.h <<\EOF
12520 #define WITH_SMBMOUNT 1
12523 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
12526 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
12528 esac
12531 echo "$ac_t""no" 1>&6
12532 MPROGS=
12534 esac
12535 else
12536 echo "$ac_t""no" 1>&6
12537 MPROGS=
12543 #################################################
12544 # check for a PAM clear-text auth, accounts, password and session support
12545 with_pam_for_crypt=no
12546 echo $ac_n "checking whether to use PAM""... $ac_c" 1>&6
12547 echo "configure:12548: checking whether to use PAM" >&5
12548 # Check whether --with-pam or --without-pam was given.
12549 if test "${with_pam+set}" = set; then
12550 withval="$with_pam"
12551 case "$withval" in
12552 yes)
12553 echo "$ac_t""yes" 1>&6
12554 cat >> confdefs.h <<\EOF
12555 #define WITH_PAM 1
12558 LIBS="$LIBS -lpam"
12559 with_pam_for_crypt=yes
12562 echo "$ac_t""no" 1>&6
12564 esac
12565 else
12566 echo "$ac_t""no" 1>&6
12571 # we can't build a pam module if we don't have pam.
12572 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
12573 echo "configure:12574: checking for pam_get_data in -lpam" >&5
12574 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
12575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12576 echo $ac_n "(cached) $ac_c" 1>&6
12577 else
12578 ac_save_LIBS="$LIBS"
12579 LIBS="-lpam $LIBS"
12580 cat > conftest.$ac_ext <<EOF
12581 #line 12582 "configure"
12582 #include "confdefs.h"
12583 /* Override any gcc2 internal prototype to avoid an error. */
12584 /* We use char because int might match the return type of a gcc2
12585 builtin and then its argument prototype would still apply. */
12586 char pam_get_data();
12588 int main() {
12589 pam_get_data()
12590 ; return 0; }
12592 if { (eval echo configure:12593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12593 rm -rf conftest*
12594 eval "ac_cv_lib_$ac_lib_var=yes"
12595 else
12596 echo "configure: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12598 rm -rf conftest*
12599 eval "ac_cv_lib_$ac_lib_var=no"
12601 rm -f conftest*
12602 LIBS="$ac_save_LIBS"
12605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12606 echo "$ac_t""yes" 1>&6
12607 cat >> confdefs.h <<\EOF
12608 #define HAVE_LIBPAM 1
12611 else
12612 echo "$ac_t""no" 1>&6
12616 #################################################
12617 # check for pam_smbpass support
12618 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
12619 echo "configure:12620: checking whether to use pam_smbpass" >&5
12620 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
12621 if test "${with_pam_smbpass+set}" = set; then
12622 withval="$with_pam_smbpass"
12623 case "$withval" in
12624 yes)
12625 echo "$ac_t""yes" 1>&6
12627 # Conditions under which pam_smbpass should not be built.
12629 if test x$PICFLAG = x; then
12630 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12631 PAM_MOD=""
12632 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12633 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12634 PAM_MOD=""
12635 else
12636 PAM_MOD="bin/pam_smbpass.so"
12640 echo "$ac_t""no" 1>&6
12642 esac
12643 else
12644 echo "$ac_t""no" 1>&6
12650 ###############################################
12651 # test for where we get crypt() from, but only
12652 # if not using PAM
12653 if test $with_pam_for_crypt = no; then
12654 for ac_func in crypt
12656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12657 echo "configure:12658: checking for $ac_func" >&5
12658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660 else
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 /* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func(); below. */
12666 #include <assert.h>
12667 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12670 char $ac_func();
12672 int main() {
12674 /* The GNU C library defines this for functions which it implements
12675 to always fail with ENOSYS. Some functions are actually named
12676 something starting with __ and the normal name is an alias. */
12677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12678 choke me
12679 #else
12680 $ac_func();
12681 #endif
12683 ; return 0; }
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12686 rm -rf conftest*
12687 eval "ac_cv_func_$ac_func=yes"
12688 else
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 rm -rf conftest*
12692 eval "ac_cv_func_$ac_func=no"
12694 rm -f conftest*
12697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12698 echo "$ac_t""yes" 1>&6
12699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12700 cat >> confdefs.h <<EOF
12701 #define $ac_tr_func 1
12704 else
12705 echo "$ac_t""no" 1>&6
12707 done
12709 if test x"$ac_cv_func_crypt" = x"no"; then
12710 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12711 echo "configure:12712: checking for crypt in -lcrypt" >&5
12712 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715 else
12716 ac_save_LIBS="$LIBS"
12717 LIBS="-lcrypt $LIBS"
12718 cat > conftest.$ac_ext <<EOF
12719 #line 12720 "configure"
12720 #include "confdefs.h"
12721 /* Override any gcc2 internal prototype to avoid an error. */
12722 /* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12724 char crypt();
12726 int main() {
12727 crypt()
12728 ; return 0; }
12730 if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12731 rm -rf conftest*
12732 eval "ac_cv_lib_$ac_lib_var=yes"
12733 else
12734 echo "configure: failed program was:" >&5
12735 cat conftest.$ac_ext >&5
12736 rm -rf conftest*
12737 eval "ac_cv_lib_$ac_lib_var=no"
12739 rm -f conftest*
12740 LIBS="$ac_save_LIBS"
12743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12744 echo "$ac_t""yes" 1>&6
12745 LIBS="$LIBS -lcrypt";
12746 cat >> confdefs.h <<\EOF
12747 #define HAVE_CRYPT 1
12750 else
12751 echo "$ac_t""no" 1>&6
12758 ## moved after the check for -lcrypt in order to
12759 ## ensure that the necessary libraries are included
12760 ## check checking for truncated salt. Wrapped by the
12761 ## $with_pam_for_crypt variable as above --jerry
12763 if test $with_pam_for_crypt = no; then
12764 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12765 echo "configure:12766: checking for a crypt that needs truncated salt" >&5
12766 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12768 else
12770 if test "$cross_compiling" = yes; then
12771 samba_cv_HAVE_TRUNCATED_SALT=cross
12772 else
12773 cat > conftest.$ac_ext <<EOF
12774 #line 12775 "configure"
12775 #include "confdefs.h"
12776 #include "${srcdir-.}/tests/crypttest.c"
12778 if { (eval echo configure:12779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12779 then
12780 samba_cv_HAVE_TRUNCATED_SALT=no
12781 else
12782 echo "configure: failed program was:" >&5
12783 cat conftest.$ac_ext >&5
12784 rm -fr conftest*
12785 samba_cv_HAVE_TRUNCATED_SALT=yes
12787 rm -fr conftest*
12792 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12793 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12794 cat >> confdefs.h <<\EOF
12795 #define HAVE_TRUNCATED_SALT 1
12803 ########################################################################################
12805 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12807 ########################################################################################
12809 #################################################
12810 # check for a TDB password database
12811 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12812 echo "configure:12813: checking whether to use TDB SAM database" >&5
12813 # Check whether --with-tdbsam or --without-tdbsam was given.
12814 if test "${with_tdbsam+set}" = set; then
12815 withval="$with_tdbsam"
12816 case "$withval" in
12817 yes)
12818 echo "$ac_t""yes" 1>&6
12819 cat >> confdefs.h <<\EOF
12820 #define WITH_TDB_SAM 1
12825 echo "$ac_t""no" 1>&6
12827 esac
12828 else
12829 echo "$ac_t""no" 1>&6
12834 #################################################
12835 # check for a NISPLUS password database
12836 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12837 echo "configure:12838: checking whether to use NISPLUS SAM database" >&5
12838 # Check whether --with-nisplussam or --without-nisplussam was given.
12839 if test "${with_nisplussam+set}" = set; then
12840 withval="$with_nisplussam"
12841 case "$withval" in
12842 yes)
12843 echo "$ac_t""yes" 1>&6
12844 cat >> confdefs.h <<\EOF
12845 #define WITH_NISPLUS_SAM 1
12850 echo "$ac_t""no" 1>&6
12852 esac
12853 else
12854 echo "$ac_t""no" 1>&6
12859 ########################################################################################
12861 ## END OF TESTS FOR SAM BACKENDS.
12863 ########################################################################################
12865 #################################################
12866 # check for a NISPLUS_HOME support
12867 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12868 echo "configure:12869: checking whether to use NISPLUS_HOME" >&5
12869 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12870 if test "${with_nisplus_home+set}" = set; then
12871 withval="$with_nisplus_home"
12872 case "$withval" in
12873 yes)
12874 echo "$ac_t""yes" 1>&6
12875 cat >> confdefs.h <<\EOF
12876 #define WITH_NISPLUS_HOME 1
12881 echo "$ac_t""no" 1>&6
12883 esac
12884 else
12885 echo "$ac_t""no" 1>&6
12890 #################################################
12891 # check for syslog logging
12892 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12893 echo "configure:12894: checking whether to use syslog logging" >&5
12894 # Check whether --with-syslog or --without-syslog was given.
12895 if test "${with_syslog+set}" = set; then
12896 withval="$with_syslog"
12897 case "$withval" in
12898 yes)
12899 echo "$ac_t""yes" 1>&6
12900 cat >> confdefs.h <<\EOF
12901 #define WITH_SYSLOG 1
12906 echo "$ac_t""no" 1>&6
12908 esac
12909 else
12910 echo "$ac_t""no" 1>&6
12915 #################################################
12916 # check for a shared memory profiling support
12917 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12918 echo "configure:12919: checking whether to use profiling" >&5
12919 # Check whether --with-profiling-data or --without-profiling-data was given.
12920 if test "${with_profiling_data+set}" = set; then
12921 withval="$with_profiling_data"
12922 case "$withval" in
12923 yes)
12924 echo "$ac_t""yes" 1>&6
12925 cat >> confdefs.h <<\EOF
12926 #define WITH_PROFILE 1
12931 echo "$ac_t""no" 1>&6
12933 esac
12934 else
12935 echo "$ac_t""no" 1>&6
12941 #################################################
12942 # check for experimental disk-quotas support
12943 QUOTAOBJS=smbd/noquotas.o
12945 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12946 echo "configure:12947: checking whether to support disk-quotas" >&5
12947 # Check whether --with-quotas or --without-quotas was given.
12948 if test "${with_quotas+set}" = set; then
12949 withval="$with_quotas"
12950 case "$withval" in
12951 yes)
12952 echo "$ac_t""yes" 1>&6
12953 case "$host_os" in
12954 *linux*)
12955 # Check for kernel 2.4.x quota braindamage...
12956 echo $ac_n "checking for linux 2.4.x quota braindamage..""... $ac_c" 1>&6
12957 echo "configure:12958: checking for linux 2.4.x quota braindamage.." >&5
12958 if eval "test \"`echo '$''{'samba_cv_linux_2_4_quota_braindamage'+set}'`\" = set"; then
12959 echo $ac_n "(cached) $ac_c" 1>&6
12960 else
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 #include <stdio.h>
12966 #include <sys/types.h>
12967 #include <asm/types.h>
12968 #include <linux/quota.h>
12969 #include <mntent.h>
12970 #include <linux/unistd.h>
12971 int main() {
12972 struct mem_dqblk D;
12973 ; return 0; }
12975 if { (eval echo configure:12976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12976 rm -rf conftest*
12977 samba_cv_linux_2_4_quota_braindamage=yes
12978 else
12979 echo "configure: failed program was:" >&5
12980 cat conftest.$ac_ext >&5
12981 rm -rf conftest*
12982 samba_cv_linux_2_4_quota_braindamage=no
12984 rm -f conftest*
12987 echo "$ac_t""$samba_cv_linux_2_4_quota_braindamage" 1>&6
12988 if test x"$samba_cv_linux_2_4_quota_braindamage" = x"yes"; then
12989 cat >> confdefs.h <<\EOF
12990 #define LINUX_QUOTAS_2 1
12993 else
12994 cat >> confdefs.h <<\EOF
12995 #define LINUX_QUOTAS_1 1
13002 esac
13003 QUOTAOBJS=smbd/quotas.o
13004 cat >> confdefs.h <<\EOF
13005 #define WITH_QUOTAS 1
13010 echo "$ac_t""no" 1>&6
13012 esac
13013 else
13014 echo "$ac_t""no" 1>&6
13020 #################################################
13021 # check for experimental utmp accounting
13023 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
13024 echo "configure:13025: checking whether to support utmp accounting" >&5
13025 # Check whether --with-utmp or --without-utmp was given.
13026 if test "${with_utmp+set}" = set; then
13027 withval="$with_utmp"
13028 case "$withval" in
13029 yes)
13030 echo "$ac_t""yes" 1>&6
13031 cat >> confdefs.h <<\EOF
13032 #define WITH_UTMP 1
13037 echo "$ac_t""no" 1>&6
13039 esac
13040 else
13041 echo "$ac_t""no" 1>&6
13046 #################################################
13047 # set private directory location
13048 # Check whether --with-privatedir or --without-privatedir was given.
13049 if test "${with_privatedir+set}" = set; then
13050 withval="$with_privatedir"
13051 case "$withval" in
13052 yes|no)
13054 # Just in case anybody calls it without argument
13056 echo "configure: warning: --with-privatedir called without argument - will use default" 1>&2
13057 privatedir='${prefix}/private'
13060 privatedir="$withval"
13062 esac
13064 else
13065 privatedir='${prefix}/private'
13071 #################################################
13072 # set lock directory location
13073 # Check whether --with-lockdir or --without-lockdir was given.
13074 if test "${with_lockdir+set}" = set; then
13075 withval="$with_lockdir"
13076 case "$withval" in
13077 yes|no)
13079 # Just in case anybody calls it without argument
13081 echo "configure: warning: --with-lockdir called without argument - will use default" 1>&2
13082 lockdir='$(VARDIR)/locks'
13085 lockdir="$withval"
13087 esac
13089 else
13090 lockdir='$(VARDIR)/locks'
13096 #################################################
13097 # set SWAT directory location
13098 # Check whether --with-swatdir or --without-swatdir was given.
13099 if test "${with_swatdir+set}" = set; then
13100 withval="$with_swatdir"
13101 case "$withval" in
13102 yes|no)
13104 # Just in case anybody does it
13106 echo "configure: warning: --with-swatdir called without argument - will use default" 1>&2
13107 swatdir='${prefix}/swat'
13110 swatdir="$withval"
13112 esac
13114 else
13115 swatdir='${prefix}/swat'
13121 #################################################
13122 # choose native language(s) of man pages
13123 echo $ac_n "checking chosen man pages' language(s)""... $ac_c" 1>&6
13124 echo "configure:13125: checking chosen man pages' language(s)" >&5
13125 # Check whether --with-manpages-langs or --without-manpages-langs was given.
13126 if test "${with_manpages_langs+set}" = set; then
13127 withval="$with_manpages_langs"
13128 case "$withval" in
13129 yes|no)
13130 echo "configure: warning: --with-manpages-langs called without argument - will use default" 1>&2
13131 manlangs="en"
13134 manlangs="$withval"
13136 esac
13138 echo "$ac_t""$manlangs" 1>&6
13139 manlangs=`echo $manlangs | sed "s/,/ /"` # replacing commas with spaces to produce a list
13141 else
13142 manlangs="en"
13143 echo "$ac_t""$manlangs" 1>&6
13149 #################################################
13150 # these tests are taken from the GNU fileutils package
13151 echo "checking how to get filesystem space usage" 1>&6
13152 echo "configure:13153: checking how to get filesystem space usage" >&5
13153 space=no
13155 # Test for statvfs64.
13156 if test $space = no; then
13157 # SVR4
13158 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
13159 echo "configure:13160: checking statvfs64 function (SVR4)" >&5
13160 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13162 else
13163 if test "$cross_compiling" = yes; then
13164 fu_cv_sys_stat_statvfs64=cross
13165 else
13166 cat > conftest.$ac_ext <<EOF
13167 #line 13168 "configure"
13168 #include "confdefs.h"
13170 #if defined(HAVE_UNISTD_H)
13171 #include <unistd.h>
13172 #endif
13173 #include <sys/types.h>
13174 #include <sys/statvfs.h>
13175 main ()
13177 struct statvfs64 fsd;
13178 exit (statvfs64 (".", &fsd));
13181 if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13182 then
13183 fu_cv_sys_stat_statvfs64=yes
13184 else
13185 echo "configure: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 rm -fr conftest*
13188 fu_cv_sys_stat_statvfs64=no
13190 rm -fr conftest*
13195 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
13196 if test $fu_cv_sys_stat_statvfs64 = yes; then
13197 space=yes
13198 cat >> confdefs.h <<\EOF
13199 #define STAT_STATVFS64 1
13205 # Perform only the link test since it seems there are no variants of the
13206 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
13207 # because that got a false positive on SCO OSR5. Adding the declaration
13208 # of a `struct statvfs' causes this test to fail (as it should) on such
13209 # systems. That system is reported to work fine with STAT_STATFS4 which
13210 # is what it gets when this test fails.
13211 if test $space = no; then
13212 # SVR4
13213 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
13214 echo "configure:13215: checking statvfs function (SVR4)" >&5
13215 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13217 else
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #include <sys/statvfs.h>
13223 int main() {
13224 struct statvfs fsd; statvfs (0, &fsd);
13225 ; return 0; }
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13228 rm -rf conftest*
13229 fu_cv_sys_stat_statvfs=yes
13230 else
13231 echo "configure: failed program was:" >&5
13232 cat conftest.$ac_ext >&5
13233 rm -rf conftest*
13234 fu_cv_sys_stat_statvfs=no
13236 rm -f conftest*
13239 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
13240 if test $fu_cv_sys_stat_statvfs = yes; then
13241 space=yes
13242 cat >> confdefs.h <<\EOF
13243 #define STAT_STATVFS 1
13249 if test $space = no; then
13250 # DEC Alpha running OSF/1
13251 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
13252 echo "configure:13253: checking for 3-argument statfs function (DEC OSF/1)" >&5
13253 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
13254 echo $ac_n "(cached) $ac_c" 1>&6
13255 else
13256 if test "$cross_compiling" = yes; then
13257 fu_cv_sys_stat_statfs3_osf1=no
13258 else
13259 cat > conftest.$ac_ext <<EOF
13260 #line 13261 "configure"
13261 #include "confdefs.h"
13263 #include <sys/param.h>
13264 #include <sys/types.h>
13265 #include <sys/mount.h>
13266 main ()
13268 struct statfs fsd;
13269 fsd.f_fsize = 0;
13270 exit (statfs (".", &fsd, sizeof (struct statfs)));
13273 if { (eval echo configure:13274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13274 then
13275 fu_cv_sys_stat_statfs3_osf1=yes
13276 else
13277 echo "configure: failed program was:" >&5
13278 cat conftest.$ac_ext >&5
13279 rm -fr conftest*
13280 fu_cv_sys_stat_statfs3_osf1=no
13282 rm -fr conftest*
13287 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
13288 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
13289 space=yes
13290 cat >> confdefs.h <<\EOF
13291 #define STAT_STATFS3_OSF1 1
13297 if test $space = no; then
13298 # AIX
13299 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
13300 echo "configure:13301: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
13301 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
13302 echo $ac_n "(cached) $ac_c" 1>&6
13303 else
13304 if test "$cross_compiling" = yes; then
13305 fu_cv_sys_stat_statfs2_bsize=no
13306 else
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13311 #ifdef HAVE_SYS_PARAM_H
13312 #include <sys/param.h>
13313 #endif
13314 #ifdef HAVE_SYS_MOUNT_H
13315 #include <sys/mount.h>
13316 #endif
13317 #ifdef HAVE_SYS_VFS_H
13318 #include <sys/vfs.h>
13319 #endif
13320 main ()
13322 struct statfs fsd;
13323 fsd.f_bsize = 0;
13324 exit (statfs (".", &fsd));
13327 if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13328 then
13329 fu_cv_sys_stat_statfs2_bsize=yes
13330 else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -fr conftest*
13334 fu_cv_sys_stat_statfs2_bsize=no
13336 rm -fr conftest*
13341 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
13342 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
13343 space=yes
13344 cat >> confdefs.h <<\EOF
13345 #define STAT_STATFS2_BSIZE 1
13351 if test $space = no; then
13352 # SVR3
13353 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
13354 echo "configure:13355: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
13355 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13358 if test "$cross_compiling" = yes; then
13359 fu_cv_sys_stat_statfs4=no
13360 else
13361 cat > conftest.$ac_ext <<EOF
13362 #line 13363 "configure"
13363 #include "confdefs.h"
13364 #include <sys/types.h>
13365 #include <sys/statfs.h>
13366 main ()
13368 struct statfs fsd;
13369 exit (statfs (".", &fsd, sizeof fsd, 0));
13372 if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13373 then
13374 fu_cv_sys_stat_statfs4=yes
13375 else
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -fr conftest*
13379 fu_cv_sys_stat_statfs4=no
13381 rm -fr conftest*
13386 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
13387 if test $fu_cv_sys_stat_statfs4 = yes; then
13388 space=yes
13389 cat >> confdefs.h <<\EOF
13390 #define STAT_STATFS4 1
13396 if test $space = no; then
13397 # 4.4BSD and NetBSD
13398 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
13399 echo "configure:13400: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
13400 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13402 else
13403 if test "$cross_compiling" = yes; then
13404 fu_cv_sys_stat_statfs2_fsize=no
13405 else
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 #include <sys/types.h>
13410 #ifdef HAVE_SYS_PARAM_H
13411 #include <sys/param.h>
13412 #endif
13413 #ifdef HAVE_SYS_MOUNT_H
13414 #include <sys/mount.h>
13415 #endif
13416 main ()
13418 struct statfs fsd;
13419 fsd.f_fsize = 0;
13420 exit (statfs (".", &fsd));
13423 if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13424 then
13425 fu_cv_sys_stat_statfs2_fsize=yes
13426 else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -fr conftest*
13430 fu_cv_sys_stat_statfs2_fsize=no
13432 rm -fr conftest*
13437 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
13438 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
13439 space=yes
13440 cat >> confdefs.h <<\EOF
13441 #define STAT_STATFS2_FSIZE 1
13447 if test $space = no; then
13448 # Ultrix
13449 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13450 echo "configure:13451: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13451 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13452 echo $ac_n "(cached) $ac_c" 1>&6
13453 else
13454 if test "$cross_compiling" = yes; then
13455 fu_cv_sys_stat_fs_data=no
13456 else
13457 cat > conftest.$ac_ext <<EOF
13458 #line 13459 "configure"
13459 #include "confdefs.h"
13460 #include <sys/types.h>
13461 #ifdef HAVE_SYS_PARAM_H
13462 #include <sys/param.h>
13463 #endif
13464 #ifdef HAVE_SYS_MOUNT_H
13465 #include <sys/mount.h>
13466 #endif
13467 #ifdef HAVE_SYS_FS_TYPES_H
13468 #include <sys/fs_types.h>
13469 #endif
13470 main ()
13472 struct fs_data fsd;
13473 /* Ultrix's statfs returns 1 for success,
13474 0 for not mounted, -1 for failure. */
13475 exit (statfs (".", &fsd) != 1);
13478 if { (eval echo configure:13479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13479 then
13480 fu_cv_sys_stat_fs_data=yes
13481 else
13482 echo "configure: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13484 rm -fr conftest*
13485 fu_cv_sys_stat_fs_data=no
13487 rm -fr conftest*
13492 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13493 if test $fu_cv_sys_stat_fs_data = yes; then
13494 space=yes
13495 cat >> confdefs.h <<\EOF
13496 #define STAT_STATFS2_FS_DATA 1
13503 # As a gating factor for large file support, in order to
13504 # use <4GB files we must have the following minimal support
13505 # available.
13506 # long long, and a 64 bit off_t or off64_t.
13507 # If we don't have all of these then disable large
13508 # file support.
13510 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13511 echo "configure:13512: checking if large file support can be enabled" >&5
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13516 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13517 #include <sys/types.h>
13518 #else
13519 __COMPILE_ERROR_
13520 #endif
13522 int main() {
13523 int i
13524 ; return 0; }
13526 if { (eval echo configure:13527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13527 rm -rf conftest*
13528 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13529 else
13530 echo "configure: failed program was:" >&5
13531 cat conftest.$ac_ext >&5
13532 rm -rf conftest*
13533 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13535 rm -f conftest*
13536 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13537 cat >> confdefs.h <<\EOF
13538 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13542 echo "$ac_t""$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" 1>&6
13544 # Check whether --with-spinlocks or --without-spinlocks was given.
13545 if test "${with_spinlocks+set}" = set; then
13546 withval="$with_spinlocks"
13550 if test "x$with_spinlocks" = "xyes"; then
13551 cat >> confdefs.h <<\EOF
13552 #define USE_SPINLOCKS 1
13556 case "$host_cpu" in
13557 sparc)
13558 cat >> confdefs.h <<\EOF
13559 #define SPARC_SPINLOCKS 1
13564 i386|i486|i586|i686)
13565 cat >> confdefs.h <<\EOF
13566 #define INTEL_SPINLOCKS 1
13571 mips)
13572 cat >> confdefs.h <<\EOF
13573 #define MIPS_SPINLOCKS 1
13578 powerpc)
13579 cat >> confdefs.h <<\EOF
13580 #define POWERPC_SPINLOCKS 1
13584 esac
13587 #################################################
13588 # check for ACL support
13590 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13591 echo "configure:13592: checking whether to support ACLs" >&5
13592 # Check whether --with-acl-support or --without-acl-support was given.
13593 if test "${with_acl_support+set}" = set; then
13594 withval="$with_acl_support"
13595 case "$withval" in
13596 yes)
13598 case "$host_os" in
13599 *sysv5*)
13600 echo "$ac_t""Using UnixWare ACLs" 1>&6
13601 cat >> confdefs.h <<\EOF
13602 #define HAVE_UNIXWARE_ACLS 1
13606 *solaris*)
13607 echo "$ac_t""Using solaris ACLs" 1>&6
13608 cat >> confdefs.h <<\EOF
13609 #define HAVE_SOLARIS_ACLS 1
13613 *hpux*)
13614 echo "$ac_t""Using HPUX ACLs" 1>&6
13615 cat >> confdefs.h <<\EOF
13616 #define HAVE_HPUX_ACLS 1
13620 *irix*)
13621 echo "$ac_t""Using IRIX ACLs" 1>&6
13622 cat >> confdefs.h <<\EOF
13623 #define HAVE_IRIX_ACLS 1
13627 *aix*)
13628 echo "$ac_t""Using AIX ACLs" 1>&6
13629 cat >> confdefs.h <<\EOF
13630 #define HAVE_AIX_ACLS 1
13634 *osf*)
13635 echo "$ac_t""Using Tru64 ACLs" 1>&6
13636 cat >> confdefs.h <<\EOF
13637 #define HAVE_TRU64_ACLS 1
13640 LIBS="$LIBS -lpacl"
13643 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13644 echo "configure:13645: checking for acl_get_file in -lacl" >&5
13645 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13647 echo $ac_n "(cached) $ac_c" 1>&6
13648 else
13649 ac_save_LIBS="$LIBS"
13650 LIBS="-lacl $LIBS"
13651 cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 /* Override any gcc2 internal prototype to avoid an error. */
13655 /* We use char because int might match the return type of a gcc2
13656 builtin and then its argument prototype would still apply. */
13657 char acl_get_file();
13659 int main() {
13660 acl_get_file()
13661 ; return 0; }
13663 if { (eval echo configure:13664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13664 rm -rf conftest*
13665 eval "ac_cv_lib_$ac_lib_var=yes"
13666 else
13667 echo "configure: failed program was:" >&5
13668 cat conftest.$ac_ext >&5
13669 rm -rf conftest*
13670 eval "ac_cv_lib_$ac_lib_var=no"
13672 rm -f conftest*
13673 LIBS="$ac_save_LIBS"
13676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13677 echo "$ac_t""yes" 1>&6
13678 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13680 cat >> confdefs.h <<EOF
13681 #define $ac_tr_lib 1
13684 LIBS="-lacl $LIBS"
13686 else
13687 echo "$ac_t""no" 1>&6
13690 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13691 echo "configure:13692: checking for ACL support" >&5
13692 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13693 echo $ac_n "(cached) $ac_c" 1>&6
13694 else
13696 cat > conftest.$ac_ext <<EOF
13697 #line 13698 "configure"
13698 #include "confdefs.h"
13699 #include <sys/types.h>
13700 #include <sys/acl.h>
13701 int main() {
13702 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13703 ; return 0; }
13705 if { (eval echo configure:13706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13706 rm -rf conftest*
13707 samba_cv_HAVE_POSIX_ACLS=yes
13708 else
13709 echo "configure: failed program was:" >&5
13710 cat conftest.$ac_ext >&5
13711 rm -rf conftest*
13712 samba_cv_HAVE_POSIX_ACLS=no
13714 rm -f conftest*
13717 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13718 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13719 echo "$ac_t""Using posix ACLs" 1>&6
13720 cat >> confdefs.h <<\EOF
13721 #define HAVE_POSIX_ACLS 1
13724 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13725 echo "configure:13726: checking for acl_get_perm_np" >&5
13726 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13727 echo $ac_n "(cached) $ac_c" 1>&6
13728 else
13730 cat > conftest.$ac_ext <<EOF
13731 #line 13732 "configure"
13732 #include "confdefs.h"
13733 #include <sys/types.h>
13734 #include <sys/acl.h>
13735 int main() {
13736 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13737 ; return 0; }
13739 if { (eval echo configure:13740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13740 rm -rf conftest*
13741 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13742 else
13743 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5
13745 rm -rf conftest*
13746 samba_cv_HAVE_ACL_GET_PERM_NP=no
13748 rm -f conftest*
13751 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13752 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13753 cat >> confdefs.h <<\EOF
13754 #define HAVE_ACL_GET_PERM_NP 1
13760 esac
13763 echo "$ac_t""no" 1>&6
13764 cat >> confdefs.h <<\EOF
13765 #define HAVE_NO_ACLS 1
13769 esac
13770 else
13771 cat >> confdefs.h <<\EOF
13772 #define HAVE_NO_ACLS 1
13775 echo "$ac_t""no" 1>&6
13780 #################################################
13781 # Check whether winbind is supported on this platform. If so we need to
13782 # build and install client programs (WINBIND_TARGETS), sbin programs
13783 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13785 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13786 echo "configure:13787: checking whether to build winbind" >&5
13788 # Initially, the value of $host_os decides whether winbind is supported
13790 case "$host_os" in
13791 *linux*|*irix*)
13792 HAVE_WINBIND=yes
13794 *solaris*)
13795 HAVE_WINBIND=yes
13796 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13797 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13799 *hpux11*)
13800 HAVE_WINBIND=yes
13801 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13804 HAVE_WINBIND=no
13805 winbind_no_reason=", unsupported on $host_os"
13807 esac
13809 # Check the setting of --with-winbindd
13811 # Check whether --with-winbind or --without-winbind was given.
13812 if test "${with_winbind+set}" = set; then
13813 withval="$with_winbind"
13815 case "$withval" in
13816 yes)
13817 HAVE_WINBIND=yes
13820 HAVE_WINBIND=no
13821 winbind_reason=""
13823 esac
13827 # We need unix domain sockets for winbind
13829 if test x"$HAVE_WINBIND" = x"yes"; then
13830 if test x"$samba_cv_unixsocket" = x"no"; then
13831 winbind_no_reason=", no unix domain socket support on $host_os"
13832 HAVE_WINBIND=no
13836 # Display test results
13838 WINBIND_TARGETS=""
13839 WINBIND_STARGETS=""
13840 WINBIND_LTARGETS=""
13841 WINBIND_PAM_PROGS=""
13843 if test x"$HAVE_WINBIND" = x"yes"; then
13844 echo "$ac_t""yes" 1>&6
13846 WINBIND_TARGETS="bin/wbinfo"
13847 WINBIND_STARGETS="bin/winbindd"
13848 if test x"$BLDSHARED" = x"true"; then
13849 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13850 if test x"$with_pam" = x"yes"; then
13851 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13854 else
13855 echo "$ac_t""no$winbind_no_reason" 1>&6
13858 # Substitution time!
13867 # Solaris has some extra fields in struct passwd that need to be
13868 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13869 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13870 # this.
13872 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13873 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13874 # [#include <pwd.h>])
13876 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13877 echo "configure:13878: checking whether struct passwd has pw_comment" >&5
13878 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13879 echo $ac_n "(cached) $ac_c" 1>&6
13880 else
13882 cat > conftest.$ac_ext <<EOF
13883 #line 13884 "configure"
13884 #include "confdefs.h"
13885 #include <pwd.h>
13886 int main() {
13887 struct passwd p; p.pw_comment;
13888 ; return 0; }
13890 if { (eval echo configure:13891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13891 rm -rf conftest*
13892 samba_cv_passwd_pw_comment=yes
13893 else
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13896 rm -rf conftest*
13897 samba_cv_passwd_pw_comment=no
13899 rm -f conftest*
13902 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13903 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13904 cat >> confdefs.h <<\EOF
13905 #define HAVE_PASSWD_PW_COMMENT 1
13910 #AC_CHECK_MEMBER(struct passwd.pw_age,
13911 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13912 # [#include <pwd.h>])
13914 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13915 echo "configure:13916: checking whether struct passwd has pw_age" >&5
13916 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13917 echo $ac_n "(cached) $ac_c" 1>&6
13918 else
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13923 #include <pwd.h>
13924 int main() {
13925 struct passwd p; p.pw_age;
13926 ; return 0; }
13928 if { (eval echo configure:13929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13929 rm -rf conftest*
13930 samba_cv_passwd_pw_age=yes
13931 else
13932 echo "configure: failed program was:" >&5
13933 cat conftest.$ac_ext >&5
13934 rm -rf conftest*
13935 samba_cv_passwd_pw_age=no
13937 rm -f conftest*
13940 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13941 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13942 cat >> confdefs.h <<\EOF
13943 #define HAVE_PASSWD_PW_AGE 1
13948 #################################################
13949 # Check to see if we should use the included popt
13951 # Check whether --with-included-popt or --without-included-popt was given.
13952 if test "${with_included_popt+set}" = set; then
13953 withval="$with_included_popt"
13955 case "$withval" in
13956 yes)
13957 INCLUDED_POPT=yes
13960 INCLUDED_POPT=no
13962 esac
13965 if test x"$INCLUDED_POPT" != x"yes"; then
13966 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13967 echo "configure:13968: checking for poptGetContext in -lpopt" >&5
13968 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13970 echo $ac_n "(cached) $ac_c" 1>&6
13971 else
13972 ac_save_LIBS="$LIBS"
13973 LIBS="-lpopt $LIBS"
13974 cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13977 /* Override any gcc2 internal prototype to avoid an error. */
13978 /* We use char because int might match the return type of a gcc2
13979 builtin and then its argument prototype would still apply. */
13980 char poptGetContext();
13982 int main() {
13983 poptGetContext()
13984 ; return 0; }
13986 if { (eval echo configure:13987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13987 rm -rf conftest*
13988 eval "ac_cv_lib_$ac_lib_var=yes"
13989 else
13990 echo "configure: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13992 rm -rf conftest*
13993 eval "ac_cv_lib_$ac_lib_var=no"
13995 rm -f conftest*
13996 LIBS="$ac_save_LIBS"
13999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14000 echo "$ac_t""yes" 1>&6
14001 INCLUDED_POPT=no
14002 else
14003 echo "$ac_t""no" 1>&6
14004 INCLUDED_POPT=yes
14009 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
14010 echo "configure:14011: checking whether to use included popt" >&5
14011 if test x"$INCLUDED_POPT" = x"yes"; then
14012 echo "$ac_t""$srcdir/popt" 1>&6
14013 BUILD_POPT='$(POPT_OBJS)'
14014 FLAGS1="-I$srcdir/popt"
14015 else
14016 echo "$ac_t""no" 1>&6
14017 LIBS="$LIBS -lpopt"
14022 #################################################
14023 # do extra things if we are running insure
14025 if test "${ac_cv_prog_CC}" = "insure"; then
14026 CPPFLAGS="$CPPFLAGS -D__INSURE__"
14029 #################################################
14030 # final configure stuff
14032 echo $ac_n "checking configure summary""... $ac_c" 1>&6
14033 echo "configure:14034: checking configure summary" >&5
14034 if test "$cross_compiling" = yes; then
14035 echo "configure: warning: cannot run when cross-compiling" 1>&2
14036 else
14037 cat > conftest.$ac_ext <<EOF
14038 #line 14039 "configure"
14039 #include "confdefs.h"
14040 #include "${srcdir-.}/tests/summary.c"
14042 if { (eval echo configure:14043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14043 then
14044 echo "$ac_t""yes" 1>&6
14045 else
14046 echo "configure: failed program was:" >&5
14047 cat conftest.$ac_ext >&5
14048 rm -fr conftest*
14049 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
14051 rm -fr conftest*
14055 builddir=`pwd`
14058 trap '' 1 2 15
14059 cat > confcache <<\EOF
14060 # This file is a shell script that caches the results of configure
14061 # tests run on this system so they can be shared between configure
14062 # scripts and configure runs. It is not useful on other systems.
14063 # If it contains results you don't want to keep, you may remove or edit it.
14065 # By default, configure uses ./config.cache as the cache file,
14066 # creating it if it does not exist already. You can give configure
14067 # the --cache-file=FILE option to use a different cache file; that is
14068 # what configure does when it calls configure scripts in
14069 # subdirectories, so they share the cache.
14070 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14071 # config.status only pays attention to the cache file if you give it the
14072 # --recheck option to rerun configure.
14075 # The following way of writing the cache mishandles newlines in values,
14076 # but we know of no workaround that is simple, portable, and efficient.
14077 # So, don't put newlines in cache variables' values.
14078 # Ultrix sh set writes to stderr and can't be redirected directly,
14079 # and sets the high bit in the cache file unless we assign to the vars.
14080 (set) 2>&1 |
14081 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14082 *ac_space=\ *)
14083 # `set' does not quote correctly, so add quotes (double-quote substitution
14084 # turns \\\\ into \\, and sed turns \\ into \).
14085 sed -n \
14086 -e "s/'/'\\\\''/g" \
14087 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14090 # `set' quotes correctly as required by POSIX, so do not add quotes.
14091 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14093 esac >> confcache
14094 if cmp -s $cache_file confcache; then
14096 else
14097 if test -w $cache_file; then
14098 echo "updating cache $cache_file"
14099 cat confcache > $cache_file
14100 else
14101 echo "not updating unwritable cache $cache_file"
14104 rm -f confcache
14106 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
14108 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14109 # Let make expand exec_prefix.
14110 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14112 # Any assignment to VPATH causes Sun make to only execute
14113 # the first set of double-colon rules, so remove it if not needed.
14114 # If there is a colon in the path, we need to keep it.
14115 if test "x$srcdir" = x.; then
14116 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
14119 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
14121 DEFS=-DHAVE_CONFIG_H
14123 # Without the "./", some shells look in PATH for config.status.
14124 : ${CONFIG_STATUS=./config.status}
14126 echo creating $CONFIG_STATUS
14127 rm -f $CONFIG_STATUS
14128 cat > $CONFIG_STATUS <<EOF
14129 #! /bin/sh
14130 # Generated automatically by configure.
14131 # Run this file to recreate the current configuration.
14132 # This directory was configured as follows,
14133 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14135 # $0 $ac_configure_args
14137 # Compiler output produced by configure, useful for debugging
14138 # configure, is in ./config.log if it exists.
14140 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
14141 for ac_option
14143 case "\$ac_option" in
14144 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14145 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
14146 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
14147 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
14148 echo "$CONFIG_STATUS generated by autoconf version 2.13"
14149 exit 0 ;;
14150 -help | --help | --hel | --he | --h)
14151 echo "\$ac_cs_usage"; exit 0 ;;
14152 *) echo "\$ac_cs_usage"; exit 1 ;;
14153 esac
14154 done
14156 ac_given_srcdir=$srcdir
14157 ac_given_INSTALL="$INSTALL"
14159 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
14161 cat >> $CONFIG_STATUS <<EOF
14163 # Protect against being on the right side of a sed subst in config.status.
14164 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
14165 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
14166 $ac_vpsub
14167 $extrasub
14168 s%@SHELL@%$SHELL%g
14169 s%@CFLAGS@%$CFLAGS%g
14170 s%@CPPFLAGS@%$CPPFLAGS%g
14171 s%@CXXFLAGS@%$CXXFLAGS%g
14172 s%@FFLAGS@%$FFLAGS%g
14173 s%@DEFS@%$DEFS%g
14174 s%@LDFLAGS@%$LDFLAGS%g
14175 s%@LIBS@%$LIBS%g
14176 s%@exec_prefix@%$exec_prefix%g
14177 s%@prefix@%$prefix%g
14178 s%@program_transform_name@%$program_transform_name%g
14179 s%@bindir@%$bindir%g
14180 s%@sbindir@%$sbindir%g
14181 s%@libexecdir@%$libexecdir%g
14182 s%@datadir@%$datadir%g
14183 s%@sysconfdir@%$sysconfdir%g
14184 s%@sharedstatedir@%$sharedstatedir%g
14185 s%@localstatedir@%$localstatedir%g
14186 s%@libdir@%$libdir%g
14187 s%@includedir@%$includedir%g
14188 s%@oldincludedir@%$oldincludedir%g
14189 s%@infodir@%$infodir%g
14190 s%@mandir@%$mandir%g
14191 s%@codepagedir@%$codepagedir%g
14192 s%@configdir@%$configdir%g
14193 s%@lockdir@%$lockdir%g
14194 s%@piddir@%$piddir%g
14195 s%@logfilebase@%$logfilebase%g
14196 s%@privatedir@%$privatedir%g
14197 s%@swatdir@%$swatdir%g
14198 s%@RUNPROG@%$RUNPROG%g
14199 s%@MPROGS@%$MPROGS%g
14200 s%@LDSHFLAGS@%$LDSHFLAGS%g
14201 s%@SHLD@%$SHLD%g
14202 s%@HOST_OS@%$HOST_OS%g
14203 s%@PAM_MOD@%$PAM_MOD%g
14204 s%@WRAP@%$WRAP%g
14205 s%@WRAP32@%$WRAP32%g
14206 s%@PICFLAG@%$PICFLAG%g
14207 s%@PICSUFFIX@%$PICSUFFIX%g
14208 s%@POBAD_CC@%$POBAD_CC%g
14209 s%@SHLIBEXT@%$SHLIBEXT%g
14210 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
14211 s%@CC@%$CC%g
14212 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
14213 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
14214 s%@INSTALL_DATA@%$INSTALL_DATA%g
14215 s%@AWK@%$AWK%g
14216 s%@BROKEN_CC@%$BROKEN_CC%g
14217 s%@host@%$host%g
14218 s%@host_alias@%$host_alias%g
14219 s%@host_cpu@%$host_cpu%g
14220 s%@host_vendor@%$host_vendor%g
14221 s%@host_os@%$host_os%g
14222 s%@target@%$target%g
14223 s%@target_alias@%$target_alias%g
14224 s%@target_cpu@%$target_cpu%g
14225 s%@target_vendor@%$target_vendor%g
14226 s%@target_os@%$target_os%g
14227 s%@build@%$build%g
14228 s%@build_alias@%$build_alias%g
14229 s%@build_cpu@%$build_cpu%g
14230 s%@build_vendor@%$build_vendor%g
14231 s%@build_os@%$build_os%g
14232 s%@CPP@%$CPP%g
14233 s%@LIBOBJS@%$LIBOBJS%g
14234 s%@TERMLIBS@%$TERMLIBS%g
14235 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
14236 s%@ROFF@%$ROFF%g
14237 s%@DYNEXP@%$DYNEXP%g
14238 s%@QUOTAOBJS@%$QUOTAOBJS%g
14239 s%@manlangs@%$manlangs%g
14240 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
14241 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
14242 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
14243 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
14244 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
14245 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
14246 s%@BUILD_POPT@%$BUILD_POPT%g
14247 s%@FLAGS1@%$FLAGS1%g
14248 s%@builddir@%$builddir%g
14250 CEOF
14253 cat >> $CONFIG_STATUS <<\EOF
14255 # Split the substitutions into bite-sized pieces for seds with
14256 # small command number limits, like on Digital OSF/1 and HP-UX.
14257 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
14258 ac_file=1 # Number of current file.
14259 ac_beg=1 # First line for current file.
14260 ac_end=$ac_max_sed_cmds # Line after last line for current file.
14261 ac_more_lines=:
14262 ac_sed_cmds=""
14263 while $ac_more_lines; do
14264 if test $ac_beg -gt 1; then
14265 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
14266 else
14267 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
14269 if test ! -s conftest.s$ac_file; then
14270 ac_more_lines=false
14271 rm -f conftest.s$ac_file
14272 else
14273 if test -z "$ac_sed_cmds"; then
14274 ac_sed_cmds="sed -f conftest.s$ac_file"
14275 else
14276 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
14278 ac_file=`expr $ac_file + 1`
14279 ac_beg=$ac_end
14280 ac_end=`expr $ac_end + $ac_max_sed_cmds`
14282 done
14283 if test -z "$ac_sed_cmds"; then
14284 ac_sed_cmds=cat
14288 cat >> $CONFIG_STATUS <<EOF
14290 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
14292 cat >> $CONFIG_STATUS <<\EOF
14293 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
14294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14295 case "$ac_file" in
14296 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14297 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14298 *) ac_file_in="${ac_file}.in" ;;
14299 esac
14301 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14303 # Remove last slash and all that follows it. Not all systems have dirname.
14304 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14305 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14306 # The file is in a subdirectory.
14307 test ! -d "$ac_dir" && mkdir "$ac_dir"
14308 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
14309 # A "../" for each directory in $ac_dir_suffix.
14310 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
14311 else
14312 ac_dir_suffix= ac_dots=
14315 case "$ac_given_srcdir" in
14316 .) srcdir=.
14317 if test -z "$ac_dots"; then top_srcdir=.
14318 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
14319 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
14320 *) # Relative path.
14321 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14322 top_srcdir="$ac_dots$ac_given_srcdir" ;;
14323 esac
14325 case "$ac_given_INSTALL" in
14326 [/$]*) INSTALL="$ac_given_INSTALL" ;;
14327 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
14328 esac
14330 echo creating "$ac_file"
14331 rm -f "$ac_file"
14332 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
14333 case "$ac_file" in
14334 *Makefile*) ac_comsub="1i\\
14335 # $configure_input" ;;
14336 *) ac_comsub= ;;
14337 esac
14339 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14340 sed -e "$ac_comsub
14341 s%@configure_input@%$configure_input%g
14342 s%@srcdir@%$srcdir%g
14343 s%@top_srcdir@%$top_srcdir%g
14344 s%@INSTALL@%$INSTALL%g
14345 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
14346 fi; done
14347 rm -f conftest.s*
14349 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14350 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14352 # ac_d sets the value in "#define NAME VALUE" lines.
14353 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14354 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
14355 ac_dC='\3'
14356 ac_dD='%g'
14357 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14358 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14359 ac_uB='\([ ]\)%\1#\2define\3'
14360 ac_uC=' '
14361 ac_uD='\4%g'
14362 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14363 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14364 ac_eB='$%\1#\2define\3'
14365 ac_eC=' '
14366 ac_eD='%g'
14368 if test "${CONFIG_HEADERS+set}" != set; then
14370 cat >> $CONFIG_STATUS <<EOF
14371 CONFIG_HEADERS="include/config.h"
14373 cat >> $CONFIG_STATUS <<\EOF
14375 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
14376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14377 case "$ac_file" in
14378 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
14379 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14380 *) ac_file_in="${ac_file}.in" ;;
14381 esac
14383 echo creating $ac_file
14385 rm -f conftest.frag conftest.in conftest.out
14386 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
14387 cat $ac_file_inputs > conftest.in
14391 # Transform confdefs.h into a sed script conftest.vals that substitutes
14392 # the proper values into config.h.in to produce config.h. And first:
14393 # Protect against being on the right side of a sed subst in config.status.
14394 # Protect against being in an unquoted here document in config.status.
14395 rm -f conftest.vals
14396 cat > conftest.hdr <<\EOF
14397 s/[\\&%]/\\&/g
14398 s%[\\$`]%\\&%g
14399 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14400 s%ac_d%ac_u%gp
14401 s%ac_u%ac_e%gp
14403 sed -n -f conftest.hdr confdefs.h > conftest.vals
14404 rm -f conftest.hdr
14406 # This sed command replaces #undef with comments. This is necessary, for
14407 # example, in the case of _POSIX_SOURCE, which is predefined and required
14408 # on some systems where configure will not decide to define it.
14409 cat >> conftest.vals <<\EOF
14410 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14413 # Break up conftest.vals because some shells have a limit on
14414 # the size of here documents, and old seds have small limits too.
14416 rm -f conftest.tail
14417 while :
14419 ac_lines=`grep -c . conftest.vals`
14420 # grep -c gives empty output for an empty file on some AIX systems.
14421 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14422 # Write a limited-size here document to conftest.frag.
14423 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14424 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14425 echo 'CEOF
14426 sed -f conftest.frag conftest.in > conftest.out
14427 rm -f conftest.in
14428 mv conftest.out conftest.in
14429 ' >> $CONFIG_STATUS
14430 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14431 rm -f conftest.vals
14432 mv conftest.tail conftest.vals
14433 done
14434 rm -f conftest.vals
14436 cat >> $CONFIG_STATUS <<\EOF
14437 rm -f conftest.frag conftest.h
14438 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14439 cat conftest.in >> conftest.h
14440 rm -f conftest.in
14441 if cmp -s $ac_file conftest.h 2>/dev/null; then
14442 echo "$ac_file is unchanged"
14443 rm -f conftest.h
14444 else
14445 # Remove last slash and all that follows it. Not all systems have dirname.
14446 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14447 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14448 # The file is in a subdirectory.
14449 test ! -d "$ac_dir" && mkdir "$ac_dir"
14451 rm -f $ac_file
14452 mv conftest.h $ac_file
14454 fi; done
14457 cat >> $CONFIG_STATUS <<EOF
14460 cat >> $CONFIG_STATUS <<\EOF
14462 exit 0
14464 chmod +x $CONFIG_STATUS
14465 rm -fr confdefs* $ac_clean_files
14466 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
14469 #################################################
14470 # Print very concise instructions on building/use
14471 if test "x$enable_dmalloc" = xyes
14472 then
14473 echo "$ac_t""Note: The dmalloc debug library will be included. To turn it on use" 1>&6
14474 echo "$ac_t"" \$ eval \`dmalloc samba\`." 1>&6