removed two unneeded files after Richard backed out these changes.
[Samba.git] / source / configure
blob3102a368489071216507fea43a04964fadac313e
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 main()
2918 FILE *f=fopen("conftestval", "w");
2919 if (!f) exit(1);
2920 fprintf(f, "%d\n", sizeof(int));
2921 exit(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 main()
2957 FILE *f=fopen("conftestval", "w");
2958 if (!f) exit(1);
2959 fprintf(f, "%d\n", sizeof(long));
2960 exit(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 main()
2996 FILE *f=fopen("conftestval", "w");
2997 if (!f) exit(1);
2998 fprintf(f, "%d\n", sizeof(short));
2999 exit(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 *bsd*) BLDSHARED="true"
8720 LDSHFLAGS="-shared"
8721 DYNEXP="-Wl,-Bdynamic"
8722 SONAMEFLAG="-Wl,-soname,"
8723 PICFLAG="-fPIC"
8724 cat >> confdefs.h <<\EOF
8725 #define STAT_ST_BLOCKSIZE 512
8729 *irix*) cat >> confdefs.h <<\EOF
8730 #define IRIX 1
8733 case "$host_os" in
8734 *irix6*) cat >> confdefs.h <<\EOF
8735 #define IRIX6 1
8739 esac
8740 ATTEMPT_WRAP32_BUILD=yes
8741 BLDSHARED="true"
8742 LDSHFLAGS="-set_version sgi1.0 -shared"
8743 SONAMEFLAG="-soname "
8744 SHLD="\${LD}"
8745 if test "${GCC}" = "yes"; then
8746 PICFLAG="-fPIC"
8747 else
8748 PICFLAG="-KPIC"
8750 cat >> confdefs.h <<\EOF
8751 #define STAT_ST_BLOCKSIZE 512
8755 *aix*) cat >> confdefs.h <<\EOF
8756 #define AIX 1
8759 BLDSHARED="true"
8760 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
8761 DYNEXP="-Wl,-brtl,-bexpall"
8762 if test "${GCC}" = "yes"; then
8763 PICFLAG="-O2"
8764 else
8765 PICFLAG="-O2 -qmaxmem=6000"
8766 ## for funky AIX compiler using strncpy()
8767 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT"
8770 cat >> confdefs.h <<\EOF
8771 #define STAT_ST_BLOCKSIZE DEV_BSIZE
8775 *hpux*) cat >> confdefs.h <<\EOF
8776 #define HPUX 1
8779 SHLIBEXT="sl"
8780 # Use special PIC flags for the native HP-UX compiler.
8781 if test $ac_cv_prog_cc_Ae = yes; then
8782 BLDSHARED="true"
8783 SHLD="/usr/bin/ld"
8784 LDSHFLAGS="-B symbolic -b -z"
8785 SONAMEFLAG="+h "
8786 PICFLAG="+z"
8788 DYNEXP="-Wl,-E"
8789 cat >> confdefs.h <<\EOF
8790 #define STAT_ST_BLOCKSIZE 8192
8794 *qnx*) cat >> confdefs.h <<\EOF
8795 #define QNX 1
8798 *osf*) cat >> confdefs.h <<\EOF
8799 #define OSF1 1
8802 BLDSHARED="true"
8803 LDSHFLAGS="-shared"
8804 SONAMEFLAG="-Wl,-soname,"
8805 PICFLAG="-fPIC"
8807 *sco*) cat >> confdefs.h <<\EOF
8808 #define SCO 1
8811 *unixware*) cat >> confdefs.h <<\EOF
8812 #define UNIXWARE 1
8815 BLDSHARED="true"
8816 LDSHFLAGS="-shared"
8817 SONAMEFLAG="-Wl,-soname,"
8818 PICFLAG="-KPIC"
8820 *next2*) cat >> confdefs.h <<\EOF
8821 #define NEXT2 1
8824 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
8825 set dummy groff; ac_word=$2
8826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8827 echo "configure:8828: checking for $ac_word" >&5
8828 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8830 else
8831 if test -n "$ROFF"; then
8832 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
8833 else
8834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8835 ac_dummy="$PATH"
8836 for ac_dir in $ac_dummy; do
8837 test -z "$ac_dir" && ac_dir=.
8838 if test -f $ac_dir/$ac_word; then
8839 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
8840 break
8842 done
8843 IFS="$ac_save_ifs"
8846 ROFF="$ac_cv_prog_ROFF"
8847 if test -n "$ROFF"; then
8848 echo "$ac_t""$ROFF" 1>&6
8849 else
8850 echo "$ac_t""no" 1>&6
8853 *sysv4*)
8854 case "$host" in
8855 *-univel-*) if test "$GCC" != yes ; then
8856 cat >> confdefs.h <<\EOF
8857 #define HAVE_MEMSET 1
8861 LDSHFLAGS="-G"
8862 DYNEXP="-Bexport"
8864 *mips-sni-sysv4*) cat >> confdefs.h <<\EOF
8865 #define RELIANTUNIX 1
8868 esac
8870 *sysv5*)
8871 if test "$GCC" != yes ; then
8872 cat >> confdefs.h <<\EOF
8873 #define HAVE_MEMSET 1
8877 LDSHFLAGS="-G"
8879 esac
8881 echo "$ac_t""$BLDSHARED" 1>&6
8882 echo $ac_n "checking linker flags for shared libraries""... $ac_c" 1>&6
8883 echo "configure:8884: checking linker flags for shared libraries" >&5
8884 echo "$ac_t""$LDSHFLAGS" 1>&6
8885 echo $ac_n "checking compiler flags for position-independent code""... $ac_c" 1>&6
8886 echo "configure:8887: checking compiler flags for position-independent code" >&5
8887 echo "$ac_t""$PICFLAGS" 1>&6
8889 # try to work out how to produce pic code with this compiler
8890 if test x$PICFLAG = x; then
8891 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
8892 echo "configure:8893: checking whether ${CC-cc} accepts -fpic" >&5
8893 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
8894 echo $ac_n "(cached) $ac_c" 1>&6
8895 else
8896 echo 'void f(){}' > conftest.c
8897 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
8898 ac_cv_prog_cc_fpic=yes
8899 else
8900 ac_cv_prog_cc_fpic=no
8902 rm -f conftest*
8906 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
8907 if test $ac_cv_prog_cc_fpic = yes; then
8908 PICFLAG="-fpic";
8911 if test x$PICFLAG = x; then
8912 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
8913 echo "configure:8914: checking whether ${CC-cc} accepts -KPIC" >&5
8914 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8916 else
8917 echo 'void f(){}' > conftest.c
8918 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
8919 ac_cv_prog_cc_KPIC=yes
8920 else
8921 ac_cv_prog_cc_KPIC=no
8923 rm -f conftest*
8927 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
8928 if test $ac_cv_prog_cc_KPIC = yes; then
8929 PICFLAG="-KPIC";
8932 if test x$PICFLAG = x; then
8933 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
8934 echo "configure:8935: checking whether ${CC-cc} accepts -Kpic" >&5
8935 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8937 else
8938 echo 'void f(){}' > conftest.c
8939 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
8940 ac_cv_prog_cc_Kpic=yes
8941 else
8942 ac_cv_prog_cc_Kpic=no
8944 rm -f conftest*
8948 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
8949 if test $ac_cv_prog_cc_Kpic = yes; then
8950 PICFLAG="-Kpic";
8954 ################
8956 echo $ac_n "checking for long long""... $ac_c" 1>&6
8957 echo "configure:8958: checking for long long" >&5
8958 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8960 else
8962 if test "$cross_compiling" = yes; then
8963 samba_cv_have_longlong=cross
8964 else
8965 cat > conftest.$ac_ext <<EOF
8966 #line 8967 "configure"
8967 #include "confdefs.h"
8968 #include <stdio.h>
8969 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
8971 if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8972 then
8973 samba_cv_have_longlong=yes
8974 else
8975 echo "configure: failed program was:" >&5
8976 cat conftest.$ac_ext >&5
8977 rm -fr conftest*
8978 samba_cv_have_longlong=no
8980 rm -fr conftest*
8985 echo "$ac_t""$samba_cv_have_longlong" 1>&6
8986 if test x"$samba_cv_have_longlong" = x"yes"; then
8987 cat >> confdefs.h <<\EOF
8988 #define HAVE_LONGLONG 1
8994 # Check if the compiler supports the LL prefix on long long integers.
8995 # AIX needs this.
8997 echo $ac_n "checking for LL suffix on long long integers""... $ac_c" 1>&6
8998 echo "configure:8999: checking for LL suffix on long long integers" >&5
8999 if eval "test \"`echo '$''{'samba_cv_compiler_supports_ll'+set}'`\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9001 else
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 #include <stdio.h>
9007 int main() {
9008 long long i = 0x8000000000LL
9009 ; return 0; }
9011 if { (eval echo configure:9012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9012 rm -rf conftest*
9013 samba_cv_compiler_supports_ll=yes
9014 else
9015 echo "configure: failed program was:" >&5
9016 cat conftest.$ac_ext >&5
9017 rm -rf conftest*
9018 samba_cv_compiler_supports_ll=no
9020 rm -f conftest*
9023 echo "$ac_t""$samba_cv_compiler_supports_ll" 1>&6
9024 if test x"$samba_cv_compiler_supports_ll" = x"yes"; then
9025 cat >> confdefs.h <<\EOF
9026 #define COMPILER_SUPPORTS_LL 1
9032 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
9033 echo "configure:9034: checking for 64 bit off_t" >&5
9034 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9036 else
9038 if test "$cross_compiling" = yes; then
9039 samba_cv_SIZEOF_OFF_T=cross
9040 else
9041 cat > conftest.$ac_ext <<EOF
9042 #line 9043 "configure"
9043 #include "confdefs.h"
9044 #include <stdio.h>
9045 #include <sys/stat.h>
9046 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
9048 if { (eval echo configure:9049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9049 then
9050 samba_cv_SIZEOF_OFF_T=yes
9051 else
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9054 rm -fr conftest*
9055 samba_cv_SIZEOF_OFF_T=no
9057 rm -fr conftest*
9062 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
9063 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
9064 cat >> confdefs.h <<\EOF
9065 #define SIZEOF_OFF_T 8
9070 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
9071 echo "configure:9072: checking for off64_t" >&5
9072 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9076 if test "$cross_compiling" = yes; then
9077 samba_cv_HAVE_OFF64_T=cross
9078 else
9079 cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9083 #if defined(HAVE_UNISTD_H)
9084 #include <unistd.h>
9085 #endif
9086 #include <stdio.h>
9087 #include <sys/stat.h>
9088 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9090 if { (eval echo configure:9091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9091 then
9092 samba_cv_HAVE_OFF64_T=yes
9093 else
9094 echo "configure: failed program was:" >&5
9095 cat conftest.$ac_ext >&5
9096 rm -fr conftest*
9097 samba_cv_HAVE_OFF64_T=no
9099 rm -fr conftest*
9104 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
9105 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
9106 cat >> confdefs.h <<\EOF
9107 #define HAVE_OFF64_T 1
9112 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
9113 echo "configure:9114: checking for 64 bit ino_t" >&5
9114 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9116 else
9118 if test "$cross_compiling" = yes; then
9119 samba_cv_SIZEOF_INO_T=cross
9120 else
9121 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure"
9123 #include "confdefs.h"
9124 #include <stdio.h>
9125 #include <sys/stat.h>
9126 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
9128 if { (eval echo configure:9129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9129 then
9130 samba_cv_SIZEOF_INO_T=yes
9131 else
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 rm -fr conftest*
9135 samba_cv_SIZEOF_INO_T=no
9137 rm -fr conftest*
9142 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
9143 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
9144 cat >> confdefs.h <<\EOF
9145 #define SIZEOF_INO_T 8
9150 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
9151 echo "configure:9152: checking for ino64_t" >&5
9152 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
9153 echo $ac_n "(cached) $ac_c" 1>&6
9154 else
9156 if test "$cross_compiling" = yes; then
9157 samba_cv_HAVE_INO64_T=cross
9158 else
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9163 #if defined(HAVE_UNISTD_H)
9164 #include <unistd.h>
9165 #endif
9166 #include <stdio.h>
9167 #include <sys/stat.h>
9168 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9171 then
9172 samba_cv_HAVE_INO64_T=yes
9173 else
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 rm -fr conftest*
9177 samba_cv_HAVE_INO64_T=no
9179 rm -fr conftest*
9184 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
9185 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
9186 cat >> confdefs.h <<\EOF
9187 #define HAVE_INO64_T 1
9192 echo $ac_n "checking for dev64_t""... $ac_c" 1>&6
9193 echo "configure:9194: checking for dev64_t" >&5
9194 if eval "test \"`echo '$''{'samba_cv_HAVE_DEV64_T'+set}'`\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9196 else
9198 if test "$cross_compiling" = yes; then
9199 samba_cv_HAVE_DEV64_T=cross
9200 else
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9205 #if defined(HAVE_UNISTD_H)
9206 #include <unistd.h>
9207 #endif
9208 #include <stdio.h>
9209 #include <sys/stat.h>
9210 main() { struct stat64 st; dev64_t s; if (sizeof(dev_t) == sizeof(dev64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
9212 if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9213 then
9214 samba_cv_HAVE_DEV64_T=yes
9215 else
9216 echo "configure: failed program was:" >&5
9217 cat conftest.$ac_ext >&5
9218 rm -fr conftest*
9219 samba_cv_HAVE_DEV64_T=no
9221 rm -fr conftest*
9226 echo "$ac_t""$samba_cv_HAVE_DEV64_T" 1>&6
9227 if test x"$samba_cv_HAVE_DEV64_T" = x"yes"; then
9228 cat >> confdefs.h <<\EOF
9229 #define HAVE_DEV64_T 1
9234 echo $ac_n "checking for struct dirent64""... $ac_c" 1>&6
9235 echo "configure:9236: checking for struct dirent64" >&5
9236 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_DIRENT64'+set}'`\" = set"; then
9237 echo $ac_n "(cached) $ac_c" 1>&6
9238 else
9240 cat > conftest.$ac_ext <<EOF
9241 #line 9242 "configure"
9242 #include "confdefs.h"
9244 #if defined(HAVE_UNISTD_H)
9245 #include <unistd.h>
9246 #endif
9247 #include <sys/types.h>
9248 #include <dirent.h>
9249 int main() {
9250 struct dirent64 de;
9251 ; return 0; }
9253 if { (eval echo configure:9254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9254 rm -rf conftest*
9255 samba_cv_HAVE_STRUCT_DIRENT64=yes
9256 else
9257 echo "configure: failed program was:" >&5
9258 cat conftest.$ac_ext >&5
9259 rm -rf conftest*
9260 samba_cv_HAVE_STRUCT_DIRENT64=no
9262 rm -f conftest*
9265 echo "$ac_t""$samba_cv_HAVE_STRUCT_DIRENT64" 1>&6
9266 if test x"$samba_cv_HAVE_STRUCT_DIRENT64" = x"yes" && test x"$ac_cv_func_readdir64" = x"yes"; then
9267 cat >> confdefs.h <<\EOF
9268 #define HAVE_STRUCT_DIRENT64 1
9273 echo $ac_n "checking for major macro""... $ac_c" 1>&6
9274 echo "configure:9275: checking for major macro" >&5
9275 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MAJOR_FN'+set}'`\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9277 else
9279 if test "$cross_compiling" = yes; then
9280 samba_cv_HAVE_DEVICE_MAJOR_FN=cross
9281 else
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9286 #if defined(HAVE_UNISTD_H)
9287 #include <unistd.h>
9288 #endif
9289 #include <sys/types.h>
9290 main() { dev_t dev; int i = major(dev); return 0; }
9292 if { (eval echo configure:9293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9293 then
9294 samba_cv_HAVE_DEVICE_MAJOR_FN=yes
9295 else
9296 echo "configure: failed program was:" >&5
9297 cat conftest.$ac_ext >&5
9298 rm -fr conftest*
9299 samba_cv_HAVE_DEVICE_MAJOR_FN=no
9301 rm -fr conftest*
9306 echo "$ac_t""$samba_cv_HAVE_DEVICE_MAJOR_FN" 1>&6
9307 if test x"$samba_cv_HAVE_DEVICE_MAJOR_FN" = x"yes"; then
9308 cat >> confdefs.h <<\EOF
9309 #define HAVE_DEVICE_MAJOR_FN 1
9314 echo $ac_n "checking for minor macro""... $ac_c" 1>&6
9315 echo "configure:9316: checking for minor macro" >&5
9316 if eval "test \"`echo '$''{'samba_cv_HAVE_DEVICE_MINOR_FN'+set}'`\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9318 else
9320 if test "$cross_compiling" = yes; then
9321 samba_cv_HAVE_DEVICE_MINOR_FN=cross
9322 else
9323 cat > conftest.$ac_ext <<EOF
9324 #line 9325 "configure"
9325 #include "confdefs.h"
9327 #if defined(HAVE_UNISTD_H)
9328 #include <unistd.h>
9329 #endif
9330 #include <sys/types.h>
9331 main() { dev_t dev; int i = minor(dev); return 0; }
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9334 then
9335 samba_cv_HAVE_DEVICE_MINOR_FN=yes
9336 else
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 rm -fr conftest*
9340 samba_cv_HAVE_DEVICE_MINOR_FN=no
9342 rm -fr conftest*
9347 echo "$ac_t""$samba_cv_HAVE_DEVICE_MINOR_FN" 1>&6
9348 if test x"$samba_cv_HAVE_DEVICE_MINOR_FN" = x"yes"; then
9349 cat >> confdefs.h <<\EOF
9350 #define HAVE_DEVICE_MINOR_FN 1
9355 echo $ac_n "checking for makedev macro""... $ac_c" 1>&6
9356 echo "configure:9357: checking for makedev macro" >&5
9357 if eval "test \"`echo '$''{'samba_cv_HAVE_MAKEDEV_FN'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9359 else
9361 if test "$cross_compiling" = yes; then
9362 samba_cv_HAVE_MAKEDEV_FN=cross
9363 else
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9368 #if defined(HAVE_UNISTD_H)
9369 #include <unistd.h>
9370 #endif
9371 #include <sys/types.h>
9372 main() { dev_t dev = makedev(1,2); return 0; }
9374 if { (eval echo configure:9375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9375 then
9376 samba_cv_HAVE_MAKEDEV_FN=yes
9377 else
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 rm -fr conftest*
9381 samba_cv_HAVE_MAKEDEV_FN=no
9383 rm -fr conftest*
9388 echo "$ac_t""$samba_cv_HAVE_MAKEDEV_FN" 1>&6
9389 if test x"$samba_cv_HAVE_MAKEDEV_FN" = x"yes"; then
9390 cat >> confdefs.h <<\EOF
9391 #define MAKEDEV_FN 1
9396 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
9397 echo "configure:9398: checking for unsigned char" >&5
9398 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400 else
9402 if test "$cross_compiling" = yes; then
9403 samba_cv_HAVE_UNSIGNED_CHAR=cross
9404 else
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 #include <stdio.h>
9409 main() { char c; c=250; exit((c > 0)?0:1); }
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9412 then
9413 samba_cv_HAVE_UNSIGNED_CHAR=yes
9414 else
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 rm -fr conftest*
9418 samba_cv_HAVE_UNSIGNED_CHAR=no
9420 rm -fr conftest*
9425 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
9426 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
9427 cat >> confdefs.h <<\EOF
9428 #define HAVE_UNSIGNED_CHAR 1
9433 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
9434 echo "configure:9435: checking for sin_len in sock" >&5
9435 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9437 else
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9442 #include <sys/types.h>
9443 #include <sys/socket.h>
9444 #include <netinet/in.h>
9445 int main() {
9446 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
9447 ; return 0; }
9449 if { (eval echo configure:9450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9450 rm -rf conftest*
9451 samba_cv_HAVE_SOCK_SIN_LEN=yes
9452 else
9453 echo "configure: failed program was:" >&5
9454 cat conftest.$ac_ext >&5
9455 rm -rf conftest*
9456 samba_cv_HAVE_SOCK_SIN_LEN=no
9458 rm -f conftest*
9461 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
9462 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
9463 cat >> confdefs.h <<\EOF
9464 #define HAVE_SOCK_SIN_LEN 1
9469 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
9470 echo "configure:9471: checking whether seekdir returns void" >&5
9471 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
9473 else
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 #include <sys/types.h>
9479 #include <dirent.h>
9480 void seekdir(DIR *d, long loc) { return; }
9481 int main() {
9482 return 0;
9483 ; return 0; }
9485 if { (eval echo configure:9486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9486 rm -rf conftest*
9487 samba_cv_SEEKDIR_RETURNS_VOID=yes
9488 else
9489 echo "configure: failed program was:" >&5
9490 cat conftest.$ac_ext >&5
9491 rm -rf conftest*
9492 samba_cv_SEEKDIR_RETURNS_VOID=no
9494 rm -f conftest*
9497 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
9498 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
9499 cat >> confdefs.h <<\EOF
9500 #define SEEKDIR_RETURNS_VOID 1
9505 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
9506 echo "configure:9507: checking for __FILE__ macro" >&5
9507 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9509 else
9511 cat > conftest.$ac_ext <<EOF
9512 #line 9513 "configure"
9513 #include "confdefs.h"
9514 #include <stdio.h>
9515 int main() {
9516 printf("%s\n", __FILE__);
9517 ; return 0; }
9519 if { (eval echo configure:9520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9520 rm -rf conftest*
9521 samba_cv_HAVE_FILE_MACRO=yes
9522 else
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 rm -rf conftest*
9526 samba_cv_HAVE_FILE_MACRO=no
9528 rm -f conftest*
9531 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
9532 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
9533 cat >> confdefs.h <<\EOF
9534 #define HAVE_FILE_MACRO 1
9539 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
9540 echo "configure:9541: checking for __FUNCTION__ macro" >&5
9541 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9543 else
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <stdio.h>
9549 int main() {
9550 printf("%s\n", __FUNCTION__);
9551 ; return 0; }
9553 if { (eval echo configure:9554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9554 rm -rf conftest*
9555 samba_cv_HAVE_FUNCTION_MACRO=yes
9556 else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 samba_cv_HAVE_FUNCTION_MACRO=no
9562 rm -f conftest*
9565 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
9566 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
9567 cat >> confdefs.h <<\EOF
9568 #define HAVE_FUNCTION_MACRO 1
9573 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
9574 echo "configure:9575: checking if gettimeofday takes tz argument" >&5
9575 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
9576 echo $ac_n "(cached) $ac_c" 1>&6
9577 else
9579 if test "$cross_compiling" = yes; then
9580 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
9581 else
9582 cat > conftest.$ac_ext <<EOF
9583 #line 9584 "configure"
9584 #include "confdefs.h"
9586 #include <sys/time.h>
9587 #include <unistd.h>
9588 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9591 then
9592 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
9593 else
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9596 rm -fr conftest*
9597 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
9599 rm -fr conftest*
9604 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
9605 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
9606 cat >> confdefs.h <<\EOF
9607 #define HAVE_GETTIMEOFDAY_TZ 1
9612 echo $ac_n "checking for __va_copy""... $ac_c" 1>&6
9613 echo "configure:9614: checking for __va_copy" >&5
9614 if eval "test \"`echo '$''{'samba_cv_HAVE_VA_COPY'+set}'`\" = set"; then
9615 echo $ac_n "(cached) $ac_c" 1>&6
9616 else
9618 cat > conftest.$ac_ext <<EOF
9619 #line 9620 "configure"
9620 #include "confdefs.h"
9621 #include <stdarg.h>
9622 va_list ap1,ap2;
9623 int main() {
9624 __va_copy(ap1,ap2);
9625 ; return 0; }
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9628 rm -rf conftest*
9629 samba_cv_HAVE_VA_COPY=yes
9630 else
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9633 rm -rf conftest*
9634 samba_cv_HAVE_VA_COPY=no
9636 rm -f conftest*
9639 echo "$ac_t""$samba_cv_HAVE_VA_COPY" 1>&6
9640 if test x"$samba_cv_HAVE_VA_COPY" = x"yes"; then
9641 cat >> confdefs.h <<\EOF
9642 #define HAVE_VA_COPY 1
9647 echo $ac_n "checking for C99 vsnprintf""... $ac_c" 1>&6
9648 echo "configure:9649: checking for C99 vsnprintf" >&5
9649 if eval "test \"`echo '$''{'samba_cv_HAVE_C99_VSNPRINTF'+set}'`\" = set"; then
9650 echo $ac_n "(cached) $ac_c" 1>&6
9651 else
9653 if test "$cross_compiling" = yes; then
9654 samba_cv_HAVE_C99_VSNPRINTF=cross
9655 else
9656 cat > conftest.$ac_ext <<EOF
9657 #line 9658 "configure"
9658 #include "confdefs.h"
9660 #include <sys/types.h>
9661 #include <stdarg.h>
9662 void foo(const char *format, ...) {
9663 va_list ap;
9664 int len;
9665 char buf[5];
9667 va_start(ap, format);
9668 len = vsnprintf(buf, 0, format, ap);
9669 va_end(ap);
9670 if (len != 5) exit(1);
9672 va_start(ap, format);
9673 len = vsnprintf(0, 0, format, ap);
9674 va_end(ap);
9675 if (len != 5) exit(1);
9677 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
9679 exit(0);
9681 main() { foo("hello"); }
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9685 then
9686 samba_cv_HAVE_C99_VSNPRINTF=yes
9687 else
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -fr conftest*
9691 samba_cv_HAVE_C99_VSNPRINTF=no
9693 rm -fr conftest*
9698 echo "$ac_t""$samba_cv_HAVE_C99_VSNPRINTF" 1>&6
9699 if test x"$samba_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
9700 cat >> confdefs.h <<\EOF
9701 #define HAVE_C99_VSNPRINTF 1
9706 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
9707 echo "configure:9708: checking for broken readdir" >&5
9708 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
9709 echo $ac_n "(cached) $ac_c" 1>&6
9710 else
9712 if test "$cross_compiling" = yes; then
9713 samba_cv_HAVE_BROKEN_READDIR=cross
9714 else
9715 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure"
9717 #include "confdefs.h"
9718 #include <sys/types.h>
9719 #include <dirent.h>
9720 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
9721 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
9722 di->d_name[0] == 0) exit(0); exit(1);}
9724 if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9725 then
9726 samba_cv_HAVE_BROKEN_READDIR=yes
9727 else
9728 echo "configure: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9730 rm -fr conftest*
9731 samba_cv_HAVE_BROKEN_READDIR=no
9733 rm -fr conftest*
9738 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
9739 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
9740 cat >> confdefs.h <<\EOF
9741 #define HAVE_BROKEN_READDIR 1
9746 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
9747 echo "configure:9748: checking for utimbuf" >&5
9748 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750 else
9752 cat > conftest.$ac_ext <<EOF
9753 #line 9754 "configure"
9754 #include "confdefs.h"
9755 #include <sys/types.h>
9756 #include <utime.h>
9757 int main() {
9758 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
9759 ; return 0; }
9761 if { (eval echo configure:9762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9762 rm -rf conftest*
9763 samba_cv_HAVE_UTIMBUF=yes
9764 else
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 rm -rf conftest*
9768 samba_cv_HAVE_UTIMBUF=no
9770 rm -f conftest*
9773 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
9774 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
9775 cat >> confdefs.h <<\EOF
9776 #define HAVE_UTIMBUF 1
9782 for ac_func in pututline pututxline updwtmp updwtmpx getutmpx
9784 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9785 echo "configure:9786: checking for $ac_func" >&5
9786 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
9788 else
9789 cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure"
9791 #include "confdefs.h"
9792 /* System header to define __stub macros and hopefully few prototypes,
9793 which can conflict with char $ac_func(); below. */
9794 #include <assert.h>
9795 /* Override any gcc2 internal prototype to avoid an error. */
9796 /* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9798 char $ac_func();
9800 int main() {
9802 /* The GNU C library defines this for functions which it implements
9803 to always fail with ENOSYS. Some functions are actually named
9804 something starting with __ and the normal name is an alias. */
9805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9806 choke me
9807 #else
9808 $ac_func();
9809 #endif
9811 ; return 0; }
9813 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9814 rm -rf conftest*
9815 eval "ac_cv_func_$ac_func=yes"
9816 else
9817 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5
9819 rm -rf conftest*
9820 eval "ac_cv_func_$ac_func=no"
9822 rm -f conftest*
9825 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9826 echo "$ac_t""yes" 1>&6
9827 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9828 cat >> confdefs.h <<EOF
9829 #define $ac_tr_func 1
9832 else
9833 echo "$ac_t""no" 1>&6
9835 done
9838 echo $ac_n "checking for ut_name in utmp""... $ac_c" 1>&6
9839 echo "configure:9840: checking for ut_name in utmp" >&5
9840 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_NAME'+set}'`\" = set"; then
9841 echo $ac_n "(cached) $ac_c" 1>&6
9842 else
9844 cat > conftest.$ac_ext <<EOF
9845 #line 9846 "configure"
9846 #include "confdefs.h"
9847 #include <sys/types.h>
9848 #include <utmp.h>
9849 int main() {
9850 struct utmp ut; ut.ut_name[0] = 'a';
9851 ; return 0; }
9853 if { (eval echo configure:9854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9854 rm -rf conftest*
9855 samba_cv_HAVE_UT_UT_NAME=yes
9856 else
9857 echo "configure: failed program was:" >&5
9858 cat conftest.$ac_ext >&5
9859 rm -rf conftest*
9860 samba_cv_HAVE_UT_UT_NAME=no
9862 rm -f conftest*
9865 echo "$ac_t""$samba_cv_HAVE_UT_UT_NAME" 1>&6
9866 if test x"$samba_cv_HAVE_UT_UT_NAME" = x"yes"; then
9867 cat >> confdefs.h <<\EOF
9868 #define HAVE_UT_UT_NAME 1
9873 echo $ac_n "checking for ut_user in utmp""... $ac_c" 1>&6
9874 echo "configure:9875: checking for ut_user in utmp" >&5
9875 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_USER'+set}'`\" = set"; then
9876 echo $ac_n "(cached) $ac_c" 1>&6
9877 else
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9882 #include <sys/types.h>
9883 #include <utmp.h>
9884 int main() {
9885 struct utmp ut; ut.ut_user[0] = 'a';
9886 ; return 0; }
9888 if { (eval echo configure:9889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9889 rm -rf conftest*
9890 samba_cv_HAVE_UT_UT_USER=yes
9891 else
9892 echo "configure: failed program was:" >&5
9893 cat conftest.$ac_ext >&5
9894 rm -rf conftest*
9895 samba_cv_HAVE_UT_UT_USER=no
9897 rm -f conftest*
9900 echo "$ac_t""$samba_cv_HAVE_UT_UT_USER" 1>&6
9901 if test x"$samba_cv_HAVE_UT_UT_USER" = x"yes"; then
9902 cat >> confdefs.h <<\EOF
9903 #define HAVE_UT_UT_USER 1
9908 echo $ac_n "checking for ut_id in utmp""... $ac_c" 1>&6
9909 echo "configure:9910: checking for ut_id in utmp" >&5
9910 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ID'+set}'`\" = set"; then
9911 echo $ac_n "(cached) $ac_c" 1>&6
9912 else
9914 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure"
9916 #include "confdefs.h"
9917 #include <sys/types.h>
9918 #include <utmp.h>
9919 int main() {
9920 struct utmp ut; ut.ut_id[0] = 'a';
9921 ; return 0; }
9923 if { (eval echo configure:9924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9924 rm -rf conftest*
9925 samba_cv_HAVE_UT_UT_ID=yes
9926 else
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9929 rm -rf conftest*
9930 samba_cv_HAVE_UT_UT_ID=no
9932 rm -f conftest*
9935 echo "$ac_t""$samba_cv_HAVE_UT_UT_ID" 1>&6
9936 if test x"$samba_cv_HAVE_UT_UT_ID" = x"yes"; then
9937 cat >> confdefs.h <<\EOF
9938 #define HAVE_UT_UT_ID 1
9943 echo $ac_n "checking for ut_host in utmp""... $ac_c" 1>&6
9944 echo "configure:9945: checking for ut_host in utmp" >&5
9945 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_HOST'+set}'`\" = set"; then
9946 echo $ac_n "(cached) $ac_c" 1>&6
9947 else
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 #include <sys/types.h>
9953 #include <utmp.h>
9954 int main() {
9955 struct utmp ut; ut.ut_host[0] = 'a';
9956 ; return 0; }
9958 if { (eval echo configure:9959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9959 rm -rf conftest*
9960 samba_cv_HAVE_UT_UT_HOST=yes
9961 else
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9964 rm -rf conftest*
9965 samba_cv_HAVE_UT_UT_HOST=no
9967 rm -f conftest*
9970 echo "$ac_t""$samba_cv_HAVE_UT_UT_HOST" 1>&6
9971 if test x"$samba_cv_HAVE_UT_UT_HOST" = x"yes"; then
9972 cat >> confdefs.h <<\EOF
9973 #define HAVE_UT_UT_HOST 1
9978 echo $ac_n "checking for ut_time in utmp""... $ac_c" 1>&6
9979 echo "configure:9980: checking for ut_time in utmp" >&5
9980 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TIME'+set}'`\" = set"; then
9981 echo $ac_n "(cached) $ac_c" 1>&6
9982 else
9984 cat > conftest.$ac_ext <<EOF
9985 #line 9986 "configure"
9986 #include "confdefs.h"
9987 #include <sys/types.h>
9988 #include <utmp.h>
9989 int main() {
9990 struct utmp ut; time_t t; ut.ut_time = t;
9991 ; return 0; }
9993 if { (eval echo configure:9994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9994 rm -rf conftest*
9995 samba_cv_HAVE_UT_UT_TIME=yes
9996 else
9997 echo "configure: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
9999 rm -rf conftest*
10000 samba_cv_HAVE_UT_UT_TIME=no
10002 rm -f conftest*
10005 echo "$ac_t""$samba_cv_HAVE_UT_UT_TIME" 1>&6
10006 if test x"$samba_cv_HAVE_UT_UT_TIME" = x"yes"; then
10007 cat >> confdefs.h <<\EOF
10008 #define HAVE_UT_UT_TIME 1
10013 echo $ac_n "checking for ut_tv in utmp""... $ac_c" 1>&6
10014 echo "configure:10015: checking for ut_tv in utmp" >&5
10015 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TV'+set}'`\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10017 else
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 #include <sys/types.h>
10023 #include <utmp.h>
10024 int main() {
10025 struct utmp ut; struct timeval tv; ut.ut_tv = tv;
10026 ; return 0; }
10028 if { (eval echo configure:10029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10029 rm -rf conftest*
10030 samba_cv_HAVE_UT_UT_TV=yes
10031 else
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10034 rm -rf conftest*
10035 samba_cv_HAVE_UT_UT_TV=no
10037 rm -f conftest*
10040 echo "$ac_t""$samba_cv_HAVE_UT_UT_TV" 1>&6
10041 if test x"$samba_cv_HAVE_UT_UT_TV" = x"yes"; then
10042 cat >> confdefs.h <<\EOF
10043 #define HAVE_UT_UT_TV 1
10048 echo $ac_n "checking for ut_type in utmp""... $ac_c" 1>&6
10049 echo "configure:10050: checking for ut_type in utmp" >&5
10050 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_TYPE'+set}'`\" = set"; then
10051 echo $ac_n "(cached) $ac_c" 1>&6
10052 else
10054 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure"
10056 #include "confdefs.h"
10057 #include <sys/types.h>
10058 #include <utmp.h>
10059 int main() {
10060 struct utmp ut; ut.ut_type = 0;
10061 ; return 0; }
10063 if { (eval echo configure:10064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10064 rm -rf conftest*
10065 samba_cv_HAVE_UT_UT_TYPE=yes
10066 else
10067 echo "configure: failed program was:" >&5
10068 cat conftest.$ac_ext >&5
10069 rm -rf conftest*
10070 samba_cv_HAVE_UT_UT_TYPE=no
10072 rm -f conftest*
10075 echo "$ac_t""$samba_cv_HAVE_UT_UT_TYPE" 1>&6
10076 if test x"$samba_cv_HAVE_UT_UT_TYPE" = x"yes"; then
10077 cat >> confdefs.h <<\EOF
10078 #define HAVE_UT_UT_TYPE 1
10083 echo $ac_n "checking for ut_pid in utmp""... $ac_c" 1>&6
10084 echo "configure:10085: checking for ut_pid in utmp" >&5
10085 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_PID'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10089 cat > conftest.$ac_ext <<EOF
10090 #line 10091 "configure"
10091 #include "confdefs.h"
10092 #include <sys/types.h>
10093 #include <utmp.h>
10094 int main() {
10095 struct utmp ut; ut.ut_pid = 0;
10096 ; return 0; }
10098 if { (eval echo configure:10099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10099 rm -rf conftest*
10100 samba_cv_HAVE_UT_UT_PID=yes
10101 else
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 rm -rf conftest*
10105 samba_cv_HAVE_UT_UT_PID=no
10107 rm -f conftest*
10110 echo "$ac_t""$samba_cv_HAVE_UT_UT_PID" 1>&6
10111 if test x"$samba_cv_HAVE_UT_UT_PID" = x"yes"; then
10112 cat >> confdefs.h <<\EOF
10113 #define HAVE_UT_UT_PID 1
10118 echo $ac_n "checking for ut_exit in utmp""... $ac_c" 1>&6
10119 echo "configure:10120: checking for ut_exit in utmp" >&5
10120 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_EXIT'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10124 cat > conftest.$ac_ext <<EOF
10125 #line 10126 "configure"
10126 #include "confdefs.h"
10127 #include <sys/types.h>
10128 #include <utmp.h>
10129 int main() {
10130 struct utmp ut; ut.ut_exit.e_exit = 0;
10131 ; return 0; }
10133 if { (eval echo configure:10134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10134 rm -rf conftest*
10135 samba_cv_HAVE_UT_UT_EXIT=yes
10136 else
10137 echo "configure: failed program was:" >&5
10138 cat conftest.$ac_ext >&5
10139 rm -rf conftest*
10140 samba_cv_HAVE_UT_UT_EXIT=no
10142 rm -f conftest*
10145 echo "$ac_t""$samba_cv_HAVE_UT_UT_EXIT" 1>&6
10146 if test x"$samba_cv_HAVE_UT_UT_EXIT" = x"yes"; then
10147 cat >> confdefs.h <<\EOF
10148 #define HAVE_UT_UT_EXIT 1
10153 echo $ac_n "checking for ut_addr in utmp""... $ac_c" 1>&6
10154 echo "configure:10155: checking for ut_addr in utmp" >&5
10155 if eval "test \"`echo '$''{'samba_cv_HAVE_UT_UT_ADDR'+set}'`\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10157 else
10159 cat > conftest.$ac_ext <<EOF
10160 #line 10161 "configure"
10161 #include "confdefs.h"
10162 #include <sys/types.h>
10163 #include <utmp.h>
10164 int main() {
10165 struct utmp ut; ut.ut_addr = 0;
10166 ; return 0; }
10168 if { (eval echo configure:10169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10169 rm -rf conftest*
10170 samba_cv_HAVE_UT_UT_ADDR=yes
10171 else
10172 echo "configure: failed program was:" >&5
10173 cat conftest.$ac_ext >&5
10174 rm -rf conftest*
10175 samba_cv_HAVE_UT_UT_ADDR=no
10177 rm -f conftest*
10180 echo "$ac_t""$samba_cv_HAVE_UT_UT_ADDR" 1>&6
10181 if test x"$samba_cv_HAVE_UT_UT_ADDR" = x"yes"; then
10182 cat >> confdefs.h <<\EOF
10183 #define HAVE_UT_UT_ADDR 1
10188 if test x$ac_cv_func_pututline = xyes ; then
10189 echo $ac_n "checking whether pututline returns pointer""... $ac_c" 1>&6
10190 echo "configure:10191: checking whether pututline returns pointer" >&5
10191 if eval "test \"`echo '$''{'samba_cv_PUTUTLINE_RETURNS_UTMP'+set}'`\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10193 else
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10197 "configure"
10197 #include "confdefs.h"
10198 #include <sys/types.h>
10199 #include <utmp.h>
10200 int main() {
10201 struct utmp utarg; struct utmp *utreturn; utreturn = pututline(&utarg);
10202 ; return 0; }
10204 if { (eval echo configure:10205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10205 rm -rf conftest*
10206 samba_cv_PUTUTLINE_RETURNS_UTMP=yes
10207 else
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 rm -rf conftest*
10211 samba_cv_PUTUTLINE_RETURNS_UTMP=no
10213 rm -f conftest*
10216 echo "$ac_t""$samba_cv_PUTUTLINE_RETURNS_UTMP" 1>&6
10217 if test x"$samba_cv_PUTUTLINE_RETURNS_UTMP" = x"yes"; then
10218 cat >> confdefs.h <<\EOF
10219 #define PUTUTLINE_RETURNS_UTMP 1
10225 echo $ac_n "checking for ut_syslen in utmpx""... $ac_c" 1>&6
10226 echo "configure:10227: checking for ut_syslen in utmpx" >&5
10227 if eval "test \"`echo '$''{'samba_cv_HAVE_UX_UT_SYSLEN'+set}'`\" = set"; then
10228 echo $ac_n "(cached) $ac_c" 1>&6
10229 else
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 #include <sys/types.h>
10235 #include <utmpx.h>
10236 int main() {
10237 struct utmpx ux; ux.ut_syslen = 0;
10238 ; return 0; }
10240 if { (eval echo configure:10241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10241 rm -rf conftest*
10242 samba_cv_HAVE_UX_UT_SYSLEN=yes
10243 else
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10246 rm -rf conftest*
10247 samba_cv_HAVE_UX_UT_SYSLEN=no
10249 rm -f conftest*
10252 echo "$ac_t""$samba_cv_HAVE_UX_UT_SYSLEN" 1>&6
10253 if test x"$samba_cv_HAVE_UX_UT_SYSLEN" = x"yes"; then
10254 cat >> confdefs.h <<\EOF
10255 #define HAVE_UX_UT_SYSLEN 1
10260 echo $ac_n "checking for Linux kernel oplocks""... $ac_c" 1>&6
10261 echo "configure:10262: checking for Linux kernel oplocks" >&5
10262 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_LINUX'+set}'`\" = set"; then
10263 echo $ac_n "(cached) $ac_c" 1>&6
10264 else
10266 if test "$cross_compiling" = yes; then
10267 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross
10268 else
10269 cat > conftest.$ac_ext <<EOF
10270 #line 10271 "configure"
10271 #include "confdefs.h"
10273 #include <sys/types.h>
10274 #include <fcntl.h>
10275 #ifndef F_GETLEASE
10276 #define F_GETLEASE 1025
10277 #endif
10278 main() {
10279 int fd = open("/dev/null", O_RDONLY);
10280 return fcntl(fd, F_GETLEASE, 0) == -1;
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10285 then
10286 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes
10287 else
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10290 rm -fr conftest*
10291 samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no
10293 rm -fr conftest*
10298 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" 1>&6
10299 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then
10300 cat >> confdefs.h <<\EOF
10301 #define HAVE_KERNEL_OPLOCKS_LINUX 1
10306 echo $ac_n "checking for kernel change notify support""... $ac_c" 1>&6
10307 echo "configure:10308: checking for kernel change notify support" >&5
10308 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_CHANGE_NOTIFY'+set}'`\" = set"; then
10309 echo $ac_n "(cached) $ac_c" 1>&6
10310 else
10312 if test "$cross_compiling" = yes; then
10313 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=cross
10314 else
10315 cat > conftest.$ac_ext <<EOF
10316 #line 10317 "configure"
10317 #include "confdefs.h"
10319 #include <sys/types.h>
10320 #include <fcntl.h>
10321 #include <signal.h>
10322 #ifndef F_NOTIFY
10323 #define F_NOTIFY 1026
10324 #endif
10325 main() {
10326 exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0);
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10331 then
10332 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=yes
10333 else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -fr conftest*
10337 samba_cv_HAVE_KERNEL_CHANGE_NOTIFY=no
10339 rm -fr conftest*
10344 echo "$ac_t""$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" 1>&6
10345 if test x"$samba_cv_HAVE_KERNEL_CHANGE_NOTIFY" = x"yes" && test x"$target_cpu" != x"s390"; then
10346 cat >> confdefs.h <<\EOF
10347 #define HAVE_KERNEL_CHANGE_NOTIFY 1
10352 echo $ac_n "checking for kernel share modes""... $ac_c" 1>&6
10353 echo "configure:10354: checking for kernel share modes" >&5
10354 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_SHARE_MODES'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10356 else
10358 if test "$cross_compiling" = yes; then
10359 samba_cv_HAVE_KERNEL_SHARE_MODES=cross
10360 else
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10365 #include <sys/types.h>
10366 #include <fcntl.h>
10367 #include <signal.h>
10368 #include <sys/file.h>
10369 #ifndef LOCK_MAND
10370 #define LOCK_MAND 32
10371 #define LOCK_READ 64
10372 #endif
10373 main() {
10374 exit(flock(open("/dev/null", O_RDWR), LOCK_MAND|LOCK_READ) != 0);
10378 if { (eval echo configure:10379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10379 then
10380 samba_cv_HAVE_KERNEL_SHARE_MODES=yes
10381 else
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10384 rm -fr conftest*
10385 samba_cv_HAVE_KERNEL_SHARE_MODES=no
10387 rm -fr conftest*
10392 echo "$ac_t""$samba_cv_HAVE_KERNEL_SHARE_MODES" 1>&6
10393 if test x"$samba_cv_HAVE_KERNEL_SHARE_MODES" = x"yes"; then
10394 cat >> confdefs.h <<\EOF
10395 #define HAVE_KERNEL_SHARE_MODES 1
10403 echo $ac_n "checking for IRIX kernel oplock type definitions""... $ac_c" 1>&6
10404 echo "configure:10405: checking for IRIX kernel oplock type definitions" >&5
10405 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS_IRIX'+set}'`\" = set"; then
10406 echo $ac_n "(cached) $ac_c" 1>&6
10407 else
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412 #include <sys/types.h>
10413 #include <fcntl.h>
10414 int main() {
10415 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
10416 ; return 0; }
10418 if { (eval echo configure:10419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10419 rm -rf conftest*
10420 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=yes
10421 else
10422 echo "configure: failed program was:" >&5
10423 cat conftest.$ac_ext >&5
10424 rm -rf conftest*
10425 samba_cv_HAVE_KERNEL_OPLOCKS_IRIX=no
10427 rm -f conftest*
10430 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" 1>&6
10431 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_IRIX" = x"yes"; then
10432 cat >> confdefs.h <<\EOF
10433 #define HAVE_KERNEL_OPLOCKS_IRIX 1
10438 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
10439 echo "configure:10440: checking for irix specific capabilities" >&5
10440 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
10441 echo $ac_n "(cached) $ac_c" 1>&6
10442 else
10444 if test "$cross_compiling" = yes; then
10445 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
10446 else
10447 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure"
10449 #include "confdefs.h"
10450 #include <sys/types.h>
10451 #include <sys/capability.h>
10452 main() {
10453 cap_t cap;
10454 if ((cap = cap_get_proc()) == NULL)
10455 exit(1);
10456 cap->cap_effective |= CAP_NETWORK_MGT;
10457 cap->cap_inheritable |= CAP_NETWORK_MGT;
10458 cap_set_proc(cap);
10459 exit(0);
10463 if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10464 then
10465 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
10466 else
10467 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10469 rm -fr conftest*
10470 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
10472 rm -fr conftest*
10477 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
10478 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
10479 cat >> confdefs.h <<\EOF
10480 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
10486 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
10487 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
10490 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10491 echo "configure:10492: checking for int16 typedef included by rpc/rpc.h" >&5
10492 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10494 else
10496 cat > conftest.$ac_ext <<EOF
10497 #line 10498 "configure"
10498 #include "confdefs.h"
10499 #include <sys/types.h>
10500 #if defined(HAVE_RPC_RPC_H)
10501 #include <rpc/rpc.h>
10502 #endif
10503 int main() {
10504 int16 testvar;
10505 ; return 0; }
10507 if { (eval echo configure:10508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10508 rm -rf conftest*
10509 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
10510 else
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10513 rm -rf conftest*
10514 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
10516 rm -f conftest*
10519 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
10520 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
10521 cat >> confdefs.h <<\EOF
10522 #define HAVE_INT16_FROM_RPC_RPC_H 1
10527 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10528 echo "configure:10529: checking for uint16 typedef included by rpc/rpc.h" >&5
10529 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10531 else
10533 cat > conftest.$ac_ext <<EOF
10534 #line 10535 "configure"
10535 #include "confdefs.h"
10536 #include <sys/types.h>
10537 #if defined(HAVE_RPC_RPC_H)
10538 #include <rpc/rpc.h>
10539 #endif
10540 int main() {
10541 uint16 testvar;
10542 ; return 0; }
10544 if { (eval echo configure:10545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10545 rm -rf conftest*
10546 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
10547 else
10548 echo "configure: failed program was:" >&5
10549 cat conftest.$ac_ext >&5
10550 rm -rf conftest*
10551 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
10553 rm -f conftest*
10556 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
10557 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
10558 cat >> confdefs.h <<\EOF
10559 #define HAVE_UINT16_FROM_RPC_RPC_H 1
10564 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10565 echo "configure:10566: checking for int32 typedef included by rpc/rpc.h" >&5
10566 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10567 echo $ac_n "(cached) $ac_c" 1>&6
10568 else
10570 cat > conftest.$ac_ext <<EOF
10571 #line 10572 "configure"
10572 #include "confdefs.h"
10573 #include <sys/types.h>
10574 #if defined(HAVE_RPC_RPC_H)
10575 #include <rpc/rpc.h>
10576 #endif
10577 int main() {
10578 int32 testvar;
10579 ; return 0; }
10581 if { (eval echo configure:10582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10582 rm -rf conftest*
10583 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
10584 else
10585 echo "configure: failed program was:" >&5
10586 cat conftest.$ac_ext >&5
10587 rm -rf conftest*
10588 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
10590 rm -f conftest*
10593 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
10594 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
10595 cat >> confdefs.h <<\EOF
10596 #define HAVE_INT32_FROM_RPC_RPC_H 1
10601 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
10602 echo "configure:10603: checking for uint32 typedef included by rpc/rpc.h" >&5
10603 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
10604 echo $ac_n "(cached) $ac_c" 1>&6
10605 else
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10610 #include <sys/types.h>
10611 #if defined(HAVE_RPC_RPC_H)
10612 #include <rpc/rpc.h>
10613 #endif
10614 int main() {
10615 uint32 testvar;
10616 ; return 0; }
10618 if { (eval echo configure:10619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10619 rm -rf conftest*
10620 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
10621 else
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10624 rm -rf conftest*
10625 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
10627 rm -f conftest*
10630 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
10631 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
10632 cat >> confdefs.h <<\EOF
10633 #define HAVE_UINT32_FROM_RPC_RPC_H 1
10639 echo $ac_n "checking for conflicting AUTH_ERROR define in rpc/rpc.h""... $ac_c" 1>&6
10640 echo "configure:10641: checking for conflicting AUTH_ERROR define in rpc/rpc.h" >&5
10641 if eval "test \"`echo '$''{'samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT'+set}'`\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10643 else
10645 cat > conftest.$ac_ext <<EOF
10646 #line 10647 "configure"
10647 #include "confdefs.h"
10648 #include <sys/types.h>
10649 #ifdef HAVE_SYS_SECURITY_H
10650 #include <sys/security.h>
10651 #include <prot.h>
10652 #endif /* HAVE_SYS_SECURITY_H */
10653 #if defined(HAVE_RPC_RPC_H)
10654 #include <rpc/rpc.h>
10655 #endif
10656 int main() {
10657 int testvar;
10658 ; return 0; }
10660 if { (eval echo configure:10661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10661 rm -rf conftest*
10662 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=no
10663 else
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10666 rm -rf conftest*
10667 samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT=yes
10669 rm -f conftest*
10672 echo "$ac_t""$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" 1>&6
10673 if test x"$samba_cv_HAVE_RPC_AUTH_ERROR_CONFLICT" = x"yes"; then
10674 cat >> confdefs.h <<\EOF
10675 #define HAVE_RPC_AUTH_ERROR_CONFLICT 1
10680 echo $ac_n "checking for test routines""... $ac_c" 1>&6
10681 echo "configure:10682: checking for test routines" >&5
10682 if test "$cross_compiling" = yes; then
10683 echo "configure: warning: cannot run when cross-compiling" 1>&2
10684 else
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10688 #include "${srcdir-.}/tests/trivial.c"
10690 if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10691 then
10692 echo "$ac_t""yes" 1>&6
10693 else
10694 echo "configure: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10696 rm -fr conftest*
10697 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
10699 rm -fr conftest*
10703 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
10704 echo "configure:10705: checking for ftruncate extend" >&5
10705 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10707 else
10709 if test "$cross_compiling" = yes; then
10710 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
10711 else
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10715 #include "${srcdir-.}/tests/ftruncate.c"
10717 if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10718 then
10719 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
10720 else
10721 echo "configure: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10723 rm -fr conftest*
10724 samba_cv_HAVE_FTRUNCATE_EXTEND=no
10726 rm -fr conftest*
10731 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
10732 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
10733 cat >> confdefs.h <<\EOF
10734 #define HAVE_FTRUNCATE_EXTEND 1
10739 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
10740 echo "configure:10741: checking for broken getgroups" >&5
10741 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
10742 echo $ac_n "(cached) $ac_c" 1>&6
10743 else
10745 if test "$cross_compiling" = yes; then
10746 samba_cv_HAVE_BROKEN_GETGROUPS=cross
10747 else
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10751 #include "${srcdir-.}/tests/getgroups.c"
10753 if { (eval echo configure:10754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10754 then
10755 samba_cv_HAVE_BROKEN_GETGROUPS=yes
10756 else
10757 echo "configure: failed program was:" >&5
10758 cat conftest.$ac_ext >&5
10759 rm -fr conftest*
10760 samba_cv_HAVE_BROKEN_GETGROUPS=no
10762 rm -fr conftest*
10767 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
10768 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
10769 cat >> confdefs.h <<\EOF
10770 #define HAVE_BROKEN_GETGROUPS 1
10775 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
10776 echo "configure:10777: checking whether getpass should be replaced" >&5
10777 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
10778 echo $ac_n "(cached) $ac_c" 1>&6
10779 else
10781 SAVE_CPPFLAGS="$CPPFLAGS"
10782 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/popt -I${srcdir-.}/smbwrapper"
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10787 #define REPLACE_GETPASS 1
10788 #define NO_CONFIG_H 1
10789 #define main dont_declare_main
10790 #include "${srcdir-.}/lib/getsmbpass.c"
10791 #undef main
10793 int main() {
10795 ; return 0; }
10797 if { (eval echo configure:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10798 rm -rf conftest*
10799 samba_cv_REPLACE_GETPASS=yes
10800 else
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 samba_cv_REPLACE_GETPASS=no
10806 rm -f conftest*
10807 CPPFLAGS="$SAVE_CPPFLAGS"
10811 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
10812 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
10813 cat >> confdefs.h <<\EOF
10814 #define REPLACE_GETPASS 1
10819 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
10820 echo "configure:10821: checking for broken inet_ntoa" >&5
10821 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10823 else
10825 if test "$cross_compiling" = yes; then
10826 samba_cv_REPLACE_INET_NTOA=cross
10827 else
10828 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure"
10830 #include "confdefs.h"
10832 #include <stdio.h>
10833 #include <sys/types.h>
10834 #include <netinet/in.h>
10835 #ifdef HAVE_ARPA_INET_H
10836 #include <arpa/inet.h>
10837 #endif
10838 main() { struct in_addr ip; ip.s_addr = 0x12345678;
10839 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
10840 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
10841 exit(1);}
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10844 then
10845 samba_cv_REPLACE_INET_NTOA=yes
10846 else
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10849 rm -fr conftest*
10850 samba_cv_REPLACE_INET_NTOA=no
10852 rm -fr conftest*
10857 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
10858 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
10859 cat >> confdefs.h <<\EOF
10860 #define REPLACE_INET_NTOA 1
10865 echo $ac_n "checking for secure mkstemp""... $ac_c" 1>&6
10866 echo "configure:10867: checking for secure mkstemp" >&5
10867 if eval "test \"`echo '$''{'samba_cv_HAVE_SECURE_MKSTEMP'+set}'`\" = set"; then
10868 echo $ac_n "(cached) $ac_c" 1>&6
10869 else
10871 if test "$cross_compiling" = yes; then
10872 samba_cv_HAVE_SECURE_MKSTEMP=cross
10873 else
10874 cat > conftest.$ac_ext <<EOF
10875 #line 10876 "configure"
10876 #include "confdefs.h"
10877 #include <stdlib.h>
10878 #include <sys/types.h>
10879 #include <sys/stat.h>
10880 #include <unistd.h>
10881 main() {
10882 struct stat st;
10883 char tpl[20]="/tmp/test.XXXXXX";
10884 int fd = mkstemp(tpl);
10885 if (fd == -1) exit(1);
10886 unlink(tpl);
10887 if (fstat(fd, &st) != 0) exit(1);
10888 if ((st.st_mode & 0777) != 0600) exit(1);
10889 exit(0);
10892 if { (eval echo configure:10893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10893 then
10894 samba_cv_HAVE_SECURE_MKSTEMP=yes
10895 else
10896 echo "configure: failed program was:" >&5
10897 cat conftest.$ac_ext >&5
10898 rm -fr conftest*
10899 samba_cv_HAVE_SECURE_MKSTEMP=no
10901 rm -fr conftest*
10906 echo "$ac_t""$samba_cv_HAVE_SECURE_MKSTEMP" 1>&6
10907 if test x"$samba_cv_HAVE_SECURE_MKSTEMP" = x"yes"; then
10908 cat >> confdefs.h <<\EOF
10909 #define HAVE_SECURE_MKSTEMP 1
10914 echo $ac_n "checking for sysconf(_SC_NGROUPS_MAX)""... $ac_c" 1>&6
10915 echo "configure:10916: checking for sysconf(_SC_NGROUPS_MAX)" >&5
10916 if eval "test \"`echo '$''{'samba_cv_SYSCONF_SC_NGROUPS_MAX'+set}'`\" = set"; then
10917 echo $ac_n "(cached) $ac_c" 1>&6
10918 else
10920 if test "$cross_compiling" = yes; then
10921 samba_cv_SYSCONF_SC_NGROUPS_MAX=cross
10922 else
10923 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10926 #include <unistd.h>
10927 main() { exit(sysconf(_SC_NGROUPS_MAX) == -1 ? 1 : 0); }
10929 if { (eval echo configure:10930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10930 then
10931 samba_cv_SYSCONF_SC_NGROUPS_MAX=yes
10932 else
10933 echo "configure: failed program was:" >&5
10934 cat conftest.$ac_ext >&5
10935 rm -fr conftest*
10936 samba_cv_SYSCONF_SC_NGROUPS_MAX=no
10938 rm -fr conftest*
10943 echo "$ac_t""$samba_cv_SYSCONF_SC_NGROUPS_MAX" 1>&6
10944 if test x"$samba_cv_SYSCONF_SC_NGROUPS_MAX" = x"yes"; then
10945 cat >> confdefs.h <<\EOF
10946 #define SYSCONF_SC_NGROUPS_MAX 1
10951 echo $ac_n "checking for root""... $ac_c" 1>&6
10952 echo "configure:10953: checking for root" >&5
10953 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10955 else
10957 if test "$cross_compiling" = yes; then
10958 samba_cv_HAVE_ROOT=cross
10959 else
10960 cat > conftest.$ac_ext <<EOF
10961 #line 10962 "configure"
10962 #include "confdefs.h"
10963 main() { exit(getuid() != 0); }
10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10966 then
10967 samba_cv_HAVE_ROOT=yes
10968 else
10969 echo "configure: failed program was:" >&5
10970 cat conftest.$ac_ext >&5
10971 rm -fr conftest*
10972 samba_cv_HAVE_ROOT=no
10974 rm -fr conftest*
10979 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
10980 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
10981 cat >> confdefs.h <<\EOF
10982 #define HAVE_ROOT 1
10985 else
10986 echo "configure: warning: running as non-root will disable some tests" 1>&2
10989 ##################
10990 # look for a method of finding the list of network interfaces
10991 iface=no;
10992 echo $ac_n "checking for iface AIX""... $ac_c" 1>&6
10993 echo "configure:10994: checking for iface AIX" >&5
10994 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_AIX'+set}'`\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10996 else
10998 if test "$cross_compiling" = yes; then
10999 samba_cv_HAVE_IFACE_AIX=cross
11000 else
11001 cat > conftest.$ac_ext <<EOF
11002 #line 11003 "configure"
11003 #include "confdefs.h"
11005 #define HAVE_IFACE_AIX 1
11006 #define AUTOCONF_TEST 1
11007 #include "confdefs.h"
11008 #include "${srcdir-.}/lib/interfaces.c"
11010 if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11011 then
11012 samba_cv_HAVE_IFACE_AIX=yes
11013 else
11014 echo "configure: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11016 rm -fr conftest*
11017 samba_cv_HAVE_IFACE_AIX=no
11019 rm -fr conftest*
11024 echo "$ac_t""$samba_cv_HAVE_IFACE_AIX" 1>&6
11025 if test x"$samba_cv_HAVE_IFACE_AIX" = x"yes"; then
11026 iface=yes;cat >> confdefs.h <<\EOF
11027 #define HAVE_IFACE_AIX 1
11032 if test $iface = no; then
11033 echo $ac_n "checking for iface ifconf""... $ac_c" 1>&6
11034 echo "configure:11035: checking for iface ifconf" >&5
11035 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFCONF'+set}'`\" = set"; then
11036 echo $ac_n "(cached) $ac_c" 1>&6
11037 else
11039 if test "$cross_compiling" = yes; then
11040 samba_cv_HAVE_IFACE_IFCONF=cross
11041 else
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11046 #define HAVE_IFACE_IFCONF 1
11047 #define AUTOCONF_TEST 1
11048 #include "confdefs.h"
11049 #include "${srcdir-.}/lib/interfaces.c"
11051 if { (eval echo configure:11052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11052 then
11053 samba_cv_HAVE_IFACE_IFCONF=yes
11054 else
11055 echo "configure: failed program was:" >&5
11056 cat conftest.$ac_ext >&5
11057 rm -fr conftest*
11058 samba_cv_HAVE_IFACE_IFCONF=no
11060 rm -fr conftest*
11065 echo "$ac_t""$samba_cv_HAVE_IFACE_IFCONF" 1>&6
11066 if test x"$samba_cv_HAVE_IFACE_IFCONF" = x"yes"; then
11067 iface=yes;cat >> confdefs.h <<\EOF
11068 #define HAVE_IFACE_IFCONF 1
11074 if test $iface = no; then
11075 echo $ac_n "checking for iface ifreq""... $ac_c" 1>&6
11076 echo "configure:11077: checking for iface ifreq" >&5
11077 if eval "test \"`echo '$''{'samba_cv_HAVE_IFACE_IFREQ'+set}'`\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11079 else
11081 if test "$cross_compiling" = yes; then
11082 samba_cv_HAVE_IFACE_IFREQ=cross
11083 else
11084 cat > conftest.$ac_ext <<EOF
11085 #line 11086 "configure"
11086 #include "confdefs.h"
11088 #define HAVE_IFACE_IFREQ 1
11089 #define AUTOCONF_TEST 1
11090 #include "confdefs.h"
11091 #include "${srcdir-.}/lib/interfaces.c"
11093 if { (eval echo configure:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11094 then
11095 samba_cv_HAVE_IFACE_IFREQ=yes
11096 else
11097 echo "configure: failed program was:" >&5
11098 cat conftest.$ac_ext >&5
11099 rm -fr conftest*
11100 samba_cv_HAVE_IFACE_IFREQ=no
11102 rm -fr conftest*
11107 echo "$ac_t""$samba_cv_HAVE_IFACE_IFREQ" 1>&6
11108 if test x"$samba_cv_HAVE_IFACE_IFREQ" = x"yes"; then
11109 iface=yes;cat >> confdefs.h <<\EOF
11110 #define HAVE_IFACE_IFREQ 1
11117 ################################################
11118 # look for a method of setting the effective uid
11119 seteuid=no;
11120 if test $seteuid = no; then
11121 echo $ac_n "checking for setresuid""... $ac_c" 1>&6
11122 echo "configure:11123: checking for setresuid" >&5
11123 if eval "test \"`echo '$''{'samba_cv_USE_SETRESUID'+set}'`\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11125 else
11127 if test "$cross_compiling" = yes; then
11128 samba_cv_USE_SETRESUID=cross
11129 else
11130 cat > conftest.$ac_ext <<EOF
11131 #line 11132 "configure"
11132 #include "confdefs.h"
11134 #define AUTOCONF_TEST 1
11135 #define USE_SETRESUID 1
11136 #include "confdefs.h"
11137 #include "${srcdir-.}/lib/util_sec.c"
11139 if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11140 then
11141 samba_cv_USE_SETRESUID=yes
11142 else
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11145 rm -fr conftest*
11146 samba_cv_USE_SETRESUID=no
11148 rm -fr conftest*
11153 echo "$ac_t""$samba_cv_USE_SETRESUID" 1>&6
11154 if test x"$samba_cv_USE_SETRESUID" = x"yes"; then
11155 seteuid=yes;cat >> confdefs.h <<\EOF
11156 #define USE_SETRESUID 1
11163 if test $seteuid = no; then
11164 echo $ac_n "checking for setreuid""... $ac_c" 1>&6
11165 echo "configure:11166: checking for setreuid" >&5
11166 if eval "test \"`echo '$''{'samba_cv_USE_SETREUID'+set}'`\" = set"; then
11167 echo $ac_n "(cached) $ac_c" 1>&6
11168 else
11170 if test "$cross_compiling" = yes; then
11171 samba_cv_USE_SETREUID=cross
11172 else
11173 cat > conftest.$ac_ext <<EOF
11174 #line 11175 "configure"
11175 #include "confdefs.h"
11177 #define AUTOCONF_TEST 1
11178 #define USE_SETREUID 1
11179 #include "confdefs.h"
11180 #include "${srcdir-.}/lib/util_sec.c"
11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11183 then
11184 samba_cv_USE_SETREUID=yes
11185 else
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 rm -fr conftest*
11189 samba_cv_USE_SETREUID=no
11191 rm -fr conftest*
11196 echo "$ac_t""$samba_cv_USE_SETREUID" 1>&6
11197 if test x"$samba_cv_USE_SETREUID" = x"yes"; then
11198 seteuid=yes;cat >> confdefs.h <<\EOF
11199 #define USE_SETREUID 1
11205 if test $seteuid = no; then
11206 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
11207 echo "configure:11208: checking for seteuid" >&5
11208 if eval "test \"`echo '$''{'samba_cv_USE_SETEUID'+set}'`\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11210 else
11212 if test "$cross_compiling" = yes; then
11213 samba_cv_USE_SETEUID=cross
11214 else
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11219 #define AUTOCONF_TEST 1
11220 #define USE_SETEUID 1
11221 #include "confdefs.h"
11222 #include "${srcdir-.}/lib/util_sec.c"
11224 if { (eval echo configure:11225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11225 then
11226 samba_cv_USE_SETEUID=yes
11227 else
11228 echo "configure: failed program was:" >&5
11229 cat conftest.$ac_ext >&5
11230 rm -fr conftest*
11231 samba_cv_USE_SETEUID=no
11233 rm -fr conftest*
11238 echo "$ac_t""$samba_cv_USE_SETEUID" 1>&6
11239 if test x"$samba_cv_USE_SETEUID" = x"yes"; then
11240 seteuid=yes;cat >> confdefs.h <<\EOF
11241 #define USE_SETEUID 1
11247 if test $seteuid = no; then
11248 echo $ac_n "checking for setuidx""... $ac_c" 1>&6
11249 echo "configure:11250: checking for setuidx" >&5
11250 if eval "test \"`echo '$''{'samba_cv_USE_SETUIDX'+set}'`\" = set"; then
11251 echo $ac_n "(cached) $ac_c" 1>&6
11252 else
11254 if test "$cross_compiling" = yes; then
11255 samba_cv_USE_SETUIDX=cross
11256 else
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11261 #define AUTOCONF_TEST 1
11262 #define USE_SETUIDX 1
11263 #include "confdefs.h"
11264 #include "${srcdir-.}/lib/util_sec.c"
11266 if { (eval echo configure:11267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11267 then
11268 samba_cv_USE_SETUIDX=yes
11269 else
11270 echo "configure: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11272 rm -fr conftest*
11273 samba_cv_USE_SETUIDX=no
11275 rm -fr conftest*
11280 echo "$ac_t""$samba_cv_USE_SETUIDX" 1>&6
11281 if test x"$samba_cv_USE_SETUIDX" = x"yes"; then
11282 seteuid=yes;cat >> confdefs.h <<\EOF
11283 #define USE_SETUIDX 1
11290 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11291 echo "configure:11292: checking for working mmap" >&5
11292 if eval "test \"`echo '$''{'samba_cv_HAVE_MMAP'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11294 else
11296 if test "$cross_compiling" = yes; then
11297 samba_cv_HAVE_MMAP=cross
11298 else
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11301 "configure"
11301 #include "confdefs.h"
11302 #include "${srcdir-.}/tests/shared_mmap.c"
11304 if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11305 then
11306 samba_cv_HAVE_MMAP=yes
11307 else
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11310 rm -fr conftest*
11311 samba_cv_HAVE_MMAP=no
11313 rm -fr conftest*
11318 echo "$ac_t""$samba_cv_HAVE_MMAP" 1>&6
11319 if test x"$samba_cv_HAVE_MMAP" = x"yes"; then
11320 cat >> confdefs.h <<\EOF
11321 #define HAVE_MMAP 1
11326 echo $ac_n "checking for ftruncate needs root""... $ac_c" 1>&6
11327 echo "configure:11328: checking for ftruncate needs root" >&5
11328 if eval "test \"`echo '$''{'samba_cv_FTRUNCATE_NEEDS_ROOT'+set}'`\" = set"; then
11329 echo $ac_n "(cached) $ac_c" 1>&6
11330 else
11332 if test "$cross_compiling" = yes; then
11333 samba_cv_FTRUNCATE_NEEDS_ROOT=cross
11334 else
11335 cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11338 #include "${srcdir-.}/tests/ftruncroot.c"
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11341 then
11342 samba_cv_FTRUNCATE_NEEDS_ROOT=yes
11343 else
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11346 rm -fr conftest*
11347 samba_cv_FTRUNCATE_NEEDS_ROOT=no
11349 rm -fr conftest*
11354 echo "$ac_t""$samba_cv_FTRUNCATE_NEEDS_ROOT" 1>&6
11355 if test x"$samba_cv_FTRUNCATE_NEEDS_ROOT" = x"yes"; then
11356 cat >> confdefs.h <<\EOF
11357 #define FTRUNCATE_NEEDS_ROOT 1
11362 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
11363 echo "configure:11364: checking for fcntl locking" >&5
11364 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
11365 echo $ac_n "(cached) $ac_c" 1>&6
11366 else
11368 if test "$cross_compiling" = yes; then
11369 samba_cv_HAVE_FCNTL_LOCK=cross
11370 else
11371 cat > conftest.$ac_ext <<EOF
11372 #line 11373 "configure"
11373 #include "confdefs.h"
11374 #include "${srcdir-.}/tests/fcntl_lock.c"
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11377 then
11378 samba_cv_HAVE_FCNTL_LOCK=yes
11379 else
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11382 rm -fr conftest*
11383 samba_cv_HAVE_FCNTL_LOCK=no
11385 rm -fr conftest*
11390 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
11391 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
11392 cat >> confdefs.h <<\EOF
11393 #define HAVE_FCNTL_LOCK 1
11398 echo $ac_n "checking for broken (glibc2.1/x86) 64 bit fcntl locking""... $ac_c" 1>&6
11399 echo "configure:11400: checking for broken (glibc2.1/x86) 64 bit fcntl locking" >&5
11400 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_FCNTL64_LOCKS'+set}'`\" = set"; then
11401 echo $ac_n "(cached) $ac_c" 1>&6
11402 else
11404 if test "$cross_compiling" = yes; then
11405 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=cross
11406 else
11407 cat > conftest.$ac_ext <<EOF
11408 #line 11409 "configure"
11409 #include "confdefs.h"
11410 #include "${srcdir-.}/tests/fcntl_lock64.c"
11412 if { (eval echo configure:11413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11413 then
11414 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=yes
11415 else
11416 echo "configure: failed program was:" >&5
11417 cat conftest.$ac_ext >&5
11418 rm -fr conftest*
11419 samba_cv_HAVE_BROKEN_FCNTL64_LOCKS=no
11421 rm -fr conftest*
11426 echo "$ac_t""$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" 1>&6
11427 if test x"$samba_cv_HAVE_BROKEN_FCNTL64_LOCKS" = x"yes"; then
11428 cat >> confdefs.h <<\EOF
11429 #define HAVE_BROKEN_FCNTL64_LOCKS 1
11433 else
11436 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
11437 echo "configure:11438: checking for 64 bit fcntl locking" >&5
11438 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
11440 else
11442 if test "$cross_compiling" = yes; then
11443 samba_cv_HAVE_STRUCT_FLOCK64=cross
11444 else
11445 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11449 #if defined(HAVE_UNISTD_H)
11450 #include <unistd.h>
11451 #endif
11452 #include <stdio.h>
11453 #include <stdlib.h>
11455 #ifdef HAVE_FCNTL_H
11456 #include <fcntl.h>
11457 #endif
11459 #ifdef HAVE_SYS_FCNTL_H
11460 #include <sys/fcntl.h>
11461 #endif
11462 main() { struct flock64 fl64;
11463 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
11464 exit(0);
11465 #else
11466 exit(1);
11467 #endif
11470 if { (eval echo configure:11471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11471 then
11472 samba_cv_HAVE_STRUCT_FLOCK64=yes
11473 else
11474 echo "configure: failed program was:" >&5
11475 cat conftest.$ac_ext >&5
11476 rm -fr conftest*
11477 samba_cv_HAVE_STRUCT_FLOCK64=no
11479 rm -fr conftest*
11484 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
11486 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
11487 cat >> confdefs.h <<\EOF
11488 #define HAVE_STRUCT_FLOCK64 1
11494 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
11495 echo "configure:11496: checking for st_blocks in struct stat" >&5
11496 if eval "test \"`echo '$''{'samba_cv_HAVE_STAT_ST_BLOCKS'+set}'`\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11498 else
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <sys/types.h>
11504 #include <sys/stat.h>
11505 #include <unistd.h>
11506 int main() {
11507 struct stat st; st.st_blocks = 0;
11508 ; return 0; }
11510 if { (eval echo configure:11511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11511 rm -rf conftest*
11512 samba_cv_HAVE_STAT_ST_BLOCKS=yes
11513 else
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11516 rm -rf conftest*
11517 samba_cv_HAVE_STAT_ST_BLOCKS=no
11519 rm -f conftest*
11522 echo "$ac_t""$samba_cv_HAVE_STAT_ST_BLOCKS" 1>&6
11523 if test x"$samba_cv_HAVE_STAT_ST_BLOCKS" = x"yes"; then
11524 cat >> confdefs.h <<\EOF
11525 #define HAVE_STAT_ST_BLOCKS 1
11530 case "$host_os" in
11531 *linux*)
11532 echo $ac_n "checking for broken RedHat 7.2 system header files""... $ac_c" 1>&6
11533 echo "configure:11534: checking for broken RedHat 7.2 system header files" >&5
11534 if eval "test \"`echo '$''{'samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS'+set}'`\" = set"; then
11535 echo $ac_n "(cached) $ac_c" 1>&6
11536 else
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11542 #ifdef HAVE_SYS_VFS_H
11543 #include <sys/vfs.h>
11544 #endif
11545 #ifdef HAVE_SYS_CAPABILITY_H
11546 #include <sys/capability.h>
11547 #endif
11549 int main() {
11550 int i;
11551 ; return 0; }
11553 if { (eval echo configure:11554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11554 rm -rf conftest*
11555 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=no
11556 else
11557 echo "configure: failed program was:" >&5
11558 cat conftest.$ac_ext >&5
11559 rm -rf conftest*
11560 samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS=yes
11562 rm -f conftest*
11565 echo "$ac_t""$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" 1>&6
11566 if test x"$samba_cv_BROKEN_REDHAT_7_SYSTEM_HEADERS" = x"yes"; then
11567 cat >> confdefs.h <<\EOF
11568 #define BROKEN_REDHAT_7_SYSTEM_HEADERS 1
11573 esac
11575 echo $ac_n "checking for broken nisplus include files""... $ac_c" 1>&6
11576 echo "configure:11577: checking for broken nisplus include files" >&5
11577 if eval "test \"`echo '$''{'samba_cv_BROKEN_NISPLUS_INCLUDE_FILES'+set}'`\" = set"; then
11578 echo $ac_n "(cached) $ac_c" 1>&6
11579 else
11581 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure"
11583 #include "confdefs.h"
11584 #include <sys/acl.h>
11585 #if defined(HAVE_RPCSVC_NIS_H)
11586 #include <rpcsvc/nis.h>
11587 #endif
11588 int main() {
11589 int i;
11590 ; return 0; }
11592 if { (eval echo configure:11593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11593 rm -rf conftest*
11594 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=no
11595 else
11596 echo "configure: failed program was:" >&5
11597 cat conftest.$ac_ext >&5
11598 rm -rf conftest*
11599 samba_cv_BROKEN_NISPLUS_INCLUDE_FILES=yes
11601 rm -f conftest*
11604 echo "$ac_t""$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" 1>&6
11605 if test x"$samba_cv_BROKEN_NISPLUS_INCLUDE_FILES" = x"yes"; then
11606 cat >> confdefs.h <<\EOF
11607 #define BROKEN_NISPLUS_INCLUDE_FILES 1
11613 #################################################
11614 # check for smbwrapper support
11615 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
11616 echo "configure:11617: checking whether to use smbwrapper" >&5
11617 # Check whether --with-smbwrapper or --without-smbwrapper was given.
11618 if test "${with_smbwrapper+set}" = set; then
11619 withval="$with_smbwrapper"
11620 case "$withval" in
11621 yes)
11622 echo "$ac_t""yes" 1>&6
11623 cat >> confdefs.h <<\EOF
11624 #define WITH_SMBWRAPPER 1
11627 WRAPPROG="bin/smbsh"
11628 WRAP="bin/smbwrapper.$SHLIBEXT"
11630 if test x$ATTEMPT_WRAP32_BUILD = x; then
11631 WRAP32=""
11632 else
11633 WRAP32=bin/smbwrapper.32.$SHLIBEXT
11636 # Conditions under which smbwrapper should not be built.
11638 if test x$PICFLAG = x; then
11639 echo No support for PIC code - disabling smbwrapper and smbsh
11640 WRAPPROG=""
11641 WRAP=""
11642 WRAP32=""
11643 elif test x$ac_cv_func_syscall = xno; then
11644 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
11645 WRAPPROG=""
11646 WRAP=""
11647 WRAP32=""
11651 echo "$ac_t""no" 1>&6
11653 esac
11654 else
11655 echo "$ac_t""no" 1>&6
11660 #################################################
11661 # check for the AFS filesystem
11662 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
11663 echo "configure:11664: checking whether to use AFS" >&5
11664 # Check whether --with-afs or --without-afs was given.
11665 if test "${with_afs+set}" = set; then
11666 withval="$with_afs"
11667 case "$withval" in
11668 yes)
11669 echo "$ac_t""yes" 1>&6
11670 cat >> confdefs.h <<\EOF
11671 #define WITH_AFS 1
11676 echo "$ac_t""no" 1>&6
11678 esac
11679 else
11680 echo "$ac_t""no" 1>&6
11686 #################################################
11687 # check for the DFS auth system
11688 echo $ac_n "checking whether to use DCE/DFS auth""... $ac_c" 1>&6
11689 echo "configure:11690: checking whether to use DCE/DFS auth" >&5
11690 # Check whether --with-dfs or --without-dfs was given.
11691 if test "${with_dfs+set}" = set; then
11692 withval="$with_dfs"
11693 case "$withval" in
11694 yes)
11695 echo "$ac_t""yes" 1>&6
11696 cat >> confdefs.h <<\EOF
11697 #define WITH_DFS 1
11702 echo "$ac_t""no" 1>&6
11704 esac
11705 else
11706 echo "$ac_t""no" 1>&6
11711 #################################################
11712 # check for Kerberos IV auth system
11713 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
11714 echo "configure:11715: checking whether to use Kerberos IV" >&5
11715 # Check whether --with-krb4 or --without-krb4 was given.
11716 if test "${with_krb4+set}" = set; then
11717 withval="$with_krb4"
11718 case "$withval" in
11719 yes)
11720 echo "$ac_t""yes" 1>&6
11721 cat >> confdefs.h <<\EOF
11722 #define KRB4_AUTH 1
11725 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
11726 echo "configure:11727: checking for dn_expand in -lresolv" >&5
11727 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
11728 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11729 echo $ac_n "(cached) $ac_c" 1>&6
11730 else
11731 ac_save_LIBS="$LIBS"
11732 LIBS="-lresolv $LIBS"
11733 cat > conftest.$ac_ext <<EOF
11734 #line 11735 "configure"
11735 #include "confdefs.h"
11736 /* Override any gcc2 internal prototype to avoid an error. */
11737 /* We use char because int might match the return type of a gcc2
11738 builtin and then its argument prototype would still apply. */
11739 char dn_expand();
11741 int main() {
11742 dn_expand()
11743 ; return 0; }
11745 if { (eval echo configure:11746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11746 rm -rf conftest*
11747 eval "ac_cv_lib_$ac_lib_var=yes"
11748 else
11749 echo "configure: failed program was:" >&5
11750 cat conftest.$ac_ext >&5
11751 rm -rf conftest*
11752 eval "ac_cv_lib_$ac_lib_var=no"
11754 rm -f conftest*
11755 LIBS="$ac_save_LIBS"
11758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11759 echo "$ac_t""yes" 1>&6
11760 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
11761 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
11762 cat >> confdefs.h <<EOF
11763 #define $ac_tr_lib 1
11766 LIBS="-lresolv $LIBS"
11768 else
11769 echo "$ac_t""no" 1>&6
11772 LIBS="$LIBS -lkrb -ldes"
11773 CFLAGS="$CFLAGS -I$withval/include"
11774 LDFLAGS="$LDFLAGS -L$withval/lib"
11777 echo "$ac_t""no" 1>&6
11779 esac
11780 else
11781 echo "$ac_t""no" 1>&6
11786 #################################################
11787 # check for Kerberos 5 auth system
11788 echo $ac_n "checking whether to use Kerberos 5""... $ac_c" 1>&6
11789 echo "configure:11790: checking whether to use Kerberos 5" >&5
11790 # Check whether --with-krb5 or --without-krb5 was given.
11791 if test "${with_krb5+set}" = set; then
11792 withval="$with_krb5"
11793 case "$withval" in
11794 yes)
11795 echo "$ac_t""yes" 1>&6
11796 cat >> confdefs.h <<\EOF
11797 #define KRB5_AUTH 1
11800 LIBS="$LIBS -ldes425 -lkrb5 -lcrypto -lcom_err"
11801 CFLAGS="$CFLAGS -I$withval/include"
11802 LDFLAGS="$LDFLAGS -L$withval/lib"
11805 echo "$ac_t""no" 1>&6
11807 esac
11808 else
11809 echo "$ac_t""no" 1>&6
11814 #################################################
11815 # check for automount support
11816 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
11817 echo "configure:11818: checking whether to use AUTOMOUNT" >&5
11818 # Check whether --with-automount or --without-automount was given.
11819 if test "${with_automount+set}" = set; then
11820 withval="$with_automount"
11821 case "$withval" in
11822 yes)
11823 echo "$ac_t""yes" 1>&6
11824 cat >> confdefs.h <<\EOF
11825 #define WITH_AUTOMOUNT 1
11830 echo "$ac_t""no" 1>&6
11832 esac
11833 else
11834 echo "$ac_t""no" 1>&6
11839 #################################################
11840 # check for smbmount support
11841 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
11842 echo "configure:11843: checking whether to use SMBMOUNT" >&5
11843 # Check whether --with-smbmount or --without-smbmount was given.
11844 if test "${with_smbmount+set}" = set; then
11845 withval="$with_smbmount"
11846 case "$withval" in
11847 yes)
11848 case "$host_os" in
11849 *linux*)
11850 echo "$ac_t""yes" 1>&6
11851 cat >> confdefs.h <<\EOF
11852 #define WITH_SMBMOUNT 1
11855 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
11858 { echo "configure: error: not on a linux system!" 1>&2; exit 1; }
11860 esac
11863 echo "$ac_t""no" 1>&6
11864 MPROGS=
11866 esac
11867 else
11868 echo "$ac_t""no" 1>&6
11869 MPROGS=
11875 #################################################
11876 # check for a PAM password database
11877 with_pam_for_crypt=no
11878 echo $ac_n "checking whether to use PAM password database""... $ac_c" 1>&6
11879 echo "configure:11880: checking whether to use PAM password database" >&5
11880 # Check whether --with-pam or --without-pam was given.
11881 if test "${with_pam+set}" = set; then
11882 withval="$with_pam"
11883 case "$withval" in
11884 yes)
11885 echo "$ac_t""yes" 1>&6
11886 cat >> confdefs.h <<\EOF
11887 #define WITH_PAM 1
11890 LIBS="$LIBS -lpam"
11891 with_pam_for_crypt=yes
11894 echo "$ac_t""no" 1>&6
11896 esac
11897 else
11898 echo "$ac_t""no" 1>&6
11903 # we can't build a pam module if we don't have pam.
11904 echo $ac_n "checking for pam_get_data in -lpam""... $ac_c" 1>&6
11905 echo "configure:11906: checking for pam_get_data in -lpam" >&5
11906 ac_lib_var=`echo pam'_'pam_get_data | sed 'y%./+-%__p_%'`
11907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11909 else
11910 ac_save_LIBS="$LIBS"
11911 LIBS="-lpam $LIBS"
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11915 /* Override any gcc2 internal prototype to avoid an error. */
11916 /* We use char because int might match the return type of a gcc2
11917 builtin and then its argument prototype would still apply. */
11918 char pam_get_data();
11920 int main() {
11921 pam_get_data()
11922 ; return 0; }
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11925 rm -rf conftest*
11926 eval "ac_cv_lib_$ac_lib_var=yes"
11927 else
11928 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 rm -rf conftest*
11931 eval "ac_cv_lib_$ac_lib_var=no"
11933 rm -f conftest*
11934 LIBS="$ac_save_LIBS"
11937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11938 echo "$ac_t""yes" 1>&6
11939 cat >> confdefs.h <<\EOF
11940 #define HAVE_LIBPAM 1
11943 else
11944 echo "$ac_t""no" 1>&6
11948 #################################################
11949 # check for pam_smbpass support
11950 echo $ac_n "checking whether to use pam_smbpass""... $ac_c" 1>&6
11951 echo "configure:11952: checking whether to use pam_smbpass" >&5
11952 # Check whether --with-pam_smbpass or --without-pam_smbpass was given.
11953 if test "${with_pam_smbpass+set}" = set; then
11954 withval="$with_pam_smbpass"
11955 case "$withval" in
11956 yes)
11957 echo "$ac_t""yes" 1>&6
11959 # Conditions under which pam_smbpass should not be built.
11961 if test x$PICFLAG = x; then
11962 echo "$ac_t""No support for PIC code - disabling pam_smbpass" 1>&6
11963 PAM_MOD=""
11964 elif test x$ac_cv_lib_pam_pam_get_data = xno; then
11965 echo "$ac_t""No libpam found -- disabling pam_smbpass" 1>&6
11966 PAM_MOD=""
11967 else
11968 cat >> confdefs.h <<\EOF
11969 #define WITH_PAM_SMBPASS 1
11972 PAM_MOD="bin/pam_smbpass.so"
11976 echo "$ac_t""no" 1>&6
11978 esac
11979 else
11980 echo "$ac_t""no" 1>&6
11986 ###############################################
11987 # test for where we get crypt() from, but only
11988 # if not using PAM
11989 if test $with_pam_for_crypt = no; then
11990 for ac_func in crypt
11992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11993 echo "configure:11994: checking for $ac_func" >&5
11994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996 else
11997 cat > conftest.$ac_ext <<EOF
11998 #line 11999 "configure"
11999 #include "confdefs.h"
12000 /* System header to define __stub macros and hopefully few prototypes,
12001 which can conflict with char $ac_func(); below. */
12002 #include <assert.h>
12003 /* Override any gcc2 internal prototype to avoid an error. */
12004 /* We use char because int might match the return type of a gcc2
12005 builtin and then its argument prototype would still apply. */
12006 char $ac_func();
12008 int main() {
12010 /* The GNU C library defines this for functions which it implements
12011 to always fail with ENOSYS. Some functions are actually named
12012 something starting with __ and the normal name is an alias. */
12013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12014 choke me
12015 #else
12016 $ac_func();
12017 #endif
12019 ; return 0; }
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12022 rm -rf conftest*
12023 eval "ac_cv_func_$ac_func=yes"
12024 else
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 eval "ac_cv_func_$ac_func=no"
12030 rm -f conftest*
12033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12034 echo "$ac_t""yes" 1>&6
12035 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12036 cat >> confdefs.h <<EOF
12037 #define $ac_tr_func 1
12040 else
12041 echo "$ac_t""no" 1>&6
12043 done
12045 if test x"$ac_cv_func_crypt" = x"no"; then
12046 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
12047 echo "configure:12048: checking for crypt in -lcrypt" >&5
12048 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
12049 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12050 echo $ac_n "(cached) $ac_c" 1>&6
12051 else
12052 ac_save_LIBS="$LIBS"
12053 LIBS="-lcrypt $LIBS"
12054 cat > conftest.$ac_ext <<EOF
12055 #line 12056 "configure"
12056 #include "confdefs.h"
12057 /* Override any gcc2 internal prototype to avoid an error. */
12058 /* We use char because int might match the return type of a gcc2
12059 builtin and then its argument prototype would still apply. */
12060 char crypt();
12062 int main() {
12063 crypt()
12064 ; return 0; }
12066 if { (eval echo configure:12067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12067 rm -rf conftest*
12068 eval "ac_cv_lib_$ac_lib_var=yes"
12069 else
12070 echo "configure: failed program was:" >&5
12071 cat conftest.$ac_ext >&5
12072 rm -rf conftest*
12073 eval "ac_cv_lib_$ac_lib_var=no"
12075 rm -f conftest*
12076 LIBS="$ac_save_LIBS"
12079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12080 echo "$ac_t""yes" 1>&6
12081 LIBS="$LIBS -lcrypt";
12082 cat >> confdefs.h <<\EOF
12083 #define HAVE_CRYPT 1
12086 else
12087 echo "$ac_t""no" 1>&6
12094 ## moved after the check for -lcrypt in order to
12095 ## ensure that the necessary libraries are included
12096 ## check checking for truncated salt. Wrapped by the
12097 ## $with_pam_for_crypt variable as above --jerry
12099 if test $with_pam_for_crypt = no; then
12100 echo $ac_n "checking for a crypt that needs truncated salt""... $ac_c" 1>&6
12101 echo "configure:12102: checking for a crypt that needs truncated salt" >&5
12102 if eval "test \"`echo '$''{'samba_cv_HAVE_TRUNCATED_SALT'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12104 else
12106 if test "$cross_compiling" = yes; then
12107 samba_cv_HAVE_TRUNCATED_SALT=cross
12108 else
12109 cat > conftest.$ac_ext <<EOF
12110 #line 12111 "configure"
12111 #include "confdefs.h"
12112 #include "${srcdir-.}/tests/crypttest.c"
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12115 then
12116 samba_cv_HAVE_TRUNCATED_SALT=no
12117 else
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12120 rm -fr conftest*
12121 samba_cv_HAVE_TRUNCATED_SALT=yes
12123 rm -fr conftest*
12128 echo "$ac_t""$samba_cv_HAVE_TRUNCATED_SALT" 1>&6
12129 if test x"$samba_cv_HAVE_TRUNCATED_SALT" = x"yes"; then
12130 cat >> confdefs.h <<\EOF
12131 #define HAVE_TRUNCATED_SALT 1
12138 ########################################################################################
12140 ## TESTS FOR SAM BACKENDS. KEEP THESE GROUPED TOGETHER
12142 ########################################################################################
12144 ## set the with_smbpasswd_sam as the default
12145 with_smbpasswd_sam=yes
12149 #################################################
12150 # check for a TDB password database
12151 echo $ac_n "checking whether to use TDB SAM database""... $ac_c" 1>&6
12152 echo "configure:12153: checking whether to use TDB SAM database" >&5
12153 # Check whether --with-tdbsam or --without-tdbsam was given.
12154 if test "${with_tdbsam+set}" = set; then
12155 withval="$with_tdbsam"
12156 case "$withval" in
12157 yes)
12158 echo "$ac_t""yes" 1>&6
12159 cat >> confdefs.h <<\EOF
12160 #define WITH_TDB_SAM 1
12163 with_smbpasswd_sam=no
12166 echo "$ac_t""no" 1>&6
12168 esac
12169 else
12170 echo "$ac_t""no" 1>&6
12175 #################################################
12176 # check for a LDAP password database
12177 echo $ac_n "checking whether to use LDAP SAM database""... $ac_c" 1>&6
12178 echo "configure:12179: checking whether to use LDAP SAM database" >&5
12179 # Check whether --with-ldapsam or --without-ldapsam was given.
12180 if test "${with_ldapsam+set}" = set; then
12181 withval="$with_ldapsam"
12182 case "$withval" in
12183 yes)
12184 echo "$ac_t""yes" 1>&6
12185 cat >> confdefs.h <<\EOF
12186 #define WITH_LDAP_SAM 1
12189 LDAPLIBS="-lldap"
12190 echo $ac_n "checking for ber_bvfree in -llber""... $ac_c" 1>&6
12191 echo "configure:12192: checking for ber_bvfree in -llber" >&5
12192 ac_lib_var=`echo lber'_'ber_bvfree | sed 'y%./+-%__p_%'`
12193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12194 echo $ac_n "(cached) $ac_c" 1>&6
12195 else
12196 ac_save_LIBS="$LIBS"
12197 LIBS="-llber $LIBS"
12198 cat > conftest.$ac_ext <<EOF
12199 #line 12200 "configure"
12200 #include "confdefs.h"
12201 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204 char ber_bvfree();
12206 int main() {
12207 ber_bvfree()
12208 ; return 0; }
12210 if { (eval echo configure:12211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12211 rm -rf conftest*
12212 eval "ac_cv_lib_$ac_lib_var=yes"
12213 else
12214 echo "configure: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12216 rm -rf conftest*
12217 eval "ac_cv_lib_$ac_lib_var=no"
12219 rm -f conftest*
12220 LIBS="$ac_save_LIBS"
12223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12224 echo "$ac_t""yes" 1>&6
12225 LDAPLIBS="$LDAPLIBS -llber"
12226 else
12227 echo "$ac_t""no" 1>&6
12230 LDAPLIBS="-lresolv $LDAPLIBS"
12231 old_LDFLAGS="$LDFLAGS"
12232 LDFLAGS="$LDFLAGS $LDAPLIBS"
12233 for ac_func in ldap_start_tls_s
12235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12236 echo "configure:12237: checking for $ac_func" >&5
12237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12238 echo $ac_n "(cached) $ac_c" 1>&6
12239 else
12240 cat > conftest.$ac_ext <<EOF
12241 #line 12242 "configure"
12242 #include "confdefs.h"
12243 /* System header to define __stub macros and hopefully few prototypes,
12244 which can conflict with char $ac_func(); below. */
12245 #include <assert.h>
12246 /* Override any gcc2 internal prototype to avoid an error. */
12247 /* We use char because int might match the return type of a gcc2
12248 builtin and then its argument prototype would still apply. */
12249 char $ac_func();
12251 int main() {
12253 /* The GNU C library defines this for functions which it implements
12254 to always fail with ENOSYS. Some functions are actually named
12255 something starting with __ and the normal name is an alias. */
12256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12257 choke me
12258 #else
12259 $ac_func();
12260 #endif
12262 ; return 0; }
12264 if { (eval echo configure:12265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265 rm -rf conftest*
12266 eval "ac_cv_func_$ac_func=yes"
12267 else
12268 echo "configure: failed program was:" >&5
12269 cat conftest.$ac_ext >&5
12270 rm -rf conftest*
12271 eval "ac_cv_func_$ac_func=no"
12273 rm -f conftest*
12276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12277 echo "$ac_t""yes" 1>&6
12278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12279 cat >> confdefs.h <<EOF
12280 #define $ac_tr_func 1
12283 else
12284 echo "$ac_t""no" 1>&6
12286 done
12288 LDFLAGS="$old_LDFLAGS"
12289 with_smbpasswd_sam=no
12293 echo "$ac_t""no" 1>&6
12295 esac
12296 else
12297 echo "$ac_t""no" 1>&6
12302 #################################################
12303 # check for a NISPLUS password database
12304 echo $ac_n "checking whether to use NISPLUS SAM database""... $ac_c" 1>&6
12305 echo "configure:12306: checking whether to use NISPLUS SAM database" >&5
12306 # Check whether --with-nisplussam or --without-nisplussam was given.
12307 if test "${with_nisplussam+set}" = set; then
12308 withval="$with_nisplussam"
12309 case "$withval" in
12310 yes)
12311 echo "$ac_t""yes" 1>&6
12312 cat >> confdefs.h <<\EOF
12313 #define WITH_NISPLUS_SAM 1
12316 with_smbpasswd_sam=no
12319 echo "$ac_t""no" 1>&6
12321 esac
12322 else
12323 echo "$ac_t""no" 1>&6
12328 ################################################
12329 # This test should come last because the
12330 # smbpasswd SAM is only used if another format
12331 # has not been defined
12332 echo $ac_n "checking whether to use traditional smbpasswd file""... $ac_c" 1>&6
12333 echo "configure:12334: checking whether to use traditional smbpasswd file" >&5
12334 if test $with_smbpasswd_sam = yes; then
12335 echo "$ac_t""yes" 1>&6
12336 cat >> confdefs.h <<\EOF
12337 #define WITH_SMBPASSWD_SAM 1
12340 PDBEDIT=""
12341 else
12342 echo "$ac_t""no" 1>&6
12343 PDBEDIT=bin/pdbedit
12346 ########################################################################################
12348 ## END OF TESTS FOR SAM BACKENDS.
12350 ########################################################################################
12352 #################################################
12353 # check for a NISPLUS_HOME support
12354 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
12355 echo "configure:12356: checking whether to use NISPLUS_HOME" >&5
12356 # Check whether --with-nisplus-home or --without-nisplus-home was given.
12357 if test "${with_nisplus_home+set}" = set; then
12358 withval="$with_nisplus_home"
12359 case "$withval" in
12360 yes)
12361 echo "$ac_t""yes" 1>&6
12362 cat >> confdefs.h <<\EOF
12363 #define WITH_NISPLUS_HOME 1
12368 echo "$ac_t""no" 1>&6
12370 esac
12371 else
12372 echo "$ac_t""no" 1>&6
12377 #################################################
12378 # check for the secure socket layer
12379 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
12380 echo "configure:12381: checking whether to use SSL" >&5
12381 # Check whether --with-ssl or --without-ssl was given.
12382 if test "${with_ssl+set}" = set; then
12383 withval="$with_ssl"
12384 case "$withval" in
12385 yes)
12386 echo "$ac_t""yes" 1>&6
12387 cat >> confdefs.h <<\EOF
12388 #define WITH_SSL 1
12391 withval="/usr/local/ssl" # default
12393 if test "${with_sslinc+set}" = set; then
12395 withval="$with_sslinc"
12396 case "$withval" in
12397 yes|no)
12398 echo "configure: warning: --with-sslinc called without argument - will use default" 1>&w
12399 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12402 CFLAGS="-I${withval} $CFLAGS"
12404 esac
12406 else
12408 CFLAGS="-I/usr/local/ssl/include $CFLAGS"
12412 if test "${with_ssllib+set}" = set; then
12414 withval="$with_ssllib"
12415 case "$withval" in
12416 yes|no)
12417 echo "configure: warning: --with-ssllib called without argument - will use default" 1>&w
12418 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12421 LDFLAGS="-L${withval}/lib $LDFLAGS"
12423 esac
12425 else
12427 LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
12431 LIBS="-lssl -lcrypto $LIBS"
12433 # if test ! -d ${withval}; then
12434 # echo "configure: error: called with --with-ssl, but ssl base directory ${withval} does not exist or is not a directory. Aborting config" 1>&2
12435 # exit 1
12436 # fi
12438 CFLAGS="-DHAVE_CRYPT_DECL $CFLAGS" # Damn, SSLeay defines its own
12442 echo "$ac_t""no" 1>&6
12444 esac
12445 else
12446 echo "$ac_t""no" 1>&6
12451 #################################################
12452 # check for syslog logging
12453 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
12454 echo "configure:12455: checking whether to use syslog logging" >&5
12455 # Check whether --with-syslog or --without-syslog was given.
12456 if test "${with_syslog+set}" = set; then
12457 withval="$with_syslog"
12458 case "$withval" in
12459 yes)
12460 echo "$ac_t""yes" 1>&6
12461 cat >> confdefs.h <<\EOF
12462 #define WITH_SYSLOG 1
12467 echo "$ac_t""no" 1>&6
12469 esac
12470 else
12471 echo "$ac_t""no" 1>&6
12476 #################################################
12477 # check for a shared memory profiling support
12478 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
12479 echo "configure:12480: checking whether to use profiling" >&5
12480 # Check whether --with-profiling-data or --without-profiling-data was given.
12481 if test "${with_profiling_data+set}" = set; then
12482 withval="$with_profiling_data"
12483 case "$withval" in
12484 yes)
12485 echo "$ac_t""yes" 1>&6
12486 cat >> confdefs.h <<\EOF
12487 #define WITH_PROFILE 1
12492 echo "$ac_t""no" 1>&6
12494 esac
12495 else
12496 echo "$ac_t""no" 1>&6
12502 #################################################
12503 # check for experimental disk-quotas support
12504 QUOTAOBJS=smbd/noquotas.o
12506 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
12507 echo "configure:12508: checking whether to support disk-quotas" >&5
12508 # Check whether --with-quotas or --without-quotas was given.
12509 if test "${with_quotas+set}" = set; then
12510 withval="$with_quotas"
12511 case "$withval" in
12512 yes)
12513 echo "$ac_t""yes" 1>&6
12514 QUOTAOBJS=smbd/quotas.o
12517 echo "$ac_t""no" 1>&6
12519 esac
12520 else
12521 echo "$ac_t""no" 1>&6
12527 #################################################
12528 # check for experimental utmp accounting
12530 echo $ac_n "checking whether to support utmp accounting""... $ac_c" 1>&6
12531 echo "configure:12532: checking whether to support utmp accounting" >&5
12532 # Check whether --with-utmp or --without-utmp was given.
12533 if test "${with_utmp+set}" = set; then
12534 withval="$with_utmp"
12535 case "$withval" in
12536 yes)
12537 echo "$ac_t""yes" 1>&6
12538 cat >> confdefs.h <<\EOF
12539 #define WITH_UTMP 1
12544 echo "$ac_t""no" 1>&6
12546 esac
12547 else
12548 echo "$ac_t""no" 1>&6
12553 #################################################
12554 # check for MS Dfs support
12556 echo $ac_n "checking whether to support Microsoft Dfs""... $ac_c" 1>&6
12557 echo "configure:12558: checking whether to support Microsoft Dfs" >&5
12558 # Check whether --with-msdfs or --without-msdfs was given.
12559 if test "${with_msdfs+set}" = set; then
12560 withval="$with_msdfs"
12561 case "$withval" in
12562 yes)
12563 echo "$ac_t""yes" 1>&6
12564 cat >> confdefs.h <<\EOF
12565 #define WITH_MSDFS 1
12570 echo "$ac_t""no" 1>&6
12572 esac
12573 else
12574 echo "$ac_t""no" 1>&6
12579 #################################################
12580 # should we build libsmbclient?
12582 LIBSMBCLIENT_SHARED=
12583 LIBSMBCLIENT=
12584 echo $ac_n "checking whether to build the libsmbclient shared library""... $ac_c" 1>&6
12585 echo "configure:12586: checking whether to build the libsmbclient shared library" >&5
12586 # Check whether --with-libsmbclient or --without-libsmbclient was given.
12587 if test "${with_libsmbclient+set}" = set; then
12588 withval="$with_libsmbclient"
12589 case "$withval" in
12590 yes)
12591 if test $BLDSHARED = true; then
12592 LIBSMBCLIENT_SHARED=bin/libsmbclient.$SHLIBEXT
12593 LIBSMBCLIENT=libsmbclient
12594 echo "$ac_t""yes" 1>&6
12595 else
12596 echo "$ac_t""no shared library support" 1>&6
12600 echo "$ac_t""no" 1>&6
12602 esac
12603 else
12604 echo "$ac_t""no" 1>&6
12609 #################################################
12610 # these tests are taken from the GNU fileutils package
12611 echo "checking how to get filesystem space usage" 1>&6
12612 echo "configure:12613: checking how to get filesystem space usage" >&5
12613 space=no
12615 # Test for statvfs64.
12616 if test $space = no; then
12617 # SVR4
12618 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
12619 echo "configure:12620: checking statvfs64 function (SVR4)" >&5
12620 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
12621 echo $ac_n "(cached) $ac_c" 1>&6
12622 else
12623 if test "$cross_compiling" = yes; then
12624 fu_cv_sys_stat_statvfs64=cross
12625 else
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12630 #if defined(HAVE_UNISTD_H)
12631 #include <unistd.h>
12632 #endif
12633 #include <sys/types.h>
12634 #include <sys/statvfs.h>
12635 main ()
12637 struct statvfs64 fsd;
12638 exit (statvfs64 (".", &fsd));
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12642 then
12643 fu_cv_sys_stat_statvfs64=yes
12644 else
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12647 rm -fr conftest*
12648 fu_cv_sys_stat_statvfs64=no
12650 rm -fr conftest*
12655 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
12656 if test $fu_cv_sys_stat_statvfs64 = yes; then
12657 space=yes
12658 cat >> confdefs.h <<\EOF
12659 #define STAT_STATVFS64 1
12665 # Perform only the link test since it seems there are no variants of the
12666 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
12667 # because that got a false positive on SCO OSR5. Adding the declaration
12668 # of a `struct statvfs' causes this test to fail (as it should) on such
12669 # systems. That system is reported to work fine with STAT_STATFS4 which
12670 # is what it gets when this test fails.
12671 if test $space = no; then
12672 # SVR4
12673 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
12674 echo "configure:12675: checking statvfs function (SVR4)" >&5
12675 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
12676 echo $ac_n "(cached) $ac_c" 1>&6
12677 else
12678 cat > conftest.$ac_ext <<EOF
12679 #line 12680 "configure"
12680 #include "confdefs.h"
12681 #include <sys/types.h>
12682 #include <sys/statvfs.h>
12683 int main() {
12684 struct statvfs fsd; statvfs (0, &fsd);
12685 ; return 0; }
12687 if { (eval echo configure:12688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12688 rm -rf conftest*
12689 fu_cv_sys_stat_statvfs=yes
12690 else
12691 echo "configure: failed program was:" >&5
12692 cat conftest.$ac_ext >&5
12693 rm -rf conftest*
12694 fu_cv_sys_stat_statvfs=no
12696 rm -f conftest*
12699 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
12700 if test $fu_cv_sys_stat_statvfs = yes; then
12701 space=yes
12702 cat >> confdefs.h <<\EOF
12703 #define STAT_STATVFS 1
12709 if test $space = no; then
12710 # DEC Alpha running OSF/1
12711 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
12712 echo "configure:12713: checking for 3-argument statfs function (DEC OSF/1)" >&5
12713 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
12714 echo $ac_n "(cached) $ac_c" 1>&6
12715 else
12716 if test "$cross_compiling" = yes; then
12717 fu_cv_sys_stat_statfs3_osf1=no
12718 else
12719 cat > conftest.$ac_ext <<EOF
12720 #line 12721 "configure"
12721 #include "confdefs.h"
12723 #include <sys/param.h>
12724 #include <sys/types.h>
12725 #include <sys/mount.h>
12726 main ()
12728 struct statfs fsd;
12729 fsd.f_fsize = 0;
12730 exit (statfs (".", &fsd, sizeof (struct statfs)));
12733 if { (eval echo configure:12734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12734 then
12735 fu_cv_sys_stat_statfs3_osf1=yes
12736 else
12737 echo "configure: failed program was:" >&5
12738 cat conftest.$ac_ext >&5
12739 rm -fr conftest*
12740 fu_cv_sys_stat_statfs3_osf1=no
12742 rm -fr conftest*
12747 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
12748 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
12749 space=yes
12750 cat >> confdefs.h <<\EOF
12751 #define STAT_STATFS3_OSF1 1
12757 if test $space = no; then
12758 # AIX
12759 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
12760 echo "configure:12761: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
12761 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
12762 echo $ac_n "(cached) $ac_c" 1>&6
12763 else
12764 if test "$cross_compiling" = yes; then
12765 fu_cv_sys_stat_statfs2_bsize=no
12766 else
12767 cat > conftest.$ac_ext <<EOF
12768 #line 12769 "configure"
12769 #include "confdefs.h"
12771 #ifdef HAVE_SYS_PARAM_H
12772 #include <sys/param.h>
12773 #endif
12774 #ifdef HAVE_SYS_MOUNT_H
12775 #include <sys/mount.h>
12776 #endif
12777 #ifdef HAVE_SYS_VFS_H
12778 #include <sys/vfs.h>
12779 #endif
12780 main ()
12782 struct statfs fsd;
12783 fsd.f_bsize = 0;
12784 exit (statfs (".", &fsd));
12787 if { (eval echo configure:12788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12788 then
12789 fu_cv_sys_stat_statfs2_bsize=yes
12790 else
12791 echo "configure: failed program was:" >&5
12792 cat conftest.$ac_ext >&5
12793 rm -fr conftest*
12794 fu_cv_sys_stat_statfs2_bsize=no
12796 rm -fr conftest*
12801 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
12802 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
12803 space=yes
12804 cat >> confdefs.h <<\EOF
12805 #define STAT_STATFS2_BSIZE 1
12811 if test $space = no; then
12812 # SVR3
12813 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
12814 echo "configure:12815: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
12815 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
12816 echo $ac_n "(cached) $ac_c" 1>&6
12817 else
12818 if test "$cross_compiling" = yes; then
12819 fu_cv_sys_stat_statfs4=no
12820 else
12821 cat > conftest.$ac_ext <<EOF
12822 #line 12823 "configure"
12823 #include "confdefs.h"
12824 #include <sys/types.h>
12825 #include <sys/statfs.h>
12826 main ()
12828 struct statfs fsd;
12829 exit (statfs (".", &fsd, sizeof fsd, 0));
12832 if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12833 then
12834 fu_cv_sys_stat_statfs4=yes
12835 else
12836 echo "configure: failed program was:" >&5
12837 cat conftest.$ac_ext >&5
12838 rm -fr conftest*
12839 fu_cv_sys_stat_statfs4=no
12841 rm -fr conftest*
12846 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
12847 if test $fu_cv_sys_stat_statfs4 = yes; then
12848 space=yes
12849 cat >> confdefs.h <<\EOF
12850 #define STAT_STATFS4 1
12856 if test $space = no; then
12857 # 4.4BSD and NetBSD
12858 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
12859 echo "configure:12860: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
12860 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
12861 echo $ac_n "(cached) $ac_c" 1>&6
12862 else
12863 if test "$cross_compiling" = yes; then
12864 fu_cv_sys_stat_statfs2_fsize=no
12865 else
12866 cat > conftest.$ac_ext <<EOF
12867 #line 12868 "configure"
12868 #include "confdefs.h"
12869 #include <sys/types.h>
12870 #ifdef HAVE_SYS_PARAM_H
12871 #include <sys/param.h>
12872 #endif
12873 #ifdef HAVE_SYS_MOUNT_H
12874 #include <sys/mount.h>
12875 #endif
12876 main ()
12878 struct statfs fsd;
12879 fsd.f_fsize = 0;
12880 exit (statfs (".", &fsd));
12883 if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12884 then
12885 fu_cv_sys_stat_statfs2_fsize=yes
12886 else
12887 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5
12889 rm -fr conftest*
12890 fu_cv_sys_stat_statfs2_fsize=no
12892 rm -fr conftest*
12897 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
12898 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
12899 space=yes
12900 cat >> confdefs.h <<\EOF
12901 #define STAT_STATFS2_FSIZE 1
12907 if test $space = no; then
12908 # Ultrix
12909 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
12910 echo "configure:12911: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
12911 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
12912 echo $ac_n "(cached) $ac_c" 1>&6
12913 else
12914 if test "$cross_compiling" = yes; then
12915 fu_cv_sys_stat_fs_data=no
12916 else
12917 cat > conftest.$ac_ext <<EOF
12918 #line 12919 "configure"
12919 #include "confdefs.h"
12920 #include <sys/types.h>
12921 #ifdef HAVE_SYS_PARAM_H
12922 #include <sys/param.h>
12923 #endif
12924 #ifdef HAVE_SYS_MOUNT_H
12925 #include <sys/mount.h>
12926 #endif
12927 #ifdef HAVE_SYS_FS_TYPES_H
12928 #include <sys/fs_types.h>
12929 #endif
12930 main ()
12932 struct fs_data fsd;
12933 /* Ultrix's statfs returns 1 for success,
12934 0 for not mounted, -1 for failure. */
12935 exit (statfs (".", &fsd) != 1);
12938 if { (eval echo configure:12939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12939 then
12940 fu_cv_sys_stat_fs_data=yes
12941 else
12942 echo "configure: failed program was:" >&5
12943 cat conftest.$ac_ext >&5
12944 rm -fr conftest*
12945 fu_cv_sys_stat_fs_data=no
12947 rm -fr conftest*
12952 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
12953 if test $fu_cv_sys_stat_fs_data = yes; then
12954 space=yes
12955 cat >> confdefs.h <<\EOF
12956 #define STAT_STATFS2_FS_DATA 1
12963 # As a gating factor for large file support, in order to
12964 # use <4GB files we must have the following minimal support
12965 # available.
12966 # long long, and a 64 bit off_t or off64_t.
12967 # If we don't have all of these then disable large
12968 # file support.
12970 echo $ac_n "checking if large file support can be enabled""... $ac_c" 1>&6
12971 echo "configure:12972: checking if large file support can be enabled" >&5
12972 cat > conftest.$ac_ext <<EOF
12973 #line 12974 "configure"
12974 #include "confdefs.h"
12976 #if defined(HAVE_LONGLONG) && (defined(HAVE_OFF64_T) || (defined(SIZEOF_OFF_T) && (SIZEOF_OFF_T == 8)))
12977 #include <sys/types.h>
12978 #else
12979 __COMPILE_ERROR_
12980 #endif
12982 int main() {
12983 int i
12984 ; return 0; }
12986 if { (eval echo configure:12987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12987 rm -rf conftest*
12988 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=yes
12989 else
12990 echo "configure: failed program was:" >&5
12991 cat conftest.$ac_ext >&5
12992 rm -rf conftest*
12993 samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT=no
12995 rm -f conftest*
12996 if test x"$samba_cv_HAVE_EXPLICIT_LARGEFILE_SUPPORT" = x"yes"; then
12997 echo "$ac_t""yes" 1>&6
12998 cat >> confdefs.h <<\EOF
12999 #define HAVE_EXPLICIT_LARGEFILE_SUPPORT 1
13002 else
13003 echo "$ac_t""no" 1>&6
13006 # Check whether --with-spinlocks or --without-spinlocks was given.
13007 if test "${with_spinlocks+set}" = set; then
13008 withval="$with_spinlocks"
13012 if test "x$with_spinlocks" = "xyes"; then
13013 cat >> confdefs.h <<\EOF
13014 #define USE_SPINLOCKS 1
13018 case "$host_cpu" in
13019 sparc)
13020 cat >> confdefs.h <<\EOF
13021 #define SPARC_SPINLOCKS 1
13026 i386|i486|i586|i686)
13027 cat >> confdefs.h <<\EOF
13028 #define INTEL_SPINLOCKS 1
13033 mips)
13034 cat >> confdefs.h <<\EOF
13035 #define MIPS_SPINLOCKS 1
13040 powerpc)
13041 cat >> confdefs.h <<\EOF
13042 #define POWERPC_SPINLOCKS 1
13046 esac
13049 #################################################
13050 # check for ACL support
13052 echo $ac_n "checking whether to support ACLs""... $ac_c" 1>&6
13053 echo "configure:13054: checking whether to support ACLs" >&5
13054 # Check whether --with-acl-support or --without-acl-support was given.
13055 if test "${with_acl_support+set}" = set; then
13056 withval="$with_acl_support"
13057 case "$withval" in
13058 yes)
13060 case "$host_os" in
13061 *sysv5*)
13062 echo "$ac_t""Using UnixWare ACLs" 1>&6
13063 cat >> confdefs.h <<\EOF
13064 #define HAVE_UNIXWARE_ACLS 1
13068 *solaris*)
13069 echo "$ac_t""Using solaris ACLs" 1>&6
13070 cat >> confdefs.h <<\EOF
13071 #define HAVE_SOLARIS_ACLS 1
13075 *hpux*)
13076 echo "$ac_t""Using HPUX ACLs" 1>&6
13077 cat >> confdefs.h <<\EOF
13078 #define HAVE_HPUX_ACLS 1
13082 *irix*)
13083 echo "$ac_t""Using IRIX ACLs" 1>&6
13084 cat >> confdefs.h <<\EOF
13085 #define HAVE_IRIX_ACLS 1
13089 *aix*)
13090 echo "$ac_t""Using AIX ACLs" 1>&6
13091 cat >> confdefs.h <<\EOF
13092 #define HAVE_AIX_ACLS 1
13096 *osf*)
13097 echo "$ac_t""Using Tru64 ACLs" 1>&6
13098 cat >> confdefs.h <<\EOF
13099 #define HAVE_TRU64_ACLS 1
13102 LIBS="$LIBS -lpacl"
13105 echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6
13106 echo "configure:13107: checking for acl_get_file in -lacl" >&5
13107 ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'`
13108 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13109 echo $ac_n "(cached) $ac_c" 1>&6
13110 else
13111 ac_save_LIBS="$LIBS"
13112 LIBS="-lacl $LIBS"
13113 cat > conftest.$ac_ext <<EOF
13114 #line 13115 "configure"
13115 #include "confdefs.h"
13116 /* Override any gcc2 internal prototype to avoid an error. */
13117 /* We use char because int might match the return type of a gcc2
13118 builtin and then its argument prototype would still apply. */
13119 char acl_get_file();
13121 int main() {
13122 acl_get_file()
13123 ; return 0; }
13125 if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13126 rm -rf conftest*
13127 eval "ac_cv_lib_$ac_lib_var=yes"
13128 else
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13131 rm -rf conftest*
13132 eval "ac_cv_lib_$ac_lib_var=no"
13134 rm -f conftest*
13135 LIBS="$ac_save_LIBS"
13138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13139 echo "$ac_t""yes" 1>&6
13140 ac_tr_lib=HAVE_LIB`echo acl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13142 cat >> confdefs.h <<EOF
13143 #define $ac_tr_lib 1
13146 LIBS="-lacl $LIBS"
13148 else
13149 echo "$ac_t""no" 1>&6
13152 echo $ac_n "checking for ACL support""... $ac_c" 1>&6
13153 echo "configure:13154: checking for ACL support" >&5
13154 if eval "test \"`echo '$''{'samba_cv_HAVE_POSIX_ACLS'+set}'`\" = set"; then
13155 echo $ac_n "(cached) $ac_c" 1>&6
13156 else
13158 cat > conftest.$ac_ext <<EOF
13159 #line 13160 "configure"
13160 #include "confdefs.h"
13161 #include <sys/types.h>
13162 #include <sys/acl.h>
13163 int main() {
13164 acl_t acl; int entry_id; acl_entry_t *entry_p; return acl_get_entry( acl, entry_id, entry_p);
13165 ; return 0; }
13167 if { (eval echo configure:13168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13168 rm -rf conftest*
13169 samba_cv_HAVE_POSIX_ACLS=yes
13170 else
13171 echo "configure: failed program was:" >&5
13172 cat conftest.$ac_ext >&5
13173 rm -rf conftest*
13174 samba_cv_HAVE_POSIX_ACLS=no
13176 rm -f conftest*
13179 echo "$ac_t""$samba_cv_HAVE_POSIX_ACLS" 1>&6
13180 if test x"$samba_cv_HAVE_POSIX_ACLS" = x"yes"; then
13181 echo "$ac_t""Using posix ACLs" 1>&6
13182 cat >> confdefs.h <<\EOF
13183 #define HAVE_POSIX_ACLS 1
13186 echo $ac_n "checking for acl_get_perm_np""... $ac_c" 1>&6
13187 echo "configure:13188: checking for acl_get_perm_np" >&5
13188 if eval "test \"`echo '$''{'samba_cv_HAVE_ACL_GET_PERM_NP'+set}'`\" = set"; then
13189 echo $ac_n "(cached) $ac_c" 1>&6
13190 else
13192 cat > conftest.$ac_ext <<EOF
13193 #line 13194 "configure"
13194 #include "confdefs.h"
13195 #include <sys/types.h>
13196 #include <sys/acl.h>
13197 int main() {
13198 acl_permset_t permset_d; acl_perm_t perm; return acl_get_perm_np( permset_d, perm);
13199 ; return 0; }
13201 if { (eval echo configure:13202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13202 rm -rf conftest*
13203 samba_cv_HAVE_ACL_GET_PERM_NP=yes
13204 else
13205 echo "configure: failed program was:" >&5
13206 cat conftest.$ac_ext >&5
13207 rm -rf conftest*
13208 samba_cv_HAVE_ACL_GET_PERM_NP=no
13210 rm -f conftest*
13213 echo "$ac_t""$samba_cv_HAVE_ACL_GET_PERM_NP" 1>&6
13214 if test x"$samba_cv_HAVE_ACL_GET_PERM_NP" = x"yes"; then
13215 cat >> confdefs.h <<\EOF
13216 #define HAVE_ACL_GET_PERM_NP 1
13222 esac
13225 echo "$ac_t""no" 1>&6
13226 cat >> confdefs.h <<\EOF
13227 #define HAVE_NO_ACLS 1
13231 esac
13232 else
13233 cat >> confdefs.h <<\EOF
13234 #define HAVE_NO_ACLS 1
13237 echo "$ac_t""no" 1>&6
13242 #################################################
13243 # check for the historical SAMBA installation
13245 if test "x$prefix" = xNONE -a "$sbindir" = "\${exec_prefix}/sbin"; then
13246 # Put all binaries under the /usr/local/samba/bin directory.
13247 sbindir="$bindir"
13250 #################################################
13251 # Check whether winbind is supported on this platform. If so we need to
13252 # build and install client programs (WINBIND_TARGETS), sbin programs
13253 # (WINBIND_STARGETS) and shared libraries (WINBIND_LTARGETS).
13255 echo $ac_n "checking whether to build winbind""... $ac_c" 1>&6
13256 echo "configure:13257: checking whether to build winbind" >&5
13258 # Initially, the value of $host_os decides whether winbind is supported
13260 case "$host_os" in
13261 *linux*|*irix*)
13262 HAVE_WINBIND=yes
13264 *solaris*)
13265 HAVE_WINBIND=yes
13266 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13267 WINBIND_NSS_EXTRA_LIBS="-lsocket"
13269 *hpux11*)
13270 HAVE_WINBIND=yes
13271 WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
13273 *aix4*)
13274 HAVE_WINBIND=yes
13277 HAVE_WINBIND=no
13278 winbind_no_reason=", unsupported on $host_os"
13280 esac
13282 # Check the setting of --with-winbindd
13284 # Check whether --with-winbind or --without-winbind was given.
13285 if test "${with_winbind+set}" = set; then
13286 withval="$with_winbind"
13288 case "$withval" in
13289 yes)
13290 HAVE_WINBIND=yes
13293 HAVE_WINBIND=no
13294 winbind_reason=""
13296 esac
13300 # We need unix domain sockets for winbind
13302 if test x"$HAVE_WINBIND" = x"yes"; then
13303 if test x"$samba_cv_unixsocket" = x"no"; then
13304 winbind_no_reason=", no unix domain socket support on $host_os"
13305 HAVE_WINBIND=no
13309 # Display test results
13311 if test x"$HAVE_WINBIND" = x"yes"; then
13313 echo "$ac_t""yes" 1>&6
13315 echo $ac_n "checking whether to enable winbind auth challenge/response code""... $ac_c" 1>&6
13316 echo "configure:13317: checking whether to enable winbind auth challenge/response code" >&5
13317 # Check whether --with-winbind-auth-challenge or --without-winbind-auth-challenge was given.
13318 if test "${with_winbind_auth_challenge+set}" = set; then
13319 withval="$with_winbind_auth_challenge"
13321 case "$withval" in
13322 yes)
13323 cat >> confdefs.h <<\EOF
13324 #define WITH_WINBIND_AUTH_CRAP 1
13327 echo "$ac_t""yes" 1>&6
13330 echo "$ac_t""no" 1>&6
13332 esac
13333 else
13334 echo "$ac_t""no" 1>&6
13339 # Check for FreeBSD problem with getgroups
13341 WINBIND_TARGETS="bin/wbinfo"
13342 WINBIND_STARGETS="bin/winbindd"
13343 case "$host_os" in
13344 *irix*)
13345 WINBIND_LTARGETS="nsswitch/libns_winbind.so"
13348 WINBIND_LTARGETS="nsswitch/libnss_winbind.so"
13350 esac
13353 case "$with_pam" in
13354 yes)
13355 WINBIND_PAM_TARGETS="nsswitch/pam_winbind.so"
13357 esac
13358 else
13359 echo "$ac_t""no$winbind_no_reason" 1>&6
13361 WINBIND_TARGETS=""
13362 WINBIND_STARGETS=""
13363 WINBIND_LTARGETS=""
13364 WINBIND_PAM_TARGETS=""
13368 # Check for FreeBSD problem with getgroups
13369 # It returns EGID too many times in the list of groups
13370 # and causes a security problem
13371 echo $ac_n "checking whether or not getgroups returns EGID too many times""... $ac_c" 1>&6
13372 echo "configure:13373: checking whether or not getgroups returns EGID too many times" >&5
13373 if eval "test \"`echo '$''{'samba_cv_have_getgroups_too_many_egids'+set}'`\" = set"; then
13374 echo $ac_n "(cached) $ac_c" 1>&6
13375 else
13376 if test "$cross_compiling" = yes; then
13377 samba_cv_have_getgroups_too_many_egids=cross
13378 else
13379 cat > conftest.$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13383 #include <sys/types.h>
13384 #include <stdio.h>
13386 int main(int argc, char *argv[])
13388 gid_t groups[10];
13389 int n = 10;
13391 n = getgroups(n, &groups);
13392 /* Could actually pass back the number of EGIDs there ... */
13393 exit((n > 1 && groups[0] == getegid() && groups[1] == getegid()) ? 1 : 0);
13396 if { (eval echo configure:13397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13397 then
13398 samba_cv_have_getgroups_too_many_egids=no
13399 else
13400 echo "configure: failed program was:" >&5
13401 cat conftest.$ac_ext >&5
13402 rm -fr conftest*
13403 samba_cv_have_getgroups_too_many_egids=yes
13405 rm -fr conftest*
13410 echo "$ac_t""$samba_cv_have_getgroups_too_many_egids" 1>&6
13411 if test x"$samba_cv_have_getgroups_too_many_egids" = x"yes"; then
13412 cat >> confdefs.h <<\EOF
13413 #define HAVE_GETGROUPS_TOO_MANY_EGIDS 1
13418 # Substitution time!
13427 # Solaris has some extra fields in struct passwd that need to be
13428 # initialised otherwise nscd crashes. Unfortunately autoconf < 2.50
13429 # doesn't have the AC_CHECK_MEMBER macro which would be handy for checking
13430 # this.
13432 #AC_CHECK_MEMBER(struct passwd.pw_comment,
13433 # AC_DEFINE(HAVE_PASSWD_PW_COMMENT, 1, [Defined if struct passwd has pw_comment field]),
13434 # [#include <pwd.h>])
13436 echo $ac_n "checking whether struct passwd has pw_comment""... $ac_c" 1>&6
13437 echo "configure:13438: checking whether struct passwd has pw_comment" >&5
13438 if eval "test \"`echo '$''{'samba_cv_passwd_pw_comment'+set}'`\" = set"; then
13439 echo $ac_n "(cached) $ac_c" 1>&6
13440 else
13442 cat > conftest.$ac_ext <<EOF
13443 #line 13444 "configure"
13444 #include "confdefs.h"
13445 #include <pwd.h>
13446 int main() {
13447 struct passwd p; p.pw_comment;
13448 ; return 0; }
13450 if { (eval echo configure:13451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13451 rm -rf conftest*
13452 samba_cv_passwd_pw_comment=yes
13453 else
13454 echo "configure: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13456 rm -rf conftest*
13457 samba_cv_passwd_pw_comment=no
13459 rm -f conftest*
13462 echo "$ac_t""$samba_cv_passwd_pw_comment" 1>&6
13463 if test x"$samba_cv_passwd_pw_comment" = x"yes"; then
13464 cat >> confdefs.h <<\EOF
13465 #define HAVE_PASSWD_PW_COMMENT 1
13470 #AC_CHECK_MEMBER(struct passwd.pw_age,
13471 # AC_DEFINE(HAVE_PASSWD_PW_AGE, 1, [Defined if struct passwd has pw_age field]),
13472 # [#include <pwd.h>])
13474 echo $ac_n "checking whether struct passwd has pw_age""... $ac_c" 1>&6
13475 echo "configure:13476: checking whether struct passwd has pw_age" >&5
13476 if eval "test \"`echo '$''{'samba_cv_passwd_pw_age'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13478 else
13480 cat > conftest.$ac_ext <<EOF
13481 #line 13482 "configure"
13482 #include "confdefs.h"
13483 #include <pwd.h>
13484 int main() {
13485 struct passwd p; p.pw_age;
13486 ; return 0; }
13488 if { (eval echo configure:13489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13489 rm -rf conftest*
13490 samba_cv_passwd_pw_age=yes
13491 else
13492 echo "configure: failed program was:" >&5
13493 cat conftest.$ac_ext >&5
13494 rm -rf conftest*
13495 samba_cv_passwd_pw_age=no
13497 rm -f conftest*
13500 echo "$ac_t""$samba_cv_passwd_pw_age" 1>&6
13501 if test x"$samba_cv_passwd_pw_age" = x"yes"; then
13502 cat >> confdefs.h <<\EOF
13503 #define HAVE_PASSWD_PW_AGE 1
13508 #################################################
13509 # Check to see if we should use the included popt
13511 # Check whether --with-included-popt or --without-included-popt was given.
13512 if test "${with_included_popt+set}" = set; then
13513 withval="$with_included_popt"
13515 case "$withval" in
13516 yes)
13517 INCLUDED_POPT=yes
13520 INCLUDED_POPT=no
13522 esac
13525 if test x"$INCLUDED_POPT" != x"yes"; then
13526 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
13527 echo "configure:13528: checking for poptGetContext in -lpopt" >&5
13528 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
13529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13530 echo $ac_n "(cached) $ac_c" 1>&6
13531 else
13532 ac_save_LIBS="$LIBS"
13533 LIBS="-lpopt $LIBS"
13534 cat > conftest.$ac_ext <<EOF
13535 #line 13536 "configure"
13536 #include "confdefs.h"
13537 /* Override any gcc2 internal prototype to avoid an error. */
13538 /* We use char because int might match the return type of a gcc2
13539 builtin and then its argument prototype would still apply. */
13540 char poptGetContext();
13542 int main() {
13543 poptGetContext()
13544 ; return 0; }
13546 if { (eval echo configure:13547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13547 rm -rf conftest*
13548 eval "ac_cv_lib_$ac_lib_var=yes"
13549 else
13550 echo "configure: failed program was:" >&5
13551 cat conftest.$ac_ext >&5
13552 rm -rf conftest*
13553 eval "ac_cv_lib_$ac_lib_var=no"
13555 rm -f conftest*
13556 LIBS="$ac_save_LIBS"
13559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13560 echo "$ac_t""yes" 1>&6
13561 INCLUDED_POPT=no
13562 else
13563 echo "$ac_t""no" 1>&6
13564 INCLUDED_POPT=yes
13569 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
13570 echo "configure:13571: checking whether to use included popt" >&5
13571 if test x"$INCLUDED_POPT" = x"yes"; then
13572 echo "$ac_t""$srcdir/popt" 1>&6
13573 BUILD_POPT='$(POPT_OBJS)'
13574 FLAGS1="-I$srcdir/popt"
13575 else
13576 echo "$ac_t""no" 1>&6
13577 LIBS="$LIBS -lpopt"
13582 #################################################
13583 # final configure stuff
13584 echo $ac_n "checking configure summary""... $ac_c" 1>&6
13585 echo "configure:13586: checking configure summary" >&5
13586 if test "$cross_compiling" = yes; then
13587 echo "configure: warning: cannot run when cross-compiling" 1>&2
13588 else
13589 cat > conftest.$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13592 #include "${srcdir-.}/tests/summary.c"
13594 if { (eval echo configure:13595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13595 then
13596 echo "$ac_t""yes" 1>&6
13597 else
13598 echo "configure: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13600 rm -fr conftest*
13601 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }; exit 1;
13603 rm -fr conftest*
13607 builddir=`pwd`
13610 trap '' 1 2 15
13611 cat > confcache <<\EOF
13612 # This file is a shell script that caches the results of configure
13613 # tests run on this system so they can be shared between configure
13614 # scripts and configure runs. It is not useful on other systems.
13615 # If it contains results you don't want to keep, you may remove or edit it.
13617 # By default, configure uses ./config.cache as the cache file,
13618 # creating it if it does not exist already. You can give configure
13619 # the --cache-file=FILE option to use a different cache file; that is
13620 # what configure does when it calls configure scripts in
13621 # subdirectories, so they share the cache.
13622 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13623 # config.status only pays attention to the cache file if you give it the
13624 # --recheck option to rerun configure.
13627 # The following way of writing the cache mishandles newlines in values,
13628 # but we know of no workaround that is simple, portable, and efficient.
13629 # So, don't put newlines in cache variables' values.
13630 # Ultrix sh set writes to stderr and can't be redirected directly,
13631 # and sets the high bit in the cache file unless we assign to the vars.
13632 (set) 2>&1 |
13633 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13634 *ac_space=\ *)
13635 # `set' does not quote correctly, so add quotes (double-quote substitution
13636 # turns \\\\ into \\, and sed turns \\ into \).
13637 sed -n \
13638 -e "s/'/'\\\\''/g" \
13639 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13642 # `set' quotes correctly as required by POSIX, so do not add quotes.
13643 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13645 esac >> confcache
13646 if cmp -s $cache_file confcache; then
13648 else
13649 if test -w $cache_file; then
13650 echo "updating cache $cache_file"
13651 cat confcache > $cache_file
13652 else
13653 echo "not updating unwritable cache $cache_file"
13656 rm -f confcache
13658 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13660 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13661 # Let make expand exec_prefix.
13662 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13664 # Any assignment to VPATH causes Sun make to only execute
13665 # the first set of double-colon rules, so remove it if not needed.
13666 # If there is a colon in the path, we need to keep it.
13667 if test "x$srcdir" = x.; then
13668 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
13671 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13673 DEFS=-DHAVE_CONFIG_H
13675 # Without the "./", some shells look in PATH for config.status.
13676 : ${CONFIG_STATUS=./config.status}
13678 echo creating $CONFIG_STATUS
13679 rm -f $CONFIG_STATUS
13680 cat > $CONFIG_STATUS <<EOF
13681 #! /bin/sh
13682 # Generated automatically by configure.
13683 # Run this file to recreate the current configuration.
13684 # This directory was configured as follows,
13685 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13687 # $0 $ac_configure_args
13689 # Compiler output produced by configure, useful for debugging
13690 # configure, is in ./config.log if it exists.
13692 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
13693 for ac_option
13695 case "\$ac_option" in
13696 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13697 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
13698 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13699 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13700 echo "$CONFIG_STATUS generated by autoconf version 2.13"
13701 exit 0 ;;
13702 -help | --help | --hel | --he | --h)
13703 echo "\$ac_cs_usage"; exit 0 ;;
13704 *) echo "\$ac_cs_usage"; exit 1 ;;
13705 esac
13706 done
13708 ac_given_srcdir=$srcdir
13709 ac_given_INSTALL="$INSTALL"
13711 trap 'rm -fr `echo "include/stamp-h Makefile script/findsmb include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
13713 cat >> $CONFIG_STATUS <<EOF
13715 # Protect against being on the right side of a sed subst in config.status.
13716 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
13717 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
13718 $ac_vpsub
13719 $extrasub
13720 s%@SHELL@%$SHELL%g
13721 s%@CFLAGS@%$CFLAGS%g
13722 s%@CPPFLAGS@%$CPPFLAGS%g
13723 s%@CXXFLAGS@%$CXXFLAGS%g
13724 s%@FFLAGS@%$FFLAGS%g
13725 s%@DEFS@%$DEFS%g
13726 s%@LDFLAGS@%$LDFLAGS%g
13727 s%@LIBS@%$LIBS%g
13728 s%@exec_prefix@%$exec_prefix%g
13729 s%@prefix@%$prefix%g
13730 s%@program_transform_name@%$program_transform_name%g
13731 s%@bindir@%$bindir%g
13732 s%@sbindir@%$sbindir%g
13733 s%@libexecdir@%$libexecdir%g
13734 s%@datadir@%$datadir%g
13735 s%@sysconfdir@%$sysconfdir%g
13736 s%@sharedstatedir@%$sharedstatedir%g
13737 s%@localstatedir@%$localstatedir%g
13738 s%@libdir@%$libdir%g
13739 s%@includedir@%$includedir%g
13740 s%@oldincludedir@%$oldincludedir%g
13741 s%@infodir@%$infodir%g
13742 s%@mandir@%$mandir%g
13743 s%@codepagedir@%$codepagedir%g
13744 s%@configdir@%$configdir%g
13745 s%@lockdir@%$lockdir%g
13746 s%@piddir@%$piddir%g
13747 s%@logfilebase@%$logfilebase%g
13748 s%@privatedir@%$privatedir%g
13749 s%@swatdir@%$swatdir%g
13750 s%@RUNPROG@%$RUNPROG%g
13751 s%@MPROGS@%$MPROGS%g
13752 s%@LDSHFLAGS@%$LDSHFLAGS%g
13753 s%@SONAMEFLAG@%$SONAMEFLAG%g
13754 s%@SHLD@%$SHLD%g
13755 s%@HOST_OS@%$HOST_OS%g
13756 s%@PAM_MOD@%$PAM_MOD%g
13757 s%@PDBEDIT@%$PDBEDIT%g
13758 s%@WRAP@%$WRAP%g
13759 s%@WRAP32@%$WRAP32%g
13760 s%@WRAPPROG@%$WRAPPROG%g
13761 s%@PICFLAG@%$PICFLAG%g
13762 s%@PICSUFFIX@%$PICSUFFIX%g
13763 s%@SHLIBEXT@%$SHLIBEXT%g
13764 s%@BLDSHARED@%$BLDSHARED%g
13765 s%@LIBSMBCLIENT_SHARED@%$LIBSMBCLIENT_SHARED%g
13766 s%@LIBSMBCLIENT@%$LIBSMBCLIENT%g
13767 s%@CC@%$CC%g
13768 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
13769 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
13770 s%@INSTALL_DATA@%$INSTALL_DATA%g
13771 s%@AWK@%$AWK%g
13772 s%@passwd_program@%$passwd_program%g
13773 s%@BROKEN_CC@%$BROKEN_CC%g
13774 s%@host@%$host%g
13775 s%@host_alias@%$host_alias%g
13776 s%@host_cpu@%$host_cpu%g
13777 s%@host_vendor@%$host_vendor%g
13778 s%@host_os@%$host_os%g
13779 s%@target@%$target%g
13780 s%@target_alias@%$target_alias%g
13781 s%@target_cpu@%$target_cpu%g
13782 s%@target_vendor@%$target_vendor%g
13783 s%@target_os@%$target_os%g
13784 s%@build@%$build%g
13785 s%@build_alias@%$build_alias%g
13786 s%@build_cpu@%$build_cpu%g
13787 s%@build_vendor@%$build_vendor%g
13788 s%@build_os@%$build_os%g
13789 s%@CPP@%$CPP%g
13790 s%@CUPS_CONFIG@%$CUPS_CONFIG%g
13791 s%@LIBOBJS@%$LIBOBJS%g
13792 s%@TERMLIBS@%$TERMLIBS%g
13793 s%@TERMLDFLAGS@%$TERMLDFLAGS%g
13794 s%@ROFF@%$ROFF%g
13795 s%@DYNEXP@%$DYNEXP%g
13796 s%@LDAPLIBS@%$LDAPLIBS%g
13797 s%@QUOTAOBJS@%$QUOTAOBJS%g
13798 s%@WINBIND_TARGETS@%$WINBIND_TARGETS%g
13799 s%@WINBIND_STARGETS@%$WINBIND_STARGETS%g
13800 s%@WINBIND_LTARGETS@%$WINBIND_LTARGETS%g
13801 s%@WINBIND_PAM_TARGETS@%$WINBIND_PAM_TARGETS%g
13802 s%@WINBIND_NSS_EXTRA_OBJS@%$WINBIND_NSS_EXTRA_OBJS%g
13803 s%@WINBIND_NSS_EXTRA_LIBS@%$WINBIND_NSS_EXTRA_LIBS%g
13804 s%@BUILD_POPT@%$BUILD_POPT%g
13805 s%@FLAGS1@%$FLAGS1%g
13806 s%@builddir@%$builddir%g
13808 CEOF
13811 cat >> $CONFIG_STATUS <<\EOF
13813 # Split the substitutions into bite-sized pieces for seds with
13814 # small command number limits, like on Digital OSF/1 and HP-UX.
13815 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
13816 ac_file=1 # Number of current file.
13817 ac_beg=1 # First line for current file.
13818 ac_end=$ac_max_sed_cmds # Line after last line for current file.
13819 ac_more_lines=:
13820 ac_sed_cmds=""
13821 while $ac_more_lines; do
13822 if test $ac_beg -gt 1; then
13823 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
13824 else
13825 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
13827 if test ! -s conftest.s$ac_file; then
13828 ac_more_lines=false
13829 rm -f conftest.s$ac_file
13830 else
13831 if test -z "$ac_sed_cmds"; then
13832 ac_sed_cmds="sed -f conftest.s$ac_file"
13833 else
13834 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
13836 ac_file=`expr $ac_file + 1`
13837 ac_beg=$ac_end
13838 ac_end=`expr $ac_end + $ac_max_sed_cmds`
13840 done
13841 if test -z "$ac_sed_cmds"; then
13842 ac_sed_cmds=cat
13846 cat >> $CONFIG_STATUS <<EOF
13848 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile script/findsmb"}
13850 cat >> $CONFIG_STATUS <<\EOF
13851 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
13852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13853 case "$ac_file" in
13854 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13855 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13856 *) ac_file_in="${ac_file}.in" ;;
13857 esac
13859 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
13861 # Remove last slash and all that follows it. Not all systems have dirname.
13862 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
13863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13864 # The file is in a subdirectory.
13865 test ! -d "$ac_dir" && mkdir "$ac_dir"
13866 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
13867 # A "../" for each directory in $ac_dir_suffix.
13868 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
13869 else
13870 ac_dir_suffix= ac_dots=
13873 case "$ac_given_srcdir" in
13874 .) srcdir=.
13875 if test -z "$ac_dots"; then top_srcdir=.
13876 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
13877 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
13878 *) # Relative path.
13879 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
13880 top_srcdir="$ac_dots$ac_given_srcdir" ;;
13881 esac
13883 case "$ac_given_INSTALL" in
13884 [/$]*) INSTALL="$ac_given_INSTALL" ;;
13885 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
13886 esac
13888 echo creating "$ac_file"
13889 rm -f "$ac_file"
13890 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
13891 case "$ac_file" in
13892 *Makefile*) ac_comsub="1i\\
13893 # $configure_input" ;;
13894 *) ac_comsub= ;;
13895 esac
13897 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13898 sed -e "$ac_comsub
13899 s%@configure_input@%$configure_input%g
13900 s%@srcdir@%$srcdir%g
13901 s%@top_srcdir@%$top_srcdir%g
13902 s%@INSTALL@%$INSTALL%g
13903 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
13904 fi; done
13905 rm -f conftest.s*
13907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13910 # ac_d sets the value in "#define NAME VALUE" lines.
13911 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13912 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
13913 ac_dC='\3'
13914 ac_dD='%g'
13915 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13916 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13917 ac_uB='\([ ]\)%\1#\2define\3'
13918 ac_uC=' '
13919 ac_uD='\4%g'
13920 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13921 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13922 ac_eB='$%\1#\2define\3'
13923 ac_eC=' '
13924 ac_eD='%g'
13926 if test "${CONFIG_HEADERS+set}" != set; then
13928 cat >> $CONFIG_STATUS <<EOF
13929 CONFIG_HEADERS="include/config.h"
13931 cat >> $CONFIG_STATUS <<\EOF
13933 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
13934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13935 case "$ac_file" in
13936 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
13937 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13938 *) ac_file_in="${ac_file}.in" ;;
13939 esac
13941 echo creating $ac_file
13943 rm -f conftest.frag conftest.in conftest.out
13944 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
13945 cat $ac_file_inputs > conftest.in
13949 # Transform confdefs.h into a sed script conftest.vals that substitutes
13950 # the proper values into config.h.in to produce config.h. And first:
13951 # Protect against being on the right side of a sed subst in config.status.
13952 # Protect against being in an unquoted here document in config.status.
13953 rm -f conftest.vals
13954 cat > conftest.hdr <<\EOF
13955 s/[\\&%]/\\&/g
13956 s%[\\$`]%\\&%g
13957 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
13958 s%ac_d%ac_u%gp
13959 s%ac_u%ac_e%gp
13961 sed -n -f conftest.hdr confdefs.h > conftest.vals
13962 rm -f conftest.hdr
13964 # This sed command replaces #undef with comments. This is necessary, for
13965 # example, in the case of _POSIX_SOURCE, which is predefined and required
13966 # on some systems where configure will not decide to define it.
13967 cat >> conftest.vals <<\EOF
13968 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
13971 # Break up conftest.vals because some shells have a limit on
13972 # the size of here documents, and old seds have small limits too.
13974 rm -f conftest.tail
13975 while :
13977 ac_lines=`grep -c . conftest.vals`
13978 # grep -c gives empty output for an empty file on some AIX systems.
13979 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
13980 # Write a limited-size here document to conftest.frag.
13981 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
13982 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
13983 echo 'CEOF
13984 sed -f conftest.frag conftest.in > conftest.out
13985 rm -f conftest.in
13986 mv conftest.out conftest.in
13987 ' >> $CONFIG_STATUS
13988 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13989 rm -f conftest.vals
13990 mv conftest.tail conftest.vals
13991 done
13992 rm -f conftest.vals
13994 cat >> $CONFIG_STATUS <<\EOF
13995 rm -f conftest.frag conftest.h
13996 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
13997 cat conftest.in >> conftest.h
13998 rm -f conftest.in
13999 if cmp -s $ac_file conftest.h 2>/dev/null; then
14000 echo "$ac_file is unchanged"
14001 rm -f conftest.h
14002 else
14003 # Remove last slash and all that follows it. Not all systems have dirname.
14004 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
14005 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14006 # The file is in a subdirectory.
14007 test ! -d "$ac_dir" && mkdir "$ac_dir"
14009 rm -f $ac_file
14010 mv conftest.h $ac_file
14012 fi; done
14015 cat >> $CONFIG_STATUS <<EOF
14018 cat >> $CONFIG_STATUS <<\EOF
14020 exit 0
14022 chmod +x $CONFIG_STATUS
14023 rm -fr confdefs* $ac_clean_files
14024 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1