if we are adding a new sambaAccount, make sure that we add a
[Samba.git] / source / configure
blobb3bbea962ec5a1334a7a8f0a5cdab80262afd43d
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-cups Turn on CUPS support (default=auto)"
35 ac_help="$ac_help
36 --with-readline[=DIR] Look for readline include/libs in DIR (default=auto)"
37 ac_help="$ac_help
38 --with-smbwrapper Include SMB wrapper support (default=no)"
39 ac_help="$ac_help
40 --with-afs Include AFS support (default=no)"
41 ac_help="$ac_help
42 --with-dce-dfs Include DCE/DFS support (default=no)"
43 ac_help="$ac_help
44 --with-krb4=base-dir Include Kerberos IV support (default=no)"
45 ac_help="$ac_help
46 --with-krb5=base-dir Include Kerberos 5 support (default=no)"
47 ac_help="$ac_help
48 --with-automount Include AUTOMOUNT support (default=no)"
49 ac_help="$ac_help
50 --with-smbmount Include SMBMOUNT (Linux only) support (default=no)"
51 ac_help="$ac_help
52 --with-pam Include PAM password database support (default=no)"
53 ac_help="$ac_help
54 --with-pam_smbpass Include the smbpass PAM module (default=no)"
55 ac_help="$ac_help
56 --with-tdbsam Include experimental TDB SAM support (default=no)"
57 ac_help="$ac_help
58 --with-ldapsam Include experimental LDAP SAM support (default=no)"
59 ac_help="$ac_help
60 --with-nisplussam Include NISPLUS SAM support (default=no)"
61 ac_help="$ac_help
62 --with-nisplus-home Include NISPLUS_HOME support (default=no)"
63 ac_help="$ac_help
64 --with-ssl Include SSL support (default=no)
65 --with-sslinc=DIR Where the SSL includes are (defaults to /usr/local/ssl/include)
66 --with-ssllib=DIR Where the SSL libraries are (defaults to /usr/local/ssl/lib)"
67 ac_help="$ac_help
68 --with-syslog Include experimental SYSLOG support (default=no)"
69 ac_help="$ac_help
70 --with-profiling-data Include gathering source code profile information (default=no)"
71 ac_help="$ac_help
72 --with-quotas Include experimental disk-quota support (default=no)"
73 ac_help="$ac_help
74 --with-utmp Include experimental utmp accounting (default=no)"
75 ac_help="$ac_help
76 --with-msdfs Include MS Dfs support (default=no)"
77 ac_help="$ac_help
78 --with-libsmbclient Build the libsmbclient shared library (default=no)"
79 ac_help="$ac_help
80 --with-spinlocks Use spin locks instead of fcntl locks (default=no)"
81 ac_help="$ac_help
82 --with-acl-support Include ACL support (default=no)"
83 ac_help="$ac_help
84 --with-winbind Build winbind (default, if supported by OS)"
85 ac_help="$ac_help
86 --with-winbind-auth-challenge Enable winbindd_pam_auth_crap() functionality (default no)"
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
790 # compile with optimization and without debugging by default
791 CFLAGS="-O ${CFLAGS}"
793 # Check whether --enable-debug or --disable-debug was given.
794 if test "${enable_debug+set}" = set; then
795 enableval="$enable_debug"
796 if eval "test x$enable_debug = xyes"; then
797 CFLAGS="${CFLAGS} -g"
804 # Extract the first word of "gcc", so it can be a program name with args.
805 set dummy gcc; ac_word=$2
806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
807 echo "configure:808: checking for $ac_word" >&5
808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
809 echo $ac_n "(cached) $ac_c" 1>&6
810 else
811 if test -n "$CC"; then
812 ac_cv_prog_CC="$CC" # Let the user override the test.
813 else
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
815 ac_dummy="$PATH"
816 for ac_dir in $ac_dummy; do
817 test -z "$ac_dir" && ac_dir=.
818 if test -f $ac_dir/$ac_word; then
819 ac_cv_prog_CC="gcc"
820 break
822 done
823 IFS="$ac_save_ifs"
826 CC="$ac_cv_prog_CC"
827 if test -n "$CC"; then
828 echo "$ac_t""$CC" 1>&6
829 else
830 echo "$ac_t""no" 1>&6
833 if test -z "$CC"; then
834 # Extract the first word of "cc", so it can be a program name with args.
835 set dummy cc; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 if test -n "$CC"; then
842 ac_cv_prog_CC="$CC" # Let the user override the test.
843 else
844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 ac_prog_rejected=no
846 ac_dummy="$PATH"
847 for ac_dir in $ac_dummy; do
848 test -z "$ac_dir" && ac_dir=.
849 if test -f $ac_dir/$ac_word; then
850 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
851 ac_prog_rejected=yes
852 continue
854 ac_cv_prog_CC="cc"
855 break
857 done
858 IFS="$ac_save_ifs"
859 if test $ac_prog_rejected = yes; then
860 # We found a bogon in the path, so make sure we never use it.
861 set dummy $ac_cv_prog_CC
862 shift
863 if test $# -gt 0; then
864 # We chose a different compiler from the bogus one.
865 # However, it has the same basename, so the bogon will be chosen
866 # first if we set CC to just the basename; use the full file name.
867 shift
868 set dummy "$ac_dir/$ac_word" "$@"
869 shift
870 ac_cv_prog_CC="$@"
875 CC="$ac_cv_prog_CC"
876 if test -n "$CC"; then
877 echo "$ac_t""$CC" 1>&6
878 else
879 echo "$ac_t""no" 1>&6
882 if test -z "$CC"; then
883 case "`uname -s`" in
884 *win32* | *WIN32*)
885 # Extract the first word of "cl", so it can be a program name with args.
886 set dummy cl; ac_word=$2
887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888 echo "configure:889: checking for $ac_word" >&5
889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
890 echo $ac_n "(cached) $ac_c" 1>&6
891 else
892 if test -n "$CC"; then
893 ac_cv_prog_CC="$CC" # Let the user override the test.
894 else
895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
896 ac_dummy="$PATH"
897 for ac_dir in $ac_dummy; do
898 test -z "$ac_dir" && ac_dir=.
899 if test -f $ac_dir/$ac_word; then
900 ac_cv_prog_CC="cl"
901 break
903 done
904 IFS="$ac_save_ifs"
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 esac
916 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
919 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
920 echo "configure:921: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
922 ac_ext=c
923 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
924 ac_cpp='$CPP $CPPFLAGS'
925 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
926 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
927 cross_compiling=$ac_cv_prog_cc_cross
929 cat > conftest.$ac_ext << EOF
931 #line 932 "configure"
932 #include "confdefs.h"
934 main(){return(0);}
936 if { (eval echo configure:937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
937 ac_cv_prog_cc_works=yes
938 # If we can't run a trivial program, we are probably using a cross compiler.
939 if (./conftest; exit) 2>/dev/null; then
940 ac_cv_prog_cc_cross=no
941 else
942 ac_cv_prog_cc_cross=yes
944 else
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 ac_cv_prog_cc_works=no
949 rm -fr conftest*
950 ac_ext=c
951 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
954 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
955 cross_compiling=$ac_cv_prog_cc_cross
957 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
958 if test $ac_cv_prog_cc_works = no; then
959 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
961 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
962 echo "configure:963: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
963 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
964 cross_compiling=$ac_cv_prog_cc_cross
966 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
967 echo "configure:968: checking whether we are using GNU C" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 cat > conftest.c <<EOF
972 #ifdef __GNUC__
973 yes;
974 #endif
976 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
977 ac_cv_prog_gcc=yes
978 else
979 ac_cv_prog_gcc=no
983 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
985 if test $ac_cv_prog_gcc = yes; then
986 GCC=yes
987 else
988 GCC=
991 ac_test_CFLAGS="${CFLAGS+set}"
992 ac_save_CFLAGS="$CFLAGS"
993 CFLAGS=
994 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
995 echo "configure:996: checking whether ${CC-cc} accepts -g" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
998 else
999 echo 'void f(){}' > conftest.c
1000 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1001 ac_cv_prog_cc_g=yes
1002 else
1003 ac_cv_prog_cc_g=no
1005 rm -f conftest*
1009 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1010 if test "$ac_test_CFLAGS" = set; then
1011 CFLAGS="$ac_save_CFLAGS"
1012 elif test $ac_cv_prog_cc_g = yes; then
1013 if test "$GCC" = yes; then
1014 CFLAGS="-g -O2"
1015 else
1016 CFLAGS="-g"
1018 else
1019 if test "$GCC" = yes; then
1020 CFLAGS="-O2"
1021 else
1022 CFLAGS=
1026 ac_aux_dir=
1027 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1028 if test -f $ac_dir/install-sh; then
1029 ac_aux_dir=$ac_dir
1030 ac_install_sh="$ac_aux_dir/install-sh -c"
1031 break
1032 elif test -f $ac_dir/install.sh; then
1033 ac_aux_dir=$ac_dir
1034 ac_install_sh="$ac_aux_dir/install.sh -c"
1035 break
1037 done
1038 if test -z "$ac_aux_dir"; then
1039 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1041 ac_config_guess=$ac_aux_dir/config.guess
1042 ac_config_sub=$ac_aux_dir/config.sub
1043 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1045 # Find a good install program. We prefer a C program (faster),
1046 # so one script is as good as another. But avoid the broken or
1047 # incompatible versions:
1048 # SysV /etc/install, /usr/sbin/install
1049 # SunOS /usr/etc/install
1050 # IRIX /sbin/install
1051 # AIX /bin/install
1052 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1053 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1054 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1055 # ./install, which can be erroneously created by make from ./install.sh.
1056 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1057 echo "configure:1058: checking for a BSD compatible install" >&5
1058 if test -z "$INSTALL"; then
1059 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1063 for ac_dir in $PATH; do
1064 # Account for people who put trailing slashes in PATH elements.
1065 case "$ac_dir/" in
1066 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1068 # OSF1 and SCO ODT 3.0 have their own names for install.
1069 # Don't use installbsd from OSF since it installs stuff as root
1070 # by default.
1071 for ac_prog in ginstall scoinst install; do
1072 if test -f $ac_dir/$ac_prog; then
1073 if test $ac_prog = install &&
1074 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1075 # AIX install. It has an incompatible calling convention.
1077 else
1078 ac_cv_path_install="$ac_dir/$ac_prog -c"
1079 break 2
1082 done
1084 esac
1085 done
1086 IFS="$ac_save_IFS"
1089 if test "${ac_cv_path_install+set}" = set; then
1090 INSTALL="$ac_cv_path_install"
1091 else
1092 # As a last resort, use the slow shell script. We don't cache a
1093 # path for INSTALL within a source directory, because that will
1094 # break other packages using the cache if that directory is
1095 # removed, or if the path is relative.
1096 INSTALL="$ac_install_sh"
1099 echo "$ac_t""$INSTALL" 1>&6
1101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1102 # It thinks the first close brace ends the variable substitution.
1103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1109 for ac_prog in gawk mawk nawk awk
1111 # Extract the first word of "$ac_prog", so it can be a program name with args.
1112 set dummy $ac_prog; ac_word=$2
1113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1114 echo "configure:1115: checking for $ac_word" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118 if test -n "$AWK"; then
1119 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1120 else
1121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 ac_dummy="$PATH"
1123 for ac_dir in $ac_dummy; do
1124 test -z "$ac_dir" && ac_dir=.
1125 if test -f $ac_dir/$ac_word; then
1126 ac_cv_prog_AWK="$ac_prog"
1127 break
1129 done
1130 IFS="$ac_save_ifs"
1133 AWK="$ac_cv_prog_AWK"
1134 if test -n "$AWK"; then
1135 echo "$ac_t""$AWK" 1>&6
1136 else
1137 echo "$ac_t""no" 1>&6
1140 test -n "$AWK" && break
1141 done
1143 LD=ld
1144 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1145 echo "configure:1146: checking if the linker ($LD) is GNU ld" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1150 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1151 ac_cv_prog_gnu_ld=yes
1152 else
1153 ac_cv_prog_gnu_ld=no
1157 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1159 # Extract the first word of "passwd", so it can be a program name with args.
1160 set dummy passwd; ac_word=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_path_passwd_program'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1165 else
1166 case "$passwd_program" in
1168 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a path.
1170 ?:/*)
1171 ac_cv_path_passwd_program="$passwd_program" # Let the user override the test with a dos path.
1174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 ac_dummy="$PATH"
1176 for ac_dir in $ac_dummy; do
1177 test -z "$ac_dir" && ac_dir=.
1178 if test -f $ac_dir/$ac_word; then
1179 ac_cv_path_passwd_program="$ac_dir/$ac_word"
1180 break
1182 done
1183 IFS="$ac_save_ifs"
1184 test -z "$ac_cv_path_passwd_program" && ac_cv_path_passwd_program="/bin/passwd"
1186 esac
1188 passwd_program="$ac_cv_path_passwd_program"
1189 if test -n "$passwd_program"; then
1190 echo "$ac_t""$passwd_program" 1>&6
1191 else
1192 echo "$ac_t""no" 1>&6
1197 if test "x$CC" != xcc; then
1198 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
1199 echo "configure:1200: checking whether $CC and cc understand -c and -o together" >&5
1200 else
1201 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether cc understands -c and -o together" >&5
1204 set dummy $CC; ac_cc="`echo $2 |
1205 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
1206 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1208 else
1209 echo 'foo(){}' > conftest.c
1210 # Make sure it works both with $CC and with simple cc.
1211 # We do the test twice because some compilers refuse to overwrite an
1212 # existing .o file with -o, though they will create one.
1213 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5'
1214 if { (eval echo configure:1215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1215 test -f conftest.o && { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1216 then
1217 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
1218 if test "x$CC" != xcc; then
1219 # Test first that cc exists at all.
1220 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
1221 ac_try='cc -c conftest.c -o conftest.o 1>&5'
1222 if { (eval echo configure:1223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
1223 test -f conftest.o && { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
1224 then
1225 # cc works too.
1227 else
1228 # cc exists but doesn't like -o.
1229 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1233 else
1234 eval ac_cv_prog_cc_${ac_cc}_c_o=no
1236 rm -f conftest*
1239 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
1240 echo "$ac_t""yes" 1>&6
1241 else
1242 echo "$ac_t""no" 1>&6
1243 cat >> confdefs.h <<\EOF
1244 #define NO_MINUS_C_MINUS_O 1
1249 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
1250 BROKEN_CC=
1251 else
1252 BROKEN_CC=#
1256 echo $ac_n "checking that the C compiler understands volatile""... $ac_c" 1>&6
1257 echo "configure:1258: checking that the C compiler understands volatile" >&5
1258 if eval "test \"`echo '$''{'samba_cv_volatile'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1260 else
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <sys/types.h>
1266 int main() {
1267 volatile int i = 0
1268 ; return 0; }
1270 if { (eval echo configure:1271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1271 rm -rf conftest*
1272 samba_cv_volatile=yes
1273 else
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1276 rm -rf conftest*
1277 samba_cv_volatile=no
1279 rm -f conftest*
1282 echo "$ac_t""$samba_cv_volatile" 1>&6
1283 if test x"$samba_cv_volatile" = x"yes"; then
1284 cat >> confdefs.h <<\EOF
1285 #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*)
1419 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether ${CC-cc} accepts -Ae" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1423 else
1424 echo 'void f(){}' > conftest.c
1425 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1426 ac_cv_prog_cc_Ae=yes
1427 else
1428 ac_cv_prog_cc_Ae=no
1430 rm -f conftest*
1434 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1435 # mmap on HPUX is completely broken...
1436 cat >> confdefs.h <<\EOF
1437 #define MMAP_BLACKLIST 1
1440 if test $ac_cv_prog_cc_Ae = yes; then
1441 CPPFLAGS="$CPPFLAGS -Ae"
1444 # Defines needed for HPUX support.
1445 # HPUX has bigcrypt but (sometimes?) doesn't use it for
1446 # password hashing - hence the USE_BOTH_CRYPT_CALLS define.
1448 case `uname -r` in
1449 *9*|*10*)
1450 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1451 cat >> confdefs.h <<\EOF
1452 #define USE_BOTH_CRYPT_CALLS 1
1455 cat >> confdefs.h <<\EOF
1456 #define _HPUX_SOURCE 1
1459 cat >> confdefs.h <<\EOF
1460 #define _POSIX_SOURCE 1
1463 cat >> confdefs.h <<\EOF
1464 #define _ALIGNMENT_REQUIRED 1
1467 cat >> confdefs.h <<\EOF
1468 #define _MAX_ALIGNMENT 4
1472 *11*)
1473 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4"
1474 cat >> confdefs.h <<\EOF
1475 #define _HPUX_SOURCE 1
1478 cat >> confdefs.h <<\EOF
1479 #define _POSIX_SOURCE 1
1482 cat >> confdefs.h <<\EOF
1483 #define _LARGEFILE64_SOURCE 1
1486 cat >> confdefs.h <<\EOF
1487 #define _ALIGNMENT_REQUIRED 1
1490 cat >> confdefs.h <<\EOF
1491 #define _MAX_ALIGNMENT 4
1494 cat >> confdefs.h <<\EOF
1495 #define USE_BOTH_CRYPT_CALLS 1
1499 esac
1500 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 stdlib.h string.h strings.h syslog.h sys/file.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/param.h ctype.h sys/wait.h sys/resource.h sys/ioctl.h sys/ipc.h sys/mode.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/mman.h sys/filio.h sys/priv.h sys/shm.h sys/socket.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 syslog.h sys/syslog.h sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h termio.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 sys/termio.h sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.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
2504 for ac_hdr in security/pam_modules.h security/_pam_macros.h dlfcn.h synch.h pthread.h nsswitch.h
2506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <$ac_hdr>
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2521 rm -rf conftest*
2522 eval "ac_cv_header_$ac_safe=yes"
2523 else
2524 echo "$ac_err" >&5
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 rm -rf conftest*
2528 eval "ac_cv_header_$ac_safe=no"
2530 rm -f conftest*
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_hdr 1
2539 else
2540 echo "$ac_t""no" 1>&6
2542 done
2546 # HPUX has a bug in that including shadow.h causes a re-definition of MAXINT.
2547 # This causes configure to fail to detect it. Check for shadow separately on HPUX.
2549 case "$host_os" in
2550 *hpux*)
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 #include <shadow.h>
2555 int main() {
2556 struct spwd testme
2557 ; return 0; }
2559 if { (eval echo configure:2560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2560 rm -rf conftest*
2561 ac_cv_header_shadow_h=yes
2562 else
2563 echo "configure: failed program was:" >&5
2564 cat conftest.$ac_ext >&5
2565 rm -rf conftest*
2566 ac_cv_header_shadow_h=no
2568 rm -f conftest*
2569 if test x"$ac_cv_header_shadow_h" = x"yes"; then
2570 cat >> confdefs.h <<\EOF
2571 #define HAVE_SHADOW_H 1
2576 esac
2577 for ac_hdr in shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.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 nss.h nss_common.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.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 stropts.h poll.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/capability.h syscall.h sys/syscall.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
2737 for ac_hdr in sys/acl.h sys/cdefs.h glob.h
2739 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2740 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2741 echo "configure:2742: checking for $ac_hdr" >&5
2742 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 #include <$ac_hdr>
2750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2754 rm -rf conftest*
2755 eval "ac_cv_header_$ac_safe=yes"
2756 else
2757 echo "$ac_err" >&5
2758 echo "configure: failed program was:" >&5
2759 cat conftest.$ac_ext >&5
2760 rm -rf conftest*
2761 eval "ac_cv_header_$ac_safe=no"
2763 rm -f conftest*
2765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2768 cat >> confdefs.h <<EOF
2769 #define $ac_tr_hdr 1
2772 else
2773 echo "$ac_t""no" 1>&6
2775 done
2778 # For experimental utmp support (lastlog on some BSD-like systems)
2779 for ac_hdr in utmp.h utmpx.h lastlog.h
2781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2783 echo "configure:2784: checking for $ac_hdr" >&5
2784 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2785 echo $ac_n "(cached) $ac_c" 1>&6
2786 else
2787 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2790 #include <$ac_hdr>
2792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2793 { (eval echo configure:2794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2795 if test -z "$ac_err"; then
2796 rm -rf conftest*
2797 eval "ac_cv_header_$ac_safe=yes"
2798 else
2799 echo "$ac_err" >&5
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 rm -rf conftest*
2803 eval "ac_cv_header_$ac_safe=no"
2805 rm -f conftest*
2807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2808 echo "$ac_t""yes" 1>&6
2809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2810 cat >> confdefs.h <<EOF
2811 #define $ac_tr_hdr 1
2814 else
2815 echo "$ac_t""no" 1>&6
2817 done
2820 # For quotas on Veritas VxFS filesystems
2821 for ac_hdr in sys/fs/vx_quota.h
2823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_hdr" >&5
2826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 #include <$ac_hdr>
2834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2838 rm -rf conftest*
2839 eval "ac_cv_header_$ac_safe=yes"
2840 else
2841 echo "$ac_err" >&5
2842 echo "configure: failed program was:" >&5
2843 cat conftest.$ac_ext >&5
2844 rm -rf conftest*
2845 eval "ac_cv_header_$ac_safe=no"
2847 rm -f conftest*
2849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2852 cat >> confdefs.h <<EOF
2853 #define $ac_tr_hdr 1
2856 else
2857 echo "$ac_t""no" 1>&6
2859 done
2862 # For quotas on Linux XFS filesystems
2863 for ac_hdr in linux/xqm.h
2865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2867 echo "configure:2868: checking for $ac_hdr" >&5
2868 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2874 #include <$ac_hdr>
2876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2877 { (eval echo configure:2878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2879 if test -z "$ac_err"; then
2880 rm -rf conftest*
2881 eval "ac_cv_header_$ac_safe=yes"
2882 else
2883 echo "$ac_err" >&5
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2886 rm -rf conftest*
2887 eval "ac_cv_header_$ac_safe=no"
2889 rm -f conftest*
2891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2892 echo "$ac_t""yes" 1>&6
2893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2894 cat >> confdefs.h <<EOF
2895 #define $ac_tr_hdr 1
2898 else
2899 echo "$ac_t""no" 1>&6
2901 done
2904 echo $ac_n "checking size of int""... $ac_c" 1>&6
2905 echo "configure:2906: checking size of int" >&5
2906 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2908 else
2909 if test "$cross_compiling" = yes; then
2910 ac_cv_sizeof_int=cross
2911 else
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 #include <stdio.h>
2916 int main()
2918 FILE *f=fopen("conftestval", "w");
2919 if (!f) return(1);
2920 fprintf(f, "%d\n", sizeof(int));
2921 return(0);
2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2925 then
2926 ac_cv_sizeof_int=`cat conftestval`
2927 else
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 rm -fr conftest*
2931 ac_cv_sizeof_int=0
2933 rm -fr conftest*
2937 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2938 cat >> confdefs.h <<EOF
2939 #define SIZEOF_INT $ac_cv_sizeof_int
2943 echo $ac_n "checking size of long""... $ac_c" 1>&6
2944 echo "configure:2945: checking size of long" >&5
2945 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2947 else
2948 if test "$cross_compiling" = yes; then
2949 ac_cv_sizeof_long=cross
2950 else
2951 cat > conftest.$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2954 #include <stdio.h>
2955 int main()
2957 FILE *f=fopen("conftestval", "w");
2958 if (!f) return(1);
2959 fprintf(f, "%d\n", sizeof(long));
2960 return(0);
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2964 then
2965 ac_cv_sizeof_long=`cat conftestval`
2966 else
2967 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5
2969 rm -fr conftest*
2970 ac_cv_sizeof_long=0
2972 rm -fr conftest*
2976 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2977 cat >> confdefs.h <<EOF
2978 #define SIZEOF_LONG $ac_cv_sizeof_long
2982 echo $ac_n "checking size of short""... $ac_c" 1>&6
2983 echo "configure:2984: checking size of short" >&5
2984 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2986 else
2987 if test "$cross_compiling" = yes; then
2988 ac_cv_sizeof_short=cross
2989 else
2990 cat > conftest.$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <stdio.h>
2994 int main()
2996 FILE *f=fopen("conftestval", "w");
2997 if (!f) return(1);
2998 fprintf(f, "%d\n", sizeof(short));
2999 return(0);
3002 if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3003 then
3004 ac_cv_sizeof_short=`cat conftestval`
3005 else
3006 echo "configure: failed program was:" >&5
3007 cat conftest.$ac_ext >&5
3008 rm -fr conftest*
3009 ac_cv_sizeof_short=0
3011 rm -fr conftest*
3015 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3016 cat >> confdefs.h <<EOF
3017 #define SIZEOF_SHORT $ac_cv_sizeof_short
3022 echo $ac_n "checking for working const""... $ac_c" 1>&6
3023 echo "configure:3024: checking for working const" >&5
3024 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3026 else
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3031 int main() {
3033 /* Ultrix mips cc rejects this. */
3034 typedef int charset[2]; const charset x;
3035 /* SunOS 4.1.1 cc rejects this. */
3036 char const *const *ccp;
3037 char **p;
3038 /* NEC SVR4.0.2 mips cc rejects this. */
3039 struct point {int x, y;};
3040 static struct point const zero = {0,0};
3041 /* AIX XL C 1.02.0.0 rejects this.
3042 It does not let you subtract one const X* pointer from another in an arm
3043 of an if-expression whose if-part is not a constant expression */
3044 const char *g = "string";
3045 ccp = &g + (g ? g-g : 0);
3046 /* HPUX 7.0 cc rejects these. */
3047 ++ccp;
3048 p = (char**) ccp;
3049 ccp = (char const *const *) p;
3050 { /* SCO 3.2v4 cc rejects this. */
3051 char *t;
3052 char const *s = 0 ? (char *) 0 : (char const *) 0;
3054 *t++ = 0;
3056 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3057 int x[] = {25, 17};
3058 const int *foo = &x[0];
3059 ++foo;
3061 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3062 typedef const int *iptr;
3063 iptr p = 0;
3064 ++p;
3066 { /* AIX XL C 1.02.0.0 rejects this saying
3067 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3068 struct s { int j; const int *ap[3]; };
3069 struct s *b; b->j = 5;
3071 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3072 const int foo = 10;
3075 ; return 0; }
3077 if { (eval echo configure:3078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3078 rm -rf conftest*
3079 ac_cv_c_const=yes
3080 else
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 rm -rf conftest*
3084 ac_cv_c_const=no
3086 rm -f conftest*
3089 echo "$ac_t""$ac_cv_c_const" 1>&6
3090 if test $ac_cv_c_const = no; then
3091 cat >> confdefs.h <<\EOF
3092 #define const
3097 echo $ac_n "checking for inline""... $ac_c" 1>&6
3098 echo "configure:3099: checking for inline" >&5
3099 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3101 else
3102 ac_cv_c_inline=no
3103 for ac_kw in inline __inline__ __inline; do
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3108 int main() {
3109 } $ac_kw foo() {
3110 ; return 0; }
3112 if { (eval echo configure:3113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 rm -rf conftest*
3114 ac_cv_c_inline=$ac_kw; break
3115 else
3116 echo "configure: failed program was:" >&5
3117 cat conftest.$ac_ext >&5
3119 rm -f conftest*
3120 done
3124 echo "$ac_t""$ac_cv_c_inline" 1>&6
3125 case "$ac_cv_c_inline" in
3126 inline | yes) ;;
3127 no) cat >> confdefs.h <<\EOF
3128 #define inline
3131 *) cat >> confdefs.h <<EOF
3132 #define inline $ac_cv_c_inline
3135 esac
3137 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3138 echo "configure:3139: checking whether byte ordering is bigendian" >&5
3139 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3141 else
3142 ac_cv_c_bigendian=unknown
3143 # See if sys/param.h defines the BYTE_ORDER macro.
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3147 #include <sys/types.h>
3148 #include <sys/param.h>
3149 int main() {
3151 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3152 bogus endian macros
3153 #endif
3154 ; return 0; }
3156 if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 rm -rf conftest*
3158 # It does; now see whether it defined to BIG_ENDIAN or not.
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3162 #include <sys/types.h>
3163 #include <sys/param.h>
3164 int main() {
3166 #if BYTE_ORDER != BIG_ENDIAN
3167 not big endian
3168 #endif
3169 ; return 0; }
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172 rm -rf conftest*
3173 ac_cv_c_bigendian=yes
3174 else
3175 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3177 rm -rf conftest*
3178 ac_cv_c_bigendian=no
3180 rm -f conftest*
3181 else
3182 echo "configure: failed program was:" >&5
3183 cat conftest.$ac_ext >&5
3185 rm -f conftest*
3186 if test $ac_cv_c_bigendian = unknown; then
3187 if test "$cross_compiling" = yes; then
3188 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3189 else
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 main () {
3194 /* Are we little or big endian? From Harbison&Steele. */
3195 union
3197 long l;
3198 char c[sizeof (long)];
3199 } u;
3200 u.l = 1;
3201 exit (u.c[sizeof (long) - 1] == 1);
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3205 then
3206 ac_cv_c_bigendian=no
3207 else
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 rm -fr conftest*
3211 ac_cv_c_bigendian=yes
3213 rm -fr conftest*
3219 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3220 if test $ac_cv_c_bigendian = yes; then
3221 cat >> confdefs.h <<\EOF
3222 #define WORDS_BIGENDIAN 1
3227 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3228 echo "configure:3229: checking whether char is unsigned" >&5
3229 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3231 else
3232 if test "$GCC" = yes; then
3233 # GCC predefines this symbol on systems where it applies.
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3237 #ifdef __CHAR_UNSIGNED__
3239 #endif
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 egrep "yes" >/dev/null 2>&1; then
3244 rm -rf conftest*
3245 ac_cv_c_char_unsigned=yes
3246 else
3247 rm -rf conftest*
3248 ac_cv_c_char_unsigned=no
3250 rm -f conftest*
3252 else
3253 if test "$cross_compiling" = yes; then
3254 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3255 else
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3260 #if !defined(__STDC__) || __STDC__ != 1
3261 #define volatile
3262 #endif
3263 main() {
3264 volatile char c = 255; exit(c < 0);
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3268 then
3269 ac_cv_c_char_unsigned=yes
3270 else
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 rm -fr conftest*
3274 ac_cv_c_char_unsigned=no
3276 rm -fr conftest*
3282 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3283 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3284 cat >> confdefs.h <<\EOF
3285 #define __CHAR_UNSIGNED__ 1
3291 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3292 echo "configure:3293: checking return type of signal handlers" >&5
3293 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3295 else
3296 cat > conftest.$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3299 #include <sys/types.h>
3300 #include <signal.h>
3301 #ifdef signal
3302 #undef signal
3303 #endif
3304 #ifdef __cplusplus
3305 extern "C" void (*signal (int, void (*)(int)))(int);
3306 #else
3307 void (*signal ()) ();
3308 #endif
3310 int main() {
3311 int i;
3312 ; return 0; }
3314 if { (eval echo configure:3315: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3315 rm -rf conftest*
3316 ac_cv_type_signal=void
3317 else
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3320 rm -rf conftest*
3321 ac_cv_type_signal=int
3323 rm -f conftest*
3326 echo "$ac_t""$ac_cv_type_signal" 1>&6
3327 cat >> confdefs.h <<EOF
3328 #define RETSIGTYPE $ac_cv_type_signal
3332 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3333 echo "configure:3334: checking for uid_t in sys/types.h" >&5
3334 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3336 else
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 #include <sys/types.h>
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 egrep "uid_t" >/dev/null 2>&1; then
3344 rm -rf conftest*
3345 ac_cv_type_uid_t=yes
3346 else
3347 rm -rf conftest*
3348 ac_cv_type_uid_t=no
3350 rm -f conftest*
3354 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3355 if test $ac_cv_type_uid_t = no; then
3356 cat >> confdefs.h <<\EOF
3357 #define uid_t int
3360 cat >> confdefs.h <<\EOF
3361 #define gid_t int
3366 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3367 echo "configure:3368: checking for mode_t" >&5
3368 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3370 else
3371 cat > conftest.$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 #include <sys/types.h>
3375 #if STDC_HEADERS
3376 #include <stdlib.h>
3377 #include <stddef.h>
3378 #endif
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3382 rm -rf conftest*
3383 ac_cv_type_mode_t=yes
3384 else
3385 rm -rf conftest*
3386 ac_cv_type_mode_t=no
3388 rm -f conftest*
3391 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3392 if test $ac_cv_type_mode_t = no; then
3393 cat >> confdefs.h <<\EOF
3394 #define mode_t int
3399 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3400 echo "configure:3401: checking for off_t" >&5
3401 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3403 else
3404 cat > conftest.$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 #include <sys/types.h>
3408 #if STDC_HEADERS
3409 #include <stdlib.h>
3410 #include <stddef.h>
3411 #endif
3413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3414 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3415 rm -rf conftest*
3416 ac_cv_type_off_t=yes
3417 else
3418 rm -rf conftest*
3419 ac_cv_type_off_t=no
3421 rm -f conftest*
3424 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3425 if test $ac_cv_type_off_t = no; then
3426 cat >> confdefs.h <<\EOF
3427 #define off_t long
3432 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3433 echo "configure:3434: checking for size_t" >&5
3434 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3435 echo $ac_n "(cached) $ac_c" 1>&6
3436 else
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <sys/types.h>
3441 #if STDC_HEADERS
3442 #include <stdlib.h>
3443 #include <stddef.h>
3444 #endif
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3448 rm -rf conftest*
3449 ac_cv_type_size_t=yes
3450 else
3451 rm -rf conftest*
3452 ac_cv_type_size_t=no
3454 rm -f conftest*
3457 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3458 if test $ac_cv_type_size_t = no; then
3459 cat >> confdefs.h <<\EOF
3460 #define size_t unsigned
3465 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3466 echo "configure:3467: checking for pid_t" >&5
3467 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3469 else
3470 cat > conftest.$ac_ext <<EOF
3471 #line 3472 "configure"
3472 #include "confdefs.h"
3473 #include <sys/types.h>
3474 #if STDC_HEADERS
3475 #include <stdlib.h>
3476 #include <stddef.h>
3477 #endif
3479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3480 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3481 rm -rf conftest*
3482 ac_cv_type_pid_t=yes
3483 else
3484 rm -rf conftest*
3485 ac_cv_type_pid_t=no
3487 rm -f conftest*
3490 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3491 if test $ac_cv_type_pid_t = no; then
3492 cat >> confdefs.h <<\EOF
3493 #define pid_t int
3498 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3499 echo "configure:3500: checking for st_rdev in struct stat" >&5
3500 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3502 else
3503 cat > conftest.$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3506 #include <sys/types.h>
3507 #include <sys/stat.h>
3508 int main() {
3509 struct stat s; s.st_rdev;
3510 ; return 0; }
3512 if { (eval echo configure:3513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3513 rm -rf conftest*
3514 ac_cv_struct_st_rdev=yes
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 ac_cv_struct_st_rdev=no
3521 rm -f conftest*
3524 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3525 if test $ac_cv_struct_st_rdev = yes; then
3526 cat >> confdefs.h <<\EOF
3527 #define HAVE_ST_RDEV 1
3532 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3533 echo "configure:3534: checking for d_off in dirent" >&5
3534 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3536 else
3537 cat > conftest.$ac_ext <<EOF
3538 #line 3539 "configure"
3539 #include "confdefs.h"
3541 #include <unistd.h>
3542 #include <sys/types.h>
3543 #include <dirent.h>
3544 int main() {
3545 struct dirent d; d.d_off;
3546 ; return 0; }
3548 if { (eval echo configure:3549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3549 rm -rf conftest*
3550 ac_cv_dirent_d_off=yes
3551 else
3552 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5
3554 rm -rf conftest*
3555 ac_cv_dirent_d_off=no
3557 rm -f conftest*
3560 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3561 if test $ac_cv_dirent_d_off = yes; then
3562 cat >> confdefs.h <<\EOF
3563 #define HAVE_DIRENT_D_OFF 1
3568 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3569 echo "configure:3570: checking for ino_t" >&5
3570 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3572 else
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <sys/types.h>
3577 #if STDC_HEADERS
3578 #include <stdlib.h>
3579 #include <stddef.h>
3580 #endif
3582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3583 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3584 rm -rf conftest*
3585 ac_cv_type_ino_t=yes
3586 else
3587 rm -rf conftest*
3588 ac_cv_type_ino_t=no
3590 rm -f conftest*
3593 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3594 if test $ac_cv_type_ino_t = no; then
3595 cat >> confdefs.h <<\EOF
3596 #define ino_t unsigned
3601 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3602 echo "configure:3603: checking for loff_t" >&5
3603 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3605 else
3606 cat > conftest.$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3609 #include <sys/types.h>
3610 #if STDC_HEADERS
3611 #include <stdlib.h>
3612 #include <stddef.h>
3613 #endif
3615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3616 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3617 rm -rf conftest*
3618 ac_cv_type_loff_t=yes
3619 else
3620 rm -rf conftest*
3621 ac_cv_type_loff_t=no
3623 rm -f conftest*
3626 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3627 if test $ac_cv_type_loff_t = no; then
3628 cat >> confdefs.h <<\EOF
3629 #define loff_t off_t
3634 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3635 echo "configure:3636: checking for offset_t" >&5
3636 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3638 else
3639 cat > conftest.$ac_ext <<EOF
3640 #line 3641 "configure"
3641 #include "confdefs.h"
3642 #include <sys/types.h>
3643 #if STDC_HEADERS
3644 #include <stdlib.h>
3645 #include <stddef.h>
3646 #endif
3648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3649 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3650 rm -rf conftest*
3651 ac_cv_type_offset_t=yes
3652 else
3653 rm -rf conftest*
3654 ac_cv_type_offset_t=no
3656 rm -f conftest*
3659 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3660 if test $ac_cv_type_offset_t = no; then
3661 cat >> confdefs.h <<\EOF
3662 #define offset_t loff_t
3667 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3668 echo "configure:3669: checking for ssize_t" >&5
3669 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3670 echo $ac_n "(cached) $ac_c" 1>&6
3671 else
3672 cat > conftest.$ac_ext <<EOF
3673 #line 3674 "configure"
3674 #include "confdefs.h"
3675 #include <sys/types.h>
3676 #if STDC_HEADERS
3677 #include <stdlib.h>
3678 #include <stddef.h>
3679 #endif
3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3682 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3683 rm -rf conftest*
3684 ac_cv_type_ssize_t=yes
3685 else
3686 rm -rf conftest*
3687 ac_cv_type_ssize_t=no
3689 rm -f conftest*
3692 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3693 if test $ac_cv_type_ssize_t = no; then
3694 cat >> confdefs.h <<\EOF
3695 #define ssize_t int
3700 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
3701 echo "configure:3702: checking for wchar_t" >&5
3702 if eval "test \"`echo '$''{'ac_cv_type_wchar_t'+set}'`\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3704 else
3705 cat > conftest.$ac_ext <<EOF
3706 #line 3707 "configure"
3707 #include "confdefs.h"
3708 #include <sys/types.h>
3709 #if STDC_HEADERS
3710 #include <stdlib.h>
3711 #include <stddef.h>
3712 #endif
3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3715 egrep "(^|[^a-zA-Z_0-9])wchar_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3716 rm -rf conftest*
3717 ac_cv_type_wchar_t=yes
3718 else
3719 rm -rf conftest*
3720 ac_cv_type_wchar_t=no
3722 rm -f conftest*
3725 echo "$ac_t""$ac_cv_type_wchar_t" 1>&6
3726 if test $ac_cv_type_wchar_t = no; then
3727 cat >> confdefs.h <<\EOF
3728 #define wchar_t unsigned short
3734 ############################################
3735 # for cups support we need libcups, and a handful of header files
3737 # Check whether --enable-cups or --disable-cups was given.
3738 if test "${enable_cups+set}" = set; then
3739 enableval="$enable_cups"
3744 if test x$enable_cups != xno; then
3745 # Extract the first word of "cups-config", so it can be a program name with args.
3746 set dummy cups-config; ac_word=$2
3747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3748 echo "configure:3749: checking for $ac_word" >&5
3749 if eval "test \"`echo '$''{'ac_cv_path_CUPS_CONFIG'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3751 else
3752 case "$CUPS_CONFIG" in
3754 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a path.
3756 ?:/*)
3757 ac_cv_path_CUPS_CONFIG="$CUPS_CONFIG" # Let the user override the test with a dos path.
3760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3761 ac_dummy="$PATH"
3762 for ac_dir in $ac_dummy; do
3763 test -z "$ac_dir" && ac_dir=.
3764 if test -f $ac_dir/$ac_word; then
3765 ac_cv_path_CUPS_CONFIG="$ac_dir/$ac_word"
3766 break
3768 done
3769 IFS="$ac_save_ifs"
3771 esac
3773 CUPS_CONFIG="$ac_cv_path_CUPS_CONFIG"
3774 if test -n "$CUPS_CONFIG"; then
3775 echo "$ac_t""$CUPS_CONFIG" 1>&6
3776 else
3777 echo "$ac_t""no" 1>&6
3781 if test "x$CUPS_CONFIG" != x; then
3782 cat >> confdefs.h <<\EOF
3783 #define HAVE_CUPS 1
3786 CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
3787 LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
3788 LIBS="$LIBS `$CUPS_CONFIG --libs`"
3792 ############################################
3793 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the new VFS code
3794 for ac_func in dlopen
3796 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3797 echo "configure:3798: checking for $ac_func" >&5
3798 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3800 else
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func(); below. */
3806 #include <assert.h>
3807 /* Override any gcc2 internal prototype to avoid an error. */
3808 /* We use char because int might match the return type of a gcc2
3809 builtin and then its argument prototype would still apply. */
3810 char $ac_func();
3812 int main() {
3814 /* The GNU C library defines this for functions which it implements
3815 to always fail with ENOSYS. Some functions are actually named
3816 something starting with __ and the normal name is an alias. */
3817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3818 choke me
3819 #else
3820 $ac_func();
3821 #endif
3823 ; return 0; }
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826 rm -rf conftest*
3827 eval "ac_cv_func_$ac_func=yes"
3828 else
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3831 rm -rf conftest*
3832 eval "ac_cv_func_$ac_func=no"
3834 rm -f conftest*
3837 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3838 echo "$ac_t""yes" 1>&6
3839 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3840 cat >> confdefs.h <<EOF
3841 #define $ac_tr_func 1
3844 else
3845 echo "$ac_t""no" 1>&6
3847 done
3849 if test x"$ac_cv_func_dlopen" = x"no"; then
3850 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3851 echo "configure:3852: checking for dlopen in -ldl" >&5
3852 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3854 echo $ac_n "(cached) $ac_c" 1>&6
3855 else
3856 ac_save_LIBS="$LIBS"
3857 LIBS="-ldl $LIBS"
3858 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure"
3860 #include "confdefs.h"
3861 /* Override any gcc2 internal prototype to avoid an error. */
3862 /* We use char because int might match the return type of a gcc2
3863 builtin and then its argument prototype would still apply. */
3864 char dlopen();
3866 int main() {
3867 dlopen()
3868 ; return 0; }
3870 if { (eval echo configure:3871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3871 rm -rf conftest*
3872 eval "ac_cv_lib_$ac_lib_var=yes"
3873 else
3874 echo "configure: failed program was:" >&5
3875 cat conftest.$ac_ext >&5
3876 rm -rf conftest*
3877 eval "ac_cv_lib_$ac_lib_var=no"
3879 rm -f conftest*
3880 LIBS="$ac_save_LIBS"
3883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3884 echo "$ac_t""yes" 1>&6
3885 LIBS="$LIBS -ldl";
3886 cat >> confdefs.h <<\EOF
3887 #define HAVE_DLOPEN 1
3890 else
3891 echo "$ac_t""no" 1>&6
3895 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
3897 ############################################
3898 # check if the compiler can do immediate structures
3899 echo $ac_n "checking for immediate structures""... $ac_c" 1>&6
3900 echo "configure:3901: checking for immediate structures" >&5
3901 if eval "test \"`echo '$''{'samba_cv_immediate_structures'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3903 else
3905 cat > conftest.$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3909 #include <stdio.h>
3910 int main() {
3912 typedef struct {unsigned x;} FOOBAR;
3913 #define X_FOOBAR(x) ((FOOBAR) { x })
3914 #define FOO_ONE X_FOOBAR(1)
3915 FOOBAR f = FOO_ONE;
3916 static struct {
3917 FOOBAR y;
3918 } f2[] = {
3919 {FOO_ONE}
3922 ; return 0; }
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3925 rm -rf conftest*
3926 samba_cv_immediate_structures=yes
3927 else
3928 echo "configure: failed program was:" >&5
3929 cat conftest.$ac_ext >&5
3930 rm -rf conftest*
3931 samba_cv_immediate_structures=no
3933 rm -f conftest*
3936 echo "$ac_t""$samba_cv_immediate_structures" 1>&6
3937 if test x"$samba_cv_immediate_structures" = x"yes"; then
3938 cat >> confdefs.h <<\EOF
3939 #define HAVE_IMMEDIATE_STRUCTURES 1
3944 ############################################
3945 # check for unix domain sockets
3946 echo $ac_n "checking for unix domain sockets""... $ac_c" 1>&6
3947 echo "configure:3948: checking for unix domain sockets" >&5
3948 if eval "test \"`echo '$''{'samba_cv_unixsocket'+set}'`\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3950 else
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3956 #include <sys/types.h>
3957 #include <stdlib.h>
3958 #include <stddef.h>
3959 #include <sys/socket.h>
3960 #include <sys/un.h>
3961 int main() {
3963 struct sockaddr_un sunaddr;
3964 sunaddr.sun_family = AF_UNIX;
3966 ; return 0; }
3968 if { (eval echo configure:3969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3969 rm -rf conftest*
3970 samba_cv_unixsocket=yes
3971 else
3972 echo "configure: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 rm -rf conftest*
3975 samba_cv_unixsocket=no
3977 rm -f conftest*
3980 echo "$ac_t""$samba_cv_unixsocket" 1>&6
3981 if test x"$samba_cv_unixsocket" = x"yes"; then
3982 cat >> confdefs.h <<\EOF
3983 #define HAVE_UNIXSOCKET 1
3988 echo $ac_n "checking for socklen_t type""... $ac_c" 1>&6
3989 echo "configure:3990: checking for socklen_t type" >&5
3990 if eval "test \"`echo '$''{'samba_cv_socklen_t'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3994 cat > conftest.$ac_ext <<EOF
3995 #line 3996 "configure"
3996 #include "confdefs.h"
3998 #include <sys/types.h>
3999 #if STDC_HEADERS
4000 #include <stdlib.h>
4001 #include <stddef.h>
4002 #endif
4003 #include <sys/socket.h>
4004 int main() {
4005 socklen_t i = 0
4006 ; return 0; }
4008 if { (eval echo configure:4009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4009 rm -rf conftest*
4010 samba_cv_socklen_t=yes
4011 else
4012 echo "configure: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4014 rm -rf conftest*
4015 samba_cv_socklen_t=no
4017 rm -f conftest*
4020 echo "$ac_t""$samba_cv_socklen_t" 1>&6
4021 if test x"$samba_cv_socklen_t" = x"yes"; then
4022 cat >> confdefs.h <<\EOF
4023 #define HAVE_SOCKLEN_T_TYPE 1
4028 echo $ac_n "checking for sig_atomic_t type""... $ac_c" 1>&6
4029 echo "configure:4030: checking for sig_atomic_t type" >&5
4030 if eval "test \"`echo '$''{'samba_cv_sig_atomic_t'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4032 else
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4038 #include <sys/types.h>
4039 #if STDC_HEADERS
4040 #include <stdlib.h>
4041 #include <stddef.h>
4042 #endif
4043 #include <signal.h>
4044 int main() {
4045 sig_atomic_t i = 0
4046 ; return 0; }
4048 if { (eval echo configure:4049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4049 rm -rf conftest*
4050 samba_cv_sig_atomic_t=yes
4051 else
4052 echo "configure: failed program was:" >&5
4053 cat conftest.$ac_ext >&5
4054 rm -rf conftest*
4055 samba_cv_sig_atomic_t=no
4057 rm -f conftest*
4060 echo "$ac_t""$samba_cv_sig_atomic_t" 1>&6
4061 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
4062 cat >> confdefs.h <<\EOF
4063 #define HAVE_SIG_ATOMIC_T_TYPE 1
4068 # stupid headers have the functions but no declaration. grrrr.
4070 echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
4071 echo "configure:4072: checking for errno declaration" >&5
4072 if eval "test \"`echo '$''{'ac_cv_have_errno_decl'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6
4074 else
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 #include <errno.h>
4080 int main() {
4081 int i = (int)errno
4082 ; return 0; }
4084 if { (eval echo configure:4085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4085 rm -rf conftest*
4086 ac_cv_have_errno_decl=yes
4087 else
4088 echo "configure: failed program was:" >&5
4089 cat conftest.$ac_ext >&5
4090 rm -rf conftest*
4091 ac_cv_have_errno_decl=no
4093 rm -f conftest*
4096 echo "$ac_t""$ac_cv_have_errno_decl" 1>&6
4097 if test x"$ac_cv_have_errno_decl" = x"yes"; then
4098 cat >> confdefs.h <<\EOF
4099 #define HAVE_ERRNO_DECL 1
4105 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
4106 echo "configure:4107: checking for setresuid declaration" >&5
4107 if eval "test \"`echo '$''{'ac_cv_have_setresuid_decl'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4109 else
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <unistd.h>
4115 int main() {
4116 int i = (int)setresuid
4117 ; return 0; }
4119 if { (eval echo configure:4120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4120 rm -rf conftest*
4121 ac_cv_have_setresuid_decl=yes
4122 else
4123 echo "configure: failed program was:" >&5
4124 cat conftest.$ac_ext >&5
4125 rm -rf conftest*
4126 ac_cv_have_setresuid_decl=no
4128 rm -f conftest*
4131 echo "$ac_t""$ac_cv_have_setresuid_decl" 1>&6
4132 if test x"$ac_cv_have_setresuid_decl" = x"yes"; then
4133 cat >> confdefs.h <<\EOF
4134 #define HAVE_SETRESUID_DECL 1
4140 echo $ac_n "checking for setresgid declaration""... $ac_c" 1>&6
4141 echo "configure:4142: checking for setresgid declaration" >&5
4142 if eval "test \"`echo '$''{'ac_cv_have_setresgid_decl'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4144 else
4146 cat > conftest.$ac_ext <<EOF
4147 #line 4148 "configure"
4148 #include "confdefs.h"
4149 #include <unistd.h>
4150 int main() {
4151 int i = (int)setresgid
4152 ; return 0; }
4154 if { (eval echo configure:4155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 rm -rf conftest*
4156 ac_cv_have_setresgid_decl=yes
4157 else
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4160 rm -rf conftest*
4161 ac_cv_have_setresgid_decl=no
4163 rm -f conftest*
4166 echo "$ac_t""$ac_cv_have_setresgid_decl" 1>&6
4167 if test x"$ac_cv_have_setresgid_decl" = x"yes"; then
4168 cat >> confdefs.h <<\EOF
4169 #define HAVE_SETRESGID_DECL 1
4175 echo $ac_n "checking for asprintf declaration""... $ac_c" 1>&6
4176 echo "configure:4177: checking for asprintf declaration" >&5
4177 if eval "test \"`echo '$''{'ac_cv_have_asprintf_decl'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4179 else
4181 cat > conftest.$ac_ext <<EOF
4182 #line 4183 "configure"
4183 #include "confdefs.h"
4184 #include <stdio.h>
4185 int main() {
4186 int i = (int)asprintf
4187 ; return 0; }
4189 if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4190 rm -rf conftest*
4191 ac_cv_have_asprintf_decl=yes
4192 else
4193 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5
4195 rm -rf conftest*
4196 ac_cv_have_asprintf_decl=no
4198 rm -f conftest*
4201 echo "$ac_t""$ac_cv_have_asprintf_decl" 1>&6
4202 if test x"$ac_cv_have_asprintf_decl" = x"yes"; then
4203 cat >> confdefs.h <<\EOF
4204 #define HAVE_ASPRINTF_DECL 1
4210 echo $ac_n "checking for vasprintf declaration""... $ac_c" 1>&6
4211 echo "configure:4212: checking for vasprintf declaration" >&5
4212 if eval "test \"`echo '$''{'ac_cv_have_vasprintf_decl'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4214 else
4216 cat > conftest.$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 #include <stdio.h>
4220 int main() {
4221 int i = (int)vasprintf
4222 ; return 0; }
4224 if { (eval echo configure:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4225 rm -rf conftest*
4226 ac_cv_have_vasprintf_decl=yes
4227 else
4228 echo "configure: failed program was:" >&5
4229 cat conftest.$ac_ext >&5
4230 rm -rf conftest*
4231 ac_cv_have_vasprintf_decl=no
4233 rm -f conftest*
4236 echo "$ac_t""$ac_cv_have_vasprintf_decl" 1>&6
4237 if test x"$ac_cv_have_vasprintf_decl" = x"yes"; then
4238 cat >> confdefs.h <<\EOF
4239 #define HAVE_VASPRINTF_DECL 1
4245 echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6
4246 echo "configure:4247: checking for vsnprintf declaration" >&5
4247 if eval "test \"`echo '$''{'ac_cv_have_vsnprintf_decl'+set}'`\" = set"; then
4248 echo $ac_n "(cached) $ac_c" 1>&6
4249 else
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 #include <stdio.h>
4255 int main() {
4256 int i = (int)vsnprintf
4257 ; return 0; }
4259 if { (eval echo configure:4260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4260 rm -rf conftest*
4261 ac_cv_have_vsnprintf_decl=yes
4262 else
4263 echo "configure: failed program was:" >&5
4264 cat conftest.$ac_ext >&5
4265 rm -rf conftest*
4266 ac_cv_have_vsnprintf_decl=no
4268 rm -f conftest*
4271 echo "$ac_t""$ac_cv_have_vsnprintf_decl" 1>&6
4272 if test x"$ac_cv_have_vsnprintf_decl" = x"yes"; then
4273 cat >> confdefs.h <<\EOF
4274 #define HAVE_VSNPRINTF_DECL 1
4280 echo $ac_n "checking for snprintf declaration""... $ac_c" 1>&6
4281 echo "configure:4282: checking for snprintf declaration" >&5
4282 if eval "test \"`echo '$''{'ac_cv_have_snprintf_decl'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4284 else
4286 cat > conftest.$ac_ext <<EOF
4287 #line 4288 "configure"
4288 #include "confdefs.h"
4289 #include <stdio.h>
4290 int main() {
4291 int i = (int)snprintf
4292 ; return 0; }
4294 if { (eval echo configure:4295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4295 rm -rf conftest*
4296 ac_cv_have_snprintf_decl=yes
4297 else
4298 echo "configure: failed program was:" >&5
4299 cat conftest.$ac_ext >&5
4300 rm -rf conftest*
4301 ac_cv_have_snprintf_decl=no
4303 rm -f conftest*
4306 echo "$ac_t""$ac_cv_have_snprintf_decl" 1>&6
4307 if test x"$ac_cv_have_snprintf_decl" = x"yes"; then
4308 cat >> confdefs.h <<\EOF
4309 #define HAVE_SNPRINTF_DECL 1
4315 # and glibc has setresuid under linux but the function does
4316 # nothing until kernel 2.1.44! very dumb.
4317 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
4318 echo "configure:4319: checking for real setresuid" >&5
4319 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4321 else
4323 if test "$cross_compiling" = yes; then
4324 samba_cv_have_setresuid=cross
4325 else
4326 cat > conftest.$ac_ext <<EOF
4327 #line 4328 "configure"
4328 #include "confdefs.h"
4329 #include <errno.h>
4330 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
4332 if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4333 then
4334 samba_cv_have_setresuid=yes
4335 else
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4338 rm -fr conftest*
4339 samba_cv_have_setresuid=no
4341 rm -fr conftest*
4346 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
4347 if test x"$samba_cv_have_setresuid" = x"yes"; then
4348 cat >> confdefs.h <<\EOF
4349 #define HAVE_SETRESUID 1
4354 # Do the same check for setresguid...
4356 echo $ac_n "checking for real setresgid""... $ac_c" 1>&6
4357 echo "configure:4358: checking for real setresgid" >&5
4358 if eval "test \"`echo '$''{'samba_cv_have_setresgid'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4360 else
4362 if test "$cross_compiling" = yes; then
4363 samba_cv_have_setresgid=cross
4364 else
4365 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure"
4367 #include "confdefs.h"
4368 #include <unistd.h>
4369 #include <errno.h>
4370 main() { errno = 0; setresgid(1,1,1); exit(errno != 0 ? (errno==EPERM ? 0 : 1) : 0);}
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4373 then
4374 samba_cv_have_setresgid=yes
4375 else
4376 echo "configure: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4378 rm -fr conftest*
4379 samba_cv_have_setresgid=no
4381 rm -fr conftest*
4386 echo "$ac_t""$samba_cv_have_setresgid" 1>&6
4387 if test x"$samba_cv_have_setresgid" = x"yes"; then
4388 cat >> confdefs.h <<\EOF
4389 #define HAVE_SETRESGID 1
4394 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
4395 echo "configure:4396: checking for 8-bit clean memcmp" >&5
4396 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4398 else
4399 if test "$cross_compiling" = yes; then
4400 ac_cv_func_memcmp_clean=no
4401 else
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4406 main()
4408 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4409 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4414 then
4415 ac_cv_func_memcmp_clean=yes
4416 else
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 rm -fr conftest*
4420 ac_cv_func_memcmp_clean=no
4422 rm -fr conftest*
4427 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
4428 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
4431 ###############################################
4432 # Readline included by default unless explicitly asked not to
4433 test "${with_readline+set}" != "set" && with_readline=yes
4435 # test for where we get readline() from
4436 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
4437 echo "configure:4438: checking whether to use readline" >&5
4438 # Check whether --with-readline or --without-readline was given.
4439 if test "${with_readline+set}" = set; then
4440 withval="$with_readline"
4441 case "$with_readline" in
4442 yes)
4443 echo "$ac_t""yes" 1>&6
4445 for ac_hdr in readline.h history.h readline/readline.h
4447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4449 echo "configure:4450: checking for $ac_hdr" >&5
4450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4452 else
4453 cat > conftest.$ac_ext <<EOF
4454 #line 4455 "configure"
4455 #include "confdefs.h"
4456 #include <$ac_hdr>
4458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4459 { (eval echo configure:4460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4461 if test -z "$ac_err"; then
4462 rm -rf conftest*
4463 eval "ac_cv_header_$ac_safe=yes"
4464 else
4465 echo "$ac_err" >&5
4466 echo "configure: failed program was:" >&5
4467 cat conftest.$ac_ext >&5
4468 rm -rf conftest*
4469 eval "ac_cv_header_$ac_safe=no"
4471 rm -f conftest*
4473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4474 echo "$ac_t""yes" 1>&6
4475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4476 cat >> confdefs.h <<EOF
4477 #define $ac_tr_hdr 1
4480 else
4481 echo "$ac_t""no" 1>&6
4483 done
4485 for ac_hdr in readline/history.h
4487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_hdr" >&5
4490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4492 else
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #include <$ac_hdr>
4498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4502 rm -rf conftest*
4503 eval "ac_cv_header_$ac_safe=yes"
4504 else
4505 echo "$ac_err" >&5
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 rm -rf conftest*
4509 eval "ac_cv_header_$ac_safe=no"
4511 rm -f conftest*
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_hdr 1
4520 else
4521 echo "$ac_t""no" 1>&6
4523 done
4526 for ac_hdr in readline.h readline/readline.h
4528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_hdr" >&5
4531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4533 else
4534 cat > conftest.$ac_ext <<EOF
4535 #line 4536 "configure"
4536 #include "confdefs.h"
4537 #include <$ac_hdr>
4539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4540 { (eval echo configure:4541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4542 if test -z "$ac_err"; then
4543 rm -rf conftest*
4544 eval "ac_cv_header_$ac_safe=yes"
4545 else
4546 echo "$ac_err" >&5
4547 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5
4549 rm -rf conftest*
4550 eval "ac_cv_header_$ac_safe=no"
4552 rm -f conftest*
4554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4555 echo "$ac_t""yes" 1>&6
4556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4557 cat >> confdefs.h <<EOF
4558 #define $ac_tr_hdr 1
4561 for termlib in ncurses curses termcap terminfo termlib; do
4562 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4563 echo "configure:4564: checking for tgetent in -l${termlib}" >&5
4564 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4565 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4567 else
4568 ac_save_LIBS="$LIBS"
4569 LIBS="-l${termlib} $LIBS"
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 /* Override any gcc2 internal prototype to avoid an error. */
4574 /* We use char because int might match the return type of a gcc2
4575 builtin and then its argument prototype would still apply. */
4576 char tgetent();
4578 int main() {
4579 tgetent()
4580 ; return 0; }
4582 if { (eval echo configure:4583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4583 rm -rf conftest*
4584 eval "ac_cv_lib_$ac_lib_var=yes"
4585 else
4586 echo "configure: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 rm -rf conftest*
4589 eval "ac_cv_lib_$ac_lib_var=no"
4591 rm -f conftest*
4592 LIBS="$ac_save_LIBS"
4595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4596 echo "$ac_t""yes" 1>&6
4597 TERMLIBS="-l${termlib}"; break
4598 else
4599 echo "$ac_t""no" 1>&6
4602 done
4603 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4604 echo "configure:4605: checking for rl_callback_handler_install in -lreadline" >&5
4605 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4606 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 ac_save_LIBS="$LIBS"
4610 LIBS="-lreadline $TERMLIBS $LIBS"
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 /* Override any gcc2 internal prototype to avoid an error. */
4615 /* We use char because int might match the return type of a gcc2
4616 builtin and then its argument prototype would still apply. */
4617 char rl_callback_handler_install();
4619 int main() {
4620 rl_callback_handler_install()
4621 ; return 0; }
4623 if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4624 rm -rf conftest*
4625 eval "ac_cv_lib_$ac_lib_var=yes"
4626 else
4627 echo "configure: failed program was:" >&5
4628 cat conftest.$ac_ext >&5
4629 rm -rf conftest*
4630 eval "ac_cv_lib_$ac_lib_var=no"
4632 rm -f conftest*
4633 LIBS="$ac_save_LIBS"
4636 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4637 echo "$ac_t""yes" 1>&6
4638 TERMLIBS="-lreadline $TERMLIBS"
4639 cat >> confdefs.h <<\EOF
4640 #define HAVE_LIBREADLINE 1
4643 break
4644 else
4645 echo "$ac_t""no" 1>&6
4646 TERMLIBS=
4649 else
4650 echo "$ac_t""no" 1>&6
4652 done
4656 echo "$ac_t""no" 1>&6
4659 echo "$ac_t""yes" 1>&6
4661 # Needed for AC_CHECK_HEADERS and AC_CHECK_LIB to look at
4662 # alternate readline path
4663 _ldflags=${LDFLAGS}
4664 _cppflags=${CPPFLAGS}
4666 # Add additional search path
4667 LDFLAGS="-L$with_readline/lib $LDFLAGS"
4668 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4670 for ac_hdr in readline.h history.h readline/readline.h
4672 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4674 echo "configure:4675: checking for $ac_hdr" >&5
4675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677 else
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 #include <$ac_hdr>
4683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4687 rm -rf conftest*
4688 eval "ac_cv_header_$ac_safe=yes"
4689 else
4690 echo "$ac_err" >&5
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4693 rm -rf conftest*
4694 eval "ac_cv_header_$ac_safe=no"
4696 rm -f conftest*
4698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4700 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4701 cat >> confdefs.h <<EOF
4702 #define $ac_tr_hdr 1
4705 else
4706 echo "$ac_t""no" 1>&6
4708 done
4710 for ac_hdr in readline/history.h
4712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_hdr" >&5
4715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4717 else
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <$ac_hdr>
4723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4724 { (eval echo configure:4725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4726 if test -z "$ac_err"; then
4727 rm -rf conftest*
4728 eval "ac_cv_header_$ac_safe=yes"
4729 else
4730 echo "$ac_err" >&5
4731 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5
4733 rm -rf conftest*
4734 eval "ac_cv_header_$ac_safe=no"
4736 rm -f conftest*
4738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4741 cat >> confdefs.h <<EOF
4742 #define $ac_tr_hdr 1
4745 else
4746 echo "$ac_t""no" 1>&6
4748 done
4751 for ac_hdr in readline.h readline/readline.h
4753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4755 echo "configure:4756: checking for $ac_hdr" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4758 else
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 #include <$ac_hdr>
4764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4765 { (eval echo configure:4766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4767 if test -z "$ac_err"; then
4768 rm -rf conftest*
4769 eval "ac_cv_header_$ac_safe=yes"
4770 else
4771 echo "$ac_err" >&5
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4774 rm -rf conftest*
4775 eval "ac_cv_header_$ac_safe=no"
4777 rm -f conftest*
4779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4780 echo "$ac_t""yes" 1>&6
4781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4782 cat >> confdefs.h <<EOF
4783 #define $ac_tr_hdr 1
4786 for termlib in ncurses curses termcap terminfo termlib; do
4787 echo $ac_n "checking for tgetent in -l${termlib}""... $ac_c" 1>&6
4788 echo "configure:4789: checking for tgetent in -l${termlib}" >&5
4789 ac_lib_var=`echo ${termlib}'_'tgetent | sed 'y%./+-%__p_%'`
4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4792 else
4793 ac_save_LIBS="$LIBS"
4794 LIBS="-l${termlib} $LIBS"
4795 cat > conftest.$ac_ext <<EOF
4796 #line 4797 "configure"
4797 #include "confdefs.h"
4798 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801 char tgetent();
4803 int main() {
4804 tgetent()
4805 ; return 0; }
4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4808 rm -rf conftest*
4809 eval "ac_cv_lib_$ac_lib_var=yes"
4810 else
4811 echo "configure: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4813 rm -rf conftest*
4814 eval "ac_cv_lib_$ac_lib_var=no"
4816 rm -f conftest*
4817 LIBS="$ac_save_LIBS"
4820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4821 echo "$ac_t""yes" 1>&6
4822 TERMLIBS="-l${termlib}"; break
4823 else
4824 echo "$ac_t""no" 1>&6
4827 done
4828 echo $ac_n "checking for rl_callback_handler_install in -lreadline""... $ac_c" 1>&6
4829 echo "configure:4830: checking for rl_callback_handler_install in -lreadline" >&5
4830 ac_lib_var=`echo readline'_'rl_callback_handler_install | sed 'y%./+-%__p_%'`
4831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4832 echo $ac_n "(cached) $ac_c" 1>&6
4833 else
4834 ac_save_LIBS="$LIBS"
4835 LIBS="-lreadline $TERMLIBS $LIBS"
4836 cat > conftest.$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4842 char rl_callback_handler_install();
4844 int main() {
4845 rl_callback_handler_install()
4846 ; return 0; }
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4849 rm -rf conftest*
4850 eval "ac_cv_lib_$ac_lib_var=yes"
4851 else
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4854 rm -rf conftest*
4855 eval "ac_cv_lib_$ac_lib_var=no"
4857 rm -f conftest*
4858 LIBS="$ac_save_LIBS"
4861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4862 echo "$ac_t""yes" 1>&6
4863 TERMLDFLAGS="-L$with_readline/lib"
4864 TERMCPPFLAGS="-I$with_readline/include"
4865 CPPFLAGS="-I$with_readline/include $CPPFLAGS"
4866 TERMLIBS="-lreadline $TERMLIBS"
4867 cat >> confdefs.h <<\EOF
4868 #define HAVE_LIBREADLINE 1
4871 break
4872 else
4873 echo "$ac_t""no" 1>&6
4874 TERMLIBS= CPPFLAGS=$_cppflags
4877 else
4878 echo "$ac_t""no" 1>&6
4880 done
4883 LDFLAGS=$_ldflags
4885 esac
4886 else
4887 echo "$ac_t""no" 1>&6
4894 # The following test taken from the cvs sources
4895 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
4896 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
4897 # libsocket.so which has a bad implementation of gethostbyname (it
4898 # only looks in /etc/hosts), so we only look for -lsocket if we need
4899 # it.
4900 for ac_func in connect
4902 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4903 echo "configure:4904: checking for $ac_func" >&5
4904 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6
4906 else
4907 cat > conftest.$ac_ext <<EOF
4908 #line 4909 "configure"
4909 #include "confdefs.h"
4910 /* System header to define __stub macros and hopefully few prototypes,
4911 which can conflict with char $ac_func(); below. */
4912 #include <assert.h>
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4916 char $ac_func();
4918 int main() {
4920 /* The GNU C library defines this for functions which it implements
4921 to always fail with ENOSYS. Some functions are actually named
4922 something starting with __ and the normal name is an alias. */
4923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4924 choke me
4925 #else
4926 $ac_func();
4927 #endif
4929 ; return 0; }
4931 if { (eval echo configure:4932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4932 rm -rf conftest*
4933 eval "ac_cv_func_$ac_func=yes"
4934 else
4935 echo "configure: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4937 rm -rf conftest*
4938 eval "ac_cv_func_$ac_func=no"
4940 rm -f conftest*
4943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4944 echo "$ac_t""yes" 1>&6
4945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4946 cat >> confdefs.h <<EOF
4947 #define $ac_tr_func 1
4950 else
4951 echo "$ac_t""no" 1>&6
4953 done
4955 if test x"$ac_cv_func_connect" = x"no"; then
4956 case "$LIBS" in
4957 *-lnsl*) ;;
4958 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4959 echo "configure:4960: checking for printf in -lnsl_s" >&5
4960 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4963 else
4964 ac_save_LIBS="$LIBS"
4965 LIBS="-lnsl_s $LIBS"
4966 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 /* We use char because int might match the return type of a gcc2
4971 builtin and then its argument prototype would still apply. */
4972 char printf();
4974 int main() {
4975 printf()
4976 ; return 0; }
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 rm -rf conftest*
4980 eval "ac_cv_lib_$ac_lib_var=yes"
4981 else
4982 echo "configure: failed program was:" >&5
4983 cat conftest.$ac_ext >&5
4984 rm -rf conftest*
4985 eval "ac_cv_lib_$ac_lib_var=no"
4987 rm -f conftest*
4988 LIBS="$ac_save_LIBS"
4991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4992 echo "$ac_t""yes" 1>&6
4993 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4994 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4995 cat >> confdefs.h <<EOF
4996 #define $ac_tr_lib 1
4999 LIBS="-lnsl_s $LIBS"
5001 else
5002 echo "$ac_t""no" 1>&6
5005 esac
5006 case "$LIBS" in
5007 *-lnsl*) ;;
5008 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
5009 echo "configure:5010: checking for printf in -lnsl" >&5
5010 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
5011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5012 echo $ac_n "(cached) $ac_c" 1>&6
5013 else
5014 ac_save_LIBS="$LIBS"
5015 LIBS="-lnsl $LIBS"
5016 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure"
5018 #include "confdefs.h"
5019 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5022 char printf();
5024 int main() {
5025 printf()
5026 ; return 0; }
5028 if { (eval echo configure:5029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5029 rm -rf conftest*
5030 eval "ac_cv_lib_$ac_lib_var=yes"
5031 else
5032 echo "configure: failed program was:" >&5
5033 cat conftest.$ac_ext >&5
5034 rm -rf conftest*
5035 eval "ac_cv_lib_$ac_lib_var=no"
5037 rm -f conftest*
5038 LIBS="$ac_save_LIBS"
5041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5042 echo "$ac_t""yes" 1>&6
5043 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5045 cat >> confdefs.h <<EOF
5046 #define $ac_tr_lib 1
5049 LIBS="-lnsl $LIBS"
5051 else
5052 echo "$ac_t""no" 1>&6
5055 esac
5056 case "$LIBS" in
5057 *-lsocket*) ;;
5058 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
5059 echo "configure:5060: checking for connect in -lsocket" >&5
5060 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5061 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5063 else
5064 ac_save_LIBS="$LIBS"
5065 LIBS="-lsocket $LIBS"
5066 cat > conftest.$ac_ext <<EOF
5067 #line 5068 "configure"
5068 #include "confdefs.h"
5069 /* Override any gcc2 internal prototype to avoid an error. */
5070 /* We use char because int might match the return type of a gcc2
5071 builtin and then its argument prototype would still apply. */
5072 char connect();
5074 int main() {
5075 connect()
5076 ; return 0; }
5078 if { (eval echo configure:5079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5079 rm -rf conftest*
5080 eval "ac_cv_lib_$ac_lib_var=yes"
5081 else
5082 echo "configure: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 rm -rf conftest*
5085 eval "ac_cv_lib_$ac_lib_var=no"
5087 rm -f conftest*
5088 LIBS="$ac_save_LIBS"
5091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5092 echo "$ac_t""yes" 1>&6
5093 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5095 cat >> confdefs.h <<EOF
5096 #define $ac_tr_lib 1
5099 LIBS="-lsocket $LIBS"
5101 else
5102 echo "$ac_t""no" 1>&6
5105 esac
5106 case "$LIBS" in
5107 *-linet*) ;;
5108 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
5109 echo "configure:5110: checking for connect in -linet" >&5
5110 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
5111 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5113 else
5114 ac_save_LIBS="$LIBS"
5115 LIBS="-linet $LIBS"
5116 cat > conftest.$ac_ext <<EOF
5117 #line 5118 "configure"
5118 #include "confdefs.h"
5119 /* Override any gcc2 internal prototype to avoid an error. */
5120 /* We use char because int might match the return type of a gcc2
5121 builtin and then its argument prototype would still apply. */
5122 char connect();
5124 int main() {
5125 connect()
5126 ; return 0; }
5128 if { (eval echo configure:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5129 rm -rf conftest*
5130 eval "ac_cv_lib_$ac_lib_var=yes"
5131 else
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5134 rm -rf conftest*
5135 eval "ac_cv_lib_$ac_lib_var=no"
5137 rm -f conftest*
5138 LIBS="$ac_save_LIBS"
5141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5143 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5145 cat >> confdefs.h <<EOF
5146 #define $ac_tr_lib 1
5149 LIBS="-linet $LIBS"
5151 else
5152 echo "$ac_t""no" 1>&6
5155 esac
5156 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
5157 test x"$ac_cv_lib_inet_connect" = x"yes"; then
5158 # ac_cv_func_connect=yes
5159 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
5160 cat >> confdefs.h <<\EOF
5161 #define HAVE_CONNECT 1
5167 ###############################################
5168 # test for where we get get_yp_default_domain() from
5169 for ac_func in yp_get_default_domain
5171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5172 echo "configure:5173: checking for $ac_func" >&5
5173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5175 else
5176 cat > conftest.$ac_ext <<EOF
5177 #line 5178 "configure"
5178 #include "confdefs.h"
5179 /* System header to define __stub macros and hopefully few prototypes,
5180 which can conflict with char $ac_func(); below. */
5181 #include <assert.h>
5182 /* Override any gcc2 internal prototype to avoid an error. */
5183 /* We use char because int might match the return type of a gcc2
5184 builtin and then its argument prototype would still apply. */
5185 char $ac_func();
5187 int main() {
5189 /* The GNU C library defines this for functions which it implements
5190 to always fail with ENOSYS. Some functions are actually named
5191 something starting with __ and the normal name is an alias. */
5192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5193 choke me
5194 #else
5195 $ac_func();
5196 #endif
5198 ; return 0; }
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5201 rm -rf conftest*
5202 eval "ac_cv_func_$ac_func=yes"
5203 else
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5206 rm -rf conftest*
5207 eval "ac_cv_func_$ac_func=no"
5209 rm -f conftest*
5212 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5213 echo "$ac_t""yes" 1>&6
5214 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5215 cat >> confdefs.h <<EOF
5216 #define $ac_tr_func 1
5219 else
5220 echo "$ac_t""no" 1>&6
5222 done
5224 if test x"$ac_cv_func_yp_get_default_domain" = x"no"; then
5225 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
5226 echo "configure:5227: checking for yp_get_default_domain in -lnsl" >&5
5227 ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
5228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5230 else
5231 ac_save_LIBS="$LIBS"
5232 LIBS="-lnsl $LIBS"
5233 cat > conftest.$ac_ext <<EOF
5234 #line 5235 "configure"
5235 #include "confdefs.h"
5236 /* Override any gcc2 internal prototype to avoid an error. */
5237 /* We use char because int might match the return type of a gcc2
5238 builtin and then its argument prototype would still apply. */
5239 char yp_get_default_domain();
5241 int main() {
5242 yp_get_default_domain()
5243 ; return 0; }
5245 if { (eval echo configure:5246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5246 rm -rf conftest*
5247 eval "ac_cv_lib_$ac_lib_var=yes"
5248 else
5249 echo "configure: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5251 rm -rf conftest*
5252 eval "ac_cv_lib_$ac_lib_var=no"
5254 rm -f conftest*
5255 LIBS="$ac_save_LIBS"
5258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5259 echo "$ac_t""yes" 1>&6
5260 LIBS="$LIBS -lnsl";
5261 cat >> confdefs.h <<\EOF
5262 #define HAVE_YP_GET_DEFAULT_DOMAIN 1
5265 else
5266 echo "$ac_t""no" 1>&6
5271 # Check if we have execl, if not we need to compile smbrun.
5272 for ac_func in execl
5274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_func" >&5
5276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5278 else
5279 cat > conftest.$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func(); below. */
5284 #include <assert.h>
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5288 char $ac_func();
5290 int main() {
5292 /* The GNU C library defines this for functions which it implements
5293 to always fail with ENOSYS. Some functions are actually named
5294 something starting with __ and the normal name is an alias. */
5295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5296 choke me
5297 #else
5298 $ac_func();
5299 #endif
5301 ; return 0; }
5303 if { (eval echo configure:5304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5304 rm -rf conftest*
5305 eval "ac_cv_func_$ac_func=yes"
5306 else
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5309 rm -rf conftest*
5310 eval "ac_cv_func_$ac_func=no"
5312 rm -f conftest*
5315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5316 echo "$ac_t""yes" 1>&6
5317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5318 cat >> confdefs.h <<EOF
5319 #define $ac_tr_func 1
5322 else
5323 echo "$ac_t""no" 1>&6
5325 done
5327 if test x"$ac_cv_func_execl" = x"no"; then
5328 RUNPROG="bin/smbrun"
5329 else
5330 RUNPROG=""
5333 for ac_func in dlopen dlclose dlsym dlerror waitpid getcwd strdup strndup strnlen strtoul strerror chown fchown chmod fchmod chroot link
5335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5336 echo "configure:5337: checking for $ac_func" >&5
5337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5338 echo $ac_n "(cached) $ac_c" 1>&6
5339 else
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5343 /* System header to define __stub macros and hopefully few prototypes,
5344 which can conflict with char $ac_func(); below. */
5345 #include <assert.h>
5346 /* Override any gcc2 internal prototype to avoid an error. */
5347 /* We use char because int might match the return type of a gcc2
5348 builtin and then its argument prototype would still apply. */
5349 char $ac_func();
5351 int main() {
5353 /* The GNU C library defines this for functions which it implements
5354 to always fail with ENOSYS. Some functions are actually named
5355 something starting with __ and the normal name is an alias. */
5356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5357 choke me
5358 #else
5359 $ac_func();
5360 #endif
5362 ; return 0; }
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5365 rm -rf conftest*
5366 eval "ac_cv_func_$ac_func=yes"
5367 else
5368 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5
5370 rm -rf conftest*
5371 eval "ac_cv_func_$ac_func=no"
5373 rm -f conftest*
5376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5377 echo "$ac_t""yes" 1>&6
5378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5379 cat >> confdefs.h <<EOF
5380 #define $ac_tr_func 1
5383 else
5384 echo "$ac_t""no" 1>&6
5386 done
5388 for ac_func in fstat strchr utime utimes getrlimit fsync bzero memset strlcpy strlcat setpgid mknod mknod64
5390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5391 echo "configure:5392: checking for $ac_func" >&5
5392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5393 echo $ac_n "(cached) $ac_c" 1>&6
5394 else
5395 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure"
5397 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes,
5399 which can conflict with char $ac_func(); below. */
5400 #include <assert.h>
5401 /* Override any gcc2 internal prototype to avoid an error. */
5402 /* We use char because int might match the return type of a gcc2
5403 builtin and then its argument prototype would still apply. */
5404 char $ac_func();
5406 int main() {
5408 /* The GNU C library defines this for functions which it implements
5409 to always fail with ENOSYS. Some functions are actually named
5410 something starting with __ and the normal name is an alias. */
5411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5412 choke me
5413 #else
5414 $ac_func();
5415 #endif
5417 ; return 0; }
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5420 rm -rf conftest*
5421 eval "ac_cv_func_$ac_func=yes"
5422 else
5423 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5
5425 rm -rf conftest*
5426 eval "ac_cv_func_$ac_func=no"
5428 rm -f conftest*
5431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5432 echo "$ac_t""yes" 1>&6
5433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5434 cat >> confdefs.h <<EOF
5435 #define $ac_tr_func 1
5438 else
5439 echo "$ac_t""no" 1>&6
5441 done
5443 for ac_func in memmove vsnprintf snprintf asprintf vasprintf setsid glob strpbrk pipe crypt16 getauthuid
5445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5446 echo "configure:5447: checking for $ac_func" >&5
5447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5448 echo $ac_n "(cached) $ac_c" 1>&6
5449 else
5450 cat > conftest.$ac_ext <<EOF
5451 #line 5452 "configure"
5452 #include "confdefs.h"
5453 /* System header to define __stub macros and hopefully few prototypes,
5454 which can conflict with char $ac_func(); below. */
5455 #include <assert.h>
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 /* We use char because int might match the return type of a gcc2
5458 builtin and then its argument prototype would still apply. */
5459 char $ac_func();
5461 int main() {
5463 /* The GNU C library defines this for functions which it implements
5464 to always fail with ENOSYS. Some functions are actually named
5465 something starting with __ and the normal name is an alias. */
5466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5467 choke me
5468 #else
5469 $ac_func();
5470 #endif
5472 ; return 0; }
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475 rm -rf conftest*
5476 eval "ac_cv_func_$ac_func=yes"
5477 else
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 rm -rf conftest*
5481 eval "ac_cv_func_$ac_func=no"
5483 rm -f conftest*
5486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5487 echo "$ac_t""yes" 1>&6
5488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5489 cat >> confdefs.h <<EOF
5490 #define $ac_tr_func 1
5493 else
5494 echo "$ac_t""no" 1>&6
5496 done
5498 for ac_func in strftime sigprocmask sigblock sigaction sigset innetgr setnetgrent getnetgrent endnetgrent
5500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5501 echo "configure:5502: checking for $ac_func" >&5
5502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5503 echo $ac_n "(cached) $ac_c" 1>&6
5504 else
5505 cat > conftest.$ac_ext <<EOF
5506 #line 5507 "configure"
5507 #include "confdefs.h"
5508 /* System header to define __stub macros and hopefully few prototypes,
5509 which can conflict with char $ac_func(); below. */
5510 #include <assert.h>
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 /* We use char because int might match the return type of a gcc2
5513 builtin and then its argument prototype would still apply. */
5514 char $ac_func();
5516 int main() {
5518 /* The GNU C library defines this for functions which it implements
5519 to always fail with ENOSYS. Some functions are actually named
5520 something starting with __ and the normal name is an alias. */
5521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5522 choke me
5523 #else
5524 $ac_func();
5525 #endif
5527 ; return 0; }
5529 if { (eval echo configure:5530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5530 rm -rf conftest*
5531 eval "ac_cv_func_$ac_func=yes"
5532 else
5533 echo "configure: failed program was:" >&5
5534 cat conftest.$ac_ext >&5
5535 rm -rf conftest*
5536 eval "ac_cv_func_$ac_func=no"
5538 rm -f conftest*
5541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5542 echo "$ac_t""yes" 1>&6
5543 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5544 cat >> confdefs.h <<EOF
5545 #define $ac_tr_func 1
5548 else
5549 echo "$ac_t""no" 1>&6
5551 done
5553 for ac_func in initgroups select poll rdchk getgrnam getgrent pathconf realpath
5555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5556 echo "configure:5557: checking for $ac_func" >&5
5557 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5558 echo $ac_n "(cached) $ac_c" 1>&6
5559 else
5560 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure"
5562 #include "confdefs.h"
5563 /* System header to define __stub macros and hopefully few prototypes,
5564 which can conflict with char $ac_func(); below. */
5565 #include <assert.h>
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5569 char $ac_func();
5571 int main() {
5573 /* The GNU C library defines this for functions which it implements
5574 to always fail with ENOSYS. Some functions are actually named
5575 something starting with __ and the normal name is an alias. */
5576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5577 choke me
5578 #else
5579 $ac_func();
5580 #endif
5582 ; return 0; }
5584 if { (eval echo configure:5585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5585 rm -rf conftest*
5586 eval "ac_cv_func_$ac_func=yes"
5587 else
5588 echo "configure: failed program was:" >&5
5589 cat conftest.$ac_ext >&5
5590 rm -rf conftest*
5591 eval "ac_cv_func_$ac_func=no"
5593 rm -f conftest*
5596 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5597 echo "$ac_t""yes" 1>&6
5598 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5599 cat >> confdefs.h <<EOF
5600 #define $ac_tr_func 1
5603 else
5604 echo "$ac_t""no" 1>&6
5606 done
5608 for ac_func in setpriv setgidx setuidx setgroups sysconf mktime rename ftruncate stat64 fstat64
5610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5611 echo "configure:5612: checking for $ac_func" >&5
5612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5614 else
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char $ac_func(); below. */
5620 #include <assert.h>
5621 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5624 char $ac_func();
5626 int main() {
5628 /* The GNU C library defines this for functions which it implements
5629 to always fail with ENOSYS. Some functions are actually named
5630 something starting with __ and the normal name is an alias. */
5631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5632 choke me
5633 #else
5634 $ac_func();
5635 #endif
5637 ; return 0; }
5639 if { (eval echo configure:5640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5640 rm -rf conftest*
5641 eval "ac_cv_func_$ac_func=yes"
5642 else
5643 echo "configure: failed program was:" >&5
5644 cat conftest.$ac_ext >&5
5645 rm -rf conftest*
5646 eval "ac_cv_func_$ac_func=no"
5648 rm -f conftest*
5651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5652 echo "$ac_t""yes" 1>&6
5653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5654 cat >> confdefs.h <<EOF
5655 #define $ac_tr_func 1
5658 else
5659 echo "$ac_t""no" 1>&6
5661 done
5663 for ac_func in lstat64 fopen64 atexit grantpt dup2 lseek64 ftruncate64 readdir64
5665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5666 echo "configure:5667: checking for $ac_func" >&5
5667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5668 echo $ac_n "(cached) $ac_c" 1>&6
5669 else
5670 cat > conftest.$ac_ext <<EOF
5671 #line 5672 "configure"
5672 #include "confdefs.h"
5673 /* System header to define __stub macros and hopefully few prototypes,
5674 which can conflict with char $ac_func(); below. */
5675 #include <assert.h>
5676 /* Override any gcc2 internal prototype to avoid an error. */
5677 /* We use char because int might match the return type of a gcc2
5678 builtin and then its argument prototype would still apply. */
5679 char $ac_func();
5681 int main() {
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5687 choke me
5688 #else
5689 $ac_func();
5690 #endif
5692 ; return 0; }
5694 if { (eval echo configure:5695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5695 rm -rf conftest*
5696 eval "ac_cv_func_$ac_func=yes"
5697 else
5698 echo "configure: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5700 rm -rf conftest*
5701 eval "ac_cv_func_$ac_func=no"
5703 rm -f conftest*
5706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5707 echo "$ac_t""yes" 1>&6
5708 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5709 cat >> confdefs.h <<EOF
5710 #define $ac_tr_func 1
5713 else
5714 echo "$ac_t""no" 1>&6
5716 done
5718 for ac_func in fseek64 fseeko64 ftell64 ftello64 setluid getpwanam setlinebuf
5720 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5721 echo "configure:5722: checking for $ac_func" >&5
5722 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5723 echo $ac_n "(cached) $ac_c" 1>&6
5724 else
5725 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure"
5727 #include "confdefs.h"
5728 /* System header to define __stub macros and hopefully few prototypes,
5729 which can conflict with char $ac_func(); below. */
5730 #include <assert.h>
5731 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5734 char $ac_func();
5736 int main() {
5738 /* The GNU C library defines this for functions which it implements
5739 to always fail with ENOSYS. Some functions are actually named
5740 something starting with __ and the normal name is an alias. */
5741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5742 choke me
5743 #else
5744 $ac_func();
5745 #endif
5747 ; return 0; }
5749 if { (eval echo configure:5750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5750 rm -rf conftest*
5751 eval "ac_cv_func_$ac_func=yes"
5752 else
5753 echo "configure: failed program was:" >&5
5754 cat conftest.$ac_ext >&5
5755 rm -rf conftest*
5756 eval "ac_cv_func_$ac_func=no"
5758 rm -f conftest*
5761 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5762 echo "$ac_t""yes" 1>&6
5763 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_func 1
5768 else
5769 echo "$ac_t""no" 1>&6
5771 done
5773 for ac_func in srandom random srand rand setenv usleep strcasecmp fcvt fcvtl symlink readlink
5775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5776 echo "configure:5777: checking for $ac_func" >&5
5777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5778 echo $ac_n "(cached) $ac_c" 1>&6
5779 else
5780 cat > conftest.$ac_ext <<EOF
5781 #line 5782 "configure"
5782 #include "confdefs.h"
5783 /* System header to define __stub macros and hopefully few prototypes,
5784 which can conflict with char $ac_func(); below. */
5785 #include <assert.h>
5786 /* Override any gcc2 internal prototype to avoid an error. */
5787 /* We use char because int might match the return type of a gcc2
5788 builtin and then its argument prototype would still apply. */
5789 char $ac_func();
5791 int main() {
5793 /* The GNU C library defines this for functions which it implements
5794 to always fail with ENOSYS. Some functions are actually named
5795 something starting with __ and the normal name is an alias. */
5796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5797 choke me
5798 #else
5799 $ac_func();
5800 #endif
5802 ; return 0; }
5804 if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5805 rm -rf conftest*
5806 eval "ac_cv_func_$ac_func=yes"
5807 else
5808 echo "configure: failed program was:" >&5
5809 cat conftest.$ac_ext >&5
5810 rm -rf conftest*
5811 eval "ac_cv_func_$ac_func=no"
5813 rm -f conftest*
5816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5817 echo "$ac_t""yes" 1>&6
5818 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5819 cat >> confdefs.h <<EOF
5820 #define $ac_tr_func 1
5823 else
5824 echo "$ac_t""no" 1>&6
5826 done
5828 for ac_func in syslog vsyslog
5830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5831 echo "configure:5832: checking for $ac_func" >&5
5832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5834 else
5835 cat > conftest.$ac_ext <<EOF
5836 #line 5837 "configure"
5837 #include "confdefs.h"
5838 /* System header to define __stub macros and hopefully few prototypes,
5839 which can conflict with char $ac_func(); below. */
5840 #include <assert.h>
5841 /* Override any gcc2 internal prototype to avoid an error. */
5842 /* We use char because int might match the return type of a gcc2
5843 builtin and then its argument prototype would still apply. */
5844 char $ac_func();
5846 int main() {
5848 /* The GNU C library defines this for functions which it implements
5849 to always fail with ENOSYS. Some functions are actually named
5850 something starting with __ and the normal name is an alias. */
5851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5852 choke me
5853 #else
5854 $ac_func();
5855 #endif
5857 ; return 0; }
5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 rm -rf conftest*
5861 eval "ac_cv_func_$ac_func=yes"
5862 else
5863 echo "configure: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5865 rm -rf conftest*
5866 eval "ac_cv_func_$ac_func=no"
5868 rm -f conftest*
5871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5874 cat >> confdefs.h <<EOF
5875 #define $ac_tr_func 1
5878 else
5879 echo "$ac_t""no" 1>&6
5881 done
5884 # syscall() is needed for smbwrapper.
5885 for ac_func in syscall
5887 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5888 echo "configure:5889: checking for $ac_func" >&5
5889 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5890 echo $ac_n "(cached) $ac_c" 1>&6
5891 else
5892 cat > conftest.$ac_ext <<EOF
5893 #line 5894 "configure"
5894 #include "confdefs.h"
5895 /* System header to define __stub macros and hopefully few prototypes,
5896 which can conflict with char $ac_func(); below. */
5897 #include <assert.h>
5898 /* Override any gcc2 internal prototype to avoid an error. */
5899 /* We use char because int might match the return type of a gcc2
5900 builtin and then its argument prototype would still apply. */
5901 char $ac_func();
5903 int main() {
5905 /* The GNU C library defines this for functions which it implements
5906 to always fail with ENOSYS. Some functions are actually named
5907 something starting with __ and the normal name is an alias. */
5908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5909 choke me
5910 #else
5911 $ac_func();
5912 #endif
5914 ; return 0; }
5916 if { (eval echo configure:5917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5917 rm -rf conftest*
5918 eval "ac_cv_func_$ac_func=yes"
5919 else
5920 echo "configure: failed program was:" >&5
5921 cat conftest.$ac_ext >&5
5922 rm -rf conftest*
5923 eval "ac_cv_func_$ac_func=no"
5925 rm -f conftest*
5928 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5929 echo "$ac_t""yes" 1>&6
5930 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5931 cat >> confdefs.h <<EOF
5932 #define $ac_tr_func 1
5935 else
5936 echo "$ac_t""no" 1>&6
5938 done
5941 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
5943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5944 echo "configure:5945: checking for $ac_func" >&5
5945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5947 else
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char $ac_func(); below. */
5953 #include <assert.h>
5954 /* Override any gcc2 internal prototype to avoid an error. */
5955 /* We use char because int might match the return type of a gcc2
5956 builtin and then its argument prototype would still apply. */
5957 char $ac_func();
5959 int main() {
5961 /* The GNU C library defines this for functions which it implements
5962 to always fail with ENOSYS. Some functions are actually named
5963 something starting with __ and the normal name is an alias. */
5964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5965 choke me
5966 #else
5967 $ac_func();
5968 #endif
5970 ; return 0; }
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5973 rm -rf conftest*
5974 eval "ac_cv_func_$ac_func=yes"
5975 else
5976 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5978 rm -rf conftest*
5979 eval "ac_cv_func_$ac_func=no"
5981 rm -f conftest*
5984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5985 echo "$ac_t""yes" 1>&6
5986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5987 cat >> confdefs.h <<EOF
5988 #define $ac_tr_func 1
5991 else
5992 echo "$ac_t""no" 1>&6
5994 done
5996 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_func" >&5
6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6
6002 else
6003 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure"
6005 #include "confdefs.h"
6006 /* System header to define __stub macros and hopefully few prototypes,
6007 which can conflict with char $ac_func(); below. */
6008 #include <assert.h>
6009 /* Override any gcc2 internal prototype to avoid an error. */
6010 /* We use char because int might match the return type of a gcc2
6011 builtin and then its argument prototype would still apply. */
6012 char $ac_func();
6014 int main() {
6016 /* The GNU C library defines this for functions which it implements
6017 to always fail with ENOSYS. Some functions are actually named
6018 something starting with __ and the normal name is an alias. */
6019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6020 choke me
6021 #else
6022 $ac_func();
6023 #endif
6025 ; return 0; }
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 rm -rf conftest*
6029 eval "ac_cv_func_$ac_func=yes"
6030 else
6031 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5
6033 rm -rf conftest*
6034 eval "ac_cv_func_$ac_func=no"
6036 rm -f conftest*
6039 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040 echo "$ac_t""yes" 1>&6
6041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042 cat >> confdefs.h <<EOF
6043 #define $ac_tr_func 1
6046 else
6047 echo "$ac_t""no" 1>&6
6049 done
6051 for ac_func in __getcwd _getcwd
6053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6054 echo "configure:6055: checking for $ac_func" >&5
6055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6056 echo $ac_n "(cached) $ac_c" 1>&6
6057 else
6058 cat > conftest.$ac_ext <<EOF
6059 #line 6060 "configure"
6060 #include "confdefs.h"
6061 /* System header to define __stub macros and hopefully few prototypes,
6062 which can conflict with char $ac_func(); below. */
6063 #include <assert.h>
6064 /* Override any gcc2 internal prototype to avoid an error. */
6065 /* We use char because int might match the return type of a gcc2
6066 builtin and then its argument prototype would still apply. */
6067 char $ac_func();
6069 int main() {
6071 /* The GNU C library defines this for functions which it implements
6072 to always fail with ENOSYS. Some functions are actually named
6073 something starting with __ and the normal name is an alias. */
6074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6075 choke me
6076 #else
6077 $ac_func();
6078 #endif
6080 ; return 0; }
6082 if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6083 rm -rf conftest*
6084 eval "ac_cv_func_$ac_func=yes"
6085 else
6086 echo "configure: failed program was:" >&5
6087 cat conftest.$ac_ext >&5
6088 rm -rf conftest*
6089 eval "ac_cv_func_$ac_func=no"
6091 rm -f conftest*
6094 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6095 echo "$ac_t""yes" 1>&6
6096 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6097 cat >> confdefs.h <<EOF
6098 #define $ac_tr_func 1
6101 else
6102 echo "$ac_t""no" 1>&6
6104 done
6106 for ac_func in __xstat __fxstat __lxstat
6108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6109 echo "configure:6110: checking for $ac_func" >&5
6110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6111 echo $ac_n "(cached) $ac_c" 1>&6
6112 else
6113 cat > conftest.$ac_ext <<EOF
6114 #line 6115 "configure"
6115 #include "confdefs.h"
6116 /* System header to define __stub macros and hopefully few prototypes,
6117 which can conflict with char $ac_func(); below. */
6118 #include <assert.h>
6119 /* Override any gcc2 internal prototype to avoid an error. */
6120 /* We use char because int might match the return type of a gcc2
6121 builtin and then its argument prototype would still apply. */
6122 char $ac_func();
6124 int main() {
6126 /* The GNU C library defines this for functions which it implements
6127 to always fail with ENOSYS. Some functions are actually named
6128 something starting with __ and the normal name is an alias. */
6129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6130 choke me
6131 #else
6132 $ac_func();
6133 #endif
6135 ; return 0; }
6137 if { (eval echo configure:6138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6138 rm -rf conftest*
6139 eval "ac_cv_func_$ac_func=yes"
6140 else
6141 echo "configure: failed program was:" >&5
6142 cat conftest.$ac_ext >&5
6143 rm -rf conftest*
6144 eval "ac_cv_func_$ac_func=no"
6146 rm -f conftest*
6149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6150 echo "$ac_t""yes" 1>&6
6151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6152 cat >> confdefs.h <<EOF
6153 #define $ac_tr_func 1
6156 else
6157 echo "$ac_t""no" 1>&6
6159 done
6161 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
6163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6164 echo "configure:6165: checking for $ac_func" >&5
6165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6166 echo $ac_n "(cached) $ac_c" 1>&6
6167 else
6168 cat > conftest.$ac_ext <<EOF
6169 #line 6170 "configure"
6170 #include "confdefs.h"
6171 /* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char $ac_func(); below. */
6173 #include <assert.h>
6174 /* Override any gcc2 internal prototype to avoid an error. */
6175 /* We use char because int might match the return type of a gcc2
6176 builtin and then its argument prototype would still apply. */
6177 char $ac_func();
6179 int main() {
6181 /* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185 choke me
6186 #else
6187 $ac_func();
6188 #endif
6190 ; return 0; }
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 rm -rf conftest*
6194 eval "ac_cv_func_$ac_func=yes"
6195 else
6196 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5
6198 rm -rf conftest*
6199 eval "ac_cv_func_$ac_func=no"
6201 rm -f conftest*
6204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6205 echo "$ac_t""yes" 1>&6
6206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6207 cat >> confdefs.h <<EOF
6208 #define $ac_tr_func 1
6211 else
6212 echo "$ac_t""no" 1>&6
6214 done
6216 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
6218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6219 echo "configure:6220: checking for $ac_func" >&5
6220 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6221 echo $ac_n "(cached) $ac_c" 1>&6
6222 else
6223 cat > conftest.$ac_ext <<EOF
6224 #line 6225 "configure"
6225 #include "confdefs.h"
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func(); below. */
6228 #include <assert.h>
6229 /* Override any gcc2 internal prototype to avoid an error. */
6230 /* We use char because int might match the return type of a gcc2
6231 builtin and then its argument prototype would still apply. */
6232 char $ac_func();
6234 int main() {
6236 /* The GNU C library defines this for functions which it implements
6237 to always fail with ENOSYS. Some functions are actually named
6238 something starting with __ and the normal name is an alias. */
6239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6240 choke me
6241 #else
6242 $ac_func();
6243 #endif
6245 ; return 0; }
6247 if { (eval echo configure:6248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6248 rm -rf conftest*
6249 eval "ac_cv_func_$ac_func=yes"
6250 else
6251 echo "configure: failed program was:" >&5
6252 cat conftest.$ac_ext >&5
6253 rm -rf conftest*
6254 eval "ac_cv_func_$ac_func=no"
6256 rm -f conftest*
6259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6260 echo "$ac_t""yes" 1>&6
6261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6262 cat >> confdefs.h <<EOF
6263 #define $ac_tr_func 1
6266 else
6267 echo "$ac_t""no" 1>&6
6269 done
6271 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
6273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6274 echo "configure:6275: checking for $ac_func" >&5
6275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6276 echo $ac_n "(cached) $ac_c" 1>&6
6277 else
6278 cat > conftest.$ac_ext <<EOF
6279 #line 6280 "configure"
6280 #include "confdefs.h"
6281 /* System header to define __stub macros and hopefully few prototypes,
6282 which can conflict with char $ac_func(); below. */
6283 #include <assert.h>
6284 /* Override any gcc2 internal prototype to avoid an error. */
6285 /* We use char because int might match the return type of a gcc2
6286 builtin and then its argument prototype would still apply. */
6287 char $ac_func();
6289 int main() {
6291 /* The GNU C library defines this for functions which it implements
6292 to always fail with ENOSYS. Some functions are actually named
6293 something starting with __ and the normal name is an alias. */
6294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6295 choke me
6296 #else
6297 $ac_func();
6298 #endif
6300 ; return 0; }
6302 if { (eval echo configure:6303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6303 rm -rf conftest*
6304 eval "ac_cv_func_$ac_func=yes"
6305 else
6306 echo "configure: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 rm -rf conftest*
6309 eval "ac_cv_func_$ac_func=no"
6311 rm -f conftest*
6314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6315 echo "$ac_t""yes" 1>&6
6316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6317 cat >> confdefs.h <<EOF
6318 #define $ac_tr_func 1
6321 else
6322 echo "$ac_t""no" 1>&6
6324 done
6326 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
6328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6329 echo "configure:6330: checking for $ac_func" >&5
6330 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6331 echo $ac_n "(cached) $ac_c" 1>&6
6332 else
6333 cat > conftest.$ac_ext <<EOF
6334 #line 6335 "configure"
6335 #include "confdefs.h"
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func(); below. */
6338 #include <assert.h>
6339 /* Override any gcc2 internal prototype to avoid an error. */
6340 /* We use char because int might match the return type of a gcc2
6341 builtin and then its argument prototype would still apply. */
6342 char $ac_func();
6344 int main() {
6346 /* The GNU C library defines this for functions which it implements
6347 to always fail with ENOSYS. Some functions are actually named
6348 something starting with __ and the normal name is an alias. */
6349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6350 choke me
6351 #else
6352 $ac_func();
6353 #endif
6355 ; return 0; }
6357 if { (eval echo configure:6358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6358 rm -rf conftest*
6359 eval "ac_cv_func_$ac_func=yes"
6360 else
6361 echo "configure: failed program was:" >&5
6362 cat conftest.$ac_ext >&5
6363 rm -rf conftest*
6364 eval "ac_cv_func_$ac_func=no"
6366 rm -f conftest*
6369 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6370 echo "$ac_t""yes" 1>&6
6371 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6372 cat >> confdefs.h <<EOF
6373 #define $ac_tr_func 1
6376 else
6377 echo "$ac_t""no" 1>&6
6379 done
6381 for ac_func in _write __write _fork __fork
6383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6384 echo "configure:6385: checking for $ac_func" >&5
6385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6386 echo $ac_n "(cached) $ac_c" 1>&6
6387 else
6388 cat > conftest.$ac_ext <<EOF
6389 #line 6390 "configure"
6390 #include "confdefs.h"
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char $ac_func(); below. */
6393 #include <assert.h>
6394 /* Override any gcc2 internal prototype to avoid an error. */
6395 /* We use char because int might match the return type of a gcc2
6396 builtin and then its argument prototype would still apply. */
6397 char $ac_func();
6399 int main() {
6401 /* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6405 choke me
6406 #else
6407 $ac_func();
6408 #endif
6410 ; return 0; }
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6413 rm -rf conftest*
6414 eval "ac_cv_func_$ac_func=yes"
6415 else
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6418 rm -rf conftest*
6419 eval "ac_cv_func_$ac_func=no"
6421 rm -f conftest*
6424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6425 echo "$ac_t""yes" 1>&6
6426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6427 cat >> confdefs.h <<EOF
6428 #define $ac_tr_func 1
6431 else
6432 echo "$ac_t""no" 1>&6
6434 done
6436 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
6438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6439 echo "configure:6440: checking for $ac_func" >&5
6440 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6441 echo $ac_n "(cached) $ac_c" 1>&6
6442 else
6443 cat > conftest.$ac_ext <<EOF
6444 #line 6445 "configure"
6445 #include "confdefs.h"
6446 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char $ac_func(); below. */
6448 #include <assert.h>
6449 /* Override any gcc2 internal prototype to avoid an error. */
6450 /* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6452 char $ac_func();
6454 int main() {
6456 /* The GNU C library defines this for functions which it implements
6457 to always fail with ENOSYS. Some functions are actually named
6458 something starting with __ and the normal name is an alias. */
6459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6460 choke me
6461 #else
6462 $ac_func();
6463 #endif
6465 ; return 0; }
6467 if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6468 rm -rf conftest*
6469 eval "ac_cv_func_$ac_func=yes"
6470 else
6471 echo "configure: failed program was:" >&5
6472 cat conftest.$ac_ext >&5
6473 rm -rf conftest*
6474 eval "ac_cv_func_$ac_func=no"
6476 rm -f conftest*
6479 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6480 echo "$ac_t""yes" 1>&6
6481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6482 cat >> confdefs.h <<EOF
6483 #define $ac_tr_func 1
6486 else
6487 echo "$ac_t""no" 1>&6
6489 done
6491 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
6493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6494 echo "configure:6495: checking for $ac_func" >&5
6495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6496 echo $ac_n "(cached) $ac_c" 1>&6
6497 else
6498 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure"
6500 #include "confdefs.h"
6501 /* System header to define __stub macros and hopefully few prototypes,
6502 which can conflict with char $ac_func(); below. */
6503 #include <assert.h>
6504 /* Override any gcc2 internal prototype to avoid an error. */
6505 /* We use char because int might match the return type of a gcc2
6506 builtin and then its argument prototype would still apply. */
6507 char $ac_func();
6509 int main() {
6511 /* The GNU C library defines this for functions which it implements
6512 to always fail with ENOSYS. Some functions are actually named
6513 something starting with __ and the normal name is an alias. */
6514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6515 choke me
6516 #else
6517 $ac_func();
6518 #endif
6520 ; return 0; }
6522 if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6523 rm -rf conftest*
6524 eval "ac_cv_func_$ac_func=yes"
6525 else
6526 echo "configure: failed program was:" >&5
6527 cat conftest.$ac_ext >&5
6528 rm -rf conftest*
6529 eval "ac_cv_func_$ac_func=no"
6531 rm -f conftest*
6534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6535 echo "$ac_t""yes" 1>&6
6536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6537 cat >> confdefs.h <<EOF
6538 #define $ac_tr_func 1
6541 else
6542 echo "$ac_t""no" 1>&6
6544 done
6546 for ac_func in pread _pread __pread pread64 _pread64 __pread64
6548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6549 echo "configure:6550: checking for $ac_func" >&5
6550 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6551 echo $ac_n "(cached) $ac_c" 1>&6
6552 else
6553 cat > conftest.$ac_ext <<EOF
6554 #line 6555 "configure"
6555 #include "confdefs.h"
6556 /* System header to define __stub macros and hopefully few prototypes,
6557 which can conflict with char $ac_func(); below. */
6558 #include <assert.h>
6559 /* Override any gcc2 internal prototype to avoid an error. */
6560 /* We use char because int might match the return type of a gcc2
6561 builtin and then its argument prototype would still apply. */
6562 char $ac_func();
6564 int main() {
6566 /* The GNU C library defines this for functions which it implements
6567 to always fail with ENOSYS. Some functions are actually named
6568 something starting with __ and the normal name is an alias. */
6569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6570 choke me
6571 #else
6572 $ac_func();
6573 #endif
6575 ; return 0; }
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578 rm -rf conftest*
6579 eval "ac_cv_func_$ac_func=yes"
6580 else
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 rm -rf conftest*
6584 eval "ac_cv_func_$ac_func=no"
6586 rm -f conftest*
6589 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6590 echo "$ac_t""yes" 1>&6
6591 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6592 cat >> confdefs.h <<EOF
6593 #define $ac_tr_func 1
6596 else
6597 echo "$ac_t""no" 1>&6
6599 done
6601 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
6603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6604 echo "configure:6605: checking for $ac_func" >&5
6605 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6607 else
6608 cat > conftest.$ac_ext <<EOF
6609 #line 6610 "configure"
6610 #include "confdefs.h"
6611 /* System header to define __stub macros and hopefully few prototypes,
6612 which can conflict with char $ac_func(); below. */
6613 #include <assert.h>
6614 /* Override any gcc2 internal prototype to avoid an error. */
6615 /* We use char because int might match the return type of a gcc2
6616 builtin and then its argument prototype would still apply. */
6617 char $ac_func();
6619 int main() {
6621 /* The GNU C library defines this for functions which it implements
6622 to always fail with ENOSYS. Some functions are actually named
6623 something starting with __ and the normal name is an alias. */
6624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6625 choke me
6626 #else
6627 $ac_func();
6628 #endif
6630 ; return 0; }
6632 if { (eval echo configure:6633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6633 rm -rf conftest*
6634 eval "ac_cv_func_$ac_func=yes"
6635 else
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6638 rm -rf conftest*
6639 eval "ac_cv_func_$ac_func=no"
6641 rm -f conftest*
6644 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6645 echo "$ac_t""yes" 1>&6
6646 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6647 cat >> confdefs.h <<EOF
6648 #define $ac_tr_func 1
6651 else
6652 echo "$ac_t""no" 1>&6
6654 done
6656 for ac_func in open64 _open64 __open64 creat64
6658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6659 echo "configure:6660: checking for $ac_func" >&5
6660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6661 echo $ac_n "(cached) $ac_c" 1>&6
6662 else
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
6666 /* System header to define __stub macros and hopefully few prototypes,
6667 which can conflict with char $ac_func(); below. */
6668 #include <assert.h>
6669 /* Override any gcc2 internal prototype to avoid an error. */
6670 /* We use char because int might match the return type of a gcc2
6671 builtin and then its argument prototype would still apply. */
6672 char $ac_func();
6674 int main() {
6676 /* The GNU C library defines this for functions which it implements
6677 to always fail with ENOSYS. Some functions are actually named
6678 something starting with __ and the normal name is an alias. */
6679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6680 choke me
6681 #else
6682 $ac_func();
6683 #endif
6685 ; return 0; }
6687 if { (eval echo configure:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6688 rm -rf conftest*
6689 eval "ac_cv_func_$ac_func=yes"
6690 else
6691 echo "configure: failed program was:" >&5
6692 cat conftest.$ac_ext >&5
6693 rm -rf conftest*
6694 eval "ac_cv_func_$ac_func=no"
6696 rm -f conftest*
6699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6702 cat >> confdefs.h <<EOF
6703 #define $ac_tr_func 1
6706 else
6707 echo "$ac_t""no" 1>&6
6709 done
6713 # stat64 family may need <sys/stat.h> on some systems, notably ReliantUNIX
6716 if test x$ac_cv_func_stat64 = xno ; then
6717 echo $ac_n "checking for stat64 in <sys/stat.h>""... $ac_c" 1>&6
6718 echo "configure:6719: checking for stat64 in <sys/stat.h>" >&5
6719 cat > conftest.$ac_ext <<EOF
6720 #line 6721 "configure"
6721 #include "confdefs.h"
6723 #if defined(HAVE_UNISTD_H)
6724 #include <unistd.h>
6725 #endif
6726 #include <sys/stat.h>
6728 int main() {
6729 struct stat64 st64; exit(stat64(".",&st64));
6730 ; return 0; }
6732 if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 rm -rf conftest*
6734 ac_cv_func_stat64=yes
6735 else
6736 echo "configure: failed program was:" >&5
6737 cat conftest.$ac_ext >&5
6739 rm -f conftest*
6740 echo "$ac_t""$ac_cv_func_stat64" 1>&6
6741 if test x$ac_cv_func_stat64 = xyes ; then
6742 cat >> confdefs.h <<\EOF
6743 #define HAVE_STAT64 1
6749 if test x$ac_cv_func_lstat64 = xno ; then
6750 echo $ac_n "checking for lstat64 in <sys/stat.h>""... $ac_c" 1>&6
6751 echo "configure:6752: checking for lstat64 in <sys/stat.h>" >&5
6752 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure"
6754 #include "confdefs.h"
6756 #if defined(HAVE_UNISTD_H)
6757 #include <unistd.h>
6758 #endif
6759 #include <sys/stat.h>
6761 int main() {
6762 struct stat64 st64; exit(lstat64(".",&st64));
6763 ; return 0; }
6765 if { (eval echo configure:6766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6766 rm -rf conftest*
6767 ac_cv_func_lstat64=yes
6768 else
6769 echo "configure: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 rm -f conftest*
6773 echo "$ac_t""$ac_cv_func_lstat64" 1>&6
6774 if test x$ac_cv_func_lstat64 = xyes ; then
6775 cat >> confdefs.h <<\EOF
6776 #define HAVE_LSTAT64 1
6782 if test x$ac_cv_func_fstat64 = xno ; then
6783 echo $ac_n "checking for fstat64 in <sys/stat.h>""... $ac_c" 1>&6
6784 echo "configure:6785: checking for fstat64 in <sys/stat.h>" >&5
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6789 #if defined(HAVE_UNISTD_H)
6790 #include <unistd.h>
6791 #endif
6792 #include <sys/stat.h>
6794 int main() {
6795 struct stat64 st64; exit(fstat64(0,&st64));
6796 ; return 0; }
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 rm -rf conftest*
6800 ac_cv_func_fstat64=yes
6801 else
6802 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5
6805 rm -f conftest*
6806 echo "$ac_t""$ac_cv_func_fstat64" 1>&6
6807 if test x$ac_cv_func_fstat64 = xyes ; then
6808 cat >> confdefs.h <<\EOF
6809 #define HAVE_FSTAT64 1
6816 # If no strcasecmp, check for it in some known places
6817 # It is in -lresolv on ReliantUNIX and UnixWare
6818 # -lresolve *must* follow -lnsl for name resolution to work properly
6821 if test x$ac_cv_func_strcasecmp = xno ; then
6822 echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
6823 echo "configure:6824: checking for strcasecmp in -lresolv" >&5
6824 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
6825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6827 else
6828 ac_save_LIBS="$LIBS"
6829 LIBS="-lresolv $LIBS"
6830 cat > conftest.$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6836 char strcasecmp();
6838 int main() {
6839 strcasecmp()
6840 ; return 0; }
6842 if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6843 rm -rf conftest*
6844 eval "ac_cv_lib_$ac_lib_var=yes"
6845 else
6846 echo "configure: failed program was:" >&5
6847 cat conftest.$ac_ext >&5
6848 rm -rf conftest*
6849 eval "ac_cv_lib_$ac_lib_var=no"
6851 rm -f conftest*
6852 LIBS="$ac_save_LIBS"
6855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6857 LIBS="$LIBS -lresolv"
6858 cat >> confdefs.h <<\EOF
6859 #define HAVE_STRCASECMP 1
6862 else
6863 echo "$ac_t""no" 1>&6
6869 # Check for the functions putprpwnam, set_auth_parameters,
6870 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
6871 # Needed for OSF1 and HPUX.
6874 case "$LIBS" in
6875 *-lsecurity*) for ac_func in putprpwnam
6877 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6878 echo "configure:6879: checking for $ac_func" >&5
6879 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6881 else
6882 cat > conftest.$ac_ext <<EOF
6883 #line 6884 "configure"
6884 #include "confdefs.h"
6885 /* System header to define __stub macros and hopefully few prototypes,
6886 which can conflict with char $ac_func(); below. */
6887 #include <assert.h>
6888 /* Override any gcc2 internal prototype to avoid an error. */
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6891 char $ac_func();
6893 int main() {
6895 /* The GNU C library defines this for functions which it implements
6896 to always fail with ENOSYS. Some functions are actually named
6897 something starting with __ and the normal name is an alias. */
6898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6899 choke me
6900 #else
6901 $ac_func();
6902 #endif
6904 ; return 0; }
6906 if { (eval echo configure:6907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6907 rm -rf conftest*
6908 eval "ac_cv_func_$ac_func=yes"
6909 else
6910 echo "configure: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 rm -rf conftest*
6913 eval "ac_cv_func_$ac_func=no"
6915 rm -f conftest*
6918 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6919 echo "$ac_t""yes" 1>&6
6920 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6921 cat >> confdefs.h <<EOF
6922 #define $ac_tr_func 1
6925 else
6926 echo "$ac_t""no" 1>&6
6928 done
6930 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
6931 echo "configure:6932: checking for putprpwnam in -lsecurity" >&5
6932 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
6933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6934 echo $ac_n "(cached) $ac_c" 1>&6
6935 else
6936 ac_save_LIBS="$LIBS"
6937 LIBS="-lsecurity $LIBS"
6938 cat > conftest.$ac_ext <<EOF
6939 #line 6940 "configure"
6940 #include "confdefs.h"
6941 /* Override any gcc2 internal prototype to avoid an error. */
6942 /* We use char because int might match the return type of a gcc2
6943 builtin and then its argument prototype would still apply. */
6944 char putprpwnam();
6946 int main() {
6947 putprpwnam()
6948 ; return 0; }
6950 if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6951 rm -rf conftest*
6952 eval "ac_cv_lib_$ac_lib_var=yes"
6953 else
6954 echo "configure: failed program was:" >&5
6955 cat conftest.$ac_ext >&5
6956 rm -rf conftest*
6957 eval "ac_cv_lib_$ac_lib_var=no"
6959 rm -f conftest*
6960 LIBS="$ac_save_LIBS"
6963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6964 echo "$ac_t""yes" 1>&6
6965 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6967 cat >> confdefs.h <<EOF
6968 #define $ac_tr_lib 1
6971 LIBS="-lsecurity $LIBS"
6973 else
6974 echo "$ac_t""no" 1>&6
6977 for ac_func in putprpwnam
6979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6980 echo "configure:6981: checking for $ac_func" >&5
6981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6983 else
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char $ac_func(); below. */
6989 #include <assert.h>
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6993 char $ac_func();
6995 int main() {
6997 /* The GNU C library defines this for functions which it implements
6998 to always fail with ENOSYS. Some functions are actually named
6999 something starting with __ and the normal name is an alias. */
7000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7001 choke me
7002 #else
7003 $ac_func();
7004 #endif
7006 ; return 0; }
7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7009 rm -rf conftest*
7010 eval "ac_cv_func_$ac_func=yes"
7011 else
7012 echo "configure: failed program was:" >&5
7013 cat conftest.$ac_ext >&5
7014 rm -rf conftest*
7015 eval "ac_cv_func_$ac_func=no"
7017 rm -f conftest*
7020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7021 echo "$ac_t""yes" 1>&6
7022 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7023 cat >> confdefs.h <<EOF
7024 #define $ac_tr_func 1
7027 else
7028 echo "$ac_t""no" 1>&6
7030 done
7033 esac
7035 case "$LIBS" in
7036 *-lsec*) for ac_func in putprpwnam
7038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7039 echo "configure:7040: checking for $ac_func" >&5
7040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7041 echo $ac_n "(cached) $ac_c" 1>&6
7042 else
7043 cat > conftest.$ac_ext <<EOF
7044 #line 7045 "configure"
7045 #include "confdefs.h"
7046 /* System header to define __stub macros and hopefully few prototypes,
7047 which can conflict with char $ac_func(); below. */
7048 #include <assert.h>
7049 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7052 char $ac_func();
7054 int main() {
7056 /* The GNU C library defines this for functions which it implements
7057 to always fail with ENOSYS. Some functions are actually named
7058 something starting with __ and the normal name is an alias. */
7059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7060 choke me
7061 #else
7062 $ac_func();
7063 #endif
7065 ; return 0; }
7067 if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7068 rm -rf conftest*
7069 eval "ac_cv_func_$ac_func=yes"
7070 else
7071 echo "configure: failed program was:" >&5
7072 cat conftest.$ac_ext >&5
7073 rm -rf conftest*
7074 eval "ac_cv_func_$ac_func=no"
7076 rm -f conftest*
7079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7080 echo "$ac_t""yes" 1>&6
7081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7082 cat >> confdefs.h <<EOF
7083 #define $ac_tr_func 1
7086 else
7087 echo "$ac_t""no" 1>&6
7089 done
7091 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
7092 echo "configure:7093: checking for putprpwnam in -lsec" >&5
7093 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
7094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7096 else
7097 ac_save_LIBS="$LIBS"
7098 LIBS="-lsec $LIBS"
7099 cat > conftest.$ac_ext <<EOF
7100 #line 7101 "configure"
7101 #include "confdefs.h"
7102 /* Override any gcc2 internal prototype to avoid an error. */
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char putprpwnam();
7107 int main() {
7108 putprpwnam()
7109 ; return 0; }
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 rm -rf conftest*
7113 eval "ac_cv_lib_$ac_lib_var=yes"
7114 else
7115 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5
7117 rm -rf conftest*
7118 eval "ac_cv_lib_$ac_lib_var=no"
7120 rm -f conftest*
7121 LIBS="$ac_save_LIBS"
7124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7125 echo "$ac_t""yes" 1>&6
7126 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7128 cat >> confdefs.h <<EOF
7129 #define $ac_tr_lib 1
7132 LIBS="-lsec $LIBS"
7134 else
7135 echo "$ac_t""no" 1>&6
7138 for ac_func in putprpwnam
7140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7141 echo "configure:7142: checking for $ac_func" >&5
7142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7143 echo $ac_n "(cached) $ac_c" 1>&6
7144 else
7145 cat > conftest.$ac_ext <<EOF
7146 #line 7147 "configure"
7147 #include "confdefs.h"
7148 /* System header to define __stub macros and hopefully few prototypes,
7149 which can conflict with char $ac_func(); below. */
7150 #include <assert.h>
7151 /* Override any gcc2 internal prototype to avoid an error. */
7152 /* We use char because int might match the return type of a gcc2
7153 builtin and then its argument prototype would still apply. */
7154 char $ac_func();
7156 int main() {
7158 /* The GNU C library defines this for functions which it implements
7159 to always fail with ENOSYS. Some functions are actually named
7160 something starting with __ and the normal name is an alias. */
7161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7162 choke me
7163 #else
7164 $ac_func();
7165 #endif
7167 ; return 0; }
7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7170 rm -rf conftest*
7171 eval "ac_cv_func_$ac_func=yes"
7172 else
7173 echo "configure: failed program was:" >&5
7174 cat conftest.$ac_ext >&5
7175 rm -rf conftest*
7176 eval "ac_cv_func_$ac_func=no"
7178 rm -f conftest*
7181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7182 echo "$ac_t""yes" 1>&6
7183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7184 cat >> confdefs.h <<EOF
7185 #define $ac_tr_func 1
7188 else
7189 echo "$ac_t""no" 1>&6
7191 done
7194 esac
7197 case "$LIBS" in
7198 *-lsecurity*) for ac_func in set_auth_parameters
7200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7201 echo "configure:7202: checking for $ac_func" >&5
7202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7203 echo $ac_n "(cached) $ac_c" 1>&6
7204 else
7205 cat > conftest.$ac_ext <<EOF
7206 #line 7207 "configure"
7207 #include "confdefs.h"
7208 /* System header to define __stub macros and hopefully few prototypes,
7209 which can conflict with char $ac_func(); below. */
7210 #include <assert.h>
7211 /* Override any gcc2 internal prototype to avoid an error. */
7212 /* We use char because int might match the return type of a gcc2
7213 builtin and then its argument prototype would still apply. */
7214 char $ac_func();
7216 int main() {
7218 /* The GNU C library defines this for functions which it implements
7219 to always fail with ENOSYS. Some functions are actually named
7220 something starting with __ and the normal name is an alias. */
7221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7222 choke me
7223 #else
7224 $ac_func();
7225 #endif
7227 ; return 0; }
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230 rm -rf conftest*
7231 eval "ac_cv_func_$ac_func=yes"
7232 else
7233 echo "configure: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7235 rm -rf conftest*
7236 eval "ac_cv_func_$ac_func=no"
7238 rm -f conftest*
7241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7242 echo "$ac_t""yes" 1>&6
7243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7244 cat >> confdefs.h <<EOF
7245 #define $ac_tr_func 1
7248 else
7249 echo "$ac_t""no" 1>&6
7251 done
7253 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
7254 echo "configure:7255: checking for set_auth_parameters in -lsecurity" >&5
7255 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7257 echo $ac_n "(cached) $ac_c" 1>&6
7258 else
7259 ac_save_LIBS="$LIBS"
7260 LIBS="-lsecurity $LIBS"
7261 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure"
7263 #include "confdefs.h"
7264 /* Override any gcc2 internal prototype to avoid an error. */
7265 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */
7267 char set_auth_parameters();
7269 int main() {
7270 set_auth_parameters()
7271 ; return 0; }
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 rm -rf conftest*
7275 eval "ac_cv_lib_$ac_lib_var=yes"
7276 else
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 rm -rf conftest*
7280 eval "ac_cv_lib_$ac_lib_var=no"
7282 rm -f conftest*
7283 LIBS="$ac_save_LIBS"
7286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7287 echo "$ac_t""yes" 1>&6
7288 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7290 cat >> confdefs.h <<EOF
7291 #define $ac_tr_lib 1
7294 LIBS="-lsecurity $LIBS"
7296 else
7297 echo "$ac_t""no" 1>&6
7300 for ac_func in set_auth_parameters
7302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7303 echo "configure:7304: checking for $ac_func" >&5
7304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7305 echo $ac_n "(cached) $ac_c" 1>&6
7306 else
7307 cat > conftest.$ac_ext <<EOF
7308 #line 7309 "configure"
7309 #include "confdefs.h"
7310 /* System header to define __stub macros and hopefully few prototypes,
7311 which can conflict with char $ac_func(); below. */
7312 #include <assert.h>
7313 /* Override any gcc2 internal prototype to avoid an error. */
7314 /* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7316 char $ac_func();
7318 int main() {
7320 /* The GNU C library defines this for functions which it implements
7321 to always fail with ENOSYS. Some functions are actually named
7322 something starting with __ and the normal name is an alias. */
7323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7324 choke me
7325 #else
7326 $ac_func();
7327 #endif
7329 ; return 0; }
7331 if { (eval echo configure:7332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7332 rm -rf conftest*
7333 eval "ac_cv_func_$ac_func=yes"
7334 else
7335 echo "configure: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7337 rm -rf conftest*
7338 eval "ac_cv_func_$ac_func=no"
7340 rm -f conftest*
7343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7344 echo "$ac_t""yes" 1>&6
7345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7346 cat >> confdefs.h <<EOF
7347 #define $ac_tr_func 1
7350 else
7351 echo "$ac_t""no" 1>&6
7353 done
7356 esac
7358 case "$LIBS" in
7359 *-lsec*) for ac_func in set_auth_parameters
7361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7362 echo "configure:7363: checking for $ac_func" >&5
7363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7364 echo $ac_n "(cached) $ac_c" 1>&6
7365 else
7366 cat > conftest.$ac_ext <<EOF
7367 #line 7368 "configure"
7368 #include "confdefs.h"
7369 /* System header to define __stub macros and hopefully few prototypes,
7370 which can conflict with char $ac_func(); below. */
7371 #include <assert.h>
7372 /* Override any gcc2 internal prototype to avoid an error. */
7373 /* We use char because int might match the return type of a gcc2
7374 builtin and then its argument prototype would still apply. */
7375 char $ac_func();
7377 int main() {
7379 /* The GNU C library defines this for functions which it implements
7380 to always fail with ENOSYS. Some functions are actually named
7381 something starting with __ and the normal name is an alias. */
7382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7383 choke me
7384 #else
7385 $ac_func();
7386 #endif
7388 ; return 0; }
7390 if { (eval echo configure:7391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7391 rm -rf conftest*
7392 eval "ac_cv_func_$ac_func=yes"
7393 else
7394 echo "configure: failed program was:" >&5
7395 cat conftest.$ac_ext >&5
7396 rm -rf conftest*
7397 eval "ac_cv_func_$ac_func=no"
7399 rm -f conftest*
7402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7403 echo "$ac_t""yes" 1>&6
7404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7405 cat >> confdefs.h <<EOF
7406 #define $ac_tr_func 1
7409 else
7410 echo "$ac_t""no" 1>&6
7412 done
7414 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
7415 echo "configure:7416: checking for set_auth_parameters in -lsec" >&5
7416 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
7417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7418 echo $ac_n "(cached) $ac_c" 1>&6
7419 else
7420 ac_save_LIBS="$LIBS"
7421 LIBS="-lsec $LIBS"
7422 cat > conftest.$ac_ext <<EOF
7423 #line 7424 "configure"
7424 #include "confdefs.h"
7425 /* Override any gcc2 internal prototype to avoid an error. */
7426 /* We use char because int might match the return type of a gcc2
7427 builtin and then its argument prototype would still apply. */
7428 char set_auth_parameters();
7430 int main() {
7431 set_auth_parameters()
7432 ; return 0; }
7434 if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7435 rm -rf conftest*
7436 eval "ac_cv_lib_$ac_lib_var=yes"
7437 else
7438 echo "configure: failed program was:" >&5
7439 cat conftest.$ac_ext >&5
7440 rm -rf conftest*
7441 eval "ac_cv_lib_$ac_lib_var=no"
7443 rm -f conftest*
7444 LIBS="$ac_save_LIBS"
7447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7448 echo "$ac_t""yes" 1>&6
7449 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7451 cat >> confdefs.h <<EOF
7452 #define $ac_tr_lib 1
7455 LIBS="-lsec $LIBS"
7457 else
7458 echo "$ac_t""no" 1>&6
7461 for ac_func in set_auth_parameters
7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7464 echo "configure:7465: checking for $ac_func" >&5
7465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7466 echo $ac_n "(cached) $ac_c" 1>&6
7467 else
7468 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure"
7470 #include "confdefs.h"
7471 /* System header to define __stub macros and hopefully few prototypes,
7472 which can conflict with char $ac_func(); below. */
7473 #include <assert.h>
7474 /* Override any gcc2 internal prototype to avoid an error. */
7475 /* We use char because int might match the return type of a gcc2
7476 builtin and then its argument prototype would still apply. */
7477 char $ac_func();
7479 int main() {
7481 /* The GNU C library defines this for functions which it implements
7482 to always fail with ENOSYS. Some functions are actually named
7483 something starting with __ and the normal name is an alias. */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7485 choke me
7486 #else
7487 $ac_func();
7488 #endif
7490 ; return 0; }
7492 if { (eval echo configure:7493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7493 rm -rf conftest*
7494 eval "ac_cv_func_$ac_func=yes"
7495 else
7496 echo "configure: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7498 rm -rf conftest*
7499 eval "ac_cv_func_$ac_func=no"
7501 rm -f conftest*
7504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7505 echo "$ac_t""yes" 1>&6
7506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7507 cat >> confdefs.h <<EOF
7508 #define $ac_tr_func 1
7511 else
7512 echo "$ac_t""no" 1>&6
7514 done
7517 esac
7520 # UnixWare 7.x has its getspnam in -lgen
7521 case "$LIBS" in
7522 *-lgen*) for ac_func in getspnam
7524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7525 echo "configure:7526: checking for $ac_func" >&5
7526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7527 echo $ac_n "(cached) $ac_c" 1>&6
7528 else
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 /* System header to define __stub macros and hopefully few prototypes,
7533 which can conflict with char $ac_func(); below. */
7534 #include <assert.h>
7535 /* Override any gcc2 internal prototype to avoid an error. */
7536 /* We use char because int might match the return type of a gcc2
7537 builtin and then its argument prototype would still apply. */
7538 char $ac_func();
7540 int main() {
7542 /* The GNU C library defines this for functions which it implements
7543 to always fail with ENOSYS. Some functions are actually named
7544 something starting with __ and the normal name is an alias. */
7545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7546 choke me
7547 #else
7548 $ac_func();
7549 #endif
7551 ; return 0; }
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7554 rm -rf conftest*
7555 eval "ac_cv_func_$ac_func=yes"
7556 else
7557 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 rm -rf conftest*
7560 eval "ac_cv_func_$ac_func=no"
7562 rm -f conftest*
7565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7566 echo "$ac_t""yes" 1>&6
7567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7568 cat >> confdefs.h <<EOF
7569 #define $ac_tr_func 1
7572 else
7573 echo "$ac_t""no" 1>&6
7575 done
7577 *) echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
7578 echo "configure:7579: checking for getspnam in -lgen" >&5
7579 ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
7580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7581 echo $ac_n "(cached) $ac_c" 1>&6
7582 else
7583 ac_save_LIBS="$LIBS"
7584 LIBS="-lgen $LIBS"
7585 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure"
7587 #include "confdefs.h"
7588 /* Override any gcc2 internal prototype to avoid an error. */
7589 /* We use char because int might match the return type of a gcc2
7590 builtin and then its argument prototype would still apply. */
7591 char getspnam();
7593 int main() {
7594 getspnam()
7595 ; return 0; }
7597 if { (eval echo configure:7598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7598 rm -rf conftest*
7599 eval "ac_cv_lib_$ac_lib_var=yes"
7600 else
7601 echo "configure: failed program was:" >&5
7602 cat conftest.$ac_ext >&5
7603 rm -rf conftest*
7604 eval "ac_cv_lib_$ac_lib_var=no"
7606 rm -f conftest*
7607 LIBS="$ac_save_LIBS"
7610 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7611 echo "$ac_t""yes" 1>&6
7612 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7613 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7614 cat >> confdefs.h <<EOF
7615 #define $ac_tr_lib 1
7618 LIBS="-lgen $LIBS"
7620 else
7621 echo "$ac_t""no" 1>&6
7624 for ac_func in getspnam
7626 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7627 echo "configure:7628: checking for $ac_func" >&5
7628 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7629 echo $ac_n "(cached) $ac_c" 1>&6
7630 else
7631 cat > conftest.$ac_ext <<EOF
7632 #line 7633 "configure"
7633 #include "confdefs.h"
7634 /* System header to define __stub macros and hopefully few prototypes,
7635 which can conflict with char $ac_func(); below. */
7636 #include <assert.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 $ac_func();
7642 int main() {
7644 /* The GNU C library defines this for functions which it implements
7645 to always fail with ENOSYS. Some functions are actually named
7646 something starting with __ and the normal name is an alias. */
7647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7648 choke me
7649 #else
7650 $ac_func();
7651 #endif
7653 ; return 0; }
7655 if { (eval echo configure:7656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7656 rm -rf conftest*
7657 eval "ac_cv_func_$ac_func=yes"
7658 else
7659 echo "configure: failed program was:" >&5
7660 cat conftest.$ac_ext >&5
7661 rm -rf conftest*
7662 eval "ac_cv_func_$ac_func=no"
7664 rm -f conftest*
7667 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7668 echo "$ac_t""yes" 1>&6
7669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7670 cat >> confdefs.h <<EOF
7671 #define $ac_tr_func 1
7674 else
7675 echo "$ac_t""no" 1>&6
7677 done
7680 esac
7683 case "$LIBS" in
7684 *-lsecurity*) for ac_func in getspnam
7686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7687 echo "configure:7688: checking for $ac_func" >&5
7688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7690 else
7691 cat > conftest.$ac_ext <<EOF
7692 #line 7693 "configure"
7693 #include "confdefs.h"
7694 /* System header to define __stub macros and hopefully few prototypes,
7695 which can conflict with char $ac_func(); below. */
7696 #include <assert.h>
7697 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7700 char $ac_func();
7702 int main() {
7704 /* The GNU C library defines this for functions which it implements
7705 to always fail with ENOSYS. Some functions are actually named
7706 something starting with __ and the normal name is an alias. */
7707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7708 choke me
7709 #else
7710 $ac_func();
7711 #endif
7713 ; return 0; }
7715 if { (eval echo configure:7716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7716 rm -rf conftest*
7717 eval "ac_cv_func_$ac_func=yes"
7718 else
7719 echo "configure: failed program was:" >&5
7720 cat conftest.$ac_ext >&5
7721 rm -rf conftest*
7722 eval "ac_cv_func_$ac_func=no"
7724 rm -f conftest*
7727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7728 echo "$ac_t""yes" 1>&6
7729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7730 cat >> confdefs.h <<EOF
7731 #define $ac_tr_func 1
7734 else
7735 echo "$ac_t""no" 1>&6
7737 done
7739 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
7740 echo "configure:7741: checking for getspnam in -lsecurity" >&5
7741 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
7742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7743 echo $ac_n "(cached) $ac_c" 1>&6
7744 else
7745 ac_save_LIBS="$LIBS"
7746 LIBS="-lsecurity $LIBS"
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 /* Override any gcc2 internal prototype to avoid an error. */
7751 /* We use char because int might match the return type of a gcc2
7752 builtin and then its argument prototype would still apply. */
7753 char getspnam();
7755 int main() {
7756 getspnam()
7757 ; return 0; }
7759 if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7760 rm -rf conftest*
7761 eval "ac_cv_lib_$ac_lib_var=yes"
7762 else
7763 echo "configure: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 rm -rf conftest*
7766 eval "ac_cv_lib_$ac_lib_var=no"
7768 rm -f conftest*
7769 LIBS="$ac_save_LIBS"
7772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7773 echo "$ac_t""yes" 1>&6
7774 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7775 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7776 cat >> confdefs.h <<EOF
7777 #define $ac_tr_lib 1
7780 LIBS="-lsecurity $LIBS"
7782 else
7783 echo "$ac_t""no" 1>&6
7786 for ac_func in getspnam
7788 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7789 echo "configure:7790: checking for $ac_func" >&5
7790 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7791 echo $ac_n "(cached) $ac_c" 1>&6
7792 else
7793 cat > conftest.$ac_ext <<EOF
7794 #line 7795 "configure"
7795 #include "confdefs.h"
7796 /* System header to define __stub macros and hopefully few prototypes,
7797 which can conflict with char $ac_func(); below. */
7798 #include <assert.h>
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802 char $ac_func();
7804 int main() {
7806 /* The GNU C library defines this for functions which it implements
7807 to always fail with ENOSYS. Some functions are actually named
7808 something starting with __ and the normal name is an alias. */
7809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7810 choke me
7811 #else
7812 $ac_func();
7813 #endif
7815 ; return 0; }
7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7818 rm -rf conftest*
7819 eval "ac_cv_func_$ac_func=yes"
7820 else
7821 echo "configure: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7823 rm -rf conftest*
7824 eval "ac_cv_func_$ac_func=no"
7826 rm -f conftest*
7829 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7830 echo "$ac_t""yes" 1>&6
7831 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7832 cat >> confdefs.h <<EOF
7833 #define $ac_tr_func 1
7836 else
7837 echo "$ac_t""no" 1>&6
7839 done
7842 esac
7844 case "$LIBS" in
7845 *-lsec*) for ac_func in getspnam
7847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7848 echo "configure:7849: checking for $ac_func" >&5
7849 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7850 echo $ac_n "(cached) $ac_c" 1>&6
7851 else
7852 cat > conftest.$ac_ext <<EOF
7853 #line 7854 "configure"
7854 #include "confdefs.h"
7855 /* System header to define __stub macros and hopefully few prototypes,
7856 which can conflict with char $ac_func(); below. */
7857 #include <assert.h>
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char $ac_func();
7863 int main() {
7865 /* The GNU C library defines this for functions which it implements
7866 to always fail with ENOSYS. Some functions are actually named
7867 something starting with __ and the normal name is an alias. */
7868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7869 choke me
7870 #else
7871 $ac_func();
7872 #endif
7874 ; return 0; }
7876 if { (eval echo configure:7877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7877 rm -rf conftest*
7878 eval "ac_cv_func_$ac_func=yes"
7879 else
7880 echo "configure: failed program was:" >&5
7881 cat conftest.$ac_ext >&5
7882 rm -rf conftest*
7883 eval "ac_cv_func_$ac_func=no"
7885 rm -f conftest*
7888 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7889 echo "$ac_t""yes" 1>&6
7890 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7891 cat >> confdefs.h <<EOF
7892 #define $ac_tr_func 1
7895 else
7896 echo "$ac_t""no" 1>&6
7898 done
7900 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
7901 echo "configure:7902: checking for getspnam in -lsec" >&5
7902 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
7903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7905 else
7906 ac_save_LIBS="$LIBS"
7907 LIBS="-lsec $LIBS"
7908 cat > conftest.$ac_ext <<EOF
7909 #line 7910 "configure"
7910 #include "confdefs.h"
7911 /* Override any gcc2 internal prototype to avoid an error. */
7912 /* We use char because int might match the return type of a gcc2
7913 builtin and then its argument prototype would still apply. */
7914 char getspnam();
7916 int main() {
7917 getspnam()
7918 ; return 0; }
7920 if { (eval echo configure:7921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7921 rm -rf conftest*
7922 eval "ac_cv_lib_$ac_lib_var=yes"
7923 else
7924 echo "configure: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 rm -rf conftest*
7927 eval "ac_cv_lib_$ac_lib_var=no"
7929 rm -f conftest*
7930 LIBS="$ac_save_LIBS"
7933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7934 echo "$ac_t""yes" 1>&6
7935 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7936 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7937 cat >> confdefs.h <<EOF
7938 #define $ac_tr_lib 1
7941 LIBS="-lsec $LIBS"
7943 else
7944 echo "$ac_t""no" 1>&6
7947 for ac_func in getspnam
7949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7950 echo "configure:7951: checking for $ac_func" >&5
7951 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7953 else
7954 cat > conftest.$ac_ext <<EOF
7955 #line 7956 "configure"
7956 #include "confdefs.h"
7957 /* System header to define __stub macros and hopefully few prototypes,
7958 which can conflict with char $ac_func(); below. */
7959 #include <assert.h>
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 /* We use char because int might match the return type of a gcc2
7962 builtin and then its argument prototype would still apply. */
7963 char $ac_func();
7965 int main() {
7967 /* The GNU C library defines this for functions which it implements
7968 to always fail with ENOSYS. Some functions are actually named
7969 something starting with __ and the normal name is an alias. */
7970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7971 choke me
7972 #else
7973 $ac_func();
7974 #endif
7976 ; return 0; }
7978 if { (eval echo configure:7979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7979 rm -rf conftest*
7980 eval "ac_cv_func_$ac_func=yes"
7981 else
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7984 rm -rf conftest*
7985 eval "ac_cv_func_$ac_func=no"
7987 rm -f conftest*
7990 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7992 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7993 cat >> confdefs.h <<EOF
7994 #define $ac_tr_func 1
7997 else
7998 echo "$ac_t""no" 1>&6
8000 done
8003 esac
8006 case "$LIBS" in
8007 *-lsecurity*) for ac_func in bigcrypt
8009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_func" >&5
8011 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014 cat > conftest.$ac_ext <<EOF
8015 #line 8016 "configure"
8016 #include "confdefs.h"
8017 /* System header to define __stub macros and hopefully few prototypes,
8018 which can conflict with char $ac_func(); below. */
8019 #include <assert.h>
8020 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8023 char $ac_func();
8025 int main() {
8027 /* The GNU C library defines this for functions which it implements
8028 to always fail with ENOSYS. Some functions are actually named
8029 something starting with __ and the normal name is an alias. */
8030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8031 choke me
8032 #else
8033 $ac_func();
8034 #endif
8036 ; return 0; }
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 rm -rf conftest*
8040 eval "ac_cv_func_$ac_func=yes"
8041 else
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8044 rm -rf conftest*
8045 eval "ac_cv_func_$ac_func=no"
8047 rm -f conftest*
8050 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8051 echo "$ac_t""yes" 1>&6
8052 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8053 cat >> confdefs.h <<EOF
8054 #define $ac_tr_func 1
8057 else
8058 echo "$ac_t""no" 1>&6
8060 done
8062 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
8063 echo "configure:8064: checking for bigcrypt in -lsecurity" >&5
8064 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
8065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8066 echo $ac_n "(cached) $ac_c" 1>&6
8067 else
8068 ac_save_LIBS="$LIBS"
8069 LIBS="-lsecurity $LIBS"
8070 cat > conftest.$ac_ext <<EOF
8071 #line 8072 "configure"
8072 #include "confdefs.h"
8073 /* Override any gcc2 internal prototype to avoid an error. */
8074 /* We use char because int might match the return type of a gcc2
8075 builtin and then its argument prototype would still apply. */
8076 char bigcrypt();
8078 int main() {
8079 bigcrypt()
8080 ; return 0; }
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8083 rm -rf conftest*
8084 eval "ac_cv_lib_$ac_lib_var=yes"
8085 else
8086 echo "configure: failed program was:" >&5
8087 cat conftest.$ac_ext >&5
8088 rm -rf conftest*
8089 eval "ac_cv_lib_$ac_lib_var=no"
8091 rm -f conftest*
8092 LIBS="$ac_save_LIBS"
8095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8096 echo "$ac_t""yes" 1>&6
8097 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8098 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8099 cat >> confdefs.h <<EOF
8100 #define $ac_tr_lib 1
8103 LIBS="-lsecurity $LIBS"
8105 else
8106 echo "$ac_t""no" 1>&6
8109 for ac_func in bigcrypt
8111 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8112 echo "configure:8113: checking for $ac_func" >&5
8113 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8114 echo $ac_n "(cached) $ac_c" 1>&6
8115 else
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8119 /* System header to define __stub macros and hopefully few prototypes,
8120 which can conflict with char $ac_func(); below. */
8121 #include <assert.h>
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 /* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125 char $ac_func();
8127 int main() {
8129 /* The GNU C library defines this for functions which it implements
8130 to always fail with ENOSYS. Some functions are actually named
8131 something starting with __ and the normal name is an alias. */
8132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8133 choke me
8134 #else
8135 $ac_func();
8136 #endif
8138 ; return 0; }
8140 if { (eval echo configure:8141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8141 rm -rf conftest*
8142 eval "ac_cv_func_$ac_func=yes"
8143 else
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8146 rm -rf conftest*
8147 eval "ac_cv_func_$ac_func=no"
8149 rm -f conftest*
8152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8155 cat >> confdefs.h <<EOF
8156 #define $ac_tr_func 1
8159 else
8160 echo "$ac_t""no" 1>&6
8162 done
8165 esac
8167 case "$LIBS" in
8168 *-lsec*) for ac_func in bigcrypt
8170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8171 echo "configure:8172: checking for $ac_func" >&5
8172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8173 echo $ac_n "(cached) $ac_c" 1>&6
8174 else
8175 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure"
8177 #include "confdefs.h"
8178 /* System header to define __stub macros and hopefully few prototypes,
8179 which can conflict with char $ac_func(); below. */
8180 #include <assert.h>
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */
8184 char $ac_func();
8186 int main() {
8188 /* The GNU C library defines this for functions which it implements
8189 to always fail with ENOSYS. Some functions are actually named
8190 something starting with __ and the normal name is an alias. */
8191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8192 choke me
8193 #else
8194 $ac_func();
8195 #endif
8197 ; return 0; }
8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8200 rm -rf conftest*
8201 eval "ac_cv_func_$ac_func=yes"
8202 else
8203 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8205 rm -rf conftest*
8206 eval "ac_cv_func_$ac_func=no"
8208 rm -f conftest*
8211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8212 echo "$ac_t""yes" 1>&6
8213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8214 cat >> confdefs.h <<EOF
8215 #define $ac_tr_func 1
8218 else
8219 echo "$ac_t""no" 1>&6
8221 done
8223 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
8224 echo "configure:8225: checking for bigcrypt in -lsec" >&5
8225 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
8226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8228 else
8229 ac_save_LIBS="$LIBS"
8230 LIBS="-lsec $LIBS"
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8234 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8237 char bigcrypt();
8239 int main() {
8240 bigcrypt()
8241 ; return 0; }
8243 if { (eval echo configure:8244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 rm -rf conftest*
8245 eval "ac_cv_lib_$ac_lib_var=yes"
8246 else
8247 echo "configure: failed program was:" >&5
8248 cat conftest.$ac_ext >&5
8249 rm -rf conftest*
8250 eval "ac_cv_lib_$ac_lib_var=no"
8252 rm -f conftest*
8253 LIBS="$ac_save_LIBS"
8256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8257 echo "$ac_t""yes" 1>&6
8258 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8259 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8260 cat >> confdefs.h <<EOF
8261 #define $ac_tr_lib 1
8264 LIBS="-lsec $LIBS"
8266 else
8267 echo "$ac_t""no" 1>&6
8270 for ac_func in bigcrypt
8272 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8273 echo "configure:8274: checking for $ac_func" >&5
8274 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8275 echo $ac_n "(cached) $ac_c" 1>&6
8276 else
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 /* System header to define __stub macros and hopefully few prototypes,
8281 which can conflict with char $ac_func(); below. */
8282 #include <assert.h>
8283 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8286 char $ac_func();
8288 int main() {
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8294 choke me
8295 #else
8296 $ac_func();
8297 #endif
8299 ; return 0; }
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 rm -rf conftest*
8303 eval "ac_cv_func_$ac_func=yes"
8304 else
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8307 rm -rf conftest*
8308 eval "ac_cv_func_$ac_func=no"
8310 rm -f conftest*
8313 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8314 echo "$ac_t""yes" 1>&6
8315 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8316 cat >> confdefs.h <<EOF
8317 #define $ac_tr_func 1
8320 else
8321 echo "$ac_t""no" 1>&6
8323 done
8326 esac
8329 case "$LIBS" in
8330 *-lsecurity*) for ac_func in getprpwnam
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8336 else
8337 cat > conftest.$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func(); below. */
8342 #include <assert.h>
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8346 char $ac_func();
8348 int main() {
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8354 choke me
8355 #else
8356 $ac_func();
8357 #endif
8359 ; return 0; }
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8362 rm -rf conftest*
8363 eval "ac_cv_func_$ac_func=yes"
8364 else
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8367 rm -rf conftest*
8368 eval "ac_cv_func_$ac_func=no"
8370 rm -f conftest*
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376 cat >> confdefs.h <<EOF
8377 #define $ac_tr_func 1
8380 else
8381 echo "$ac_t""no" 1>&6
8383 done
8385 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
8386 echo "configure:8387: checking for getprpwnam in -lsecurity" >&5
8387 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
8388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8389 echo $ac_n "(cached) $ac_c" 1>&6
8390 else
8391 ac_save_LIBS="$LIBS"
8392 LIBS="-lsecurity $LIBS"
8393 cat > conftest.$ac_ext <<EOF
8394 #line 8395 "configure"
8395 #include "confdefs.h"
8396 /* Override any gcc2 internal prototype to avoid an error. */
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8399 char getprpwnam();
8401 int main() {
8402 getprpwnam()
8403 ; return 0; }
8405 if { (eval echo configure:8406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8406 rm -rf conftest*
8407 eval "ac_cv_lib_$ac_lib_var=yes"
8408 else
8409 echo "configure: failed program was:" >&5
8410 cat conftest.$ac_ext >&5
8411 rm -rf conftest*
8412 eval "ac_cv_lib_$ac_lib_var=no"
8414 rm -f conftest*
8415 LIBS="$ac_save_LIBS"
8418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8419 echo "$ac_t""yes" 1>&6
8420 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8422 cat >> confdefs.h <<EOF
8423 #define $ac_tr_lib 1
8426 LIBS="-lsecurity $LIBS"
8428 else
8429 echo "$ac_t""no" 1>&6
8432 for ac_func in getprpwnam
8434 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8435 echo "configure:8436: checking for $ac_func" >&5
8436 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8437 echo $ac_n "(cached) $ac_c" 1>&6
8438 else
8439 cat > conftest.$ac_ext <<EOF
8440 #line 8441 "configure"
8441 #include "confdefs.h"
8442 /* System header to define __stub macros and hopefully few prototypes,
8443 which can conflict with char $ac_func(); below. */
8444 #include <assert.h>
8445 /* Override any gcc2 internal prototype to avoid an error. */
8446 /* We use char because int might match the return type of a gcc2
8447 builtin and then its argument prototype would still apply. */
8448 char $ac_func();
8450 int main() {
8452 /* The GNU C library defines this for functions which it implements
8453 to always fail with ENOSYS. Some functions are actually named
8454 something starting with __ and the normal name is an alias. */
8455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8456 choke me
8457 #else
8458 $ac_func();
8459 #endif
8461 ; return 0; }
8463 if { (eval echo configure:8464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8464 rm -rf conftest*
8465 eval "ac_cv_func_$ac_func=yes"
8466 else
8467 echo "configure: failed program was:" >&5
8468 cat conftest.$ac_ext >&5
8469 rm -rf conftest*
8470 eval "ac_cv_func_$ac_func=no"
8472 rm -f conftest*
8475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8476 echo "$ac_t""yes" 1>&6
8477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8478 cat >> confdefs.h <<EOF
8479 #define $ac_tr_func 1
8482 else
8483 echo "$ac_t""no" 1>&6
8485 done
8488 esac
8490 case "$LIBS" in
8491 *-lsec*) for ac_func in getprpwnam
8493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8494 echo "configure:8495: checking for $ac_func" >&5
8495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8496 echo $ac_n "(cached) $ac_c" 1>&6
8497 else
8498 cat > conftest.$ac_ext <<EOF
8499 #line 8500 "configure"
8500 #include "confdefs.h"
8501 /* System header to define __stub macros and hopefully few prototypes,
8502 which can conflict with char $ac_func(); below. */
8503 #include <assert.h>
8504 /* Override any gcc2 internal prototype to avoid an error. */
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char $ac_func();
8509 int main() {
8511 /* The GNU C library defines this for functions which it implements
8512 to always fail with ENOSYS. Some functions are actually named
8513 something starting with __ and the normal name is an alias. */
8514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8515 choke me
8516 #else
8517 $ac_func();
8518 #endif
8520 ; return 0; }
8522 if { (eval echo configure:8523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8523 rm -rf conftest*
8524 eval "ac_cv_func_$ac_func=yes"
8525 else
8526 echo "configure: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8528 rm -rf conftest*
8529 eval "ac_cv_func_$ac_func=no"
8531 rm -f conftest*
8534 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8535 echo "$ac_t""yes" 1>&6
8536 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8537 cat >> confdefs.h <<EOF
8538 #define $ac_tr_func 1
8541 else
8542 echo "$ac_t""no" 1>&6
8544 done
8546 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
8547 echo "configure:8548: checking for getprpwnam in -lsec" >&5
8548 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
8549 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8551 else
8552 ac_save_LIBS="$LIBS"
8553 LIBS="-lsec $LIBS"
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8557 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char getprpwnam();
8562 int main() {
8563 getprpwnam()
8564 ; return 0; }
8566 if { (eval echo configure:8567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8567 rm -rf conftest*
8568 eval "ac_cv_lib_$ac_lib_var=yes"
8569 else
8570 echo "configure: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 rm -rf conftest*
8573 eval "ac_cv_lib_$ac_lib_var=no"
8575 rm -f conftest*
8576 LIBS="$ac_save_LIBS"
8579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8580 echo "$ac_t""yes" 1>&6
8581 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8582 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8583 cat >> confdefs.h <<EOF
8584 #define $ac_tr_lib 1
8587 LIBS="-lsec $LIBS"
8589 else
8590 echo "$ac_t""no" 1>&6
8593 for ac_func in getprpwnam
8595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8596 echo "configure:8597: checking for $ac_func" >&5
8597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
8599 else
8600 cat > conftest.$ac_ext <<EOF
8601 #line 8602 "configure"
8602 #include "confdefs.h"
8603 /* System header to define __stub macros and hopefully few prototypes,
8604 which can conflict with char $ac_func(); below. */
8605 #include <assert.h>
8606 /* Override any gcc2 internal prototype to avoid an error. */
8607 /* We use char because int might match the return type of a gcc2
8608 builtin and then its argument prototype would still apply. */
8609 char $ac_func();
8611 int main() {
8613 /* The GNU C library defines this for functions which it implements
8614 to always fail with ENOSYS. Some functions are actually named
8615 something starting with __ and the normal name is an alias. */
8616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8617 choke me
8618 #else
8619 $ac_func();
8620 #endif
8622 ; return 0; }
8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8625 rm -rf conftest*
8626 eval "ac_cv_func_$ac_func=yes"
8627 else
8628 echo "configure: failed program was:" >&5
8629 cat conftest.$ac_ext >&5
8630 rm -rf conftest*
8631 eval "ac_cv_func_$ac_func=no"
8633 rm -f conftest*
8636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8637 echo "$ac_t""yes" 1>&6
8638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8639 cat >> confdefs.h <<EOF
8640 #define $ac_tr_func 1
8643 else
8644 echo "$ac_t""no" 1>&6
8646 done
8649 esac
8652 # this bit needs to be modified for each OS that is suported by
8653 # smbwrapper. You need to specify how to created a shared library and
8654 # how to compile C code to produce PIC object files
8656 # these are the defaults, good for lots of systems
8657 HOST_OS="$host_os"
8658 LDSHFLAGS="-shared"
8659 SONAMEFLAG="#"
8660 SHLD="\${CC}"
8661 PICFLAG=""
8662 PICSUFFIX="po.o"
8663 SHLIBEXT="so"
8664 # Assume non-shared by default and override below
8665 BLDSHARED="false"
8666 echo $ac_n "checking ability to build shared libraries""... $ac_c" 1>&6
8667 echo "configure:8668: checking ability to build shared libraries" >&5
8669 # and these are for particular systems
8670 case "$host_os" in
8671 *linux*) cat >> confdefs.h <<\EOF
8672 #define LINUX 1
8675 BLDSHARED="true"
8676 LDSHFLAGS="-shared"
8677 DYNEXP="-Wl,--export-dynamic"
8678 PICFLAG="-fPIC"
8679 SONAMEFLAG="-Wl,-soname="
8680 cat >> confdefs.h <<\EOF
8681 #define STAT_ST_BLOCKSIZE 512
8685 *solaris*) cat >> confdefs.h <<\EOF
8686 #define SUNOS5 1
8689 BLDSHARED="true"
8690 LDSHFLAGS="-G"
8691 SONAMEFLAG="-h "
8692 if test "${GCC}" = "yes"; then
8693 PICFLAG="-fPIC"
8694 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
8695 DYNEXP="-Wl,-E"
8697 else
8698 PICFLAG="-KPIC"
8699 ## ${CFLAGS} added for building 64-bit shared
8700 ## libs using Sun's Compiler
8701 LDSHFLAGS="-G \${CFLAGS}"
8702 POBAD_CC=""
8703 PICSUFFIX="po.o"
8705 cat >> confdefs.h <<\EOF
8706 #define STAT_ST_BLOCKSIZE 512
8710 *sunos*) cat >> confdefs.h <<\EOF
8711 #define SUNOS4 1
8714 BLDSHARED="true"
8715 LDSHFLAGS="-G"
8716 SONAMEFLAG="-Wl,-h,"
8717 PICFLAG="-KPIC" # Is this correct for SunOS
8719 *freebsd*) BLDSHARED="true"
8720 LDSHFLAGS="-shared"
8721 DYNEXP="-Wl,--export-dynamic"
8722 SONAMEFLAG="-Wl,-soname,"
8723 PICFLAG="-fPIC"
8724 cat >> confdefs.h <<\EOF
8725 #define STAT_ST_BLOCKSIZE 512
8729 *openbsd*) BLDSHARED="true"
8730 LDSHFLAGS="-shared"
8731 DYNEXP="-Wl,-Bdynamic"
8732 SONAMEFLAG="-Wl,-soname,"
8733 PICFLAG="-fPIC"
8734 cat >> confdefs.h <<\EOF
8735 #define STAT_ST_BLOCKSIZE 512
8739 *irix*) cat >> confdefs.h <<\EOF
8740 #define IRIX 1
8743 case "$host_os" in
8744 *irix6*) cat >> confdefs.h <<\EOF
8745 #define IRIX6 1
8749 esac
8750 ATTEMPT_WRAP32_BUILD=yes
8751 BLDSHARED="true"
8752 LDSHFLAGS="-set_version sgi1.0 -shared"
8753 SONAMEFLAG="-soname "
8754 SHLD="\${LD}"
8755 if test "${GCC}" = "yes"; then
8756 PICFLAG="-fPIC"
8757 else
8758 PICFLAG="-KPIC"
8760 cat >> confdefs.h <<\EOF
8761 #define STAT_ST_BLOCKSIZE 512
8765 *aix*) cat >> confdefs.h <<\EOF
8766 #define AIX 1
8769 BLDSHARED="true"
8770 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8771 DYNEXP="-Wl,-brtl,-bexpall"
8772 if test "${GCC}" = "yes"; then
8773 PICFLAG="-O2"
8774 else
8775 PICFLAG="-O2 -qmaxmem=6000"
8776 ## for funky AIX compiler using strncpy()
8777 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8780 cat >> confdefs.h <<\EOF
8781 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8785 *hpux*) cat >> confdefs.h <<\EOF
8786 #define HPUX 1
8789 SHLIBEXT="sl"
8790 # Use special PIC flags for the native HP-UX compiler.
8791 if test $ac_cv_prog_cc_Ae = yes; then
8792 BLDSHARED="true"
8793 SHLD="/usr/bin/ld"
8794 LDSHFLAGS="-B symbolic -b -z"
8795 SONAMEFLAG="+h "
8796 PICFLAG="+z"
8798 DYNEXP="-Wl,-E"
8799 cat >> confdefs.h <<\EOF
8800 #define STAT_ST_BLOCKSIZE 8192
8804 *qnx*) cat >> confdefs.h <<\EOF
8805 #define QNX 1
8808 *osf*) cat >> confdefs.h <<\EOF
8809 #define OSF1 1
8812 BLDSHARED="true"
8813 LDSHFLAGS="-shared"
8814 SONAMEFLAG="-Wl,-soname,"
8815 PICFLAG="-fPIC"
8817 *sco*) cat >> confdefs.h <<\EOF
8818 #define SCO 1
8821 *unixware*) cat >> confdefs.h <<\EOF
8822 #define UNIXWARE 1
8825 BLDSHARED="true"
8826 LDSHFLAGS="-shared"
8827 SONAMEFLAG="-Wl,-soname,"
8828 PICFLAG="-KPIC"
8830 *next2*) cat >> confdefs.h <<\EOF
8831 #define NEXT2 1
8834 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8835 set dummy groff; ac_word=$2
8836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8837 echo "configure:8838: checking for $ac_word" >&5
8838 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8839 echo $ac_n "(cached) $ac_c" 1>&6
8840 else
8841 if test -n "$ROFF"; then
8842 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8843 else
8844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8845 ac_dummy="$PATH"
8846 for ac_dir in $ac_dummy; do
8847 test -z "$ac_dir" && ac_dir=.
8848 if test -f $ac_dir/$ac_word; then
8849 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8850 break
8852 done
8853 IFS="$ac_save_ifs"
8856 ROFF="$ac_cv_prog_ROFF"
8857 if test -n "$ROFF"; then
8858 echo "$ac_t""$ROFF" 1>&6
8859 else
8860 echo "$ac_t""no" 1>&6
8863 *sysv4*)
8864 case "$host" in
8865 *-univel-*) if test "$GCC" != yes ; then
8866 cat >> confdefs.h <<\EOF
8867 #define HAVE_MEMSET 1
8871 LDSHFLAGS="-G"
8872 DYNEXP="-Bexport"
8874 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8875 #define RELIANTUNIX 1
8878 esac
8880 *sysv5*)
8881 if test "$GCC" != yes ; then
8882 cat >> confdefs.h <<\EOF
8883 #define HAVE_MEMSET 1
8887 LDSHFLAGS="-G"
8889 esac
8891 echo "$ac_t""$BLDSHARED" 1>&6
8892 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8893 echo "configure:8894: checking linker flags for shared libraries" >&5
8894 echo "$ac_t""$LDSHFLAGS" 1>&6
8895 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8896 echo "configure:8897: checking compiler flags for position-independent code" >&5
8897 echo "$ac_t""$PICFLAGS" 1>&6
8899 # try to work out how to produce pic code with this compiler
8900 if test x$PICFLAG = x; then
8901 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8902 echo "configure:8903: checking whether ${CC-cc} accepts -fpic" >&5
8903 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905 else
8906 echo 'void f(){}' > conftest.c
8907 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8908 ac_cv_prog_cc_fpic=yes
8909 else
8910 ac_cv_prog_cc_fpic=no
8912 rm -f conftest*
8916 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8917 if test $ac_cv_prog_cc_fpic = yes; then
8918 PICFLAG="-fpic";
8921 if test x$PICFLAG = x; then
8922 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8923 echo "configure:8924: checking whether ${CC-cc} accepts -KPIC" >&5
8924 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8926 else
8927 echo 'void f(){}' > conftest.c
8928 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8929 ac_cv_prog_cc_KPIC=yes
8930 else
8931 ac_cv_prog_cc_KPIC=no
8933 rm -f conftest*
8937 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8938 if test $ac_cv_prog_cc_KPIC = yes; then
8939 PICFLAG="-KPIC";
8942 if test x$PICFLAG = x; then
8943 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8944 echo "configure:8945: checking whether ${CC-cc} accepts -Kpic" >&5
8945 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8947 else
8948 echo 'void f(){}' > conftest.c
8949 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8950 ac_cv_prog_cc_Kpic=yes
8951 else
8952 ac_cv_prog_cc_Kpic=no
8954 rm -f conftest*
8958 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8959 if test $ac_cv_prog_cc_Kpic = yes; then
8960 PICFLAG="-Kpic";
8964 ################
8966 echo $ac_n "checking for long long""... $ac_c" 1>&6
8967 echo "configure:8968: checking for long long" >&5
8968 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8969 echo $ac_n "(cached) $ac_c" 1>&6
8970 else
8972 if test "$cross_compiling" = yes; then
8973 samba_cv_have_longlong=cross
8974 else
8975 cat > conftest.$ac_ext <<EOF
8976 #line 8977 "configure"
8977 #include "confdefs.h"
8978 #include <stdio.h>
8979 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8981 if { (eval echo configure:8982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8982 then
8983 samba_cv_have_longlong=yes
8984 else
8985 echo "configure: failed program was:" >&5
8986 cat conftest.$ac_ext >&5
8987 rm -fr conftest*
8988 samba_cv_have_longlong=no
8990 rm -fr conftest*
8995 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8996 if test x"$samba_cv_have_longlong" = x"yes"; then
8997 cat >> confdefs.h <<\EOF
8998 #define HAVE_LONGLONG 1
9004 # Check if the compiler supports the LL prefix on long long integers.
9005 # AIX needs this.
9007 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
9008 echo "configure:9009: checking for LL suffix on long long integers" >&5
9009 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9010 echo $ac_n "(cached) $ac_c" 1>&6
9011 else
9013 cat > conftest.$ac_ext <<EOF
9014 #line 9015 "configure"
9015 #include "confdefs.h"
9016 #include <stdio.h>
9017 int main() {
9018 long long i = 0x8000000000LL
9019 ; return 0; }
9021 if { (eval echo configure:9022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9022 rm -rf conftest*
9023 samba_cv_compiler_supports_ll=yes
9024 else
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9027 rm -rf conftest*
9028 samba_cv_compiler_supports_ll=no
9030 rm -f conftest*
9033 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9034 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9035 cat >> confdefs.h <<\EOF
9036 #define COMPILER_SUPPORTS_LL 1
9042 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9043 echo "configure:9044: checking for 64 bit off_t" >&5
9044 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9046 else
9048 if test "$cross_compiling" = yes; then
9049 samba_cv_SIZEOF_OFF_T=cross
9050 else
9051 cat > conftest.$ac_ext <<EOF
9052 #line 9053 "configure"
9053 #include "confdefs.h"
9054 #include <stdio.h>
9055 #include <sys/stat.h>
9056 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9059 then
9060 samba_cv_SIZEOF_OFF_T=yes
9061 else
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9064 rm -fr conftest*
9065 samba_cv_SIZEOF_OFF_T=no
9067 rm -fr conftest*
9072 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9073 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9074 cat >> confdefs.h <<\EOF
9075 #define SIZEOF_OFF_T 8
9080 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9081 echo "configure:9082: checking for off64_t" >&5
9082 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9084 else
9086 if test "$cross_compiling" = yes; then
9087 samba_cv_HAVE_OFF64_T=cross
9088 else
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9093 #if defined(HAVE_UNISTD_H)
9094 #include <unistd.h>
9095 #endif
9096 #include <stdio.h>
9097 #include <sys/stat.h>
9098 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9100 if { (eval echo configure:9101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9101 then
9102 samba_cv_HAVE_OFF64_T=yes
9103 else
9104 echo "configure: failed program was:" >&5
9105 cat conftest.$ac_ext >&5
9106 rm -fr conftest*
9107 samba_cv_HAVE_OFF64_T=no
9109 rm -fr conftest*
9114 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9115 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9116 cat >> confdefs.h <<\EOF
9117 #define HAVE_OFF64_T 1
9122 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9123 echo "configure:9124: checking for 64 bit ino_t" >&5
9124 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9125 echo $ac_n "(cached) $ac_c" 1>&6
9126 else
9128 if test "$cross_compiling" = yes; then
9129 samba_cv_SIZEOF_INO_T=cross
9130 else
9131 cat > conftest.$ac_ext <<EOF
9132 #line 9133 "configure"
9133 #include "confdefs.h"
9134 #include <stdio.h>
9135 #include <sys/stat.h>
9136 main() { exit((sizeof(ino_t) == 8) ? 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_SIZEOF_INO_T=yes
9141 else
9142 echo "configure: failed program was:" >&5
9143 cat conftest.$ac_ext >&5
9144 rm -fr conftest*
9145 samba_cv_SIZEOF_INO_T=no
9147 rm -fr conftest*
9152 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9153 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9154 cat >> confdefs.h <<\EOF
9155 #define SIZEOF_INO_T 8
9160 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9161 echo "configure:9162: checking for ino64_t" >&5
9162 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9164 else
9166 if test "$cross_compiling" = yes; then
9167 samba_cv_HAVE_INO64_T=cross
9168 else
9169 cat > conftest.$ac_ext <<EOF
9170 #line 9171 "configure"
9171 #include "confdefs.h"
9173 #if defined(HAVE_UNISTD_H)
9174 #include <unistd.h>
9175 #endif
9176 #include <stdio.h>
9177 #include <sys/stat.h>
9178 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9180 if { (eval echo configure:9181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9181 then
9182 samba_cv_HAVE_INO64_T=yes
9183 else
9184 echo "configure: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9186 rm -fr conftest*
9187 samba_cv_HAVE_INO64_T=no
9189 rm -fr conftest*
9194 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9195 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9196 cat >> confdefs.h <<\EOF
9197 #define HAVE_INO64_T 1
9202 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9203 echo "configure:9204: checking for dev64_t" >&5
9204 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9206 else
9208 if test "$cross_compiling" = yes; then
9209 samba_cv_HAVE_DEV64_T=cross
9210 else
9211 cat > conftest.$ac_ext <<EOF
9212 #line 9213 "configure"
9213 #include "confdefs.h"
9215 #if defined(HAVE_UNISTD_H)
9216 #include <unistd.h>
9217 #endif
9218 #include <stdio.h>
9219 #include <sys/stat.h>
9220 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9223 then
9224 samba_cv_HAVE_DEV64_T=yes
9225 else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -fr conftest*
9229 samba_cv_HAVE_DEV64_T=no
9231 rm -fr conftest*
9236 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9237 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9238 cat >> confdefs.h <<\EOF
9239 #define HAVE_DEV64_T 1
9244 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9245 echo "configure:9246: checking for struct dirent64" >&5
9246 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
9248 else
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9254 #if defined(HAVE_UNISTD_H)
9255 #include <unistd.h>
9256 #endif
9257 #include <sys/types.h>
9258 #include <dirent.h>
9259 int main() {
9260 struct dirent64 de;
9261 ; return 0; }
9263 if { (eval echo configure:9264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9264 rm -rf conftest*
9265 samba_cv_HAVE_STRUCT_DIRENT64=yes
9266 else
9267 echo "configure: failed program was:" >&5
9268 cat conftest.$ac_ext >&5
9269 rm -rf conftest*
9270 samba_cv_HAVE_STRUCT_DIRENT64=no
9272 rm -f conftest*
9275 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9276 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9277 cat >> confdefs.h <<\EOF
9278 #define HAVE_STRUCT_DIRENT64 1
9283 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9284 echo "configure:9285: checking for major macro" >&5
9285 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9286 echo $ac_n "(cached) $ac_c" 1>&6
9287 else
9289 if test "$cross_compiling" = yes; then
9290 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9291 else
9292 cat > conftest.$ac_ext <<EOF
9293 #line 9294 "configure"
9294 #include "confdefs.h"
9296 #if defined(HAVE_UNISTD_H)
9297 #include <unistd.h>
9298 #endif
9299 #include <sys/types.h>
9300 main() { dev_t dev; int i = major(dev); return 0; }
9302 if { (eval echo configure:9303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9303 then
9304 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9305 else
9306 echo "configure: failed program was:" >&5
9307 cat conftest.$ac_ext >&5
9308 rm -fr conftest*
9309 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9311 rm -fr conftest*
9316 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9317 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9318 cat >> confdefs.h <<\EOF
9319 #define HAVE_DEVICE_MAJOR_FN 1
9324 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9325 echo "configure:9326: checking for minor macro" >&5
9326 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328 else
9330 if test "$cross_compiling" = yes; then
9331 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9332 else
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9337 #if defined(HAVE_UNISTD_H)
9338 #include <unistd.h>
9339 #endif
9340 #include <sys/types.h>
9341 main() { dev_t dev; int i = minor(dev); return 0; }
9343 if { (eval echo configure:9344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9344 then
9345 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9346 else
9347 echo "configure: failed program was:" >&5
9348 cat conftest.$ac_ext >&5
9349 rm -fr conftest*
9350 samba_cv_HAVE_DEVICE_MINOR_FN=no
9352 rm -fr conftest*
9357 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9358 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9359 cat >> confdefs.h <<\EOF
9360 #define HAVE_DEVICE_MINOR_FN 1
9365 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9366 echo "configure:9367: checking for makedev macro" >&5
9367 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9368 echo $ac_n "(cached) $ac_c" 1>&6
9369 else
9371 if test "$cross_compiling" = yes; then
9372 samba_cv_HAVE_MAKEDEV_FN=cross
9373 else
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9378 #if defined(HAVE_UNISTD_H)
9379 #include <unistd.h>
9380 #endif
9381 #include <sys/types.h>
9382 main() { dev_t dev = makedev(1,2); return 0; }
9384 if { (eval echo configure:9385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9385 then
9386 samba_cv_HAVE_MAKEDEV_FN=yes
9387 else
9388 echo "configure: failed program was:" >&5
9389 cat conftest.$ac_ext >&5
9390 rm -fr conftest*
9391 samba_cv_HAVE_MAKEDEV_FN=no
9393 rm -fr conftest*
9398 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9399 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9400 cat >> confdefs.h <<\EOF
9401 #define MAKEDEV_FN 1
9406 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9407 echo "configure:9408: checking for unsigned char" >&5
9408 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9410 else
9412 if test "$cross_compiling" = yes; then
9413 samba_cv_HAVE_UNSIGNED_CHAR=cross
9414 else
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9418 #include <stdio.h>
9419 main() { char c; c=250; exit((c > 0)?0:1); }
9421 if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9422 then
9423 samba_cv_HAVE_UNSIGNED_CHAR=yes
9424 else
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 rm -fr conftest*
9428 samba_cv_HAVE_UNSIGNED_CHAR=no
9430 rm -fr conftest*
9435 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9436 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9437 cat >> confdefs.h <<\EOF
9438 #define HAVE_UNSIGNED_CHAR 1
9443 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9444 echo "configure:9445: checking for sin_len in sock" >&5
9445 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9446 echo $ac_n "(cached) $ac_c" 1>&6
9447 else
9449 cat > conftest.$ac_ext <<EOF
9450 #line 9451 "configure"
9451 #include "confdefs.h"
9452 #include <sys/types.h>
9453 #include <sys/socket.h>
9454 #include <netinet/in.h>
9455 int main() {
9456 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9457 ; return 0; }
9459 if { (eval echo configure:9460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9460 rm -rf conftest*
9461 samba_cv_HAVE_SOCK_SIN_LEN=yes
9462 else
9463 echo "configure: failed program was:" >&5
9464 cat conftest.$ac_ext >&5
9465 rm -rf conftest*
9466 samba_cv_HAVE_SOCK_SIN_LEN=no
9468 rm -f conftest*
9471 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9472 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9473 cat >> confdefs.h <<\EOF
9474 #define HAVE_SOCK_SIN_LEN 1
9479 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9480 echo "configure:9481: checking whether seekdir returns void" >&5
9481 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9482 echo $ac_n "(cached) $ac_c" 1>&6
9483 else
9485 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure"
9487 #include "confdefs.h"
9488 #include <sys/types.h>
9489 #include <dirent.h>
9490 void seekdir(DIR *d, long loc) { return; }
9491 int main() {
9492 return 0;
9493 ; return 0; }
9495 if { (eval echo configure:9496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9496 rm -rf conftest*
9497 samba_cv_SEEKDIR_RETURNS_VOID=yes
9498 else
9499 echo "configure: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 rm -rf conftest*
9502 samba_cv_SEEKDIR_RETURNS_VOID=no
9504 rm -f conftest*
9507 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9508 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9509 cat >> confdefs.h <<\EOF
9510 #define SEEKDIR_RETURNS_VOID 1
9515 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9516 echo "configure:9517: checking for __FILE__ macro" >&5
9517 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519 else
9521 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure"
9523 #include "confdefs.h"
9524 #include <stdio.h>
9525 int main() {
9526 printf("%s\n", __FILE__);
9527 ; return 0; }
9529 if { (eval echo configure:9530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9530 rm -rf conftest*
9531 samba_cv_HAVE_FILE_MACRO=yes
9532 else
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9535 rm -rf conftest*
9536 samba_cv_HAVE_FILE_MACRO=no
9538 rm -f conftest*
9541 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9542 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9543 cat >> confdefs.h <<\EOF
9544 #define HAVE_FILE_MACRO 1
9549 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9550 echo "configure:9551: checking for __FUNCTION__ macro" >&5
9551 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9553 else
9555 cat > conftest.$ac_ext <<EOF
9556 #line 9557 "configure"
9557 #include "confdefs.h"
9558 #include <stdio.h>
9559 int main() {
9560 printf("%s\n", __FUNCTION__);
9561 ; return 0; }
9563 if { (eval echo configure:9564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9564 rm -rf conftest*
9565 samba_cv_HAVE_FUNCTION_MACRO=yes
9566 else
9567 echo "configure: failed program was:" >&5
9568 cat conftest.$ac_ext >&5
9569 rm -rf conftest*
9570 samba_cv_HAVE_FUNCTION_MACRO=no
9572 rm -f conftest*
9575 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9576 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9577 cat >> confdefs.h <<\EOF
9578 #define HAVE_FUNCTION_MACRO 1
9583 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9584 echo "configure:9585: checking if gettimeofday takes tz argument" >&5
9585 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9587 else
9589 if test "$cross_compiling" = yes; then
9590 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9591 else
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9596 #include <sys/time.h>
9597 #include <unistd.h>
9598 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9601 then
9602 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9603 else
9604 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5
9606 rm -fr conftest*
9607 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9609 rm -fr conftest*
9614 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9615 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9616 cat >> confdefs.h <<\EOF
9617 #define HAVE_GETTIMEOFDAY_TZ 1
9622 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9623 echo "configure:9624: checking for __va_copy" >&5
9624 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
9626 else
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 #include <stdarg.h>
9632 va_list ap1,ap2;
9633 int main() {
9634 __va_copy(ap1,ap2);
9635 ; return 0; }
9637 if { (eval echo configure:9638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9638 rm -rf conftest*
9639 samba_cv_HAVE_VA_COPY=yes
9640 else
9641 echo "configure: failed program was:" >&5
9642 cat conftest.$ac_ext >&5
9643 rm -rf conftest*
9644 samba_cv_HAVE_VA_COPY=no
9646 rm -f conftest*
9649 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9650 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9651 cat >> confdefs.h <<\EOF
9652 #define HAVE_VA_COPY 1
9657 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9658 echo "configure:9659: checking for C99 vsnprintf" >&5
9659 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9660 echo $ac_n "(cached) $ac_c" 1>&6
9661 else
9663 if test "$cross_compiling" = yes; then
9664 samba_cv_HAVE_C99_VSNPRINTF=cross
9665 else
9666 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure"
9668 #include "confdefs.h"
9670 #include <sys/types.h>
9671 #include <stdarg.h>
9672 void foo(const char *format, ...) {
9673 va_list ap;
9674 int len;
9675 char buf[5];
9677 va_start(ap, format);
9678 len = vsnprintf(buf, 0, format, ap);
9679 va_end(ap);
9680 if (len != 5) exit(1);
9682 va_start(ap, format);
9683 len = vsnprintf(0, 0, format, ap);
9684 va_end(ap);
9685 if (len != 5) exit(1);
9687 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9689 exit(0);
9691 main() { foo("hello"); }
9694 if { (eval echo configure:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9695 then
9696 samba_cv_HAVE_C99_VSNPRINTF=yes
9697 else
9698 echo "configure: failed program was:" >&5
9699 cat conftest.$ac_ext >&5
9700 rm -fr conftest*
9701 samba_cv_HAVE_C99_VSNPRINTF=no
9703 rm -fr conftest*
9708 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9709 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9710 cat >> confdefs.h <<\EOF
9711 #define HAVE_C99_VSNPRINTF 1
9716 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9717 echo "configure:9718: checking for broken readdir" >&5
9718 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9719 echo $ac_n "(cached) $ac_c" 1>&6
9720 else
9722 if test "$cross_compiling" = yes; then
9723 samba_cv_HAVE_BROKEN_READDIR=cross
9724 else
9725 cat > conftest.$ac_ext <<EOF
9726 #line 9727 "configure"
9727 #include "confdefs.h"
9728 #include <sys/types.h>
9729 #include <dirent.h>
9730 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9731 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9732 di->d_name[0] == 0) exit(0); exit(1);}
9734 if { (eval echo configure:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9735 then
9736 samba_cv_HAVE_BROKEN_READDIR=yes
9737 else
9738 echo "configure: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9740 rm -fr conftest*
9741 samba_cv_HAVE_BROKEN_READDIR=no
9743 rm -fr conftest*
9748 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9749 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9750 cat >> confdefs.h <<\EOF
9751 #define HAVE_BROKEN_READDIR 1
9756 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9757 echo "configure:9758: checking for utimbuf" >&5
9758 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9759 echo $ac_n "(cached) $ac_c" 1>&6
9760 else
9762 cat > conftest.$ac_ext <<EOF
9763 #line 9764 "configure"
9764 #include "confdefs.h"
9765 #include <sys/types.h>
9766 #include <utime.h>
9767 int main() {
9768 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9769 ; return 0; }
9771 if { (eval echo configure:9772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9772 rm -rf conftest*
9773 samba_cv_HAVE_UTIMBUF=yes
9774 else
9775 echo "configure: failed program was:" >&5
9776 cat conftest.$ac_ext >&5
9777 rm -rf conftest*
9778 samba_cv_HAVE_UTIMBUF=no
9780 rm -f conftest*
9783 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9784 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9785 cat >> confdefs.h <<\EOF
9786 #define HAVE_UTIMBUF 1
9792 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9795 echo "configure:9796: checking for $ac_func" >&5
9796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9797 echo $ac_n "(cached) $ac_c" 1>&6
9798 else
9799 cat > conftest.$ac_ext <<EOF
9800 #line 9801 "configure"
9801 #include "confdefs.h"
9802 /* System header to define __stub macros and hopefully few prototypes,
9803 which can conflict with char $ac_func(); below. */
9804 #include <assert.h>
9805 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808 char $ac_func();
9810 int main() {
9812 /* The GNU C library defines this for functions which it implements
9813 to always fail with ENOSYS. Some functions are actually named
9814 something starting with __ and the normal name is an alias. */
9815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9816 choke me
9817 #else
9818 $ac_func();
9819 #endif
9821 ; return 0; }
9823 if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9824 rm -rf conftest*
9825 eval "ac_cv_func_$ac_func=yes"
9826 else
9827 echo "configure: failed program was:" >&5
9828 cat conftest.$ac_ext >&5
9829 rm -rf conftest*
9830 eval "ac_cv_func_$ac_func=no"
9832 rm -f conftest*
9835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9836 echo "$ac_t""yes" 1>&6
9837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9838 cat >> confdefs.h <<EOF
9839 #define $ac_tr_func 1
9842 else
9843 echo "$ac_t""no" 1>&6
9845 done
9848 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9849 echo "configure:9850: checking for ut_name in utmp" >&5
9850 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9852 else
9854 cat > conftest.$ac_ext <<EOF
9855 #line 9856 "configure"
9856 #include "confdefs.h"
9857 #include <sys/types.h>
9858 #include <utmp.h>
9859 int main() {
9860 struct utmp ut; ut.ut_name[0] = 'a';
9861 ; return 0; }
9863 if { (eval echo configure:9864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9864 rm -rf conftest*
9865 samba_cv_HAVE_UT_UT_NAME=yes
9866 else
9867 echo "configure: failed program was:" >&5
9868 cat conftest.$ac_ext >&5
9869 rm -rf conftest*
9870 samba_cv_HAVE_UT_UT_NAME=no
9872 rm -f conftest*
9875 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9876 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9877 cat >> confdefs.h <<\EOF
9878 #define HAVE_UT_UT_NAME 1
9883 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9884 echo "configure:9885: checking for ut_user in utmp" >&5
9885 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9886 echo $ac_n "(cached) $ac_c" 1>&6
9887 else
9889 cat > conftest.$ac_ext <<EOF
9890 #line 9891 "configure"
9891 #include "confdefs.h"
9892 #include <sys/types.h>
9893 #include <utmp.h>
9894 int main() {
9895 struct utmp ut; ut.ut_user[0] = 'a';
9896 ; return 0; }
9898 if { (eval echo configure:9899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9899 rm -rf conftest*
9900 samba_cv_HAVE_UT_UT_USER=yes
9901 else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 samba_cv_HAVE_UT_UT_USER=no
9907 rm -f conftest*
9910 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9911 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9912 cat >> confdefs.h <<\EOF
9913 #define HAVE_UT_UT_USER 1
9918 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9919 echo "configure:9920: checking for ut_id in utmp" >&5
9920 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9922 else
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 #include <sys/types.h>
9928 #include <utmp.h>
9929 int main() {
9930 struct utmp ut; ut.ut_id[0] = 'a';
9931 ; return 0; }
9933 if { (eval echo configure:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9934 rm -rf conftest*
9935 samba_cv_HAVE_UT_UT_ID=yes
9936 else
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9939 rm -rf conftest*
9940 samba_cv_HAVE_UT_UT_ID=no
9942 rm -f conftest*
9945 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9946 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9947 cat >> confdefs.h <<\EOF
9948 #define HAVE_UT_UT_ID 1
9953 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9954 echo "configure:9955: checking for ut_host in utmp" >&5
9955 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9957 else
9959 cat > conftest.$ac_ext <<EOF
9960 #line 9961 "configure"
9961 #include "confdefs.h"
9962 #include <sys/types.h>
9963 #include <utmp.h>
9964 int main() {
9965 struct utmp ut; ut.ut_host[0] = 'a';
9966 ; return 0; }
9968 if { (eval echo configure:9969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9969 rm -rf conftest*
9970 samba_cv_HAVE_UT_UT_HOST=yes
9971 else
9972 echo "configure: failed program was:" >&5
9973 cat conftest.$ac_ext >&5
9974 rm -rf conftest*
9975 samba_cv_HAVE_UT_UT_HOST=no
9977 rm -f conftest*
9980 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9981 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9982 cat >> confdefs.h <<\EOF
9983 #define HAVE_UT_UT_HOST 1
9988 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9989 echo "configure:9990: checking for ut_time in utmp" >&5
9990 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9992 else
9994 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure"
9996 #include "confdefs.h"
9997 #include <sys/types.h>
9998 #include <utmp.h>
9999 int main() {
10000 struct utmp ut; time_t t; ut.ut_time = t;
10001 ; return 0; }
10003 if { (eval echo configure:10004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10004 rm -rf conftest*
10005 samba_cv_HAVE_UT_UT_TIME=yes
10006 else
10007 echo "configure: failed program was:" >&5
10008 cat conftest.$ac_ext >&5
10009 rm -rf conftest*
10010 samba_cv_HAVE_UT_UT_TIME=no
10012 rm -f conftest*
10015 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10016 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10017 cat >> confdefs.h <<\EOF
10018 #define HAVE_UT_UT_TIME 1
10023 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10024 echo "configure:10025: checking for ut_tv in utmp" >&5
10025 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10027 else
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10032 #include <sys/types.h>
10033 #include <utmp.h>
10034 int main() {
10035 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10036 ; return 0; }
10038 if { (eval echo configure:10039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10039 rm -rf conftest*
10040 samba_cv_HAVE_UT_UT_TV=yes
10041 else
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10044 rm -rf conftest*
10045 samba_cv_HAVE_UT_UT_TV=no
10047 rm -f conftest*
10050 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10051 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10052 cat >> confdefs.h <<\EOF
10053 #define HAVE_UT_UT_TV 1
10058 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10059 echo "configure:10060: checking for ut_type in utmp" >&5
10060 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10062 else
10064 cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10067 #include <sys/types.h>
10068 #include <utmp.h>
10069 int main() {
10070 struct utmp ut; ut.ut_type = 0;
10071 ; return 0; }
10073 if { (eval echo configure:10074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10074 rm -rf conftest*
10075 samba_cv_HAVE_UT_UT_TYPE=yes
10076 else
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10079 rm -rf conftest*
10080 samba_cv_HAVE_UT_UT_TYPE=no
10082 rm -f conftest*
10085 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10086 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10087 cat >> confdefs.h <<\EOF
10088 #define HAVE_UT_UT_TYPE 1
10093 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10094 echo "configure:10095: checking for ut_pid in utmp" >&5
10095 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10097 else
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 #include <sys/types.h>
10103 #include <utmp.h>
10104 int main() {
10105 struct utmp ut; ut.ut_pid = 0;
10106 ; return 0; }
10108 if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10109 rm -rf conftest*
10110 samba_cv_HAVE_UT_UT_PID=yes
10111 else
10112 echo "configure: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 rm -rf conftest*
10115 samba_cv_HAVE_UT_UT_PID=no
10117 rm -f conftest*
10120 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10121 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10122 cat >> confdefs.h <<\EOF
10123 #define HAVE_UT_UT_PID 1
10128 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10129 echo "configure:10130: checking for ut_exit in utmp" >&5
10130 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10131 echo $ac_n "(cached) $ac_c" 1>&6
10132 else
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <sys/types.h>
10138 #include <utmp.h>
10139 int main() {
10140 struct utmp ut; ut.ut_exit.e_exit = 0;
10141 ; return 0; }
10143 if { (eval echo configure:10144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10144 rm -rf conftest*
10145 samba_cv_HAVE_UT_UT_EXIT=yes
10146 else
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -rf conftest*
10150 samba_cv_HAVE_UT_UT_EXIT=no
10152 rm -f conftest*
10155 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10156 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10157 cat >> confdefs.h <<\EOF
10158 #define HAVE_UT_UT_EXIT 1
10163 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10164 echo "configure:10165: checking for ut_addr in utmp" >&5
10165 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10167 else
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <sys/types.h>
10173 #include <utmp.h>
10174 int main() {
10175 struct utmp ut; ut.ut_addr = 0;
10176 ; return 0; }
10178 if { (eval echo configure:10179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10179 rm -rf conftest*
10180 samba_cv_HAVE_UT_UT_ADDR=yes
10181 else
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -rf conftest*
10185 samba_cv_HAVE_UT_UT_ADDR=no
10187 rm -f conftest*
10190 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10191 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10192 cat >> confdefs.h <<\EOF
10193 #define HAVE_UT_UT_ADDR 1
10198 if test x$ac_cv_func_pututline = xyes ; then
10199 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10200 echo "configure:10201: checking whether pututline returns pointer" >&5
10201 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10203 else
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10208 #include <sys/types.h>
10209 #include <utmp.h>
10210 int main() {
10211 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10212 ; return 0; }
10214 if { (eval echo configure:10215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10215 rm -rf conftest*
10216 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10217 else
10218 echo "configure: failed program was:" >&5
10219 cat conftest.$ac_ext >&5
10220 rm -rf conftest*
10221 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10223 rm -f conftest*
10226 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10227 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10228 cat >> confdefs.h <<\EOF
10229 #define PUTUTLINE_RETURNS_UTMP 1
10235 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10236 echo "configure:10237: checking for ut_syslen in utmpx" >&5
10237 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10239 else
10241 cat > conftest.$ac_ext <<EOF
10242 #line 10243 "configure"
10243 #include "confdefs.h"
10244 #include <sys/types.h>
10245 #include <utmpx.h>
10246 int main() {
10247 struct utmpx ux; ux.ut_syslen = 0;
10248 ; return 0; }
10250 if { (eval echo configure:10251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10251 rm -rf conftest*
10252 samba_cv_HAVE_UX_UT_SYSLEN=yes
10253 else
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10256 rm -rf conftest*
10257 samba_cv_HAVE_UX_UT_SYSLEN=no
10259 rm -f conftest*
10262 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10263 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10264 cat >> confdefs.h <<\EOF
10265 #define HAVE_UX_UT_SYSLEN 1
10270 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10271 echo "configure:10272: checking for Linux kernel oplocks" >&5
10272 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10274 else
10276 if test "$cross_compiling" = yes; then
10277 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10278 else
10279 cat > conftest.$ac_ext <<EOF
10280 #line 10281 "configure"
10281 #include "confdefs.h"
10283 #include <sys/types.h>
10284 #include <fcntl.h>
10285 #ifndef F_GETLEASE
10286 #define F_GETLEASE 1025
10287 #endif
10288 main() {
10289 int fd = open("/dev/null", O_RDONLY);
10290 return fcntl(fd, F_GETLEASE, 0) == -1;
10294 if { (eval echo configure:10295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10295 then
10296 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10297 else
10298 echo "configure: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 rm -fr conftest*
10301 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10303 rm -fr conftest*
10308 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10309 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10310 cat >> confdefs.h <<\EOF
10311 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10316 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10317 echo "configure:10318: checking for kernel change notify support" >&5
10318 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10319 echo $ac_n "(cached) $ac_c" 1>&6
10320 else
10322 if test "$cross_compiling" = yes; then
10323 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10324 else
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10329 #include <sys/types.h>
10330 #include <fcntl.h>
10331 #include <signal.h>
10332 #ifndef F_NOTIFY
10333 #define F_NOTIFY 1026
10334 #endif
10335 main() {
10336 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10340 if { (eval echo configure:10341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10341 then
10342 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10343 else
10344 echo "configure: failed program was:" >&5
10345 cat conftest.$ac_ext >&5
10346 rm -fr conftest*
10347 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10349 rm -fr conftest*
10354 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10355 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10356 cat >> confdefs.h <<\EOF
10357 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10362 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10363 echo "configure:10364: checking for kernel share modes" >&5
10364 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10365 echo $ac_n "(cached) $ac_c" 1>&6
10366 else
10368 if test "$cross_compiling" = yes; then
10369 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10370 else
10371 cat > conftest.$ac_ext <<EOF
10372 #line 10373 "configure"
10373 #include "confdefs.h"
10375 #include <sys/types.h>
10376 #include <fcntl.h>
10377 #include <signal.h>
10378 #include <sys/file.h>
10379 #ifndef LOCK_MAND
10380 #define LOCK_MAND 32
10381 #define LOCK_READ 64
10382 #endif
10383 main() {
10384 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10389 then
10390 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10391 else
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 rm -fr conftest*
10395 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10397 rm -fr conftest*
10402 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10403 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_KERNEL_SHARE_MODES 1
10413 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10414 echo "configure:10415: checking for IRIX kernel oplock type definitions" >&5
10415 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10416 echo $ac_n "(cached) $ac_c" 1>&6
10417 else
10419 cat > conftest.$ac_ext <<EOF
10420 #line 10421 "configure"
10421 #include "confdefs.h"
10422 #include <sys/types.h>
10423 #include <fcntl.h>
10424 int main() {
10425 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10426 ; return 0; }
10428 if { (eval echo configure:10429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10429 rm -rf conftest*
10430 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10431 else
10432 echo "configure: failed program was:" >&5
10433 cat conftest.$ac_ext >&5
10434 rm -rf conftest*
10435 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10437 rm -f conftest*
10440 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10441 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10442 cat >> confdefs.h <<\EOF
10443 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10448 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10449 echo "configure:10450: checking for irix specific capabilities" >&5
10450 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10451 echo $ac_n "(cached) $ac_c" 1>&6
10452 else
10454 if test "$cross_compiling" = yes; then
10455 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10456 else
10457 cat > conftest.$ac_ext <<EOF
10458 #line 10459 "configure"
10459 #include "confdefs.h"
10460 #include <sys/types.h>
10461 #include <sys/capability.h>
10462 main() {
10463 cap_t cap;
10464 if ((cap = cap_get_proc()) == NULL)
10465 exit(1);
10466 cap->cap_effective |= CAP_NETWORK_MGT;
10467 cap->cap_inheritable |= CAP_NETWORK_MGT;
10468 cap_set_proc(cap);
10469 exit(0);
10473 if { (eval echo configure:10474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10474 then
10475 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10476 else
10477 echo "configure: failed program was:" >&5
10478 cat conftest.$ac_ext >&5
10479 rm -fr conftest*
10480 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10482 rm -fr conftest*
10487 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10488 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10489 cat >> confdefs.h <<\EOF
10490 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10496 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10497 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10500 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10501 echo "configure:10502: checking for int16 typedef included by rpc/rpc.h" >&5
10502 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10504 else
10506 cat > conftest.$ac_ext <<EOF
10507 #line 10508 "configure"
10508 #include "confdefs.h"
10509 #include <sys/types.h>
10510 #if defined(HAVE_RPC_RPC_H)
10511 #include <rpc/rpc.h>
10512 #endif
10513 int main() {
10514 int16 testvar;
10515 ; return 0; }
10517 if { (eval echo configure:10518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10518 rm -rf conftest*
10519 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10520 else
10521 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 rm -rf conftest*
10524 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10526 rm -f conftest*
10529 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10530 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10531 cat >> confdefs.h <<\EOF
10532 #define HAVE_INT16_FROM_RPC_RPC_H 1
10537 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10538 echo "configure:10539: checking for uint16 typedef included by rpc/rpc.h" >&5
10539 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10540 echo $ac_n "(cached) $ac_c" 1>&6
10541 else
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 #include <sys/types.h>
10547 #if defined(HAVE_RPC_RPC_H)
10548 #include <rpc/rpc.h>
10549 #endif
10550 int main() {
10551 uint16 testvar;
10552 ; return 0; }
10554 if { (eval echo configure:10555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10555 rm -rf conftest*
10556 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10557 else
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10560 rm -rf conftest*
10561 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10563 rm -f conftest*
10566 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10567 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10568 cat >> confdefs.h <<\EOF
10569 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10574 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10575 echo "configure:10576: checking for int32 typedef included by rpc/rpc.h" >&5
10576 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10577 echo $ac_n "(cached) $ac_c" 1>&6
10578 else
10580 cat > conftest.$ac_ext <<EOF
10581 #line 10582 "configure"
10582 #include "confdefs.h"
10583 #include <sys/types.h>
10584 #if defined(HAVE_RPC_RPC_H)
10585 #include <rpc/rpc.h>
10586 #endif
10587 int main() {
10588 int32 testvar;
10589 ; return 0; }
10591 if { (eval echo configure:10592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10592 rm -rf conftest*
10593 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10594 else
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10597 rm -rf conftest*
10598 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10600 rm -f conftest*
10603 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10604 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10605 cat >> confdefs.h <<\EOF
10606 #define HAVE_INT32_FROM_RPC_RPC_H 1
10611 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10612 echo "configure:10613: checking for uint32 typedef included by rpc/rpc.h" >&5
10613 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10614 echo $ac_n "(cached) $ac_c" 1>&6
10615 else
10617 cat > conftest.$ac_ext <<EOF
10618 #line 10619 "configure"
10619 #include "confdefs.h"
10620 #include <sys/types.h>
10621 #if defined(HAVE_RPC_RPC_H)
10622 #include <rpc/rpc.h>
10623 #endif
10624 int main() {
10625 uint32 testvar;
10626 ; return 0; }
10628 if { (eval echo configure:10629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10629 rm -rf conftest*
10630 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10631 else
10632 echo "configure: failed program was:" >&5
10633 cat conftest.$ac_ext >&5
10634 rm -rf conftest*
10635 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10637 rm -f conftest*
10640 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10641 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10642 cat >> confdefs.h <<\EOF
10643 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10649 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10650 echo "configure:10651: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10651 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10652 echo $ac_n "(cached) $ac_c" 1>&6
10653 else
10655 cat > conftest.$ac_ext <<EOF
10656 #line 10657 "configure"
10657 #include "confdefs.h"
10658 #include <sys/types.h>
10659 #ifdef HAVE_SYS_SECURITY_H
10660 #include <sys/security.h>
10661 #include <prot.h>
10662 #endif /* HAVE_SYS_SECURITY_H */
10663 #if defined(HAVE_RPC_RPC_H)
10664 #include <rpc/rpc.h>
10665 #endif
10666 int main() {
10667 int testvar;
10668 ; return 0; }
10670 if { (eval echo configure:10671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10671 rm -rf conftest*
10672 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10673 else
10674 echo "configure: failed program was:" >&5
10675 cat conftest.$ac_ext >&5
10676 rm -rf conftest*
10677 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10679 rm -f conftest*
10682 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10683 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10684 cat >> confdefs.h <<\EOF
10685 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10690 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10691 echo "configure:10692: checking for test routines" >&5
10692 if test "$cross_compiling" = yes; then
10693 echo "configure: warning: cannot run when cross-compiling" 1>&2
10694 else
10695 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10698 #include "${srcdir-.}/tests/trivial.c"
10700 if { (eval echo configure:10701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10701 then
10702 echo "$ac_t""yes" 1>&6
10703 else
10704 echo "configure: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 rm -fr conftest*
10707 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10709 rm -fr conftest*
10713 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10714 echo "configure:10715: checking for ftruncate extend" >&5
10715 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10716 echo $ac_n "(cached) $ac_c" 1>&6
10717 else
10719 if test "$cross_compiling" = yes; then
10720 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10721 else
10722 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725 #include "${srcdir-.}/tests/ftruncate.c"
10727 if { (eval echo configure:10728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10728 then
10729 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10730 else
10731 echo "configure: failed program was:" >&5
10732 cat conftest.$ac_ext >&5
10733 rm -fr conftest*
10734 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10736 rm -fr conftest*
10741 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10742 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10743 cat >> confdefs.h <<\EOF
10744 #define HAVE_FTRUNCATE_EXTEND 1
10749 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10750 echo "configure:10751: checking for broken getgroups" >&5
10751 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10752 echo $ac_n "(cached) $ac_c" 1>&6
10753 else
10755 if test "$cross_compiling" = yes; then
10756 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10757 else
10758 cat > conftest.$ac_ext <<EOF
10759 #line 10760 "configure"
10760 #include "confdefs.h"
10761 #include "${srcdir-.}/tests/getgroups.c"
10763 if { (eval echo configure:10764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10764 then
10765 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10766 else
10767 echo "configure: failed program was:" >&5
10768 cat conftest.$ac_ext >&5
10769 rm -fr conftest*
10770 samba_cv_HAVE_BROKEN_GETGROUPS=no
10772 rm -fr conftest*
10777 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10778 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10779 cat >> confdefs.h <<\EOF
10780 #define HAVE_BROKEN_GETGROUPS 1
10785 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10786 echo "configure:10787: checking whether getpass should be replaced" >&5
10787 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10788 echo $ac_n "(cached) $ac_c" 1>&6
10789 else
10791 SAVE_CPPFLAGS="$CPPFLAGS"
10792 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10793 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure"
10795 #include "confdefs.h"
10797 #define REPLACE_GETPASS 1
10798 #define NO_CONFIG_H 1
10799 #define main dont_declare_main
10800 #include "${srcdir-.}/lib/getsmbpass.c"
10801 #undef main
10803 int main() {
10805 ; return 0; }
10807 if { (eval echo configure:10808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10808 rm -rf conftest*
10809 samba_cv_REPLACE_GETPASS=yes
10810 else
10811 echo "configure: failed program was:" >&5
10812 cat conftest.$ac_ext >&5
10813 rm -rf conftest*
10814 samba_cv_REPLACE_GETPASS=no
10816 rm -f conftest*
10817 CPPFLAGS="$SAVE_CPPFLAGS"
10821 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10822 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10823 cat >> confdefs.h <<\EOF
10824 #define REPLACE_GETPASS 1
10829 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10830 echo "configure:10831: checking for broken inet_ntoa" >&5
10831 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10832 echo $ac_n "(cached) $ac_c" 1>&6
10833 else
10835 if test "$cross_compiling" = yes; then
10836 samba_cv_REPLACE_INET_NTOA=cross
10837 else
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10842 #include <stdio.h>
10843 #include <sys/types.h>
10844 #include <netinet/in.h>
10845 #ifdef HAVE_ARPA_INET_H
10846 #include <arpa/inet.h>
10847 #endif
10848 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10849 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10850 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10851 exit(1);}
10853 if { (eval echo configure:10854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10854 then
10855 samba_cv_REPLACE_INET_NTOA=yes
10856 else
10857 echo "configure: failed program was:" >&5
10858 cat conftest.$ac_ext >&5
10859 rm -fr conftest*
10860 samba_cv_REPLACE_INET_NTOA=no
10862 rm -fr conftest*
10867 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10868 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10869 cat >> confdefs.h <<\EOF
10870 #define REPLACE_INET_NTOA 1
10875 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10876 echo "configure:10877: checking for secure mkstemp" >&5
10877 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10879 else
10881 if test "$cross_compiling" = yes; then
10882 samba_cv_HAVE_SECURE_MKSTEMP=cross
10883 else
10884 cat > conftest.$ac_ext <<EOF
10885 #line 10886 "configure"
10886 #include "confdefs.h"
10887 #include <stdlib.h>
10888 #include <sys/types.h>
10889 #include <sys/stat.h>
10890 #include <unistd.h>
10891 main() {
10892 struct stat st;
10893 char tpl[20]="/tmp/test.XXXXXX";
10894 int fd = mkstemp(tpl);
10895 if (fd == -1) exit(1);
10896 unlink(tpl);
10897 if (fstat(fd, &st) != 0) exit(1);
10898 if ((st.st_mode & 0777) != 0600) exit(1);
10899 exit(0);
10902 if { (eval echo configure:10903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10903 then
10904 samba_cv_HAVE_SECURE_MKSTEMP=yes
10905 else
10906 echo "configure: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 rm -fr conftest*
10909 samba_cv_HAVE_SECURE_MKSTEMP=no
10911 rm -fr conftest*
10916 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10917 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10918 cat >> confdefs.h <<\EOF
10919 #define HAVE_SECURE_MKSTEMP 1
10924 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10925 echo "configure:10926: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10926 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10928 else
10930 if test "$cross_compiling" = yes; then
10931 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10932 else
10933 cat > conftest.$ac_ext <<EOF
10934 #line 10935 "configure"
10935 #include "confdefs.h"
10936 #include <unistd.h>
10937 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10939 if { (eval echo configure:10940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10940 then
10941 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10942 else
10943 echo "configure: failed program was:" >&5
10944 cat conftest.$ac_ext >&5
10945 rm -fr conftest*
10946 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10948 rm -fr conftest*
10953 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10954 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10955 cat >> confdefs.h <<\EOF
10956 #define SYSCONF_SC_NGROUPS_MAX 1
10961 echo $ac_n "checking for root""... $ac_c" 1>&6
10962 echo "configure:10963: checking for root" >&5
10963 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10964 echo $ac_n "(cached) $ac_c" 1>&6
10965 else
10967 if test "$cross_compiling" = yes; then
10968 samba_cv_HAVE_ROOT=cross
10969 else
10970 cat > conftest.$ac_ext <<EOF
10971 #line 10972 "configure"
10972 #include "confdefs.h"
10973 main() { exit(getuid() != 0); }
10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10976 then
10977 samba_cv_HAVE_ROOT=yes
10978 else
10979 echo "configure: failed program was:" >&5
10980 cat conftest.$ac_ext >&5
10981 rm -fr conftest*
10982 samba_cv_HAVE_ROOT=no
10984 rm -fr conftest*
10989 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10990 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10991 cat >> confdefs.h <<\EOF
10992 #define HAVE_ROOT 1
10995 else
10996 echo "configure: warning: running as non-root will disable some tests" 1>&2
10999 ##################
11000 # look for a method of finding the list of network interfaces
11001 iface=no;
11002 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
11003 echo "configure:11004: checking for iface AIX" >&5
11004 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
11005 echo $ac_n "(cached) $ac_c" 1>&6
11006 else
11008 if test "$cross_compiling" = yes; then
11009 samba_cv_HAVE_IFACE_AIX=cross
11010 else
11011 cat > conftest.$ac_ext <<EOF
11012 #line 11013 "configure"
11013 #include "confdefs.h"
11015 #define HAVE_IFACE_AIX 1
11016 #define AUTOCONF_TEST 1
11017 #include "confdefs.h"
11018 #include "${srcdir-.}/lib/interfaces.c"
11020 if { (eval echo configure:11021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11021 then
11022 samba_cv_HAVE_IFACE_AIX=yes
11023 else
11024 echo "configure: failed program was:" >&5
11025 cat conftest.$ac_ext >&5
11026 rm -fr conftest*
11027 samba_cv_HAVE_IFACE_AIX=no
11029 rm -fr conftest*
11034 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11035 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11036 iface=yes;cat >> confdefs.h <<\EOF
11037 #define HAVE_IFACE_AIX 1
11042 if test $iface = no; then
11043 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11044 echo "configure:11045: checking for iface ifconf" >&5
11045 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11047 else
11049 if test "$cross_compiling" = yes; then
11050 samba_cv_HAVE_IFACE_IFCONF=cross
11051 else
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11056 #define HAVE_IFACE_IFCONF 1
11057 #define AUTOCONF_TEST 1
11058 #include "confdefs.h"
11059 #include "${srcdir-.}/lib/interfaces.c"
11061 if { (eval echo configure:11062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11062 then
11063 samba_cv_HAVE_IFACE_IFCONF=yes
11064 else
11065 echo "configure: failed program was:" >&5
11066 cat conftest.$ac_ext >&5
11067 rm -fr conftest*
11068 samba_cv_HAVE_IFACE_IFCONF=no
11070 rm -fr conftest*
11075 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11076 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11077 iface=yes;cat >> confdefs.h <<\EOF
11078 #define HAVE_IFACE_IFCONF 1
11084 if test $iface = no; then
11085 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11086 echo "configure:11087: checking for iface ifreq" >&5
11087 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11089 else
11091 if test "$cross_compiling" = yes; then
11092 samba_cv_HAVE_IFACE_IFREQ=cross
11093 else
11094 cat > conftest.$ac_ext <<EOF
11095 #line 11096 "configure"
11096 #include "confdefs.h"
11098 #define HAVE_IFACE_IFREQ 1
11099 #define AUTOCONF_TEST 1
11100 #include "confdefs.h"
11101 #include "${srcdir-.}/lib/interfaces.c"
11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11104 then
11105 samba_cv_HAVE_IFACE_IFREQ=yes
11106 else
11107 echo "configure: failed program was:" >&5
11108 cat conftest.$ac_ext >&5
11109 rm -fr conftest*
11110 samba_cv_HAVE_IFACE_IFREQ=no
11112 rm -fr conftest*
11117 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11118 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11119 iface=yes;cat >> confdefs.h <<\EOF
11120 #define HAVE_IFACE_IFREQ 1
11127 ################################################
11128 # look for a method of setting the effective uid
11129 seteuid=no;
11130 if test $seteuid = no; then
11131 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11132 echo "configure:11133: checking for setresuid" >&5
11133 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11134 echo $ac_n "(cached) $ac_c" 1>&6
11135 else
11137 if test "$cross_compiling" = yes; then
11138 samba_cv_USE_SETRESUID=cross
11139 else
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11144 #define AUTOCONF_TEST 1
11145 #define USE_SETRESUID 1
11146 #include "confdefs.h"
11147 #include "${srcdir-.}/lib/util_sec.c"
11149 if { (eval echo configure:11150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11150 then
11151 samba_cv_USE_SETRESUID=yes
11152 else
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11155 rm -fr conftest*
11156 samba_cv_USE_SETRESUID=no
11158 rm -fr conftest*
11163 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11164 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11165 seteuid=yes;cat >> confdefs.h <<\EOF
11166 #define USE_SETRESUID 1
11173 if test $seteuid = no; then
11174 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11175 echo "configure:11176: checking for setreuid" >&5
11176 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11178 else
11180 if test "$cross_compiling" = yes; then
11181 samba_cv_USE_SETREUID=cross
11182 else
11183 cat > conftest.$ac_ext <<EOF
11184 #line 11185 "configure"
11185 #include "confdefs.h"
11187 #define AUTOCONF_TEST 1
11188 #define USE_SETREUID 1
11189 #include "confdefs.h"
11190 #include "${srcdir-.}/lib/util_sec.c"
11192 if { (eval echo configure:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11193 then
11194 samba_cv_USE_SETREUID=yes
11195 else
11196 echo "configure: failed program was:" >&5
11197 cat conftest.$ac_ext >&5
11198 rm -fr conftest*
11199 samba_cv_USE_SETREUID=no
11201 rm -fr conftest*
11206 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11207 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11208 seteuid=yes;cat >> confdefs.h <<\EOF
11209 #define USE_SETREUID 1
11215 if test $seteuid = no; then
11216 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11217 echo "configure:11218: checking for seteuid" >&5
11218 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11219 echo $ac_n "(cached) $ac_c" 1>&6
11220 else
11222 if test "$cross_compiling" = yes; then
11223 samba_cv_USE_SETEUID=cross
11224 else
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11229 #define AUTOCONF_TEST 1
11230 #define USE_SETEUID 1
11231 #include "confdefs.h"
11232 #include "${srcdir-.}/lib/util_sec.c"
11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11235 then
11236 samba_cv_USE_SETEUID=yes
11237 else
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11240 rm -fr conftest*
11241 samba_cv_USE_SETEUID=no
11243 rm -fr conftest*
11248 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11249 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11250 seteuid=yes;cat >> confdefs.h <<\EOF
11251 #define USE_SETEUID 1
11257 if test $seteuid = no; then
11258 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11259 echo "configure:11260: checking for setuidx" >&5
11260 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11262 else
11264 if test "$cross_compiling" = yes; then
11265 samba_cv_USE_SETUIDX=cross
11266 else
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11271 #define AUTOCONF_TEST 1
11272 #define USE_SETUIDX 1
11273 #include "confdefs.h"
11274 #include "${srcdir-.}/lib/util_sec.c"
11276 if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11277 then
11278 samba_cv_USE_SETUIDX=yes
11279 else
11280 echo "configure: failed program was:" >&5
11281 cat conftest.$ac_ext >&5
11282 rm -fr conftest*
11283 samba_cv_USE_SETUIDX=no
11285 rm -fr conftest*
11290 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11291 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11292 seteuid=yes;cat >> confdefs.h <<\EOF
11293 #define USE_SETUIDX 1
11300 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11301 echo "configure:11302: checking for working mmap" >&5
11302 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11304 else
11306 if test "$cross_compiling" = yes; then
11307 samba_cv_HAVE_MMAP=cross
11308 else
11309 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include "${srcdir-.}/tests/shared_mmap.c"
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11315 then
11316 samba_cv_HAVE_MMAP=yes
11317 else
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 rm -fr conftest*
11321 samba_cv_HAVE_MMAP=no
11323 rm -fr conftest*
11328 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11329 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11330 cat >> confdefs.h <<\EOF
11331 #define HAVE_MMAP 1
11336 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11337 echo "configure:11338: checking for ftruncate needs root" >&5
11338 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340 else
11342 if test "$cross_compiling" = yes; then
11343 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11344 else
11345 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure"
11347 #include "confdefs.h"
11348 #include "${srcdir-.}/tests/ftruncroot.c"
11350 if { (eval echo configure:11351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11351 then
11352 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11353 else
11354 echo "configure: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11356 rm -fr conftest*
11357 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11359 rm -fr conftest*
11364 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11365 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11366 cat >> confdefs.h <<\EOF
11367 #define FTRUNCATE_NEEDS_ROOT 1
11372 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11373 echo "configure:11374: checking for fcntl locking" >&5
11374 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376 else
11378 if test "$cross_compiling" = yes; then
11379 samba_cv_HAVE_FCNTL_LOCK=cross
11380 else
11381 cat > conftest.$ac_ext <<EOF
11382 #line 11383 "configure"
11383 #include "confdefs.h"
11384 #include "${srcdir-.}/tests/fcntl_lock.c"
11386 if { (eval echo configure:11387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11387 then
11388 samba_cv_HAVE_FCNTL_LOCK=yes
11389 else
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 rm -fr conftest*
11393 samba_cv_HAVE_FCNTL_LOCK=no
11395 rm -fr conftest*
11400 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11401 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11402 cat >> confdefs.h <<\EOF
11403 #define HAVE_FCNTL_LOCK 1
11408 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11409 echo "configure:11410: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11410 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11411 echo $ac_n "(cached) $ac_c" 1>&6
11412 else
11414 if test "$cross_compiling" = yes; then
11415 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11416 else
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 #include "${srcdir-.}/tests/fcntl_lock64.c"
11422 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11423 then
11424 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11425 else
11426 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5
11428 rm -fr conftest*
11429 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11431 rm -fr conftest*
11436 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11437 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11438 cat >> confdefs.h <<\EOF
11439 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11443 else
11446 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11447 echo "configure:11448: checking for 64 bit fcntl locking" >&5
11448 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11450 else
11452 if test "$cross_compiling" = yes; then
11453 samba_cv_HAVE_STRUCT_FLOCK64=cross
11454 else
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11459 #if defined(HAVE_UNISTD_H)
11460 #include <unistd.h>
11461 #endif
11462 #include <stdio.h>
11463 #include <stdlib.h>
11465 #ifdef HAVE_FCNTL_H
11466 #include <fcntl.h>
11467 #endif
11469 #ifdef HAVE_SYS_FCNTL_H
11470 #include <sys/fcntl.h>
11471 #endif
11472 main() { struct flock64 fl64;
11473 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11474 exit(0);
11475 #else
11476 exit(1);
11477 #endif
11480 if { (eval echo configure:11481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11481 then
11482 samba_cv_HAVE_STRUCT_FLOCK64=yes
11483 else
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -fr conftest*
11487 samba_cv_HAVE_STRUCT_FLOCK64=no
11489 rm -fr conftest*
11494 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11496 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11497 cat >> confdefs.h <<\EOF
11498 #define HAVE_STRUCT_FLOCK64 1
11504 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11505 echo "configure:11506: checking for st_blocks in struct stat" >&5
11506 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11508 else
11510 cat > conftest.$ac_ext <<EOF
11511 #line 11512 "configure"
11512 #include "confdefs.h"
11513 #include <sys/types.h>
11514 #include <sys/stat.h>
11515 #include <unistd.h>
11516 int main() {
11517 struct stat st; st.st_blocks = 0;
11518 ; return 0; }
11520 if { (eval echo configure:11521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11521 rm -rf conftest*
11522 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11523 else
11524 echo "configure: failed program was:" >&5
11525 cat conftest.$ac_ext >&5
11526 rm -rf conftest*
11527 samba_cv_HAVE_STAT_ST_BLOCKS=no
11529 rm -f conftest*
11532 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11533 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11534 cat >> confdefs.h <<\EOF
11535 #define HAVE_STAT_ST_BLOCKS 1
11540 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
11541 echo "configure:11542: checking for st_blksize in struct stat" >&5
11542 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLKSIZE'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11544 else
11546 cat > conftest.$ac_ext <<EOF
11547 #line 11548 "configure"
11548 #include "confdefs.h"
11549 #include <sys/types.h>
11550 #include <sys/stat.h>
11551 #include <unistd.h>
11552 int main() {
11553 struct stat st; st.st_blksize = 0;
11554 ; return 0; }
11556 if { (eval echo configure:11557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11557 rm -rf conftest*
11558 samba_cv_HAVE_STAT_ST_BLKSIZE=yes
11559 else
11560 echo "configure: failed program was:" >&5
11561 cat conftest.$ac_ext >&5
11562 rm -rf conftest*
11563 samba_cv_HAVE_STAT_ST_BLKSIZE=no
11565 rm -f conftest*
11568 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLKSIZE" 1>&6
11569 if test x"$samba_cv_HAVE_STAT_ST_BLKSIZE" = x"yes"; then
11570 cat >> confdefs.h <<\EOF
11571 #define HAVE_STAT_ST_BLKSIZE 1
11576 case "$host_os" in
11577 *linux*)
11578 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11579 echo "configure:11580: checking for broken RedHat 7.2 system header files" >&5
11580 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11581 echo $ac_n "(cached) $ac_c" 1>&6
11582 else
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11588 #ifdef HAVE_SYS_VFS_H
11589 #include <sys/vfs.h>
11590 #endif
11591 #ifdef HAVE_SYS_CAPABILITY_H
11592 #include <sys/capability.h>
11593 #endif
11595 int main() {
11596 int i;
11597 ; return 0; }
11599 if { (eval echo configure:11600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11600 rm -rf conftest*
11601 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11602 else
11603 echo "configure: failed program was:" >&5
11604 cat conftest.$ac_ext >&5
11605 rm -rf conftest*
11606 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11608 rm -f conftest*
11611 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11612 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11613 cat >> confdefs.h <<\EOF
11614 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11619 esac
11621 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11622 echo "configure:11623: checking for broken nisplus include files" >&5
11623 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11624 echo $ac_n "(cached) $ac_c" 1>&6
11625 else
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 #include <sys/acl.h>
11631 #if defined(HAVE_RPCSVC_NIS_H)
11632 #include <rpcsvc/nis.h>
11633 #endif
11634 int main() {
11635 int i;
11636 ; return 0; }
11638 if { (eval echo configure:11639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11639 rm -rf conftest*
11640 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11641 else
11642 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5
11644 rm -rf conftest*
11645 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11647 rm -f conftest*
11650 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11651 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11652 cat >> confdefs.h <<\EOF
11653 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11659 #################################################
11660 # check for smbwrapper support
11661 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11662 echo "configure:11663: checking whether to use smbwrapper" >&5
11663 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11664 if test "${with_smbwrapper+set}" = set; then
11665 withval="$with_smbwrapper"
11666 case "$withval" in
11667 yes)
11668 echo "$ac_t""yes" 1>&6
11669 cat >> confdefs.h <<\EOF
11670 #define WITH_SMBWRAPPER 1
11673 WRAPPROG="bin/smbsh"
11674 WRAP="bin/smbwrapper.$SHLIBEXT"
11676 if test x$ATTEMPT_WRAP32_BUILD = x; then
11677 WRAP32=""
11678 else
11679 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11682 # Conditions under which smbwrapper should not be built.
11684 if test x$PICFLAG = x; then
11685 echo No support for PIC code - disabling smbwrapper and smbsh
11686 WRAPPROG=""
11687 WRAP=""
11688 WRAP32=""
11689 elif test x$ac_cv_func_syscall = xno; then
11690 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11691 WRAPPROG=""
11692 WRAP=""
11693 WRAP32=""
11697 echo "$ac_t""no" 1>&6
11699 esac
11700 else
11701 echo "$ac_t""no" 1>&6
11706 #################################################
11707 # check for the AFS filesystem
11708 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11709 echo "configure:11710: checking whether to use AFS" >&5
11710 # Check whether --with-afs or --without-afs was given.
11711 if test "${with_afs+set}" = set; then
11712 withval="$with_afs"
11713 case "$withval" in
11714 yes)
11715 echo "$ac_t""yes" 1>&6
11716 cat >> confdefs.h <<\EOF
11717 #define WITH_AFS 1
11722 echo "$ac_t""no" 1>&6
11724 esac
11725 else
11726 echo "$ac_t""no" 1>&6
11732 #################################################
11733 # check for the DFS auth system
11734 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11735 echo "configure:11736: checking whether to use DCE/DFS auth" >&5
11736 # Check whether --with-dfs or --without-dfs was given.
11737 if test "${with_dfs+set}" = set; then
11738 withval="$with_dfs"
11739 case "$withval" in
11740 yes)
11741 echo "$ac_t""yes" 1>&6
11742 cat >> confdefs.h <<\EOF
11743 #define WITH_DFS 1
11748 echo "$ac_t""no" 1>&6
11750 esac
11751 else
11752 echo "$ac_t""no" 1>&6
11757 #################################################
11758 # check for Kerberos IV auth system
11759 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11760 echo "configure:11761: checking whether to use Kerberos IV" >&5
11761 # Check whether --with-krb4 or --without-krb4 was given.
11762 if test "${with_krb4+set}" = set; then
11763 withval="$with_krb4"
11764 case "$withval" in
11765 yes)
11766 echo "$ac_t""yes" 1>&6
11767 cat >> confdefs.h <<\EOF
11768 #define KRB4_AUTH 1
11771 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11772 echo "configure:11773: checking for dn_expand in -lresolv" >&5
11773 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776 else
11777 ac_save_LIBS="$LIBS"
11778 LIBS="-lresolv $LIBS"
11779 cat > conftest.$ac_ext <<EOF
11780 #line 11781 "configure"
11781 #include "confdefs.h"
11782 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11785 char dn_expand();
11787 int main() {
11788 dn_expand()
11789 ; return 0; }
11791 if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11792 rm -rf conftest*
11793 eval "ac_cv_lib_$ac_lib_var=yes"
11794 else
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11797 rm -rf conftest*
11798 eval "ac_cv_lib_$ac_lib_var=no"
11800 rm -f conftest*
11801 LIBS="$ac_save_LIBS"
11804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11805 echo "$ac_t""yes" 1>&6
11806 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11807 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11808 cat >> confdefs.h <<EOF
11809 #define $ac_tr_lib 1
11812 LIBS="-lresolv $LIBS"
11814 else
11815 echo "$ac_t""no" 1>&6
11818 LIBS="$LIBS -lkrb -ldes"
11819 CFLAGS="$CFLAGS -I$withval/include"
11820 LDFLAGS="$LDFLAGS -L$withval/lib"
11823 echo "$ac_t""no" 1>&6
11825 esac
11826 else
11827 echo "$ac_t""no" 1>&6
11832 #################################################
11833 # check for Kerberos 5 auth system
11834 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11835 echo "configure:11836: checking whether to use Kerberos 5" >&5
11836 # Check whether --with-krb5 or --without-krb5 was given.
11837 if test "${with_krb5+set}" = set; then
11838 withval="$with_krb5"
11839 case "$withval" in
11840 yes)
11841 echo "$ac_t""yes" 1>&6
11842 cat >> confdefs.h <<\EOF
11843 #define KRB5_AUTH 1
11846 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11847 CFLAGS="$CFLAGS -I$withval/include"
11848 LDFLAGS="$LDFLAGS -L$withval/lib"
11851 echo "$ac_t""no" 1>&6
11853 esac
11854 else
11855 echo "$ac_t""no" 1>&6
11860 #################################################
11861 # check for automount support
11862 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11863 echo "configure:11864: checking whether to use AUTOMOUNT" >&5
11864 # Check whether --with-automount or --without-automount was given.
11865 if test "${with_automount+set}" = set; then
11866 withval="$with_automount"
11867 case "$withval" in
11868 yes)
11869 echo "$ac_t""yes" 1>&6
11870 cat >> confdefs.h <<\EOF
11871 #define WITH_AUTOMOUNT 1
11876 echo "$ac_t""no" 1>&6
11878 esac
11879 else
11880 echo "$ac_t""no" 1>&6
11885 #################################################
11886 # check for smbmount support
11887 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11888 echo "configure:11889: checking whether to use SMBMOUNT" >&5
11889 # Check whether --with-smbmount or --without-smbmount was given.
11890 if test "${with_smbmount+set}" = set; then
11891 withval="$with_smbmount"
11892 case "$withval" in
11893 yes)
11894 case "$host_os" in
11895 *linux*)
11896 echo "$ac_t""yes" 1>&6
11897 cat >> confdefs.h <<\EOF
11898 #define WITH_SMBMOUNT 1
11901 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11904 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11906 esac
11909 echo "$ac_t""no" 1>&6
11910 MPROGS=
11912 esac
11913 else
11914 echo "$ac_t""no" 1>&6
11915 MPROGS=
11921 #################################################
11922 # check for a PAM password database
11923 with_pam_for_crypt=no
11924 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11925 echo "configure:11926: checking whether to use PAM password database" >&5
11926 # Check whether --with-pam or --without-pam was given.
11927 if test "${with_pam+set}" = set; then
11928 withval="$with_pam"
11929 case "$withval" in
11930 yes)
11931 echo "$ac_t""yes" 1>&6
11932 cat >> confdefs.h <<\EOF
11933 #define WITH_PAM 1
11936 LIBS="$LIBS -lpam"
11937 with_pam_for_crypt=yes
11940 echo "$ac_t""no" 1>&6
11942 esac
11943 else
11944 echo "$ac_t""no" 1>&6
11949 # we can't build a pam module if we don't have pam.
11950 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11951 echo "configure:11952: checking for pam_get_data in -lpam" >&5
11952 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11954 echo $ac_n "(cached) $ac_c" 1>&6
11955 else
11956 ac_save_LIBS="$LIBS"
11957 LIBS="-lpam $LIBS"
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char pam_get_data();
11966 int main() {
11967 pam_get_data()
11968 ; return 0; }
11970 if { (eval echo configure:11971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11971 rm -rf conftest*
11972 eval "ac_cv_lib_$ac_lib_var=yes"
11973 else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
11977 eval "ac_cv_lib_$ac_lib_var=no"
11979 rm -f conftest*
11980 LIBS="$ac_save_LIBS"
11983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11984 echo "$ac_t""yes" 1>&6
11985 cat >> confdefs.h <<\EOF
11986 #define HAVE_LIBPAM 1
11989 else
11990 echo "$ac_t""no" 1>&6
11994 #################################################
11995 # check for pam_smbpass support
11996 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11997 echo "configure:11998: checking whether to use pam_smbpass" >&5
11998 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11999 if test "${with_pam_smbpass+set}" = set; then
12000 withval="$with_pam_smbpass"
12001 case "$withval" in
12002 yes)
12003 echo "$ac_t""yes" 1>&6
12005 # Conditions under which pam_smbpass should not be built.
12007 if test x$PICFLAG = x; then
12008 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
12009 PAM_MOD=""
12010 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
12011 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
12012 PAM_MOD=""
12013 else
12014 cat >> confdefs.h <<\EOF
12015 #define WITH_PAM_SMBPASS 1
12018 PAM_MOD="bin/pam_smbpass.so"
12022 echo "$ac_t""no" 1>&6
12024 esac
12025 else
12026 echo "$ac_t""no" 1>&6
12032 ###############################################
12033 # test for where we get crypt() from, but only
12034 # if not using PAM
12035 if test $with_pam_for_crypt = no; then
12036 for ac_func in crypt
12038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_func" >&5
12040 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+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 /* System header to define __stub macros and hopefully few prototypes,
12047 which can conflict with char $ac_func(); below. */
12048 #include <assert.h>
12049 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12052 char $ac_func();
12054 int main() {
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12060 choke me
12061 #else
12062 $ac_func();
12063 #endif
12065 ; return 0; }
12067 if { (eval echo configure:12068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12068 rm -rf conftest*
12069 eval "ac_cv_func_$ac_func=yes"
12070 else
12071 echo "configure: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 rm -rf conftest*
12074 eval "ac_cv_func_$ac_func=no"
12076 rm -f conftest*
12079 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12082 cat >> confdefs.h <<EOF
12083 #define $ac_tr_func 1
12086 else
12087 echo "$ac_t""no" 1>&6
12089 done
12091 if test x"$ac_cv_func_crypt" = x"no"; then
12092 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12093 echo "configure:12094: checking for crypt in -lcrypt" >&5
12094 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12096 echo $ac_n "(cached) $ac_c" 1>&6
12097 else
12098 ac_save_LIBS="$LIBS"
12099 LIBS="-lcrypt $LIBS"
12100 cat > conftest.$ac_ext <<EOF
12101 #line 12102 "configure"
12102 #include "confdefs.h"
12103 /* Override any gcc2 internal prototype to avoid an error. */
12104 /* We use char because int might match the return type of a gcc2
12105 builtin and then its argument prototype would still apply. */
12106 char crypt();
12108 int main() {
12109 crypt()
12110 ; return 0; }
12112 if { (eval echo configure:12113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12113 rm -rf conftest*
12114 eval "ac_cv_lib_$ac_lib_var=yes"
12115 else
12116 echo "configure: failed program was:" >&5
12117 cat conftest.$ac_ext >&5
12118 rm -rf conftest*
12119 eval "ac_cv_lib_$ac_lib_var=no"
12121 rm -f conftest*
12122 LIBS="$ac_save_LIBS"
12125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12126 echo "$ac_t""yes" 1>&6
12127 LIBS="$LIBS -lcrypt";
12128 cat >> confdefs.h <<\EOF
12129 #define HAVE_CRYPT 1
12132 else
12133 echo "$ac_t""no" 1>&6
12140 ## moved after the check for -lcrypt in order to
12141 ## ensure that the necessary libraries are included
12142 ## check checking for truncated salt. Wrapped by the
12143 ## $with_pam_for_crypt variable as above --jerry
12145 if test $with_pam_for_crypt = no; then
12146 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12147 echo "configure:12148: checking for a crypt that needs truncated salt" >&5
12148 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12150 else
12152 if test "$cross_compiling" = yes; then
12153 samba_cv_HAVE_TRUNCATED_SALT=cross
12154 else
12155 cat > conftest.$ac_ext <<EOF
12156 #line 12157 "configure"
12157 #include "confdefs.h"
12158 #include "${srcdir-.}/tests/crypttest.c"
12160 if { (eval echo configure:12161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12161 then
12162 samba_cv_HAVE_TRUNCATED_SALT=no
12163 else
12164 echo "configure: failed program was:" >&5
12165 cat conftest.$ac_ext >&5
12166 rm -fr conftest*
12167 samba_cv_HAVE_TRUNCATED_SALT=yes
12169 rm -fr conftest*
12174 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12175 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12176 cat >> confdefs.h <<\EOF
12177 #define HAVE_TRUNCATED_SALT 1
12184 ########################################################################################
12186 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12188 ########################################################################################
12190 ## set the with_smbpasswd_sam as the default
12191 with_smbpasswd_sam=yes
12195 #################################################
12196 # check for a TDB password database
12197 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12198 echo "configure:12199: checking whether to use TDB SAM database" >&5
12199 # Check whether --with-tdbsam or --without-tdbsam was given.
12200 if test "${with_tdbsam+set}" = set; then
12201 withval="$with_tdbsam"
12202 case "$withval" in
12203 yes)
12204 echo "$ac_t""yes" 1>&6
12205 cat >> confdefs.h <<\EOF
12206 #define WITH_TDB_SAM 1
12209 with_smbpasswd_sam=no
12212 echo "$ac_t""no" 1>&6
12214 esac
12215 else
12216 echo "$ac_t""no" 1>&6
12221 #################################################
12222 # check for a LDAP password database
12223 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12224 echo "configure:12225: checking whether to use LDAP SAM database" >&5
12225 # Check whether --with-ldapsam or --without-ldapsam was given.
12226 if test "${with_ldapsam+set}" = set; then
12227 withval="$with_ldapsam"
12228 case "$withval" in
12229 yes)
12230 echo "$ac_t""yes" 1>&6
12231 cat >> confdefs.h <<\EOF
12232 #define WITH_LDAP_SAM 1
12235 LDAPLIBS="-lldap"
12236 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12237 echo "configure:12238: checking for ber_bvfree in -llber" >&5
12238 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12240 echo $ac_n "(cached) $ac_c" 1>&6
12241 else
12242 ac_save_LIBS="$LIBS"
12243 LIBS="-llber $LIBS"
12244 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure"
12246 #include "confdefs.h"
12247 /* Override any gcc2 internal prototype to avoid an error. */
12248 /* We use char because int might match the return type of a gcc2
12249 builtin and then its argument prototype would still apply. */
12250 char ber_bvfree();
12252 int main() {
12253 ber_bvfree()
12254 ; return 0; }
12256 if { (eval echo configure:12257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12257 rm -rf conftest*
12258 eval "ac_cv_lib_$ac_lib_var=yes"
12259 else
12260 echo "configure: failed program was:" >&5
12261 cat conftest.$ac_ext >&5
12262 rm -rf conftest*
12263 eval "ac_cv_lib_$ac_lib_var=no"
12265 rm -f conftest*
12266 LIBS="$ac_save_LIBS"
12269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 LDAPLIBS="$LDAPLIBS -llber"
12272 else
12273 echo "$ac_t""no" 1>&6
12276 LDAPLIBS="-lresolv $LDAPLIBS"
12277 old_LDFLAGS="$LDFLAGS"
12278 LDFLAGS="$LDFLAGS $LDAPLIBS"
12279 for ac_func in ldap_start_tls_s
12281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12282 echo "configure:12283: checking for $ac_func" >&5
12283 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12284 echo $ac_n "(cached) $ac_c" 1>&6
12285 else
12286 cat > conftest.$ac_ext <<EOF
12287 #line 12288 "configure"
12288 #include "confdefs.h"
12289 /* System header to define __stub macros and hopefully few prototypes,
12290 which can conflict with char $ac_func(); below. */
12291 #include <assert.h>
12292 /* Override any gcc2 internal prototype to avoid an error. */
12293 /* We use char because int might match the return type of a gcc2
12294 builtin and then its argument prototype would still apply. */
12295 char $ac_func();
12297 int main() {
12299 /* The GNU C library defines this for functions which it implements
12300 to always fail with ENOSYS. Some functions are actually named
12301 something starting with __ and the normal name is an alias. */
12302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12303 choke me
12304 #else
12305 $ac_func();
12306 #endif
12308 ; return 0; }
12310 if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12311 rm -rf conftest*
12312 eval "ac_cv_func_$ac_func=yes"
12313 else
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12316 rm -rf conftest*
12317 eval "ac_cv_func_$ac_func=no"
12319 rm -f conftest*
12322 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12323 echo "$ac_t""yes" 1>&6
12324 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12325 cat >> confdefs.h <<EOF
12326 #define $ac_tr_func 1
12329 else
12330 echo "$ac_t""no" 1>&6
12332 done
12334 LDFLAGS="$old_LDFLAGS"
12335 with_smbpasswd_sam=no
12339 echo "$ac_t""no" 1>&6
12341 esac
12342 else
12343 echo "$ac_t""no" 1>&6
12348 #################################################
12349 # check for a NISPLUS password database
12350 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12351 echo "configure:12352: checking whether to use NISPLUS SAM database" >&5
12352 # Check whether --with-nisplussam or --without-nisplussam was given.
12353 if test "${with_nisplussam+set}" = set; then
12354 withval="$with_nisplussam"
12355 case "$withval" in
12356 yes)
12357 echo "$ac_t""yes" 1>&6
12358 cat >> confdefs.h <<\EOF
12359 #define WITH_NISPLUS_SAM 1
12362 with_smbpasswd_sam=no
12365 echo "$ac_t""no" 1>&6
12367 esac
12368 else
12369 echo "$ac_t""no" 1>&6
12374 ################################################
12375 # This test should come last because the
12376 # smbpasswd SAM is only used if another format
12377 # has not been defined
12378 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12379 echo "configure:12380: checking whether to use traditional smbpasswd file" >&5
12380 if test $with_smbpasswd_sam = yes; then
12381 echo "$ac_t""yes" 1>&6
12382 cat >> confdefs.h <<\EOF
12383 #define WITH_SMBPASSWD_SAM 1
12386 PDBEDIT=""
12387 else
12388 echo "$ac_t""no" 1>&6
12389 PDBEDIT=bin/pdbedit
12392 ########################################################################################
12394 ## END OF TESTS FOR SAM BACKENDS.
12396 ########################################################################################
12398 #################################################
12399 # check for a NISPLUS_HOME support
12400 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12401 echo "configure:12402: checking whether to use NISPLUS_HOME" >&5
12402 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12403 if test "${with_nisplus_home+set}" = set; then
12404 withval="$with_nisplus_home"
12405 case "$withval" in
12406 yes)
12407 echo "$ac_t""yes" 1>&6
12408 cat >> confdefs.h <<\EOF
12409 #define WITH_NISPLUS_HOME 1
12414 echo "$ac_t""no" 1>&6
12416 esac
12417 else
12418 echo "$ac_t""no" 1>&6
12423 #################################################
12424 # check for the secure socket layer
12425 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12426 echo "configure:12427: checking whether to use SSL" >&5
12427 # Check whether --with-ssl or --without-ssl was given.
12428 if test "${with_ssl+set}" = set; then
12429 withval="$with_ssl"
12430 case "$withval" in
12431 yes)
12432 echo "$ac_t""yes" 1>&6
12433 cat >> confdefs.h <<\EOF
12434 #define WITH_SSL 1
12437 withval="/usr/local/ssl" # default
12439 if test "${with_sslinc+set}" = set; then
12441 withval="$with_sslinc"
12442 case "$withval" in
12443 yes|no)
12444 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12445 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12448 CFLAGS="-I${withval} $CFLAGS"
12450 esac
12452 else
12454 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12458 if test "${with_ssllib+set}" = set; then
12460 withval="$with_ssllib"
12461 case "$withval" in
12462 yes|no)
12463 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12464 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12467 LDFLAGS="-L${withval}/lib $LDFLAGS"
12469 esac
12471 else
12473 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12477 LIBS="-lssl -lcrypto $LIBS"
12479 # if test ! -d ${withval}; then
12480 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12481 # exit 1
12482 # fi
12484 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12488 echo "$ac_t""no" 1>&6
12490 esac
12491 else
12492 echo "$ac_t""no" 1>&6
12497 #################################################
12498 # check for syslog logging
12499 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12500 echo "configure:12501: checking whether to use syslog logging" >&5
12501 # Check whether --with-syslog or --without-syslog was given.
12502 if test "${with_syslog+set}" = set; then
12503 withval="$with_syslog"
12504 case "$withval" in
12505 yes)
12506 echo "$ac_t""yes" 1>&6
12507 cat >> confdefs.h <<\EOF
12508 #define WITH_SYSLOG 1
12513 echo "$ac_t""no" 1>&6
12515 esac
12516 else
12517 echo "$ac_t""no" 1>&6
12522 #################################################
12523 # check for a shared memory profiling support
12524 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12525 echo "configure:12526: checking whether to use profiling" >&5
12526 # Check whether --with-profiling-data or --without-profiling-data was given.
12527 if test "${with_profiling_data+set}" = set; then
12528 withval="$with_profiling_data"
12529 case "$withval" in
12530 yes)
12531 echo "$ac_t""yes" 1>&6
12532 cat >> confdefs.h <<\EOF
12533 #define WITH_PROFILE 1
12538 echo "$ac_t""no" 1>&6
12540 esac
12541 else
12542 echo "$ac_t""no" 1>&6
12548 #################################################
12549 # check for experimental disk-quotas support
12550 QUOTAOBJS=smbd/noquotas.o
12552 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12553 echo "configure:12554: checking whether to support disk-quotas" >&5
12554 # Check whether --with-quotas or --without-quotas was given.
12555 if test "${with_quotas+set}" = set; then
12556 withval="$with_quotas"
12557 case "$withval" in
12558 yes)
12559 echo "$ac_t""yes" 1>&6
12560 QUOTAOBJS=smbd/quotas.o
12563 echo "$ac_t""no" 1>&6
12565 esac
12566 else
12567 echo "$ac_t""no" 1>&6
12573 #################################################
12574 # check for experimental utmp accounting
12576 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12577 echo "configure:12578: checking whether to support utmp accounting" >&5
12578 # Check whether --with-utmp or --without-utmp was given.
12579 if test "${with_utmp+set}" = set; then
12580 withval="$with_utmp"
12581 case "$withval" in
12582 yes)
12583 echo "$ac_t""yes" 1>&6
12584 cat >> confdefs.h <<\EOF
12585 #define WITH_UTMP 1
12590 echo "$ac_t""no" 1>&6
12592 esac
12593 else
12594 echo "$ac_t""no" 1>&6
12599 #################################################
12600 # check for MS Dfs support
12602 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12603 echo "configure:12604: checking whether to support Microsoft Dfs" >&5
12604 # Check whether --with-msdfs or --without-msdfs was given.
12605 if test "${with_msdfs+set}" = set; then
12606 withval="$with_msdfs"
12607 case "$withval" in
12608 yes)
12609 echo "$ac_t""yes" 1>&6
12610 cat >> confdefs.h <<\EOF
12611 #define WITH_MSDFS 1
12616 echo "$ac_t""no" 1>&6
12618 esac
12619 else
12620 echo "$ac_t""no" 1>&6
12625 #################################################
12626 # should we build libsmbclient?
12628 LIBSMBCLIENT_SHARED=
12629 LIBSMBCLIENT=
12630 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12631 echo "configure:12632: checking whether to build the libsmbclient shared library" >&5
12632 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12633 if test "${with_libsmbclient+set}" = set; then
12634 withval="$with_libsmbclient"
12635 case "$withval" in
12636 yes)
12637 if test $BLDSHARED = true; then
12638 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12639 LIBSMBCLIENT=libsmbclient
12640 echo "$ac_t""yes" 1>&6
12641 else
12642 echo "$ac_t""no shared library support" 1>&6
12646 echo "$ac_t""no" 1>&6
12648 esac
12649 else
12650 echo "$ac_t""no" 1>&6
12655 #################################################
12656 # these tests are taken from the GNU fileutils package
12657 echo "checking how to get filesystem space usage" 1>&6
12658 echo "configure:12659: checking how to get filesystem space usage" >&5
12659 space=no
12661 # Test for statvfs64.
12662 if test $space = no; then
12663 # SVR4
12664 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12665 echo "configure:12666: checking statvfs64 function (SVR4)" >&5
12666 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12667 echo $ac_n "(cached) $ac_c" 1>&6
12668 else
12669 if test "$cross_compiling" = yes; then
12670 fu_cv_sys_stat_statvfs64=cross
12671 else
12672 cat > conftest.$ac_ext <<EOF
12673 #line 12674 "configure"
12674 #include "confdefs.h"
12676 #if defined(HAVE_UNISTD_H)
12677 #include <unistd.h>
12678 #endif
12679 #include <sys/types.h>
12680 #include <sys/statvfs.h>
12681 main ()
12683 struct statvfs64 fsd;
12684 exit (statvfs64 (".", &fsd));
12687 if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12688 then
12689 fu_cv_sys_stat_statvfs64=yes
12690 else
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 rm -fr conftest*
12694 fu_cv_sys_stat_statvfs64=no
12696 rm -fr conftest*
12701 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12702 if test $fu_cv_sys_stat_statvfs64 = yes; then
12703 space=yes
12704 cat >> confdefs.h <<\EOF
12705 #define STAT_STATVFS64 1
12711 # Perform only the link test since it seems there are no variants of the
12712 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12713 # because that got a false positive on SCO OSR5. Adding the declaration
12714 # of a `struct statvfs' causes this test to fail (as it should) on such
12715 # systems. That system is reported to work fine with STAT_STATFS4 which
12716 # is what it gets when this test fails.
12717 if test $space = no; then
12718 # SVR4
12719 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12720 echo "configure:12721: checking statvfs function (SVR4)" >&5
12721 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723 else
12724 cat > conftest.$ac_ext <<EOF
12725 #line 12726 "configure"
12726 #include "confdefs.h"
12727 #include <sys/types.h>
12728 #include <sys/statvfs.h>
12729 int main() {
12730 struct statvfs fsd; statvfs (0, &fsd);
12731 ; return 0; }
12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12734 rm -rf conftest*
12735 fu_cv_sys_stat_statvfs=yes
12736 else
12737 echo "configure: failed program was:" >&5
12738 cat conftest.$ac_ext >&5
12739 rm -rf conftest*
12740 fu_cv_sys_stat_statvfs=no
12742 rm -f conftest*
12745 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12746 if test $fu_cv_sys_stat_statvfs = yes; then
12747 space=yes
12748 cat >> confdefs.h <<\EOF
12749 #define STAT_STATVFS 1
12755 if test $space = no; then
12756 # DEC Alpha running OSF/1
12757 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12758 echo "configure:12759: checking for 3-argument statfs function (DEC OSF/1)" >&5
12759 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12760 echo $ac_n "(cached) $ac_c" 1>&6
12761 else
12762 if test "$cross_compiling" = yes; then
12763 fu_cv_sys_stat_statfs3_osf1=no
12764 else
12765 cat > conftest.$ac_ext <<EOF
12766 #line 12767 "configure"
12767 #include "confdefs.h"
12769 #include <sys/param.h>
12770 #include <sys/types.h>
12771 #include <sys/mount.h>
12772 main ()
12774 struct statfs fsd;
12775 fsd.f_fsize = 0;
12776 exit (statfs (".", &fsd, sizeof (struct statfs)));
12779 if { (eval echo configure:12780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12780 then
12781 fu_cv_sys_stat_statfs3_osf1=yes
12782 else
12783 echo "configure: failed program was:" >&5
12784 cat conftest.$ac_ext >&5
12785 rm -fr conftest*
12786 fu_cv_sys_stat_statfs3_osf1=no
12788 rm -fr conftest*
12793 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12794 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12795 space=yes
12796 cat >> confdefs.h <<\EOF
12797 #define STAT_STATFS3_OSF1 1
12803 if test $space = no; then
12804 # AIX
12805 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12806 echo "configure:12807: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12807 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12808 echo $ac_n "(cached) $ac_c" 1>&6
12809 else
12810 if test "$cross_compiling" = yes; then
12811 fu_cv_sys_stat_statfs2_bsize=no
12812 else
12813 cat > conftest.$ac_ext <<EOF
12814 #line 12815 "configure"
12815 #include "confdefs.h"
12817 #ifdef HAVE_SYS_PARAM_H
12818 #include <sys/param.h>
12819 #endif
12820 #ifdef HAVE_SYS_MOUNT_H
12821 #include <sys/mount.h>
12822 #endif
12823 #ifdef HAVE_SYS_VFS_H
12824 #include <sys/vfs.h>
12825 #endif
12826 main ()
12828 struct statfs fsd;
12829 fsd.f_bsize = 0;
12830 exit (statfs (".", &fsd));
12833 if { (eval echo configure:12834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12834 then
12835 fu_cv_sys_stat_statfs2_bsize=yes
12836 else
12837 echo "configure: failed program was:" >&5
12838 cat conftest.$ac_ext >&5
12839 rm -fr conftest*
12840 fu_cv_sys_stat_statfs2_bsize=no
12842 rm -fr conftest*
12847 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12848 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12849 space=yes
12850 cat >> confdefs.h <<\EOF
12851 #define STAT_STATFS2_BSIZE 1
12857 if test $space = no; then
12858 # SVR3
12859 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12860 echo "configure:12861: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12861 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12862 echo $ac_n "(cached) $ac_c" 1>&6
12863 else
12864 if test "$cross_compiling" = yes; then
12865 fu_cv_sys_stat_statfs4=no
12866 else
12867 cat > conftest.$ac_ext <<EOF
12868 #line 12869 "configure"
12869 #include "confdefs.h"
12870 #include <sys/types.h>
12871 #include <sys/statfs.h>
12872 main ()
12874 struct statfs fsd;
12875 exit (statfs (".", &fsd, sizeof fsd, 0));
12878 if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12879 then
12880 fu_cv_sys_stat_statfs4=yes
12881 else
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12884 rm -fr conftest*
12885 fu_cv_sys_stat_statfs4=no
12887 rm -fr conftest*
12892 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12893 if test $fu_cv_sys_stat_statfs4 = yes; then
12894 space=yes
12895 cat >> confdefs.h <<\EOF
12896 #define STAT_STATFS4 1
12902 if test $space = no; then
12903 # 4.4BSD and NetBSD
12904 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12905 echo "configure:12906: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12906 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12907 echo $ac_n "(cached) $ac_c" 1>&6
12908 else
12909 if test "$cross_compiling" = yes; then
12910 fu_cv_sys_stat_statfs2_fsize=no
12911 else
12912 cat > conftest.$ac_ext <<EOF
12913 #line 12914 "configure"
12914 #include "confdefs.h"
12915 #include <sys/types.h>
12916 #ifdef HAVE_SYS_PARAM_H
12917 #include <sys/param.h>
12918 #endif
12919 #ifdef HAVE_SYS_MOUNT_H
12920 #include <sys/mount.h>
12921 #endif
12922 main ()
12924 struct statfs fsd;
12925 fsd.f_fsize = 0;
12926 exit (statfs (".", &fsd));
12929 if { (eval echo configure:12930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12930 then
12931 fu_cv_sys_stat_statfs2_fsize=yes
12932 else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -fr conftest*
12936 fu_cv_sys_stat_statfs2_fsize=no
12938 rm -fr conftest*
12943 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12944 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12945 space=yes
12946 cat >> confdefs.h <<\EOF
12947 #define STAT_STATFS2_FSIZE 1
12953 if test $space = no; then
12954 # Ultrix
12955 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12956 echo "configure:12957: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12957 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12958 echo $ac_n "(cached) $ac_c" 1>&6
12959 else
12960 if test "$cross_compiling" = yes; then
12961 fu_cv_sys_stat_fs_data=no
12962 else
12963 cat > conftest.$ac_ext <<EOF
12964 #line 12965 "configure"
12965 #include "confdefs.h"
12966 #include <sys/types.h>
12967 #ifdef HAVE_SYS_PARAM_H
12968 #include <sys/param.h>
12969 #endif
12970 #ifdef HAVE_SYS_MOUNT_H
12971 #include <sys/mount.h>
12972 #endif
12973 #ifdef HAVE_SYS_FS_TYPES_H
12974 #include <sys/fs_types.h>
12975 #endif
12976 main ()
12978 struct fs_data fsd;
12979 /* Ultrix's statfs returns 1 for success,
12980 0 for not mounted, -1 for failure. */
12981 exit (statfs (".", &fsd) != 1);
12984 if { (eval echo configure:12985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12985 then
12986 fu_cv_sys_stat_fs_data=yes
12987 else
12988 echo "configure: failed program was:" >&5
12989 cat conftest.$ac_ext >&5
12990 rm -fr conftest*
12991 fu_cv_sys_stat_fs_data=no
12993 rm -fr conftest*
12998 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12999 if test $fu_cv_sys_stat_fs_data = yes; then
13000 space=yes
13001 cat >> confdefs.h <<\EOF
13002 #define STAT_STATFS2_FS_DATA 1
13009 # As a gating factor for large file support, in order to
13010 # use <4GB files we must have the following minimal support
13011 # available.
13012 # long long, and a 64 bit off_t or off64_t.
13013 # If we don't have all of these then disable large
13014 # file support.
13016 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
13017 echo "configure:13018: checking if large file support can be enabled" >&5
13018 cat > conftest.$ac_ext <<EOF
13019 #line 13020 "configure"
13020 #include "confdefs.h"
13022 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
13023 #include <sys/types.h>
13024 #else
13025 __COMPILE_ERROR_
13026 #endif
13028 int main() {
13029 int i
13030 ; return 0; }
13032 if { (eval echo configure:13033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13033 rm -rf conftest*
13034 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
13035 else
13036 echo "configure: failed program was:" >&5
13037 cat conftest.$ac_ext >&5
13038 rm -rf conftest*
13039 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
13041 rm -f conftest*
13042 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
13043 echo "$ac_t""yes" 1>&6
13044 cat >> confdefs.h <<\EOF
13045 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13048 else
13049 echo "$ac_t""no" 1>&6
13052 # Check whether --with-spinlocks or --without-spinlocks was given.
13053 if test "${with_spinlocks+set}" = set; then
13054 withval="$with_spinlocks"
13058 if test "x$with_spinlocks" = "xyes"; then
13059 cat >> confdefs.h <<\EOF
13060 #define USE_SPINLOCKS 1
13064 case "$host_cpu" in
13065 sparc)
13066 cat >> confdefs.h <<\EOF
13067 #define SPARC_SPINLOCKS 1
13072 i386|i486|i586|i686)
13073 cat >> confdefs.h <<\EOF
13074 #define INTEL_SPINLOCKS 1
13079 mips)
13080 cat >> confdefs.h <<\EOF
13081 #define MIPS_SPINLOCKS 1
13086 powerpc)
13087 cat >> confdefs.h <<\EOF
13088 #define POWERPC_SPINLOCKS 1
13092 esac
13095 #################################################
13096 # check for ACL support
13098 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13099 echo "configure:13100: checking whether to support ACLs" >&5
13100 # Check whether --with-acl-support or --without-acl-support was given.
13101 if test "${with_acl_support+set}" = set; then
13102 withval="$with_acl_support"
13103 case "$withval" in
13104 yes)
13106 case "$host_os" in
13107 *sysv5*)
13108 echo "$ac_t""Using UnixWare ACLs" 1>&6
13109 cat >> confdefs.h <<\EOF
13110 #define HAVE_UNIXWARE_ACLS 1
13114 *solaris*)
13115 echo "$ac_t""Using solaris ACLs" 1>&6
13116 cat >> confdefs.h <<\EOF
13117 #define HAVE_SOLARIS_ACLS 1
13121 *hpux*)
13122 echo "$ac_t""Using HPUX ACLs" 1>&6
13123 cat >> confdefs.h <<\EOF
13124 #define HAVE_HPUX_ACLS 1
13128 *irix*)
13129 echo "$ac_t""Using IRIX ACLs" 1>&6
13130 cat >> confdefs.h <<\EOF
13131 #define HAVE_IRIX_ACLS 1
13135 *aix*)
13136 echo "$ac_t""Using AIX ACLs" 1>&6
13137 cat >> confdefs.h <<\EOF
13138 #define HAVE_AIX_ACLS 1
13142 *osf*)
13143 echo "$ac_t""Using Tru64 ACLs" 1>&6
13144 cat >> confdefs.h <<\EOF
13145 #define HAVE_TRU64_ACLS 1
13148 LIBS="$LIBS -lpacl"
13151 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13152 echo "configure:13153: checking for acl_get_file in -lacl" >&5
13153 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13155 echo $ac_n "(cached) $ac_c" 1>&6
13156 else
13157 ac_save_LIBS="$LIBS"
13158 LIBS="-lacl $LIBS"
13159 cat > conftest.$ac_ext <<EOF
13160 #line 13161 "configure"
13161 #include "confdefs.h"
13162 /* Override any gcc2 internal prototype to avoid an error. */
13163 /* We use char because int might match the return type of a gcc2
13164 builtin and then its argument prototype would still apply. */
13165 char acl_get_file();
13167 int main() {
13168 acl_get_file()
13169 ; return 0; }
13171 if { (eval echo configure:13172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13172 rm -rf conftest*
13173 eval "ac_cv_lib_$ac_lib_var=yes"
13174 else
13175 echo "configure: failed program was:" >&5
13176 cat conftest.$ac_ext >&5
13177 rm -rf conftest*
13178 eval "ac_cv_lib_$ac_lib_var=no"
13180 rm -f conftest*
13181 LIBS="$ac_save_LIBS"
13184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13185 echo "$ac_t""yes" 1>&6
13186 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13187 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13188 cat >> confdefs.h <<EOF
13189 #define $ac_tr_lib 1
13192 LIBS="-lacl $LIBS"
13194 else
13195 echo "$ac_t""no" 1>&6
13198 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13199 echo "configure:13200: checking for ACL support" >&5
13200 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13202 else
13204 cat > conftest.$ac_ext <<EOF
13205 #line 13206 "configure"
13206 #include "confdefs.h"
13207 #include <sys/types.h>
13208 #include <sys/acl.h>
13209 int main() {
13210 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13211 ; return 0; }
13213 if { (eval echo configure:13214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13214 rm -rf conftest*
13215 samba_cv_HAVE_POSIX_ACLS=yes
13216 else
13217 echo "configure: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 rm -rf conftest*
13220 samba_cv_HAVE_POSIX_ACLS=no
13222 rm -f conftest*
13225 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13226 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13227 echo "$ac_t""Using posix ACLs" 1>&6
13228 cat >> confdefs.h <<\EOF
13229 #define HAVE_POSIX_ACLS 1
13232 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13233 echo "configure:13234: checking for acl_get_perm_np" >&5
13234 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13235 echo $ac_n "(cached) $ac_c" 1>&6
13236 else
13238 cat > conftest.$ac_ext <<EOF
13239 #line 13240 "configure"
13240 #include "confdefs.h"
13241 #include <sys/types.h>
13242 #include <sys/acl.h>
13243 int main() {
13244 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13245 ; return 0; }
13247 if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13248 rm -rf conftest*
13249 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13250 else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13253 rm -rf conftest*
13254 samba_cv_HAVE_ACL_GET_PERM_NP=no
13256 rm -f conftest*
13259 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13260 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13261 cat >> confdefs.h <<\EOF
13262 #define HAVE_ACL_GET_PERM_NP 1
13268 esac
13271 echo "$ac_t""no" 1>&6
13272 cat >> confdefs.h <<\EOF
13273 #define HAVE_NO_ACLS 1
13277 esac
13278 else
13279 cat >> confdefs.h <<\EOF
13280 #define HAVE_NO_ACLS 1
13283 echo "$ac_t""no" 1>&6
13288 #################################################
13289 # check for the historical SAMBA installation
13291 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13292 # Put all binaries under the /usr/local/samba/bin directory.
13293 sbindir="$bindir"
13296 #################################################
13297 # Check whether winbind is supported on this platform. If so we need to
13298 # build and install client programs (WINBIND_TARGETS), sbin programs
13299 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13301 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13302 echo "configure:13303: checking whether to build winbind" >&5
13304 # Initially, the value of $host_os decides whether winbind is supported
13306 case "$host_os" in
13307 *linux*|*irix*)
13308 HAVE_WINBIND=yes
13310 *solaris*)
13311 HAVE_WINBIND=yes
13312 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13313 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13315 *hpux11*)
13316 HAVE_WINBIND=yes
13317 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13319 *aix4*)
13320 HAVE_WINBIND=yes
13323 HAVE_WINBIND=no
13324 winbind_no_reason=", unsupported on $host_os"
13326 esac
13328 # Check the setting of --with-winbindd
13330 # Check whether --with-winbind or --without-winbind was given.
13331 if test "${with_winbind+set}" = set; then
13332 withval="$with_winbind"
13334 case "$withval" in
13335 yes)
13336 HAVE_WINBIND=yes
13339 HAVE_WINBIND=no
13340 winbind_reason=""
13342 esac
13346 # We need unix domain sockets for winbind
13348 if test x"$HAVE_WINBIND" = x"yes"; then
13349 if test x"$samba_cv_unixsocket" = x"no"; then
13350 winbind_no_reason=", no unix domain socket support on $host_os"
13351 HAVE_WINBIND=no
13355 # Display test results
13357 if test x"$HAVE_WINBIND" = x"yes"; then
13359 echo "$ac_t""yes" 1>&6
13361 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13362 echo "configure:13363: checking whether to enable winbind auth challenge/response code" >&5
13363 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13364 if test "${with_winbind_auth_challenge+set}" = set; then
13365 withval="$with_winbind_auth_challenge"
13367 case "$withval" in
13368 yes)
13369 cat >> confdefs.h <<\EOF
13370 #define WITH_WINBIND_AUTH_CRAP 1
13373 echo "$ac_t""yes" 1>&6
13376 echo "$ac_t""no" 1>&6
13378 esac
13379 else
13380 echo "$ac_t""no" 1>&6
13385 # Check for FreeBSD problem with getgroups
13387 WINBIND_TARGETS="bin/wbinfo"
13388 WINBIND_STARGETS="bin/winbindd"
13389 case "$host_os" in
13390 *irix*)
13391 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13394 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13396 esac
13399 case "$with_pam" in
13400 yes)
13401 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13403 esac
13404 else
13405 echo "$ac_t""no$winbind_no_reason" 1>&6
13407 WINBIND_TARGETS=""
13408 WINBIND_STARGETS=""
13409 WINBIND_LTARGETS=""
13410 WINBIND_PAM_TARGETS=""
13414 # Check for FreeBSD problem with getgroups
13415 # It returns EGID too many times in the list of groups
13416 # and causes a security problem
13417 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13418 echo "configure:13419: checking whether or not getgroups returns EGID too many times" >&5
13419 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13420 echo $ac_n "(cached) $ac_c" 1>&6
13421 else
13422 if test "$cross_compiling" = yes; then
13423 samba_cv_have_getgroups_too_many_egids=cross
13424 else
13425 cat > conftest.$ac_ext <<EOF
13426 #line 13427 "configure"
13427 #include "confdefs.h"
13429 #include <sys/types.h>
13430 #include <stdio.h>
13432 int main(int argc, char *argv[])
13434 gid_t groups[10];
13435 int n = 10;
13437 n = getgroups(n, &groups);
13438 /* Could actually pass back the number of EGIDs there ... */
13439 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13442 if { (eval echo configure:13443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13443 then
13444 samba_cv_have_getgroups_too_many_egids=no
13445 else
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -fr conftest*
13449 samba_cv_have_getgroups_too_many_egids=yes
13451 rm -fr conftest*
13456 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13457 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13458 cat >> confdefs.h <<\EOF
13459 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13464 # Substitution time!
13473 # Solaris has some extra fields in struct passwd that need to be
13474 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13475 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13476 # this.
13478 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13479 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13480 # [#include <pwd.h>])
13482 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13483 echo "configure:13484: checking whether struct passwd has pw_comment" >&5
13484 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13486 else
13488 cat > conftest.$ac_ext <<EOF
13489 #line 13490 "configure"
13490 #include "confdefs.h"
13491 #include <pwd.h>
13492 int main() {
13493 struct passwd p; p.pw_comment;
13494 ; return 0; }
13496 if { (eval echo configure:13497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13497 rm -rf conftest*
13498 samba_cv_passwd_pw_comment=yes
13499 else
13500 echo "configure: failed program was:" >&5
13501 cat conftest.$ac_ext >&5
13502 rm -rf conftest*
13503 samba_cv_passwd_pw_comment=no
13505 rm -f conftest*
13508 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13509 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13510 cat >> confdefs.h <<\EOF
13511 #define HAVE_PASSWD_PW_COMMENT 1
13516 #AC_CHECK_MEMBER(struct passwd.pw_age,
13517 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13518 # [#include <pwd.h>])
13520 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13521 echo "configure:13522: checking whether struct passwd has pw_age" >&5
13522 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13523 echo $ac_n "(cached) $ac_c" 1>&6
13524 else
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 #include <pwd.h>
13530 int main() {
13531 struct passwd p; p.pw_age;
13532 ; return 0; }
13534 if { (eval echo configure:13535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13535 rm -rf conftest*
13536 samba_cv_passwd_pw_age=yes
13537 else
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 rm -rf conftest*
13541 samba_cv_passwd_pw_age=no
13543 rm -f conftest*
13546 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13547 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13548 cat >> confdefs.h <<\EOF
13549 #define HAVE_PASSWD_PW_AGE 1
13554 #################################################
13555 # Check to see if we should use the included popt
13557 # Check whether --with-included-popt or --without-included-popt was given.
13558 if test "${with_included_popt+set}" = set; then
13559 withval="$with_included_popt"
13561 case "$withval" in
13562 yes)
13563 INCLUDED_POPT=yes
13566 INCLUDED_POPT=no
13568 esac
13571 if test x"$INCLUDED_POPT" != x"yes"; then
13572 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13573 echo "configure:13574: checking for poptGetContext in -lpopt" >&5
13574 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13575 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13576 echo $ac_n "(cached) $ac_c" 1>&6
13577 else
13578 ac_save_LIBS="$LIBS"
13579 LIBS="-lpopt $LIBS"
13580 cat > conftest.$ac_ext <<EOF
13581 #line 13582 "configure"
13582 #include "confdefs.h"
13583 /* Override any gcc2 internal prototype to avoid an error. */
13584 /* We use char because int might match the return type of a gcc2
13585 builtin and then its argument prototype would still apply. */
13586 char poptGetContext();
13588 int main() {
13589 poptGetContext()
13590 ; return 0; }
13592 if { (eval echo configure:13593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13593 rm -rf conftest*
13594 eval "ac_cv_lib_$ac_lib_var=yes"
13595 else
13596 echo "configure: failed program was:" >&5
13597 cat conftest.$ac_ext >&5
13598 rm -rf conftest*
13599 eval "ac_cv_lib_$ac_lib_var=no"
13601 rm -f conftest*
13602 LIBS="$ac_save_LIBS"
13605 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13606 echo "$ac_t""yes" 1>&6
13607 INCLUDED_POPT=no
13608 else
13609 echo "$ac_t""no" 1>&6
13610 INCLUDED_POPT=yes
13615 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13616 echo "configure:13617: checking whether to use included popt" >&5
13617 if test x"$INCLUDED_POPT" = x"yes"; then
13618 echo "$ac_t""$srcdir/popt" 1>&6
13619 BUILD_POPT='$(POPT_OBJS)'
13620 FLAGS1="-I$srcdir/popt"
13621 else
13622 echo "$ac_t""no" 1>&6
13623 LIBS="$LIBS -lpopt"
13628 #################################################
13629 # final configure stuff
13630 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13631 echo "configure:13632: checking configure summary" >&5
13632 if test "$cross_compiling" = yes; then
13633 echo "configure: warning: cannot run when cross-compiling" 1>&2
13634 else
13635 cat > conftest.$ac_ext <<EOF
13636 #line 13637 "configure"
13637 #include "confdefs.h"
13638 #include "${srcdir-.}/tests/summary.c"
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13641 then
13642 echo "$ac_t""yes" 1>&6
13643 else
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13646 rm -fr conftest*
13647 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13649 rm -fr conftest*
13653 builddir=`pwd`
13656 trap '' 1 2 15
13657 cat > confcache <<\EOF
13658 # This file is a shell script that caches the results of configure
13659 # tests run on this system so they can be shared between configure
13660 # scripts and configure runs. It is not useful on other systems.
13661 # If it contains results you don't want to keep, you may remove or edit it.
13663 # By default, configure uses ./config.cache as the cache file,
13664 # creating it if it does not exist already. You can give configure
13665 # the --cache-file=FILE option to use a different cache file; that is
13666 # what configure does when it calls configure scripts in
13667 # subdirectories, so they share the cache.
13668 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13669 # config.status only pays attention to the cache file if you give it the
13670 # --recheck option to rerun configure.
13673 # The following way of writing the cache mishandles newlines in values,
13674 # but we know of no workaround that is simple, portable, and efficient.
13675 # So, don't put newlines in cache variables' values.
13676 # Ultrix sh set writes to stderr and can't be redirected directly,
13677 # and sets the high bit in the cache file unless we assign to the vars.
13678 (set) 2>&1 |
13679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13680 *ac_space=\ *)
13681 # `set' does not quote correctly, so add quotes (double-quote substitution
13682 # turns \\\\ into \\, and sed turns \\ into \).
13683 sed -n \
13684 -e "s/'/'\\\\''/g" \
13685 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13688 # `set' quotes correctly as required by POSIX, so do not add quotes.
13689 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13691 esac >> confcache
13692 if cmp -s $cache_file confcache; then
13694 else
13695 if test -w $cache_file; then
13696 echo "updating cache $cache_file"
13697 cat confcache > $cache_file
13698 else
13699 echo "not updating unwritable cache $cache_file"
13702 rm -f confcache
13704 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13707 # Let make expand exec_prefix.
13708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13710 # Any assignment to VPATH causes Sun make to only execute
13711 # the first set of double-colon rules, so remove it if not needed.
13712 # If there is a colon in the path, we need to keep it.
13713 if test "x$srcdir" = x.; then
13714 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13717 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13719 DEFS=-DHAVE_CONFIG_H
13721 # Without the "./", some shells look in PATH for config.status.
13722 : ${CONFIG_STATUS=./config.status}
13724 echo creating $CONFIG_STATUS
13725 rm -f $CONFIG_STATUS
13726 cat > $CONFIG_STATUS <<EOF
13727 #! /bin/sh
13728 # Generated automatically by configure.
13729 # Run this file to recreate the current configuration.
13730 # This directory was configured as follows,
13731 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13733 # $0 $ac_configure_args
13735 # Compiler output produced by configure, useful for debugging
13736 # configure, is in ./config.log if it exists.
13738 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13739 for ac_option
13741 case "\$ac_option" in
13742 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13743 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13744 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13745 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13746 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13747 exit 0 ;;
13748 -help | --help | --hel | --he | --h)
13749 echo "\$ac_cs_usage"; exit 0 ;;
13750 *) echo "\$ac_cs_usage"; exit 1 ;;
13751 esac
13752 done
13754 ac_given_srcdir=$srcdir
13755 ac_given_INSTALL="$INSTALL"
13757 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13759 cat >> $CONFIG_STATUS <<EOF
13761 # Protect against being on the right side of a sed subst in config.status.
13762 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13763 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13764 $ac_vpsub
13765 $extrasub
13766 s%@SHELL@%$SHELL%g
13767 s%@CFLAGS@%$CFLAGS%g
13768 s%@CPPFLAGS@%$CPPFLAGS%g
13769 s%@CXXFLAGS@%$CXXFLAGS%g
13770 s%@FFLAGS@%$FFLAGS%g
13771 s%@DEFS@%$DEFS%g
13772 s%@LDFLAGS@%$LDFLAGS%g
13773 s%@LIBS@%$LIBS%g
13774 s%@exec_prefix@%$exec_prefix%g
13775 s%@prefix@%$prefix%g
13776 s%@program_transform_name@%$program_transform_name%g
13777 s%@bindir@%$bindir%g
13778 s%@sbindir@%$sbindir%g
13779 s%@libexecdir@%$libexecdir%g
13780 s%@datadir@%$datadir%g
13781 s%@sysconfdir@%$sysconfdir%g
13782 s%@sharedstatedir@%$sharedstatedir%g
13783 s%@localstatedir@%$localstatedir%g
13784 s%@libdir@%$libdir%g
13785 s%@includedir@%$includedir%g
13786 s%@oldincludedir@%$oldincludedir%g
13787 s%@infodir@%$infodir%g
13788 s%@mandir@%$mandir%g
13789 s%@codepagedir@%$codepagedir%g
13790 s%@configdir@%$configdir%g
13791 s%@lockdir@%$lockdir%g
13792 s%@piddir@%$piddir%g
13793 s%@logfilebase@%$logfilebase%g
13794 s%@privatedir@%$privatedir%g
13795 s%@swatdir@%$swatdir%g
13796 s%@RUNPROG@%$RUNPROG%g
13797 s%@MPROGS@%$MPROGS%g
13798 s%@LDSHFLAGS@%$LDSHFLAGS%g
13799 s%@SONAMEFLAG@%$SONAMEFLAG%g
13800 s%@SHLD@%$SHLD%g
13801 s%@HOST_OS@%$HOST_OS%g
13802 s%@PAM_MOD@%$PAM_MOD%g
13803 s%@PDBEDIT@%$PDBEDIT%g
13804 s%@WRAP@%$WRAP%g
13805 s%@WRAP32@%$WRAP32%g
13806 s%@WRAPPROG@%$WRAPPROG%g
13807 s%@PICFLAG@%$PICFLAG%g
13808 s%@PICSUFFIX@%$PICSUFFIX%g
13809 s%@SHLIBEXT@%$SHLIBEXT%g
13810 s%@BLDSHARED@%$BLDSHARED%g
13811 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13812 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13813 s%@CC@%$CC%g
13814 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13815 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13816 s%@INSTALL_DATA@%$INSTALL_DATA%g
13817 s%@AWK@%$AWK%g
13818 s%@passwd_program@%$passwd_program%g
13819 s%@BROKEN_CC@%$BROKEN_CC%g
13820 s%@host@%$host%g
13821 s%@host_alias@%$host_alias%g
13822 s%@host_cpu@%$host_cpu%g
13823 s%@host_vendor@%$host_vendor%g
13824 s%@host_os@%$host_os%g
13825 s%@target@%$target%g
13826 s%@target_alias@%$target_alias%g
13827 s%@target_cpu@%$target_cpu%g
13828 s%@target_vendor@%$target_vendor%g
13829 s%@target_os@%$target_os%g
13830 s%@build@%$build%g
13831 s%@build_alias@%$build_alias%g
13832 s%@build_cpu@%$build_cpu%g
13833 s%@build_vendor@%$build_vendor%g
13834 s%@build_os@%$build_os%g
13835 s%@CPP@%$CPP%g
13836 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13837 s%@LIBOBJS@%$LIBOBJS%g
13838 s%@TERMLIBS@%$TERMLIBS%g
13839 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13840 s%@ROFF@%$ROFF%g
13841 s%@DYNEXP@%$DYNEXP%g
13842 s%@LDAPLIBS@%$LDAPLIBS%g
13843 s%@QUOTAOBJS@%$QUOTAOBJS%g
13844 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13845 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13846 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13847 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13848 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13849 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13850 s%@BUILD_POPT@%$BUILD_POPT%g
13851 s%@FLAGS1@%$FLAGS1%g
13852 s%@builddir@%$builddir%g
13854 CEOF
13857 cat >> $CONFIG_STATUS <<\EOF
13859 # Split the substitutions into bite-sized pieces for seds with
13860 # small command number limits, like on Digital OSF/1 and HP-UX.
13861 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13862 ac_file=1 # Number of current file.
13863 ac_beg=1 # First line for current file.
13864 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13865 ac_more_lines=:
13866 ac_sed_cmds=""
13867 while $ac_more_lines; do
13868 if test $ac_beg -gt 1; then
13869 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13870 else
13871 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13873 if test ! -s conftest.s$ac_file; then
13874 ac_more_lines=false
13875 rm -f conftest.s$ac_file
13876 else
13877 if test -z "$ac_sed_cmds"; then
13878 ac_sed_cmds="sed -f conftest.s$ac_file"
13879 else
13880 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13882 ac_file=`expr $ac_file + 1`
13883 ac_beg=$ac_end
13884 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13886 done
13887 if test -z "$ac_sed_cmds"; then
13888 ac_sed_cmds=cat
13892 cat >> $CONFIG_STATUS <<EOF
13894 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13896 cat >> $CONFIG_STATUS <<\EOF
13897 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13899 case "$ac_file" in
13900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13902 *) ac_file_in="${ac_file}.in" ;;
13903 esac
13905 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13907 # Remove last slash and all that follows it. Not all systems have dirname.
13908 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13910 # The file is in a subdirectory.
13911 test ! -d "$ac_dir" && mkdir "$ac_dir"
13912 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13913 # A "../" for each directory in $ac_dir_suffix.
13914 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13915 else
13916 ac_dir_suffix= ac_dots=
13919 case "$ac_given_srcdir" in
13920 .) srcdir=.
13921 if test -z "$ac_dots"; then top_srcdir=.
13922 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13923 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13924 *) # Relative path.
13925 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13926 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13927 esac
13929 case "$ac_given_INSTALL" in
13930 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13931 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13932 esac
13934 echo creating "$ac_file"
13935 rm -f "$ac_file"
13936 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13937 case "$ac_file" in
13938 *Makefile*) ac_comsub="1i\\
13939 # $configure_input" ;;
13940 *) ac_comsub= ;;
13941 esac
13943 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13944 sed -e "$ac_comsub
13945 s%@configure_input@%$configure_input%g
13946 s%@srcdir@%$srcdir%g
13947 s%@top_srcdir@%$top_srcdir%g
13948 s%@INSTALL@%$INSTALL%g
13949 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13950 fi; done
13951 rm -f conftest.s*
13953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13956 # ac_d sets the value in "#define NAME VALUE" lines.
13957 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13958 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13959 ac_dC='\3'
13960 ac_dD='%g'
13961 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13962 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13963 ac_uB='\([ ]\)%\1#\2define\3'
13964 ac_uC=' '
13965 ac_uD='\4%g'
13966 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13967 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13968 ac_eB='$%\1#\2define\3'
13969 ac_eC=' '
13970 ac_eD='%g'
13972 if test "${CONFIG_HEADERS+set}" != set; then
13974 cat >> $CONFIG_STATUS <<EOF
13975 CONFIG_HEADERS="include/config.h"
13977 cat >> $CONFIG_STATUS <<\EOF
13979 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13981 case "$ac_file" in
13982 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13984 *) ac_file_in="${ac_file}.in" ;;
13985 esac
13987 echo creating $ac_file
13989 rm -f conftest.frag conftest.in conftest.out
13990 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13991 cat $ac_file_inputs > conftest.in
13995 # Transform confdefs.h into a sed script conftest.vals that substitutes
13996 # the proper values into config.h.in to produce config.h. And first:
13997 # Protect against being on the right side of a sed subst in config.status.
13998 # Protect against being in an unquoted here document in config.status.
13999 rm -f conftest.vals
14000 cat > conftest.hdr <<\EOF
14001 s/[\\&%]/\\&/g
14002 s%[\\$`]%\\&%g
14003 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14004 s%ac_d%ac_u%gp
14005 s%ac_u%ac_e%gp
14007 sed -n -f conftest.hdr confdefs.h > conftest.vals
14008 rm -f conftest.hdr
14010 # This sed command replaces #undef with comments. This is necessary, for
14011 # example, in the case of _POSIX_SOURCE, which is predefined and required
14012 # on some systems where configure will not decide to define it.
14013 cat >> conftest.vals <<\EOF
14014 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14017 # Break up conftest.vals because some shells have a limit on
14018 # the size of here documents, and old seds have small limits too.
14020 rm -f conftest.tail
14021 while :
14023 ac_lines=`grep -c . conftest.vals`
14024 # grep -c gives empty output for an empty file on some AIX systems.
14025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
14026 # Write a limited-size here document to conftest.frag.
14027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
14028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
14029 echo 'CEOF
14030 sed -f conftest.frag conftest.in > conftest.out
14031 rm -f conftest.in
14032 mv conftest.out conftest.in
14033 ' >> $CONFIG_STATUS
14034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14035 rm -f conftest.vals
14036 mv conftest.tail conftest.vals
14037 done
14038 rm -f conftest.vals
14040 cat >> $CONFIG_STATUS <<\EOF
14041 rm -f conftest.frag conftest.h
14042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
14043 cat conftest.in >> conftest.h
14044 rm -f conftest.in
14045 if cmp -s $ac_file conftest.h 2>/dev/null; then
14046 echo "$ac_file is unchanged"
14047 rm -f conftest.h
14048 else
14049 # Remove last slash and all that follows it. Not all systems have dirname.
14050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14052 # The file is in a subdirectory.
14053 test ! -d "$ac_dir" && mkdir "$ac_dir"
14055 rm -f $ac_file
14056 mv conftest.h $ac_file
14058 fi; done
14061 cat >> $CONFIG_STATUS <<EOF
14064 cat >> $CONFIG_STATUS <<\EOF
14066 exit 0
14068 chmod +x $CONFIG_STATUS
14069 rm -fr confdefs* $ac_clean_files
14070 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1